MigrationAsset

class oci.cloud_migrations.models.MigrationAsset(**kwargs)

Bases: object

Description of the migration asset.

Attributes

LIFECYCLE_STATE_ACTIVE A constant which can be used with the lifecycle_state property of a MigrationAsset.
LIFECYCLE_STATE_CREATING A constant which can be used with the lifecycle_state property of a MigrationAsset.
LIFECYCLE_STATE_DELETED A constant which can be used with the lifecycle_state property of a MigrationAsset.
LIFECYCLE_STATE_DELETING A constant which can be used with the lifecycle_state property of a MigrationAsset.
LIFECYCLE_STATE_FAILED A constant which can be used with the lifecycle_state property of a MigrationAsset.
LIFECYCLE_STATE_NEEDS_ATTENTION A constant which can be used with the lifecycle_state property of a MigrationAsset.
LIFECYCLE_STATE_UPDATING A constant which can be used with the lifecycle_state property of a MigrationAsset.
NOTIFICATIONS_OUT_OF_DATE A constant which can be used with the notifications property of a MigrationAsset.
NOTIFICATIONS_SOURCE_REMOVED A constant which can be used with the notifications property of a MigrationAsset.
availability_domain [Required] Gets the availability_domain of this MigrationAsset.
compartment_id Gets the compartment_id of this MigrationAsset.
depended_on_by Gets the depended_on_by of this MigrationAsset.
depends_on Gets the depends_on of this MigrationAsset.
display_name Gets the display_name of this MigrationAsset.
id [Required] Gets the id of this MigrationAsset.
lifecycle_details Gets the lifecycle_details of this MigrationAsset.
lifecycle_state [Required] Gets the lifecycle_state of this MigrationAsset.
migration_id [Required] Gets the migration_id of this MigrationAsset.
notifications Gets the notifications of this MigrationAsset.
parent_snapshot Gets the parent_snapshot of this MigrationAsset.
replication_compartment_id [Required] Gets the replication_compartment_id of this MigrationAsset.
replication_schedule_id Gets the replication_schedule_id of this MigrationAsset.
snap_shot_bucket_name [Required] Gets the snap_shot_bucket_name of this MigrationAsset.
snapshots Gets the snapshots of this MigrationAsset.
source_asset_data Gets the source_asset_data of this MigrationAsset.
source_asset_id Gets the source_asset_id of this MigrationAsset.
tenancy_id Gets the tenancy_id of this MigrationAsset.
time_created [Required] Gets the time_created of this MigrationAsset.
time_updated Gets the time_updated of this MigrationAsset.
type [Required] Gets the type of this MigrationAsset.

Methods

__init__(**kwargs) Initializes a new MigrationAsset object with values from keyword arguments.
LIFECYCLE_STATE_ACTIVE = 'ACTIVE'

A constant which can be used with the lifecycle_state property of a MigrationAsset. This constant has a value of “ACTIVE”

LIFECYCLE_STATE_CREATING = 'CREATING'

A constant which can be used with the lifecycle_state property of a MigrationAsset. This constant has a value of “CREATING”

LIFECYCLE_STATE_DELETED = 'DELETED'

A constant which can be used with the lifecycle_state property of a MigrationAsset. This constant has a value of “DELETED”

LIFECYCLE_STATE_DELETING = 'DELETING'

A constant which can be used with the lifecycle_state property of a MigrationAsset. This constant has a value of “DELETING”

LIFECYCLE_STATE_FAILED = 'FAILED'

A constant which can be used with the lifecycle_state property of a MigrationAsset. This constant has a value of “FAILED”

LIFECYCLE_STATE_NEEDS_ATTENTION = 'NEEDS_ATTENTION'

A constant which can be used with the lifecycle_state property of a MigrationAsset. This constant has a value of “NEEDS_ATTENTION”

LIFECYCLE_STATE_UPDATING = 'UPDATING'

A constant which can be used with the lifecycle_state property of a MigrationAsset. This constant has a value of “UPDATING”

NOTIFICATIONS_OUT_OF_DATE = 'OUT_OF_DATE'

A constant which can be used with the notifications property of a MigrationAsset. This constant has a value of “OUT_OF_DATE”

NOTIFICATIONS_SOURCE_REMOVED = 'SOURCE_REMOVED'

A constant which can be used with the notifications property of a MigrationAsset. This constant has a value of “SOURCE_REMOVED”

__init__(**kwargs)

Initializes a new MigrationAsset object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • id (str) – The value to assign to the id property of this MigrationAsset.
  • type (str) – The value to assign to the type property of this MigrationAsset.
  • display_name (str) – The value to assign to the display_name property of this MigrationAsset.
  • compartment_id (str) – The value to assign to the compartment_id property of this MigrationAsset.
  • lifecycle_state (str) – The value to assign to the lifecycle_state property of this MigrationAsset. Allowed values for this property are: “CREATING”, “UPDATING”, “NEEDS_ATTENTION”, “ACTIVE”, “DELETING”, “DELETED”, “FAILED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • lifecycle_details (str) – The value to assign to the lifecycle_details property of this MigrationAsset.
  • time_created (datetime) – The value to assign to the time_created property of this MigrationAsset.
  • time_updated (datetime) – The value to assign to the time_updated property of this MigrationAsset.
  • migration_id (str) – The value to assign to the migration_id property of this MigrationAsset.
  • snapshots (dict(str, HydratedVolume)) – The value to assign to the snapshots property of this MigrationAsset.
  • parent_snapshot (str) – The value to assign to the parent_snapshot property of this MigrationAsset.
  • source_asset_data (dict(str, object)) – The value to assign to the source_asset_data property of this MigrationAsset.
  • notifications (list[str]) – The value to assign to the notifications property of this MigrationAsset. Allowed values for items in this list are: “OUT_OF_DATE”, “SOURCE_REMOVED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • source_asset_id (str) – The value to assign to the source_asset_id property of this MigrationAsset.
  • replication_schedule_id (str) – The value to assign to the replication_schedule_id property of this MigrationAsset.
  • availability_domain (str) – The value to assign to the availability_domain property of this MigrationAsset.
  • replication_compartment_id (str) – The value to assign to the replication_compartment_id property of this MigrationAsset.
  • tenancy_id (str) – The value to assign to the tenancy_id property of this MigrationAsset.
  • snap_shot_bucket_name (str) – The value to assign to the snap_shot_bucket_name property of this MigrationAsset.
  • depended_on_by (list[str]) – The value to assign to the depended_on_by property of this MigrationAsset.
  • depends_on (list[str]) – The value to assign to the depends_on property of this MigrationAsset.
availability_domain

[Required] Gets the availability_domain of this MigrationAsset. Availability domain

Returns:The availability_domain of this MigrationAsset.
Return type:str
compartment_id

Gets the compartment_id of this MigrationAsset. Compartment Identifier

Returns:The compartment_id of this MigrationAsset.
Return type:str
depended_on_by

Gets the depended_on_by of this MigrationAsset. List of migration assets that depend on the asset.

Returns:The depended_on_by of this MigrationAsset.
Return type:list[str]
depends_on

Gets the depends_on of this MigrationAsset. List of migration assets that depends on the asset.

Returns:The depends_on of this MigrationAsset.
Return type:list[str]
display_name

Gets the display_name of this MigrationAsset. A user-friendly name. Does not have to be unique, and it’s changeable. Avoid entering confidential information.

Returns:The display_name of this MigrationAsset.
Return type:str
id

[Required] Gets the id of this MigrationAsset. Asset ID generated by mirgration service. It is used in the mirgration service pipeline.

Returns:The id of this MigrationAsset.
Return type:str
lifecycle_details

Gets the lifecycle_details of this MigrationAsset. A message describing the current state in more detail. For example, it can be used to provide actionable information for a resource in Failed state.

Returns:The lifecycle_details of this MigrationAsset.
Return type:str
lifecycle_state

[Required] Gets the lifecycle_state of this MigrationAsset. The current state of the migration asset.

Allowed values for this property are: “CREATING”, “UPDATING”, “NEEDS_ATTENTION”, “ACTIVE”, “DELETING”, “DELETED”, “FAILED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The lifecycle_state of this MigrationAsset.
Return type:str
migration_id

[Required] Gets the migration_id of this MigrationAsset. OCID of the associated migration.

Returns:The migration_id of this MigrationAsset.
Return type:str
notifications

Gets the notifications of this MigrationAsset. List of notifications

Allowed values for items in this list are: “OUT_OF_DATE”, “SOURCE_REMOVED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The notifications of this MigrationAsset.
Return type:list[str]
parent_snapshot

Gets the parent_snapshot of this MigrationAsset. The parent snapshot of the migration asset to be used by the replication task.

Returns:The parent_snapshot of this MigrationAsset.
Return type:str
replication_compartment_id

[Required] Gets the replication_compartment_id of this MigrationAsset. Replication compartment identifier

Returns:The replication_compartment_id of this MigrationAsset.
Return type:str
replication_schedule_id

Gets the replication_schedule_id of this MigrationAsset. Replication schedule identifier

Returns:The replication_schedule_id of this MigrationAsset.
Return type:str
snap_shot_bucket_name

[Required] Gets the snap_shot_bucket_name of this MigrationAsset. Name of snapshot bucket

Returns:The snap_shot_bucket_name of this MigrationAsset.
Return type:str
snapshots

Gets the snapshots of this MigrationAsset. Key-value pair representing disks ID mapped to the OCIDs of replicated or hydration server volume snapshots. Example: {“bar-key”: “value”}

Returns:The snapshots of this MigrationAsset.
Return type:dict(str, HydratedVolume)
source_asset_data

Gets the source_asset_data of this MigrationAsset. Key-value pair representing asset metadata keys and values scoped to a namespace. Example: {“bar-key”: “value”}

Returns:The source_asset_data of this MigrationAsset.
Return type:dict(str, object)
source_asset_id

Gets the source_asset_id of this MigrationAsset. OCID that is referenced to an asset for an inventory.

Returns:The source_asset_id of this MigrationAsset.
Return type:str
tenancy_id

Gets the tenancy_id of this MigrationAsset. Tenancy identifier

Returns:The tenancy_id of this MigrationAsset.
Return type:str
time_created

[Required] Gets the time_created of this MigrationAsset. The time when the migration asset was created. An RFC3339 formatted datetime string.

Returns:The time_created of this MigrationAsset.
Return type:datetime
time_updated

Gets the time_updated of this MigrationAsset. The time when the migration asset was updated. An RFC3339 formatted datetime string.

Returns:The time_updated of this MigrationAsset.
Return type:datetime
type

[Required] Gets the type of this MigrationAsset. The type of asset referenced for inventory.

Returns:The type of this MigrationAsset.
Return type:str