o
    3Ih7.                     @   s<   d Z ddlZddlZddlZddlmZ G dd deZdS )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.33
    Generated by: https://openapi-generator.tech
    N)Configurationc                	   @   s@  e Zd ZdZ	 ddddddddd	Zd
dddddddd	Zd7ddZedd Zej	dd Zedd Z
e
j	dd Z
edd Zej	dd Zedd Zej	d d Zed!d" Zej	d#d" Zed$d% Zej	d&d% Zed'd( Zej	d)d( Zed*d+ Zej	d,d+ Zd-d. Zd/d0 Zd1d2 Zd3d4 Zd5d6 ZdS )8V1beta2DevicezNOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    boolz!dict(str, V1beta2DeviceAttribute)z dict(str, V1beta2DeviceCapacity)z%list[V1beta2DeviceCounterConsumption]strV1NodeSelectorzlist[V1beta2DeviceTaint])	all_nodes
attributescapacityconsumes_countersname	node_namenode_selectortaintsallNodesr   r	   consumesCountersr   nodeNamenodeSelectorr   Nc
           
      C   s   |	du rt  }	|	| _d| _d| _d| _d| _d| _d| _d| _d| _	d| _
|dur,|| _|dur3|| _|dur:|| _|durA|| _|| _|durK|| _|durR|| _|dur[|| _dS dS )z*V1beta2Device - a model defined in OpenAPIN)r   local_vars_configuration
_all_nodes_attributes	_capacity_consumes_counters_name
_node_name_node_selector_taintsdiscriminatorr   r   r	   r
   r   r   r   r   )
selfr   r   r	   r
   r   r   r   r   r    r   g/home/air/sanwanet/gpt-api/venv/lib/python3.10/site-packages/kubernetes/client/models/v1beta2_device.py__init__9   s8   
zV1beta2Device.__init__c                 C      | j S )an  Gets the all_nodes of this V1beta2Device.  # noqa: E501

        AllNodes indicates that all nodes have access to the device.  Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set.  # noqa: E501

        :return: The all_nodes of this V1beta2Device.  # noqa: E501
        :rtype: bool
        r   r   r   r   r   r   Y      	zV1beta2Device.all_nodesc                 C   
   || _ dS )ah  Sets the all_nodes of this V1beta2Device.

        AllNodes indicates that all nodes have access to the device.  Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set.  # noqa: E501

        :param all_nodes: The all_nodes of this V1beta2Device.  # noqa: E501
        :type: bool
        Nr"   )r   r   r   r   r   r   d      

c                 C   r!   )a  Gets the attributes of this V1beta2Device.  # noqa: E501

        Attributes defines the set of attributes for this device. The name of each attribute must be unique in that set.  The maximum number of attributes and capacities combined is 32.  # noqa: E501

        :return: The attributes of this V1beta2Device.  # noqa: E501
        :rtype: dict(str, V1beta2DeviceAttribute)
        r   r#   r   r   r   r   p   r$   zV1beta2Device.attributesc                 C   r%   )a}  Sets the attributes of this V1beta2Device.

        Attributes defines the set of attributes for this device. The name of each attribute must be unique in that set.  The maximum number of attributes and capacities combined is 32.  # noqa: E501

        :param attributes: The attributes of this V1beta2Device.  # noqa: E501
        :type: dict(str, V1beta2DeviceAttribute)
        Nr'   )r   r   r   r   r   r   {   r&   c                 C   r!   )az  Gets the capacity of this V1beta2Device.  # noqa: E501

        Capacity defines the set of capacities for this device. The name of each capacity must be unique in that set.  The maximum number of attributes and capacities combined is 32.  # noqa: E501

        :return: The capacity of this V1beta2Device.  # noqa: E501
        :rtype: dict(str, V1beta2DeviceCapacity)
        r   r#   r   r   r   r	      r$   zV1beta2Device.capacityc                 C   r%   )as  Sets the capacity of this V1beta2Device.

        Capacity defines the set of capacities for this device. The name of each capacity must be unique in that set.  The maximum number of attributes and capacities combined is 32.  # noqa: E501

        :param capacity: The capacity of this V1beta2Device.  # noqa: E501
        :type: dict(str, V1beta2DeviceCapacity)
        Nr(   )r   r	   r   r   r   r	      r&   c                 C   r!   )ad  Gets the consumes_counters of this V1beta2Device.  # noqa: E501

        ConsumesCounters defines a list of references to sharedCounters and the set of counters that the device will consume from those counter sets.  There can only be a single entry per counterSet.  The total number of device counter consumption entries must be <= 32. In addition, the total number in the entire ResourceSlice must be <= 1024 (for example, 64 devices with 16 counters each).  # noqa: E501

        :return: The consumes_counters of this V1beta2Device.  # noqa: E501
        :rtype: list[V1beta2DeviceCounterConsumption]
        r   r#   r   r   r   r
      r$   zV1beta2Device.consumes_countersc                 C   r%   )af  Sets the consumes_counters of this V1beta2Device.

        ConsumesCounters defines a list of references to sharedCounters and the set of counters that the device will consume from those counter sets.  There can only be a single entry per counterSet.  The total number of device counter consumption entries must be <= 32. In addition, the total number in the entire ResourceSlice must be <= 1024 (for example, 64 devices with 16 counters each).  # noqa: E501

        :param consumes_counters: The consumes_counters of this V1beta2Device.  # noqa: E501
        :type: list[V1beta2DeviceCounterConsumption]
        Nr)   )r   r
   r   r   r   r
      r&   c                 C   r!   )a  Gets the name of this V1beta2Device.  # noqa: E501

        Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label.  # noqa: E501

        :return: The name of this V1beta2Device.  # noqa: E501
        :rtype: str
        )r   r#   r   r   r   r      r$   zV1beta2Device.namec                 C   s"   | j jr|du rtd|| _dS )a  Sets the name of this V1beta2Device.

        Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label.  # noqa: E501

        :param name: The name of this V1beta2Device.  # noqa: E501
        :type: str
        Nz,Invalid value for `name`, must not be `None`)r   client_side_validation
ValueErrorr   )r   r   r   r   r   r      s   	
c                 C   r!   )al  Gets the node_name of this V1beta2Device.  # noqa: E501

        NodeName identifies the node where the device is available.  Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set.  # noqa: E501

        :return: The node_name of this V1beta2Device.  # noqa: E501
        :rtype: str
        r   r#   r   r   r   r      r$   zV1beta2Device.node_namec                 C   r%   )af  Sets the node_name of this V1beta2Device.

        NodeName identifies the node where the device is available.  Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set.  # noqa: E501

        :param node_name: The node_name of this V1beta2Device.  # noqa: E501
        :type: str
        Nr,   )r   r   r   r   r   r      r&   c                 C   r!   )zGets the node_selector of this V1beta2Device.  # noqa: E501


        :return: The node_selector of this V1beta2Device.  # noqa: E501
        :rtype: V1NodeSelector
        r   r#   r   r   r   r      s   zV1beta2Device.node_selectorc                 C   r%   )zSets the node_selector of this V1beta2Device.


        :param node_selector: The node_selector of this V1beta2Device.  # noqa: E501
        :type: V1NodeSelector
        Nr-   )r   r   r   r   r   r      s   
	c                 C   r!   )af  Gets the taints of this V1beta2Device.  # noqa: E501

        If specified, these are the driver-defined taints.  The maximum number of taints is 4.  This is an alpha field and requires enabling the DRADeviceTaints feature gate.  # noqa: E501

        :return: The taints of this V1beta2Device.  # noqa: E501
        :rtype: list[V1beta2DeviceTaint]
        r   r#   r   r   r   r      r$   zV1beta2Device.taintsc                 C   r%   )a]  Sets the taints of this V1beta2Device.

        If specified, these are the driver-defined taints.  The maximum number of taints is 4.  This is an alpha field and requires enabling the DRADeviceTaints feature gate.  # noqa: E501

        :param taints: The taints of this V1beta2Device.  # noqa: E501
        :type: list[V1beta2DeviceTaint]
        Nr.   )r   r   r   r   r   r     r&   c                 C   s   i }t | jD ]=\}}t| |}t|tr"ttdd |||< qt|dr.| ||< qt|t	rAt	tdd |
 ||< q|||< q|S )z&Returns the model properties as a dictc                 S   s   t | dr	|  S | S )Nto_dicthasattrr/   )xr   r   r   <lambda>  s    z'V1beta2Device.to_dict.<locals>.<lambda>r/   c                 S   s&   t | d dr| d | d  fS | S )N   r/   r   r0   )itemr   r   r   r3      s   )six	iteritemsopenapi_typesgetattr
isinstancelistmapr1   r/   dictitems)r   resultattr_valuer   r   r   r/     s"   




zV1beta2Device.to_dictc                 C   s   t |  S )z.Returns the string representation of the model)pprintpformatr/   r#   r   r   r   to_str)  s   zV1beta2Device.to_strc                 C   s   |   S )zFor `print` and `pprint`)rE   r#   r   r   r   __repr__-  s   zV1beta2Device.__repr__c                 C   s   t |tsdS |  | kS )z&Returns true if both objects are equalFr:   r   r/   r   otherr   r   r   __eq__1     
zV1beta2Device.__eq__c                 C   s   t |tsdS |  | kS )z*Returns true if both objects are not equalTrG   rH   r   r   r   __ne__8  rK   zV1beta2Device.__ne__)	NNNNNNNNN)__name__
__module____qualname____doc__r8   attribute_mapr    propertyr   setterr   r	   r
   r   r   r   r   r/   rE   rF   rJ   rL   r   r   r   r   r      sv    
 


















	




r   )rP   rC   rer6   kubernetes.client.configurationr   objectr   r   r   r   r   <module>   s   
