CountBasedApprovalPolicy¶
-
class
oci.devops.models.
CountBasedApprovalPolicy
(**kwargs)¶ Bases:
oci.devops.models.approval_policy.ApprovalPolicy
Count based stage approval policy.
Attributes
APPROVAL_POLICY_TYPE_COUNT_BASED_APPROVAL
str(object=’’) -> str approval_policy_type
[Required] Gets the approval_policy_type of this ApprovalPolicy. number_of_approvals_required
[Required] Gets the number_of_approvals_required of this CountBasedApprovalPolicy. Methods
__init__
(**kwargs)Initializes a new CountBasedApprovalPolicy object with values from keyword arguments. get_subtype
(object_dictionary)Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype. -
APPROVAL_POLICY_TYPE_COUNT_BASED_APPROVAL
= 'COUNT_BASED_APPROVAL'¶
-
__init__
(**kwargs)¶ Initializes a new CountBasedApprovalPolicy object with values from keyword arguments. The default value of the
approval_policy_type
attribute of this class isCOUNT_BASED_APPROVAL
and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):Parameters: - approval_policy_type (str) – The value to assign to the approval_policy_type property of this CountBasedApprovalPolicy. Allowed values for this property are: “COUNT_BASED_APPROVAL”
- number_of_approvals_required (int) – The value to assign to the number_of_approvals_required property of this CountBasedApprovalPolicy.
-
approval_policy_type
¶ [Required] Gets the approval_policy_type of this ApprovalPolicy. Approval policy type.
Allowed values for this property are: “COUNT_BASED_APPROVAL”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The approval_policy_type of this ApprovalPolicy. Return type: str
-
static
get_subtype
(object_dictionary)¶ Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
-
number_of_approvals_required
¶ [Required] Gets the number_of_approvals_required of this CountBasedApprovalPolicy. A minimum number of approvals required for stage to proceed.
Returns: The number_of_approvals_required of this CountBasedApprovalPolicy. Return type: int
-