§
    Štj�  ã                   ó|   — 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iZddiZdd„Zed„ ¦   «         Zej	        d„ ¦   «         Zdd	„Z
d
„ Zd„ Zd„ Zd„ ZdS )ÚV1beta1CapacityRequirementszŠNOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    Úrequestszdict[str, str]Nc                 óp   — |€t          j        ¦   «         }|| _        d| _        d| _        |�	|| _        dS dS )z8V1beta1CapacityRequirements - a model defined in OpenAPIN)r   Úget_default_copyÚlocal_vars_configurationÚ	_requestsÚdiscriminatorr   )Úselfr   r   s      út/var/www/html/CA-Chatbot/venv/lib/python3.11/site-packages/kubernetes/client/models/v1beta1_capacity_requirements.pyÚ__init__z$V1beta1CapacityRequirements.__init__.   sG   € à#Ð+Ý'4Ô'EÑ'GÔ'GÐ$Ø(@ˆÔ%àˆŒØ!ˆÔàÐØ$ˆDŒMˆMˆMð  Ðó    c                 ó   — | j         S )uû  Gets the requests of this V1beta1CapacityRequirements.  # noqa: E501

        Requests represent individual device resource requests for distinct resources, all of which must be provided by the device.  This value is used as an additional filtering condition against the available capacity on the device. This is semantically equivalent to a CEL selector with `device.capacity[<domain>].<name>.compareTo(quantity(<request quantity>)) >= 0`. For example, device.capacity['test-driver.cdi.k8s.io'].counters.compareTo(quantity('2')) >= 0.  When a requestPolicy is defined, the requested amount is adjusted upward to the nearest valid value based on the policy. If the requested amount cannot be adjusted to a valid valueâ€”because it exceeds what the requestPolicy allowsâ€” the device is considered ineligible for allocation.  For any capacity that is not explicitly requested: - If no requestPolicy is set, the default consumed capacity is equal to the full device capacity   (i.e., the whole device is claimed). - If a requestPolicy is set, the default consumed capacity is determined according to that policy.  If the device allows multiple allocation, the aggregated amount across all requests must not exceed the capacity value. The consumed capacity, which may be adjusted based on the requestPolicy if defined, is recorded in the resource claimâ€™s status.devices[*].consumedCapacity field.  # noqa: E501

        :return: The requests of this V1beta1CapacityRequirements.  # noqa: E501
        :rtype: dict[str, str]
        ©r   ©r   s    r   r   z$V1beta1CapacityRequirements.requests:   s   € ð Œ~Ðr   c                 ó   — || _         dS )uý  Sets the requests of this V1beta1CapacityRequirements.

        Requests represent individual device resource requests for distinct resources, all of which must be provided by the device.  This value is used as an additional filtering condition against the available capacity on the device. This is semantically equivalent to a CEL selector with `device.capacity[<domain>].<name>.compareTo(quantity(<request quantity>)) >= 0`. For example, device.capacity['test-driver.cdi.k8s.io'].counters.compareTo(quantity('2')) >= 0.  When a requestPolicy is defined, the requested amount is adjusted upward to the nearest valid value based on the policy. If the requested amount cannot be adjusted to a valid valueâ€”because it exceeds what the requestPolicy allowsâ€” the device is considered ineligible for allocation.  For any capacity that is not explicitly requested: - If no requestPolicy is set, the default consumed capacity is equal to the full device capacity   (i.e., the whole device is claimed). - If a requestPolicy is set, the default consumed capacity is determined according to that policy.  If the device allows multiple allocation, the aggregated amount across all requests must not exceed the capacity value. The consumed capacity, which may be adjusted based on the requestPolicy if defined, is recorded in the resource claimâ€™s status.devices[*].consumedCapacity field.  # noqa: E501

        :param requests: The requests of this V1beta1CapacityRequirements.  # noqa: E501
        :type requests: dict[str, str]
        Nr   )r   r   s     r   r   z$V1beta1CapacityRequirements.requestsE   s   € ð "ˆŒˆˆ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   r   ÚargsÚlen)Úxr   Ú	serializes     €r   Úconvertz4V1beta1CapacityRequirements.to_dict.<locals>.convertU   s[   ø€ Ý�q˜)Ñ$Ô$ð Ý% a¤iÑ0Ô0Ô5�Ý�t‘9”9 ’>�>ØŸ9š9™;œ;Ð&àŸ9š9 YÑ/Ô/Ð/à�r   c                 ó   •—  ‰| ¦  «        S )N© )r   r   s    €r   ú<lambda>z5V1beta1CapacityRequirements.to_dict.<locals>.<lambda>d   s   ø€ ˜g˜g a™jœj€ r   c                 ó6   •— | d          ‰| d         ¦  «        fS )Nr   r   r!   )Úitemr   s    €r   r"   z5V1beta1CapacityRequirements.to_dict.<locals>.<lambda>i   s   ø€  $ q¤'¨7¨7°4¸´7Ñ+;Ô+;Ð!<€ r   )ÚsixÚ	iteritemsÚopenapi_typesÚgetattrÚattribute_mapÚgetÚ
isinstanceÚlistÚmapÚdictÚitems)r   r   ÚresultÚattrÚ_Úvaluer   s    `    @r   r   z#V1beta1CapacityRequirements.to_dictQ   s  øø€ àˆð	ð 	ð 	ð 	ð 	õ ”} TÔ%7Ñ8Ô8ð 	.ð 	.‰GˆD�!Ý˜D $Ñ'Ô'ˆEØ9BÐL�4Ô%×)Ò)¨$°Ñ5Ô5Ð5ÈˆDÝ˜%¥Ñ&Ô&ð .Ý#¥CØ(Ð(Ð(Ð(Øñ%ô %ñ  ô  ��t‘�õ ˜E¥4Ñ(Ô(ð .Ý#¥CØ<Ð<Ð<Ð<Ø—K’K‘M”Mñ%ô %ñ  ô  ��t‘�ð
  '˜w u™~œ~��t‘�àˆr   c                 óN   — t          j        |                      ¦   «         ¦  «        S )z.Returns the string representation of the model)ÚpprintÚpformatr   r   s    r   Úto_strz"V1beta1CapacityRequirements.to_strq   s   € åŒ~˜dŸlšl™nœnÑ-Ô-Ð-r   c                 ó*   — |                       ¦   «         S )zFor `print` and `pprint`)r7   r   s    r   Ú__repr__z$V1beta1CapacityRequirements.__repr__u   s   € à�{Š{‰}Œ}Ðr   c                 ó„   — t          |t          ¦  «        sdS |                      ¦   «         |                     ¦   «         k    S )z&Returns true if both objects are equalF©r+   r   r   ©r   Úothers     r   Ú__eq__z"V1beta1CapacityRequirements.__eq__y   s5   € å˜%Õ!<Ñ=Ô=ð 	Ø�5à�|Š|‰~Œ~ §¢¡¤Ò0Ð0r   c                 ó„   — t          |t          ¦  «        sdS |                      ¦   «         |                     ¦   «         k    S )z*Returns true if both objects are not equalTr;   r<   s     r   Ú__ne__z"V1beta1CapacityRequirements.__ne__€   s5   € å˜%Õ!<Ñ=Ô=ð 	Ø�4à�|Š|‰~Œ~ §¢¡¤Ò0Ð0r   )NN)F)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r'   r)   r   Úpropertyr   Úsetterr   r7   r9   r>   r@   r!   r   r   r   r      sÝ   € € € € € ðð ðð 	Ð$ð€Mð
 	�Jð€Mð
%ð 
%ð 
%ð 
%ð ðð ñ „Xðð „_ð	"ð 	"ñ „_ð	"ðð ð ð ð@.ð .ð .ðð ð ð1ð 1ð 1ð1ð 1ð 1ð 1ð 1r   r   )rD   Úinspectr   ÚImportErrorr   r5   Úrer%   Úkubernetes.client.configurationr   Úobjectr   r!   r   r   ú<module>rL      sÇ   ððð ð5Ø&Ð&Ð&Ð&Ð&Ð&Ð&øØð 5ð 5ð 5Ø4Ð4Ð4Ð4Ð4Ð4Ð4Ð4ð5øøøà €€€Ø 	€	€	€	Ø 
€
€
€
à 9Ð 9Ð 9Ð 9Ð 9Ð 9ðm1ð m1ð m1ð m1ð m1 &ñ m1ô m1ð m1ð m1ð m1s   „ ‹˜