ApplicationMigrationClientCompositeOperations¶
-
class
oci.application_migration.
ApplicationMigrationClientCompositeOperations
(client, **kwargs)¶ This class provides a wrapper around
ApplicationMigrationClient
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 functionalityMethods
__init__
(client, **kwargs)Creates a new ApplicationMigrationClientCompositeOperations object change_migration_compartment_and_wait_for_state
(…)Calls change_migration_compartment()
and waits for theWorkRequest
to enter the given state(s).change_source_compartment_and_wait_for_state
(…)Calls change_source_compartment()
and waits for theWorkRequest
to enter the given state(s).create_migration_and_wait_for_state
(…[, …])Calls create_migration()
and waits for theWorkRequest
to enter the given state(s).create_source_and_wait_for_state
(…[, …])Calls create_source()
and waits for theWorkRequest
to enter the given state(s).delete_migration_and_wait_for_state
(migration_id)Calls delete_migration()
and waits for theWorkRequest
to enter the given state(s).delete_source_and_wait_for_state
(source_id)Calls delete_source()
and waits for theWorkRequest
to enter the given state(s).migrate_application_and_wait_for_state
(…)Calls migrate_application()
and waits for theWorkRequest
to enter the given state(s).update_migration_and_wait_for_state
(…[, …])Calls update_migration()
and waits for theWorkRequest
to enter the given state(s).update_source_and_wait_for_state
(source_id, …)Calls update_source()
and waits for theWorkRequest
to enter the given state(s).-
__init__
(client, **kwargs)¶ Creates a new ApplicationMigrationClientCompositeOperations object
Parameters: client (ApplicationMigrationClient) – The service client which will be wrapped by this object
-
change_migration_compartment_and_wait_for_state
(migration_id, change_migration_compartment_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})¶ Calls
change_migration_compartment()
and waits for theWorkRequest
to enter the given state(s).Parameters: - migration_id (str) –
(required) The OCID of the migration.
- change_migration_compartment_details (oci.application_migration.models.ChangeCompartmentDetails) – (required) The updated compartment details
- 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_migration_compartment()
- waiter_kwargs (dict) – A dictionary of keyword arguments to pass to the
oci.wait_until()
function. For example, you could passmax_interval_seconds
ormax_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
- migration_id (str) –
-
change_source_compartment_and_wait_for_state
(source_id, change_source_compartment_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})¶ Calls
change_source_compartment()
and waits for theWorkRequest
to enter the given state(s).Parameters: - source_id (str) –
(required) The OCID of the source.
- change_source_compartment_details (oci.application_migration.models.ChangeCompartmentDetails) – (required) The updated compartment details
- 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_source_compartment()
- waiter_kwargs (dict) – A dictionary of keyword arguments to pass to the
oci.wait_until()
function. For example, you could passmax_interval_seconds
ormax_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
- source_id (str) –
-
create_migration_and_wait_for_state
(create_migration_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})¶ Calls
create_migration()
and waits for theWorkRequest
to enter the given state(s).Parameters: - create_migration_details (oci.application_migration.models.CreateMigrationDetails) – (required) The properties for creating a migration.
- 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_migration()
- waiter_kwargs (dict) – A dictionary of keyword arguments to pass to the
oci.wait_until()
function. For example, you could passmax_interval_seconds
ormax_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_source_and_wait_for_state
(create_source_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})¶ Calls
create_source()
and waits for theWorkRequest
to enter the given state(s).Parameters: - create_source_details (oci.application_migration.models.CreateSourceDetails) – (required) The properties for creating a source.
- 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_source()
- waiter_kwargs (dict) – A dictionary of keyword arguments to pass to the
oci.wait_until()
function. For example, you could passmax_interval_seconds
ormax_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_migration_and_wait_for_state
(migration_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})¶ Calls
delete_migration()
and waits for theWorkRequest
to enter the given state(s).Parameters: - migration_id (str) –
(required) The OCID of the migration.
- 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_migration()
- waiter_kwargs (dict) – A dictionary of keyword arguments to pass to the
oci.wait_until()
function. For example, you could passmax_interval_seconds
ormax_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
- migration_id (str) –
-
delete_source_and_wait_for_state
(source_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})¶ Calls
delete_source()
and waits for theWorkRequest
to enter the given state(s).Parameters: - source_id (str) –
(required) The OCID of the source.
- 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_source()
- waiter_kwargs (dict) – A dictionary of keyword arguments to pass to the
oci.wait_until()
function. For example, you could passmax_interval_seconds
ormax_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
- source_id (str) –
-
migrate_application_and_wait_for_state
(migration_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})¶ Calls
migrate_application()
and waits for theWorkRequest
to enter the given state(s).Parameters: - migration_id (str) –
(required) The OCID of the migration.
- 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
migrate_application()
- waiter_kwargs (dict) – A dictionary of keyword arguments to pass to the
oci.wait_until()
function. For example, you could passmax_interval_seconds
ormax_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
- migration_id (str) –
-
update_migration_and_wait_for_state
(migration_id, update_migration_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})¶ Calls
update_migration()
and waits for theWorkRequest
to enter the given state(s).Parameters: - migration_id (str) –
(required) The OCID of the migration.
- update_migration_details (oci.application_migration.models.UpdateMigrationDetails) – (required) Updated configuration for the migration.
- 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_migration()
- waiter_kwargs (dict) – A dictionary of keyword arguments to pass to the
oci.wait_until()
function. For example, you could passmax_interval_seconds
ormax_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
- migration_id (str) –
-
update_source_and_wait_for_state
(source_id, update_source_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})¶ Calls
update_source()
and waits for theWorkRequest
to enter the given state(s).Parameters: - source_id (str) –
(required) The OCID of the source.
- update_source_details (oci.application_migration.models.UpdateSourceDetails) – (required) Updated configuration for the source.
- 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_source()
- waiter_kwargs (dict) – A dictionary of keyword arguments to pass to the
oci.wait_until()
function. For example, you could passmax_interval_seconds
ormax_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
- source_id (str) –
-