ApproveDeploymentDetails¶
-
class
oci.devops.models.ApproveDeploymentDetails(**kwargs)¶ Bases:
objectThe stage information for submitting for approval.
Attributes
ACTION_APPROVEA constant which can be used with the action property of a ApproveDeploymentDetails. ACTION_REJECTA constant which can be used with the action property of a ApproveDeploymentDetails. action[Required] Gets the action of this ApproveDeploymentDetails. deploy_stage_id[Required] Gets the deploy_stage_id of this ApproveDeploymentDetails. reasonGets the reason of this ApproveDeploymentDetails. Methods
__init__(**kwargs)Initializes a new ApproveDeploymentDetails object with values from keyword arguments. -
ACTION_APPROVE= 'APPROVE'¶ A constant which can be used with the action property of a ApproveDeploymentDetails. This constant has a value of “APPROVE”
-
ACTION_REJECT= 'REJECT'¶ A constant which can be used with the action property of a ApproveDeploymentDetails. This constant has a value of “REJECT”
-
__init__(**kwargs)¶ Initializes a new ApproveDeploymentDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - deploy_stage_id (str) – The value to assign to the deploy_stage_id property of this ApproveDeploymentDetails.
- reason (str) – The value to assign to the reason property of this ApproveDeploymentDetails.
- action (str) – The value to assign to the action property of this ApproveDeploymentDetails. Allowed values for this property are: “APPROVE”, “REJECT”
-
action¶ [Required] Gets the action of this ApproveDeploymentDetails. The action of Approve or Reject.
Allowed values for this property are: “APPROVE”, “REJECT”
Returns: The action of this ApproveDeploymentDetails. Return type: str
-
deploy_stage_id¶ [Required] Gets the deploy_stage_id of this ApproveDeploymentDetails. The OCID of the stage which is marked for approval.
Returns: The deploy_stage_id of this ApproveDeploymentDetails. Return type: str
-
reason¶ Gets the reason of this ApproveDeploymentDetails. The reason for approving or rejecting the deployment.
Returns: The reason of this ApproveDeploymentDetails. Return type: str
-