
    6                     >    d Z ddlmZ ddlmZ ddlZ G d de      Zy)z
    Kubernetes

    No description provided (generated by Swagger Codegen
    https://github.com/swagger-api/swagger-codegen)

    OpenAPI spec version: v1.14.4

    Generated by: https://github.com/swagger-api/swagger-codegen.git
    )pformat)	iteritemsNc                       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)V1beta1CSINodeDriverzw
    NOTE: This class is auto generated by the swagger code generator program.
    Do not edit the class manually.
    strz	list[str])namenode_idtopology_keysr   nodeIDtopologyKeysNc                 l    d| _         d| _        d| _        d| _        || _        || _        ||| _        yy)zC
        V1beta1CSINodeDriver - a model defined in Swagger
        N)_name_node_id_topology_keysdiscriminatorr   r	   r
   )selfr   r	   r
   s       Clib/third_party/kubernetes/client/models/v1beta1_csi_node_driver.py__init__zV1beta1CSINodeDriver.__init__*   sC    
 DJDMDDDIDL (d !    c                     | j                   S )a6  
        Gets the name of this V1beta1CSINodeDriver.
        This is 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.

        :return: The name of this V1beta1CSINodeDriver.
        :rtype: str
        )r   r   s    r   r   zV1beta1CSINodeDriver.name9   s     ::r   c                 ,    |t        d      || _        y)a9  
        Sets the name of this V1beta1CSINodeDriver.
        This is 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.

        :param name: The name of this V1beta1CSINodeDriver.
        :type: str
        Nz,Invalid value for `name`, must not be `None`)
ValueErrorr   )r   r   s     r   r   zV1beta1CSINodeDriver.nameF   s     |EFFDJr   c                     | j                   S )a  
        Gets the node_id of this V1beta1CSINodeDriver.
        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.

        :return: The node_id of this V1beta1CSINodeDriver.
        :rtype: str
        )r   r   s    r   r	   zV1beta1CSINodeDriver.node_idV   s      ==r   c                 ,    |t        d      || _        y)a  
        Sets the node_id of this V1beta1CSINodeDriver.
        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.

        :param node_id: The node_id of this V1beta1CSINodeDriver.
        :type: str
        Nz/Invalid value for `node_id`, must not be `None`)r   r   )r   r	   s     r   r	   zV1beta1CSINodeDriver.node_idh   s      HIIDMr   c                     | j                   S )a  
        Gets the topology_keys of this V1beta1CSINodeDriver.
        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.

        :return: The topology_keys of this V1beta1CSINodeDriver.
        :rtype: list[str]
        r   r   s    r   r
   z"V1beta1CSINodeDriver.topology_keys}   s    $ r   c                     || _         y)a  
        Sets the topology_keys of this V1beta1CSINodeDriver.
        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.

        :param topology_keys: The topology_keys of this V1beta1CSINodeDriver.
        :type: list[str]
        Nr   )r   r
   s     r   r
   z"V1beta1CSINodeDriver.topology_keys   s    & (Dr   c                 j   i }t        | j                        D ]  \  }}t        | |      }t        |t              rt	        t        d |            ||<   <t        |d      r|j                         ||<   \t        |t              r(t        t        d |j                                     ||<   |||<    |S )z8
        Returns the model properties as a dict
        c                 >    t        | d      r| j                         S | S )Nto_dicthasattrr!   )xs    r   <lambda>z.V1beta1CSINodeDriver.to_dict.<locals>.<lambda>   s    I)>!))+EAEr   r!   c                 T    t        | d   d      r| d   | d   j                         fS | S )N   r!   r   r"   )items    r   r%   z.V1beta1CSINodeDriver.to_dict.<locals>.<lambda>   s6    47I. #1gtAw'89 9489r   )
r   swagger_typesgetattr
isinstancelistmapr#   r!   dictitems)r   resultattr_values        r   r!   zV1beta1CSINodeDriver.to_dict   s     FT//0adD!e	E4	 EuMOt5)$}}teT"9:?++-IJt
 t 1 Mr   c                 4    t        | j                               S )z@
        Returns the string representation of the model
        )r   r!   r   s    r   to_strzV1beta1CSINodeDriver.to_str   s     4<<>""r   c                 "    | j                         S )z*
        For `print` and `pprint`
        )r5   r   s    r   __repr__zV1beta1CSINodeDriver.__repr__   s     ;;=r   c                 V    t        |t              sy| j                  |j                  k(  S )z8
        Returns true if both objects are equal
        F)r+   r   __dict__r   others     r   __eq__zV1beta1CSINodeDriver.__eq__   s%     e12==ENN**r   c                     | |k(   S )z<
        Returns true if both objects are not equal
         r:   s     r   __ne__zV1beta1CSINodeDriver.__ne__   s     u}r   )NNN)__name__
__module____qualname____doc__r)   attribute_mapr   propertyr   setterr	   r
   r!   r5   r7   r<   r?   r>   r   r   r   r      s     "- %-) 
 
 ;;   " >> (  & ( ((.#+r   r   )rC   pprintr   sixr   reobjectr   r>   r   r   <module>rK      s#   	   	D6 Dr   