
    3i4                     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SSSS.rS	S
SS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 5       r\R                  S 5       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)'V1beta2DeviceSubRequest   z~NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech

Do not edit the class manually.
strV1beta2CapacityRequirementsintzlist[V1beta2DeviceSelector]zlist[V1beta2DeviceToleration])allocation_modecapacitycountdevice_class_namename	selectorstolerationsallocationModer   r   deviceClassNamer   r   r   Nc	                    Uc
  [        5       nXl        SU l        SU l        SU l        SU l        SU l        SU l        SU l        SU l	        Ub  Xl
        Ub  X l        Ub  X0l        X@l        XPl        Ub  X`l        Ub  Xpl        gg)z4V1beta2DeviceSubRequest - a model defined in OpenAPIN)r   local_vars_configuration_allocation_mode	_capacity_count_device_class_name_name
_selectors_tolerationsdiscriminatorr
   r   r   r   r   r   r   )	selfr
   r   r   r   r   r   r   r   s	            m/home/james-whalen/.local/lib/python3.13/site-packages/kubernetes/client/models/v1beta2_device_sub_request.py__init__ V1beta2DeviceSubRequest.__init__7   s    #+'4$(@% $"&
 !&#2 $MJ!2	 &N"* #    c                     U R                   $ )a  Gets the allocation_mode of this V1beta2DeviceSubRequest.  # noqa: E501

AllocationMode and its related fields define how devices are allocated to satisfy this subrequest. 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 subrequest is for all of the matching devices in a pool.   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 subrequests must specify this field.  More modes may get added in the future. Clients must refuse to handle requests with unknown modes.  # noqa: E501

:return: The allocation_mode of this V1beta2DeviceSubRequest.  # noqa: E501
:rtype: str
r   r   s    r   r
   'V1beta2DeviceSubRequest.allocation_modeS   s     $$$r!   c                     Xl         g)a  Sets the allocation_mode of this V1beta2DeviceSubRequest.

AllocationMode and its related fields define how devices are allocated to satisfy this subrequest. 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 subrequest is for all of the matching devices in a pool.   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 subrequests must specify this field.  More modes may get added in the future. Clients must refuse to handle requests with unknown modes.  # noqa: E501

:param allocation_mode: The allocation_mode of this V1beta2DeviceSubRequest.  # noqa: E501
:type: str
Nr#   )r   r
   s     r   r
   r%   ^   s
     !0r!   c                     U R                   $ )zGets the capacity of this V1beta2DeviceSubRequest.  # noqa: E501


:return: The capacity of this V1beta2DeviceSubRequest.  # noqa: E501
:rtype: V1beta2CapacityRequirements
r   r$   s    r   r    V1beta2DeviceSubRequest.capacityj   s     ~~r!   c                     Xl         g)zSets the capacity of this V1beta2DeviceSubRequest.


:param capacity: The capacity of this V1beta2DeviceSubRequest.  # noqa: E501
:type: V1beta2CapacityRequirements
Nr(   )r   r   s     r   r   r)   t   s	     "r!   c                     U R                   $ )aD  Gets the count of this V1beta2DeviceSubRequest.  # noqa: E501

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.  # noqa: E501

:return: The count of this V1beta2DeviceSubRequest.  # noqa: E501
:rtype: int
r   r$   s    r   r   V1beta2DeviceSubRequest.count   s     {{r!   c                     Xl         g)a:  Sets the count of this V1beta2DeviceSubRequest.

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.  # noqa: E501

:param count: The count of this V1beta2DeviceSubRequest.  # noqa: E501
:type: int
Nr,   )r   r   s     r   r   r-      s	     r!   c                     U R                   $ )a  Gets the device_class_name of this V1beta2DeviceSubRequest.  # noqa: E501

DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this subrequest.  A class is required. Which classes are available depends on the cluster.  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.  # noqa: E501

:return: The device_class_name of this V1beta2DeviceSubRequest.  # noqa: E501
:rtype: str
)r   r$   s    r   r   )V1beta2DeviceSubRequest.device_class_name   s     &&&r!   c                 b    U R                   R                  (       a  Uc  [        S5      eXl        g)a  Sets the device_class_name of this V1beta2DeviceSubRequest.

DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this subrequest.  A class is required. Which classes are available depends on the cluster.  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.  # noqa: E501

:param device_class_name: The device_class_name of this V1beta2DeviceSubRequest.  # noqa: E501
:type: str
Nz9Invalid value for `device_class_name`, must not be `None`)r   client_side_validation
ValueErrorr   )r   r   s     r   r   r0      s+     ((??DUD]XYY"3r!   c                     U R                   $ )ab  Gets the name of this V1beta2DeviceSubRequest.  # noqa: E501

Name can be used to reference this subrequest in the list of constraints or the list of configurations for the claim. References must use the format <main request>/<subrequest>.  Must be a DNS label.  # noqa: E501

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

Name can be used to reference this subrequest in the list of constraints or the list of configurations for the claim. References must use the format <main request>/<subrequest>.  Must be a DNS label.  # noqa: E501

:param name: The name of this V1beta2DeviceSubRequest.  # noqa: E501
:type: str
Nz,Invalid value for `name`, must not be `None`)r   r2   r3   r   )r   r   s     r   r   r5      s(     ((??DLKLL
r!   c                     U R                   $ )a  Gets the selectors of this V1beta2DeviceSubRequest.  # noqa: E501

Selectors define criteria which must be satisfied by a specific device in order for that device to be considered for this subrequest. All selectors must be satisfied for a device to be considered.  # noqa: E501

:return: The selectors of this V1beta2DeviceSubRequest.  # noqa: E501
:rtype: list[V1beta2DeviceSelector]
r   r$   s    r   r   !V1beta2DeviceSubRequest.selectors   s     r!   c                     Xl         g)a{  Sets the selectors of this V1beta2DeviceSubRequest.

Selectors define criteria which must be satisfied by a specific device in order for that device to be considered for this subrequest. All selectors must be satisfied for a device to be considered.  # noqa: E501

:param selectors: The selectors of this V1beta2DeviceSubRequest.  # noqa: E501
:type: list[V1beta2DeviceSelector]
Nr8   )r   r   s     r   r   r9      s	     $r!   c                     U R                   $ )a@  Gets the tolerations of this V1beta2DeviceSubRequest.  # noqa: E501

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 an alpha field and requires enabling the DRADeviceTaints feature gate.  # noqa: E501

:return: The tolerations of this V1beta2DeviceSubRequest.  # noqa: E501
:rtype: list[V1beta2DeviceToleration]
r   r$   s    r   r   #V1beta2DeviceSubRequest.tolerations   s        r!   c                     Xl         g)a<  Sets the tolerations of this V1beta2DeviceSubRequest.

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 an alpha field and requires enabling the DRADeviceTaints feature gate.  # noqa: E501

:param tolerations: The tolerations of this V1beta2DeviceSubRequest.  # noqa: E501
:type: list[V1beta2DeviceToleration]
Nr<   )r   r   s     r   r   r=      s
     (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hasattrrA   )xs    r   <lambda>1V1beta2DeviceSubRequest.to_dict.<locals>.<lambda>   s    WQ	-B-BaiikIIr!   rA   c                 ^    [        U S   S5      (       a  U S   U S   R                  5       4$ U $ )N   rA   r   rB   )items    r   rE   rF     s9    tAw	22 #'q'47??+<!= "=8<"=r!   )six	iteritemsopenapi_typesgetattr
isinstancelistmaprC   rA   dictitems)r   resultattr_values        r   rA   V1beta2DeviceSubRequest.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pformatrA   r$   s    r   to_strV1beta2DeviceSubRequest.to_str  s    ~~dlln--r!   c                 "    U R                  5       $ )zFor `print` and `pprint`)r[   r$   s    r   __repr__ V1beta2DeviceSubRequest.__repr__  s    {{}r!   c                 p    [        U[        5      (       d  gU R                  5       UR                  5       :H  $ )z&Returns true if both objects are equalFrN   r   rA   r   others     r   __eq__V1beta2DeviceSubRequest.__eq__  s*    %!899||~00r!   c                 p    [        U[        5      (       d  gU R                  5       UR                  5       :g  $ )z*Returns true if both objects are not equalTra   rb   s     r   __ne__V1beta2DeviceSubRequest.__ne__  s*    %!899||~00r!   )r   r   r   r   r   r   r   r
   r   r   r   r   r   r   r   r   )NNNNNNNN)__name__
__module____qualname____firstlineno____doc__rL   attribute_mapr   propertyr
   setterr   r   r   r   r   r   rA   r[   r^   rd   rg   __static_attributes__ r!   r   r   r      s    !1"26M ,. $M+8 % % 	0 	0   __" "   \\	 	 ' ' 4 4   
[[    	$ 	$ ! ! 	( 	(0.11r!   r   )rm   rY   rerJ   kubernetes.client.configurationr   objectr   rr   r!   r   <module>rv      s&     	 
 9M1f M1r!   