CountBasedApprovalPolicy¶
- class oci.devops.models.CountBasedApprovalPolicy(**kwargs)¶
Bases:
ApprovalPolicyCount based stage approval policy.
Attributes:
A constant which can be used with the approval_policy_type property of a ApprovalPolicy.
[Required] Gets the approval_policy_type of this ApprovalPolicy.
[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'¶
A constant which can be used with the approval_policy_type property of a ApprovalPolicy. This constant has a value of “COUNT_BASED_APPROVAL”
- __init__(**kwargs)¶
Initializes a new CountBasedApprovalPolicy object with values from keyword arguments. The default value of the
approval_policy_typeattribute of this class isCOUNT_BASED_APPROVALand 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.
- property 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.
- property 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