DnsClientCompositeOperations

class oci.dns.DnsClientCompositeOperations(client, **kwargs)

This class provides a wrapper around DnsClient and offers convenience methods for operations that would otherwise need to be chained together. For example, instead of performing an action on a resource (e.g. launching an instance, creating a load balancer) and then using a waiter to wait for the resource to enter a given state, you can call a single method in this class to accomplish the same functionality

__init__(client, **kwargs)

Creates a new DnsClientCompositeOperations object

Parameters:client (DnsClient) -- The service client which will be wrapped by this object
create_steering_policy_and_wait_for_state(create_steering_policy_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

Calls create_steering_policy() and waits for the SteeringPolicy acted upon to enter the given state(s).

Parameters:
  • create_steering_policy_details (CreateSteeringPolicyDetails) -- (required) Details for creating a new steering policy.
  • wait_for_states (list[str]) -- An array of states to wait on. These should be valid values for lifecycle_state
  • operation_kwargs (dict) -- A dictionary of keyword arguments to pass to create_steering_policy()
  • waiter_kwargs (dict) -- A dictionary of keyword arguments to pass to the oci.wait_until() function. For example, you could pass max_interval_seconds or max_interval_seconds as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
create_steering_policy_attachment_and_wait_for_state(create_steering_policy_attachment_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

Calls create_steering_policy_attachment() and waits for the SteeringPolicyAttachment acted upon to enter the given state(s).

Parameters:
  • create_steering_policy_attachment_details (CreateSteeringPolicyAttachmentDetails) -- (required) Details for creating a new steering policy attachment.
  • wait_for_states (list[str]) -- An array of states to wait on. These should be valid values for lifecycle_state
  • operation_kwargs (dict) -- A dictionary of keyword arguments to pass to create_steering_policy_attachment()
  • waiter_kwargs (dict) -- A dictionary of keyword arguments to pass to the oci.wait_until() function. For example, you could pass max_interval_seconds or max_interval_seconds as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
create_zone_and_wait_for_state(create_zone_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

Calls create_zone() and waits for the Zone acted upon to enter the given state(s).

Parameters:
  • create_zone_details (CreateZoneBaseDetails) -- (required) Details for creating a new zone.
  • wait_for_states (list[str]) -- An array of states to wait on. These should be valid values for lifecycle_state
  • operation_kwargs (dict) -- A dictionary of keyword arguments to pass to create_zone()
  • waiter_kwargs (dict) -- A dictionary of keyword arguments to pass to the oci.wait_until() function. For example, you could pass max_interval_seconds or max_interval_seconds as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
delete_steering_policy_and_wait_for_state(steering_policy_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

Calls delete_steering_policy() and waits for the SteeringPolicy acted upon to enter the given state(s).

Parameters:
  • steering_policy_id (str) -- (required) The OCID of the target steering policy.
  • wait_for_states (list[str]) -- An array of states to wait on. These should be valid values for lifecycle_state
  • operation_kwargs (dict) -- A dictionary of keyword arguments to pass to delete_steering_policy()
  • waiter_kwargs (dict) -- A dictionary of keyword arguments to pass to the oci.wait_until() function. For example, you could pass max_interval_seconds or max_interval_seconds as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
delete_steering_policy_attachment_and_wait_for_state(steering_policy_attachment_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

Calls delete_steering_policy_attachment() and waits for the SteeringPolicyAttachment acted upon to enter the given state(s).

Parameters:
  • steering_policy_attachment_id (str) -- (required) The OCID of the target steering policy attachment.
  • wait_for_states (list[str]) -- An array of states to wait on. These should be valid values for lifecycle_state
  • operation_kwargs (dict) -- A dictionary of keyword arguments to pass to delete_steering_policy_attachment()
  • waiter_kwargs (dict) -- A dictionary of keyword arguments to pass to the oci.wait_until() function. For example, you could pass max_interval_seconds or max_interval_seconds as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
delete_zone_and_wait_for_state(zone_name_or_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

Calls delete_zone() and waits for the Zone acted upon to enter the given state(s).

Parameters:
  • zone_name_or_id (str) -- (required) The name or OCID of the target zone.
  • wait_for_states (list[str]) -- An array of states to wait on. These should be valid values for lifecycle_state
  • operation_kwargs (dict) -- A dictionary of keyword arguments to pass to delete_zone()
  • waiter_kwargs (dict) -- A dictionary of keyword arguments to pass to the oci.wait_until() function. For example, you could pass max_interval_seconds or max_interval_seconds as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
update_steering_policy_and_wait_for_state(steering_policy_id, update_steering_policy_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

Calls update_steering_policy() and waits for the SteeringPolicy acted upon to enter the given state(s).

Parameters:
  • steering_policy_id (str) -- (required) The OCID of the target steering policy.
  • update_steering_policy_details (UpdateSteeringPolicyDetails) -- (required) New data for the steering policy.
  • wait_for_states (list[str]) -- An array of states to wait on. These should be valid values for lifecycle_state
  • operation_kwargs (dict) -- A dictionary of keyword arguments to pass to update_steering_policy()
  • waiter_kwargs (dict) -- A dictionary of keyword arguments to pass to the oci.wait_until() function. For example, you could pass max_interval_seconds or max_interval_seconds as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
update_steering_policy_attachment_and_wait_for_state(steering_policy_attachment_id, update_steering_policy_attachment_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

Calls update_steering_policy_attachment() and waits for the SteeringPolicyAttachment acted upon to enter the given state(s).

Parameters:
  • steering_policy_attachment_id (str) -- (required) The OCID of the target steering policy attachment.
  • update_steering_policy_attachment_details (UpdateSteeringPolicyAttachmentDetails) -- (required) New data for the steering policy attachment.
  • wait_for_states (list[str]) -- An array of states to wait on. These should be valid values for lifecycle_state
  • operation_kwargs (dict) -- A dictionary of keyword arguments to pass to update_steering_policy_attachment()
  • waiter_kwargs (dict) -- A dictionary of keyword arguments to pass to the oci.wait_until() function. For example, you could pass max_interval_seconds or max_interval_seconds as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
update_zone_and_wait_for_state(zone_name_or_id, update_zone_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

Calls update_zone() and waits for the Zone acted upon to enter the given state(s).

Parameters:
  • zone_name_or_id (str) -- (required) The name or OCID of the target zone.
  • update_zone_details (UpdateZoneDetails) -- (required) New data for the zone.
  • wait_for_states (list[str]) -- An array of states to wait on. These should be valid values for lifecycle_state
  • operation_kwargs (dict) -- A dictionary of keyword arguments to pass to update_zone()
  • waiter_kwargs (dict) -- A dictionary of keyword arguments to pass to the oci.wait_until() function. For example, you could pass max_interval_seconds or max_interval_seconds as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait