
    [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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dZd Zd Zd Zd Zd	S )V1CapacityRequestPolicyzNOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    strV1CapacityRequestPolicyRangez	list[str])defaultvalid_rangevalid_valuesr
   
validRangevalidValuesNc                     |t          j                    }|| _        d| _        d| _        d| _        d| _        ||| _        ||| _        |	|| _	        dS dS )z4V1CapacityRequestPolicy - a model defined in OpenAPIN)
r   get_default_copylocal_vars_configuration_default_valid_range_valid_valuesdiscriminatorr
   r   r   )selfr
   r   r   r   s        p/var/www/FlaskApp/flask-venv/lib/python3.11/site-packages/kubernetes/client/models/v1_capacity_request_policy.py__init__z V1CapacityRequestPolicy.__init__2   su    #+'4'E'G'G$(@% !!"DL"*D# ,D $#    c                     | j         S )aH  Gets the default of this V1CapacityRequestPolicy.  # noqa: E501

        Default specifies how much of this capacity is consumed by a request that does not contain an entry for it in DeviceRequest's Capacity.  # noqa: E501

        :return: The default of this V1CapacityRequestPolicy.  # noqa: E501
        :rtype: str
        r   r   s    r   r
   zV1CapacityRequestPolicy.defaultD   s     }r   c                     || _         dS )aH  Sets the default of this V1CapacityRequestPolicy.

        Default specifies how much of this capacity is consumed by a request that does not contain an entry for it in DeviceRequest's Capacity.  # noqa: E501

        :param default: The default of this V1CapacityRequestPolicy.  # noqa: E501
        :type default: str
        Nr   )r   r
   s     r   r
   zV1CapacityRequestPolicy.defaultO   s      r   c                     | j         S )zGets the valid_range of this V1CapacityRequestPolicy.  # noqa: E501


        :return: The valid_range of this V1CapacityRequestPolicy.  # noqa: E501
        :rtype: V1CapacityRequestPolicyRange
        r   r   s    r   r   z#V1CapacityRequestPolicy.valid_range[   s       r   c                     || _         dS )zSets the valid_range of this V1CapacityRequestPolicy.


        :param valid_range: The valid_range of this V1CapacityRequestPolicy.  # noqa: E501
        :type valid_range: V1CapacityRequestPolicyRange
        Nr   )r   r   s     r   r   z#V1CapacityRequestPolicy.valid_rangee   s     (r   c                     | j         S )uZ  Gets the valid_values of this V1CapacityRequestPolicy.  # noqa: E501

        ValidValues defines a set of acceptable quantity values in consuming requests.  Must not contain more than 10 entries. Must be sorted in ascending order.  If this field is set, Default must be defined and it must be included in ValidValues list.  If the requested amount does not match any valid value but smaller than some valid values, the scheduler calculates the smallest valid value that is greater than or equal to the request. That is: min(ceil(requestedValue) ∈ validValues), where requestedValue ≤ max(validValues).  If the requested amount exceeds all valid values, the request violates the policy, and this device cannot be allocated.  # noqa: E501

        :return: The valid_values of this V1CapacityRequestPolicy.  # noqa: E501
        :rtype: list[str]
        r   r   s    r   r   z$V1CapacityRequestPolicy.valid_valuesp   s     !!r   c                     || _         dS )ud  Sets the valid_values of this V1CapacityRequestPolicy.

        ValidValues defines a set of acceptable quantity values in consuming requests.  Must not contain more than 10 entries. Must be sorted in ascending order.  If this field is set, Default must be defined and it must be included in ValidValues list.  If the requested amount does not match any valid value but smaller than some valid values, the scheduler calculates the smallest valid value that is greater than or equal to the request. That is: min(ceil(requestedValue) ∈ validValues), where requestedValue ≤ max(validValues).  If the requested amount exceeds all valid values, the request violates the policy, and this device cannot be allocated.  # noqa: E501

        :param valid_values: The valid_values of this V1CapacityRequestPolicy.  # noqa: E501
        :type valid_values: list[str]
        Nr"   )r   r   s     r   r   z$V1CapacityRequestPolicy.valid_values{   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   convertz0V1CapacityRequestPolicy.to_dict.<locals>.convert   s[    q)$$ %ai005t99>>99;;&99Y///r   c                      |           S )N )r+   r-   s    r   <lambda>z1V1CapacityRequestPolicy.to_dict.<locals>.<lambda>   s    ggajj r   c                 6    | d          | d                   fS )Nr   r'   r/   )itemr-   s    r   r0   z1V1CapacityRequestPolicy.to_dict.<locals>.<lambda>   s    $q'7747+;+;!< r   )six	iteritemsopenapi_typesgetattrattribute_mapget
isinstancelistmapdictitems)r   r,   resultattr_valuer-   s    `    @r   r&   zV1CapacityRequestPolicy.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pformatr&   r   s    r   to_strzV1CapacityRequestPolicy.to_str   s    ~dllnn---r   c                 *    |                                  S )zFor `print` and `pprint`)rE   r   s    r   __repr__z V1CapacityRequestPolicy.__repr__   s    {{}}r   c                     t          |t                    sdS |                                 |                                k    S )z&Returns true if both objects are equalFr9   r   r&   r   others     r   __eq__zV1CapacityRequestPolicy.__eq__   s5    %!89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V1CapacityRequestPolicy.__ne__   s5    %!899 	4||~~00r   )NNNN)F)__name__
__module____qualname____doc__r5   r7   r   propertyr
   setterr   r   r&   rE   rG   rL   rN   r/   r   r   r   r      sb         5# M #% M- - - -$   X ^	  	  ^	  ! ! X! ( ( ( " " X" 	* 	* 	*   @. . .  1 1 11 1 1 1 1r   r   )rR   inspectr   ImportErrorr   rC   rer3   kubernetes.client.configurationr   objectr   r/   r   r   <module>rZ      s    5&&&&&&& 5 5 5444444445  				 



 9 9 9 9 9 9c1 c1 c1 c1 c1f c1 c1 c1 c1 c1s    