
    Ig}                     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.31
    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	)V1alpha3AllocationResultzNOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    strV1alpha3DeviceAllocationResultV1NodeSelector)
controllerdevicesnode_selectorr	   r
   nodeSelectorNc                     |
t               }|| _        d| _        d| _        d| _        d| _        ||| _        ||| _        ||| _        yy)z5V1alpha3AllocationResult - a model defined in OpenAPIN)	r   local_vars_configuration_controller_devices_node_selectordiscriminatorr	   r
   r   )selfr	   r
   r   r   s        p/var/www/html/answerous/venv/lib/python3.12/site-packages/kubernetes/client/models/v1alpha3_allocation_result.py__init__z!V1alpha3AllocationResult.__init__/   sd    #+'4$(@%"!!(DO"DL$!.D %    c                     | j                   S )a  Gets the controller of this V1alpha3AllocationResult.  # noqa: E501

        Controller is the name of the DRA driver which handled the allocation. That driver is also responsible for deallocating the claim. It is empty when the claim can be deallocated without involving a driver.  A driver may allocate devices provided by other drivers, so this driver name here can be different from the driver names listed for the results.  This is an alpha field and requires enabling the DRAControlPlaneController feature gate.  # noqa: E501

        :return: The controller of this V1alpha3AllocationResult.  # noqa: E501
        :rtype: str
        r   r   s    r   r	   z#V1alpha3AllocationResult.controllerA   s     r   c                     || _         y)a|  Sets the controller of this V1alpha3AllocationResult.

        Controller is the name of the DRA driver which handled the allocation. That driver is also responsible for deallocating the claim. It is empty when the claim can be deallocated without involving a driver.  A driver may allocate devices provided by other drivers, so this driver name here can be different from the driver names listed for the results.  This is an alpha field and requires enabling the DRAControlPlaneController feature gate.  # noqa: E501

        :param controller: The controller of this V1alpha3AllocationResult.  # noqa: E501
        :type: str
        Nr   )r   r	   s     r   r	   z#V1alpha3AllocationResult.controllerL   s     &r   c                     | j                   S )zGets the devices of this V1alpha3AllocationResult.  # noqa: E501


        :return: The devices of this V1alpha3AllocationResult.  # noqa: E501
        :rtype: V1alpha3DeviceAllocationResult
        r   r   s    r   r
   z V1alpha3AllocationResult.devicesX   s     }}r   c                     || _         y)zSets the devices of this V1alpha3AllocationResult.


        :param devices: The devices of this V1alpha3AllocationResult.  # noqa: E501
        :type: V1alpha3DeviceAllocationResult
        Nr   )r   r
   s     r   r
   z V1alpha3AllocationResult.devicesb   s      r   c                     | j                   S )zGets the node_selector of this V1alpha3AllocationResult.  # noqa: E501


        :return: The node_selector of this V1alpha3AllocationResult.  # noqa: E501
        :rtype: V1NodeSelector
        r   r   s    r   r   z&V1alpha3AllocationResult.node_selectorm   s     """r   c                     || _         y)zSets the node_selector of this V1alpha3AllocationResult.


        :param node_selector: The node_selector of this V1alpha3AllocationResult.  # noqa: E501
        :type: V1NodeSelector
        Nr   )r   r   s     r   r   z&V1alpha3AllocationResult.node_selectorw   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>z2V1alpha3AllocationResult.to_dict.<locals>.<lambda>   s    WQ	-Baiik  r   r#   c                 T    t        | d   d      r| d   | d   j                         fS | S )N   r#   r   r$   )items    r   r'   z2V1alpha3AllocationResult.to_dict.<locals>.<lambda>   s3    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 V1alpha3AllocationResult.to_dict   s    }}T%7%78 	%GD!D$'E%&#CI%  t 	*$}}tE4(#C=KKM%  t  %t!	%$ r   c                 H    t        j                  | j                               S )z.Returns the string representation of the model)pprintpformatr#   r   s    r   to_strzV1alpha3AllocationResult.to_str   s    ~~dlln--r   c                 "    | j                         S )zFor `print` and `pprint`)r;   r   s    r   __repr__z!V1alpha3AllocationResult.__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V1alpha3AllocationResult.__eq__   s'    %!9:||~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V1alpha3AllocationResult.__ne__   s'    %!9:||~00r   )NNNN)__name__
__module____qualname____doc__r-   attribute_mapr   propertyr	   setterr
   r   r#   r;   r=   rB   rD    r   r   r   r      s     3)M #'M/$     	& 	&   ^^    # # , ,0.11r   r   )rH   r9   rer+   kubernetes.client.configurationr   objectr   rL   r   r   <module>rP      s&     	 
 9Y1v Y1r   