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 )�PutRepositoryRefDetailsz� The information needed to create a reference. If the reference already exists, then it can be used to update the reference. �BRANCH�TAGc K s ddi| _ ddi| _d| _dS )a� Initializes a new PutRepositoryRefDetails 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.PutRepositoryTagDetails` * :class:`~oci.devops.models.PutRepositoryBranchDetails` The following keyword arguments are supported (corresponding to the getters/setters of this class): :param ref_type: The value to assign to the ref_type property of this PutRepositoryRefDetails. Allowed values for this property are: "BRANCH", "TAG" :type ref_type: str �ref_type�str�refTypeN)Z swagger_typesZ attribute_map� _ref_type)�self�kwargs� r �P/usr/lib/python3.9/site-packages/oci/devops/models/put_repository_ref_details.py�__init__ s ��z PutRepositoryRefDetails.__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 ZPutRepositoryTagDetailsr ZPutRepositoryBranchDetailsr Nr )Zobject_dictionary�typer r r �get_subtype4 s z#PutRepositoryRefDetails.get_subtypec C s | j S )a **[Required]** Gets the ref_type of this PutRepositoryRefDetails. The type of reference (BRANCH or TAG). Allowed values for this property are: "BRANCH", "TAG" :return: The ref_type of this PutRepositoryRefDetails. :rtype: str )r �r r r r r D s z PutRepositoryRefDetails.ref_typec C s* ddg}t ||�s td|� ���|| _dS )z� Sets the ref_type of this PutRepositoryRefDetails. The type of reference (BRANCH or TAG). :param ref_type: The ref_type of this PutRepositoryRefDetails. :type: str r r z5Invalid value for `ref_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 PutRepositoryRefDetails.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__f s zPutRepositoryRefDetails.__eq__c C s | |k S r r r r r r �__ne__l s zPutRepositoryRefDetails.__ne__N)�__name__� __module__�__qualname__�__doc__ZREF_TYPE_BRANCHZREF_TYPE_TAGr �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