
    Bvh"                     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.33
    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
)V1beta2DeviceTolerationzNOTE: 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)z4V1beta2DeviceToleration - 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          \/RAG/venv/lib/python3.12/site-packages/kubernetes/client/models/v1beta2_device_toleration.py__init__z V1beta2DeviceToleration.__init__3   s    #+'4$(@%	#' ! DK?DH$DM)&8D#DJ     c                     | j                   S )aL  Gets the effect of this V1beta2DeviceToleration.  # noqa: E501

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

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

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

        :param effect: The effect of this V1beta2DeviceToleration.  # noqa: E501
        :type: str
        Nr   )r   r   s     r   r   zV1beta2DeviceToleration.effectV   s     r   c                     | j                   S )a  Gets the key of this V1beta2DeviceToleration.  # 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. Must be a label name.  # noqa: E501

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

        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. Must be a label name.  # noqa: E501

        :param key: The key of this V1beta2DeviceToleration.  # noqa: E501
        :type: str
        Nr   )r   r	   s     r   r	   zV1beta2DeviceToleration.keym   s     	r   c                     | j                   S )a  Gets the operator of this V1beta2DeviceToleration.  # 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 ResourceClaim can tolerate all taints of a particular category.  # noqa: E501

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

        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 ResourceClaim can tolerate all taints of a particular category.  # noqa: E501

        :param operator: The operator of this V1beta2DeviceToleration.  # noqa: E501
        :type: str
        Nr"   )r   r
   s     r   r
   z V1beta2DeviceToleration.operator   s     "r   c                     | j                   S )a  Gets the toleration_seconds of this V1beta2DeviceToleration.  # 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. If larger than zero, the time when the pod needs to be evicted is calculated as <time when taint was adedd> + <toleration seconds>.  # noqa: E501

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

        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. If larger than zero, the time when the pod needs to be evicted is calculated as <time when taint was adedd> + <toleration seconds>.  # noqa: E501

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

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

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

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

        :param value: The value of this V1beta2DeviceToleration.  # noqa: E501
        :type: str
        Nr(   )r   r   s     r   r   zV1beta2DeviceToleration.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>z1V1beta2DeviceToleration.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   z1V1beta2DeviceToleration.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V1beta2DeviceToleration.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V1beta2DeviceToleration.to_str   s    ~~dlln--r   c                 "    | j                         S )zFor `print` and `pprint`)rC   r   s    r   __repr__z V1beta2DeviceToleration.__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V1beta2DeviceToleration.__eq__   s'    %!89||~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V1beta2DeviceToleration.__ne__   s'    %!89||~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1f U1r   