
                         >    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)V1FlexVolumeSourcezw
    NOTE: This class is auto generated by the swagger code generator program.
    Do not edit the class manually.
    strzdict(str, str)boolV1LocalObjectReference)driverfs_typeoptions	read_only
secret_refr
   fsTyper   readOnly	secretRefNc                     d| _         d| _        d| _        d| _        d| _        d| _        || _        ||| _        ||| _        ||| _	        ||| _
        yy)zA
        V1FlexVolumeSource - a model defined in Swagger
        N)_driver_fs_type_options
_read_only_secret_refdiscriminatorr
   r   r   r   r   )selfr
   r   r   r   r   s         Alib/third_party/kubernetes/client/models/v1_flex_volume_source.py__init__zV1FlexVolumeSource.__init__.   sp     DLDMDMDODDDKdldl dn"do     c                     | j                   S )z
        Gets the driver of this V1FlexVolumeSource.
        Driver is the name of the driver to use for this volume.

        :return: The driver of this V1FlexVolumeSource.
        :rtype: str
        )r   r   s    r   r
   zV1FlexVolumeSource.driverI   s     <<r   c                 ,    |t        d      || _        y)z
        Sets the driver of this V1FlexVolumeSource.
        Driver is the name of the driver to use for this volume.

        :param driver: The driver of this V1FlexVolumeSource.
        :type: str
        Nz.Invalid value for `driver`, must not be `None`)
ValueErrorr   )r   r
   s     r   r
   zV1FlexVolumeSource.driverT   s     ~GHHDLr   c                     | j                   S )aP  
        Gets the fs_type of this V1FlexVolumeSource.
        Filesystem type to mount. Must be a filesystem type supported by the
        host operating system. Ex. "ext4", "xfs", "ntfs". The default
        filesystem depends on FlexVolume script.

        :return: The fs_type of this V1FlexVolumeSource.
        :rtype: str
        r   r   s    r   r   zV1FlexVolumeSource.fs_typeb   s     ==r   c                     || _         y)aV  
        Sets the fs_type of this V1FlexVolumeSource.
        Filesystem type to mount. Must be a filesystem type supported by the
        host operating system. Ex. "ext4", "xfs", "ntfs". The default
        filesystem depends on FlexVolume script.

        :param fs_type: The fs_type of this V1FlexVolumeSource.
        :type: str
        Nr"   )r   r   s     r   r   zV1FlexVolumeSource.fs_typeo   s     DMr   c                     | j                   S )z
        Gets the options of this V1FlexVolumeSource.
        Optional: Extra command options if any.

        :return: The options of this V1FlexVolumeSource.
        :rtype: dict(str, str)
        r   r   s    r   r   zV1FlexVolumeSource.options}   s     ==r   c                     || _         y)z
        Sets the options of this V1FlexVolumeSource.
        Optional: Extra command options if any.

        :param options: The options of this V1FlexVolumeSource.
        :type: dict(str, str)
        Nr%   )r   r   s     r   r   zV1FlexVolumeSource.options   s     DMr   c                     | j                   S )a
  
        Gets the read_only of this V1FlexVolumeSource.
        Optional: Defaults to false (read/write). ReadOnly here will force the
        ReadOnly setting in VolumeMounts.

        :return: The read_only of this V1FlexVolumeSource.
        :rtype: bool
        r   r   s    r   r   zV1FlexVolumeSource.read_only   s     ??r   c                     || _         y)a  
        Sets the read_only of this V1FlexVolumeSource.
        Optional: Defaults to false (read/write). ReadOnly here will force the
        ReadOnly setting in VolumeMounts.

        :param read_only: The read_only of this V1FlexVolumeSource.
        :type: bool
        Nr(   )r   r   s     r   r   zV1FlexVolumeSource.read_only   s      DOr   c                     | j                   S )a  
        Gets the secret_ref of this V1FlexVolumeSource.
        Optional: SecretRef is reference to the secret object containing
        sensitive information to pass to the plugin scripts. This may be empty
        if no secret object is specified. If the secret object contains more
        than one secret, all secrets are passed to the plugin scripts.

        :return: The secret_ref of this V1FlexVolumeSource.
        :rtype: V1LocalObjectReference
        r   r   s    r   r   zV1FlexVolumeSource.secret_ref   s     r   c                     || _         y)a  
        Sets the secret_ref of this V1FlexVolumeSource.
        Optional: SecretRef is reference to the secret object containing
        sensitive information to pass to the plugin scripts. This may be empty
        if no secret object is specified. If the secret object contains more
        than one secret, all secrets are passed to the plugin scripts.

        :param secret_ref: The secret_ref of this V1FlexVolumeSource.
        :type: V1LocalObjectReference
        Nr+   )r   r   s     r   r   zV1FlexVolumeSource.secret_ref   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,V1FlexVolumeSource.to_dict.<locals>.<lambda>   s    I)>!))+EAEr   r/   c                 T    t        | d   d      r| d   | d   j                         fS | S )N   r/   r   r0   )items    r   r3   z,V1FlexVolumeSource.to_dict.<locals>.<lambda>   s6    47I. #1gtAw'89 9489r   )
r   swagger_typesgetattr
isinstancelistmapr1   r/   dictitems)r   resultattr_values        r   r/   zV1FlexVolumeSource.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V1FlexVolumeSource.to_str   s     4<<>""r   c                 "    | j                         S )z*
        For `print` and `pprint`
        )rC   r   s    r   __repr__zV1FlexVolumeSource.__repr__   s     ;;=r   c                 V    t        |t              sy| j                  |j                  k(  S )z8
        Returns true if both objects are equal
        F)r9   r   __dict__r   others     r   __eq__zV1FlexVolumeSource.__eq__   s%     e/0==ENN**r   c                     | |k(   S )z<
        Returns true if both objects are not equal
         rH   s     r   __ne__zV1FlexVolumeSource.__ne__   s     u}r   )NNNNN)__name__
__module____qualname____doc__r7   attribute_mapr   propertyr
   setterr   r   r   r   r/   rC   rE   rJ   rM   rL   r   r   r   r      sK    !,- - #6   
==  
 
 >>    >>	 	 	 	 
  
    " ".#+r   r   )rQ   pprintr   sixr   reobjectr   rL   r   r   <module>rY      s#   	   	h hr   