
                         >    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	)V1Taintzw
    NOTE: This class is auto generated by the swagger code generator program.
    Do not edit the class manually.
    strdatetime)effectkey
time_addedvaluer	   r
   	timeAddedr   Nc                     d| _         d| _        d| _        d| _        d| _        || _        || _        ||| _        ||| _        yy)z6
        V1Taint - a model defined in Swagger
        N)	_effect_key_time_added_valuediscriminatorr	   r
   r   r   )selfr	   r
   r   r   s        4lib/third_party/kubernetes/client/models/v1_taint.py__init__zV1Taint.__init__,   sV    
 DLDIDDKDDKDH"dodj     c                     | j                   S )a  
        Gets the effect of this V1Taint.
        Required. The effect of the taint on pods that do not tolerate the
        taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute.

        :return: The effect of this V1Taint.
        :rtype: str
        )r   r   s    r   r	   zV1Taint.effect>   s     <<r   c                 ,    |t        d      || _        y)a  
        Sets the effect of this V1Taint.
        Required. The effect of the taint on pods that do not tolerate the
        taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute.

        :param effect: The effect of this V1Taint.
        :type: str
        Nz.Invalid value for `effect`, must not be `None`)
ValueErrorr   )r   r	   s     r   r	   zV1Taint.effectJ   s     ~GHHDLr   c                     | j                   S )z
        Gets the key of this V1Taint.
        Required. The taint key to be applied to a node.

        :return: The key of this V1Taint.
        :rtype: str
        )r   r   s    r   r
   zV1Taint.keyY   s     99r   c                 ,    |t        d      || _        y)z
        Sets the key of this V1Taint.
        Required. The taint key to be applied to a node.

        :param key: The key of this V1Taint.
        :type: str
        Nz+Invalid value for `key`, must not be `None`)r   r   )r   r
   s     r   r
   zV1Taint.keyd   s     {DEEDIr   c                     | j                   S )z
        Gets the time_added of this V1Taint.
        TimeAdded represents the time at which the taint was added. It is only
        written for NoExecute taints.

        :return: The time_added of this V1Taint.
        :rtype: datetime
        r   r   s    r   r   zV1Taint.time_addedr   s     r   c                     || _         y)z
        Sets the time_added of this V1Taint.
        TimeAdded represents the time at which the taint was added. It is only
        written for NoExecute taints.

        :param time_added: The time_added of this V1Taint.
        :type: datetime
        Nr   )r   r   s     r   r   zV1Taint.time_added~   s     "Dr   c                     | j                   S )z
        Gets the value of this V1Taint.
        Required. The taint value corresponding to the taint key.

        :return: The value of this V1Taint.
        :rtype: str
        r   r   s    r   r   zV1Taint.value   s     ;;r   c                     || _         y)z
        Sets the value of this V1Taint.
        Required. The taint value corresponding to the taint key.

        :param value: The value of this V1Taint.
        :type: str
        Nr"   )r   r   s     r   r   zV1Taint.value   s     DKr   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!V1Taint.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   r*   z!V1Taint.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_r   s        r   r&   zV1Taint.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V1Taint.to_str   s     4<<>""r   c                 "    | j                         S )z*
        For `print` and `pprint`
        )r9   r   s    r   __repr__zV1Taint.__repr__   s     ;;=r   c                 V    t        |t              sy| j                  |j                  k(  S )z8
        Returns true if both objects are equal
        F)r0   r   __dict__r   others     r   __eq__zV1Taint.__eq__   s$     eW%==ENN**r   c                     | |k(   S )z<
        Returns true if both objects are not equal
         r>   s     r   __ne__zV1Taint.__ne__   s     u}r   )NNNN)__name__
__module____qualname____doc__r.   attribute_mapr   propertyr	   setterr
   r   r   r&   r9   r;   r@   rC   rB   r   r   r   r      s    	- 	-$ 	 	 
==    ::  	 	 
" 
"   	<<	 	.#+r   r   )rG   pprintr   sixr   reobjectr   rB   r   r   <module>rO      s#   	   	@f @r   