| Server IP : 162.144.4.212 / Your IP : 216.73.216.108 Web Server : Apache System : Linux gator2125.hostgator.com 5.14.0-162.23.1.9991722448259.nf.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 31 18:11:45 UTC 2024 x86_64 User : cozeellc ( 2980) PHP Version : 8.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3.9/site-packages/oci/database_migration/models/ |
Upload File : |
# coding: utf-8
# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20230518
from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
from oci.decorators import init_model_state_from_kwargs
@init_model_state_from_kwargs
class MigrationJobProgressSummary(object):
"""
Summary of the progress of a Migration Job.
"""
#: A constant which can be used with the current_phase property of a MigrationJobProgressSummary.
#: This constant has a value of "ODMS_VALIDATE_TGT"
CURRENT_PHASE_ODMS_VALIDATE_TGT = "ODMS_VALIDATE_TGT"
#: A constant which can be used with the current_phase property of a MigrationJobProgressSummary.
#: This constant has a value of "ODMS_VALIDATE_SRC"
CURRENT_PHASE_ODMS_VALIDATE_SRC = "ODMS_VALIDATE_SRC"
#: A constant which can be used with the current_phase property of a MigrationJobProgressSummary.
#: This constant has a value of "ODMS_VALIDATE_PREMIGRATION_ADVISOR"
CURRENT_PHASE_ODMS_VALIDATE_PREMIGRATION_ADVISOR = "ODMS_VALIDATE_PREMIGRATION_ADVISOR"
#: A constant which can be used with the current_phase property of a MigrationJobProgressSummary.
#: This constant has a value of "ODMS_VALIDATE_GG_HUB"
CURRENT_PHASE_ODMS_VALIDATE_GG_HUB = "ODMS_VALIDATE_GG_HUB"
#: A constant which can be used with the current_phase property of a MigrationJobProgressSummary.
#: This constant has a value of "ODMS_VALIDATE_DATAPUMP_SETTINGS"
CURRENT_PHASE_ODMS_VALIDATE_DATAPUMP_SETTINGS = "ODMS_VALIDATE_DATAPUMP_SETTINGS"
#: A constant which can be used with the current_phase property of a MigrationJobProgressSummary.
#: This constant has a value of "ODMS_VALIDATE_DATAPUMP_SETTINGS_SRC"
CURRENT_PHASE_ODMS_VALIDATE_DATAPUMP_SETTINGS_SRC = "ODMS_VALIDATE_DATAPUMP_SETTINGS_SRC"
#: A constant which can be used with the current_phase property of a MigrationJobProgressSummary.
#: This constant has a value of "ODMS_VALIDATE_DATAPUMP_SETTINGS_TGT"
CURRENT_PHASE_ODMS_VALIDATE_DATAPUMP_SETTINGS_TGT = "ODMS_VALIDATE_DATAPUMP_SETTINGS_TGT"
#: A constant which can be used with the current_phase property of a MigrationJobProgressSummary.
#: This constant has a value of "ODMS_VALIDATE_DATAPUMP_SRC"
CURRENT_PHASE_ODMS_VALIDATE_DATAPUMP_SRC = "ODMS_VALIDATE_DATAPUMP_SRC"
#: A constant which can be used with the current_phase property of a MigrationJobProgressSummary.
#: This constant has a value of "ODMS_VALIDATE_DATAPUMP_ESTIMATE_SRC"
CURRENT_PHASE_ODMS_VALIDATE_DATAPUMP_ESTIMATE_SRC = "ODMS_VALIDATE_DATAPUMP_ESTIMATE_SRC"
#: A constant which can be used with the current_phase property of a MigrationJobProgressSummary.
#: This constant has a value of "ODMS_FETCH_METADATA_SRC"
CURRENT_PHASE_ODMS_FETCH_METADATA_SRC = "ODMS_FETCH_METADATA_SRC"
#: A constant which can be used with the current_phase property of a MigrationJobProgressSummary.
#: This constant has a value of "ODMS_FETCH_METADATA_TGT"
CURRENT_PHASE_ODMS_FETCH_METADATA_TGT = "ODMS_FETCH_METADATA_TGT"
#: A constant which can be used with the current_phase property of a MigrationJobProgressSummary.
#: This constant has a value of "ODMS_VALIDATE"
CURRENT_PHASE_ODMS_VALIDATE = "ODMS_VALIDATE"
#: A constant which can be used with the current_phase property of a MigrationJobProgressSummary.
#: This constant has a value of "ODMS_PREPARE"
CURRENT_PHASE_ODMS_PREPARE = "ODMS_PREPARE"
#: A constant which can be used with the current_phase property of a MigrationJobProgressSummary.
#: This constant has a value of "ODMS_INITIALIZE_REPLICATION_INFRASTRUCTURE"
CURRENT_PHASE_ODMS_INITIALIZE_REPLICATION_INFRASTRUCTURE = "ODMS_INITIALIZE_REPLICATION_INFRASTRUCTURE"
#: A constant which can be used with the current_phase property of a MigrationJobProgressSummary.
#: This constant has a value of "ODMS_INITIAL_LOAD_EXPORT"
CURRENT_PHASE_ODMS_INITIAL_LOAD_EXPORT = "ODMS_INITIAL_LOAD_EXPORT"
#: A constant which can be used with the current_phase property of a MigrationJobProgressSummary.
#: This constant has a value of "ODMS_DATA_UPLOAD"
CURRENT_PHASE_ODMS_DATA_UPLOAD = "ODMS_DATA_UPLOAD"
#: A constant which can be used with the current_phase property of a MigrationJobProgressSummary.
#: This constant has a value of "ODMS_INITIAL_LOAD_EXPORT_DATA_UPLOAD"
CURRENT_PHASE_ODMS_INITIAL_LOAD_EXPORT_DATA_UPLOAD = "ODMS_INITIAL_LOAD_EXPORT_DATA_UPLOAD"
#: A constant which can be used with the current_phase property of a MigrationJobProgressSummary.
#: This constant has a value of "ODMS_INITIAL_LOAD_IMPORT"
CURRENT_PHASE_ODMS_INITIAL_LOAD_IMPORT = "ODMS_INITIAL_LOAD_IMPORT"
#: A constant which can be used with the current_phase property of a MigrationJobProgressSummary.
#: This constant has a value of "ODMS_POST_INITIAL_LOAD"
CURRENT_PHASE_ODMS_POST_INITIAL_LOAD = "ODMS_POST_INITIAL_LOAD"
#: A constant which can be used with the current_phase property of a MigrationJobProgressSummary.
#: This constant has a value of "ODMS_PREPARE_REPLICATION_TARGET"
CURRENT_PHASE_ODMS_PREPARE_REPLICATION_TARGET = "ODMS_PREPARE_REPLICATION_TARGET"
#: A constant which can be used with the current_phase property of a MigrationJobProgressSummary.
#: This constant has a value of "ODMS_MONITOR_REPLICATION_LAG"
CURRENT_PHASE_ODMS_MONITOR_REPLICATION_LAG = "ODMS_MONITOR_REPLICATION_LAG"
#: A constant which can be used with the current_phase property of a MigrationJobProgressSummary.
#: This constant has a value of "ODMS_SWITCHOVER"
CURRENT_PHASE_ODMS_SWITCHOVER = "ODMS_SWITCHOVER"
#: A constant which can be used with the current_phase property of a MigrationJobProgressSummary.
#: This constant has a value of "ODMS_CLEANUP"
CURRENT_PHASE_ODMS_CLEANUP = "ODMS_CLEANUP"
#: A constant which can be used with the current_status property of a MigrationJobProgressSummary.
#: This constant has a value of "PENDING"
CURRENT_STATUS_PENDING = "PENDING"
#: A constant which can be used with the current_status property of a MigrationJobProgressSummary.
#: This constant has a value of "STARTED"
CURRENT_STATUS_STARTED = "STARTED"
#: A constant which can be used with the current_status property of a MigrationJobProgressSummary.
#: This constant has a value of "COMPLETED"
CURRENT_STATUS_COMPLETED = "COMPLETED"
#: A constant which can be used with the current_status property of a MigrationJobProgressSummary.
#: This constant has a value of "FAILED"
CURRENT_STATUS_FAILED = "FAILED"
def __init__(self, **kwargs):
"""
Initializes a new MigrationJobProgressSummary object with values from keyword arguments.
The following keyword arguments are supported (corresponding to the getters/setters of this class):
:param current_phase:
The value to assign to the current_phase property of this MigrationJobProgressSummary.
Allowed values for this property are: "ODMS_VALIDATE_TGT", "ODMS_VALIDATE_SRC", "ODMS_VALIDATE_PREMIGRATION_ADVISOR", "ODMS_VALIDATE_GG_HUB", "ODMS_VALIDATE_DATAPUMP_SETTINGS", "ODMS_VALIDATE_DATAPUMP_SETTINGS_SRC", "ODMS_VALIDATE_DATAPUMP_SETTINGS_TGT", "ODMS_VALIDATE_DATAPUMP_SRC", "ODMS_VALIDATE_DATAPUMP_ESTIMATE_SRC", "ODMS_FETCH_METADATA_SRC", "ODMS_FETCH_METADATA_TGT", "ODMS_VALIDATE", "ODMS_PREPARE", "ODMS_INITIALIZE_REPLICATION_INFRASTRUCTURE", "ODMS_INITIAL_LOAD_EXPORT", "ODMS_DATA_UPLOAD", "ODMS_INITIAL_LOAD_EXPORT_DATA_UPLOAD", "ODMS_INITIAL_LOAD_IMPORT", "ODMS_POST_INITIAL_LOAD", "ODMS_PREPARE_REPLICATION_TARGET", "ODMS_MONITOR_REPLICATION_LAG", "ODMS_SWITCHOVER", "ODMS_CLEANUP", 'UNKNOWN_ENUM_VALUE'.
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
:type current_phase: str
:param current_status:
The value to assign to the current_status property of this MigrationJobProgressSummary.
Allowed values for this property are: "PENDING", "STARTED", "COMPLETED", "FAILED", 'UNKNOWN_ENUM_VALUE'.
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
:type current_status: str
:param job_progress:
The value to assign to the job_progress property of this MigrationJobProgressSummary.
:type job_progress: int
"""
self.swagger_types = {
'current_phase': 'str',
'current_status': 'str',
'job_progress': 'int'
}
self.attribute_map = {
'current_phase': 'currentPhase',
'current_status': 'currentStatus',
'job_progress': 'jobProgress'
}
self._current_phase = None
self._current_status = None
self._job_progress = None
@property
def current_phase(self):
"""
**[Required]** Gets the current_phase of this MigrationJobProgressSummary.
Current phase of the job.
Allowed values for this property are: "ODMS_VALIDATE_TGT", "ODMS_VALIDATE_SRC", "ODMS_VALIDATE_PREMIGRATION_ADVISOR", "ODMS_VALIDATE_GG_HUB", "ODMS_VALIDATE_DATAPUMP_SETTINGS", "ODMS_VALIDATE_DATAPUMP_SETTINGS_SRC", "ODMS_VALIDATE_DATAPUMP_SETTINGS_TGT", "ODMS_VALIDATE_DATAPUMP_SRC", "ODMS_VALIDATE_DATAPUMP_ESTIMATE_SRC", "ODMS_FETCH_METADATA_SRC", "ODMS_FETCH_METADATA_TGT", "ODMS_VALIDATE", "ODMS_PREPARE", "ODMS_INITIALIZE_REPLICATION_INFRASTRUCTURE", "ODMS_INITIAL_LOAD_EXPORT", "ODMS_DATA_UPLOAD", "ODMS_INITIAL_LOAD_EXPORT_DATA_UPLOAD", "ODMS_INITIAL_LOAD_IMPORT", "ODMS_POST_INITIAL_LOAD", "ODMS_PREPARE_REPLICATION_TARGET", "ODMS_MONITOR_REPLICATION_LAG", "ODMS_SWITCHOVER", "ODMS_CLEANUP", 'UNKNOWN_ENUM_VALUE'.
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
:return: The current_phase of this MigrationJobProgressSummary.
:rtype: str
"""
return self._current_phase
@current_phase.setter
def current_phase(self, current_phase):
"""
Sets the current_phase of this MigrationJobProgressSummary.
Current phase of the job.
:param current_phase: The current_phase of this MigrationJobProgressSummary.
:type: str
"""
allowed_values = ["ODMS_VALIDATE_TGT", "ODMS_VALIDATE_SRC", "ODMS_VALIDATE_PREMIGRATION_ADVISOR", "ODMS_VALIDATE_GG_HUB", "ODMS_VALIDATE_DATAPUMP_SETTINGS", "ODMS_VALIDATE_DATAPUMP_SETTINGS_SRC", "ODMS_VALIDATE_DATAPUMP_SETTINGS_TGT", "ODMS_VALIDATE_DATAPUMP_SRC", "ODMS_VALIDATE_DATAPUMP_ESTIMATE_SRC", "ODMS_FETCH_METADATA_SRC", "ODMS_FETCH_METADATA_TGT", "ODMS_VALIDATE", "ODMS_PREPARE", "ODMS_INITIALIZE_REPLICATION_INFRASTRUCTURE", "ODMS_INITIAL_LOAD_EXPORT", "ODMS_DATA_UPLOAD", "ODMS_INITIAL_LOAD_EXPORT_DATA_UPLOAD", "ODMS_INITIAL_LOAD_IMPORT", "ODMS_POST_INITIAL_LOAD", "ODMS_PREPARE_REPLICATION_TARGET", "ODMS_MONITOR_REPLICATION_LAG", "ODMS_SWITCHOVER", "ODMS_CLEANUP"]
if not value_allowed_none_or_none_sentinel(current_phase, allowed_values):
current_phase = 'UNKNOWN_ENUM_VALUE'
self._current_phase = current_phase
@property
def current_status(self):
"""
**[Required]** Gets the current_status of this MigrationJobProgressSummary.
Current status of the job.
Allowed values for this property are: "PENDING", "STARTED", "COMPLETED", "FAILED", 'UNKNOWN_ENUM_VALUE'.
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
:return: The current_status of this MigrationJobProgressSummary.
:rtype: str
"""
return self._current_status
@current_status.setter
def current_status(self, current_status):
"""
Sets the current_status of this MigrationJobProgressSummary.
Current status of the job.
:param current_status: The current_status of this MigrationJobProgressSummary.
:type: str
"""
allowed_values = ["PENDING", "STARTED", "COMPLETED", "FAILED"]
if not value_allowed_none_or_none_sentinel(current_status, allowed_values):
current_status = 'UNKNOWN_ENUM_VALUE'
self._current_status = current_status
@property
def job_progress(self):
"""
**[Required]** Gets the job_progress of this MigrationJobProgressSummary.
Job progress percentage (0 - 100)
:return: The job_progress of this MigrationJobProgressSummary.
:rtype: int
"""
return self._job_progress
@job_progress.setter
def job_progress(self, job_progress):
"""
Sets the job_progress of this MigrationJobProgressSummary.
Job progress percentage (0 - 100)
:param job_progress: The job_progress of this MigrationJobProgressSummary.
:type: int
"""
self._job_progress = job_progress
def __repr__(self):
return formatted_flat_dict(self)
def __eq__(self, other):
if other is None:
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
return not self == other