
    [j5                     |    d Z 	 ddlmZ n# e$ r	 ddlmZ Y nw xY wddlZddlZddlZddlm	Z	  G 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.36
    Generated by: https://openapi-generator.tech
    )getfullargspec)
getargspecN)Configurationc            	          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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ed             Zej	        d              Zed!             Zej	        d"             Zd*d$Zd% Zd& Zd' Zd( ZdS )+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V1beta1ResourcePoolzlist[V1beta1CounterSet])	all_nodesdevicesdriver	node_namenode_selectorper_device_node_selectionpoolshared_countersallNodesr   r   nodeNamenodeSelectorperDeviceNodeSelectionr   sharedCountersNc
                 H   |	t          j                    }	|	| _        d| _        d| _        d| _        d| _        d| _        d| _        d| _	        d| _
        d| _        ||| _        ||| _        || _        ||| _        ||| _        ||| _        || _        |	|| _        dS dS )z5V1beta1ResourceSliceSpec - a model defined in OpenAPIN)r   get_default_copylocal_vars_configuration
_all_nodes_devices_driver
_node_name_node_selector_per_device_node_selection_pool_shared_countersdiscriminatorr   r   r   r   r   r   r   r   )
selfr   r   r   r   r   r   r   r   r   s
             q/var/www/FlaskApp/flask-venv/lib/python3.11/site-packages/kubernetes/client/models/v1beta1_resource_slice_spec.py__init__z!V1beta1ResourceSliceSpec.__init__<   s    #+'4'E'G'G$(@%"*.'
 $! &DN"DL &DN$!.D$0-FD*	&#2D    '&    c                     | j         S )am  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, AllNodes, and PerDeviceNodeSelection must be set.  # noqa: E501

        :return: The all_nodes of this V1beta1ResourceSliceSpec.  # noqa: E501
        :rtype: bool
        r   r%   s    r&   r   z"V1beta1ResourceSliceSpec.all_nodes[        r(   c                     || _         dS )aq  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, AllNodes, and PerDeviceNodeSelection must be set.  # noqa: E501

        :param all_nodes: The all_nodes of this V1beta1ResourceSliceSpec.  # noqa: E501
        :type all_nodes: bool
        Nr*   )r%   r   s     r&   r   z"V1beta1ResourceSliceSpec.all_nodesf        $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. If any device uses taints or consumes counters the limit is 64.  Only one of Devices and SharedCounters can be set in a ResourceSlice.  # noqa: E501

        :return: The devices of this V1beta1ResourceSliceSpec.  # noqa: E501
        :rtype: list[V1beta1Device]
        r   r+   s    r&   r   z V1beta1ResourceSliceSpec.devicesr   s     }r(   c                     || _         dS )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. If any device uses taints or consumes counters the limit is 64.  Only one of Devices and SharedCounters can be set in a ResourceSlice.  # noqa: E501

        :param devices: The devices of this V1beta1ResourceSliceSpec.  # noqa: E501
        :type devices: list[V1beta1Device]
        Nr0   )r%   r   s     r&   r   z V1beta1ResourceSliceSpec.devices}   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. It should use only lower case characters. 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                 N    | j         j        r|t          d          || _        dS )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. It should use only lower case characters. This field is immutable.  # noqa: E501

        :param driver: The driver of this V1beta1ResourceSliceSpec.  # noqa: E501
        :type driver: str
        Nz.Invalid value for `driver`, must not be `None`)r   client_side_validation
ValueErrorr   )r%   r   s     r&   r   zV1beta1ResourceSliceSpec.driver   s1     (? 	OFNMN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, AllNodes, and PerDeviceNodeSelection 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                     || _         dS )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, AllNodes, and PerDeviceNodeSelection must be set. This field is immutable.  # noqa: E501

        :param node_name: The node_name of this V1beta1ResourceSliceSpec.  # noqa: E501
        :type node_name: str
        Nr7   )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                     || _         dS )zSets the node_selector of this V1beta1ResourceSliceSpec.


        :param node_selector: The node_selector of this V1beta1ResourceSliceSpec.  # noqa: E501
        :type node_selector: V1NodeSelector
        Nr:   )r%   r   s     r&   r   z&V1beta1ResourceSliceSpec.node_selector   s     ,r(   c                     | j         S )a)  Gets the per_device_node_selection of this V1beta1ResourceSliceSpec.  # noqa: E501

        PerDeviceNodeSelection defines whether the access from nodes to resources in the pool is set on the ResourceSlice level or on each device. If it is set to true, every device defined the ResourceSlice must specify this individually.  Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.  # noqa: E501

        :return: The per_device_node_selection of this V1beta1ResourceSliceSpec.  # noqa: E501
        :rtype: bool
        r!   r+   s    r&   r   z2V1beta1ResourceSliceSpec.per_device_node_selection   s     ..r(   c                     || _         dS )aM  Sets the per_device_node_selection of this V1beta1ResourceSliceSpec.

        PerDeviceNodeSelection defines whether the access from nodes to resources in the pool is set on the ResourceSlice level or on each device. If it is set to true, every device defined the ResourceSlice must specify this individually.  Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.  # noqa: E501

        :param per_device_node_selection: The per_device_node_selection of this V1beta1ResourceSliceSpec.  # noqa: E501
        :type per_device_node_selection: bool
        Nr=   )r%   r   s     r&   r   z2V1beta1ResourceSliceSpec.per_device_node_selection   s     +D'''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     zr(   c                 N    | j         j        r|t          d          || _        dS )zSets the pool of this V1beta1ResourceSliceSpec.


        :param pool: The pool of this V1beta1ResourceSliceSpec.  # noqa: E501
        :type pool: V1beta1ResourcePool
        Nz,Invalid value for `pool`, must not be `None`)r   r4   r5   r"   )r%   r   s     r&   r   zV1beta1ResourceSliceSpec.pool   s1     (? 	MDLKLLL


r(   c                     | j         S )a  Gets the shared_counters of this V1beta1ResourceSliceSpec.  # noqa: E501

        SharedCounters defines a list of counter sets, each of which has a name and a list of counters available.  The names of the counter sets must be unique in the ResourcePool.  Only one of Devices and SharedCounters can be set in a ResourceSlice.  The maximum number of counter sets is 8.  # noqa: E501

        :return: The shared_counters of this V1beta1ResourceSliceSpec.  # noqa: E501
        :rtype: list[V1beta1CounterSet]
        r#   r+   s    r&   r   z(V1beta1ResourceSliceSpec.shared_counters   s     $$r(   c                     || _         dS )a  Sets the shared_counters of this V1beta1ResourceSliceSpec.

        SharedCounters defines a list of counter sets, each of which has a name and a list of counters available.  The names of the counter sets must be unique in the ResourcePool.  Only one of Devices and SharedCounters can be set in a ResourceSlice.  The maximum number of counter sets is 8.  # noqa: E501

        :param shared_counters: The shared_counters of this V1beta1ResourceSliceSpec.  # noqa: E501
        :type shared_counters: list[V1beta1CounterSet]
        NrB   )r%   r   s     r&   r   z(V1beta1ResourceSliceSpec.shared_counters  s     !0r(   Fc                    i }fdt          j        | j                  D ]\  }}t          | |          }r| j                            ||          n|}t          |t                    r$t          t          fd|                    ||<   mt          |t                    r6t          t          fd|
                                                    ||<    |          ||<   |S )z&Returns the model properties as a dictc                     t          | d          rUt          | j                  j        }t	          |          dk    r|                                 S |                               S | S )Nto_dict   )hasattrr   rF   argslen)xrI   	serializes     r&   convertz1V1beta1ResourceSliceSpec.to_dict.<locals>.convert  s[    q)$$ %ai005t99>>99;;&99Y///r(   c                      |           S )N )rK   rM   s    r&   <lambda>z2V1beta1ResourceSliceSpec.to_dict.<locals>.<lambda>&  s    ggajj r(   c                 6    | d          | d                   fS )Nr   rG   rO   )itemrM   s    r&   rP   z2V1beta1ResourceSliceSpec.to_dict.<locals>.<lambda>+  s    $q'7747+;+;!< r(   )six	iteritemsopenapi_typesgetattrattribute_mapget
isinstancelistmapdictitems)r%   rL   resultattr_valuerM   s    `    @r&   rF   z V1beta1ResourceSliceSpec.to_dict  s   	 	 	 	 	 }T%788 	. 	.GD!D$''E9BL4%))$555D%&& .#C((((% %    t E4(( .#C<<<<KKMM% %    t
  'wu~~tr(   c                 N    t          j        |                                           S )z.Returns the string representation of the model)pprintpformatrF   r+   s    r&   to_strzV1beta1ResourceSliceSpec.to_str3  s    ~dllnn---r(   c                 *    |                                  S )zFor `print` and `pprint`)re   r+   s    r&   __repr__z!V1beta1ResourceSliceSpec.__repr__7  s    {{}}r(   c                     t          |t                    sdS |                                 |                                k    S )z&Returns true if both objects are equalFrY   r   rF   r%   others     r&   __eq__zV1beta1ResourceSliceSpec.__eq__;  s5    %!9:: 	5||~~00r(   c                     t          |t                    sdS |                                 |                                k    S )z*Returns true if both objects are not equalTri   rj   s     r&   __ne__zV1beta1ResourceSliceSpec.__ne__B  s5    %!9:: 	4||~~00r(   )	NNNNNNNNN)F)__name__
__module____qualname____doc__rU   rW   r'   propertyr   setterr   r   r   r   r   r   r   rF   re   rg   rl   rn   rO   r(   r&   r   r      s         ()%+%4	 	M  '%=+	 	M3 3 3 3>   X 	$ 	$ 	$   X ^	  	  ^	    X ]  ]   X 	$ 	$ 	$ # # X# , , , / / X/ %	D 	D &%	D   X 
[
 
 [
 % % X% 	0 	0 	0   @. . .  1 1 11 1 1 1 1r(   r   )rr   inspectr   ImportErrorr   rc   rerS   kubernetes.client.configurationr   objectr   rO   r(   r&   <module>rz      s    5&&&&&&& 5 5 5444444445  				 



 9 9 9 9 9 9o1 o1 o1 o1 o1v o1 o1 o1 o1 o1s    