Ë
    eQêjú.  ã                  óæ   — d Z ddlmZ ddlZddlZddlZddlmZ ddl	m	Z	 ddl
mZmZmZmZmZmZ ddlmZmZmZmZmZmZ ddlmZmZ dd	lmZ dd
lmZ dZdd„Zdd„Z dd„Z!dd„Z" G d„ de«      Z#y)a   
    Kubernetes

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

    The version of the OpenAPI document: release-1.37
    Generated by OpenAPI Generator (https://openapi-generator.tech)

    Do not edit the class manually.
é    )ÚannotationsN)ÚMapping)Údatetime)ÚAliasChoicesÚ	BaseModelÚ
ConfigDictÚFieldÚ	StrictIntÚ	StrictStr)ÚAnyÚClassVarÚDictÚListÚOptionalÚcast)r   ÚSet)ÚSelf)Úto_jsonable_pythonÚ_openapi_generator_to_dictc                óâ   — t        | dd «      }t        t        | «      dd «      }t        |«      rt        |dd «      |ury t        |t        d «      }t        |«      rt        |t        d «      |ury |S )NÚto_dictÚ__func__)ÚgetattrÚtypeÚcallableÚ_OPENAPI_GENERATOR_TO_DICT)Úvaluer   Útype_to_dictÚopenapi_to_dicts       úk/home/oem/CyberBrain26-unified/.venv/lib/python3.12/site-packages/kubernetes/client/models/v1_lease_spec.pyÚ_get_openapi_to_dictr!       s‚   € ô �e˜Y¨Ó-€GÜœ4 ›;¨	°4Ó8€Lä�WÔÜ�7˜J¨Ó-°\ÑAàäØÔ0°$ó€Oô �_Ô%ÜØÜ&Øó
ð ñ	ð ØÐó    c                ó‚   — t        | dd «      }t        | «      �t        |«      r	 ||¬«      S t        |«      r |«       S | S )Nr   )Ú	serialize)r   r!   r   )r   r$   r   s      r    Ú_to_legacy_itemr%   ;   sB   € Ü�e˜Y¨Ó-€GÜ˜EÓ"Ð.´8¸GÔ3DÙ Ô+Ð+Ü�ÔÙ‹yÐØ€Lr"   c           	     ó   — t        | t        «      r| D �cg c]  }t        ||«      ‘Œ c}S t        | t        «      r.| j	                  «       D ��ci c]  \  }}|t        ||«      “Œ c}}S t        | |«      S c c}w c c}}w )N)Ú
isinstanceÚlistr%   ÚdictÚitems)r   r$   ÚitemÚkeys       r    Ú_to_legacy_valuer-   D   s}   € ô �%œÔØ=BÖC°T”  iÕ0ÒCÐCÜ�%œÔð #Ÿ[™[›]÷
á��Tð ”  yÓ1Ñ1ó
ð 	
ô ˜5 )Ó,Ð,ùò Dùó
s   •A5ÁA:c                óP  — t        | t        «      r| D �cg c]  }t        |«      ‘Œ c}S t        | t        «      r-| j	                  «       D ��ci c]  \  }}|t        |«      “Œ c}}S t        | «      }|� || «      S t        | dd «      }t        |«      r |«       S | S c c}w c c}}w )Nr   )r'   r(   Ú_to_openapi_valuer)   r*   r!   r   r   )r   r+   r,   Úto_openapi_dictr   s        r    r/   r/   Q   s™   € Ü�%œÔØ49Ö:¨DÔ! $Õ'Ò:Ð:Ü�%œÔØ>C¿k¹k»m×L±°°d�Ô& tÓ,Ñ,ÓLÐLä*¨5Ó1€OØÐ"Ù˜uÓ%Ð%ä�e˜Y¨Ó-€GÜ�ÔÙ‹yÐØ€Lùò ;ùãLs   •BÁB"c                  ó`  — e Zd ZU dZ ed edd«      dd¬«      Zded<    ed edd	«      dd
¬«      Zded	<    ed edd«      dd¬«      Z	ded<    ed edd«      dd¬«      Z
ded<    ed edd«      dd¬«      Zded<    ed edd«      dd¬«      Zded<    edd¬«      Zded<   ddddddddœZd ed!<   ddddddddœZd ed"<   g d#¢Zd$ed%<   e	 d4	 	 	 	 	 d5d'„«       Z ed&d&d&d(d)¬*«      Zd6d+„Zd6d,„Zd7d-„Zd7d.„Zd6d/„Zed8d0„«       Zd9d:d1„Zd;d2„Z eeee«        eeee«       [ed<d3„«       Zy)=ÚV1LeaseSpeca1  
    LeaseSpec is a specification of a Lease.

    Attributes:
      openapi_types (dict): The key is attribute name
                            and the value is attribute type.
      attribute_map (dict): The key is attribute name
                            and the value is json key in definition.
    NÚacquireTimeÚacquire_timez:acquireTime is a time when the current lease was acquired.)ÚdefaultÚvalidation_aliasÚserialization_aliasÚdescriptionzOptional[datetime]ÚholderIdentityÚholder_identityzÃ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.zOptional[StrictStr]ÚleaseDurationSecondsÚlease_duration_secondszž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.zOptional[StrictInt]ÚleaseTransitionsÚlease_transitionszIleaseTransitions is the number of transitions of a lease between holders.ÚpreferredHolderÚpreferred_holderzž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.Ú	renewTimeÚ
renew_timezRrenewTime is a time when the current holder of a lease has last updated the lease.a  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.)r5   r8   Ústrategyr   ÚstrÚint)r4   r:   r<   r>   r@   rB   rC   zClassVar[Dict[str, str]]Úopenapi_typesÚattribute_map©r3   r9   r;   r=   r?   rA   rC   zClassVar[List[str]]Ú_V1LeaseSpec__propertiesTc                óØ  — t        |t        «      s|S t        |«      }d|vrd|v r|d   |d<   |j                  dd «       d|vrd|v r|d   |d<   |j                  dd «       d|vrd|v r|d   |d<   |j                  dd «       d|vrd|v r|d   |d<   |j                  dd «       d	|vrd
|v r|d
   |d	<   |j                  d
d «       d|vrd|v r|d   |d<   |j                  dd «       |S )Nr3   r4   r9   r:   r;   r<   r=   r>   r?   r@   rA   rB   )r'   Ú_Mappingr)   Úpop)ÚclsÚobjÚremove_hidden_storage_namess      r    Ú__preprocess_input_namesz$V1LeaseSpec.__preprocess_input_names‡   s9  € ô ˜#œxÔ(ØˆJÜ�3‹iˆØ Ñ#¨¸#Ñ(=Ø!$ ^Ñ!4ˆC�ÑØ�‰� Ô%Ø 3Ñ&Ð+<ÀÑ+CØ$'Ð(9Ñ$:ˆCÐ Ñ!Ø�‰Ð! 4Ô(Ø!¨Ñ,Ð1IÈSÑ1PØ*-Ð.FÑ*GˆCÐ&Ñ'Ø�‰Ð(¨$Ô/Ø SÑ(Ð-@ÀCÑ-GØ&)Ð*=Ñ&>ˆCÐ"Ñ#Ø�‰Ð# TÔ*Ø CÑ'Ð,>À#Ñ,EØ%(Ð);Ñ%<ˆCÐ!Ñ"Ø�‰Ð" DÔ)Ø˜cÑ! l°cÑ&9Ø" <Ñ0ˆC�ÑØ�‰�˜dÔ#Øˆ
r"   Úforbid© )Úvalidate_by_nameÚvalidate_by_aliasÚvalidate_assignmentÚextraÚprotected_namespacesc                óH   — t        j                  | j                  «       «      S )z.Returns the string representation of the model)ÚpprintÚpformatr   ©Úselfs    r    Úto_strzV1LeaseSpec.to_str­   s   € ä�~‰~˜dŸl™l›nÓ-Ð-r"   c                ó"   — | j                  «       S )zFor print and pprint)r]   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)r'   r2   r   ©r\   Úothers     r    Ú__eq__zV1LeaseSpec.__eq__µ   s&   € ä˜%¤Ô-Øà�|‰|‹~ §¡£Ñ0Ð0r"   c                ó0   — t        |t        «      sy| |k(   S )z*Returns true if both objects are not equalT)r'   r2   ra   s     r    Ú__ne__zV1LeaseSpec.__ne__¼   s   € ä˜%¤Ô-Øà˜E‘MÐ"Ð"r"   c                ó¼   — t        | «      }|�$t        j                  t         || «      «      «      S t        j                  t        | j	                  «       «      «      S )z8Returns the JSON representation of the model using alias)r!   ÚjsonÚdumpsr   r   )r\   r0   s     r    Úto_jsonzV1LeaseSpec.to_jsonÄ   sG   € ä.¨tÓ4ˆØÐ&Ü—:‘:Ô0±ÀÓ1FÓGÓHÐHÜ�z‰zÔ,¨T¯\©\«^Ó<Ó=Ð=r"   c                óJ   — | j                  t        j                  |«      «      S )z4Create an instance of V1LeaseSpec from a JSON string)Ú	from_dictrg   Úloads)rM   Újson_strs     r    Ú	from_jsonzV1LeaseSpec.from_jsonË   s   € ð �}‰}œTŸZ™Z¨Ó1Ó2Ð2r"   c                ó€  — |rdndt        t        | dd«      |«      |rdndt        t        | dd«      |«      |rdndt        t        | dd«      |«      |rdnd	t        t        | d	d«      |«      |rd
ndt        t        | dd«      |«      |rdndt        t        | dd«      |«      |rdndt        t        | dd«      |«      iS )z<Return all declared model fields using public or wire names.r3   r4   Nr9   r:   r;   r<   r=   r>   r?   r@   rA   rB   rC   )r-   r   )r\   r$   s     r    r   zV1LeaseSpec.to_dictÐ   s   € ñ (‰]¨^Ô>NÌwÐW[Ð]kÐmqÓOrÐt}Ó>~Ù!*ÑÐ0AÔDTÔU\Ð]aÐctÐvzÓU{ð  ~Gó  EHÙ'0Ñ#Ð6NÔQaÔbiÐjnð  qIð  KOó  cPð  R[ó  R\Ù#,ÑÐ2EÔHXÔY`ÐaeÐgzð  }Aó  ZBð  DMó  INÙ"+ÑÐ1CÔFVÔW^Ð_cÐewÐy}ÓW~ð  AJó  GKÙ%‰[¨<Ô:JÌ7ÐSWÐYeÐgkÓKlÐnwÓ:xÙ$‰Z¨*Ô7GÌÐPTÐV`ÐbfÓHgÐirÓ7sð
ð 	
r"   c                óD   — t        g «      }| j                  d|d¬«      }|S )ac  Return the dictionary representation of the model using alias.

        This has the following differences from calling pydantic's
        `self.model_dump(by_alias=True)`:

        * `None` is only added to the output dict for nullable fields that
          were set at model initialization. Other fields with value `None`
          are ignored.
        T)Úby_aliasÚexcludeÚexclude_none)ÚsetÚ
model_dump)r\   Úexcluded_fieldsÚ_dicts      r    Ú%__openapi_generator_modern_projectionz1V1LeaseSpec.__openapi_generator_modern_projectionÜ   s8   € ô %(ð )
ó %ˆð —‘ØØ#Øð  ó 
ˆð
 ˆr"   c                ó®  — |€yt        |t        «      s| j                  |«      S t        t        t
        t        f   | j                  |d¬«      «      }| j                  |j                  d«      |j                  d«      |j                  d«      |j                  d«      |j                  d«      |j                  d	«      |j                  d
«      dœ«      }|S )z-Create an instance of V1LeaseSpec from a dictNT)rO   r3   r9   r;   r=   r?   rA   rC   rH   )	r'   r)   Úmodel_validateÚ_castr   rD   r   Ú$_V1LeaseSpec__preprocess_input_namesÚget)rM   rN   Ú_objs      r    rk   zV1LeaseSpec.from_dictü   sË   € ð ˆ;Øä˜#œtÔ$Ø×%Ñ% cÓ*Ð*äÜ””c�‰NØ×(Ñ(ØØ,0ð )ó ó
ˆð ×!Ñ!ØŸ7™7 =Ó1Ø!Ÿg™gÐ&6Ó7Ø$'§G¡GÐ,BÓ$CØ #§¡Ð(:Ó ;Ø"Ÿw™wÐ'8Ó9ØŸ™ Ó-ØŸ™ 
Ó+ñ#
ó ˆð ˆr"   )T)rN   r   rO   ÚboolÚreturnr   )r€   rD   )rb   Úobjectr€   r   )rm   rD   r€   úOptional[Self])F)r$   r   r€   úDict[str, Any])r€   rƒ   )rN   zOptional[Dict[str, Any]]r€   r‚   ) Ú__name__Ú
__module__Ú__qualname__Ú__doc__r	   r   r4   Ú__annotations__r:   r<   r>   r@   rB   rC   rF   rG   rI   Úclassmethodr|   r   Úmodel_configr]   r_   rc   re   ri   rn   r   Ú1_V1LeaseSpec__openapi_generator_modern_projectionÚsetattrr   rk   rR   r"   r    r2   r2   a   s„  … ññ (-°TÉLÐYfÐhvÓLwð  N[ð  ieô  (f€LÐ$ó  fÙ+0¸ÑP\Ð]mð  pAó  QBð  Xhð  v{ô  ,|€OÐ(ó  |Ù27ÀÑWcÐdzð  }Uó  XVð  lBð  Ppô  3qÐÐ/ó  qÙ-2¸4ÑR^Ð_qð  tGó  SHð  ^pð  ~Iô  .JÐÐ*ó  JÙ,1¸$ÑQ]Ð^oð  rDó  REð  [lð  zZô  -[ÐÐ)ó  [Ù%*°4É,ÐWbÐdpÓJqð  HSð  auô  &v€JÐ"ó  vÙ$)°$ð  EIô  %J€HÐ!ó  Jà"Ø Ø"'Ø"Ø!Ø Øñ/€MÐ+ó ð &Ø+Ø"8Ø/Ø-Ø!Øñ/€MÐ+ó ò )b€LÐ%ó  bàð -1ðàðð &*ðð 
ò	ó ðñ8 ØØØ ØØô€Ló.óó1ó#ó>ð ò3ó ð3ô

óñ( ØØ"Ø-ôñ
 Ø-Ø"Øôð
 	.àòó ñr"   r2   )r   r   r€   r   )r   r   r$   r   r€   r   )$r‡   Ú
__future__r   rY   Úrerg   Úcollections.abcr   rK   r   Úpydanticr   r   r   r	   r
   r   Útypingr   r   r   r   r   r   r{   r   Útyping_extensionsr   Úpydantic_corer   r   r!   r%   r-   r/   r2   rR   r"   r    ú<module>r”      s]   ðñ	õ #Û Û 	Û å /Ý ß U× Uß E× Eß  Ý "Ý ,ð :Ð óó6ó
-óô u�)õ ur"   