
    ?'                     >    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ddZdd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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)'V1RBDVolumeSourcezw
    NOTE: This class is auto generated by the swagger code generator program.
    Do not edit the class manually.
    strz	list[str]boolV1LocalObjectReference)fs_typeimagekeyringmonitorspool	read_only
secret_refuserfsTyper   r   r   r   readOnly	secretRefr   Nc	                    d| _         d| _        d| _        d| _        d| _        d| _        d| _        d| _        d| _        ||| _	        || _
        ||| _        || _        ||| _        ||| _        ||| _        ||| _        yy)z@
        V1RBDVolumeSource - a model defined in Swagger
        N)_fs_type_image_keyring	_monitors_pool
_read_only_secret_ref_userdiscriminatorr
   r   r   r   r   r   r   r   )	selfr
   r   r   r   r   r   r   r   s	            @lib/third_party/kubernetes/client/models/v1_rbd_volume_source.py__init__zV1RBDVolumeSource.__init__4   s     DMDKDMDNDJDODDJDdlDJdlDMdi dn"dodi     c                     | j                   S )a  
        Gets the fs_type of this V1RBDVolumeSource.
        Filesystem type of the volume that you want to mount. Tip: Ensure that
        the filesystem type is supported by the host operating system. Examples:
        "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if
        unspecified. More info:
        https://kubernetes.io/docs/concepts/storage/volumes#rbd

        :return: The fs_type of this V1RBDVolumeSource.
        :rtype: str
        r   r   s    r    r
   zV1RBDVolumeSource.fs_typeZ   s     ==r"   c                     || _         y)a  
        Sets the fs_type of this V1RBDVolumeSource.
        Filesystem type of the volume that you want to mount. Tip: Ensure that
        the filesystem type is supported by the host operating system. Examples:
        "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if
        unspecified. More info:
        https://kubernetes.io/docs/concepts/storage/volumes#rbd

        :param fs_type: The fs_type of this V1RBDVolumeSource.
        :type: str
        Nr$   )r   r
   s     r    r
   zV1RBDVolumeSource.fs_typei   s     DMr"   c                     | j                   S )a  
        Gets the image of this V1RBDVolumeSource.
        The rados image name. More info:
        https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it

        :return: The image of this V1RBDVolumeSource.
        :rtype: str
        )r   r%   s    r    r   zV1RBDVolumeSource.imagey   s     ;;r"   c                 ,    |t        d      || _        y)a  
        Sets the image of this V1RBDVolumeSource.
        The rados image name. More info:
        https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it

        :param image: The image of this V1RBDVolumeSource.
        :type: str
        Nz-Invalid value for `image`, must not be `None`)
ValueErrorr   )r   r   s     r    r   zV1RBDVolumeSource.image   s     }FGGDKr"   c                     | j                   S )aB  
        Gets the keyring of this V1RBDVolumeSource.
        Keyring is the path to key ring for RBDUser. Default is
        /etc/ceph/keyring. More info:
        https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it

        :return: The keyring of this V1RBDVolumeSource.
        :rtype: str
        r   r%   s    r    r   zV1RBDVolumeSource.keyring   s     ==r"   c                     || _         y)aH  
        Sets the keyring of this V1RBDVolumeSource.
        Keyring is the path to key ring for RBDUser. Default is
        /etc/ceph/keyring. More info:
        https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it

        :param keyring: The keyring of this V1RBDVolumeSource.
        :type: str
        Nr+   )r   r   s     r    r   zV1RBDVolumeSource.keyring   s     DMr"   c                     | j                   S )a  
        Gets the monitors of this V1RBDVolumeSource.
        A collection of Ceph monitors. More info:
        https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it

        :return: The monitors of this V1RBDVolumeSource.
        :rtype: list[str]
        )r   r%   s    r    r   zV1RBDVolumeSource.monitors   s     >>r"   c                 ,    |t        d      || _        y)a  
        Sets the monitors of this V1RBDVolumeSource.
        A collection of Ceph monitors. More info:
        https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it

        :param monitors: The monitors of this V1RBDVolumeSource.
        :type: list[str]
        Nz0Invalid value for `monitors`, must not be `None`)r)   r   )r   r   s     r    r   zV1RBDVolumeSource.monitors   s     IJJDNr"   c                     | j                   S )a  
        Gets the pool of this V1RBDVolumeSource.
        The rados pool name. Default is rbd. More info:
        https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it

        :return: The pool of this V1RBDVolumeSource.
        :rtype: str
        r   r%   s    r    r   zV1RBDVolumeSource.pool        ::r"   c                     || _         y)a  
        Sets the pool of this V1RBDVolumeSource.
        The rados pool name. Default is rbd. More info:
        https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it

        :param pool: The pool of this V1RBDVolumeSource.
        :type: str
        Nr0   )r   r   s     r    r   zV1RBDVolumeSource.pool        DJr"   c                     | j                   S )aN  
        Gets the read_only of this V1RBDVolumeSource.
        ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults
        to false. More info:
        https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it

        :return: The read_only of this V1RBDVolumeSource.
        :rtype: bool
        r   r%   s    r    r   zV1RBDVolumeSource.read_only   s     ??r"   c                     || _         y)aV  
        Sets the read_only of this V1RBDVolumeSource.
        ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults
        to false. More info:
        https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it

        :param read_only: The read_only of this V1RBDVolumeSource.
        :type: bool
        Nr5   )r   r   s     r    r   zV1RBDVolumeSource.read_only   s      DOr"   c                     | j                   S )a{  
        Gets the secret_ref of this V1RBDVolumeSource.
        SecretRef is name of the authentication secret for RBDUser. If provided
        overrides keyring. Default is nil. More info:
        https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it

        :return: The secret_ref of this V1RBDVolumeSource.
        :rtype: V1LocalObjectReference
        r   r%   s    r    r   zV1RBDVolumeSource.secret_ref   s     r"   c                     || _         y)a  
        Sets the secret_ref of this V1RBDVolumeSource.
        SecretRef is name of the authentication secret for RBDUser. If provided
        overrides keyring. Default is nil. More info:
        https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it

        :param secret_ref: The secret_ref of this V1RBDVolumeSource.
        :type: V1LocalObjectReference
        Nr8   )r   r   s     r    r   zV1RBDVolumeSource.secret_ref  s     "Dr"   c                     | j                   S )a  
        Gets the user of this V1RBDVolumeSource.
        The rados user name. Default is admin. More info:
        https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it

        :return: The user of this V1RBDVolumeSource.
        :rtype: str
        r   r%   s    r    r   zV1RBDVolumeSource.user  r1   r"   c                     || _         y)a  
        Sets the user of this V1RBDVolumeSource.
        The rados user name. Default is admin. More info:
        https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it

        :param user: The user of this V1RBDVolumeSource.
        :type: str
        Nr;   )r   r   s     r    r   zV1RBDVolumeSource.user%  r3   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+V1RBDVolumeSource.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    rC   z+V1RBDVolumeSource.to_dict.<locals>.<lambda>B  s6    47I. #1gtAw'89 9489r"   )
r   swagger_typesgetattr
isinstancelistmaprA   r?   dictitems)r   resultattr_values        r    r?   zV1RBDVolumeSource.to_dict2  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V1RBDVolumeSource.to_strI  s     4<<>""r"   c                 "    | j                         S )z*
        For `print` and `pprint`
        )rS   r%   s    r    __repr__zV1RBDVolumeSource.__repr__O  s     ;;=r"   c                 V    t        |t              sy| j                  |j                  k(  S )z8
        Returns true if both objects are equal
        F)rI   r   __dict__r   others     r    __eq__zV1RBDVolumeSource.__eq__U  s%     e./==ENN**r"   c                     | |k(   S )z<
        Returns true if both objects are not equal
         rX   s     r    __ne__zV1RBDVolumeSource.__ne__^  s     u}r"   )NNNNNNNN)__name__
__module____qualname____doc__rG   attribute_mapr!   propertyr
   setterr   r   r   r   r   r   r   r?   rS   rU   rZ   r]   r\   r"   r    r   r      s    ,	- 	- $L   >>  	 	 	<<  
 
 >>  	 	 ??  	 	 ;;
 
 
 
     
 
 " " 	 	 ;;
 
.#+r"   r   )ra   pprintr   sixr   reobjectr   r\   r"   r    <module>ri      s#   	   	P Pr"   