
    z                     >    S r SSKJr  SSKJr  SSKr " S S\5      rg)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                      \ rS rSrSr SSSSSSS.rSSSS	S
SS.r      S S jr\S 5       r	\	R                  S 5       r	\S 5       r\R                  S 5       r\S 5       r\R                  S 5       r\S 5       r\R                  S 5       r\S 5       r\R                  S 5       r\S 5       r\R                  S 5       rS rS rS rS rS rSrg)!V1VolumeMount   zk
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
strbool)
mount_pathmount_propagationname	read_onlysub_pathsub_path_expr	mountPathmountPropagationr   readOnlysubPathsubPathExprNc                     SU l         SU l        SU l        SU l        SU l        SU l        SU l        Xl        Ub  X l        X0l	        Ub  X@l
        Ub  XPl        Ub  X`l        gg)z,
V1VolumeMount - a model defined in Swagger
N_mount_path_mount_propagation_name
_read_only	_sub_path_sub_path_exprdiscriminatorr
   r   r   r   r   r   )selfr
   r   r   r   r   r   s          ;lib/third_party/kubernetes/client/models/v1_volume_mount.py__init__V1VolumeMount.__init__0   sv     D"DDJDODNDD O$0I nm ( !    c                     U R                   $ )z
Gets the mount_path of this V1VolumeMount.
Path within the container at which the volume should be mounted.  Must
not contain ':'.

:return: The mount_path of this V1VolumeMount.
:rtype: str
)r   r   s    r   r
   V1VolumeMount.mount_pathN   s     r"   c                 ,    Uc  [        S5      eXl        g)z
Sets the mount_path of this V1VolumeMount.
Path within the container at which the volume should be mounted.  Must
not contain ':'.

:param mount_path: The mount_path of this V1VolumeMount.
:type: str
Nz2Invalid value for `mount_path`, must not be `None`)
ValueErrorr   )r   r
   s     r   r
   r%   Z   s     KLL!r"   c                     U R                   $ )a)  
Gets 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.

:return: The mount_propagation of this V1VolumeMount.
:rtype: str
r   r$   s    r   r   V1VolumeMount.mount_propagationi   s     """r"   c                     Xl         g)a9  
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.

:param mount_propagation: The mount_propagation of this V1VolumeMount.
:type: str
Nr)   )r   r   s     r   r   r*   v   s
     0r"   c                     U R                   $ )z
Gets the name of this V1VolumeMount.
This must match the Name of a Volume.

:return: The name of this V1VolumeMount.
:rtype: str
)r   r$   s    r   r   V1VolumeMount.name   s     ::r"   c                 ,    Uc  [        S5      eXl        g)z
Sets the name of this V1VolumeMount.
This must match the Name of a Volume.

:param name: The name of this V1VolumeMount.
:type: str
Nz,Invalid value for `name`, must not be `None`)r'   r   )r   r   s     r   r   r-      s     |EFFJr"   c                     U R                   $ )z
Gets the read_only of this V1VolumeMount.
Mounted read-only if true, read-write otherwise (false or unspecified).
Defaults to false.

:return: The read_only of this V1VolumeMount.
:rtype: bool
r   r$   s    r   r   V1VolumeMount.read_only   s     ??r"   c                     Xl         g)z
Sets the read_only of this V1VolumeMount.
Mounted read-only if true, read-write otherwise (false or unspecified).
Defaults to false.

:param read_only: The read_only of this V1VolumeMount.
:type: bool
Nr0   )r   r   s     r   r   r1      s	      Or"   c                     U R                   $ )z
Gets the sub_path of this V1VolumeMount.
Path within the volume from which the container's volume should be
mounted. Defaults to "" (volume's root).

:return: The sub_path of this V1VolumeMount.
:rtype: str
r   r$   s    r   r   V1VolumeMount.sub_path   s     >>r"   c                     Xl         g)z
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).

:param sub_path: The sub_path of this V1VolumeMount.
:type: str
Nr4   )r   r   s     r   r   r5      s	     Nr"   c                     U R                   $ )a  
Gets 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. This field is alpha in 1.14.

:return: The sub_path_expr of this V1VolumeMount.
:rtype: str
r   r$   s    r   r   V1VolumeMount.sub_path_expr   s     r"   c                     Xl         g)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. This field is alpha in 1.14.

:param sub_path_expr: The sub_path_expr of this V1VolumeMount.
:type: str
Nr8   )r   r   s     r   r   r9      s
     (r"   c                    0 n[        U R                  5       H  u  p#[        X5      n[        U[        5      (       a  [	        [        S U5      5      X'   M?  [        US5      (       a  UR                  5       X'   Md  [        U[        5      (       a(  [        [        S UR                  5       5      5      X'   M  XAU'   M     U$ )z(
Returns the model properties as a dict
c                 H    [        U S5      (       a  U R                  5       $ U $ )Nto_dicthasattrr=   )xs    r   <lambda>'V1VolumeMount.to_dict.<locals>.<lambda>   s    I)>)>!))+EAEr"   r=   c                 ^    [        U S   S5      (       a  U S   U S   R                  5       4$ U $ )N   r=   r   r>   )items    r   rA   rB      s9    47I.. #1gtAw'89 9489r"   )
r   swagger_typesgetattr
isinstancelistmapr?   r=   dictitems)r   resultattr_values        r   r=   V1VolumeMount.to_dict   s     FT//0d!e	E4	 	 EuMO5)$$}}eT""9:?++-IJ
 t 1 Mr"   c                 4    [        U R                  5       5      $ )z0
Returns the string representation of the model
)r   r=   r$   s    r   to_strV1VolumeMount.to_str  s     4<<>""r"   c                 "    U R                  5       $ )z
For `print` and `pprint`
)rS   r$   s    r   __repr__V1VolumeMount.__repr__  s     ;;=r"   c                 `    [        U[        5      (       d  gU R                  UR                  :H  $ )z(
Returns true if both objects are equal
F)rH   r   __dict__r   others     r   __eq__V1VolumeMount.__eq__  s'     e]++==ENN**r"   c                     X:X  + $ )z,
Returns true if both objects are not equal
 rZ   s     r   __ne__V1VolumeMount.__ne__  s     r"   r   )NNNNNN)__name__
__module____qualname____firstlineno____doc__rF   attribute_mapr    propertyr
   setterr   r   r   r   r   r=   rS   rV   r\   r`   __static_attributes__r_   r"   r   r   r      s     -  -$- !%!)< 	 	 " " 
# 
# 0 0   ;;  	 	 
  
  	 	 ??
 
   ( (.#+r"   r   )rf   pprintr   sixr   reobjectr   r_   r"   r   <module>ro      s#   	   	LF Lr"   