
    >go%                     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.32
    Generated by: https://openapi-generator.tech
    N)Configurationc                      e Zd ZdZ	 dddddddZ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d Zd Zd Zd Zd Zy)!V1alpha3AllocatedDeviceStatuszNOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    zlist[V1Condition]objectstrV1alpha3NetworkDeviceData)
conditionsdatadevicedrivernetwork_datapoolr	   r
   r   r   networkDatar   Nc                     |
t               }|| _        d| _        d| _        d| _        d| _        d| _        d| _        d| _        ||| _	        ||| _
        || _        || _        ||| _        || _        y)z:V1alpha3AllocatedDeviceStatus - a model defined in OpenAPIN)r   local_vars_configuration_conditions_data_device_driver_network_data_pooldiscriminatorr	   r
   r   r   r   r   )selfr	   r
   r   r   r   r   r   s           n/var/www/openai/venv/lib/python3.12/site-packages/kubernetes/client/models/v1alpha3_allocated_device_status.py__init__z&V1alpha3AllocatedDeviceStatus.__init__5   s    #+'4$(@%
!
!!(DODI# ,D	    c                     | j                   S )a  Gets the conditions of this V1alpha3AllocatedDeviceStatus.  # noqa: E501

        Conditions contains the latest observation of the device's state. If the device has been configured according to the class and claim config references, the `Ready` condition should be True.  # noqa: E501

        :return: The conditions of this V1alpha3AllocatedDeviceStatus.  # noqa: E501
        :rtype: list[V1Condition]
        r   r   s    r   r	   z(V1alpha3AllocatedDeviceStatus.conditionsM   s     r   c                     || _         y)a  Sets the conditions of this V1alpha3AllocatedDeviceStatus.

        Conditions contains the latest observation of the device's state. If the device has been configured according to the class and claim config references, the `Ready` condition should be True.  # noqa: E501

        :param conditions: The conditions of this V1alpha3AllocatedDeviceStatus.  # noqa: E501
        :type: list[V1Condition]
        Nr   )r   r	   s     r   r	   z(V1alpha3AllocatedDeviceStatus.conditionsX   s     &r   c                     | j                   S )a6  Gets the data of this V1alpha3AllocatedDeviceStatus.  # noqa: E501

        Data contains arbitrary driver-specific data.  The length of the raw data must be smaller or equal to 10 Ki.  # noqa: E501

        :return: The data of this V1alpha3AllocatedDeviceStatus.  # noqa: E501
        :rtype: object
        r   r   s    r   r
   z"V1alpha3AllocatedDeviceStatus.datad        zzr   c                     || _         y)a+  Sets the data of this V1alpha3AllocatedDeviceStatus.

        Data contains arbitrary driver-specific data.  The length of the raw data must be smaller or equal to 10 Ki.  # noqa: E501

        :param data: The data of this V1alpha3AllocatedDeviceStatus.  # noqa: E501
        :type: object
        Nr"   )r   r
   s     r   r
   z"V1alpha3AllocatedDeviceStatus.datao   s     
r   c                     | j                   S )a4  Gets the device of this V1alpha3AllocatedDeviceStatus.  # noqa: E501

        Device references one device instance via its name in the driver's resource pool. It must be a DNS label.  # noqa: E501

        :return: The device of this V1alpha3AllocatedDeviceStatus.  # noqa: E501
        :rtype: str
        )r   r   s    r   r   z$V1alpha3AllocatedDeviceStatus.device{        ||r   c                 X    | j                   j                  r|t        d      || _        y)a+  Sets the device of this V1alpha3AllocatedDeviceStatus.

        Device references one device instance via its name in the driver's resource pool. It must be a DNS label.  # noqa: E501

        :param device: The device of this V1alpha3AllocatedDeviceStatus.  # noqa: E501
        :type: str
        Nz.Invalid value for `device`, must not be `None`)r   client_side_validation
ValueErrorr   )r   r   s     r   r   z$V1alpha3AllocatedDeviceStatus.device   *     ((??FNMNNr   c                     | j                   S )a  Gets the driver of this V1alpha3AllocatedDeviceStatus.  # noqa: E501

        Driver specifies the name of the DRA driver whose kubelet plugin should be invoked to process the allocation once the claim is needed on a node.  Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.  # noqa: E501

        :return: The driver of this V1alpha3AllocatedDeviceStatus.  # noqa: E501
        :rtype: str
        )r   r   s    r   r   z$V1alpha3AllocatedDeviceStatus.driver   r&   r   c                 X    | j                   j                  r|t        d      || _        y)a  Sets the driver of this V1alpha3AllocatedDeviceStatus.

        Driver specifies the name of the DRA driver whose kubelet plugin should be invoked to process the allocation once the claim is needed on a node.  Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.  # noqa: E501

        :param driver: The driver of this V1alpha3AllocatedDeviceStatus.  # noqa: E501
        :type: str
        Nz.Invalid value for `driver`, must not be `None`)r   r(   r)   r   )r   r   s     r   r   z$V1alpha3AllocatedDeviceStatus.driver   r*   r   c                     | j                   S )zGets the network_data of this V1alpha3AllocatedDeviceStatus.  # noqa: E501


        :return: The network_data of this V1alpha3AllocatedDeviceStatus.  # noqa: E501
        :rtype: V1alpha3NetworkDeviceData
        r   r   s    r   r   z*V1alpha3AllocatedDeviceStatus.network_data   s     !!!r   c                     || _         y)zSets the network_data of this V1alpha3AllocatedDeviceStatus.


        :param network_data: The network_data of this V1alpha3AllocatedDeviceStatus.  # noqa: E501
        :type: V1alpha3NetworkDeviceData
        Nr.   )r   r   s     r   r   z*V1alpha3AllocatedDeviceStatus.network_data   s     *r   c                     | j                   S )a  Gets the pool of this V1alpha3AllocatedDeviceStatus.  # noqa: E501

        This name together with the driver name and the device name field identify which device was allocated (`<driver name>/<pool name>/<device name>`).  Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes.  # noqa: E501

        :return: The pool of this V1alpha3AllocatedDeviceStatus.  # noqa: E501
        :rtype: str
        )r   r   s    r   r   z"V1alpha3AllocatedDeviceStatus.pool   r#   r   c                 X    | j                   j                  r|t        d      || _        y)a  Sets the pool of this V1alpha3AllocatedDeviceStatus.

        This name together with the driver name and the device name field identify which device was allocated (`<driver name>/<pool name>/<device name>`).  Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes.  # noqa: E501

        :param pool: The pool of this V1alpha3AllocatedDeviceStatus.  # noqa: E501
        :type: str
        Nz,Invalid value for `pool`, must not be `None`)r   r(   r)   r   )r   r   s     r   r   z"V1alpha3AllocatedDeviceStatus.pool   s*     ((??DLKLL
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hasattrr4   )xs    r   <lambda>z7V1alpha3AllocatedDeviceStatus.to_dict.<locals>.<lambda>   s    WQ	-BaiikIIr   r4   c                 T    t        | d   d      r| d   | d   j                         fS | S )N   r4   r   r5   )items    r   r8   z7V1alpha3AllocatedDeviceStatus.to_dict.<locals>.<lambda>   s6    tAw	2 #'q'47??+<!= "=8<"=r   )six	iteritemsopenapi_typesgetattr
isinstancelistmapr6   r4   dictitems)r   resultattr_values        r   r4   z%V1alpha3AllocatedDeviceStatus.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pformatr4   r   s    r   to_strz$V1alpha3AllocatedDeviceStatus.to_str   s    ~~dlln--r   c                 "    | j                         S )zFor `print` and `pprint`)rL   r   s    r   __repr__z&V1alpha3AllocatedDeviceStatus.__repr__   s    {{}r   c                 f    t        |t              sy| j                         |j                         k(  S )z&Returns true if both objects are equalFr@   r   r4   r   others     r   __eq__z$V1alpha3AllocatedDeviceStatus.__eq__   s'    %!>?||~00r   c                 f    t        |t              sy| j                         |j                         k7  S )z*Returns true if both objects are not equalTrP   rQ   s     r   __ne__z$V1alpha3AllocatedDeviceStatus.__ne__  s'    %!>?||~00r   )NNNNNNN)__name__
__module____qualname____doc__r>   attribute_mapr   propertyr	   setterr
   r   r   r   r   r4   rL   rN   rS   rU    r   r   r   r      sl    *3M #%M0     	& 	&   
[[	 	   ]]    ]]  " " * *   
[[ 0.11r   r   )rY   rJ   rer<   kubernetes.client.configurationr   r   r   r]   r   r   <module>r`      s&     	 
 9r1F r1r   