
                         >    d Z ddlmZ ddlmZ ddlZ G d de      Zy)z
    Kubernetes

    No description provided (generated by Swagger Codegen
    https://github.com/swagger-api/swagger-codegen)

    OpenAPI spec version: v1.14.4

    Generated by: https://github.com/swagger-api/swagger-codegen.git
    )pformat)	iteritemsNc                   f   e Zd ZdZ	 ddddddZdd	d
dddZ	 	 	 	 	 ddZed        Zej                  d        Zed        Z
e
j                  d        Z
ed        Zej                  d        Zed        Zej                  d        Zed        Zej                  d        Zd Zd Zd Zd Zd Zy)V1alpha1PodPresetSpeczw
    NOTE: This class is auto generated by the swagger code generator program.
    Do not edit the class manually.
    zlist[V1EnvVar]zlist[V1EnvFromSource]V1LabelSelectorzlist[V1VolumeMount]zlist[V1Volume])envenv_fromselectorvolume_mountsvolumesr   envFromr
   volumeMountsr   Nc                     d| _         d| _        d| _        d| _        d| _        d| _        ||| _        ||| _        ||| _        ||| _	        ||| _
        yy)zD
        V1alpha1PodPresetSpec - a model defined in Swagger
        N)_env	_env_from	_selector_volume_mounts_volumesdiscriminatorr   r	   r
   r   r   )selfr   r	   r
   r   r   s         Dlib/third_party/kubernetes/client/models/v1alpha1_pod_preset_spec.py__init__zV1alpha1PodPresetSpec.__init__.   sv     DIDNDNDDMD
dhdmdm (ddl     c                     | j                   S )z
        Gets the env of this V1alpha1PodPresetSpec.
        Env defines the collection of EnvVar to inject into containers.

        :return: The env of this V1alpha1PodPresetSpec.
        :rtype: list[V1EnvVar]
        r   r   s    r   r   zV1alpha1PodPresetSpec.envJ   s     99r   c                     || _         y)z
        Sets the env of this V1alpha1PodPresetSpec.
        Env defines the collection of EnvVar to inject into containers.

        :param env: The env of this V1alpha1PodPresetSpec.
        :type: list[V1EnvVar]
        Nr   )r   r   s     r   r   zV1alpha1PodPresetSpec.envU   s     DIr   c                     | j                   S )a  
        Gets the env_from of this V1alpha1PodPresetSpec.
        EnvFrom defines the collection of EnvFromSource to inject into
        containers.

        :return: The env_from of this V1alpha1PodPresetSpec.
        :rtype: list[V1EnvFromSource]
        r   r   s    r   r	   zV1alpha1PodPresetSpec.env_froma        >>r   c                     || _         y)a  
        Sets the env_from of this V1alpha1PodPresetSpec.
        EnvFrom defines the collection of EnvFromSource to inject into
        containers.

        :param env_from: The env_from of this V1alpha1PodPresetSpec.
        :type: list[V1EnvFromSource]
        Nr   )r   r	   s     r   r	   zV1alpha1PodPresetSpec.env_fromm        DNr   c                     | j                   S )a   
        Gets the selector of this V1alpha1PodPresetSpec.
        Selector is a label query over a set of resources, in this case pods.
        Required.

        :return: The selector of this V1alpha1PodPresetSpec.
        :rtype: V1LabelSelector
        r   r   s    r   r
   zV1alpha1PodPresetSpec.selectorz   r    r   c                     || _         y)a  
        Sets the selector of this V1alpha1PodPresetSpec.
        Selector is a label query over a set of resources, in this case pods.
        Required.

        :param selector: The selector of this V1alpha1PodPresetSpec.
        :type: V1LabelSelector
        Nr$   )r   r
   s     r   r
   zV1alpha1PodPresetSpec.selector   r"   r   c                     | j                   S )a  
        Gets the volume_mounts of this V1alpha1PodPresetSpec.
        VolumeMounts defines the collection of VolumeMount to inject into
        containers.

        :return: The volume_mounts of this V1alpha1PodPresetSpec.
        :rtype: list[V1VolumeMount]
        r   r   s    r   r   z#V1alpha1PodPresetSpec.volume_mounts   s     r   c                     || _         y)a  
        Sets the volume_mounts of this V1alpha1PodPresetSpec.
        VolumeMounts defines the collection of VolumeMount to inject into
        containers.

        :param volume_mounts: The volume_mounts of this V1alpha1PodPresetSpec.
        :type: list[V1VolumeMount]
        Nr'   )r   r   s     r   r   z#V1alpha1PodPresetSpec.volume_mounts   s     (Dr   c                     | j                   S )z
        Gets the volumes of this V1alpha1PodPresetSpec.
        Volumes defines the collection of Volume to inject into the pod.

        :return: The volumes of this V1alpha1PodPresetSpec.
        :rtype: list[V1Volume]
        r   r   s    r   r   zV1alpha1PodPresetSpec.volumes   s     ==r   c                     || _         y)z
        Sets the volumes of this V1alpha1PodPresetSpec.
        Volumes defines the collection of Volume to inject into the pod.

        :param volumes: The volumes of this V1alpha1PodPresetSpec.
        :type: list[V1Volume]
        Nr*   )r   r   s     r   r   zV1alpha1PodPresetSpec.volumes   s     DMr   c                 j   i }t        | j                        D ]  \  }}t        | |      }t        |t              rt	        t        d |            ||<   <t        |d      r|j                         ||<   \t        |t              r(t        t        d |j                                     ||<   |||<    |S )z8
        Returns the model properties as a dict
        c                 >    t        | d      r| j                         S | S )Nto_dicthasattrr.   )xs    r   <lambda>z/V1alpha1PodPresetSpec.to_dict.<locals>.<lambda>   s    I)>!))+EAEr   r.   c                 T    t        | d   d      r| d   | d   j                         fS | S )N   r.   r   r/   )items    r   r2   z/V1alpha1PodPresetSpec.to_dict.<locals>.<lambda>   s6    47I. #1gtAw'89 9489r   )
r   swagger_typesgetattr
isinstancelistmapr0   r.   dictitems)r   resultattr_values        r   r.   zV1alpha1PodPresetSpec.to_dict   s     FT//0adD!e	E4	 EuMOt5)$}}teT"9:?++-IJt
 t 1 Mr   c                 4    t        | j                               S )z@
        Returns the string representation of the model
        )r   r.   r   s    r   to_strzV1alpha1PodPresetSpec.to_str   s     4<<>""r   c                 "    | j                         S )z*
        For `print` and `pprint`
        )rB   r   s    r   __repr__zV1alpha1PodPresetSpec.__repr__   s     ;;=r   c                 V    t        |t              sy| j                  |j                  k(  S )z8
        Returns true if both objects are equal
        F)r8   r   __dict__r   others     r   __eq__zV1alpha1PodPresetSpec.__eq__   s%     e23==ENN**r   c                     | |k(   S )z<
        Returns true if both objects are not equal
         rG   s     r   __ne__zV1alpha1PodPresetSpec.__ne__   s     u}r   )NNNNN)__name__
__module____qualname____doc__r6   attribute_mapr   propertyr   setterr	   r
   r   r   r.   rB   rD   rI   rL   rK   r   r   r   r      sI    )#,!- %- !8   ::	 	 	 	 ??
 
 	 	 ??
 
 	 	 
( 
(   >>	 	.#+r   r   )rP   pprintr   sixr   reobjectr   rK   r   r   <module>rX      s#   	   	aF ar   