Ë
    <ª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.31
    Generated by: https://openapi-generator.tech
é    N)ÚConfigurationc                   ó”  — e Zd ZdZ	 dddddddœZ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d„ Zd„ Zd„ Zd„ Zd„ Zy) ÚV1alpha1LeaseCandidateSpeczŠNOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    ÚstrÚdatetimez	list[str])Úbinary_versionÚemulation_versionÚ
lease_nameÚ	ping_timeÚpreferred_strategiesÚ
renew_timeÚbinaryVersionÚemulationVersionÚ	leaseNameÚpingTimeÚpreferredStrategiesÚ	renewTimeNc                 óò   — |€
t        «       }|| _        d| _        d| _        d| _        d| _        d| _        d| _        d| _        ||| _	        ||| _
        || _        ||| _        || _        ||| _        yy)z7V1alpha1LeaseCandidateSpec - a model defined in OpenAPIN)r   Úlocal_vars_configurationÚ_binary_versionÚ_emulation_versionÚ_lease_nameÚ
_ping_timeÚ_preferred_strategiesÚ_renew_timeÚdiscriminatorr   r	   r
   r   r   r   )Úselfr   r	   r
   r   r   r   r   s           úk/var/www/openai/venv/lib/python3.12/site-packages/kubernetes/client/models/v1alpha1_lease_candidate_spec.pyÚ__init__z#V1alpha1LeaseCandidateSpec.__init__5   s™   € à#Ð+Ü'4£Ð$Ø(@ˆÔ%à#ˆÔØ"&ˆÔØˆÔØˆŒØ%)ˆÔ"ØˆÔØ!ˆÔàÐ%Ø"0ˆDÔØÐ(Ø%6ˆDÔ"Ø$ˆŒØÐ Ø&ˆDŒNØ$8ˆÔ!ØÐ!Ø(ˆDOð "ó    c                 ó   — | j                   S )am  Gets the binary_version of this V1alpha1LeaseCandidateSpec.  # noqa: E501

        BinaryVersion is the binary version. It must be in a semver format without leading `v`. This field is required when strategy is "OldestEmulationVersion"  # noqa: E501

        :return: The binary_version of this V1alpha1LeaseCandidateSpec.  # noqa: E501
        :rtype: str
        ©r   ©r   s    r   r   z)V1alpha1LeaseCandidateSpec.binary_versionN   s   € ð ×#Ñ#Ð#r    c                 ó   — || _         y)al  Sets the binary_version of this V1alpha1LeaseCandidateSpec.

        BinaryVersion is the binary version. It must be in a semver format without leading `v`. This field is required when strategy is "OldestEmulationVersion"  # noqa: E501

        :param binary_version: The binary_version of this V1alpha1LeaseCandidateSpec.  # noqa: E501
        :type: str
        Nr"   )r   r   s     r   r   z)V1alpha1LeaseCandidateSpec.binary_versionY   s   € ð  .ˆÕr    c                 ó   — | j                   S )a·  Gets the emulation_version of this V1alpha1LeaseCandidateSpec.  # noqa: E501

        EmulationVersion is the emulation version. It must be in a semver format without leading `v`. EmulationVersion must be less than or equal to BinaryVersion. This field is required when strategy is "OldestEmulationVersion"  # noqa: E501

        :return: The emulation_version of this V1alpha1LeaseCandidateSpec.  # noqa: E501
        :rtype: str
        ©r   r#   s    r   r	   z,V1alpha1LeaseCandidateSpec.emulation_versione   s   € ð ×&Ñ&Ð&r    c                 ó   — || _         y)a¹  Sets the emulation_version of this V1alpha1LeaseCandidateSpec.

        EmulationVersion is the emulation version. It must be in a semver format without leading `v`. EmulationVersion must be less than or equal to BinaryVersion. This field is required when strategy is "OldestEmulationVersion"  # noqa: E501

        :param emulation_version: The emulation_version of this V1alpha1LeaseCandidateSpec.  # noqa: E501
        :type: str
        Nr&   )r   r	   s     r   r	   z,V1alpha1LeaseCandidateSpec.emulation_versionp   s   € ð #4ˆÕr    c                 ó   — | j                   S )a0  Gets the lease_name of this V1alpha1LeaseCandidateSpec.  # noqa: E501

        LeaseName is the name of the lease for which this candidate is contending. This field is immutable.  # noqa: E501

        :return: The lease_name of this V1alpha1LeaseCandidateSpec.  # noqa: E501
        :rtype: str
        )r   r#   s    r   r
   z%V1alpha1LeaseCandidateSpec.lease_name|   ó   € ð ×ÑÐr    c                 óX   — | j                   j                  r|€t        d«      ‚|| _        y)a+  Sets the lease_name of this V1alpha1LeaseCandidateSpec.

        LeaseName is the name of the lease for which this candidate is contending. This field is immutable.  # noqa: E501

        :param lease_name: The lease_name of this V1alpha1LeaseCandidateSpec.  # noqa: E501
        :type: str
        Nz2Invalid value for `lease_name`, must not be `None`)r   Úclient_side_validationÚ
ValueErrorr   )r   r
   s     r   r
   z%V1alpha1LeaseCandidateSpec.lease_name‡   s,   € ð ×(Ñ(×?Ò?ÀJÐDVÜÐQÓRÐRà%ˆÕr    c                 ó   — | j                   S )aÔ  Gets the ping_time of this V1alpha1LeaseCandidateSpec.  # noqa: E501

        PingTime is the last time that the server has requested the LeaseCandidate to renew. It is only done during leader election to check if any LeaseCandidates have become ineligible. When PingTime is updated, the LeaseCandidate will respond by updating RenewTime.  # noqa: E501

        :return: The ping_time of this V1alpha1LeaseCandidateSpec.  # noqa: E501
        :rtype: datetime
        ©r   r#   s    r   r   z$V1alpha1LeaseCandidateSpec.ping_time•   s   € ð ‰Ðr    c                 ó   — || _         y)aÎ  Sets the ping_time of this V1alpha1LeaseCandidateSpec.

        PingTime is the last time that the server has requested the LeaseCandidate to renew. It is only done during leader election to check if any LeaseCandidates have become ineligible. When PingTime is updated, the LeaseCandidate will respond by updating RenewTime.  # noqa: E501

        :param ping_time: The ping_time of this V1alpha1LeaseCandidateSpec.  # noqa: E501
        :type: datetime
        Nr.   )r   r   s     r   r   z$V1alpha1LeaseCandidateSpec.ping_time    s   € ð $ˆr    c                 ó   — | j                   S )að  Gets the preferred_strategies of this V1alpha1LeaseCandidateSpec.  # noqa: E501

        PreferredStrategies indicates the list of strategies for picking the leader for coordinated leader election. The list is ordered, and the first strategy supersedes all other strategies. The list is used by coordinated leader election to make a decision about the final election strategy. This follows as - If all clients have strategy X as the first element in this list, strategy X will be used. - If a candidate has strategy [X] and another candidate has strategy [Y, X], Y supersedes X and strategy Y   will be used. - If a candidate has strategy [X, Y] and another candidate has strategy [Y, X], this is a user error and leader   election will not operate the Lease until resolved. (Alpha) Using this field requires the CoordinatedLeaderElection feature gate to be enabled.  # noqa: E501

        :return: The preferred_strategies of this V1alpha1LeaseCandidateSpec.  # noqa: E501
        :rtype: list[str]
        )r   r#   s    r   r   z/V1alpha1LeaseCandidateSpec.preferred_strategies¬   s   € ð ×)Ñ)Ð)r    c                 óX   — | j                   j                  r|€t        d«      ‚|| _        y)aõ  Sets the preferred_strategies of this V1alpha1LeaseCandidateSpec.

        PreferredStrategies indicates the list of strategies for picking the leader for coordinated leader election. The list is ordered, and the first strategy supersedes all other strategies. The list is used by coordinated leader election to make a decision about the final election strategy. This follows as - If all clients have strategy X as the first element in this list, strategy X will be used. - If a candidate has strategy [X] and another candidate has strategy [Y, X], Y supersedes X and strategy Y   will be used. - If a candidate has strategy [X, Y] and another candidate has strategy [Y, X], this is a user error and leader   election will not operate the Lease until resolved. (Alpha) Using this field requires the CoordinatedLeaderElection feature gate to be enabled.  # noqa: E501

        :param preferred_strategies: The preferred_strategies of this V1alpha1LeaseCandidateSpec.  # noqa: E501
        :type: list[str]
        Nz<Invalid value for `preferred_strategies`, must not be `None`)r   r+   r,   r   )r   r   s     r   r   z/V1alpha1LeaseCandidateSpec.preferred_strategies·   s-   € ð ×(Ñ(×?Ò?ÐDXÐD`ÜÐ[Ó\Ð\à%9ˆÕ"r    c                 ó   — | j                   S )am  Gets the renew_time of this V1alpha1LeaseCandidateSpec.  # noqa: E501

        RenewTime is the time that the LeaseCandidate was last updated. Any time a Lease needs to do leader election, the PingTime field is updated to signal to the LeaseCandidate that they should update the RenewTime. Old LeaseCandidate objects are also garbage collected if it has been hours since the last renew. The PingTime field is updated regularly to prevent garbage collection for still active LeaseCandidates.  # noqa: E501

        :return: The renew_time of this V1alpha1LeaseCandidateSpec.  # noqa: E501
        :rtype: datetime
        ©r   r#   s    r   r   z%V1alpha1LeaseCandidateSpec.renew_timeÅ   r)   r    c                 ó   — || _         y)ah  Sets the renew_time of this V1alpha1LeaseCandidateSpec.

        RenewTime is the time that the LeaseCandidate was last updated. Any time a Lease needs to do leader election, the PingTime field is updated to signal to the LeaseCandidate that they should update the RenewTime. Old LeaseCandidate objects are also garbage collected if it has been hours since the last renew. The PingTime field is updated regularly to prevent garbage collection for still active LeaseCandidates.  # noqa: E501

        :param renew_time: The renew_time of this V1alpha1LeaseCandidateSpec.  # noqa: E501
        :type: datetime
        Nr3   )r   r   s     r   r   z%V1alpha1LeaseCandidateSpec.renew_timeÐ   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©Úhasattrr7   )Úxs    r   Ú<lambda>z4V1alpha1LeaseCandidateSpec.to_dict.<locals>.<lambda>ä   s   € ¬W°Q¸	Ô-B˜aŸi™i›kÐIÈÐIr    r7   c                 óT   — t        | d   d«      r| d   | d   j                  «       fS | S )Né   r7   r   r8   )Úitems    r   r;   z4V1alpha1LeaseCandidateSpec.to_dict.<locals>.<lambda>ë   s6   € Ü˜t A™w¨	Ô2ð #' q¡'¨4°©7¯?©?Ó+<Ð!=ð "=Ø8<ð"=r    )ÚsixÚ	iteritemsÚopenapi_typesÚgetattrÚ
isinstanceÚlistÚmapr9   r7   ÚdictÚitems)r   ÚresultÚattrÚ_Úvalues        r   r7   z"V1alpha1LeaseCandidateSpec.to_dictÜ   s¯   € àˆä—}‘} T×%7Ñ%7Ö8‰GˆD!Ü˜D $Ó'ˆEÜ˜%¤Ô&Ü#¤CÙIØó%ó  t’ô ˜ 	Ô*Ø$Ÿ}™}›t’Ü˜E¤4Ô(Ü#¤Cñ=à—K‘K“Mó%ó  t’ð  %t’ð! 9ð$ ˆr    c                 óH   — t        j                  | j                  «       «      S )z.Returns the string representation of the model)ÚpprintÚpformatr7   r#   s    r   Úto_strz!V1alpha1LeaseCandidateSpec.to_strô   s   € ä~‰~˜dŸl™l›nÓ-Ð-r    c                 ó"   — | j                  «       S )zFor `print` and `pprint`)rO   r#   s    r   Ú__repr__z#V1alpha1LeaseCandidateSpec.__repr__ø   s   € à{‰{‹}Ðr    c                 óf   — t        |t        «      sy| j                  «       |j                  «       k(  S )z&Returns true if both objects are equalF©rC   r   r7   ©r   Úothers     r   Ú__eq__z!V1alpha1LeaseCandidateSpec.__eq__ü   s'   € ä˜%Ô!;Ô<Øà|‰|‹~ §¡£Ñ0Ð0r    c                 óf   — t        |t        «      sy| j                  «       |j                  «       k7  S )z*Returns true if both objects are not equalTrS   rT   s     r   Ú__ne__z!V1alpha1LeaseCandidateSpec.__ne__  s'   € ä˜%Ô!;Ô<Øà|‰|‹~ §¡£Ñ0Ð0r    )NNNNNNN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__rA   Úattribute_mapr   Úpropertyr   Úsetterr	   r
   r   r   r   r7   rO   rQ   rV   rX   © r    r   r   r      st  „ ñðð  Ø"ØØØ +Ø ñ€Mð *Ø/Ø!ØØ 5Ø!ñ€Mó)ð2 ñ$ó ð$ð ×Ññ	.ó ð	.ð ñ'ó ð'ð ×Ññ	4ó ð	4ð ñ ó ð ð ×Ññ&ó ð&ð ñó ðð ×Ññ	$ó ð	$ð ñ*ó ð*ð × Ñ ñ:ó !ð:ð ñ ó ð ð ×Ññ	&ó ð	&òò0.òò1ó1r    r   )r\   rM   Úrer?   Úkubernetes.client.configurationr   Úobjectr   r`   r    r   Ú<module>rd      s&   ðñó Û 	ã 
å 9ôs1 õ s1r    