
    <g(                     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ddZdd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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)#V1LeaseSpeczNOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    datetimestrint)acquire_timeholder_identitylease_duration_secondslease_transitionspreferred_holder
renew_timestrategyacquireTimeholderIdentityleaseDurationSecondsleaseTransitionspreferredHolder	renewTimer   Nc	                    |
t               }|| _        d| _        d| _        d| _        d| _        d| _        d| _        d| _        d| _	        ||| _
        ||| _        ||| _        ||| _        ||| _        ||| _        ||| _        yy)z(V1LeaseSpec - a model defined in OpenAPIN)r   local_vars_configuration_acquire_time_holder_identity_lease_duration_seconds_lease_transitions_preferred_holder_renew_time	_strategydiscriminatorr	   r
   r   r   r   r   r   )	selfr	   r
   r   r   r   r   r   r   s	            [/var/www/openai/venv/lib/python3.12/site-packages/kubernetes/client/models/v1_lease_spec.py__init__zV1LeaseSpec.__init__7   s    #+'4$(@%! $'+$"&!%!# ,D&#2D !-*@D'(%6D"'$4D!!(DO$DM      c                     | j                   S )zGets the acquire_time of this V1LeaseSpec.  # noqa: E501

        acquireTime is a time when the current lease was acquired.  # noqa: E501

        :return: The acquire_time of this V1LeaseSpec.  # noqa: E501
        :rtype: datetime
        r   r    s    r!   r	   zV1LeaseSpec.acquire_timeU   s     !!!r#   c                     || _         y)zSets the acquire_time of this V1LeaseSpec.

        acquireTime is a time when the current lease was acquired.  # noqa: E501

        :param acquire_time: The acquire_time of this V1LeaseSpec.  # noqa: E501
        :type: datetime
        Nr%   )r    r	   s     r!   r	   zV1LeaseSpec.acquire_time`   s     *r#   c                     | j                   S )a|  Gets the holder_identity of this V1LeaseSpec.  # noqa: E501

        holderIdentity contains the identity of the holder of a current lease. If Coordinated Leader Election is used, the holder identity must be equal to the elected LeaseCandidate.metadata.name field.  # noqa: E501

        :return: The holder_identity of this V1LeaseSpec.  # noqa: E501
        :rtype: str
        r   r&   s    r!   r
   zV1LeaseSpec.holder_identityl   s     $$$r#   c                     || _         y)a|  Sets the holder_identity of this V1LeaseSpec.

        holderIdentity contains the identity of the holder of a current lease. If Coordinated Leader Election is used, the holder identity must be equal to the elected LeaseCandidate.metadata.name field.  # noqa: E501

        :param holder_identity: The holder_identity of this V1LeaseSpec.  # noqa: E501
        :type: str
        Nr)   )r    r
   s     r!   r
   zV1LeaseSpec.holder_identityw   s     !0r#   c                     | j                   S )ae  Gets the lease_duration_seconds of this V1LeaseSpec.  # noqa: E501

        leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measured against the time of last observed renewTime.  # noqa: E501

        :return: The lease_duration_seconds of this V1LeaseSpec.  # noqa: E501
        :rtype: int
        r   r&   s    r!   r   z"V1LeaseSpec.lease_duration_seconds   s     +++r#   c                     || _         y)al  Sets the lease_duration_seconds of this V1LeaseSpec.

        leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measured against the time of last observed renewTime.  # noqa: E501

        :param lease_duration_seconds: The lease_duration_seconds of this V1LeaseSpec.  # noqa: E501
        :type: int
        Nr,   )r    r   s     r!   r   z"V1LeaseSpec.lease_duration_seconds   s     (>$r#   c                     | j                   S )a  Gets the lease_transitions of this V1LeaseSpec.  # noqa: E501

        leaseTransitions is the number of transitions of a lease between holders.  # noqa: E501

        :return: The lease_transitions of this V1LeaseSpec.  # noqa: E501
        :rtype: int
        r   r&   s    r!   r   zV1LeaseSpec.lease_transitions   s     &&&r#   c                     || _         y)a  Sets the lease_transitions of this V1LeaseSpec.

        leaseTransitions is the number of transitions of a lease between holders.  # noqa: E501

        :param lease_transitions: The lease_transitions of this V1LeaseSpec.  # noqa: E501
        :type: int
        Nr/   )r    r   s     r!   r   zV1LeaseSpec.lease_transitions   s     #4r#   c                     | j                   S )aY  Gets the preferred_holder of this V1LeaseSpec.  # noqa: E501

        PreferredHolder signals to a lease holder that the lease has a more optimal holder and should be given up. This field can only be set if Strategy is also set.  # noqa: E501

        :return: The preferred_holder of this V1LeaseSpec.  # noqa: E501
        :rtype: str
        r   r&   s    r!   r   zV1LeaseSpec.preferred_holder   s     %%%r#   c                     || _         y)aZ  Sets the preferred_holder of this V1LeaseSpec.

        PreferredHolder signals to a lease holder that the lease has a more optimal holder and should be given up. This field can only be set if Strategy is also set.  # noqa: E501

        :param preferred_holder: The preferred_holder of this V1LeaseSpec.  # noqa: E501
        :type: str
        Nr2   )r    r   s     r!   r   zV1LeaseSpec.preferred_holder   s     "2r#   c                     | j                   S )a  Gets the renew_time of this V1LeaseSpec.  # noqa: E501

        renewTime is a time when the current holder of a lease has last updated the lease.  # noqa: E501

        :return: The renew_time of this V1LeaseSpec.  # noqa: E501
        :rtype: datetime
        r   r&   s    r!   r   zV1LeaseSpec.renew_time   s     r#   c                     || _         y)a  Sets the renew_time of this V1LeaseSpec.

        renewTime is a time when the current holder of a lease has last updated the lease.  # noqa: E501

        :param renew_time: The renew_time of this V1LeaseSpec.  # noqa: E501
        :type: datetime
        Nr5   )r    r   s     r!   r   zV1LeaseSpec.renew_time   s     &r#   c                     | j                   S )a  Gets the strategy of this V1LeaseSpec.  # noqa: E501

        Strategy indicates the strategy for picking the leader for coordinated leader election. If the field is not specified, there is no active coordination for this lease. (Alpha) Using this field requires the CoordinatedLeaderElection feature gate to be enabled.  # noqa: E501

        :return: The strategy of this V1LeaseSpec.  # noqa: E501
        :rtype: str
        r   r&   s    r!   r   zV1LeaseSpec.strategy   s     ~~r#   c                     || _         y)a  Sets the strategy of this V1LeaseSpec.

        Strategy indicates the strategy for picking the leader for coordinated leader election. If the field is not specified, there is no active coordination for this lease. (Alpha) Using this field requires the CoordinatedLeaderElection feature gate to be enabled.  # noqa: E501

        :param strategy: The strategy of this V1LeaseSpec.  # noqa: E501
        :type: str
        Nr8   )r    r   s     r!   r   zV1LeaseSpec.strategy   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%V1LeaseSpec.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!   r@   z%V1LeaseSpec.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_values        r!   r<   zV1LeaseSpec.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V1LeaseSpec.to_str  s    ~~dlln--r#   c                 "    | j                         S )zFor `print` and `pprint`)rT   r&   s    r!   __repr__zV1LeaseSpec.__repr__  s    {{}r#   c                 f    t        |t              sy| j                         |j                         k(  S )z&Returns true if both objects are equalFrH   r   r<   r    others     r!   __eq__zV1LeaseSpec.__eq__  s&    %-||~00r#   c                 f    t        |t              sy| j                         |j                         k7  S )z*Returns true if both objects are not equalTrX   rY   s     r!   __ne__zV1LeaseSpec.__ne__  s&    %-||~00r#   )NNNNNNNN)__name__
__module____qualname____doc__rF   attribute_mapr"   propertyr	   setterr
   r   r   r   r   r   r<   rT   rV   r[   r]    r#   r!   r   r      s    # "'"! M &+"8/-!M%< " " 	* 	* % % 	0 	0 , , ""	> #	> ' ' 	4 	4 & & 	2 	2     	& 	&   __	" 	"0.11r#   r   )ra   rR   rerD   kubernetes.client.configurationr   objectr   re   r#   r!   <module>ri      s&     	 
 9M1& M1r#   