WorkRequestResource

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

Bases: object

A resource created, operated on or used by a work request.

Attributes

ACTION_TYPE_CREATED A constant which can be used with the action_type property of a WorkRequestResource.
ACTION_TYPE_DELETED 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_INSTALLED 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_REMOVED A constant which can be used with the action_type property of a WorkRequestResource.
ACTION_TYPE_UPDATED 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 [Required] Gets the entity_uri of this WorkRequestResource.
identifier [Required] Gets the identifier of this WorkRequestResource.
name Gets the name of this WorkRequestResource.

Methods

__init__(**kwargs) Initializes a new WorkRequestResource object with values from keyword arguments.
ACTION_TYPE_CREATED = 'CREATED'

A constant which can be used with the action_type property of a WorkRequestResource. This constant has a value of “CREATED”

ACTION_TYPE_DELETED = 'DELETED'

A constant which can be used with the action_type property of a WorkRequestResource. This constant has a value of “DELETED”

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_INSTALLED = 'INSTALLED'

A constant which can be used with the action_type property of a WorkRequestResource. This constant has a value of “INSTALLED”

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_REMOVED = 'REMOVED'

A constant which can be used with the action_type property of a WorkRequestResource. This constant has a value of “REMOVED”

ACTION_TYPE_UPDATED = 'UPDATED'

A constant which can be used with the action_type property of a WorkRequestResource. This constant has a value of “UPDATED”

__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: “CREATED”, “UPDATED”, “DELETED”, “FAILED”, “IN_PROGRESS”, “INSTALLED”, “REMOVED”, ‘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.
  • name (str) – The value to assign to the name property of this WorkRequestResource.
  • entity_uri (str) – The value to assign to the entity_uri property of this WorkRequestResource.
action_type

[Required] Gets the action_type of this WorkRequestResource. The way in which this resource is affected by the work tracked in the work request. A resource being created, updated, or deleted will remain in the IN_PROGRESS state until work is complete for that resource at which point it will transition to CREATED, UPDATED, or DELETED, respectively. If the request failed for that resource, the state will be FAILED.

Allowed values for this property are: “CREATED”, “UPDATED”, “DELETED”, “FAILED”, “IN_PROGRESS”, “INSTALLED”, “REMOVED”, ‘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 for the work request.

Returns:The entity_type of this WorkRequestResource.
Return type:str
entity_uri

[Required] 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 identifier of the resource. Not all resources will have an id.

Returns:The identifier of this WorkRequestResource.
Return type:str
name

Gets the name of this WorkRequestResource. The name of the resource. Not all resources will have a name specified.

Returns:The name of this WorkRequestResource.
Return type:str