Ë
    eQêjtA  ã                  ó  — 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
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 ddlmZ dd	lmZ dd
l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)ÚAliasChoicesÚ	BaseModelÚ
ConfigDictÚFieldÚ
StrictBoolÚ	StrictIntÚ	StrictStr)ÚAnyÚClassVarÚDictÚListÚOptionalÚcast)ÚV1beta2CapacityRequirements)ÚV1beta2DeviceDerivedAttribute)ÚV1beta2DeviceSelector)ÚV1beta2DeviceToleration)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       úz/home/oem/CyberBrain26-unified/.venv/lib/python3.12/site-packages/kubernetes/client/models/v1beta2_exact_device_request.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_valuer1   G   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/   r0   Úto_openapi_dictr   s        r$   r3   r3   T   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            	      óL  — 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	<   dZ	ded<    edd¬«      Z
ded<    ed edd«      dd¬«      Zded<    e edd«      dd¬«      Zded<    edd¬«      Zded<    edd¬«      Zded <   d!d"d#d$d%d"d&d'd(œZd)ed*<   dddddddd d(œZd)ed+<   g d,¢Zd-ed.<   e	 d=	 	 	 	 	 d>d0„«       Z ed/d/d/d1d2¬3«      Zd?d4„Zd?d5„Zd@d6„Zd@d7„Zd?d8„ZedAd9„«       ZdBdCd:„ZdDd;„Z eeee«        eeee«       [edEd<„«       Z y)FÚV1beta2ExactDeviceRequestaK  
    ExactDeviceRequest is a request for one or more identical devices.

    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ÚadminAccessÚadmin_accessaÓ  AdminAccess indicates that this is a claim for administrative access to the device(s). Claims with AdminAccess are expected to be used for monitoring or other management services for a device.  They ignore all ordinary claims to the device with respect to access modes and any resource allocations.  This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled.)ÚdefaultÚvalidation_aliasÚserialization_aliasÚdescriptionzOptional[StrictBool]ÚallocationModeÚallocation_modea  AllocationMode and its related fields define how devices are allocated to satisfy this request. Supported values are:  - ExactCount: This request is for a specific number of devices.   This is the default. The exact number is provided in the   count field.  - All: This request is for all of the matching devices in a pool.   At least one device must exist on the node for the allocation to succeed.   Allocation will fail if some devices are already allocated,   unless adminAccess is requested.  If AllocationMode is not specified, the default mode is ExactCount. If the mode is ExactCount and count is not specified, the default count is one. Any other requests must specify this field.  More modes may get added in the future. Clients must refuse to handle requests with unknown modes.zOptional[StrictStr]z%Optional[V1beta2CapacityRequirements]Úcapacityz§Count is used only when the count mode is "ExactCount". Must be greater than zero. If AllocationMode is ExactCount and this field is not specified, the default is one.)r9   r<   zOptional[StrictInt]ÚcountÚderivedAttributesÚderived_attributesaT  DerivedAttributes defines a set of virtual attributes computed via CEL expressions for each candidate device. These virtual attributes can be referenced in `.devices.constraints` to align and match different devices (e.g., co-allocating a GPU and a NIC on the same NUMA node) even if their drivers publish different attributes. Derived attributes are not available via `device.attributes` in the CEL environment when evaluating selector expressions.  Derived attributes allow you to extract, transform, or normalize topology information (such as extracting a NUMA index from a complex topology string or renaming a vendor-specific attribute) into a common virtual attribute name at scheduling time. The scheduler then evaluates these virtual attributes exactly like static attributes when matching constraints.  Every derived attribute defined in this list must be referenced by at least one MatchAttribute or DistinctAttribute constraint in the `.devices.constraints` list.  The maximum number of derived attributes is 32.  This is an alpha field and requires enabling the DRADerivedAttributes feature gate.z-Optional[List[V1beta2DeviceDerivedAttribute]]ÚdeviceClassNameÚdevice_class_namea½  DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this request.  A DeviceClassName is required.  Administrators may use this to restrict which devices may get requested by only installing classes with selectors for permitted devices. If users are free to request anything without restrictions, then administrators can create an empty DeviceClass for users to reference.)r:   r;   r<   r   zÁSelectors define criteria which must be satisfied by a specific device in order for that device to be considered for this request. All selectors must be satisfied for a device to be considered.z%Optional[List[V1beta2DeviceSelector]]Ú	selectorsa{  If specified, the request's tolerations.  Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute.  In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated.  The maximum number of tolerations is 16.  This is a beta field and requires enabling the DRADeviceTaints feature gate.z'Optional[List[V1beta2DeviceToleration]]ÚtolerationsÚboolÚstrr   Úintz#List[V1beta2DeviceDerivedAttribute]zList[V1beta2DeviceSelector]zList[V1beta2DeviceToleration])r8   r>   r?   r@   rB   rD   rE   rF   zClassVar[Dict[str, str]]Úopenapi_typesÚattribute_map©r7   r=   r?   r@   rA   rC   rE   rF   zClassVar[List[str]]Ú&_V1beta2ExactDeviceRequest__propertiesTc                óP  — 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 «       |S )	Nr7   r8   r=   r>   rA   rB   rC   rD   )r+   Ú_Mappingr-   Úpop)ÚclsÚobjÚremove_hidden_storage_namess      r$   Ú__preprocess_input_namesz2V1beta2ExactDeviceRequest.__preprocess_input_names�   sÝ   € ô ˜#œxÔ(ØˆJÜ�3‹iˆØ Ñ#¨¸#Ñ(=Ø!$ ^Ñ!4ˆC�ÑØ�‰� Ô%Ø 3Ñ&Ð+<ÀÑ+CØ$'Ð(9Ñ$:ˆCÐ Ñ!Ø�‰Ð! 4Ô(Ø cÑ)Ð.BÀcÑ.IØ'*Ð+?Ñ'@ˆCÐ#Ñ$Ø�‰Ð$ dÔ+Ø CÑ'Ð,?À3Ñ,FØ%(Ð)<Ñ%=ˆCÐ!Ñ"Ø�‰Ð# TÔ*Øˆ
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 V1beta2ExactDeviceRequest.to_str­   s   € ä�~‰~˜dŸl™l›nÓ-Ð-r&   c                ó"   — | j                  «       S )zFor print and pprint)ra   r_   s    r$   Ú__repr__z"V1beta2ExactDeviceRequest.__repr__±   s   € à�{‰{‹}Ðr&   c                óf   — t        |t        «      sy| j                  «       |j                  «       k(  S )z&Returns true if both objects are equalF)r+   r6   r   ©r`   Úothers     r$   Ú__eq__z V1beta2ExactDeviceRequest.__eq__µ   s'   € ä˜%Ô!:Ô;Øà�|‰|‹~ §¡£Ñ0Ð0r&   c                ó0   — t        |t        «      sy| |k(   S )z*Returns true if both objects are not equalT)r+   r6   re   s     r$   Ú__ne__z V1beta2ExactDeviceRequest.__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`   r4   s     r$   Úto_jsonz!V1beta2ExactDeviceRequest.to_jsonÄ   sG   € ä.¨tÓ4ˆØÐ&Ü—:‘:Ô0±ÀÓ1FÓGÓHÐHÜ�z‰zÔ,¨T¯\©\«^Ó<Ó=Ð=r&   c                óJ   — | j                  t        j                  |«      «      S )zBCreate an instance of V1beta2ExactDeviceRequest from a JSON string)Ú	from_dictrk   Úloads)rQ   Újson_strs     r$   Ú	from_jsonz#V1beta2ExactDeviceRequest.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«      |«      |rdndt        t        | dd«      |«      iS )z<Return all declared model fields using public or wire names.r7   r8   Nr=   r>   r?   r@   rA   rB   rC   rD   rE   rF   )r1   r   )r`   r(   s     r$   r   z!V1beta2ExactDeviceRequest.to_dictÐ   s*  € ñ (‰]¨^Ô>NÌwÐW[Ð]kÐmqÓOrÐt}Ó>~Ù!*ÑÐ0AÔDTÔU\Ð]aÐctÐvzÓU{ð  ~Gó  EHÙ$‰Z¨*Ô7GÌÐPTÐV`ÐbfÓHgÐirÓ7sÙ!‰W wÔ1AÄ'È$ÐPWÐY]ÓB^Ð`iÓ1jÙ$-Ñ Ð3GÔJZÔ[bÐcgÐi}ð  @Dó  \Eð  GPó  KQÙ"+ÑÐ1DÔGWÔX_Ð`dÐfyÐ{ó  YAð  CLó  HMÙ%‰[¨;Ô9IÌ'ÐRVÐXcÐeiÓJjÐluÓ9vÙ'‰]¨]Ô=MÌgÐVZÐ\iÐkoÓNpÐr{Ó=|ð	
ð 		
r&   c                ó  — t        g «      }| j                  d|d¬«      }| j                  rt        | j                  «      |d<   g }| j                  r4| j                  D ]   }|j                  |�t        |«      nd«       Œ" ||d<   g }| j                  r4| j                  D ]   }|j                  |�t        |«      nd«       Œ" ||d<   g }| j                  r4| j                  D ]   }|j                  |�t        |«      n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_noner?   NrA   rE   rF   )ÚsetÚ
model_dumpr?   r3   rB   ÚappendrE   rF   )r`   Úexcluded_fieldsÚ_dictÚ_itemsÚ_item_derived_attributesÚ_item_selectorsÚ_item_tolerationss          r$   Ú%__openapi_generator_modern_projectionz?V1beta2ExactDeviceRequest.__openapi_generator_modern_projectionÝ   s0  € ô %(ð )
ó %ˆð —‘ØØ#Øð  ó 
ˆð �=Š=Ü 1°$·-±-Ó @ˆE�*ÑàˆØ×"Ò"Ø,0×,CÑ,Cò }Ð(Ø—‘ÐMeÐMqÔ/Ð0HÔIÐw{Õ|ð}à)/ˆEÐ%Ñ&àˆØ�>Š>Ø#'§>¡>ò k�Ø—‘ÀOÐD_Ô/°Ô@ÐeiÕjðkà!'ˆE�+ÑàˆØ×ÒØ%)×%5Ñ%5ò oÐ!Ø—‘ÐFWÐFcÔ/Ð0AÔBÐimÕnðoà#)ˆE�-Ñ Øˆr&   c                ó  — |€yt        |t        «      s| j                  |«      S t        t        t
        t        f   | j                  |d¬«      «      }| j                  |j                  d«      |j                  d«      |j                  d«      �t        j                  |d   «      nd|j                  d«      |j                  d«      �&|d   D �cg c]  }t        j                  |«      ‘Œ c}nd|j                  d	«      |j                  d
«      �&|d
   D �cg c]  }t        j                  |«      ‘Œ c}nd|j                  d«      �&|d   D �cg c]  }t        j                  |«      ‘Œ c}nddœ«      }|S c c}w c c}w c c}w )z;Create an instance of V1beta2ExactDeviceRequest from a dictNT)rS   r7   r=   r?   r@   rA   rC   rE   rF   rL   )r+   r-   Úmodel_validateÚ_castr   rH   r   Ú2_V1beta2ExactDeviceRequest__preprocess_input_namesÚgetr   ro   r   r   r   )rQ   rR   Ú_itemÚ_objs       r$   ro   z#V1beta2ExactDeviceRequest.from_dict  sŸ  € ð ˆ;Øä˜#œtÔ$Ø×%Ñ% cÓ*Ð*äÜ””c�‰NØ×(Ñ(ØØ,0ð )ó ó
ˆð ×!Ñ!ØŸ7™7 =Ó1Ø!Ÿg™gÐ&6Ó7ØRU×RYÑRYÐZdÓReÐRqÔ3×=Ñ=¸cÀ*¹oÔNÐw{Ø—W‘W˜WÓ%Ø{~÷  |Cñ  |Cð  DWó  |Xð  |dÐ^aÐbuÑ^vÖ!wÐUZÔ"?×"IÑ"IÈ%Õ"PÓ!wð  jnØ"Ÿw™wÐ'8Ó9Øcf×cjÑcjÐkvÓcwð  dDÈcÐR]ÑN^Ö_ÀUÔ/×9Ñ9¸%Õ@Ó_ð  JNØil×ipÑipÐq~Óið  jLÐRUÐVcÑRdÖeÈÔ3×=Ñ=¸eÕDÓeð  RVñ	#
ó 	ˆð ˆùò "xùâ_ùÚes   ÃE9ÄE>ÅF)T)rR   r   rS   rG   Úreturnr   )r‰   rH   )rf   Úobjectr‰   rG   )rq   rH   r‰   úOptional[Self])F)r(   rG   r‰   úDict[str, Any])r‰   rŒ   )rR   zOptional[Dict[str, Any]]r‰   r‹   )!Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r8   Ú__annotations__r>   r?   r@   rB   rD   rE   rF   rJ   rK   rM   Úclassmethodr…   r   Úmodel_configra   rc   rg   ri   rm   rr   r   Ú?_V1beta2ExactDeviceRequest__openapi_generator_modern_projectionÚsetattrr    ro   rV   r&   r$   r6   r6   d   sb  … ññ */°tÉlÐ[hÐjxÓNyð  P]ð  k@
ô  *A
€LÐ&ó  A
Ù+0¸ÑP\Ð]mð  pAó  QBð  Xhð  vMô  ,N€OÐ(ó  NØ6:€HÐ3Ó:Ù!&¨tð  Bmô  "n€EÐó  nÙHMÐVZÑmyð  {Nð  Pdó  neð  {Nð  \rô  IsÐÐEó  sÙ#(¹,ÐGXÐZmÓ:nð  EVð  dc	ô  $d	Ð�yó  d	Ù7<ÀTð  X[ô  8\€IÐ4ó  \Ù;@Èð  \Yô  <Z€KÐ8ó  ZàØ Ø1ØØCØ"Ø2Ø6ñ	/€MÐ+ó 	ð &Ø+ØØØ1Ø.Ø Ø$ñ	/€MÐ+ó 	ò )c€LÐ%ó  càð -1ðàðð &*ðð 
ò	ó ðñ, ØØØ ØØô€Ló.óó1ó#ó>ð ò3ó ð3ô
ó'ñR ØØ"Ø-ôñ
 Ø-Ø"Øôð
 	.àòó ñr&   r6   )r!   r   r‰   r   )r!   r   r(   rG   r‰   r   ),r�   Ú
__future__r   r]   Úrerk   Úcollections.abcr   rO   Úpydanticr   r   r   r   r	   r
   r   Útypingr   r   r   r   r   r   r„   Ú6kubernetes.client.models.v1beta2_capacity_requirementsr   Ú9kubernetes.client.models.v1beta2_device_derived_attributer   Ú0kubernetes.client.models.v1beta2_device_selectorr   Ú2kubernetes.client.models.v1beta2_device_tolerationr   r   Útyping_extensionsr   Úpydantic_corer   r    r%   r)   r1   r3   r6   rV   r&   r$   ú<module>r¡      si   ðñ	õ #Û Û 	Û å /ß a× aÑ aß E× EÝ ^Ý cÝ RÝ Vß  Ý "Ý ,ð :Ð óó6ó
-óô I 	õ Ir&   