
    <g)                     B    d Z ddlZddlZddlZddlmZ  G d de      Zy)z
    Kubernetes

    No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)  # noqa: E501

    The version of the OpenAPI document: release-1.32
    Generated by: https://openapi-generator.tech
    N)Configurationc            	          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)'V1RBDVolumeSourcezNOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    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
                 2   |	
t               }	|	| _        d| _        d| _        d| _        d| _        d| _        d| _        d| _        d| _	        d| _
        ||| _        || _        ||| _        || _        ||| _        ||| _        ||| _        ||| _        yy)z.V1RBDVolumeSource - a model defined in OpenAPIN)r   local_vars_configuration_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   r   s
             b/var/www/openai/venv/lib/python3.12/site-packages/kubernetes/client/models/v1_rbd_volume_source.py__init__zV1RBDVolumeSource.__init__9   s    #+'4$(@%

!"DL
"DL DI &DN!(DODI     c                     | j                   S )a  Gets the fs_type of this V1RBDVolumeSource.  # noqa: E501

        fsType is the 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  # noqa: E501

        :return: The fs_type of this V1RBDVolumeSource.  # noqa: E501
        :rtype: str
        r   r   s    r    r	   zV1RBDVolumeSource.fs_typeX        }}r"   c                     || _         y)a  Sets the fs_type of this V1RBDVolumeSource.

        fsType is the 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  # noqa: E501

        :param fs_type: The fs_type of this V1RBDVolumeSource.  # noqa: E501
        :type: str
        Nr$   )r   r	   s     r    r	   zV1RBDVolumeSource.fs_typec         r"   c                     | j                   S )a  Gets the image of this V1RBDVolumeSource.  # noqa: E501

        image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it  # noqa: E501

        :return: The image of this V1RBDVolumeSource.  # noqa: E501
        :rtype: str
        )r   r%   s    r    r
   zV1RBDVolumeSource.imageo   s     {{r"   c                 X    | j                   j                  r|t        d      || _        y)a  Sets the image of this V1RBDVolumeSource.

        image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it  # noqa: E501

        :param image: The image of this V1RBDVolumeSource.  # noqa: E501
        :type: str
        Nz-Invalid value for `image`, must not be `None`)r   client_side_validation
ValueErrorr   )r   r
   s     r    r
   zV1RBDVolumeSource.imagez   s*     ((??EMLMMr"   c                     | j                   S )aF  Gets the keyring of this V1RBDVolumeSource.  # noqa: E501

        keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it  # noqa: E501

        :return: The keyring of this V1RBDVolumeSource.  # noqa: E501
        :rtype: str
        r   r%   s    r    r   zV1RBDVolumeSource.keyring   r&   r"   c                     || _         y)a>  Sets the keyring of this V1RBDVolumeSource.

        keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it  # noqa: E501

        :param keyring: The keyring of this V1RBDVolumeSource.  # noqa: E501
        :type: str
        Nr.   )r   r   s     r    r   zV1RBDVolumeSource.keyring   r(   r"   c                     | j                   S )a.  Gets the monitors of this V1RBDVolumeSource.  # noqa: E501

        monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it  # noqa: E501

        :return: The monitors of this V1RBDVolumeSource.  # noqa: E501
        :rtype: list[str]
        )r   r%   s    r    r   zV1RBDVolumeSource.monitors   s     ~~r"   c                 X    | j                   j                  r|t        d      || _        y)a'  Sets the monitors of this V1RBDVolumeSource.

        monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it  # noqa: E501

        :param monitors: The monitors of this V1RBDVolumeSource.  # noqa: E501
        :type: list[str]
        Nz0Invalid value for `monitors`, must not be `None`)r   r+   r,   r   )r   r   s     r    r   zV1RBDVolumeSource.monitors   s+     ((??HDTOPP!r"   c                     | j                   S )a"  Gets the pool of this V1RBDVolumeSource.  # noqa: E501

        pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it  # noqa: E501

        :return: The pool of this V1RBDVolumeSource.  # noqa: E501
        :rtype: str
        r   r%   s    r    r   zV1RBDVolumeSource.pool        zzr"   c                     || _         y)a  Sets the pool of this V1RBDVolumeSource.

        pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it  # noqa: E501

        :param pool: The pool of this V1RBDVolumeSource.  # noqa: E501
        :type: str
        Nr3   )r   r   s     r    r   zV1RBDVolumeSource.pool        
r"   c                     | j                   S )aR  Gets the read_only of this V1RBDVolumeSource.  # noqa: E501

        readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it  # noqa: E501

        :return: The read_only of this V1RBDVolumeSource.  # noqa: E501
        :rtype: bool
        r   r%   s    r    r   zV1RBDVolumeSource.read_only   s     r"   c                     || _         y)aL  Sets the read_only of this V1RBDVolumeSource.

        readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it  # noqa: E501

        :param read_only: The read_only of this V1RBDVolumeSource.  # noqa: E501
        :type: bool
        Nr8   )r   r   s     r    r   zV1RBDVolumeSource.read_only   s     $r"   c                     | j                   S )zGets the secret_ref of this V1RBDVolumeSource.  # noqa: E501


        :return: The secret_ref of this V1RBDVolumeSource.  # noqa: E501
        :rtype: V1LocalObjectReference
        r   r%   s    r    r   zV1RBDVolumeSource.secret_ref   s     r"   c                     || _         y)zSets the secret_ref of this V1RBDVolumeSource.


        :param secret_ref: The secret_ref of this V1RBDVolumeSource.  # noqa: E501
        :type: V1LocalObjectReference
        Nr;   )r   r   s     r    r   zV1RBDVolumeSource.secret_ref   s     &r"   c                     | j                   S )a$  Gets the user of this V1RBDVolumeSource.  # noqa: E501

        user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it  # noqa: E501

        :return: The user of this V1RBDVolumeSource.  # noqa: E501
        :rtype: str
        r   r%   s    r    r   zV1RBDVolumeSource.user   r4   r"   c                     || _         y)a  Sets the user of this V1RBDVolumeSource.

        user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it  # noqa: E501

        :param user: The user of this V1RBDVolumeSource.  # noqa: E501
        :type: str
        Nr>   )r   r   s     r    r   zV1RBDVolumeSource.user  r6   r"   c                 ~   i }t        j                  | j                        D ]  \  }}t        | |      }t	        |t
              rt        t        d |            ||<   <t        |d      r|j                         ||<   \t	        |t              r(t        t        d |j                                     ||<   |||<    |S )z&Returns the model properties as a dictc                 >    t        | d      r| j                         S | S )Nto_dicthasattrrB   )xs    r    <lambda>z+V1RBDVolumeSource.to_dict.<locals>.<lambda>  s    WQ	-BaiikIIr"   rB   c                 T    t        | d   d      r| d   | d   j                         fS | S )N   rB   r   rC   )items    r    rF   z+V1RBDVolumeSource.to_dict.<locals>.<lambda>!  s6    tAw	2 #'q'47??+<!= "=8<"=r"   )six	iteritemsopenapi_typesgetattr
isinstancelistmaprD   rB   dictitems)r   resultattr_values        r    rB   zV1RBDVolumeSource.to_dict  s    }}T%7%78GD!D$'E%&#CI%  t 	*$}}tE4(#C=KKM%  t  %t! 9$ r"   c                 H    t        j                  | j                               S )z.Returns the string representation of the model)pprintpformatrB   r%   s    r    to_strzV1RBDVolumeSource.to_str*  s    ~~dlln--r"   c                 "    | j                         S )zFor `print` and `pprint`)rZ   r%   s    r    __repr__zV1RBDVolumeSource.__repr__.  s    {{}r"   c                 f    t        |t              sy| j                         |j                         k(  S )z&Returns true if both objects are equalFrN   r   rB   r   others     r    __eq__zV1RBDVolumeSource.__eq__2  s'    %!23||~00r"   c                 f    t        |t              sy| j                         |j                         k7  S )z*Returns true if both objects are not equalTr^   r_   s     r    __ne__zV1RBDVolumeSource.__ne__9  s'    %!23||~00r"   )	NNNNNNNNN)__name__
__module____qualname____doc__rL   attribute_mapr!   propertyr	   setterr
   r   r   r   r   r   r   rB   rZ   r\   ra   rc    r"   r    r   r      s    .	M !	M>   ^^	  	    \\    ^^	  	    __" "   
[[	 	   	$ 	$     & &   
[[	 	0.11r"   r   )rg   rX   rerJ   kubernetes.client.configurationr   objectr   rk   r"   r    <module>ro      s&     	 
 9i1 i1r"   