ApprovalAction¶
-
class
oci.devops.models.ApprovalAction(**kwargs)¶ Bases:
objectInformation about the approval action of DevOps deployment stages.
Attributes
ACTION_APPROVEA constant which can be used with the action property of a ApprovalAction. ACTION_REJECTA constant which can be used with the action property of a ApprovalAction. action[Required] Gets the action of this ApprovalAction. reasonGets the reason 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’.
- reason (str) – The value to assign to the reason property of this ApprovalAction.
-
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
-
reason¶ Gets the reason of this ApprovalAction. The reason for approving or rejecting the deployment.
Returns: The reason 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
-