
    3i                     B    S r SSKrSSKrSSKrSSKJr   " S S\5      rg)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.34
Generated by: https://openapi-generator.tech
    N)Configurationc                       \ rS rSrSr SSSS.rSSS	S.rSS jr\S 5       r	\	R                  S 5       r	\S 5       r\R                  S 5       r\S 5       r\R                  S 5       rS rS rS rS rS rSrg
)V1DeviceRequest   z~NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech

Do not edit the class manually.
V1ExactDeviceRequestzlist[V1DeviceSubRequest]str)exactlyfirst_availablenamer	   firstAvailabler   Nc                     Uc
  [        5       nX@l        SU l        SU l        SU l        SU l        Ub  Xl        Ub  X l        X0l        g)z,V1DeviceRequest - a model defined in OpenAPIN)	r   local_vars_configuration_exactly_first_available_namediscriminatorr	   r
   r   )selfr	   r
   r   r   s        d/home/james-whalen/.local/lib/python3.13/site-packages/kubernetes/client/models/v1_device_request.py__init__V1DeviceRequest.__init__/   sP    #+'4$(@% $
!"L&#2 	    c                     U R                   $ )zGets the exactly of this V1DeviceRequest.  # noqa: E501


:return: The exactly of this V1DeviceRequest.  # noqa: E501
:rtype: V1ExactDeviceRequest
r   r   s    r   r	   V1DeviceRequest.exactly@   s     }}r   c                     Xl         g)zSets the exactly of this V1DeviceRequest.


:param exactly: The exactly of this V1DeviceRequest.  # noqa: E501
:type: V1ExactDeviceRequest
Nr   )r   r	   s     r   r	   r   J   s	      r   c                     U R                   $ )a|  Gets the first_available of this V1DeviceRequest.  # noqa: E501

FirstAvailable contains subrequests, of which exactly one will be selected by the scheduler. It tries to satisfy them in the order in which they are listed here. So if there are two entries in the list, the scheduler will only check the second one if it determines that the first one can not be used.  DRA does not yet implement scoring, so the scheduler will select the first set of devices that satisfies all the requests in the claim. And if the requirements can be satisfied on more than one node, other scheduling features will determine which node is chosen. This means that the set of devices allocated to a claim might not be the optimal set available to the cluster. Scoring will be implemented later.  # noqa: E501

:return: The first_available of this V1DeviceRequest.  # noqa: E501
:rtype: list[V1DeviceSubRequest]
r   r   s    r   r
   V1DeviceRequest.first_availableU   s     $$$r   c                     Xl         g)a|  Sets the first_available of this V1DeviceRequest.

FirstAvailable contains subrequests, of which exactly one will be selected by the scheduler. It tries to satisfy them in the order in which they are listed here. So if there are two entries in the list, the scheduler will only check the second one if it determines that the first one can not be used.  DRA does not yet implement scoring, so the scheduler will select the first set of devices that satisfies all the requests in the claim. And if the requirements can be satisfied on more than one node, other scheduling features will determine which node is chosen. This means that the set of devices allocated to a claim might not be the optimal set available to the cluster. Scoring will be implemented later.  # noqa: E501

:param first_available: The first_available of this V1DeviceRequest.  # noqa: E501
:type: list[V1DeviceSubRequest]
Nr   )r   r
   s     r   r
   r   `   s
     !0r   c                     U R                   $ )a  Gets the name of this V1DeviceRequest.  # noqa: E501

Name can be used to reference this request in a pod.spec.containers[].resources.claims entry and in a constraint of the claim.  References using the name in the DeviceRequest will uniquely identify a request when the Exactly field is set. When the FirstAvailable field is set, a reference to the name of the DeviceRequest will match whatever subrequest is chosen by the scheduler.  Must be a DNS label.  # noqa: E501

:return: The name of this V1DeviceRequest.  # noqa: E501
:rtype: str
)r   r   s    r   r   V1DeviceRequest.namel   s     zzr   c                 b    U R                   R                  (       a  Uc  [        S5      eXl        g)a  Sets the name of this V1DeviceRequest.

Name can be used to reference this request in a pod.spec.containers[].resources.claims entry and in a constraint of the claim.  References using the name in the DeviceRequest will uniquely identify a request when the Exactly field is set. When the FirstAvailable field is set, a reference to the name of the DeviceRequest will match whatever subrequest is chosen by the scheduler.  Must be a DNS label.  # noqa: E501

:param name: The name of this V1DeviceRequest.  # noqa: E501
:type: str
Nz,Invalid value for `name`, must not be `None`)r   client_side_validation
ValueErrorr   )r   r   s     r   r   r"   w   s(     ((??DLKLL
r   c                    0 n[         R                  " U R                  5       H  u  p#[        X5      n[	        U[
        5      (       a  [        [        S U5      5      X'   M?  [        US5      (       a  UR                  5       X'   Md  [	        U[        5      (       a(  [        [        S UR                  5       5      5      X'   M  XAU'   M     U$ )z&Returns the model properties as a dictc                 H    [        U S5      (       a  U R                  5       $ U $ )Nto_dicthasattrr(   )xs    r   <lambda>)V1DeviceRequest.to_dict.<locals>.<lambda>   s    WQ	-B-BaiikIIr   r(   c                 ^    [        U S   S5      (       a  U S   U S   R                  5       4$ U $ )N   r(   r   r)   )items    r   r,   r-      s9    tAw	22 #'q'47??+<!= "=8<"=r   )six	iteritemsopenapi_typesgetattr
isinstancelistmapr*   r(   dictitems)r   resultattr_values        r   r(   V1DeviceRequest.to_dict   s    }}T%7%78GDD'E%&&#CI%   	**$}}E4((#C=KKM%    %t! 9$ r   c                 J    [         R                  " U R                  5       5      $ )z.Returns the string representation of the model)pprintpformatr(   r   s    r   to_strV1DeviceRequest.to_str   s    ~~dlln--r   c                 "    U R                  5       $ )zFor `print` and `pprint`)rB   r   s    r   __repr__V1DeviceRequest.__repr__   s    {{}r   c                 p    [        U[        5      (       d  gU R                  5       UR                  5       :H  $ )z&Returns true if both objects are equalFr5   r   r(   r   others     r   __eq__V1DeviceRequest.__eq__   s)    %11||~00r   c                 p    [        U[        5      (       d  gU R                  5       UR                  5       :g  $ )z*Returns true if both objects are not equalTrH   rI   s     r   __ne__V1DeviceRequest.__ne__   s)    %11||~00r   )r   r   r   r   r	   r
   r   r   )NNNN)__name__
__module____qualname____firstlineno____doc__r3   attribute_mapr   propertyr	   setterr
   r   r(   rB   rE   rK   rN   __static_attributes__ r   r   r   r      s     *5M +M"   ^^    % % 	0 	0   
[[ 0.11r   r   )rT   r@   rer1   kubernetes.client.configurationr   objectr   rY   r   r   <module>r]      s&     	 
 9\1f \1r   