MigrationClientCompositeOperations

class oci.cloud_migrations.MigrationClientCompositeOperations(client, **kwargs)

This class provides a wrapper around MigrationClient 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 MigrationClientCompositeOperations object
change_migration_compartment_and_wait_for_state(…) Calls change_migration_compartment() and waits for the WorkRequest to enter the given state(s).
change_migration_plan_compartment_and_wait_for_state(…) Calls change_migration_plan_compartment() and waits for the WorkRequest to enter the given state(s).
change_replication_schedule_compartment_and_wait_for_state(…) Calls change_replication_schedule_compartment() and waits for the WorkRequest to enter the given state(s).
create_migration_and_wait_for_state(…[, …]) Calls create_migration() and waits for the Migration acted upon to enter the given state(s).
create_migration_asset_and_wait_for_state(…) Calls create_migration_asset() and waits for the WorkRequest to enter the given state(s).
create_migration_plan_and_wait_for_state(…) Calls create_migration_plan() and waits for the WorkRequest to enter the given state(s).
create_replication_schedule_and_wait_for_state(…) Calls create_replication_schedule() and waits for the WorkRequest to enter the given state(s).
create_target_asset_and_wait_for_state(…) Calls create_target_asset() and waits for the WorkRequest to enter the given state(s).
delete_migration_and_wait_for_state(migration_id) Calls delete_migration() and waits for the WorkRequest to enter the given state(s).
delete_migration_asset_and_wait_for_state(…) Calls delete_migration_asset() and waits for the WorkRequest to enter the given state(s).
delete_migration_plan_and_wait_for_state(…) Calls delete_migration_plan() and waits for the WorkRequest to enter the given state(s).
delete_replication_schedule_and_wait_for_state(…) Calls delete_replication_schedule() and waits for the WorkRequest to enter the given state(s).
delete_target_asset_and_wait_for_state(…) Calls delete_target_asset() and waits for the WorkRequest to enter the given state(s).
execute_migration_plan_and_wait_for_state(…) Calls execute_migration_plan() and waits for the WorkRequest to enter the given state(s).
import_migration_plan_and_wait_for_state(…) Calls import_migration_plan() and waits for the WorkRequest to enter the given state(s).
refresh_migration_and_wait_for_state(…[, …]) Calls refresh_migration() and waits for the WorkRequest to enter the given state(s).
refresh_migration_asset_and_wait_for_state(…) Calls refresh_migration_asset() and waits for the WorkRequest to enter the given state(s).
refresh_migration_plan_and_wait_for_state(…) Calls refresh_migration_plan() and waits for the WorkRequest to enter the given state(s).
start_asset_replication_and_wait_for_state(…) Calls start_asset_replication() and waits for the WorkRequest to enter the given state(s).
start_migration_replication_and_wait_for_state(…) Calls start_migration_replication() and waits for the WorkRequest to enter the given state(s).
update_migration_and_wait_for_state(…[, …]) Calls update_migration() and waits for the Migration acted upon to enter the given state(s).
update_migration_asset_and_wait_for_state(…) Calls update_migration_asset() and waits for the MigrationAsset acted upon to enter the given state(s).
update_migration_plan_and_wait_for_state(…) Calls update_migration_plan() and waits for the WorkRequest to enter the given state(s).
update_replication_schedule_and_wait_for_state(…) Calls update_replication_schedule() and waits for the WorkRequest to enter the given state(s).
update_target_asset_and_wait_for_state(…) Calls update_target_asset() and waits for the WorkRequest to enter the given state(s).
__init__(client, **kwargs)

Creates a new MigrationClientCompositeOperations object

Parameters:client (MigrationClient) – 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 the WorkRequest to enter the given state(s).

Parameters:
  • migration_id (str) – (required) Unique migration identifier
  • change_migration_compartment_details (oci.cloud_migrations.models.ChangeMigrationCompartmentDetails) – (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_migration_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
change_migration_plan_compartment_and_wait_for_state(migration_plan_id, change_migration_plan_compartment_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

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

Parameters:
  • migration_plan_id (str) – (required) Unique migration plan identifier
  • change_migration_plan_compartment_details (oci.cloud_migrations.models.ChangeMigrationPlanCompartmentDetails) – (required) Details for the compartment move.
  • 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_plan_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
change_replication_schedule_compartment_and_wait_for_state(replication_schedule_id, change_replication_schedule_compartment_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

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

Parameters:
  • replication_schedule_id (str) – (required) Unique replication schedule identifier in path
  • change_replication_schedule_compartment_details (oci.cloud_migrations.models.ChangeReplicationScheduleCompartmentDetails) – (required) Details for the compartment move.
  • 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_replication_schedule_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_migration_and_wait_for_state(create_migration_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

Calls create_migration() and waits for the Migration acted upon to enter the given state(s).

Parameters:
  • create_migration_details (oci.cloud_migrations.models.CreateMigrationDetails) – (required) Details for the new migration.
  • 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_migration()
  • 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_migration_asset_and_wait_for_state(create_migration_asset_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

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

Parameters:
  • create_migration_asset_details (oci.cloud_migrations.models.CreateMigrationAssetDetails) – (required) Details for the new migration asset.
  • 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_asset()
  • 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_migration_plan_and_wait_for_state(create_migration_plan_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

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

Parameters:
  • create_migration_plan_details (oci.cloud_migrations.models.CreateMigrationPlanDetails) – (required) Details for the new migration plan.
  • 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_plan()
  • 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_replication_schedule_and_wait_for_state(create_replication_schedule_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

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

Parameters:
  • create_replication_schedule_details (oci.cloud_migrations.models.CreateReplicationScheduleDetails) – (required) Details for the new replication schedule.
  • 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_replication_schedule()
  • 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_target_asset_and_wait_for_state(create_target_asset_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

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

Parameters:
  • create_target_asset_details (oci.cloud_migrations.models.CreateTargetAssetDetails) – (required) Details for the new target asset.
  • 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_target_asset()
  • 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_migration_and_wait_for_state(migration_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

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

Parameters:
  • migration_id (str) – (required) Unique migration identifier
  • 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 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_migration_asset_and_wait_for_state(migration_asset_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

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

Parameters:
  • migration_asset_id (str) – (required) Unique migration asset identifier
  • 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_asset()
  • 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_migration_plan_and_wait_for_state(migration_plan_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

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

Parameters:
  • migration_plan_id (str) – (required) Unique migration plan identifier
  • 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_plan()
  • 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_replication_schedule_and_wait_for_state(replication_schedule_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

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

Parameters:
  • replication_schedule_id (str) – (required) Unique replication schedule identifier in path
  • 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_replication_schedule()
  • 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_target_asset_and_wait_for_state(target_asset_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

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

Parameters:
  • target_asset_id (str) – (required) Unique target asset identifier
  • 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_target_asset()
  • 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
execute_migration_plan_and_wait_for_state(migration_plan_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

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

Parameters:
  • migration_plan_id (str) – (required) Unique migration plan identifier
  • 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 execute_migration_plan()
  • 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
import_migration_plan_and_wait_for_state(migration_plan_id, import_migration_plan_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

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

Parameters:
  • migration_plan_id (str) – (required) Unique migration plan identifier
  • import_migration_plan_details (stream) – (required) The csv file to be uploaded.
  • 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 import_migration_plan()
  • 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
refresh_migration_and_wait_for_state(migration_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

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

Parameters:
  • migration_id (str) – (required) Unique migration identifier
  • 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 refresh_migration()
  • 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
refresh_migration_asset_and_wait_for_state(migration_asset_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

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

Parameters:
  • migration_asset_id (str) – (required) Unique migration asset identifier
  • 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 refresh_migration_asset()
  • 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
refresh_migration_plan_and_wait_for_state(migration_plan_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

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

Parameters:
  • migration_plan_id (str) – (required) Unique migration plan identifier
  • 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 refresh_migration_plan()
  • 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
start_asset_replication_and_wait_for_state(migration_asset_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

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

Parameters:
  • migration_asset_id (str) – (required) Unique migration asset identifier
  • 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 start_asset_replication()
  • 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
start_migration_replication_and_wait_for_state(migration_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

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

Parameters:
  • migration_id (str) – (required) Unique migration identifier
  • 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 start_migration_replication()
  • 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_migration_and_wait_for_state(migration_id, update_migration_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

Calls update_migration() and waits for the Migration acted upon to enter the given state(s).

Parameters:
  • migration_id (str) – (required) Unique migration identifier
  • update_migration_details (oci.cloud_migrations.models.UpdateMigrationDetails) – (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_migration()
  • 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_migration_asset_and_wait_for_state(migration_asset_id, update_migration_asset_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

Calls update_migration_asset() and waits for the MigrationAsset acted upon to enter the given state(s).

Parameters:
  • migration_asset_id (str) – (required) Unique migration asset identifier
  • update_migration_asset_details (oci.cloud_migrations.models.UpdateMigrationAssetDetails) – (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_migration_asset()
  • 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_migration_plan_and_wait_for_state(migration_plan_id, update_migration_plan_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

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

Parameters:
  • migration_plan_id (str) – (required) Unique migration plan identifier
  • update_migration_plan_details (oci.cloud_migrations.models.UpdateMigrationPlanDetails) – (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_migration_plan()
  • 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_replication_schedule_and_wait_for_state(replication_schedule_id, update_replication_schedule_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

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

Parameters:
  • replication_schedule_id (str) – (required) Unique replication schedule identifier in path
  • update_replication_schedule_details (oci.cloud_migrations.models.UpdateReplicationScheduleDetails) – (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_replication_schedule()
  • 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_target_asset_and_wait_for_state(target_asset_id, update_target_asset_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

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

Parameters:
  • target_asset_id (str) – (required) Unique target asset identifier
  • update_target_asset_details (oci.cloud_migrations.models.UpdateTargetAssetDetails) – (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_target_asset()
  • 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