ruạṛ
a ���f� � @ sD d dl mZ ddlmZmZmZ ddlmZ eG dd� de��ZdS )� )�ApprovalPolicy� )�formatted_flat_dict� NONE_SENTINEL�#value_allowed_none_or_none_sentinel)�init_model_state_from_kwargsc @ sJ e Zd ZdZdd� Zedd� �Zejdd� �Zdd� Zd d � Z dd� Z d S )�CountBasedApprovalPolicyz, Count based stage approval policy. c K s. ddd�| _ ddd�| _d| _d| _d| _dS )a^ Initializes a new CountBasedApprovalPolicy object with values from keyword arguments. The default value of the :py:attr:`~oci.devops.models.CountBasedApprovalPolicy.approval_policy_type` attribute of this class is ``COUNT_BASED_APPROVAL`` and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param approval_policy_type: The value to assign to the approval_policy_type property of this CountBasedApprovalPolicy. Allowed values for this property are: "COUNT_BASED_APPROVAL" :type approval_policy_type: str :param number_of_approvals_required: The value to assign to the number_of_approvals_required property of this CountBasedApprovalPolicy. :type number_of_approvals_required: int �str�int)Zapproval_policy_type�number_of_approvals_requiredZapprovalPolicyTypeZnumberOfApprovalsRequiredNZCOUNT_BASED_APPROVAL)Z swagger_typesZ attribute_mapZ_approval_policy_type�_number_of_approvals_required)�self�kwargs� r �Q/usr/lib/python3.9/site-packages/oci/devops/models/count_based_approval_policy.py�__init__ s ��z!CountBasedApprovalPolicy.__init__c C s | j S )a **[Required]** Gets the number_of_approvals_required of this CountBasedApprovalPolicy. A minimum number of approvals required for stage to proceed. :return: The number_of_approvals_required of this CountBasedApprovalPolicy. :rtype: int �r �r r r r r 0 s z5CountBasedApprovalPolicy.number_of_approvals_requiredc C s || _ dS )a# Sets the number_of_approvals_required of this CountBasedApprovalPolicy. A minimum number of approvals required for stage to proceed. :param number_of_approvals_required: The number_of_approvals_required of this CountBasedApprovalPolicy. :type: int Nr )r r r r r r <