DatastoreClusterClientCompositeOperations

class oci.ocvp.DatastoreClusterClientCompositeOperations(client, **kwargs)

This class provides a wrapper around DatastoreClusterClient 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

Methods

__init__(client, **kwargs) Creates a new DatastoreClusterClientCompositeOperations object
add_datastore_to_datastore_cluster_and_wait_for_state(…) Calls add_datastore_to_datastore_cluster() and waits for the WorkRequest to enter the given state(s).
attach_datastore_cluster_to_cluster_and_wait_for_state(…) Calls attach_datastore_cluster_to_cluster() and waits for the WorkRequest to enter the given state(s).
attach_datastore_cluster_to_esxi_host_and_wait_for_state(…) Calls attach_datastore_cluster_to_esxi_host() and waits for the WorkRequest to enter the given state(s).
create_datastore_cluster_and_wait_for_state(…) Calls create_datastore_cluster() and waits for the WorkRequest to enter the given state(s).
delete_datastore_cluster_and_wait_for_state(…) Calls delete_datastore_cluster() and waits for the WorkRequest to enter the given state(s).
detach_datastore_cluster_from_cluster_and_wait_for_state(…) Calls detach_datastore_cluster_from_cluster() and waits for the WorkRequest to enter the given state(s).
detach_datastore_cluster_from_esxi_host_and_wait_for_state(…) Calls detach_datastore_cluster_from_esxi_host() and waits for the WorkRequest to enter the given state(s).
remove_datastore_from_datastore_cluster_and_wait_for_state(…) Calls remove_datastore_from_datastore_cluster() and waits for the WorkRequest to enter the given state(s).
update_datastore_cluster_and_wait_for_state(…) Calls update_datastore_cluster() and waits for the WorkRequest to enter the given state(s).
__init__(client, **kwargs)

Creates a new DatastoreClusterClientCompositeOperations object

Parameters:client (DatastoreClusterClient) – The service client which will be wrapped by this object
add_datastore_to_datastore_cluster_and_wait_for_state(datastore_cluster_id, add_datastore_to_datastore_cluster_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

Calls add_datastore_to_datastore_cluster() and waits for the WorkRequest to enter the given state(s).

Parameters:
  • datastore_cluster_id (str) –

    (required) The OCID of the Datastore Cluster.

  • add_datastore_to_datastore_cluster_details (oci.ocvp.models.AddDatastoreToDatastoreClusterDetails) – (required) The information about datastore addition to the Datastore Cluster.
  • wait_for_states (list[str]) – An array of states to wait on. These should be valid values for status
  • operation_kwargs (dict) – A dictionary of keyword arguments to pass to add_datastore_to_datastore_cluster()
  • 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
attach_datastore_cluster_to_cluster_and_wait_for_state(datastore_cluster_id, attach_datastore_cluster_to_cluster_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

Calls attach_datastore_cluster_to_cluster() and waits for the WorkRequest to enter the given state(s).

Parameters:
  • datastore_cluster_id (str) –

    (required) The OCID of the Datastore Cluster.

  • attach_datastore_cluster_to_cluster_details (oci.ocvp.models.AttachDatastoreClusterToClusterDetails) – (required) The information about Datastore Cluster attachment.
  • wait_for_states (list[str]) – An array of states to wait on. These should be valid values for status
  • operation_kwargs (dict) – A dictionary of keyword arguments to pass to attach_datastore_cluster_to_cluster()
  • 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
attach_datastore_cluster_to_esxi_host_and_wait_for_state(datastore_cluster_id, attach_datastore_cluster_to_esxi_host_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

Calls attach_datastore_cluster_to_esxi_host() and waits for the WorkRequest to enter the given state(s).

Parameters:
  • datastore_cluster_id (str) –

    (required) The OCID of the Datastore Cluster.

  • attach_datastore_cluster_to_esxi_host_details (oci.ocvp.models.AttachDatastoreClusterToEsxiHostDetails) – (required) The information about Datastore Cluster attachment.
  • wait_for_states (list[str]) – An array of states to wait on. These should be valid values for status
  • operation_kwargs (dict) – A dictionary of keyword arguments to pass to attach_datastore_cluster_to_esxi_host()
  • 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_datastore_cluster_and_wait_for_state(create_datastore_cluster_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

Calls create_datastore_cluster() and waits for the WorkRequest to enter the given state(s).

Parameters:
  • create_datastore_cluster_details (oci.ocvp.models.CreateDatastoreClusterDetails) – (required) Details for the Datastore Cluster.
  • wait_for_states (list[str]) – An array of states to wait on. These should be valid values for status
  • operation_kwargs (dict) – A dictionary of keyword arguments to pass to create_datastore_cluster()
  • 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_datastore_cluster_and_wait_for_state(datastore_cluster_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

Calls delete_datastore_cluster() and waits for the WorkRequest to enter the given state(s).

Parameters:
  • datastore_cluster_id (str) –

    (required) The OCID of the Datastore Cluster.

  • wait_for_states (list[str]) – An array of states to wait on. These should be valid values for status
  • operation_kwargs (dict) – A dictionary of keyword arguments to pass to delete_datastore_cluster()
  • 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
detach_datastore_cluster_from_cluster_and_wait_for_state(datastore_cluster_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

Calls detach_datastore_cluster_from_cluster() and waits for the WorkRequest to enter the given state(s).

Parameters:
  • datastore_cluster_id (str) –

    (required) The OCID of the Datastore Cluster.

  • wait_for_states (list[str]) – An array of states to wait on. These should be valid values for status
  • operation_kwargs (dict) – A dictionary of keyword arguments to pass to detach_datastore_cluster_from_cluster()
  • 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
detach_datastore_cluster_from_esxi_host_and_wait_for_state(datastore_cluster_id, detach_datastore_cluster_from_esxi_host_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

Calls detach_datastore_cluster_from_esxi_host() and waits for the WorkRequest to enter the given state(s).

Parameters:
  • datastore_cluster_id (str) –

    (required) The OCID of the Datastore Cluster.

  • detach_datastore_cluster_from_esxi_host_details (oci.ocvp.models.DetachDatastoreClusterFromEsxiHostDetails) – (required) The information about Datastore Cluster detachment.
  • wait_for_states (list[str]) – An array of states to wait on. These should be valid values for status
  • operation_kwargs (dict) – A dictionary of keyword arguments to pass to detach_datastore_cluster_from_esxi_host()
  • 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
remove_datastore_from_datastore_cluster_and_wait_for_state(datastore_cluster_id, remove_datastore_from_datastore_cluster_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

Calls remove_datastore_from_datastore_cluster() and waits for the WorkRequest to enter the given state(s).

Parameters:
  • datastore_cluster_id (str) –

    (required) The OCID of the Datastore Cluster.

  • remove_datastore_from_datastore_cluster_details (oci.ocvp.models.RemoveDatastoreFromDatastoreClusterDetails) – (required) The information about datastore removal from the Datastore Cluster.
  • wait_for_states (list[str]) – An array of states to wait on. These should be valid values for status
  • operation_kwargs (dict) – A dictionary of keyword arguments to pass to remove_datastore_from_datastore_cluster()
  • 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_datastore_cluster_and_wait_for_state(datastore_cluster_id, update_datastore_cluster_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

Calls update_datastore_cluster() and waits for the WorkRequest to enter the given state(s).

Parameters:
  • datastore_cluster_id (str) –

    (required) The OCID of the Datastore Cluster.

  • update_datastore_cluster_details (oci.ocvp.models.UpdateDatastoreClusterDetails) – (required) The information to be updated.
  • wait_for_states (list[str]) – An array of states to wait on. These should be valid values for status
  • operation_kwargs (dict) – A dictionary of keyword arguments to pass to update_datastore_cluster()
  • 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