
    <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.32
    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
)V1CSINodeDriverzNOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    V1VolumeNodeResourcesstrz	list[str])allocatablenamenode_idtopology_keysr   r	   nodeIDtopologyKeysNc                     |
t               }|| _        d| _        d| _        d| _        d| _        d| _        ||| _        || _        || _	        ||| _
        yy)z,V1CSINodeDriver - a model defined in OpenAPIN)r   local_vars_configuration_allocatable_name_node_id_topology_keysdiscriminatorr   r	   r
   r   )selfr   r	   r
   r   r   s         `/var/www/openai/venv/lib/python3.12/site-packages/kubernetes/client/models/v1_csi_node_driver.py__init__zV1CSINodeDriver.__init__1   sm    #+'4$(@% 
"!"*D	$!.D %    c                     | j                   S )zGets the allocatable of this V1CSINodeDriver.  # noqa: E501


        :return: The allocatable of this V1CSINodeDriver.  # noqa: E501
        :rtype: V1VolumeNodeResources
        r   r   s    r   r   zV1CSINodeDriver.allocatableD   s        r   c                     || _         y)zSets the allocatable of this V1CSINodeDriver.


        :param allocatable: The allocatable of this V1CSINodeDriver.  # noqa: E501
        :type: V1VolumeNodeResources
        Nr   )r   r   s     r   r   zV1CSINodeDriver.allocatableN   s     (r   c                     | j                   S )aF  Gets the name of this V1CSINodeDriver.  # noqa: E501

        name represents the name of the CSI driver that this object refers to. This MUST be the same name returned by the CSI GetPluginName() call for that driver.  # noqa: E501

        :return: The name of this V1CSINodeDriver.  # noqa: E501
        :rtype: str
        )r   r   s    r   r	   zV1CSINodeDriver.nameY   s     zzr   c                 X    | j                   j                  r|t        d      || _        y)a;  Sets the name of this V1CSINodeDriver.

        name represents the name of the CSI driver that this object refers to. This MUST be the same name returned by the CSI GetPluginName() call for that driver.  # noqa: E501

        :param name: The name of this V1CSINodeDriver.  # noqa: E501
        :type: str
        Nz,Invalid value for `name`, must not be `None`)r   client_side_validation
ValueErrorr   )r   r	   s     r   r	   zV1CSINodeDriver.named   s*     ((??DLKLL
r   c                     | j                   S )a  Gets the node_id of this V1CSINodeDriver.  # noqa: E501

        nodeID of the node from the driver point of view. This field enables Kubernetes to communicate with storage systems that do not share the same nomenclature for nodes. For example, Kubernetes may refer to a given node as "node1", but the storage system may refer to the same node as "nodeA". When Kubernetes issues a command to the storage system to attach a volume to a specific node, it can use this field to refer to the node name using the ID that the storage system will understand, e.g. "nodeA" instead of "node1". This field is required.  # noqa: E501

        :return: The node_id of this V1CSINodeDriver.  # noqa: E501
        :rtype: str
        )r   r   s    r   r
   zV1CSINodeDriver.node_idr   s     }}r   c                 X    | j                   j                  r|t        d      || _        y)a  Sets the node_id of this V1CSINodeDriver.

        nodeID of the node from the driver point of view. This field enables Kubernetes to communicate with storage systems that do not share the same nomenclature for nodes. For example, Kubernetes may refer to a given node as "node1", but the storage system may refer to the same node as "nodeA". When Kubernetes issues a command to the storage system to attach a volume to a specific node, it can use this field to refer to the node name using the ID that the storage system will understand, e.g. "nodeA" instead of "node1". This field is required.  # noqa: E501

        :param node_id: The node_id of this V1CSINodeDriver.  # noqa: E501
        :type: str
        Nz/Invalid value for `node_id`, must not be `None`)r   r   r    r   )r   r
   s     r   r
   zV1CSINodeDriver.node_id}   s*     ((??GONOOr   c                     | j                   S )aW  Gets the topology_keys of this V1CSINodeDriver.  # noqa: E501

        topologyKeys is the list of keys supported by the driver. When a driver is initialized on a cluster, it provides a set of topology keys that it understands (e.g. "company.com/zone", "company.com/region"). When a driver is initialized on a node, it provides the same topology keys along with values. Kubelet will expose these topology keys as labels on its own node object. When Kubernetes does topology aware provisioning, it can use this list to determine which labels it should retrieve from the node object and pass back to the driver. It is possible for different nodes to use different topology keys. This can be empty if driver does not support topology.  # noqa: E501

        :return: The topology_keys of this V1CSINodeDriver.  # noqa: E501
        :rtype: list[str]
        r   r   s    r   r   zV1CSINodeDriver.topology_keys   s     """r   c                     || _         y)aU  Sets the topology_keys of this V1CSINodeDriver.

        topologyKeys is the list of keys supported by the driver. When a driver is initialized on a cluster, it provides a set of topology keys that it understands (e.g. "company.com/zone", "company.com/region"). When a driver is initialized on a node, it provides the same topology keys along with values. Kubelet will expose these topology keys as labels on its own node object. When Kubernetes does topology aware provisioning, it can use this list to determine which labels it should retrieve from the node object and pass back to the driver. It is possible for different nodes to use different topology keys. This can be empty if driver does not support topology.  # noqa: E501

        :param topology_keys: The topology_keys of this V1CSINodeDriver.  # noqa: E501
        :type: list[str]
        Nr$   )r   r   s     r   r   zV1CSINodeDriver.topology_keys   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>z)V1CSINodeDriver.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,   z)V1CSINodeDriver.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V1CSINodeDriver.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V1CSINodeDriver.to_str   s    ~~dlln--r   c                 "    | j                         S )zFor `print` and `pprint`)r@   r   s    r   __repr__zV1CSINodeDriver.__repr__   s    {{}r   c                 f    t        |t              sy| j                         |j                         k(  S )z&Returns true if both objects are equalFr4   r   r(   r   others     r   __eq__zV1CSINodeDriver.__eq__   s&    %1||~00r   c                 f    t        |t              sy| j                         |j                         k7  S )z*Returns true if both objects are not equalTrD   rE   s     r   __ne__zV1CSINodeDriver.__ne__   s&    %1||~00r   )NNNNN)__name__
__module____qualname____doc__r2   attribute_mapr   propertyr   setterr	   r
   r   r(   r@   rB   rG   rI    r   r   r   r      s    /$	M %'	M/& ! ! ( (   
[[    ^^    # # 	, 	,0.11r   r   )rM   r>   rer0   kubernetes.client.configurationr   objectr   rQ   r   r   <module>rU      s&     	 
 9y1f y1r   