ApprovalAction

class oci.devops.models.ApprovalAction(**kwargs)

Bases: object

Information about the approval action of DevOps deployment stages.

Attributes

ACTION_APPROVE A constant which can be used with the action property of a ApprovalAction.
ACTION_REJECT A constant which can be used with the action property of a ApprovalAction.
action [Required] Gets the action of this ApprovalAction.
subject_id [Required] Gets the subject_id of this ApprovalAction.

Methods

__init__(**kwargs) Initializes a new ApprovalAction object with values from keyword arguments.
ACTION_APPROVE = 'APPROVE'

A constant which can be used with the action property of a ApprovalAction. This constant has a value of “APPROVE”

ACTION_REJECT = 'REJECT'

A constant which can be used with the action property of a ApprovalAction. This constant has a value of “REJECT”

__init__(**kwargs)

Initializes a new ApprovalAction object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • subject_id (str) – The value to assign to the subject_id property of this ApprovalAction.
  • action (str) – The value to assign to the action property of this ApprovalAction. Allowed values for this property are: “APPROVE”, “REJECT”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
action

[Required] Gets the action of this ApprovalAction. The action of the user on the DevOps deployment stage.

Allowed values for this property are: “APPROVE”, “REJECT”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The action of this ApprovalAction.
Return type:str
subject_id

[Required] Gets the subject_id of this ApprovalAction. The subject ID of the user who approves or disapproves a DevOps deployment stage.

Returns:The subject_id of this ApprovalAction.
Return type:str