
                         >    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                   f   e Zd ZdZ	 ddddddZ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d Zd Zd Zd Zd Zy)V1CSIVolumeSourcezw
    NOTE: This class is auto generated by the swagger code generator program.
    Do not edit the class manually.
    strV1LocalObjectReferenceboolzdict(str, str))driverfs_typenode_publish_secret_ref	read_onlyvolume_attributesr
   fsTypenodePublishSecretRefreadOnlyvolumeAttributesNc                     d| _         d| _        d| _        d| _        d| _        d| _        || _        ||| _        ||| _        ||| _	        ||| _
        yy)z@
        V1CSIVolumeSource - a model defined in Swagger
        N)_driver_fs_type_node_publish_secret_ref
_read_only_volume_attributesdiscriminatorr
   r   r   r   r   )selfr
   r   r   r   r   s         @lib/third_party/kubernetes/client/models/v1_csi_volume_source.py__init__zV1CSIVolumeSource.__init__.   ss     DLDM$(D!DO"DDDKdl*%<d" dn$0d %    c                     | j                   S )a"  
        Gets the driver of this V1CSIVolumeSource.
        Driver is the name of the CSI driver that handles this volume. Consult
        with your admin for the correct name as registered in the cluster.

        :return: The driver of this V1CSIVolumeSource.
        :rtype: str
        )r   r   s    r   r
   zV1CSIVolumeSource.driverI   s     <<r   c                 ,    |t        d      || _        y)a'  
        Sets the driver of this V1CSIVolumeSource.
        Driver is the name of the CSI driver that handles this volume. Consult
        with your admin for the correct name as registered in the cluster.

        :param driver: The driver of this V1CSIVolumeSource.
        :type: str
        Nz.Invalid value for `driver`, must not be `None`)
ValueErrorr   )r   r
   s     r   r
   zV1CSIVolumeSource.driverU   s     ~GHHDLr   c                     | j                   S )aU  
        Gets the fs_type of this V1CSIVolumeSource.
        Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not
        provided, the empty value is passed to the associated CSI driver which
        will determine the default filesystem to apply.

        :return: The fs_type of this V1CSIVolumeSource.
        :rtype: str
        r   r   s    r   r   zV1CSIVolumeSource.fs_typed   s     ==r   c                     || _         y)a[  
        Sets the fs_type of this V1CSIVolumeSource.
        Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not
        provided, the empty value is passed to the associated CSI driver which
        will determine the default filesystem to apply.

        :param fs_type: The fs_type of this V1CSIVolumeSource.
        :type: str
        Nr#   )r   r   s     r   r   zV1CSIVolumeSource.fs_typeq   s     DMr   c                     | j                   S )a8  
        Gets the node_publish_secret_ref of this V1CSIVolumeSource.
        NodePublishSecretRef is a reference to the secret object containing
        sensitive information to pass to the CSI driver to complete the CSI
        NodePublishVolume and NodeUnpublishVolume calls. This field is optional,
        and  may be empty if no secret is required. If the secret object
        contains more than one secret, all secret references are passed.

        :return: The node_publish_secret_ref of this V1CSIVolumeSource.
        :rtype: V1LocalObjectReference
        r   r   s    r   r   z)V1CSIVolumeSource.node_publish_secret_ref   s     (((r   c                     || _         y)aV  
        Sets the node_publish_secret_ref of this V1CSIVolumeSource.
        NodePublishSecretRef is a reference to the secret object containing
        sensitive information to pass to the CSI driver to complete the CSI
        NodePublishVolume and NodeUnpublishVolume calls. This field is optional,
        and  may be empty if no secret is required. If the secret object
        contains more than one secret, all secret references are passed.

        :param node_publish_secret_ref: The node_publish_secret_ref of this
        V1CSIVolumeSource.
        :type: V1LocalObjectReference
        Nr&   )r   r   s     r   r   z)V1CSIVolumeSource.node_publish_secret_ref   s     %<D!r   c                     | j                   S )z
        Gets the read_only of this V1CSIVolumeSource.
        Specifies a read-only configuration for the volume. Defaults to false
        (read/write).

        :return: The read_only of this V1CSIVolumeSource.
        :rtype: bool
        r   r   s    r   r   zV1CSIVolumeSource.read_only   s     ??r   c                     || _         y)z
        Sets the read_only of this V1CSIVolumeSource.
        Specifies a read-only configuration for the volume. Defaults to false
        (read/write).

        :param read_only: The read_only of this V1CSIVolumeSource.
        :type: bool
        Nr)   )r   r   s     r   r   zV1CSIVolumeSource.read_only   s      DOr   c                     | j                   S )aQ  
        Gets the volume_attributes of this V1CSIVolumeSource.
        VolumeAttributes stores driver-specific properties that are passed to
        the CSI driver. Consult your driver's documentation for supported
        values.

        :return: The volume_attributes of this V1CSIVolumeSource.
        :rtype: dict(str, str)
        r   r   s    r   r   z#V1CSIVolumeSource.volume_attributes   s     """r   c                     || _         y)ai  
        Sets the volume_attributes of this V1CSIVolumeSource.
        VolumeAttributes stores driver-specific properties that are passed to
        the CSI driver. Consult your driver's documentation for supported
        values.

        :param volume_attributes: The volume_attributes of this
        V1CSIVolumeSource.
        :type: dict(str, str)
        Nr,   )r   r   s     r   r   z#V1CSIVolumeSource.volume_attributes   s     0D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hasattrr0   )xs    r   <lambda>z+V1CSIVolumeSource.to_dict.<locals>.<lambda>   s    I)>!))+EAEr   r0   c                 T    t        | d   d      r| d   | d   j                         fS | S )N   r0   r   r1   )items    r   r4   z+V1CSIVolumeSource.to_dict.<locals>.<lambda>   s6    47I. #1gtAw'89 9489r   )
r   swagger_typesgetattr
isinstancelistmapr2   r0   dictitems)r   resultattr_values        r   r0   zV1CSIVolumeSource.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   r0   r   s    r   to_strzV1CSIVolumeSource.to_str   s     4<<>""r   c                 "    | j                         S )z*
        For `print` and `pprint`
        )rD   r   s    r   __repr__zV1CSIVolumeSource.__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V1CSIVolumeSource.__eq__   s%     e./==ENN**r   c                     | |k(   S )z<
        Returns true if both objects are not equal
         rI   s     r   __ne__zV1CSIVolumeSource.__ne__   s     u}r   )NNNNN)__name__
__module____qualname____doc__r8   attribute_mapr   propertyr
   setterr   r   r   r   r0   rD   rF   rK   rN   rM   r   r   r   r      sM    !9+- !7-- '+!%16 	 	 
==  
 
 >>  ) ) !!< "<  	 	 
  
  
# 
# 0 0.#+r   r   )rR   pprintr   sixr   reobjectr   rM   r   r   <module>rZ      s#   	   	r rr   