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 @ sx e Zd ZdZdZdZdd� Zedd� �Ze dd � �Z e jd d � �Z e dd� �Zejd d� �Zdd� Z dd� Zdd� ZdS )�ContainerVolumez~ A volume represents a directory with data that is accessible across multiple containers in a container instance. �EMPTYDIR� CONFIGFILEc K s( ddd�| _ ddd�| _d| _d| _dS )a� Initializes a new ContainerVolume 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_instances.models.ContainerEmptyDirVolume` * :class:`~oci.container_instances.models.ContainerConfigFileVolume` The following keyword arguments are supported (corresponding to the getters/setters of this class): :param name: The value to assign to the name property of this ContainerVolume. :type name: str :param volume_type: The value to assign to the volume_type property of this ContainerVolume. Allowed values for this property are: "EMPTYDIR", "CONFIGFILE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type volume_type: str �str)�name�volume_typer � volumeTypeN)Z swagger_typesZ attribute_map�_name�_volume_type)�self�kwargs� r �S/usr/lib/python3.9/site-packages/oci/container_instances/models/container_volume.py�__init__ s ��zContainerVolume.__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 ZContainerEmptyDirVolumer ZContainerConfigFileVolumer Nr )Zobject_dictionary�typer r r �get_subtype= s zContainerVolume.get_subtypec C s | j S )z� **[Required]** Gets the name of this ContainerVolume. The name of the volume. This must be unique within a single container instance. :return: The name of this ContainerVolume. :rtype: str �r �r r r r r M s zContainerVolume.namec C s || _ dS )z� Sets the name of this ContainerVolume. The name of the volume. This must be unique within a single container instance. :param name: The name of this ContainerVolume. :type: str Nr )r r r r r r Y s c C s | j S )aw **[Required]** Gets the volume_type of this ContainerVolume. The type of volume. Allowed values for this property are: "EMPTYDIR", "CONFIGFILE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The volume_type of this ContainerVolume. :rtype: str )r r r r r r e s zContainerVolume.volume_typec C s ddg}t ||�sd}|| _dS )z� Sets the volume_type of this ContainerVolume. The type of volume. :param volume_type: The volume_type of this ContainerVolume. :type: str r r ZUNKNOWN_ENUM_VALUEN)r r )r r Zallowed_valuesr r r r t s c C s t | �S �N)r r r r r �__repr__� s zContainerVolume.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__� s zContainerVolume.__eq__c C s | |k S r r r r r r �__ne__� s zContainerVolume.__ne__N)�__name__� __module__�__qualname__�__doc__ZVOLUME_TYPE_EMPTYDIRZVOLUME_TYPE_CONFIGFILEr �staticmethodr �propertyr �setterr r r r r r r r r s"