WorkRequestSummary¶
-
class
oci.mysql.models.WorkRequestSummary(**kwargs)¶ Bases:
objectThe status of an asynchronous task in the system.
Attributes
OPERATION_TYPE_ADD_HEATWAVE_CLUSTERA constant which can be used with the operation_type property of a WorkRequestSummary. OPERATION_TYPE_COPY_BACKUPA constant which can be used with the operation_type property of a WorkRequestSummary. OPERATION_TYPE_CREATE_BACKUPA constant which can be used with the operation_type property of a WorkRequestSummary. OPERATION_TYPE_CREATE_CHANNELA constant which can be used with the operation_type property of a WorkRequestSummary. OPERATION_TYPE_CREATE_DBSYSTEMA constant which can be used with the operation_type property of a WorkRequestSummary. OPERATION_TYPE_CREATE_REPLICAA constant which can be used with the operation_type property of a WorkRequestSummary. OPERATION_TYPE_DELETE_BACKUPA constant which can be used with the operation_type property of a WorkRequestSummary. OPERATION_TYPE_DELETE_CHANNELA constant which can be used with the operation_type property of a WorkRequestSummary. OPERATION_TYPE_DELETE_DBSYSTEMA constant which can be used with the operation_type property of a WorkRequestSummary. OPERATION_TYPE_DELETE_HEATWAVE_CLUSTERA constant which can be used with the operation_type property of a WorkRequestSummary. OPERATION_TYPE_DELETE_REPLICAA constant which can be used with the operation_type property of a WorkRequestSummary. OPERATION_TYPE_GENERATE_HEATWAVE_CLUSTER_MEMORY_ESTIMATEA constant which can be used with the operation_type property of a WorkRequestSummary. OPERATION_TYPE_RESET_CHANNELA constant which can be used with the operation_type property of a WorkRequestSummary. OPERATION_TYPE_RESTART_DBSYSTEMA constant which can be used with the operation_type property of a WorkRequestSummary. OPERATION_TYPE_RESTART_HEATWAVE_CLUSTERA constant which can be used with the operation_type property of a WorkRequestSummary. OPERATION_TYPE_RESUME_CHANNELA constant which can be used with the operation_type property of a WorkRequestSummary. OPERATION_TYPE_START_DBSYSTEMA constant which can be used with the operation_type property of a WorkRequestSummary. OPERATION_TYPE_START_HEATWAVE_CLUSTERA constant which can be used with the operation_type property of a WorkRequestSummary. OPERATION_TYPE_STOP_DBSYSTEMA constant which can be used with the operation_type property of a WorkRequestSummary. OPERATION_TYPE_STOP_HEATWAVE_CLUSTERA constant which can be used with the operation_type property of a WorkRequestSummary. OPERATION_TYPE_UPDATE_BACKUPA constant which can be used with the operation_type property of a WorkRequestSummary. OPERATION_TYPE_UPDATE_CHANNELA constant which can be used with the operation_type property of a WorkRequestSummary. OPERATION_TYPE_UPDATE_DBSYSTEMA constant which can be used with the operation_type property of a WorkRequestSummary. OPERATION_TYPE_UPDATE_HEATWAVE_CLUSTERA constant which can be used with the operation_type property of a WorkRequestSummary. OPERATION_TYPE_UPDATE_REPLICAA constant which can be used with the operation_type property of a WorkRequestSummary. STATUS_ACCEPTEDA constant which can be used with the status property of a WorkRequestSummary. STATUS_CANCELEDA constant which can be used with the status property of a WorkRequestSummary. STATUS_CANCELINGA constant which can be used with the status property of a WorkRequestSummary. STATUS_FAILEDA constant which can be used with the status property of a WorkRequestSummary. STATUS_IN_PROGRESSA constant which can be used with the status property of a WorkRequestSummary. STATUS_SUCCEEDEDA constant which can be used with the status property of a WorkRequestSummary. compartment_id[Required] Gets the compartment_id of this WorkRequestSummary. id[Required] Gets the id of this WorkRequestSummary. operation_type[Required] Gets the operation_type of this WorkRequestSummary. percent_complete[Required] Gets the percent_complete of this WorkRequestSummary. status[Required] Gets the status of this WorkRequestSummary. time_accepted[Required] Gets the time_accepted of this WorkRequestSummary. time_finishedGets the time_finished of this WorkRequestSummary. time_startedGets the time_started of this WorkRequestSummary. Methods
__init__(**kwargs)Initializes a new WorkRequestSummary object with values from keyword arguments. -
OPERATION_TYPE_ADD_HEATWAVE_CLUSTER= 'ADD_HEATWAVE_CLUSTER'¶ A constant which can be used with the operation_type property of a WorkRequestSummary. This constant has a value of “ADD_HEATWAVE_CLUSTER”
-
OPERATION_TYPE_COPY_BACKUP= 'COPY_BACKUP'¶ A constant which can be used with the operation_type property of a WorkRequestSummary. This constant has a value of “COPY_BACKUP”
-
OPERATION_TYPE_CREATE_BACKUP= 'CREATE_BACKUP'¶ A constant which can be used with the operation_type property of a WorkRequestSummary. This constant has a value of “CREATE_BACKUP”
-
OPERATION_TYPE_CREATE_CHANNEL= 'CREATE_CHANNEL'¶ A constant which can be used with the operation_type property of a WorkRequestSummary. This constant has a value of “CREATE_CHANNEL”
-
OPERATION_TYPE_CREATE_DBSYSTEM= 'CREATE_DBSYSTEM'¶ A constant which can be used with the operation_type property of a WorkRequestSummary. This constant has a value of “CREATE_DBSYSTEM”
-
OPERATION_TYPE_CREATE_REPLICA= 'CREATE_REPLICA'¶ A constant which can be used with the operation_type property of a WorkRequestSummary. This constant has a value of “CREATE_REPLICA”
-
OPERATION_TYPE_DELETE_BACKUP= 'DELETE_BACKUP'¶ A constant which can be used with the operation_type property of a WorkRequestSummary. This constant has a value of “DELETE_BACKUP”
-
OPERATION_TYPE_DELETE_CHANNEL= 'DELETE_CHANNEL'¶ A constant which can be used with the operation_type property of a WorkRequestSummary. This constant has a value of “DELETE_CHANNEL”
-
OPERATION_TYPE_DELETE_DBSYSTEM= 'DELETE_DBSYSTEM'¶ A constant which can be used with the operation_type property of a WorkRequestSummary. This constant has a value of “DELETE_DBSYSTEM”
-
OPERATION_TYPE_DELETE_HEATWAVE_CLUSTER= 'DELETE_HEATWAVE_CLUSTER'¶ A constant which can be used with the operation_type property of a WorkRequestSummary. This constant has a value of “DELETE_HEATWAVE_CLUSTER”
-
OPERATION_TYPE_DELETE_REPLICA= 'DELETE_REPLICA'¶ A constant which can be used with the operation_type property of a WorkRequestSummary. This constant has a value of “DELETE_REPLICA”
-
OPERATION_TYPE_GENERATE_HEATWAVE_CLUSTER_MEMORY_ESTIMATE= 'GENERATE_HEATWAVE_CLUSTER_MEMORY_ESTIMATE'¶ A constant which can be used with the operation_type property of a WorkRequestSummary. This constant has a value of “GENERATE_HEATWAVE_CLUSTER_MEMORY_ESTIMATE”
-
OPERATION_TYPE_RESET_CHANNEL= 'RESET_CHANNEL'¶ A constant which can be used with the operation_type property of a WorkRequestSummary. This constant has a value of “RESET_CHANNEL”
-
OPERATION_TYPE_RESTART_DBSYSTEM= 'RESTART_DBSYSTEM'¶ A constant which can be used with the operation_type property of a WorkRequestSummary. This constant has a value of “RESTART_DBSYSTEM”
-
OPERATION_TYPE_RESTART_HEATWAVE_CLUSTER= 'RESTART_HEATWAVE_CLUSTER'¶ A constant which can be used with the operation_type property of a WorkRequestSummary. This constant has a value of “RESTART_HEATWAVE_CLUSTER”
-
OPERATION_TYPE_RESUME_CHANNEL= 'RESUME_CHANNEL'¶ A constant which can be used with the operation_type property of a WorkRequestSummary. This constant has a value of “RESUME_CHANNEL”
-
OPERATION_TYPE_START_DBSYSTEM= 'START_DBSYSTEM'¶ A constant which can be used with the operation_type property of a WorkRequestSummary. This constant has a value of “START_DBSYSTEM”
-
OPERATION_TYPE_START_HEATWAVE_CLUSTER= 'START_HEATWAVE_CLUSTER'¶ A constant which can be used with the operation_type property of a WorkRequestSummary. This constant has a value of “START_HEATWAVE_CLUSTER”
-
OPERATION_TYPE_STOP_DBSYSTEM= 'STOP_DBSYSTEM'¶ A constant which can be used with the operation_type property of a WorkRequestSummary. This constant has a value of “STOP_DBSYSTEM”
-
OPERATION_TYPE_STOP_HEATWAVE_CLUSTER= 'STOP_HEATWAVE_CLUSTER'¶ A constant which can be used with the operation_type property of a WorkRequestSummary. This constant has a value of “STOP_HEATWAVE_CLUSTER”
-
OPERATION_TYPE_UPDATE_BACKUP= 'UPDATE_BACKUP'¶ A constant which can be used with the operation_type property of a WorkRequestSummary. This constant has a value of “UPDATE_BACKUP”
-
OPERATION_TYPE_UPDATE_CHANNEL= 'UPDATE_CHANNEL'¶ A constant which can be used with the operation_type property of a WorkRequestSummary. This constant has a value of “UPDATE_CHANNEL”
-
OPERATION_TYPE_UPDATE_DBSYSTEM= 'UPDATE_DBSYSTEM'¶ A constant which can be used with the operation_type property of a WorkRequestSummary. This constant has a value of “UPDATE_DBSYSTEM”
-
OPERATION_TYPE_UPDATE_HEATWAVE_CLUSTER= 'UPDATE_HEATWAVE_CLUSTER'¶ A constant which can be used with the operation_type property of a WorkRequestSummary. This constant has a value of “UPDATE_HEATWAVE_CLUSTER”
-
OPERATION_TYPE_UPDATE_REPLICA= 'UPDATE_REPLICA'¶ A constant which can be used with the operation_type property of a WorkRequestSummary. This constant has a value of “UPDATE_REPLICA”
-
STATUS_ACCEPTED= 'ACCEPTED'¶ A constant which can be used with the status property of a WorkRequestSummary. This constant has a value of “ACCEPTED”
-
STATUS_CANCELED= 'CANCELED'¶ A constant which can be used with the status property of a WorkRequestSummary. This constant has a value of “CANCELED”
-
STATUS_CANCELING= 'CANCELING'¶ A constant which can be used with the status property of a WorkRequestSummary. This constant has a value of “CANCELING”
-
STATUS_FAILED= 'FAILED'¶ A constant which can be used with the status property of a WorkRequestSummary. This constant has a value of “FAILED”
-
STATUS_IN_PROGRESS= 'IN_PROGRESS'¶ A constant which can be used with the status property of a WorkRequestSummary. This constant has a value of “IN_PROGRESS”
-
STATUS_SUCCEEDED= 'SUCCEEDED'¶ A constant which can be used with the status property of a WorkRequestSummary. This constant has a value of “SUCCEEDED”
-
__init__(**kwargs)¶ Initializes a new WorkRequestSummary 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 WorkRequestSummary.
- operation_type (str) – The value to assign to the operation_type property of this WorkRequestSummary. Allowed values for this property are: “CREATE_DBSYSTEM”, “UPDATE_DBSYSTEM”, “DELETE_DBSYSTEM”, “START_DBSYSTEM”, “STOP_DBSYSTEM”, “RESTART_DBSYSTEM”, “ADD_HEATWAVE_CLUSTER”, “UPDATE_HEATWAVE_CLUSTER”, “DELETE_HEATWAVE_CLUSTER”, “START_HEATWAVE_CLUSTER”, “STOP_HEATWAVE_CLUSTER”, “RESTART_HEATWAVE_CLUSTER”, “GENERATE_HEATWAVE_CLUSTER_MEMORY_ESTIMATE”, “CREATE_REPLICA”, “UPDATE_REPLICA”, “DELETE_REPLICA”, “CREATE_CHANNEL”, “UPDATE_CHANNEL”, “RESUME_CHANNEL”, “RESET_CHANNEL”, “DELETE_CHANNEL”, “COPY_BACKUP”, “CREATE_BACKUP”, “DELETE_BACKUP”, “UPDATE_BACKUP”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- status (str) – The value to assign to the status property of this WorkRequestSummary. Allowed values for this property are: “ACCEPTED”, “IN_PROGRESS”, “FAILED”, “SUCCEEDED”, “CANCELING”, “CANCELED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- compartment_id (str) – The value to assign to the compartment_id property of this WorkRequestSummary.
- percent_complete (float) – The value to assign to the percent_complete property of this WorkRequestSummary.
- time_accepted (datetime) – The value to assign to the time_accepted property of this WorkRequestSummary.
- time_started (datetime) – The value to assign to the time_started property of this WorkRequestSummary.
- time_finished (datetime) – The value to assign to the time_finished property of this WorkRequestSummary.
-
compartment_id¶ [Required] Gets the compartment_id of this WorkRequestSummary. The ocid of the compartment that contains the work request. Work requests should be scoped to the same compartment as the resource the work request affects. If the work request affects multiple resources, and those resources are not in the same compartment, it is up to the service team to pick the primary resource whose compartment should be used
Returns: The compartment_id of this WorkRequestSummary. Return type: str
-
id¶ [Required] Gets the id of this WorkRequestSummary. The id of the work request.
Returns: The id of this WorkRequestSummary. Return type: str
-
operation_type¶ [Required] Gets the operation_type of this WorkRequestSummary. the original operation ID requested
Allowed values for this property are: “CREATE_DBSYSTEM”, “UPDATE_DBSYSTEM”, “DELETE_DBSYSTEM”, “START_DBSYSTEM”, “STOP_DBSYSTEM”, “RESTART_DBSYSTEM”, “ADD_HEATWAVE_CLUSTER”, “UPDATE_HEATWAVE_CLUSTER”, “DELETE_HEATWAVE_CLUSTER”, “START_HEATWAVE_CLUSTER”, “STOP_HEATWAVE_CLUSTER”, “RESTART_HEATWAVE_CLUSTER”, “GENERATE_HEATWAVE_CLUSTER_MEMORY_ESTIMATE”, “CREATE_REPLICA”, “UPDATE_REPLICA”, “DELETE_REPLICA”, “CREATE_CHANNEL”, “UPDATE_CHANNEL”, “RESUME_CHANNEL”, “RESET_CHANNEL”, “DELETE_CHANNEL”, “COPY_BACKUP”, “CREATE_BACKUP”, “DELETE_BACKUP”, “UPDATE_BACKUP”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The operation_type of this WorkRequestSummary. Return type: str
-
percent_complete¶ [Required] Gets the percent_complete of this WorkRequestSummary. Percentage of the request completed.
Returns: The percent_complete of this WorkRequestSummary. Return type: float
-
status¶ [Required] Gets the status of this WorkRequestSummary. Current status of the work request
Allowed values for this property are: “ACCEPTED”, “IN_PROGRESS”, “FAILED”, “SUCCEEDED”, “CANCELING”, “CANCELED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The status of this WorkRequestSummary. Return type: str
-
time_accepted¶ [Required] Gets the time_accepted of this WorkRequestSummary. The date and time the request was created, as described in RFC 3339, section 14.29.
Returns: The time_accepted of this WorkRequestSummary. Return type: datetime
-