Job¶
-
class
oci.database_migration.models.
Job
(**kwargs)¶ Bases:
object
Results of a Database Connection search. Contains DatabaseConnectionSummary items.
Attributes
LIFECYCLE_STATE_ACCEPTED
A constant which can be used with the lifecycle_state property of a Job. LIFECYCLE_STATE_CANCELED
A constant which can be used with the lifecycle_state property of a Job. LIFECYCLE_STATE_CANCELING
A constant which can be used with the lifecycle_state property of a Job. LIFECYCLE_STATE_FAILED
A constant which can be used with the lifecycle_state property of a Job. LIFECYCLE_STATE_IN_PROGRESS
A constant which can be used with the lifecycle_state property of a Job. LIFECYCLE_STATE_SUCCEEDED
A constant which can be used with the lifecycle_state property of a Job. LIFECYCLE_STATE_TERMINATED
A constant which can be used with the lifecycle_state property of a Job. LIFECYCLE_STATE_UNKNOWN
A constant which can be used with the lifecycle_state property of a Job. LIFECYCLE_STATE_WAITING
A constant which can be used with the lifecycle_state property of a Job. TYPE_EVALUATION
A constant which can be used with the type property of a Job. TYPE_MIGRATION
A constant which can be used with the type property of a Job. defined_tags
Gets the defined_tags of this Job. display_name
[Required] Gets the display_name of this Job. freeform_tags
Gets the freeform_tags of this Job. id
[Required] Gets the id of this Job. lifecycle_details
Gets the lifecycle_details of this Job. lifecycle_state
[Required] Gets the lifecycle_state of this Job. migration_id
[Required] Gets the migration_id of this Job. parameter_file_versions
Gets the parameter_file_versions of this Job. progress
Gets the progress of this Job. system_tags
Gets the system_tags of this Job. time_created
[Required] Gets the time_created of this Job. time_updated
Gets the time_updated of this Job. type
[Required] Gets the type of this Job. unsupported_objects
Gets the unsupported_objects of this Job. Methods
__init__
(**kwargs)Initializes a new Job object with values from keyword arguments. -
LIFECYCLE_STATE_ACCEPTED
= 'ACCEPTED'¶ A constant which can be used with the lifecycle_state property of a Job. This constant has a value of “ACCEPTED”
-
LIFECYCLE_STATE_CANCELED
= 'CANCELED'¶ A constant which can be used with the lifecycle_state property of a Job. This constant has a value of “CANCELED”
-
LIFECYCLE_STATE_CANCELING
= 'CANCELING'¶ A constant which can be used with the lifecycle_state property of a Job. This constant has a value of “CANCELING”
-
LIFECYCLE_STATE_FAILED
= 'FAILED'¶ A constant which can be used with the lifecycle_state property of a Job. This constant has a value of “FAILED”
-
LIFECYCLE_STATE_IN_PROGRESS
= 'IN_PROGRESS'¶ A constant which can be used with the lifecycle_state property of a Job. This constant has a value of “IN_PROGRESS”
-
LIFECYCLE_STATE_SUCCEEDED
= 'SUCCEEDED'¶ A constant which can be used with the lifecycle_state property of a Job. This constant has a value of “SUCCEEDED”
-
LIFECYCLE_STATE_TERMINATED
= 'TERMINATED'¶ A constant which can be used with the lifecycle_state property of a Job. This constant has a value of “TERMINATED”
-
LIFECYCLE_STATE_UNKNOWN
= 'UNKNOWN'¶ A constant which can be used with the lifecycle_state property of a Job. This constant has a value of “UNKNOWN”
-
LIFECYCLE_STATE_WAITING
= 'WAITING'¶ A constant which can be used with the lifecycle_state property of a Job. This constant has a value of “WAITING”
-
TYPE_EVALUATION
= 'EVALUATION'¶ A constant which can be used with the type property of a Job. This constant has a value of “EVALUATION”
-
TYPE_MIGRATION
= 'MIGRATION'¶ A constant which can be used with the type property of a Job. This constant has a value of “MIGRATION”
-
__init__
(**kwargs)¶ Initializes a new Job 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 Job.
- display_name (str) – The value to assign to the display_name property of this Job.
- migration_id (str) – The value to assign to the migration_id property of this Job.
- type (str) – The value to assign to the type property of this Job. Allowed values for this property are: “EVALUATION”, “MIGRATION”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- time_created (datetime) – The value to assign to the time_created property of this Job.
- time_updated (datetime) – The value to assign to the time_updated property of this Job.
- progress (oci.database_migration.models.MigrationJobProgressResource) – The value to assign to the progress property of this Job.
- unsupported_objects (list[oci.database_migration.models.UnsupportedDatabaseObject]) – The value to assign to the unsupported_objects property of this Job.
- lifecycle_state (str) – The value to assign to the lifecycle_state property of this Job. Allowed values for this property are: “ACCEPTED”, “IN_PROGRESS”, “UNKNOWN”, “TERMINATED”, “FAILED”, “SUCCEEDED”, “WAITING”, “CANCELING”, “CANCELED”, ‘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 Job.
- parameter_file_versions (list[oci.database_migration.models.ParameterFileVersionSummary]) – The value to assign to the parameter_file_versions property of this Job.
- freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this Job.
- defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this Job.
- system_tags (dict(str, dict(str, object))) – The value to assign to the system_tags property of this Job.
Gets the defined_tags of this Job. Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {“foo-namespace”: {“bar-key”: “value”}}
Returns: The defined_tags of this Job. Return type: dict(str, dict(str, object))
-
display_name
¶ [Required] Gets the display_name of this Job. Name of the job.
Returns: The display_name of this Job. Return type: str
Gets the freeform_tags of this Job. Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {“Department”: “Finance”}
Returns: The freeform_tags of this Job. Return type: dict(str, str)
-
id
¶ [Required] Gets the id of this Job. The OCID of the Migration Job.
Returns: The id of this Job. Return type: str
-
lifecycle_details
¶ Gets the lifecycle_details of this Job. A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
Returns: The lifecycle_details of this Job. Return type: str
-
lifecycle_state
¶ [Required] Gets the lifecycle_state of this Job. The current state of the migration job.
Allowed values for this property are: “ACCEPTED”, “IN_PROGRESS”, “UNKNOWN”, “TERMINATED”, “FAILED”, “SUCCEEDED”, “WAITING”, “CANCELING”, “CANCELED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The lifecycle_state of this Job. Return type: str
-
migration_id
¶ [Required] Gets the migration_id of this Job. The OCID of the Migration that this job belongs to.
Returns: The migration_id of this Job. Return type: str
-
parameter_file_versions
¶ Gets the parameter_file_versions of this Job. A list of parameter file versions that can be viewed or edited for the current job.
Returns: The parameter_file_versions of this Job. Return type: list[oci.database_migration.models.ParameterFileVersionSummary]
-
progress
¶ Gets the progress of this Job.
Returns: The progress of this Job. Return type: oci.database_migration.models.MigrationJobProgressResource
Gets the system_tags of this Job. Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {“orcl-cloud”: {“free-tier-retained”: “true”}}
Returns: The system_tags of this Job. Return type: dict(str, dict(str, object))
-
time_created
¶ [Required] Gets the time_created of this Job. The time the Migration Job was created. An RFC3339 formatted datetime string
Returns: The time_created of this Job. Return type: datetime
-
time_updated
¶ Gets the time_updated of this Job. The time the Migration Job was last updated. An RFC3339 formatted datetime string
Returns: The time_updated of this Job. Return type: datetime
-
type
¶ [Required] Gets the type of this Job. The job type.
Allowed values for this property are: “EVALUATION”, “MIGRATION”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The type of this Job. Return type: str
-
unsupported_objects
¶ Gets the unsupported_objects of this Job. Database objects not supported.
Returns: The unsupported_objects of this Job. Return type: list[oci.database_migration.models.UnsupportedDatabaseObject]
-