WorkRequestResource

class oci.oda.models.WorkRequestResource(**kwargs)

Bases: object

A resource created or operated on by a work request.

Attributes

RESOURCE_ACTION_CHANGE_COMPARTMENT A constant which can be used with the resource_action property of a WorkRequestResource.
RESOURCE_ACTION_CREATE A constant which can be used with the resource_action property of a WorkRequestResource.
RESOURCE_ACTION_CREATE_ASSOCIATION A constant which can be used with the resource_action property of a WorkRequestResource.
RESOURCE_ACTION_DELETE A constant which can be used with the resource_action property of a WorkRequestResource.
RESOURCE_ACTION_DELETE_ASSOCIATION A constant which can be used with the resource_action property of a WorkRequestResource.
RESOURCE_ACTION_PURGE A constant which can be used with the resource_action property of a WorkRequestResource.
RESOURCE_ACTION_RECOVER A constant which can be used with the resource_action property of a WorkRequestResource.
RESOURCE_ACTION_START A constant which can be used with the resource_action property of a WorkRequestResource.
RESOURCE_ACTION_STOP A constant which can be used with the resource_action property of a WorkRequestResource.
RESOURCE_ACTION_UPDATE_ENTITLEMENTS_FOR_CACCT A constant which can be used with the resource_action property of a WorkRequestResource.
STATUS_ACCEPTED A constant which can be used with the status property of a WorkRequestResource.
STATUS_CANCELED A constant which can be used with the status property of a WorkRequestResource.
STATUS_CANCELING A constant which can be used with the status property of a WorkRequestResource.
STATUS_FAILED A constant which can be used with the status property of a WorkRequestResource.
STATUS_IN_PROGRESS A constant which can be used with the status property of a WorkRequestResource.
STATUS_SUCCEEDED A 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_uri Gets the resource_uri of this WorkRequestResource.
status [Required] Gets the status of this WorkRequestResource.
status_message Gets 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_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_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_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_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”

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”, “DELETE”, “PURGE”, “RECOVER”, “STOP”, “START”, “CHANGE_COMPARTMENT”, “CREATE_ASSOCIATION”, “DELETE_ASSOCIATION”, “UPDATE_ENTITLEMENTS_FOR_CACCT”, ‘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 Digital Assistant instance.

Allowed values for this property are: “CREATE”, “DELETE”, “PURGE”, “RECOVER”, “STOP”, “START”, “CHANGE_COMPARTMENT”, “CREATE_ASSOCIATION”, “DELETE_ASSOCIATION”, “UPDATE_ENTITLEMENTS_FOR_CACCT”, ‘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 Digital Assistant instance 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