ruạṛ
a N��ft � @ s8 d dl mZmZmZ d dlmZ eG dd� de��ZdS )� )�formatted_flat_dict� NONE_SENTINEL�#value_allowed_none_or_none_sentinel)�init_model_state_from_kwargsc @ sx e Zd ZdZdZdZdd� Zedd� �Ze dd � �Z e jd d � �Z e dd� �Zejd d� �Zdd� Z dd� Zdd� ZdS )�!ComputeInstanceGroupRolloutPolicyzI Specifies the rollout policy for compute instance group stages. �5COMPUTE_INSTANCE_GROUP_LINEAR_ROLLOUT_POLICY_BY_COUNT�:COMPUTE_INSTANCE_GROUP_LINEAR_ROLLOUT_POLICY_BY_PERCENTAGEc K s( ddd�| _ ddd�| _d| _d| _dS )a� Initializes a new ComputeInstanceGroupRolloutPolicy object with values from keyword arguments. This class has the following subclasses and if you are using this class as input to a service operations then you should favor using a subclass over the base class: * :class:`~oci.devops.models.ComputeInstanceGroupLinearRolloutPolicyByPercentage` * :class:`~oci.devops.models.ComputeInstanceGroupLinearRolloutPolicyByCount` The following keyword arguments are supported (corresponding to the getters/setters of this class): :param policy_type: The value to assign to the policy_type property of this ComputeInstanceGroupRolloutPolicy. Allowed values for this property are: "COMPUTE_INSTANCE_GROUP_LINEAR_ROLLOUT_POLICY_BY_COUNT", "COMPUTE_INSTANCE_GROUP_LINEAR_ROLLOUT_POLICY_BY_PERCENTAGE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type policy_type: str :param batch_delay_in_seconds: The value to assign to the batch_delay_in_seconds property of this ComputeInstanceGroupRolloutPolicy. :type batch_delay_in_seconds: int �str�int)�policy_type�batch_delay_in_seconds� policyType�batchDelayInSecondsN)� swagger_types� attribute_map�_policy_type�_batch_delay_in_seconds)�self�kwargs� r ��/sparta/input/_build_configuration/image_build+validate/lib/bmcenv/lib64/python3.9/site-packages/oci/devops/models/compute_instance_group_rollout_policy.py�__init__ s ��z*ComputeInstanceGroupRolloutPolicy.__init__c C s( | d }|dkrdS |dkr dS dS dS )z� Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype. r r �3ComputeInstanceGroupLinearRolloutPolicyByPercentager �.ComputeInstanceGroupLinearRolloutPolicyByCountr Nr )�object_dictionary�typer r r �get_subtype: s z-ComputeInstanceGroupRolloutPolicy.get_subtypec C s | j S )a **[Required]** Gets the policy_type of this ComputeInstanceGroupRolloutPolicy. The type of policy used for rolling out a deployment stage. Allowed values for this property are: "COMPUTE_INSTANCE_GROUP_LINEAR_ROLLOUT_POLICY_BY_COUNT", "COMPUTE_INSTANCE_GROUP_LINEAR_ROLLOUT_POLICY_BY_PERCENTAGE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The policy_type of this ComputeInstanceGroupRolloutPolicy. :rtype: str )r �r r r r r J s z-ComputeInstanceGroupRolloutPolicy.policy_typec C s ddg}t ||�sd}|| _dS )a Sets the policy_type of this ComputeInstanceGroupRolloutPolicy. The type of policy used for rolling out a deployment stage. :param policy_type: The policy_type of this ComputeInstanceGroupRolloutPolicy. :type: str r r �UNKNOWN_ENUM_VALUEN)r r )r r �allowed_valuesr r r r Y s c C s | j S )a Gets the batch_delay_in_seconds of this ComputeInstanceGroupRolloutPolicy. The duration of delay between batch rollout. The default delay is 1 minute. :return: The batch_delay_in_seconds of this ComputeInstanceGroupRolloutPolicy. :rtype: int �r r r r r r h s z8ComputeInstanceGroupRolloutPolicy.batch_delay_in_secondsc C s || _ dS )a2 Sets the batch_delay_in_seconds of this ComputeInstanceGroupRolloutPolicy. The duration of delay between batch rollout. The default delay is 1 minute. :param batch_delay_in_seconds: The batch_delay_in_seconds of this ComputeInstanceGroupRolloutPolicy. :type: int Nr )r r r r r r t s c C s t | �S �N)r r r r r �__repr__� s z*ComputeInstanceGroupRolloutPolicy.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__� s z(ComputeInstanceGroupRolloutPolicy.__eq__c C s | |k S r! r r$ r r r �__ne__� s z(ComputeInstanceGroupRolloutPolicy.__ne__N)�__name__� __module__�__qualname__�__doc__�APOLICY_TYPE_COMPUTE_INSTANCE_GROUP_LINEAR_ROLLOUT_POLICY_BY_COUNT�FPOLICY_TYPE_COMPUTE_INSTANCE_GROUP_LINEAR_ROLLOUT_POLICY_BY_PERCENTAGEr �staticmethodr �propertyr �setterr r"