
                         >    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                   ,   e Zd ZdZ	 dddddZ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d Zd Zd Zd Zd Zy)V1EnvVarSourcezw
    NOTE: This class is auto generated by the swagger code generator program.
    Do not edit the class manually.
    V1ConfigMapKeySelectorV1ObjectFieldSelectorV1ResourceFieldSelectorV1SecretKeySelector)config_map_key_ref	field_refresource_field_refsecret_key_refconfigMapKeyReffieldRefresourceFieldRefsecretKeyRefNc                     d| _         d| _        d| _        d| _        d| _        ||| _        ||| _        ||| _        ||| _        yy)z=
        V1EnvVarSource - a model defined in Swagger
        N)	_config_map_key_ref
_field_ref_resource_field_ref_secret_key_refdiscriminatorr   r   r   r   )selfr   r   r   r   s        =lib/third_party/kubernetes/client/models/v1_env_var_source.py__init__zV1EnvVarSource.__init__,   sg      $DDO#DDD% 2d dn% 2d!*d "    c                     | j                   S )z
        Gets the config_map_key_ref of this V1EnvVarSource.
        Selects a key of a ConfigMap.

        :return: The config_map_key_ref of this V1EnvVarSource.
        :rtype: V1ConfigMapKeySelector
        r   r   s    r   r   z!V1EnvVarSource.config_map_key_refD   s     ###r   c                     || _         y)z
        Sets the config_map_key_ref of this V1EnvVarSource.
        Selects a key of a ConfigMap.

        :param config_map_key_ref: The config_map_key_ref of this
        V1EnvVarSource.
        :type: V1ConfigMapKeySelector
        Nr   )r   r   s     r   r   z!V1EnvVarSource.config_map_key_refO   s      2Dr   c                     | j                   S )af  
        Gets the field_ref of this V1EnvVarSource.
        Selects a field of the pod: supports metadata.name, metadata.namespace,
        metadata.labels, metadata.annotations, spec.nodeName,
        spec.serviceAccountName, status.hostIP, status.podIP.

        :return: The field_ref of this V1EnvVarSource.
        :rtype: V1ObjectFieldSelector
        r   r   s    r   r   zV1EnvVarSource.field_ref\   s     ??r   c                     || _         y)an  
        Sets the field_ref of this V1EnvVarSource.
        Selects a field of the pod: supports metadata.name, metadata.namespace,
        metadata.labels, metadata.annotations, spec.nodeName,
        spec.serviceAccountName, status.hostIP, status.podIP.

        :param field_ref: The field_ref of this V1EnvVarSource.
        :type: V1ObjectFieldSelector
        Nr"   )r   r   s     r   r   zV1EnvVarSource.field_refi   s      DOr   c                     | j                   S )a  
        Gets the resource_field_ref of this V1EnvVarSource.
        Selects a resource of the container: only resources limits and requests
        (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu,
        requests.memory and requests.ephemeral-storage) are currently supported.

        :return: The resource_field_ref of this V1EnvVarSource.
        :rtype: V1ResourceFieldSelector
        r   r   s    r   r   z!V1EnvVarSource.resource_field_refw   s     ###r   c                     || _         y)a  
        Sets the resource_field_ref of this V1EnvVarSource.
        Selects a resource of the container: only resources limits and requests
        (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu,
        requests.memory and requests.ephemeral-storage) are currently supported.

        :param resource_field_ref: The resource_field_ref of this
        V1EnvVarSource.
        :type: V1ResourceFieldSelector
        Nr%   )r   r   s     r   r   z!V1EnvVarSource.resource_field_ref   s      2Dr   c                     | j                   S )z
        Gets the secret_key_ref of this V1EnvVarSource.
        Selects a key of a secret in the pod's namespace

        :return: The secret_key_ref of this V1EnvVarSource.
        :rtype: V1SecretKeySelector
        r   r   s    r   r   zV1EnvVarSource.secret_key_ref   s     r   c                     || _         y)z
        Sets the secret_key_ref of this V1EnvVarSource.
        Selects a key of a secret in the pod's namespace

        :param secret_key_ref: The secret_key_ref of this V1EnvVarSource.
        :type: V1SecretKeySelector
        Nr(   )r   r   s     r   r   zV1EnvVarSource.secret_key_ref   s     *Dr   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(V1EnvVarSource.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   r0   z(V1EnvVarSource.to_dict.<locals>.<lambda>   s6    47I. #1gtAw'89 9489r   )
r   swagger_typesgetattr
isinstancelistmapr.   r,   dictitems)r   resultattr_values        r   r,   zV1EnvVarSource.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V1EnvVarSource.to_str   s     4<<>""r   c                 "    | j                         S )z*
        For `print` and `pprint`
        )r@   r   s    r   __repr__zV1EnvVarSource.__repr__   s     ;;=r   c                 V    t        |t              sy| j                  |j                  k(  S )z8
        Returns true if both objects are equal
        F)r6   r   __dict__r   others     r   __eq__zV1EnvVarSource.__eq__   s$     e^,==ENN**r   c                     | |k(   S )z<
        Returns true if both objects are not equal
         rE   s     r   __ne__zV1EnvVarSource.__ne__   s     u}r   )NNNN)__name__
__module____qualname____doc__r4   attribute_mapr   propertyr   setterr   r   r   r,   r@   rB   rG   rJ   rI   r   r   r   r      s    5*5-	- ..&	- #'"&"	+0 $ $ 
2 
2 
 
     
$ 
$ 2 2     	* 	*.#+r   r   )rN   pprintr   sixr   reobjectr   rI   r   r   <module>rV      s#   	   	HV Hr   