
    >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.30
    Generated by: https://openapi-generator.tech
    N)Configurationc                   $   e Zd ZdZ	 dddddZ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d Zd Zd Zd Zd Zy)V1alpha2ResourceClaimStatuszNOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    V1alpha2AllocationResultboolstrz,list[V1alpha2ResourceClaimConsumerReference])
allocationdeallocation_requesteddriver_namereserved_forr	   deallocationRequested
driverNamereservedForNc                     |
t               }|| _        d| _        d| _        d| _        d| _        d| _        ||| _        ||| _        ||| _	        ||| _
        yy)z8V1alpha2ResourceClaimStatus - a model defined in OpenAPIN)r   local_vars_configuration_allocation_deallocation_requested_driver_name_reserved_fordiscriminatorr	   r
   r   r   )selfr	   r
   r   r   r   s         l/var/www/openai/venv/lib/python3.12/site-packages/kubernetes/client/models/v1alpha2_resource_claim_status.py__init__z$V1alpha2ResourceClaimStatus.__init__1   s|    #+'4$(@%'+$ !!!(DO!-*@D'"*D# ,D $    c                     | j                   S )zGets the allocation of this V1alpha2ResourceClaimStatus.  # noqa: E501


        :return: The allocation of this V1alpha2ResourceClaimStatus.  # noqa: E501
        :rtype: V1alpha2AllocationResult
        r   r   s    r   r	   z&V1alpha2ResourceClaimStatus.allocationF   s     r   c                     || _         y)zSets the allocation of this V1alpha2ResourceClaimStatus.


        :param allocation: The allocation of this V1alpha2ResourceClaimStatus.  # noqa: E501
        :type: V1alpha2AllocationResult
        Nr   )r   r	   s     r   r	   z&V1alpha2ResourceClaimStatus.allocationP   s     &r   c                     | j                   S )a  Gets the deallocation_requested of this V1alpha2ResourceClaimStatus.  # noqa: E501

        DeallocationRequested indicates that a ResourceClaim is to be deallocated.  The driver then must deallocate this claim and reset the field together with clearing the Allocation field.  While DeallocationRequested is set, no new consumers may be added to ReservedFor.  # noqa: E501

        :return: The deallocation_requested of this V1alpha2ResourceClaimStatus.  # noqa: E501
        :rtype: bool
        r   r   s    r   r
   z2V1alpha2ResourceClaimStatus.deallocation_requested[   s     +++r   c                     || _         y)a  Sets the deallocation_requested of this V1alpha2ResourceClaimStatus.

        DeallocationRequested indicates that a ResourceClaim is to be deallocated.  The driver then must deallocate this claim and reset the field together with clearing the Allocation field.  While DeallocationRequested is set, no new consumers may be added to ReservedFor.  # noqa: E501

        :param deallocation_requested: The deallocation_requested of this V1alpha2ResourceClaimStatus.  # noqa: E501
        :type: bool
        Nr    )r   r
   s     r   r
   z2V1alpha2ResourceClaimStatus.deallocation_requestedf   s     (>$r   c                     | j                   S )a4  Gets the driver_name of this V1alpha2ResourceClaimStatus.  # noqa: E501

        DriverName is a copy of the driver name from the ResourceClass at the time when allocation started.  # noqa: E501

        :return: The driver_name of this V1alpha2ResourceClaimStatus.  # noqa: E501
        :rtype: str
        r   r   s    r   r   z'V1alpha2ResourceClaimStatus.driver_namer   s        r   c                     || _         y)a0  Sets the driver_name of this V1alpha2ResourceClaimStatus.

        DriverName is a copy of the driver name from the ResourceClass at the time when allocation started.  # noqa: E501

        :param driver_name: The driver_name of this V1alpha2ResourceClaimStatus.  # noqa: E501
        :type: str
        Nr#   )r   r   s     r   r   z'V1alpha2ResourceClaimStatus.driver_name}   s     (r   c                     | j                   S )a
  Gets the reserved_for of this V1alpha2ResourceClaimStatus.  # noqa: E501

        ReservedFor indicates which entities are currently allowed to use the claim. A Pod which references a ResourceClaim which is not reserved for that Pod will not be started.  There can be at most 32 such reservations. This may get increased in the future, but not reduced.  # noqa: E501

        :return: The reserved_for of this V1alpha2ResourceClaimStatus.  # noqa: E501
        :rtype: list[V1alpha2ResourceClaimConsumerReference]
        r   r   s    r   r   z(V1alpha2ResourceClaimStatus.reserved_for   s     !!!r   c                     || _         y)a  Sets the reserved_for of this V1alpha2ResourceClaimStatus.

        ReservedFor indicates which entities are currently allowed to use the claim. A Pod which references a ResourceClaim which is not reserved for that Pod will not be started.  There can be at most 32 such reservations. This may get increased in the future, but not reduced.  # noqa: E501

        :param reserved_for: The reserved_for of this V1alpha2ResourceClaimStatus.  # noqa: E501
        :type: list[V1alpha2ResourceClaimConsumerReference]
        Nr&   )r   r   s     r   r   z(V1alpha2ResourceClaimStatus.reserved_for   s     *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>z5V1alpha2ResourceClaimStatus.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.   z5V1alpha2ResourceClaimStatus.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#V1alpha2ResourceClaimStatus.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"V1alpha2ResourceClaimStatus.to_str   s    ~~dlln--r   c                 "    | j                         S )zFor `print` and `pprint`)rB   r   s    r   __repr__z$V1alpha2ResourceClaimStatus.__repr__   s    {{}r   c                 f    t        |t              sy| j                         |j                         k(  S )z&Returns true if both objects are equalFr6   r   r*   r   others     r   __eq__z"V1alpha2ResourceClaimStatus.__eq__   s'    %!<=||~00r   c                 f    t        |t              sy| j                         |j                         k7  S )z*Returns true if both objects are not equalTrF   rG   s     r   __ne__z"V1alpha2ResourceClaimStatus.__ne__   s'    %!<=||~00r   )NNNNN)__name__
__module____qualname____doc__r4   attribute_mapr   propertyr	   setterr
   r   r   r*   rB   rD   rI   rK    r   r   r   r      s    1"(F	M #"9#%	M-*     & & , , ""	> #	> ! ! 	( 	( " " 	* 	*0.11r   r   )rO   r@   rer2   kubernetes.client.configurationr   objectr   rS   r   r   <module>rW      s&     	 
 9w1& w1r   