WorkRequestResource¶
-
class
oci.oda.models.WorkRequestResource(**kwargs)¶ Bases:
objectA resource created or operated on by a work request.
Attributes
RESOURCE_ACTION_CHANGE_COMPARTMENTA constant which can be used with the resource_action property of a WorkRequestResource. RESOURCE_ACTION_CHANGE_CUST_ENC_KEYA constant which can be used with the resource_action property of a WorkRequestResource. RESOURCE_ACTION_CREATEA constant which can be used with the resource_action property of a WorkRequestResource. RESOURCE_ACTION_CREATE_ASSOCIATIONA constant which can be used with the resource_action property of a WorkRequestResource. RESOURCE_ACTION_CREATE_IMPORTED_PACKAGEA constant which can be used with the resource_action property of a WorkRequestResource. RESOURCE_ACTION_CREATE_ODA_INSTANCE_ATTACHMENTA constant which can be used with the resource_action property of a WorkRequestResource. RESOURCE_ACTION_DEACT_CUST_ENC_KEYA constant which can be used with the resource_action property of a WorkRequestResource. RESOURCE_ACTION_DELETEA constant which can be used with the resource_action property of a WorkRequestResource. RESOURCE_ACTION_DELETE_ASSOCIATIONA constant which can be used with the resource_action property of a WorkRequestResource. RESOURCE_ACTION_DELETE_IMPORTED_PACKAGEA constant which can be used with the resource_action property of a WorkRequestResource. RESOURCE_ACTION_DELETE_ODA_INSTANCE_ATTACHMENTA constant which can be used with the resource_action property of a WorkRequestResource. RESOURCE_ACTION_EXPORTA constant which can be used with the resource_action property of a WorkRequestResource. RESOURCE_ACTION_PURGEA constant which can be used with the resource_action property of a WorkRequestResource. RESOURCE_ACTION_RECOVERA constant which can be used with the resource_action property of a WorkRequestResource. RESOURCE_ACTION_STARTA constant which can be used with the resource_action property of a WorkRequestResource. RESOURCE_ACTION_STOPA constant which can be used with the resource_action property of a WorkRequestResource. RESOURCE_ACTION_UPDATEA constant which can be used with the resource_action property of a WorkRequestResource. RESOURCE_ACTION_UPDATE_ENTITLEMENTS_FOR_CACCTA constant which can be used with the resource_action property of a WorkRequestResource. RESOURCE_ACTION_UPDATE_IMPORTED_PACKAGEA constant which can be used with the resource_action property of a WorkRequestResource. RESOURCE_ACTION_UPDATE_ODA_INSTANCE_ATTACHMENTA constant which can be used with the resource_action property of a WorkRequestResource. STATUS_ACCEPTEDA constant which can be used with the status property of a WorkRequestResource. STATUS_CANCELEDA constant which can be used with the status property of a WorkRequestResource. STATUS_CANCELINGA constant which can be used with the status property of a WorkRequestResource. STATUS_FAILEDA constant which can be used with the status property of a WorkRequestResource. STATUS_IN_PROGRESSA constant which can be used with the status property of a WorkRequestResource. STATUS_SUCCEEDEDA constant which can be used with the status property of a WorkRequestResource. resource_action[Required] Gets the resource_action of this WorkRequestResource. resource_id[Required] Gets the resource_id of this WorkRequestResource. resource_type[Required] Gets the resource_type of this WorkRequestResource. resource_uriGets the resource_uri of this WorkRequestResource. status[Required] Gets the status of this WorkRequestResource. status_messageGets the status_message of this WorkRequestResource. Methods
__init__(**kwargs)Initializes a new WorkRequestResource object with values from keyword arguments. -
RESOURCE_ACTION_CHANGE_COMPARTMENT= 'CHANGE_COMPARTMENT'¶ A constant which can be used with the resource_action property of a WorkRequestResource. This constant has a value of “CHANGE_COMPARTMENT”
-
RESOURCE_ACTION_CHANGE_CUST_ENC_KEY= 'CHANGE_CUST_ENC_KEY'¶ A constant which can be used with the resource_action property of a WorkRequestResource. This constant has a value of “CHANGE_CUST_ENC_KEY”
-
RESOURCE_ACTION_CREATE= 'CREATE'¶ A constant which can be used with the resource_action property of a WorkRequestResource. This constant has a value of “CREATE”
-
RESOURCE_ACTION_CREATE_ASSOCIATION= 'CREATE_ASSOCIATION'¶ A constant which can be used with the resource_action property of a WorkRequestResource. This constant has a value of “CREATE_ASSOCIATION”
-
RESOURCE_ACTION_CREATE_IMPORTED_PACKAGE= 'CREATE_IMPORTED_PACKAGE'¶ A constant which can be used with the resource_action property of a WorkRequestResource. This constant has a value of “CREATE_IMPORTED_PACKAGE”
-
RESOURCE_ACTION_CREATE_ODA_INSTANCE_ATTACHMENT= 'CREATE_ODA_INSTANCE_ATTACHMENT'¶ A constant which can be used with the resource_action property of a WorkRequestResource. This constant has a value of “CREATE_ODA_INSTANCE_ATTACHMENT”
-
RESOURCE_ACTION_DEACT_CUST_ENC_KEY= 'DEACT_CUST_ENC_KEY'¶ A constant which can be used with the resource_action property of a WorkRequestResource. This constant has a value of “DEACT_CUST_ENC_KEY”
-
RESOURCE_ACTION_DELETE= 'DELETE'¶ A constant which can be used with the resource_action property of a WorkRequestResource. This constant has a value of “DELETE”
-
RESOURCE_ACTION_DELETE_ASSOCIATION= 'DELETE_ASSOCIATION'¶ A constant which can be used with the resource_action property of a WorkRequestResource. This constant has a value of “DELETE_ASSOCIATION”
-
RESOURCE_ACTION_DELETE_IMPORTED_PACKAGE= 'DELETE_IMPORTED_PACKAGE'¶ A constant which can be used with the resource_action property of a WorkRequestResource. This constant has a value of “DELETE_IMPORTED_PACKAGE”
-
RESOURCE_ACTION_DELETE_ODA_INSTANCE_ATTACHMENT= 'DELETE_ODA_INSTANCE_ATTACHMENT'¶ A constant which can be used with the resource_action property of a WorkRequestResource. This constant has a value of “DELETE_ODA_INSTANCE_ATTACHMENT”
-
RESOURCE_ACTION_EXPORT= 'EXPORT'¶ A constant which can be used with the resource_action property of a WorkRequestResource. This constant has a value of “EXPORT”
-
RESOURCE_ACTION_PURGE= 'PURGE'¶ A constant which can be used with the resource_action property of a WorkRequestResource. This constant has a value of “PURGE”
-
RESOURCE_ACTION_RECOVER= 'RECOVER'¶ A constant which can be used with the resource_action property of a WorkRequestResource. This constant has a value of “RECOVER”
-
RESOURCE_ACTION_START= 'START'¶ A constant which can be used with the resource_action property of a WorkRequestResource. This constant has a value of “START”
-
RESOURCE_ACTION_STOP= 'STOP'¶ A constant which can be used with the resource_action property of a WorkRequestResource. This constant has a value of “STOP”
-
RESOURCE_ACTION_UPDATE= 'UPDATE'¶ A constant which can be used with the resource_action property of a WorkRequestResource. This constant has a value of “UPDATE”
-
RESOURCE_ACTION_UPDATE_ENTITLEMENTS_FOR_CACCT= 'UPDATE_ENTITLEMENTS_FOR_CACCT'¶ A constant which can be used with the resource_action property of a WorkRequestResource. This constant has a value of “UPDATE_ENTITLEMENTS_FOR_CACCT”
-
RESOURCE_ACTION_UPDATE_IMPORTED_PACKAGE= 'UPDATE_IMPORTED_PACKAGE'¶ A constant which can be used with the resource_action property of a WorkRequestResource. This constant has a value of “UPDATE_IMPORTED_PACKAGE”
-
RESOURCE_ACTION_UPDATE_ODA_INSTANCE_ATTACHMENT= 'UPDATE_ODA_INSTANCE_ATTACHMENT'¶ A constant which can be used with the resource_action property of a WorkRequestResource. This constant has a value of “UPDATE_ODA_INSTANCE_ATTACHMENT”
-
STATUS_ACCEPTED= 'ACCEPTED'¶ A constant which can be used with the status property of a WorkRequestResource. This constant has a value of “ACCEPTED”
-
STATUS_CANCELED= 'CANCELED'¶ A constant which can be used with the status property of a WorkRequestResource. This constant has a value of “CANCELED”
-
STATUS_CANCELING= 'CANCELING'¶ A constant which can be used with the status property of a WorkRequestResource. This constant has a value of “CANCELING”
-
STATUS_FAILED= 'FAILED'¶ A constant which can be used with the status property of a WorkRequestResource. This constant has a value of “FAILED”
-
STATUS_IN_PROGRESS= 'IN_PROGRESS'¶ A constant which can be used with the status property of a WorkRequestResource. This constant has a value of “IN_PROGRESS”
-
STATUS_SUCCEEDED= 'SUCCEEDED'¶ A constant which can be used with the status property of a WorkRequestResource. This constant has a value of “SUCCEEDED”
-
__init__(**kwargs)¶ Initializes a new WorkRequestResource object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - resource_action (str) – The value to assign to the resource_action property of this WorkRequestResource. Allowed values for this property are: “CREATE”, “UPDATE”, “DELETE”, “PURGE”, “RECOVER”, “STOP”, “START”, “CHANGE_COMPARTMENT”, “CHANGE_CUST_ENC_KEY”, “DEACT_CUST_ENC_KEY”, “CREATE_ASSOCIATION”, “DELETE_ASSOCIATION”, “UPDATE_ENTITLEMENTS_FOR_CACCT”, “CREATE_ODA_INSTANCE_ATTACHMENT”, “UPDATE_ODA_INSTANCE_ATTACHMENT”, “DELETE_ODA_INSTANCE_ATTACHMENT”, “CREATE_IMPORTED_PACKAGE”, “UPDATE_IMPORTED_PACKAGE”, “DELETE_IMPORTED_PACKAGE”, “EXPORT”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- resource_type (str) – The value to assign to the resource_type property of this WorkRequestResource.
- resource_id (str) – The value to assign to the resource_id property of this WorkRequestResource.
- status (str) – The value to assign to the status property of this WorkRequestResource. Allowed values for this property are: “ACCEPTED”, “IN_PROGRESS”, “SUCCEEDED”, “FAILED”, “CANCELING”, “CANCELED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- status_message (str) – The value to assign to the status_message property of this WorkRequestResource.
- resource_uri (str) – The value to assign to the resource_uri property of this WorkRequestResource.
-
resource_action¶ [Required] Gets the resource_action of this WorkRequestResource. The action to take against the resource.
Allowed values for this property are: “CREATE”, “UPDATE”, “DELETE”, “PURGE”, “RECOVER”, “STOP”, “START”, “CHANGE_COMPARTMENT”, “CHANGE_CUST_ENC_KEY”, “DEACT_CUST_ENC_KEY”, “CREATE_ASSOCIATION”, “DELETE_ASSOCIATION”, “UPDATE_ENTITLEMENTS_FOR_CACCT”, “CREATE_ODA_INSTANCE_ATTACHMENT”, “UPDATE_ODA_INSTANCE_ATTACHMENT”, “DELETE_ODA_INSTANCE_ATTACHMENT”, “CREATE_IMPORTED_PACKAGE”, “UPDATE_IMPORTED_PACKAGE”, “DELETE_IMPORTED_PACKAGE”, “EXPORT”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The resource_action of this WorkRequestResource. Return type: str
-
resource_id¶ [Required] Gets the resource_id of this WorkRequestResource. The identifier of the resource that is the subject of the request.
Returns: The resource_id of this WorkRequestResource. Return type: str
-
resource_type¶ [Required] Gets the resource_type of this WorkRequestResource. The resource type that the work request affects.
Returns: The resource_type of this WorkRequestResource. Return type: str
-
resource_uri¶ Gets the resource_uri of this WorkRequestResource. The URI path that the user can do a GET on to access the resource metadata.
Returns: The resource_uri of this WorkRequestResource. Return type: str
-
status¶ [Required] Gets the status of this WorkRequestResource. The current state of the work request. The SUCCEEDED, FAILED, AND CANCELED states correspond to the action being performed.
Allowed values for this property are: “ACCEPTED”, “IN_PROGRESS”, “SUCCEEDED”, “FAILED”, “CANCELING”, “CANCELED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The status of this WorkRequestResource. Return type: str
-
status_message¶ Gets the status_message of this WorkRequestResource. Short message providing more detail for the current status. For example, if an operation fails this may include information about the reason for the failure and a possible resolution.
Returns: The status_message of this WorkRequestResource. Return type: str
-