
    3i6                     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)(V1ExactDeviceRequest   z~NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech

Do not edit the class manually.
boolstrV1CapacityRequirementsintzlist[V1DeviceSelector]zlist[V1DeviceToleration])admin_accessallocation_modecapacitycountdevice_class_name	selectorstolerationsadminAccessallocationModer   r   deviceClassNamer   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        Ub  X@l        XPl        Ub  X`l        Ub  Xpl        gg)z1V1ExactDeviceRequest - a model defined in OpenAPIN)r   local_vars_configuration_admin_access_allocation_mode	_capacity_count_device_class_name
_selectors_tolerationsdiscriminatorr   r   r   r   r   r   r   )	selfr   r   r   r   r   r   r   r   s	            j/home/james-whalen/.local/lib/python3.13/site-packages/kubernetes/client/models/v1_exact_device_request.py__init__V1ExactDeviceRequest.__init__7   s    #+'4$(@%! $"& !# ,&#2 $MJ!2 &N"* #    c                     U R                   $ )ay  Gets the admin_access of this V1ExactDeviceRequest.  # noqa: E501

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

:return: The admin_access of this V1ExactDeviceRequest.  # noqa: E501
:rtype: bool
r   r   s    r    r   !V1ExactDeviceRequest.admin_accessT   s     !!!r#   c                     Xl         g)av  Sets the admin_access of this V1ExactDeviceRequest.

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

:param admin_access: The admin_access of this V1ExactDeviceRequest.  # noqa: E501
:type: bool
Nr%   )r   r   s     r    r   r'   _   s
     *r#   c                     U R                   $ )a  Gets the allocation_mode of this V1ExactDeviceRequest.  # noqa: E501

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

:return: The allocation_mode of this V1ExactDeviceRequest.  # noqa: E501
:rtype: str
r   r&   s    r    r   $V1ExactDeviceRequest.allocation_modek   s     $$$r#   c                     Xl         g)a  Sets the allocation_mode of this V1ExactDeviceRequest.

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

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


:return: The capacity of this V1ExactDeviceRequest.  # noqa: E501
:rtype: V1CapacityRequirements
r   r&   s    r    r   V1ExactDeviceRequest.capacity   s     ~~r#   c                     Xl         g)zSets the capacity of this V1ExactDeviceRequest.


:param capacity: The capacity of this V1ExactDeviceRequest.  # noqa: E501
:type: V1CapacityRequirements
Nr.   )r   r   s     r    r   r/      s	     "r#   c                     U R                   $ )a>  Gets the count of this V1ExactDeviceRequest.  # 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 V1ExactDeviceRequest.  # noqa: E501
:rtype: int
r   r&   s    r    r   V1ExactDeviceRequest.count   s     {{r#   c                     Xl         g)a4  Sets the count of this V1ExactDeviceRequest.

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 V1ExactDeviceRequest.  # noqa: E501
:type: int
Nr2   )r   r   s     r    r   r3      s	     r#   c                     U R                   $ )al  Gets the device_class_name of this V1ExactDeviceRequest.  # noqa: E501

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

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

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

:param device_class_name: The device_class_name of this V1ExactDeviceRequest.  # noqa: E501
:type: str
Nz9Invalid value for `device_class_name`, must not be `None`)r   client_side_validation
ValueErrorr   )r   r   s     r    r   r6      s+     ((??DUD]XYY"3r#   c                     U R                   $ )as  Gets the selectors of this V1ExactDeviceRequest.  # noqa: E501

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

:return: The selectors of this V1ExactDeviceRequest.  # noqa: E501
:rtype: list[V1DeviceSelector]
r   r&   s    r    r   V1ExactDeviceRequest.selectors   s     r#   c                     Xl         g)am  Sets the selectors of this V1ExactDeviceRequest.

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

:param selectors: The selectors of this V1ExactDeviceRequest.  # noqa: E501
:type: list[V1DeviceSelector]
Nr;   )r   r   s     r    r   r<      s	     $r#   c                     U R                   $ )a5  Gets the tolerations of this V1ExactDeviceRequest.  # 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 V1ExactDeviceRequest.  # noqa: E501
:rtype: list[V1DeviceToleration]
r   r&   s    r    r    V1ExactDeviceRequest.tolerations   s        r#   c                     Xl         g)a1  Sets the tolerations of this V1ExactDeviceRequest.

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 V1ExactDeviceRequest.  # noqa: E501
:type: list[V1DeviceToleration]
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hasattrrD   )xs    r    <lambda>.V1ExactDeviceRequest.to_dict.<locals>.<lambda>   s    WQ	-B-BaiikIIr#   rD   c                 ^    [        U S   S5      (       a  U S   U S   R                  5       4$ U $ )N   rD   r   rE   )items    r    rH   rI     s9    tAw	22 #'q'47??+<!= "=8<"=r#   )six	iteritemsopenapi_typesgetattr
isinstancelistmaprF   rD   dictitems)r   resultattr_values        r    rD   V1ExactDeviceRequest.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pformatrD   r&   s    r    to_strV1ExactDeviceRequest.to_str  s    ~~dlln--r#   c                 "    U R                  5       $ )zFor `print` and `pprint`)r^   r&   s    r    __repr__V1ExactDeviceRequest.__repr__  s    {{}r#   c                 p    [        U[        5      (       d  gU R                  5       UR                  5       :H  $ )z&Returns true if both objects are equalFrQ   r   rD   r   others     r    __eq__V1ExactDeviceRequest.__eq__  s*    %!566||~00r#   c                 p    [        U[        5      (       d  gU R                  5       UR                  5       :g  $ )z*Returns true if both objects are not equalTrd   re   s     r    __ne__V1ExactDeviceRequest.__ne__  s*    %!566||~00r#   )r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   )NNNNNNNN)__name__
__module____qualname____firstlineno____doc__rO   attribute_mapr!   propertyr   setterr   r   r   r   r   r   rD   r^   ra   rg   rj   __static_attributes__ r#   r    r   r      s     ,"-1M &+. $M+: " " 	* 	* % % 	0 	0   __" "   \\	 	 ' ' 4 4   	$ 	$ ! ! 	( 	(0.11r#   r   )rp   r\   rerM   kubernetes.client.configurationr   objectr   ru   r#   r    <module>ry      s&     	 
 9L16 L1r#   