WorkRequestResource¶
-
class
oci.marketplace.models.
WorkRequestResource
(**kwargs)¶ Bases:
object
Details about the resource entity.
Attributes
ACTION_TYPE_ACCEPTED
A constant which can be used with the action_type property of a WorkRequestResource. ACTION_TYPE_CANCELED
A constant which can be used with the action_type property of a WorkRequestResource. ACTION_TYPE_FAILED
A constant which can be used with the action_type property of a WorkRequestResource. ACTION_TYPE_IN_PROGRESS
A constant which can be used with the action_type property of a WorkRequestResource. ACTION_TYPE_NEEDS_ATTENTION
A constant which can be used with the action_type property of a WorkRequestResource. ACTION_TYPE_SUCCEEDED
A constant which can be used with the action_type property of a WorkRequestResource. ACTION_TYPE_WAITING
A constant which can be used with the action_type property of a WorkRequestResource. action_type
[Required] Gets the action_type of this WorkRequestResource. entity_type
[Required] Gets the entity_type of this WorkRequestResource. entity_uri
Gets the entity_uri of this WorkRequestResource. identifier
[Required] Gets the identifier of this WorkRequestResource. metadata
Gets the metadata of this WorkRequestResource. Methods
__init__
(**kwargs)Initializes a new WorkRequestResource object with values from keyword arguments. -
ACTION_TYPE_ACCEPTED
= 'ACCEPTED'¶ A constant which can be used with the action_type property of a WorkRequestResource. This constant has a value of “ACCEPTED”
-
ACTION_TYPE_CANCELED
= 'CANCELED'¶ A constant which can be used with the action_type property of a WorkRequestResource. This constant has a value of “CANCELED”
-
ACTION_TYPE_FAILED
= 'FAILED'¶ A constant which can be used with the action_type property of a WorkRequestResource. This constant has a value of “FAILED”
-
ACTION_TYPE_IN_PROGRESS
= 'IN_PROGRESS'¶ A constant which can be used with the action_type property of a WorkRequestResource. This constant has a value of “IN_PROGRESS”
-
ACTION_TYPE_NEEDS_ATTENTION
= 'NEEDS_ATTENTION'¶ A constant which can be used with the action_type property of a WorkRequestResource. This constant has a value of “NEEDS_ATTENTION”
-
ACTION_TYPE_SUCCEEDED
= 'SUCCEEDED'¶ A constant which can be used with the action_type property of a WorkRequestResource. This constant has a value of “SUCCEEDED”
-
ACTION_TYPE_WAITING
= 'WAITING'¶ A constant which can be used with the action_type property of a WorkRequestResource. This constant has a value of “WAITING”
-
__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: - entity_type (str) – The value to assign to the entity_type property of this WorkRequestResource.
- action_type (str) – The value to assign to the action_type property of this WorkRequestResource. Allowed values for this property are: “ACCEPTED”, “IN_PROGRESS”, “WAITING”, “NEEDS_ATTENTION”, “FAILED”, “SUCCEEDED”, “CANCELED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- identifier (str) – The value to assign to the identifier property of this WorkRequestResource.
- entity_uri (str) – The value to assign to the entity_uri property of this WorkRequestResource.
- metadata (dict(str, str)) – The value to assign to the metadata property of this WorkRequestResource.
-
action_type
¶ [Required] Gets the action_type of this WorkRequestResource. The way in which this resource was affected by the work tracked by the work request.
A resource being created, updated, or deleted remains in the IN_PROGRESS state until work is complete for that resource. At that point, the resource transitions to the CREATED, UPDATED, or DELETED state.
Allowed values for this property are: “ACCEPTED”, “IN_PROGRESS”, “WAITING”, “NEEDS_ATTENTION”, “FAILED”, “SUCCEEDED”, “CANCELED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The action_type of this WorkRequestResource. Return type: str
-
entity_type
¶ [Required] Gets the entity_type of this WorkRequestResource. The resource type the work request affects.
Returns: The entity_type of this WorkRequestResource. Return type: str
-
entity_uri
¶ Gets the entity_uri of this WorkRequestResource. The URI path that the user can do a GET on to access the resource metadata
Returns: The entity_uri of this WorkRequestResource. Return type: str
-
identifier
¶ [Required] Gets the identifier of this WorkRequestResource. The resource identifier the work request affects.
Returns: The identifier of this WorkRequestResource. Return type: str
-
metadata
¶ Gets the metadata of this WorkRequestResource. Additional information about the resource.
Returns: The metadata of this WorkRequestResource. Return type: dict(str, str)
-