
    <g5                      B    d Z ddlZddlZddlZddlmZ  G d de      Zy)z
    Kubernetes

    No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)  # noqa: E501

    The version of the OpenAPI document: release-1.32
    Generated by: https://openapi-generator.tech
    N)Configurationc                   \   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
)V1TolerationzNOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    strint)effectkeyoperatortoleration_secondsvaluer   r	   r
   tolerationSecondsr   Nc                     |
t               }|| _        d| _        d| _        d| _        d| _        d| _        d| _        ||| _        ||| _	        ||| _
        ||| _        ||| _        yy)z)V1Toleration - a model defined in OpenAPIN)r   local_vars_configuration_effect_key	_operator_toleration_seconds_valuediscriminatorr   r	   r
   r   r   )selfr   r	   r
   r   r   r   s          [/var/www/openai/venv/lib/python3.12/site-packages/kubernetes/client/models/v1_toleration.py__init__zV1Toleration.__init__3   s    #+'4$(@%	#' ! DK?DH$DM)&8D#DJ     c                     | j                   S )aH  Gets the effect of this V1Toleration.  # noqa: E501

        Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.  # noqa: E501

        :return: The effect of this V1Toleration.  # noqa: E501
        :rtype: str
        r   r   s    r   r   zV1Toleration.effectK   s     ||r   c                     || _         y)a?  Sets the effect of this V1Toleration.

        Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.  # noqa: E501

        :param effect: The effect of this V1Toleration.  # noqa: E501
        :type: str
        Nr   )r   r   s     r   r   zV1Toleration.effectV   s     r   c                     | j                   S )a`  Gets the key of this V1Toleration.  # noqa: E501

        Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys.  # noqa: E501

        :return: The key of this V1Toleration.  # noqa: E501
        :rtype: str
        r   r   s    r   r	   zV1Toleration.keyb   s     yyr   c                     || _         y)aT  Sets the key of this V1Toleration.

        Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys.  # noqa: E501

        :param key: The key of this V1Toleration.  # noqa: E501
        :type: str
        Nr   )r   r	   s     r   r	   zV1Toleration.keym   s     	r   c                     | j                   S )a  Gets the operator of this V1Toleration.  # noqa: E501

        Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category.  # noqa: E501

        :return: The operator of this V1Toleration.  # noqa: E501
        :rtype: str
        r   r   s    r   r
   zV1Toleration.operatory   s     ~~r   c                     || _         y)a  Sets the operator of this V1Toleration.

        Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category.  # noqa: E501

        :param operator: The operator of this V1Toleration.  # noqa: E501
        :type: str
        Nr"   )r   r
   s     r   r
   zV1Toleration.operator   s     "r   c                     | j                   S )a  Gets the toleration_seconds of this V1Toleration.  # noqa: E501

        TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system.  # noqa: E501

        :return: The toleration_seconds of this V1Toleration.  # noqa: E501
        :rtype: int
        r   r   s    r   r   zV1Toleration.toleration_seconds   s     '''r   c                     || _         y)a  Sets the toleration_seconds of this V1Toleration.

        TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system.  # noqa: E501

        :param toleration_seconds: The toleration_seconds of this V1Toleration.  # noqa: E501
        :type: int
        Nr%   )r   r   s     r   r   zV1Toleration.toleration_seconds   s     $6 r   c                     | j                   S )a1  Gets the value of this V1Toleration.  # noqa: E501

        Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string.  # noqa: E501

        :return: The value of this V1Toleration.  # noqa: E501
        :rtype: str
        r   r   s    r   r   zV1Toleration.value   s     {{r   c                     || _         y)a'  Sets the value of this V1Toleration.

        Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string.  # noqa: E501

        :param value: The value of this V1Toleration.  # noqa: E501
        :type: str
        Nr(   )r   r   s     r   r   zV1Toleration.value   s     r   c                 ~   i }t        j                  | j                        D ]  \  }}t        | |      }t	        |t
              rt        t        d |            ||<   <t        |d      r|j                         ||<   \t	        |t              r(t        t        d |j                                     ||<   |||<    |S )z&Returns the model properties as a dictc                 >    t        | d      r| j                         S | S )Nto_dicthasattrr,   )xs    r   <lambda>z&V1Toleration.to_dict.<locals>.<lambda>   s    WQ	-BaiikIIr   r,   c                 T    t        | d   d      r| d   | d   j                         fS | S )N   r,   r   r-   )items    r   r0   z&V1Toleration.to_dict.<locals>.<lambda>   s6    tAw	2 #'q'47??+<!= "=8<"=r   )six	iteritemsopenapi_typesgetattr
isinstancelistmapr.   r,   dictitems)r   resultattr_r   s        r   r,   zV1Toleration.to_dict   s    }}T%7%78GD!D$'E%&#CI%  t 	*$}}tE4(#C=KKM%  t  %t! 9$ r   c                 H    t        j                  | j                               S )z.Returns the string representation of the model)pprintpformatr,   r   s    r   to_strzV1Toleration.to_str   s    ~~dlln--r   c                 "    | j                         S )zFor `print` and `pprint`)rC   r   s    r   __repr__zV1Toleration.__repr__   s    {{}r   c                 f    t        |t              sy| j                         |j                         k(  S )z&Returns true if both objects are equalFr8   r   r,   r   others     r   __eq__zV1Toleration.__eq__   s&    %.||~00r   c                 f    t        |t              sy| j                         |j                         k7  S )z*Returns true if both objects are not equalTrG   rH   s     r   __ne__zV1Toleration.__ne__   s&    %.||~00r   )NNNNNN)__name__
__module____qualname____doc__r6   attribute_mapr   propertyr   setterr	   r
   r   r   r,   rC   rE   rJ   rL    r   r   r   r      s8    #M 1M0   ]]	 	   	ZZ	 	   __	" 	" ( ( 	6 	6   \\	 	0.11r   r   )rP   rA   rer4   kubernetes.client.configurationr   objectr   rT   r   r   <module>rX      s&     	 
 9U16 U1r   