
    >g`%                     B    d Z ddlZddlZddlZddlmZ  G d de      Zy)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.32
    Generated by: https://openapi-generator.tech
    N)Configurationc                      e Zd ZdZ	 dddddddZdd	d
ddddZd!dZed        Zej                  d        Zed        Z
e
j                  d        Z
ed        Zej                  d        Zed        Zej                  d        Zed        Zej                  d        Zed        Zej                  d        Zd Zd Zd Zd Zd  Zy)"V1beta1ResourceSliceSpeczNOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    boolzlist[V1beta1Device]strV1NodeSelectorV1beta1ResourcePool)	all_nodesdevicesdriver	node_namenode_selectorpoolallNodesr   r   nodeNamenodeSelectorr   Nc                     |
t               }|| _        d| _        d| _        d| _        d| _        d| _        d| _        d| _        ||| _	        ||| _
        || _        ||| _        ||| _        || _        y)z5V1beta1ResourceSliceSpec - a model defined in OpenAPIN)r   local_vars_configuration
_all_nodes_devices_driver
_node_name_node_selector_pooldiscriminatorr
   r   r   r   r   r   )selfr
   r   r   r   r   r   r   s           i/var/www/openai/venv/lib/python3.12/site-packages/kubernetes/client/models/v1beta1_resource_slice_spec.py__init__z!V1beta1ResourceSliceSpec.__init__5   s    #+'4$(@%"
! &DN"DL &DN$!.D	    c                     | j                   S )aT  Gets the all_nodes of this V1beta1ResourceSliceSpec.  # noqa: E501

        AllNodes indicates that all nodes have access to the resources in the pool.  Exactly one of NodeName, NodeSelector and AllNodes must be set.  # noqa: E501

        :return: The all_nodes of this V1beta1ResourceSliceSpec.  # noqa: E501
        :rtype: bool
        r   r   s    r   r
   z"V1beta1ResourceSliceSpec.all_nodesN        r   c                     || _         y)aN  Sets the all_nodes of this V1beta1ResourceSliceSpec.

        AllNodes indicates that all nodes have access to the resources in the pool.  Exactly one of NodeName, NodeSelector and AllNodes must be set.  # noqa: E501

        :param all_nodes: The all_nodes of this V1beta1ResourceSliceSpec.  # noqa: E501
        :type: bool
        Nr!   )r   r
   s     r   r
   z"V1beta1ResourceSliceSpec.all_nodesY        $r   c                     | j                   S )a/  Gets the devices of this V1beta1ResourceSliceSpec.  # noqa: E501

        Devices lists some or all of the devices in this pool.  Must not have more than 128 entries.  # noqa: E501

        :return: The devices of this V1beta1ResourceSliceSpec.  # noqa: E501
        :rtype: list[V1beta1Device]
        r   r"   s    r   r   z V1beta1ResourceSliceSpec.devicese   s     }}r   c                     || _         y)a'  Sets the devices of this V1beta1ResourceSliceSpec.

        Devices lists some or all of the devices in this pool.  Must not have more than 128 entries.  # noqa: E501

        :param devices: The devices of this V1beta1ResourceSliceSpec.  # noqa: E501
        :type: list[V1beta1Device]
        Nr'   )r   r   s     r   r   z V1beta1ResourceSliceSpec.devicesp   s      r   c                     | j                   S )a  Gets the driver of this V1beta1ResourceSliceSpec.  # noqa: E501

        Driver identifies the DRA driver providing the capacity information. A field selector can be used to list only ResourceSlice objects with a certain driver name.  Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. This field is immutable.  # noqa: E501

        :return: The driver of this V1beta1ResourceSliceSpec.  # noqa: E501
        :rtype: str
        )r   r"   s    r   r   zV1beta1ResourceSliceSpec.driver|   s     ||r   c                 X    | j                   j                  r|t        d      || _        y)a  Sets the driver of this V1beta1ResourceSliceSpec.

        Driver identifies the DRA driver providing the capacity information. A field selector can be used to list only ResourceSlice objects with a certain driver name.  Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. This field is immutable.  # noqa: E501

        :param driver: The driver of this V1beta1ResourceSliceSpec.  # noqa: E501
        :type: str
        Nz.Invalid value for `driver`, must not be `None`)r   client_side_validation
ValueErrorr   )r   r   s     r   r   zV1beta1ResourceSliceSpec.driver   s*     ((??FNMNNr   c                     | j                   S )a  Gets the node_name of this V1beta1ResourceSliceSpec.  # noqa: E501

        NodeName identifies the node which provides the resources in this pool. A field selector can be used to list only ResourceSlice objects belonging to a certain node.  This field can be used to limit access from nodes to ResourceSlices with the same node name. It also indicates to autoscalers that adding new nodes of the same type as some old node might also make new resources available.  Exactly one of NodeName, NodeSelector and AllNodes must be set. This field is immutable.  # noqa: E501

        :return: The node_name of this V1beta1ResourceSliceSpec.  # noqa: E501
        :rtype: str
        r   r"   s    r   r   z"V1beta1ResourceSliceSpec.node_name   r#   r   c                     || _         y)a  Sets the node_name of this V1beta1ResourceSliceSpec.

        NodeName identifies the node which provides the resources in this pool. A field selector can be used to list only ResourceSlice objects belonging to a certain node.  This field can be used to limit access from nodes to ResourceSlices with the same node name. It also indicates to autoscalers that adding new nodes of the same type as some old node might also make new resources available.  Exactly one of NodeName, NodeSelector and AllNodes must be set. This field is immutable.  # noqa: E501

        :param node_name: The node_name of this V1beta1ResourceSliceSpec.  # noqa: E501
        :type: str
        Nr.   )r   r   s     r   r   z"V1beta1ResourceSliceSpec.node_name   r%   r   c                     | j                   S )zGets the node_selector of this V1beta1ResourceSliceSpec.  # noqa: E501


        :return: The node_selector of this V1beta1ResourceSliceSpec.  # noqa: E501
        :rtype: V1NodeSelector
        r   r"   s    r   r   z&V1beta1ResourceSliceSpec.node_selector   s     """r   c                     || _         y)zSets the node_selector of this V1beta1ResourceSliceSpec.


        :param node_selector: The node_selector of this V1beta1ResourceSliceSpec.  # noqa: E501
        :type: V1NodeSelector
        Nr1   )r   r   s     r   r   z&V1beta1ResourceSliceSpec.node_selector   s     ,r   c                     | j                   S )zGets the pool of this V1beta1ResourceSliceSpec.  # noqa: E501


        :return: The pool of this V1beta1ResourceSliceSpec.  # noqa: E501
        :rtype: V1beta1ResourcePool
        )r   r"   s    r   r   zV1beta1ResourceSliceSpec.pool   s     zzr   c                 X    | j                   j                  r|t        d      || _        y)zSets the pool of this V1beta1ResourceSliceSpec.


        :param pool: The pool of this V1beta1ResourceSliceSpec.  # noqa: E501
        :type: V1beta1ResourcePool
        Nz,Invalid value for `pool`, must not be `None`)r   r+   r,   r   )r   r   s     r   r   zV1beta1ResourceSliceSpec.pool   s*     ((??DLKLL
r   c                 ~   i }t        j                  | j                        D ]  \  }}t        | |      }t	        |t
              rt        t        d |            ||<   <t        |d      r|j                         ||<   \t	        |t              r(t        t        d |j                                     ||<   |||<    |S )z&Returns the model properties as a dictc                 >    t        | d      r| j                         S | S )Nto_dicthasattrr7   )xs    r   <lambda>z2V1beta1ResourceSliceSpec.to_dict.<locals>.<lambda>   s    WQ	-BaiikIIr   r7   c                 T    t        | d   d      r| d   | d   j                         fS | S )N   r7   r   r8   )items    r   r;   z2V1beta1ResourceSliceSpec.to_dict.<locals>.<lambda>   s6    tAw	2 #'q'47??+<!= "=8<"=r   )six	iteritemsopenapi_typesgetattr
isinstancelistmapr9   r7   dictitems)r   resultattr_values        r   r7   z V1beta1ResourceSliceSpec.to_dict   s    }}T%7%78GD!D$'E%&#CI%  t 	*$}}tE4(#C=KKM%  t  %t! 9$ r   c                 H    t        j                  | j                               S )z.Returns the string representation of the model)pprintpformatr7   r"   s    r   to_strzV1beta1ResourceSliceSpec.to_str   s    ~~dlln--r   c                 "    | j                         S )zFor `print` and `pprint`)rO   r"   s    r   __repr__z!V1beta1ResourceSliceSpec.__repr__   s    {{}r   c                 f    t        |t              sy| j                         |j                         k(  S )z&Returns true if both objects are equalFrC   r   r7   r   others     r   __eq__zV1beta1ResourceSliceSpec.__eq__   s'    %!9:||~00r   c                 f    t        |t              sy| j                         |j                         k7  S )z*Returns true if both objects are not equalTrS   rT   s     r   __ne__zV1beta1ResourceSliceSpec.__ne__   s'    %!9:||~00r   )NNNNNNN)__name__
__module____qualname____doc__rA   attribute_mapr   propertyr
   setterr   r   r   r   r   r7   rO   rQ   rV   rX    r   r   r   r      sn    ()%M  'M2   	$ 	$   ^^	  	    ]]    	$ 	$ # # , ,   
[[
 
0.11r   r   )r\   rM   rer?   kubernetes.client.configurationr   objectr   r`   r   r   <module>rd      s&     	 
 9o1v o1r   