WorkRequest

class oci.bds.models.WorkRequest(**kwargs)

Bases: object

Description of the work request status.

Attributes

OPERATION_TYPE_ACTIVATE_METASTORE_CONFIG A constant which can be used with the operation_type property of a WorkRequest.
OPERATION_TYPE_ADD_BLOCK_STORAGE A constant which can be used with the operation_type property of a WorkRequest.
OPERATION_TYPE_ADD_CLOUD_SQL A constant which can be used with the operation_type property of a WorkRequest.
OPERATION_TYPE_ADD_KAFKA A constant which can be used with the operation_type property of a WorkRequest.
OPERATION_TYPE_ADD_MASTER_NODES A constant which can be used with the operation_type property of a WorkRequest.
OPERATION_TYPE_ADD_UTILITY_NODES A constant which can be used with the operation_type property of a WorkRequest.
OPERATION_TYPE_ADD_WORKER_NODES A constant which can be used with the operation_type property of a WorkRequest.
OPERATION_TYPE_AUTOSCALE_CONFIG A constant which can be used with the operation_type property of a WorkRequest.
OPERATION_TYPE_AUTOSCALE_RUN A constant which can be used with the operation_type property of a WorkRequest.
OPERATION_TYPE_CHANGE_COMPARTMENT_FOR_BDS A constant which can be used with the operation_type property of a WorkRequest.
OPERATION_TYPE_CHANGE_SHAPE A constant which can be used with the operation_type property of a WorkRequest.
OPERATION_TYPE_CREATE_API_KEY A constant which can be used with the operation_type property of a WorkRequest.
OPERATION_TYPE_CREATE_AUTOSCALE_CONFIG A constant which can be used with the operation_type property of a WorkRequest.
OPERATION_TYPE_CREATE_BDS A constant which can be used with the operation_type property of a WorkRequest.
OPERATION_TYPE_CREATE_METASTORE_CONFIG A constant which can be used with the operation_type property of a WorkRequest.
OPERATION_TYPE_DELETE_API_KEY A constant which can be used with the operation_type property of a WorkRequest.
OPERATION_TYPE_DELETE_AUTOSCALE_CONFIG A constant which can be used with the operation_type property of a WorkRequest.
OPERATION_TYPE_DELETE_BDS A constant which can be used with the operation_type property of a WorkRequest.
OPERATION_TYPE_DELETE_METASTORE_CONFIG A constant which can be used with the operation_type property of a WorkRequest.
OPERATION_TYPE_EXECUTE_BOOTSTRAP_SCRIPT A constant which can be used with the operation_type property of a WorkRequest.
OPERATION_TYPE_ODH_SERVICE_CERTIFICATE_UPDATE A constant which can be used with the operation_type property of a WorkRequest.
OPERATION_TYPE_PATCH_BDS A constant which can be used with the operation_type property of a WorkRequest.
OPERATION_TYPE_PATCH_ODH A constant which can be used with the operation_type property of a WorkRequest.
OPERATION_TYPE_PATCH_OS A constant which can be used with the operation_type property of a WorkRequest.
OPERATION_TYPE_REMOVE_CLOUD_SQL A constant which can be used with the operation_type property of a WorkRequest.
OPERATION_TYPE_REMOVE_KAFKA A constant which can be used with the operation_type property of a WorkRequest.
OPERATION_TYPE_REMOVE_NODE A constant which can be used with the operation_type property of a WorkRequest.
OPERATION_TYPE_RESTART_NODE A constant which can be used with the operation_type property of a WorkRequest.
OPERATION_TYPE_START_BDS A constant which can be used with the operation_type property of a WorkRequest.
OPERATION_TYPE_STOP_BDS A constant which can be used with the operation_type property of a WorkRequest.
OPERATION_TYPE_TEST_METASTORE_CONFIG A constant which can be used with the operation_type property of a WorkRequest.
OPERATION_TYPE_TEST_OBJECT_STORE_CONNECTION A constant which can be used with the operation_type property of a WorkRequest.
OPERATION_TYPE_UPDATE_AUTOSCALE_CONFIG A constant which can be used with the operation_type property of a WorkRequest.
OPERATION_TYPE_UPDATE_BDS A constant which can be used with the operation_type property of a WorkRequest.
OPERATION_TYPE_UPDATE_INFRA A constant which can be used with the operation_type property of a WorkRequest.
OPERATION_TYPE_UPDATE_METASTORE_CONFIG A constant which can be used with the operation_type property of a WorkRequest.
STATUS_ACCEPTED A constant which can be used with the status property of a WorkRequest.
STATUS_CANCELED A constant which can be used with the status property of a WorkRequest.
STATUS_CANCELING A constant which can be used with the status property of a WorkRequest.
STATUS_FAILED A constant which can be used with the status property of a WorkRequest.
STATUS_IN_PROGRESS A constant which can be used with the status property of a WorkRequest.
STATUS_SUCCEEDED A constant which can be used with the status property of a WorkRequest.
compartment_id [Required] Gets the compartment_id of this WorkRequest.
id [Required] Gets the id of this WorkRequest.
operation_type [Required] Gets the operation_type of this WorkRequest.
percent_complete [Required] Gets the percent_complete of this WorkRequest.
resources [Required] Gets the resources of this WorkRequest.
status [Required] Gets the status of this WorkRequest.
time_accepted [Required] Gets the time_accepted of this WorkRequest.
time_finished Gets the time_finished of this WorkRequest.
time_started Gets the time_started of this WorkRequest.

Methods

__init__(**kwargs) Initializes a new WorkRequest object with values from keyword arguments.
OPERATION_TYPE_ACTIVATE_METASTORE_CONFIG = 'ACTIVATE_METASTORE_CONFIG'

A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “ACTIVATE_METASTORE_CONFIG”

OPERATION_TYPE_ADD_BLOCK_STORAGE = 'ADD_BLOCK_STORAGE'

A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “ADD_BLOCK_STORAGE”

OPERATION_TYPE_ADD_CLOUD_SQL = 'ADD_CLOUD_SQL'

A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “ADD_CLOUD_SQL”

OPERATION_TYPE_ADD_KAFKA = 'ADD_KAFKA'

A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “ADD_KAFKA”

OPERATION_TYPE_ADD_MASTER_NODES = 'ADD_MASTER_NODES'

A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “ADD_MASTER_NODES”

OPERATION_TYPE_ADD_UTILITY_NODES = 'ADD_UTILITY_NODES'

A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “ADD_UTILITY_NODES”

OPERATION_TYPE_ADD_WORKER_NODES = 'ADD_WORKER_NODES'

A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “ADD_WORKER_NODES”

OPERATION_TYPE_AUTOSCALE_CONFIG = 'AUTOSCALE_CONFIG'

A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “AUTOSCALE_CONFIG”

OPERATION_TYPE_AUTOSCALE_RUN = 'AUTOSCALE_RUN'

A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “AUTOSCALE_RUN”

OPERATION_TYPE_CHANGE_COMPARTMENT_FOR_BDS = 'CHANGE_COMPARTMENT_FOR_BDS'

A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “CHANGE_COMPARTMENT_FOR_BDS”

OPERATION_TYPE_CHANGE_SHAPE = 'CHANGE_SHAPE'

A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “CHANGE_SHAPE”

OPERATION_TYPE_CREATE_API_KEY = 'CREATE_API_KEY'

A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “CREATE_API_KEY”

OPERATION_TYPE_CREATE_AUTOSCALE_CONFIG = 'CREATE_AUTOSCALE_CONFIG'

A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “CREATE_AUTOSCALE_CONFIG”

OPERATION_TYPE_CREATE_BDS = 'CREATE_BDS'

A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “CREATE_BDS”

OPERATION_TYPE_CREATE_METASTORE_CONFIG = 'CREATE_METASTORE_CONFIG'

A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “CREATE_METASTORE_CONFIG”

OPERATION_TYPE_DELETE_API_KEY = 'DELETE_API_KEY'

A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “DELETE_API_KEY”

OPERATION_TYPE_DELETE_AUTOSCALE_CONFIG = 'DELETE_AUTOSCALE_CONFIG'

A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “DELETE_AUTOSCALE_CONFIG”

OPERATION_TYPE_DELETE_BDS = 'DELETE_BDS'

A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “DELETE_BDS”

OPERATION_TYPE_DELETE_METASTORE_CONFIG = 'DELETE_METASTORE_CONFIG'

A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “DELETE_METASTORE_CONFIG”

OPERATION_TYPE_EXECUTE_BOOTSTRAP_SCRIPT = 'EXECUTE_BOOTSTRAP_SCRIPT'

A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “EXECUTE_BOOTSTRAP_SCRIPT”

OPERATION_TYPE_ODH_SERVICE_CERTIFICATE_UPDATE = 'ODH_SERVICE_CERTIFICATE_UPDATE'

A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “ODH_SERVICE_CERTIFICATE_UPDATE”

OPERATION_TYPE_PATCH_BDS = 'PATCH_BDS'

A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “PATCH_BDS”

OPERATION_TYPE_PATCH_ODH = 'PATCH_ODH'

A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “PATCH_ODH”

OPERATION_TYPE_PATCH_OS = 'PATCH_OS'

A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “PATCH_OS”

OPERATION_TYPE_REMOVE_CLOUD_SQL = 'REMOVE_CLOUD_SQL'

A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “REMOVE_CLOUD_SQL”

OPERATION_TYPE_REMOVE_KAFKA = 'REMOVE_KAFKA'

A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “REMOVE_KAFKA”

OPERATION_TYPE_REMOVE_NODE = 'REMOVE_NODE'

A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “REMOVE_NODE”

OPERATION_TYPE_RESTART_NODE = 'RESTART_NODE'

A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “RESTART_NODE”

OPERATION_TYPE_START_BDS = 'START_BDS'

A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “START_BDS”

OPERATION_TYPE_STOP_BDS = 'STOP_BDS'

A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “STOP_BDS”

OPERATION_TYPE_TEST_METASTORE_CONFIG = 'TEST_METASTORE_CONFIG'

A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “TEST_METASTORE_CONFIG”

OPERATION_TYPE_TEST_OBJECT_STORE_CONNECTION = 'TEST_OBJECT_STORE_CONNECTION'

A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “TEST_OBJECT_STORE_CONNECTION”

OPERATION_TYPE_UPDATE_AUTOSCALE_CONFIG = 'UPDATE_AUTOSCALE_CONFIG'

A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “UPDATE_AUTOSCALE_CONFIG”

OPERATION_TYPE_UPDATE_BDS = 'UPDATE_BDS'

A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “UPDATE_BDS”

OPERATION_TYPE_UPDATE_INFRA = 'UPDATE_INFRA'

A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “UPDATE_INFRA”

OPERATION_TYPE_UPDATE_METASTORE_CONFIG = 'UPDATE_METASTORE_CONFIG'

A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “UPDATE_METASTORE_CONFIG”

STATUS_ACCEPTED = 'ACCEPTED'

A constant which can be used with the status property of a WorkRequest. This constant has a value of “ACCEPTED”

STATUS_CANCELED = 'CANCELED'

A constant which can be used with the status property of a WorkRequest. This constant has a value of “CANCELED”

STATUS_CANCELING = 'CANCELING'

A constant which can be used with the status property of a WorkRequest. This constant has a value of “CANCELING”

STATUS_FAILED = 'FAILED'

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

STATUS_IN_PROGRESS = 'IN_PROGRESS'

A constant which can be used with the status property of a WorkRequest. This constant has a value of “IN_PROGRESS”

STATUS_SUCCEEDED = 'SUCCEEDED'

A constant which can be used with the status property of a WorkRequest. This constant has a value of “SUCCEEDED”

__init__(**kwargs)

Initializes a new WorkRequest 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 WorkRequest.
  • compartment_id (str) – The value to assign to the compartment_id property of this WorkRequest.
  • operation_type (str) – The value to assign to the operation_type property of this WorkRequest. Allowed values for this property are: “CREATE_BDS”, “UPDATE_BDS”, “DELETE_BDS”, “ADD_BLOCK_STORAGE”, “ADD_MASTER_NODES”, “ADD_UTILITY_NODES”, “ADD_WORKER_NODES”, “ADD_CLOUD_SQL”, “REMOVE_CLOUD_SQL”, “CHANGE_COMPARTMENT_FOR_BDS”, “CHANGE_SHAPE”, “UPDATE_INFRA”, “RESTART_NODE”, “REMOVE_NODE”, “CREATE_AUTOSCALE_CONFIG”, “UPDATE_AUTOSCALE_CONFIG”, “DELETE_AUTOSCALE_CONFIG”, “AUTOSCALE_CONFIG”, “AUTOSCALE_RUN”, “CREATE_API_KEY”, “DELETE_API_KEY”, “TEST_OBJECT_STORE_CONNECTION”, “CREATE_METASTORE_CONFIG”, “DELETE_METASTORE_CONFIG”, “UPDATE_METASTORE_CONFIG”, “ACTIVATE_METASTORE_CONFIG”, “TEST_METASTORE_CONFIG”, “PATCH_BDS”, “PATCH_ODH”, “PATCH_OS”, “STOP_BDS”, “START_BDS”, “ADD_KAFKA”, “REMOVE_KAFKA”, “EXECUTE_BOOTSTRAP_SCRIPT”, “ODH_SERVICE_CERTIFICATE_UPDATE”, ‘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 WorkRequest. 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’.
  • resources (list[oci.bds.models.WorkRequestResource]) – The value to assign to the resources property of this WorkRequest.
  • percent_complete (float) – The value to assign to the percent_complete property of this WorkRequest.
  • time_accepted (datetime) – The value to assign to the time_accepted property of this WorkRequest.
  • time_started (datetime) – The value to assign to the time_started property of this WorkRequest.
  • time_finished (datetime) – The value to assign to the time_finished property of this WorkRequest.
compartment_id

[Required] Gets the compartment_id of this WorkRequest. 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 WorkRequest.
Return type:str
id

[Required] Gets the id of this WorkRequest. The ID of the work request.

Returns:The id of this WorkRequest.
Return type:str
operation_type

[Required] Gets the operation_type of this WorkRequest. The type of this work request.

Allowed values for this property are: “CREATE_BDS”, “UPDATE_BDS”, “DELETE_BDS”, “ADD_BLOCK_STORAGE”, “ADD_MASTER_NODES”, “ADD_UTILITY_NODES”, “ADD_WORKER_NODES”, “ADD_CLOUD_SQL”, “REMOVE_CLOUD_SQL”, “CHANGE_COMPARTMENT_FOR_BDS”, “CHANGE_SHAPE”, “UPDATE_INFRA”, “RESTART_NODE”, “REMOVE_NODE”, “CREATE_AUTOSCALE_CONFIG”, “UPDATE_AUTOSCALE_CONFIG”, “DELETE_AUTOSCALE_CONFIG”, “AUTOSCALE_CONFIG”, “AUTOSCALE_RUN”, “CREATE_API_KEY”, “DELETE_API_KEY”, “TEST_OBJECT_STORE_CONNECTION”, “CREATE_METASTORE_CONFIG”, “DELETE_METASTORE_CONFIG”, “UPDATE_METASTORE_CONFIG”, “ACTIVATE_METASTORE_CONFIG”, “TEST_METASTORE_CONFIG”, “PATCH_BDS”, “PATCH_ODH”, “PATCH_OS”, “STOP_BDS”, “START_BDS”, “ADD_KAFKA”, “REMOVE_KAFKA”, “EXECUTE_BOOTSTRAP_SCRIPT”, “ODH_SERVICE_CERTIFICATE_UPDATE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The operation_type of this WorkRequest.
Return type:str
percent_complete

[Required] Gets the percent_complete of this WorkRequest. Percentage of this work request completed.

Returns:The percent_complete of this WorkRequest.
Return type:float
resources

[Required] Gets the resources of this WorkRequest. The resources affected by this work request.

Returns:The resources of this WorkRequest.
Return type:list[oci.bds.models.WorkRequestResource]
status

[Required] Gets the status of this WorkRequest. The status of this 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 WorkRequest.
Return type:str
time_accepted

[Required] Gets the time_accepted of this WorkRequest. The date and time the request was created, shown as an RFC 3339 formatted datetime string.

Returns:The time_accepted of this WorkRequest.
Return type:datetime
time_finished

Gets the time_finished of this WorkRequest. The time the object was finished, shown as an RFC 3339 formatted datetime string.

Returns:The time_finished of this WorkRequest.
Return type:datetime
time_started

Gets the time_started of this WorkRequest. The time the request was started, shown as an RFC 3339 formatted datetime string.

Returns:The time_started of this WorkRequest.
Return type:datetime