
    <gy                     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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)V1CSIVolumeSourcezNOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    strV1LocalObjectReferenceboolzdict(str, str))driverfs_typenode_publish_secret_ref	read_onlyvolume_attributesr	   fsTypenodePublishSecretRefreadOnlyvolumeAttributesNc                     |
t               }|| _        d| _        d| _        d| _        d| _        d| _        d| _        || _        ||| _	        ||| _
        ||| _        ||| _        yy)z.V1CSIVolumeSource - a model defined in OpenAPIN)r   local_vars_configuration_driver_fs_type_node_publish_secret_ref
_read_only_volume_attributesdiscriminatorr	   r
   r   r   r   )selfr	   r
   r   r   r   r   s          b/var/www/openai/venv/lib/python3.12/site-packages/kubernetes/client/models/v1_csi_volume_source.py__init__zV1CSIVolumeSource.__init__3   s    #+'4$(@%(,%"&!"DL".+BD( &DN(%6D" )    c                     | j                   S )a<  Gets the driver of this V1CSIVolumeSource.  # noqa: E501

        driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster.  # noqa: E501

        :return: The driver of this V1CSIVolumeSource.  # noqa: E501
        :rtype: str
        )r   r   s    r   r	   zV1CSIVolumeSource.driverJ   s     ||r   c                 X    | j                   j                  r|t        d      || _        y)a3  Sets the driver of this V1CSIVolumeSource.

        driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster.  # noqa: E501

        :param driver: The driver of this V1CSIVolumeSource.  # noqa: E501
        :type: str
        Nz.Invalid value for `driver`, must not be `None`)r   client_side_validation
ValueErrorr   )r   r	   s     r   r	   zV1CSIVolumeSource.driverU   s*     ((??FNMNNr   c                     | j                   S )a^  Gets the fs_type of this V1CSIVolumeSource.  # noqa: E501

        fsType to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply.  # noqa: E501

        :return: The fs_type of this V1CSIVolumeSource.  # noqa: E501
        :rtype: str
        r   r   s    r   r
   zV1CSIVolumeSource.fs_typec   s     }}r   c                     || _         y)aV  Sets the fs_type of this V1CSIVolumeSource.

        fsType to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply.  # noqa: E501

        :param fs_type: The fs_type of this V1CSIVolumeSource.  # noqa: E501
        :type: str
        Nr$   )r   r
   s     r   r
   zV1CSIVolumeSource.fs_typen   s      r   c                     | j                   S )zGets the node_publish_secret_ref of this V1CSIVolumeSource.  # noqa: E501


        :return: The node_publish_secret_ref of this V1CSIVolumeSource.  # noqa: E501
        :rtype: V1LocalObjectReference
        r   r   s    r   r   z)V1CSIVolumeSource.node_publish_secret_refz   s     ,,,r   c                     || _         y)zSets the node_publish_secret_ref of this V1CSIVolumeSource.


        :param node_publish_secret_ref: The node_publish_secret_ref of this V1CSIVolumeSource.  # noqa: E501
        :type: V1LocalObjectReference
        Nr'   )r   r   s     r   r   z)V1CSIVolumeSource.node_publish_secret_ref   s     )@%r   c                     | j                   S )a  Gets the read_only of this V1CSIVolumeSource.  # noqa: E501

        readOnly specifies a read-only configuration for the volume. Defaults to false (read/write).  # noqa: E501

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

        readOnly specifies a read-only configuration for the volume. Defaults to false (read/write).  # noqa: E501

        :param read_only: The read_only of this V1CSIVolumeSource.  # noqa: E501
        :type: bool
        Nr*   )r   r   s     r   r   zV1CSIVolumeSource.read_only   s     $r   c                     | j                   S )ac  Gets the volume_attributes of this V1CSIVolumeSource.  # noqa: E501

        volumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values.  # noqa: E501

        :return: The volume_attributes of this V1CSIVolumeSource.  # noqa: E501
        :rtype: dict(str, str)
        r   r   s    r   r   z#V1CSIVolumeSource.volume_attributes   s     &&&r   c                     || _         y)ae  Sets the volume_attributes of this V1CSIVolumeSource.

        volumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values.  # noqa: E501

        :param volume_attributes: The volume_attributes of this V1CSIVolumeSource.  # noqa: E501
        :type: dict(str, str)
        Nr-   )r   r   s     r   r   z#V1CSIVolumeSource.volume_attributes   s     #4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hasattrr1   )xs    r   <lambda>z+V1CSIVolumeSource.to_dict.<locals>.<lambda>   s    WQ	-BaiikIIr   r1   c                 T    t        | d   d      r| d   | d   j                         fS | S )N   r1   r   r2   )items    r   r5   z+V1CSIVolumeSource.to_dict.<locals>.<lambda>   s6    tAw	2 #'q'47??+<!= "=8<"=r   )six	iteritemsopenapi_typesgetattr
isinstancelistmapr3   r1   dictitems)r   resultattr_values        r   r1   zV1CSIVolumeSource.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pformatr1   r   s    r   to_strzV1CSIVolumeSource.to_str   s    ~~dlln--r   c                 "    | j                         S )zFor `print` and `pprint`)rI   r   s    r   __repr__zV1CSIVolumeSource.__repr__   s    {{}r   c                 f    t        |t              sy| j                         |j                         k(  S )z&Returns true if both objects are equalFr=   r   r1   r   others     r   __eq__zV1CSIVolumeSource.__eq__   s'    %!23||~00r   c                 f    t        |t              sy| j                         |j                         k7  S )z*Returns true if both objects are not equalTrM   rN   s     r   __ne__zV1CSIVolumeSource.__ne__   s'    %!23||~00r   )NNNNNN)__name__
__module____qualname____doc__r;   attribute_mapr   propertyr	   setterr
   r   r   r   r1   rI   rK   rP   rR    r   r   r   r      s>    #;-M #9/M7.   ]]    ^^	  	  - - ##@ $@   	$ 	$ ' ' 	4 	40.11r   r   )rV   rG   rer9   kubernetes.client.configurationr   objectr   rZ   r   r   <module>r^      s&     	 
 9T1 T1r   