
                         >    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ddZd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ed        Zej                  d        Zd Zd Zd Zd Zd Zy)V1QuobyteVolumeSourcezw
    NOTE: This class is auto generated by the swagger code generator program.
    Do not edit the class manually.
    strbool)group	read_onlyregistrytenantuservolumer	   readOnlyr   r   r   r   Nc                     d| _         d| _        d| _        d| _        d| _        d| _        d| _        ||| _        ||| _        || _	        ||| _
        ||| _        || _        y)zD
        V1QuobyteVolumeSource - a model defined in Swagger
        N)_group
_read_only	_registry_tenant_user_volumediscriminatorr	   r
   r   r   r   r   )selfr	   r
   r   r   r   r   s          Dlib/third_party/kubernetes/client/models/v1_quobyte_volume_source.py__init__zV1QuobyteVolumeSource.__init__0   sx     DKDODNDLDJDLDdj dnDMdkdiDK    c                     | j                   S )z
        Gets the group of this V1QuobyteVolumeSource.
        Group to map volume access to Default is no group

        :return: The group of this V1QuobyteVolumeSource.
        :rtype: str
        r   r   s    r   r	   zV1QuobyteVolumeSource.groupN   s     ;;r   c                     || _         y)z
        Sets the group of this V1QuobyteVolumeSource.
        Group to map volume access to Default is no group

        :param group: The group of this V1QuobyteVolumeSource.
        :type: str
        Nr   )r   r	   s     r   r	   zV1QuobyteVolumeSource.groupY   s     DKr   c                     | j                   S )a  
        Gets the read_only of this V1QuobyteVolumeSource.
        ReadOnly here will force the Quobyte volume to be mounted with read-only
        permissions. Defaults to false.

        :return: The read_only of this V1QuobyteVolumeSource.
        :rtype: bool
        r   r   s    r   r
   zV1QuobyteVolumeSource.read_onlye   s     ??r   c                     || _         y)a  
        Sets the read_only of this V1QuobyteVolumeSource.
        ReadOnly here will force the Quobyte volume to be mounted with read-only
        permissions. Defaults to false.

        :param read_only: The read_only of this V1QuobyteVolumeSource.
        :type: bool
        Nr!   )r   r
   s     r   r
   zV1QuobyteVolumeSource.read_onlyq   s      DOr   c                     | j                   S )as  
        Gets the registry of this V1QuobyteVolumeSource.
        Registry represents a single or multiple Quobyte Registry services
        specified as a string as host:port pair (multiple entries are separated
        with commas) which acts as the central registry for volumes

        :return: The registry of this V1QuobyteVolumeSource.
        :rtype: str
        )r   r   s    r   r   zV1QuobyteVolumeSource.registry~   s     >>r   c                 ,    |t        d      || _        y)az  
        Sets the registry of this V1QuobyteVolumeSource.
        Registry represents a single or multiple Quobyte Registry services
        specified as a string as host:port pair (multiple entries are separated
        with commas) which acts as the central registry for volumes

        :param registry: The registry of this V1QuobyteVolumeSource.
        :type: str
        Nz0Invalid value for `registry`, must not be `None`)
ValueErrorr   )r   r   s     r   r   zV1QuobyteVolumeSource.registry   s     IJJDNr   c                     | j                   S )a$  
        Gets the tenant of this V1QuobyteVolumeSource.
        Tenant owning the given Quobyte volume in the Backend Used with
        dynamically provisioned Quobyte volumes, value is set by the plugin

        :return: The tenant of this V1QuobyteVolumeSource.
        :rtype: str
        r   r   s    r   r   zV1QuobyteVolumeSource.tenant        <<r   c                     || _         y)a)  
        Sets the tenant of this V1QuobyteVolumeSource.
        Tenant owning the given Quobyte volume in the Backend Used with
        dynamically provisioned Quobyte volumes, value is set by the plugin

        :param tenant: The tenant of this V1QuobyteVolumeSource.
        :type: str
        Nr'   )r   r   s     r   r   zV1QuobyteVolumeSource.tenant   s     DLr   c                     | j                   S )z
        Gets the user of this V1QuobyteVolumeSource.
        User to map volume access to Defaults to serivceaccount user

        :return: The user of this V1QuobyteVolumeSource.
        :rtype: str
        r   r   s    r   r   zV1QuobyteVolumeSource.user   s     ::r   c                     || _         y)z
        Sets the user of this V1QuobyteVolumeSource.
        User to map volume access to Defaults to serivceaccount user

        :param user: The user of this V1QuobyteVolumeSource.
        :type: str
        Nr+   )r   r   s     r   r   zV1QuobyteVolumeSource.user   s     DJr   c                     | j                   S )z
        Gets the volume of this V1QuobyteVolumeSource.
        Volume is a string that references an already created Quobyte volume by
        name.

        :return: The volume of this V1QuobyteVolumeSource.
        :rtype: str
        )r   r   s    r   r   zV1QuobyteVolumeSource.volume   r(   r   c                 ,    |t        d      || _        y)z
        Sets the volume of this V1QuobyteVolumeSource.
        Volume is a string that references an already created Quobyte volume by
        name.

        :param volume: The volume of this V1QuobyteVolumeSource.
        :type: str
        Nz.Invalid value for `volume`, must not be `None`)r%   r   )r   r   s     r   r   zV1QuobyteVolumeSource.volume   s     ~GHHDLr   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hasattrr1   )xs    r   <lambda>z/V1QuobyteVolumeSource.to_dict.<locals>.<lambda>   s    I)>!))+EAEr   r1   c                 T    t        | d   d      r| d   | d   j                         fS | S )N   r1   r   r2   )items    r   r5   z/V1QuobyteVolumeSource.to_dict.<locals>.<lambda>   s6    47I. #1gtAw'89 9489r   )
r   swagger_typesgetattr
isinstancelistmapr3   r1   dictitems)r   resultattr_values        r   r1   zV1QuobyteVolumeSource.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   r1   r   s    r   to_strzV1QuobyteVolumeSource.to_str   s     4<<>""r   c                 "    | j                         S )z*
        For `print` and `pprint`
        )rE   r   s    r   __repr__zV1QuobyteVolumeSource.__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V1QuobyteVolumeSource.__eq__	  s%     e23==ENN**r   c                     | |k(   S )z<
        Returns true if both objects are not equal
         rJ   s     r   __ne__zV1QuobyteVolumeSource.__ne__  s     u}r   )NNNNNN)__name__
__module____qualname____doc__r9   attribute_mapr   propertyr	   setterr
   r   r   r   r   r1   rE   rG   rL   rO   rN   r   r   r   r      s~    - - <   	<<	 	 	 	 
  
  
 
 ??  	 	 
==
 
   ;;	 	 	 	 
== .#+r   r   )rS   pprintr   sixr   reobjectr   rN   r   r   <module>r[      s#   	   	DF Dr   