ReplicationProgress¶
-
class
oci.cloud_migrations.models.ReplicationProgress(**kwargs)¶ Bases:
objectProgress of a migration asset’s replication process.
Attributes
LAST_REPLICATION_STATUS_COMPLETEDA constant which can be used with the last_replication_status property of a ReplicationProgress. LAST_REPLICATION_STATUS_FAILEDA constant which can be used with the last_replication_status property of a ReplicationProgress. LAST_REPLICATION_STATUS_NONEA constant which can be used with the last_replication_status property of a ReplicationProgress. STATUS_IN_PROGRESSA constant which can be used with the status property of a ReplicationProgress. STATUS_NONEA constant which can be used with the status property of a ReplicationProgress. last_replication_errorGets the last_replication_error of this ReplicationProgress. last_replication_statusGets the last_replication_status of this ReplicationProgress. percentage[Required] Gets the percentage of this ReplicationProgress. statusGets the status of this ReplicationProgress. time_of_last_replication_endGets the time_of_last_replication_end of this ReplicationProgress. time_of_last_replication_successGets the time_of_last_replication_success of this ReplicationProgress. time_oflast_replication_startGets the time_oflast_replication_start of this ReplicationProgress. time_startedGets the time_started of this ReplicationProgress. Methods
__init__(**kwargs)Initializes a new ReplicationProgress object with values from keyword arguments. -
LAST_REPLICATION_STATUS_COMPLETED= 'COMPLETED'¶ A constant which can be used with the last_replication_status property of a ReplicationProgress. This constant has a value of “COMPLETED”
-
LAST_REPLICATION_STATUS_FAILED= 'FAILED'¶ A constant which can be used with the last_replication_status property of a ReplicationProgress. This constant has a value of “FAILED”
-
LAST_REPLICATION_STATUS_NONE= 'NONE'¶ A constant which can be used with the last_replication_status property of a ReplicationProgress. This constant has a value of “NONE”
-
STATUS_IN_PROGRESS= 'IN_PROGRESS'¶ A constant which can be used with the status property of a ReplicationProgress. This constant has a value of “IN_PROGRESS”
-
STATUS_NONE= 'NONE'¶ A constant which can be used with the status property of a ReplicationProgress. This constant has a value of “NONE”
-
__init__(**kwargs)¶ Initializes a new ReplicationProgress object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - percentage (int) – The value to assign to the percentage property of this ReplicationProgress.
- status (str) – The value to assign to the status property of this ReplicationProgress. Allowed values for this property are: “NONE”, “IN_PROGRESS”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- time_started (datetime) – The value to assign to the time_started property of this ReplicationProgress.
- time_oflast_replication_start (datetime) – The value to assign to the time_oflast_replication_start property of this ReplicationProgress.
- time_of_last_replication_end (datetime) – The value to assign to the time_of_last_replication_end property of this ReplicationProgress.
- time_of_last_replication_success (datetime) – The value to assign to the time_of_last_replication_success property of this ReplicationProgress.
- last_replication_status (str) – The value to assign to the last_replication_status property of this ReplicationProgress. Allowed values for this property are: “NONE”, “COMPLETED”, “FAILED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- last_replication_error (str) – The value to assign to the last_replication_error property of this ReplicationProgress.
-
last_replication_error¶ Gets the last_replication_error of this ReplicationProgress. Error message if the last finished replication failed.
Returns: The last_replication_error of this ReplicationProgress. Return type: str
-
last_replication_status¶ Gets the last_replication_status of this ReplicationProgress. Status of the last replication task. It can be Completed or Failed.
Allowed values for this property are: “NONE”, “COMPLETED”, “FAILED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The last_replication_status of this ReplicationProgress. Return type: str
-
percentage¶ [Required] Gets the percentage of this ReplicationProgress. Percentage of the current replication progress from 0 to 100.
Returns: The percentage of this ReplicationProgress. Return type: int
-
status¶ Gets the status of this ReplicationProgress. Status of the current replication progress. It can be None or InProgress.
Allowed values for this property are: “NONE”, “IN_PROGRESS”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The status of this ReplicationProgress. Return type: str
-
time_of_last_replication_end¶ Gets the time_of_last_replication_end of this ReplicationProgress. End time of the last replication process. It can be Completed or Failed.
Returns: The time_of_last_replication_end of this ReplicationProgress. Return type: datetime
-
time_of_last_replication_success¶ Gets the time_of_last_replication_success of this ReplicationProgress. End time of the last successful replication process, which has been completed.
Returns: The time_of_last_replication_success of this ReplicationProgress. Return type: datetime
-
time_oflast_replication_start¶ Gets the time_oflast_replication_start of this ReplicationProgress. Start time of the last replication process. It can be Completed or Failed.
Returns: The time_oflast_replication_start of this ReplicationProgress. Return type: datetime
-
time_started¶ Gets the time_started of this ReplicationProgress. Start time of the current replication process
Returns: The time_started of this ReplicationProgress. Return type: datetime
-