ruạṛ
a ���f� � @ 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 @ s^ e Zd ZdZdZdZdd� Zedd� �Ze dd � �Z e jd d � �Z dd� Zd d� Z dd� ZdS )�MergePullRequestDetailsz8 determines if this is a merge or a validation. �EXECUTE�VALIDATEc K s ddi| _ ddi| _d| _dS )a� Initializes a new MergePullRequestDetails 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.ExecuteMergePullRequestDetails` * :class:`~oci.devops.models.ValidateMergePullRequestDetails` The following keyword arguments are supported (corresponding to the getters/setters of this class): :param action_type: The value to assign to the action_type property of this MergePullRequestDetails. Allowed values for this property are: "EXECUTE", "VALIDATE" :type action_type: str �action_type�str� actionTypeN)Z swagger_typesZ attribute_map�_action_type)�self�kwargs� r �P/usr/lib/python3.9/site-packages/oci/devops/models/merge_pull_request_details.py�__init__ s ��z MergePullRequestDetails.__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 ZExecuteMergePullRequestDetailsr ZValidateMergePullRequestDetailsr Nr )Zobject_dictionary�typer r r �get_subtype4 s z#MergePullRequestDetails.get_subtypec C s | j S )a **[Required]** Gets the action_type of this MergePullRequestDetails. the type of action for this merge. Allowed values for this property are: "EXECUTE", "VALIDATE" :return: The action_type of this MergePullRequestDetails. :rtype: str )r �r r r r r D s z#MergePullRequestDetails.action_typec C s* ddg}t ||�s td|� ���|| _dS )z� Sets the action_type of this MergePullRequestDetails. the type of action for this merge. :param action_type: The action_type of this MergePullRequestDetails. :type: str r r z8Invalid value for `action_type`, must be None or one of N)r � ValueErrorr )r r Zallowed_valuesr r r r R s �c C s t | �S �N)r r r r r �__repr__c s z MergePullRequestDetails.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__f s zMergePullRequestDetails.__eq__c C s | |k S r r r r r r �__ne__l s zMergePullRequestDetails.__ne__N)�__name__� __module__�__qualname__�__doc__ZACTION_TYPE_EXECUTEZACTION_TYPE_VALIDATEr �staticmethodr �propertyr �setterr r r r r r r r s r N)Zoci.utilr r r Zoci.decoratorsr �objectr r r r r �<module> s
cải xoăn