
    >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Z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d Zd Zd Zd Zd Zy)V1beta1ResourcePoolzNOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    intstr)
generationnameresource_slice_countr   r	   resourceSliceCountNc                     |
t               }|| _        d| _        d| _        d| _        d| _        || _        || _        || _        y)z0V1beta1ResourcePool - a model defined in OpenAPIN)	r   local_vars_configuration_generation_name_resource_slice_countdiscriminatorr   r	   r
   )selfr   r	   r
   r   s        c/var/www/openai/venv/lib/python3.12/site-packages/kubernetes/client/models/v1beta1_resource_pool.py__init__zV1beta1ResourcePool.__init__/   sM    #+'4$(@%
%)"!$	$8!    c                     | j                   S )a;  Gets the generation of this V1beta1ResourcePool.  # noqa: E501

        Generation tracks the change in a pool over time. Whenever a driver changes something about one or more of the resources in a pool, it must change the generation in all ResourceSlices which are part of that pool. Consumers of ResourceSlices should only consider resources from the pool with the highest generation number. The generation may be reset by drivers, which should be fine for consumers, assuming that all ResourceSlices in a pool are updated to match or deleted.  Combined with ResourceSliceCount, this mechanism enables consumers to detect pools which are comprised of multiple ResourceSlices and are in an incomplete state.  # noqa: E501

        :return: The generation of this V1beta1ResourcePool.  # noqa: E501
        :rtype: int
        )r   r   s    r   r   zV1beta1ResourcePool.generation>   s     r   c                 X    | j                   j                  r|t        d      || _        y)a6  Sets the generation of this V1beta1ResourcePool.

        Generation tracks the change in a pool over time. Whenever a driver changes something about one or more of the resources in a pool, it must change the generation in all ResourceSlices which are part of that pool. Consumers of ResourceSlices should only consider resources from the pool with the highest generation number. The generation may be reset by drivers, which should be fine for consumers, assuming that all ResourceSlices in a pool are updated to match or deleted.  Combined with ResourceSliceCount, this mechanism enables consumers to detect pools which are comprised of multiple ResourceSlices and are in an incomplete state.  # noqa: E501

        :param generation: The generation of this V1beta1ResourcePool.  # noqa: E501
        :type: int
        Nz2Invalid value for `generation`, must not be `None`)r   client_side_validation
ValueErrorr   )r   r   s     r   r   zV1beta1ResourcePool.generationI   s,     ((??JDVQRR%r   c                     | j                   S )a  Gets the name of this V1beta1ResourcePool.  # noqa: E501

        Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required.  It must not be longer than 253 characters and must consist of one or more DNS sub-domains separated by slashes. This field is immutable.  # noqa: E501

        :return: The name of this V1beta1ResourcePool.  # noqa: E501
        :rtype: str
        )r   r   s    r   r	   zV1beta1ResourcePool.nameW   s     zzr   c                 X    | j                   j                  r|t        d      || _        y)a  Sets the name of this V1beta1ResourcePool.

        Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required.  It must not be longer than 253 characters and must consist of one or more DNS sub-domains separated by slashes. This field is immutable.  # noqa: E501

        :param name: The name of this V1beta1ResourcePool.  # noqa: E501
        :type: str
        Nz,Invalid value for `name`, must not be `None`)r   r   r   r   )r   r	   s     r   r	   zV1beta1ResourcePool.nameb   s*     ((??DLKLL
r   c                     | j                   S )a  Gets the resource_slice_count of this V1beta1ResourcePool.  # noqa: E501

        ResourceSliceCount is the total number of ResourceSlices in the pool at this generation number. Must be greater than zero.  Consumers can use this to check whether they have seen all ResourceSlices belonging to the same pool.  # noqa: E501

        :return: The resource_slice_count of this V1beta1ResourcePool.  # noqa: E501
        :rtype: int
        )r   r   s    r   r
   z(V1beta1ResourcePool.resource_slice_countp   s     )))r   c                 X    | j                   j                  r|t        d      || _        y)a  Sets the resource_slice_count of this V1beta1ResourcePool.

        ResourceSliceCount is the total number of ResourceSlices in the pool at this generation number. Must be greater than zero.  Consumers can use this to check whether they have seen all ResourceSlices belonging to the same pool.  # noqa: E501

        :param resource_slice_count: The resource_slice_count of this V1beta1ResourcePool.  # noqa: E501
        :type: int
        Nz<Invalid value for `resource_slice_count`, must not be `None`)r   r   r   r   )r   r
   s     r   r
   z(V1beta1ResourcePool.resource_slice_count{   s-     ((??DXD`[\\%9"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hasattrr!   )xs    r   <lambda>z-V1beta1ResourcePool.to_dict.<locals>.<lambda>   s    WQ	-BaiikIIr   r!   c                 T    t        | d   d      r| d   | d   j                         fS | S )N   r!   r   r"   )items    r   r%   z-V1beta1ResourcePool.to_dict.<locals>.<lambda>   s6    tAw	2 #'q'47??+<!= "=8<"=r   )six	iteritemsopenapi_typesgetattr
isinstancelistmapr#   r!   dictitems)r   resultattr_values        r   r!   zV1beta1ResourcePool.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pformatr!   r   s    r   to_strzV1beta1ResourcePool.to_str   s    ~~dlln--r   c                 "    | j                         S )zFor `print` and `pprint`)r9   r   s    r   __repr__zV1beta1ResourcePool.__repr__   s    {{}r   c                 f    t        |t              sy| j                         |j                         k(  S )z&Returns true if both objects are equalFr-   r   r!   r   others     r   __eq__zV1beta1ResourcePool.__eq__   s'    %!45||~00r   c                 f    t        |t              sy| j                         |j                         k7  S )z*Returns true if both objects are not equalTr=   r>   s     r   __ne__zV1beta1ResourcePool.__ne__   s'    %!45||~00r   )NNNN)__name__
__module____qualname____doc__r+   attribute_mapr   propertyr   setterr	   r
   r!   r9   r;   r@   rB    r   r   r   r      s      %M # 4M9     & &   
[[  * *   : !:0.11r   r   )rF   r7   rer)   kubernetes.client.configurationr   objectr   rJ   r   r   <module>rN      s&     	 
 9`1& `1r   