
                         >    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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
)V1CinderVolumeSourcezw
    NOTE: This class is auto generated by the swagger code generator program.
    Do not edit the class manually.
    strboolV1LocalObjectReference)fs_type	read_only
secret_ref	volume_idfsTypereadOnly	secretRefvolumeIDNc                     d| _         d| _        d| _        d| _        d| _        ||| _        ||| _        ||| _        || _        y)zC
        V1CinderVolumeSource - a model defined in Swagger
        N)	_fs_type
_read_only_secret_ref
_volume_iddiscriminatorr
   r   r   r   )selfr
   r   r   r   s        Clib/third_party/kubernetes/client/models/v1_cinder_volume_source.py__init__zV1CinderVolumeSource.__init__,   sW     DMDODDODdl dn"doDN    c                     | j                   S )a  
        Gets the fs_type of this V1CinderVolumeSource.
        Filesystem type to mount. Must be a filesystem type supported by the
        host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly
        inferred to be "ext4" if unspecified. More info:
        https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md

        :return: The fs_type of this V1CinderVolumeSource.
        :rtype: str
        r   r   s    r   r
   zV1CinderVolumeSource.fs_typeC   s     ==r   c                     || _         y)a  
        Sets the fs_type of this V1CinderVolumeSource.
        Filesystem type to mount. Must be a filesystem type supported by the
        host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly
        inferred to be "ext4" if unspecified. More info:
        https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md

        :param fs_type: The fs_type of this V1CinderVolumeSource.
        :type: str
        Nr   )r   r
   s     r   r
   zV1CinderVolumeSource.fs_typeQ   s     DMr   c                     | j                   S )aa  
        Gets the read_only of this V1CinderVolumeSource.
        Optional: Defaults to false (read/write). ReadOnly here will force the
        ReadOnly setting in VolumeMounts. More info:
        https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md

        :return: The read_only of this V1CinderVolumeSource.
        :rtype: bool
        r   r   s    r   r   zV1CinderVolumeSource.read_only`   s     ??r   c                     || _         y)ai  
        Sets the read_only of this V1CinderVolumeSource.
        Optional: Defaults to false (read/write). ReadOnly here will force the
        ReadOnly setting in VolumeMounts. More info:
        https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md

        :param read_only: The read_only of this V1CinderVolumeSource.
        :type: bool
        Nr!   )r   r   s     r   r   zV1CinderVolumeSource.read_onlym   s      DOr   c                     | j                   S )a  
        Gets the secret_ref of this V1CinderVolumeSource.
        Optional: points to a secret object containing parameters used to
        connect to OpenStack.

        :return: The secret_ref of this V1CinderVolumeSource.
        :rtype: V1LocalObjectReference
        r   r   s    r   r   zV1CinderVolumeSource.secret_ref{   s     r   c                     || _         y)a  
        Sets the secret_ref of this V1CinderVolumeSource.
        Optional: points to a secret object containing parameters used to
        connect to OpenStack.

        :param secret_ref: The secret_ref of this V1CinderVolumeSource.
        :type: V1LocalObjectReference
        Nr$   )r   r   s     r   r   zV1CinderVolumeSource.secret_ref   s     "Dr   c                     | j                   S )a  
        Gets the volume_id of this V1CinderVolumeSource.
        volume id used to identify the volume in cinder More info:
        https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md

        :return: The volume_id of this V1CinderVolumeSource.
        :rtype: str
        )r   r   s    r   r   zV1CinderVolumeSource.volume_id   s     ??r   c                 ,    |t        d      || _        y)a'  
        Sets the volume_id of this V1CinderVolumeSource.
        volume id used to identify the volume in cinder More info:
        https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md

        :param volume_id: The volume_id of this V1CinderVolumeSource.
        :type: str
        Nz1Invalid value for `volume_id`, must not be `None`)
ValueErrorr   )r   r   s     r   r   zV1CinderVolumeSource.volume_id   s     JKKDOr   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.V1CinderVolumeSource.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.V1CinderVolumeSource.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V1CinderVolumeSource.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V1CinderVolumeSource.to_str   s     4<<>""r   c                 "    | j                         S )z*
        For `print` and `pprint`
        )r?   r   s    r   __repr__zV1CinderVolumeSource.__repr__   s     ;;=r   c                 V    t        |t              sy| j                  |j                  k(  S )z8
        Returns true if both objects are equal
        F)r5   r   __dict__r   others     r   __eq__zV1CinderVolumeSource.__eq__   s%     e12==ENN**r   c                     | |k(   S )z<
        Returns true if both objects are not equal
         rD   s     r   __ne__zV1CinderVolumeSource.__ne__   s     u}r   )NNNN)__name__
__module____qualname____doc__r3   attribute_mapr   propertyr
   setterr   r   r   r+   r?   rA   rF   rI   rH   r   r   r   r      s    ,	- 	- 	.   >>  
 
     	 	 
" 
" 	 	    .#+r   r   )rM   pprintr   sixr   reobjectr   rH   r   r   <module>rU      s#   	   	M6 Mr   