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 @ st e Zd ZdZdZdd� Zedd� �Zedd� �Z e j d d� �Z ed d� �Zej dd� �Zd d� Zdd� Z dd� ZdS )�NodeSourceOptionz) The source option for the node. �IMAGEc K s( ddd�| _ ddd�| _d| _d| _dS )a� Initializes a new NodeSourceOption 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.container_engine.models.NodeSourceViaImageOption` The following keyword arguments are supported (corresponding to the getters/setters of this class): :param source_type: The value to assign to the source_type property of this NodeSourceOption. Allowed values for this property are: "IMAGE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type source_type: str :param source_name: The value to assign to the source_name property of this NodeSourceOption. :type source_name: str �str)�source_type�source_name� sourceTypeZ sourceNameN)Z swagger_typesZ attribute_map�_source_type�_source_name)�self�kwargs� r �R/usr/lib/python3.9/site-packages/oci/container_engine/models/node_source_option.py�__init__ s ��zNodeSourceOption.__init__c C s | d }|dkrdS 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 ZNodeSourceViaImageOptionr Nr )Zobject_dictionary�typer r r �get_subtype7 s zNodeSourceOption.get_subtypec C s | j S )a� **[Required]** Gets the source_type of this NodeSourceOption. The source type of this option. `IMAGE` means the OCID is of an image. Allowed values for this property are: "IMAGE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The source_type of this NodeSourceOption. :rtype: str )r �r r r r r D s zNodeSourceOption.source_typec C s dg}t ||�sd}|| _dS )z� Sets the source_type of this NodeSourceOption. The source type of this option. `IMAGE` means the OCID is of an image. :param source_type: The source_type of this NodeSourceOption. :type: str r ZUNKNOWN_ENUM_VALUEN)r r )r r Zallowed_valuesr r r r T s c C s | j S )z� Gets the source_name of this NodeSourceOption. The user-friendly name of the entity corresponding to the OCID. :return: The source_name of this NodeSourceOption. :rtype: str �r r r r r r d s zNodeSourceOption.source_namec C s || _ dS )z� Sets the source_name of this NodeSourceOption. The user-friendly name of the entity corresponding to the OCID. :param source_name: The source_name of this NodeSourceOption. :type: str Nr )r r r r r r p s c C s t | �S �N)r r r r r �__repr__| s zNodeSourceOption.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__ s zNodeSourceOption.__eq__c C s | |k S r r r r r r �__ne__� s zNodeSourceOption.__ne__N)�__name__� __module__�__qualname__�__doc__ZSOURCE_TYPE_IMAGEr �staticmethodr �propertyr �setterr r 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