
    <gg.                     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Z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d Zd Zd Zd Zd  Zy)"V1VolumeMountzNOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    strbool)
mount_pathmount_propagationname	read_onlyrecursive_read_onlysub_pathsub_path_expr	mountPathmountPropagationr
   readOnlyrecursiveReadOnlysubPathsubPathExprNc	                    |
t               }|| _        d| _        d| _        d| _        d| _        d| _        d| _        d| _        d| _	        || _
        ||| _        || _        ||| _        ||| _        ||| _        ||| _        yy)z*V1VolumeMount - a model defined in OpenAPIN)r   local_vars_configuration_mount_path_mount_propagation_name
_read_only_recursive_read_only	_sub_path_sub_path_exprdiscriminatorr   r	   r
   r   r   r   r   )	selfr   r	   r
   r   r   r   r   r   s	            ]/var/www/openai/venv/lib/python3.12/site-packages/kubernetes/client/models/v1_volume_mount.py__init__zV1VolumeMount.__init__7   s    #+'4$(@%"&
$(!"!$(%6D"	 &DN*':D$$DM$!.D %    c                     | j                   S )a
  Gets the mount_path of this V1VolumeMount.  # noqa: E501

        Path within the container at which the volume should be mounted.  Must not contain ':'.  # noqa: E501

        :return: The mount_path of this V1VolumeMount.  # noqa: E501
        :rtype: str
        )r   r   s    r    r   zV1VolumeMount.mount_pathS   s     r"   c                 X    | j                   j                  r|t        d      || _        y)a  Sets the mount_path of this V1VolumeMount.

        Path within the container at which the volume should be mounted.  Must not contain ':'.  # noqa: E501

        :param mount_path: The mount_path of this V1VolumeMount.  # noqa: E501
        :type: str
        Nz2Invalid value for `mount_path`, must not be `None`)r   client_side_validation
ValueErrorr   )r   r   s     r    r   zV1VolumeMount.mount_path^   s,     ((??JDVQRR%r"   c                     | j                   S )a  Gets the mount_propagation of this V1VolumeMount.  # noqa: E501

        mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. When RecursiveReadOnly is set to IfPossible or to Enabled, MountPropagation must be None or unspecified (which defaults to None).  # noqa: E501

        :return: The mount_propagation of this V1VolumeMount.  # noqa: E501
        :rtype: str
        r   r$   s    r    r	   zV1VolumeMount.mount_propagationl   s     &&&r"   c                     || _         y)a  Sets the mount_propagation of this V1VolumeMount.

        mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. When RecursiveReadOnly is set to IfPossible or to Enabled, MountPropagation must be None or unspecified (which defaults to None).  # noqa: E501

        :param mount_propagation: The mount_propagation of this V1VolumeMount.  # noqa: E501
        :type: str
        Nr)   )r   r	   s     r    r	   zV1VolumeMount.mount_propagationw   s     #4r"   c                     | j                   S )zGets the name of this V1VolumeMount.  # noqa: E501

        This must match the Name of a Volume.  # noqa: E501

        :return: The name of this V1VolumeMount.  # noqa: E501
        :rtype: str
        )r   r$   s    r    r
   zV1VolumeMount.name   s     zzr"   c                 X    | j                   j                  r|t        d      || _        y)zSets the name of this V1VolumeMount.

        This must match the Name of a Volume.  # noqa: E501

        :param name: The name of this V1VolumeMount.  # noqa: E501
        :type: str
        Nz,Invalid value for `name`, must not be `None`)r   r&   r'   r   )r   r
   s     r    r
   zV1VolumeMount.name   s*     ((??DLKLL
r"   c                     | j                   S )a  Gets the read_only of this V1VolumeMount.  # noqa: E501

        Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.  # noqa: E501

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

        Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.  # noqa: E501

        :param read_only: The read_only of this V1VolumeMount.  # noqa: E501
        :type: bool
        Nr.   )r   r   s     r    r   zV1VolumeMount.read_only   s     $r"   c                     | j                   S )a  Gets the recursive_read_only of this V1VolumeMount.  # noqa: E501

        RecursiveReadOnly specifies whether read-only mounts should be handled recursively.  If ReadOnly is false, this field has no meaning and must be unspecified.  If ReadOnly is true, and this field is set to Disabled, the mount is not made recursively read-only.  If this field is set to IfPossible, the mount is made recursively read-only, if it is supported by the container runtime.  If this field is set to Enabled, the mount is made recursively read-only if it is supported by the container runtime, otherwise the pod will not be started and an error will be generated to indicate the reason.  If this field is set to IfPossible or Enabled, MountPropagation must be set to None (or be unspecified, which defaults to None).  If this field is not specified, it is treated as an equivalent of Disabled.  # noqa: E501

        :return: The recursive_read_only of this V1VolumeMount.  # noqa: E501
        :rtype: str
        r   r$   s    r    r   z!V1VolumeMount.recursive_read_only   s     (((r"   c                     || _         y)a  Sets the recursive_read_only of this V1VolumeMount.

        RecursiveReadOnly specifies whether read-only mounts should be handled recursively.  If ReadOnly is false, this field has no meaning and must be unspecified.  If ReadOnly is true, and this field is set to Disabled, the mount is not made recursively read-only.  If this field is set to IfPossible, the mount is made recursively read-only, if it is supported by the container runtime.  If this field is set to Enabled, the mount is made recursively read-only if it is supported by the container runtime, otherwise the pod will not be started and an error will be generated to indicate the reason.  If this field is set to IfPossible or Enabled, MountPropagation must be set to None (or be unspecified, which defaults to None).  If this field is not specified, it is treated as an equivalent of Disabled.  # noqa: E501

        :param recursive_read_only: The recursive_read_only of this V1VolumeMount.  # noqa: E501
        :type: str
        Nr1   )r   r   s     r    r   z!V1VolumeMount.recursive_read_only   s     %8!r"   c                     | j                   S )a  Gets the sub_path of this V1VolumeMount.  # noqa: E501

        Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root).  # noqa: E501

        :return: The sub_path of this V1VolumeMount.  # noqa: E501
        :rtype: str
        r   r$   s    r    r   zV1VolumeMount.sub_path   s     ~~r"   c                     || _         y)a  Sets the sub_path of this V1VolumeMount.

        Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root).  # noqa: E501

        :param sub_path: The sub_path of this V1VolumeMount.  # noqa: E501
        :type: str
        Nr4   )r   r   s     r    r   zV1VolumeMount.sub_path   s     "r"   c                     | j                   S )a  Gets the sub_path_expr of this V1VolumeMount.  # noqa: E501

        Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive.  # noqa: E501

        :return: The sub_path_expr of this V1VolumeMount.  # noqa: E501
        :rtype: str
        r   r$   s    r    r   zV1VolumeMount.sub_path_expr   s     """r"   c                     || _         y)a  Sets the sub_path_expr of this V1VolumeMount.

        Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive.  # noqa: E501

        :param sub_path_expr: The sub_path_expr of this V1VolumeMount.  # noqa: E501
        :type: str
        Nr7   )r   r   s     r    r   zV1VolumeMount.sub_path_expr   s     ,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hasattrr;   )xs    r    <lambda>z'V1VolumeMount.to_dict.<locals>.<lambda>   s    WQ	-BaiikIIr"   r;   c                 T    t        | d   d      r| d   | d   j                         fS | S )N   r;   r   r<   )items    r    r?   z'V1VolumeMount.to_dict.<locals>.<lambda>  s6    tAw	2 #'q'47??+<!= "=8<"=r"   )six	iteritemsopenapi_typesgetattr
isinstancelistmapr=   r;   dictitems)r   resultattr_values        r    r;   zV1VolumeMount.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pformatr;   r$   s    r    to_strzV1VolumeMount.to_str  s    ~~dlln--r"   c                 "    | j                         S )zFor `print` and `pprint`)rS   r$   s    r    __repr__zV1VolumeMount.__repr__  s    {{}r"   c                 f    t        |t              sy| j                         |j                         k(  S )z&Returns true if both objects are equalFrG   r   r;   r   others     r    __eq__zV1VolumeMount.__eq__  s&    %/||~00r"   c                 f    t        |t              sy| j                         |j                         k7  S )z*Returns true if both objects are not equalTrW   rX   s     r    __ne__zV1VolumeMount.__ne__  s&    %/||~00r"   )NNNNNNNN)__name__
__module____qualname____doc__rE   attribute_mapr!   propertyr   setterr	   r
   r   r   r   r   r;   rS   rU   rZ   r\    r"   r    r   r      s    "$M "/2&M/8     & & ' ' 	4 	4   
[[    	$ 	$ ) ) 	8  	8   __	" 	" # # 	, 	,0.11r"   r   )r`   rQ   rerC   kubernetes.client.configurationr   objectr   rd   r"   r    <module>rh      s&     	 
 9O1F O1r"   