
    [j<                     |    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dd
Zdd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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 )-V1alpha3PoolStatuszNOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    intstr)
allocated_devicesavailable_devicesdriver
generation	node_name	pool_nameresource_slice_counttotal_devicesunavailable_devicesvalidation_errorallocatedDevicesavailableDevicesr   r   nodeNamepoolNameresourceSliceCounttotalDevicesunavailableDevicesvalidationErrorNc                    |t          j                    }|| _        d| _        d| _        d| _        d| _        d| _        d| _        d| _	        d| _
        d| _        d| _        d| _        ||| _        ||| _        || _        || _        ||| _        || _        ||| _        ||| _        |	|	| _        |
	|
| _        dS dS )z/V1alpha3PoolStatus - a model defined in OpenAPIN)r   get_default_copylocal_vars_configuration_allocated_devices_available_devices_driver_generation
_node_name
_pool_name_resource_slice_count_total_devices_unavailable_devices_validation_errordiscriminatorr
   r   r   r   r   r   r   r   r   r   )selfr
   r   r   r   r   r   r   r   r   r   r   s               j/var/www/FlaskApp/flask-venv/lib/python3.11/site-packages/kubernetes/client/models/v1alpha3_pool_status.py__init__zV1alpha3PoolStatus.__init__@   s    #+'4'E'G'G$(@%"&"&%)""$(!!%!(%6D"(%6D"$ &DN"+(<D%$!.D*':D$'$4D!!! ('    c                     | j         S )aj  Gets the allocated_devices of this V1alpha3PoolStatus.  # noqa: E501

        AllocatedDevices is the number of devices currently allocated to claims. A value of 0 means no devices are allocated. May be unset when validationError is set.  # noqa: E501

        :return: The allocated_devices of this V1alpha3PoolStatus.  # noqa: E501
        :rtype: int
        r   r*   s    r+   r
   z$V1alpha3PoolStatus.allocated_devicesd        &&r-   c                     || _         dS )a~  Sets the allocated_devices of this V1alpha3PoolStatus.

        AllocatedDevices is the number of devices currently allocated to claims. A value of 0 means no devices are allocated. May be unset when validationError is set.  # noqa: E501

        :param allocated_devices: The allocated_devices of this V1alpha3PoolStatus.  # noqa: E501
        :type allocated_devices: int
        Nr/   )r*   r
   s     r+   r
   z$V1alpha3PoolStatus.allocated_deviceso        #4r-   c                     | j         S )a  Gets the available_devices of this V1alpha3PoolStatus.  # noqa: E501

        AvailableDevices is the number of devices available for allocation. This equals TotalDevices - AllocatedDevices - UnavailableDevices. A value of 0 means no devices are currently available. May be unset when validationError is set.  # noqa: E501

        :return: The available_devices of this V1alpha3PoolStatus.  # noqa: E501
        :rtype: int
        r    r0   s    r+   r   z$V1alpha3PoolStatus.available_devices{   r1   r-   c                     || _         dS )a  Sets the available_devices of this V1alpha3PoolStatus.

        AvailableDevices is the number of devices available for allocation. This equals TotalDevices - AllocatedDevices - UnavailableDevices. A value of 0 means no devices are currently available. May be unset when validationError is set.  # noqa: E501

        :param available_devices: The available_devices of this V1alpha3PoolStatus.  # noqa: E501
        :type available_devices: int
        Nr5   )r*   r   s     r+   r   z$V1alpha3PoolStatus.available_devices   r3   r-   c                     | j         S )a  Gets the driver of this V1alpha3PoolStatus.  # noqa: E501

        Driver is the DRA driver name for this pool. Must be a DNS subdomain (e.g., "gpu.example.com").  # noqa: E501

        :return: The driver of this V1alpha3PoolStatus.  # noqa: E501
        :rtype: str
        )r!   r0   s    r+   r   zV1alpha3PoolStatus.driver   s     |r-   c                 N    | j         j        r|t          d          || _        dS )a  Sets the driver of this V1alpha3PoolStatus.

        Driver is the DRA driver name for this pool. Must be a DNS subdomain (e.g., "gpu.example.com").  # noqa: E501

        :param driver: The driver of this V1alpha3PoolStatus.  # 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V1alpha3PoolStatus.driver   s1     (? 	OFNMNNNr-   c                     | j         S )a  Gets the generation of this V1alpha3PoolStatus.  # noqa: E501

        Generation is the pool generation observed across all ResourceSlices in this pool. Only the latest generation is reported. During a generation rollout, if not all slices at the latest generation have been published, the pool is included with a validationError and device counts unset.  # noqa: E501

        :return: The generation of this V1alpha3PoolStatus.  # noqa: E501
        :rtype: int
        )r"   r0   s    r+   r   zV1alpha3PoolStatus.generation   s     r-   c                 N    | j         j        r|t          d          || _        dS )a  Sets the generation of this V1alpha3PoolStatus.

        Generation is the pool generation observed across all ResourceSlices in this pool. Only the latest generation is reported. During a generation rollout, if not all slices at the latest generation have been published, the pool is included with a validationError and device counts unset.  # noqa: E501

        :param generation: The generation of this V1alpha3PoolStatus.  # noqa: E501
        :type generation: int
        Nz2Invalid value for `generation`, must not be `None`)r   r9   r:   r"   )r*   r   s     r+   r   zV1alpha3PoolStatus.generation   s5     (? 	SJDVQRRR%r-   c                     | j         S )aZ  Gets the node_name of this V1alpha3PoolStatus.  # noqa: E501

        NodeName is the node this pool is associated with. When omitted, the pool is not associated with a specific node. Must be a valid DNS subdomain name (RFC1123).  # noqa: E501

        :return: The node_name of this V1alpha3PoolStatus.  # noqa: E501
        :rtype: str
        r#   r0   s    r+   r   zV1alpha3PoolStatus.node_name        r-   c                     || _         dS )a^  Sets the node_name of this V1alpha3PoolStatus.

        NodeName is the node this pool is associated with. When omitted, the pool is not associated with a specific node. Must be a valid DNS subdomain name (RFC1123).  # noqa: E501

        :param node_name: The node_name of this V1alpha3PoolStatus.  # noqa: E501
        :type node_name: str
        Nr>   )r*   r   s     r+   r   zV1alpha3PoolStatus.node_name   s     $r-   c                     | j         S )a"  Gets the pool_name of this V1alpha3PoolStatus.  # noqa: E501

        PoolName is the name of the pool. Must be a valid resource pool name (DNS subdomains separated by "/").  # noqa: E501

        :return: The pool_name of this V1alpha3PoolStatus.  # noqa: E501
        :rtype: str
        )r$   r0   s    r+   r   zV1alpha3PoolStatus.pool_name   r?   r-   c                 N    | j         j        r|t          d          || _        dS )a&  Sets the pool_name of this V1alpha3PoolStatus.

        PoolName is the name of the pool. Must be a valid resource pool name (DNS subdomains separated by "/").  # noqa: E501

        :param pool_name: The pool_name of this V1alpha3PoolStatus.  # noqa: E501
        :type pool_name: str
        Nz1Invalid value for `pool_name`, must not be `None`)r   r9   r:   r$   )r*   r   s     r+   r   zV1alpha3PoolStatus.pool_name   s2     (? 	RIDUPQQQ#r-   c                     | j         S )aE  Gets the resource_slice_count of this V1alpha3PoolStatus.  # noqa: E501

        ResourceSliceCount is the number of ResourceSlices that make up this pool. May be unset when validationError is set.  # noqa: E501

        :return: The resource_slice_count of this V1alpha3PoolStatus.  # noqa: E501
        :rtype: int
        r%   r0   s    r+   r   z'V1alpha3PoolStatus.resource_slice_count   s     ))r-   c                     || _         dS )a_  Sets the resource_slice_count of this V1alpha3PoolStatus.

        ResourceSliceCount is the number of ResourceSlices that make up this pool. May be unset when validationError is set.  # noqa: E501

        :param resource_slice_count: The resource_slice_count of this V1alpha3PoolStatus.  # noqa: E501
        :type resource_slice_count: int
        NrD   )r*   r   s     r+   r   z'V1alpha3PoolStatus.resource_slice_count   s     &:"""r-   c                     | j         S )ac  Gets the total_devices of this V1alpha3PoolStatus.  # noqa: E501

        TotalDevices is the total number of devices in the pool across all slices. A value of 0 means the pool has no devices. May be unset when validationError is set.  # noqa: E501

        :return: The total_devices of this V1alpha3PoolStatus.  # noqa: E501
        :rtype: int
        r&   r0   s    r+   r   z V1alpha3PoolStatus.total_devices  s     ""r-   c                     || _         dS )ao  Sets the total_devices of this V1alpha3PoolStatus.

        TotalDevices is the total number of devices in the pool across all slices. A value of 0 means the pool has no devices. May be unset when validationError is set.  # noqa: E501

        :param total_devices: The total_devices of this V1alpha3PoolStatus.  # noqa: E501
        :type total_devices: int
        NrG   )r*   r   s     r+   r   z V1alpha3PoolStatus.total_devices  s     ,r-   c                     | j         S )a  Gets the unavailable_devices of this V1alpha3PoolStatus.  # noqa: E501

        UnavailableDevices is the number of devices that are not available due to taints or other conditions, but are not allocated. A value of 0 means all unallocated devices are available. May be unset when validationError is set.  # noqa: E501

        :return: The unavailable_devices of this V1alpha3PoolStatus.  # noqa: E501
        :rtype: int
        r'   r0   s    r+   r   z&V1alpha3PoolStatus.unavailable_devices"  s     ((r-   c                     || _         dS )a  Sets the unavailable_devices of this V1alpha3PoolStatus.

        UnavailableDevices is the number of devices that are not available due to taints or other conditions, but are not allocated. A value of 0 means all unallocated devices are available. May be unset when validationError is set.  # noqa: E501

        :param unavailable_devices: The unavailable_devices of this V1alpha3PoolStatus.  # noqa: E501
        :type unavailable_devices: int
        NrJ   )r*   r   s     r+   r   z&V1alpha3PoolStatus.unavailable_devices-  s     %8!!!r-   c                     | j         S )az  Gets the validation_error of this V1alpha3PoolStatus.  # noqa: E501

        ValidationError is set when the pool's data could not be fully validated (e.g., incomplete slice publication). When set, device count fields and ResourceSliceCount may be unset.  # noqa: E501

        :return: The validation_error of this V1alpha3PoolStatus.  # noqa: E501
        :rtype: str
        r(   r0   s    r+   r   z#V1alpha3PoolStatus.validation_error9  s     %%r-   c                     || _         dS )a  Sets the validation_error of this V1alpha3PoolStatus.

        ValidationError is set when the pool's data could not be fully validated (e.g., incomplete slice publication). When set, device count fields and ResourceSliceCount may be unset.  # noqa: E501

        :param validation_error: The validation_error of this V1alpha3PoolStatus.  # noqa: E501
        :type validation_error: str
        NrM   )r*   r   s     r+   r   z#V1alpha3PoolStatus.validation_errorD  s     "2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   rQ   argslen)xrT   	serializes     r+   convertz+V1alpha3PoolStatus.to_dict.<locals>.convertT  s[    q)$$ %ai005t99>>99;;&99Y///r-   c                      |           S )N )rV   rX   s    r+   <lambda>z,V1alpha3PoolStatus.to_dict.<locals>.<lambda>c  s    ggajj r-   c                 6    | d          | d                   fS )Nr   rR   rZ   )itemrX   s    r+   r[   z,V1alpha3PoolStatus.to_dict.<locals>.<lambda>h  s    $q'7747+;+;!< r-   )six	iteritemsopenapi_typesgetattrattribute_mapget
isinstancelistmapdictitems)r*   rW   resultattr_valuerX   s    `    @r+   rQ   zV1alpha3PoolStatus.to_dictP  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pformatrQ   r0   s    r+   to_strzV1alpha3PoolStatus.to_strp  s    ~dllnn---r-   c                 *    |                                  S )zFor `print` and `pprint`)rp   r0   s    r+   __repr__zV1alpha3PoolStatus.__repr__t  s    {{}}r-   c                     t          |t                    sdS |                                 |                                k    S )z&Returns true if both objects are equalFrd   r   rQ   r*   others     r+   __eq__zV1alpha3PoolStatus.__eq__x  s5    %!344 	5||~~00r-   c                     t          |t                    sdS |                                 |                                k    S )z*Returns true if both objects are not equalTrt   ru   s     r+   __ne__zV1alpha3PoolStatus.__ne__  s5    %!344 	4||~~00r-   )NNNNNNNNNNN)F)__name__
__module____qualname____doc__r`   rb   r,   propertyr
   setterr   r   r   r   r   r   r   r   r   rQ   rp   rr   rw   ry   rZ   r-   r+   r   r      s#         #" %$! M 0/" 4'3- M"5 "5 "5 "5H ' ' X' 	4 	4 	4 ' ' X' 	4 	4 	4   X ]  ]     X  & & &   X 	$ 	$ 	$   X $ $ $ * * X*  	: 	: ! 	: # # X# 	, 	, 	, ) ) X) 	8 	8  	8 & & X& 	2 	2 	2   @. . .  1 1 11 1 1 1 1r-   r   )r}   inspectr   ImportErrorr   rn   rer^   kubernetes.client.configurationr   objectr   rZ   r-   r+   <module>r      s    5&&&&&&& 5 5 5444444445  				 



 9 9 9 9 9 9l1 l1 l1 l1 l1 l1 l1 l1 l1 l1s    