LustreFileStorageClientCompositeOperations

class oci.lustre_file_storage.LustreFileStorageClientCompositeOperations(client, **kwargs)

This class provides a wrapper around LustreFileStorageClient 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 LustreFileStorageClientCompositeOperations object
change_lustre_file_system_compartment_and_wait_for_state(…) Calls change_lustre_file_system_compartment() and waits for the WorkRequest to enter the given state(s).
change_object_storage_link_compartment_and_wait_for_state(…) Calls change_object_storage_link_compartment() and waits for the ObjectStorageLink acted upon to enter the given state(s).
create_lustre_file_system_and_wait_for_state(…) Calls create_lustre_file_system() and waits for the WorkRequest to enter the given state(s).
create_object_storage_link_and_wait_for_state(…) Calls create_object_storage_link() and waits for the ObjectStorageLink acted upon to enter the given state(s).
delete_lustre_file_system_and_wait_for_state(…) Calls delete_lustre_file_system() and waits for the WorkRequest to enter the given state(s).
delete_object_storage_link_and_wait_for_state(…) Calls delete_object_storage_link() and waits for the WorkRequest to enter the given state(s).
update_lustre_file_system_and_wait_for_state(…) Calls update_lustre_file_system() and waits for the WorkRequest to enter the given state(s).
update_object_storage_link_and_wait_for_state(…) Calls update_object_storage_link() and waits for the ObjectStorageLink acted upon to enter the given state(s).
__init__(client, **kwargs)

Creates a new LustreFileStorageClientCompositeOperations object

Parameters:client (LustreFileStorageClient) – The service client which will be wrapped by this object
change_lustre_file_system_compartment_and_wait_for_state(lustre_file_system_id, change_lustre_file_system_compartment_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

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

Parameters:
  • lustre_file_system_id (str) –

    (required) The OCID of the Lustre file system.

  • change_lustre_file_system_compartment_details (oci.lustre_file_storage.models.ChangeLustreFileSystemCompartmentDetails) – (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 change_lustre_file_system_compartment()
  • 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

Calls change_object_storage_link_compartment() and waits for the ObjectStorageLink acted upon to enter the given state(s).

Parameters:
  • object_storage_link_id (str) –

    (required) The OCID of the Object Storage link.

  • change_object_storage_link_compartment_details (oci.lustre_file_storage.models.ChangeObjectStorageLinkCompartmentDetails) – (required) The information to be updated.
  • 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 change_object_storage_link_compartment()
  • 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_lustre_file_system_and_wait_for_state(create_lustre_file_system_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

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

Parameters:
  • create_lustre_file_system_details (oci.lustre_file_storage.models.CreateLustreFileSystemDetails) – (required) Details for the new Lustre file system.
  • 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_lustre_file_system()
  • 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

Calls create_object_storage_link() and waits for the ObjectStorageLink acted upon to enter the given state(s).

Parameters:
  • create_object_storage_link_details (oci.lustre_file_storage.models.CreateObjectStorageLinkDetails) – (required) Details for the new Object Storage link.
  • 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_object_storage_link()
  • 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_lustre_file_system_and_wait_for_state(lustre_file_system_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

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

Parameters:
  • lustre_file_system_id (str) –

    (required) The OCID of the Lustre file system.

  • 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_lustre_file_system()
  • 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

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

Parameters:
  • object_storage_link_id (str) –

    (required) The OCID of the Object Storage link.

  • 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_object_storage_link()
  • 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_lustre_file_system_and_wait_for_state(lustre_file_system_id, update_lustre_file_system_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

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

Parameters:
  • lustre_file_system_id (str) –

    (required) The OCID of the Lustre file system.

  • update_lustre_file_system_details (oci.lustre_file_storage.models.UpdateLustreFileSystemDetails) – (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_lustre_file_system()
  • 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

Calls update_object_storage_link() and waits for the ObjectStorageLink acted upon to enter the given state(s).

Parameters:
  • object_storage_link_id (str) –

    (required) The OCID of the Object Storage link.

  • update_object_storage_link_details (oci.lustre_file_storage.models.UpdateObjectStorageLinkDetails) – (required) The information to be updated.
  • 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_object_storage_link()
  • 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