
    ^6                     >    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            
       X   \ rS rSrSr SSSSSSSSSS.	rS	S
S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  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)-V1SecurityContext   zk
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
boolV1CapabilitiesstrintV1SELinuxOptions)	allow_privilege_escalationcapabilities
privileged
proc_mountread_only_root_filesystemrun_as_grouprun_as_non_rootrun_as_userse_linux_optionsallowPrivilegeEscalationr   r   	procMountreadOnlyRootFilesystem
runAsGrouprunAsNonRoot	runAsUserseLinuxOptionsNc
                 4   SU l         SU l        SU l        SU l        SU l        SU l        SU l        SU l        SU l        SU l	        Ub  Xl
        Ub  X l        Ub  X0l        Ub  X@l        Ub  XPl        Ub  X`l        Ub  Xpl        Ub  Xl        U	b  Xl        gg)z0
V1SecurityContext - a model defined in Swagger
N)_allow_privilege_escalation_capabilities_privileged_proc_mount_read_only_root_filesystem_run_as_group_run_as_non_root_run_as_user_se_linux_optionsdiscriminatorr   r   r   r   r   r   r   r   r   )
selfr   r   r   r   r   r   r   r   r   s
             ?lib/third_party/kubernetes/client/models/v1_security_context.py__init__V1SecurityContext.__init__6   s     (,D$DDD&*D#D DD!DD!-(B%&"o"o ,'@$&",$#. $    c                     U R                   $ )a  
Gets the allow_privilege_escalation of this V1SecurityContext.
AllowPrivilegeEscalation controls whether a process can gain more
privileges than its parent process. This bool directly controls if the
no_new_privs flag will be set on the container process.
AllowPrivilegeEscalation is true always when the container is: 1) run as
Privileged 2) has CAP_SYS_ADMIN

:return: The allow_privilege_escalation of this V1SecurityContext.
:rtype: bool
r   r(   s    r)   r   ,V1SecurityContext.allow_privilege_escalationb   s     +++r,   c                     Xl         g)a  
Sets the allow_privilege_escalation of this V1SecurityContext.
AllowPrivilegeEscalation controls whether a process can gain more
privileges than its parent process. This bool directly controls if the
no_new_privs flag will be set on the container process.
AllowPrivilegeEscalation is true always when the container is: 1) run as
Privileged 2) has CAP_SYS_ADMIN

:param allow_privilege_escalation: The allow_privilege_escalation of
this V1SecurityContext.
:type: bool
Nr.   )r(   r   s     r)   r   r0   q   s     (B$r,   c                     U R                   $ )a  
Gets the capabilities of this V1SecurityContext.
The capabilities to add/drop when running containers. Defaults to the
default set of capabilities granted by the container runtime.

:return: The capabilities of this V1SecurityContext.
:rtype: V1Capabilities
r   r/   s    r)   r   V1SecurityContext.capabilities   s     r,   c                     Xl         g)a  
Sets the capabilities of this V1SecurityContext.
The capabilities to add/drop when running containers. Defaults to the
default set of capabilities granted by the container runtime.

:param capabilities: The capabilities of this V1SecurityContext.
:type: V1Capabilities
Nr3   )r(   r   s     r)   r   r4      s
     &r,   c                     U R                   $ )z
Gets the privileged of this V1SecurityContext.
Run container in privileged mode. Processes in privileged containers are
essentially equivalent to root on the host. Defaults to false.

:return: The privileged of this V1SecurityContext.
:rtype: bool
r    r/   s    r)   r   V1SecurityContext.privileged   s     r,   c                     Xl         g)a  
Sets the privileged of this V1SecurityContext.
Run container in privileged mode. Processes in privileged containers are
essentially equivalent to root on the host. Defaults to false.

:param privileged: The privileged of this V1SecurityContext.
:type: bool
Nr7   )r(   r   s     r)   r   r8      s
     "r,   c                     U R                   $ )a_  
Gets the proc_mount of this V1SecurityContext.
procMount denotes the type of proc mount to use for the containers. The
default is DefaultProcMount which uses the container runtime defaults
for readonly paths and masked paths. This requires the ProcMountType
feature flag to be enabled.

:return: The proc_mount of this V1SecurityContext.
:rtype: str
r!   r/   s    r)   r   V1SecurityContext.proc_mount   s     r,   c                     Xl         g)ah  
Sets the proc_mount of this V1SecurityContext.
procMount denotes the type of proc mount to use for the containers. The
default is DefaultProcMount which uses the container runtime defaults
for readonly paths and masked paths. This requires the ProcMountType
feature flag to be enabled.

:param proc_mount: The proc_mount of this V1SecurityContext.
:type: str
Nr;   )r(   r   s     r)   r   r<      s
     "r,   c                     U R                   $ )z
Gets the read_only_root_filesystem of this V1SecurityContext.
Whether this container has a read-only root filesystem. Default is
false.

:return: The read_only_root_filesystem of this V1SecurityContext.
:rtype: bool
r"   r/   s    r)   r   +V1SecurityContext.read_only_root_filesystem   s     ***r,   c                     Xl         g)z
Sets the read_only_root_filesystem of this V1SecurityContext.
Whether this container has a read-only root filesystem. Default is
false.

:param read_only_root_filesystem: The read_only_root_filesystem of this
V1SecurityContext.
:type: bool
Nr?   )r(   r   s     r)   r   r@      s     '@#r,   c                     U R                   $ )ac  
Gets the run_as_group of this V1SecurityContext.
The GID to run the entrypoint of the container process. Uses runtime
default if unset. May also be set in PodSecurityContext.  If set in both
SecurityContext and PodSecurityContext, the value specified in
SecurityContext takes precedence.

:return: The run_as_group of this V1SecurityContext.
:rtype: int
r#   r/   s    r)   r   V1SecurityContext.run_as_group   s     r,   c                     Xl         g)an  
Sets the run_as_group of this V1SecurityContext.
The GID to run the entrypoint of the container process. Uses runtime
default if unset. May also be set in PodSecurityContext.  If set in both
SecurityContext and PodSecurityContext, the value specified in
SecurityContext takes precedence.

:param run_as_group: The run_as_group of this V1SecurityContext.
:type: int
NrC   )r(   r   s     r)   r   rD      s
     &r,   c                     U R                   $ )a  
Gets the run_as_non_root of this V1SecurityContext.
Indicates that the container must run as a non-root user. If true, the
Kubelet will validate the image at runtime to ensure that it does not
run as UID 0 (root) and fail to start the container if it does. If unset
or false, no such validation will be performed. May also be set in
PodSecurityContext.  If set in both SecurityContext and
PodSecurityContext, the value specified in SecurityContext takes
precedence.

:return: The run_as_non_root of this V1SecurityContext.
:rtype: bool
r$   r/   s    r)   r   !V1SecurityContext.run_as_non_root  s        r,   c                     Xl         g)a'  
Sets the run_as_non_root of this V1SecurityContext.
Indicates that the container must run as a non-root user. If true, the
Kubelet will validate the image at runtime to ensure that it does not
run as UID 0 (root) and fail to start the container if it does. If unset
or false, no such validation will be performed. May also be set in
PodSecurityContext.  If set in both SecurityContext and
PodSecurityContext, the value specified in SecurityContext takes
precedence.

:param run_as_non_root: The run_as_non_root of this V1SecurityContext.
:type: bool
NrG   )r(   r   s     r)   r   rH     s
      ,r,   c                     U R                   $ )a  
Gets the run_as_user of this V1SecurityContext.
The UID to run the entrypoint of the container process. Defaults to user
specified in image metadata if unspecified. May also be set in
PodSecurityContext.  If set in both SecurityContext and
PodSecurityContext, the value specified in SecurityContext takes
precedence.

:return: The run_as_user of this V1SecurityContext.
:rtype: int
r%   r/   s    r)   r   V1SecurityContext.run_as_user+  s     r,   c                     Xl         g)a  
Sets the run_as_user of this V1SecurityContext.
The UID to run the entrypoint of the container process. Defaults to user
specified in image metadata if unspecified. May also be set in
PodSecurityContext.  If set in both SecurityContext and
PodSecurityContext, the value specified in SecurityContext takes
precedence.

:param run_as_user: The run_as_user of this V1SecurityContext.
:type: int
NrK   )r(   r   s     r)   r   rL   :  s
     $r,   c                     U R                   $ )a  
Gets the se_linux_options of this V1SecurityContext.
The SELinux context to be applied to the container. If unspecified, the
container runtime will allocate a random SELinux context for each
container.  May also be set in PodSecurityContext.  If set in both
SecurityContext and PodSecurityContext, the value specified in
SecurityContext takes precedence.

:return: The se_linux_options of this V1SecurityContext.
:rtype: V1SELinuxOptions
r&   r/   s    r)   r   "V1SecurityContext.se_linux_optionsJ  s     !!!r,   c                     Xl         g)a  
Sets the se_linux_options of this V1SecurityContext.
The SELinux context to be applied to the container. If unspecified, the
container runtime will allocate a random SELinux context for each
container.  May also be set in PodSecurityContext.  If set in both
SecurityContext and PodSecurityContext, the value specified in
SecurityContext takes precedence.

:param se_linux_options: The se_linux_options of this V1SecurityContext.
:type: V1SELinuxOptions
NrO   )r(   r   s     r)   r   rP   Y  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hasattrrT   )xs    r)   <lambda>+V1SecurityContext.to_dict.<locals>.<lambda>s  s    I)>)>!))+EAEr,   rT   c                 ^    [        U S   S5      (       a  U S   U S   R                  5       4$ U $ )N   rT   r   rU   )items    r)   rX   rY   y  s9    47I.. #1gtAw'89 9489r,   )
r   swagger_typesgetattr
isinstancelistmaprV   rT   dictitems)r(   resultattr_values        r)   rT   V1SecurityContext.to_dicti  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   rT   r/   s    r)   to_strV1SecurityContext.to_str  s     4<<>""r,   c                 "    U R                  5       $ )z
For `print` and `pprint`
)rj   r/   s    r)   __repr__V1SecurityContext.__repr__  s     ;;=r,   c                 `    [        U[        5      (       d  gU R                  UR                  :H  $ )z(
Returns true if both objects are equal
F)r_   r   __dict__r(   others     r)   __eq__V1SecurityContext.__eq__  s(     e.//==ENN**r,   c                     X:X  + $ )z,
Returns true if both objects are not equal
 rq   s     r)   __ne__V1SecurityContext.__ne__  s     r,   )r   r   r    r!   r"   r#   r$   r%   r&   r   r   r'   r   r   r   r   r   r   r   )	NNNNNNNNN)__name__
__module____qualname____firstlineno____doc__r]   attribute_mapr*   propertyr   setterr   r   r   r   r   r   r   r   rT   rj   rm   rs   rw   __static_attributes__rv   r,   r)   r   r      s2    %+&#),
- %?$ #;"' *
- +/ )- # $*/X , , $$B %B  	 	 
& 
& 	 	 
" 
"   " " 	+ 	+ ##@ $@   & & ! !  , ,"   $ $ " " . ..#+r,   r   )r}   pprintr   sixr   reobjectr   rv   r,   r)   <module>r      s#   	   	G Gr,   