
    F.                     >    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S.r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  rS! rS" rS# rS$ rS%rg)'V1PodSecurityContext   zk
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
intboolV1SELinuxOptionsz	list[int]zlist[V1Sysctl])fs_grouprun_as_grouprun_as_non_rootrun_as_userse_linux_optionssupplemental_groupssysctlsfsGroup
runAsGrouprunAsNonRoot	runAsUserseLinuxOptionssupplementalGroupsr   Nc                     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        gg)z3
V1PodSecurityContext - a model defined in Swagger
N	_fs_group_run_as_group_run_as_non_root_run_as_user_se_linux_options_supplemental_groups_sysctlsdiscriminatorr   r   r   r   r   r   r   )selfr   r   r   r   r   r   r   s           Clib/third_party/kubernetes/client/models/v1_pod_security_context.py__init__V1PodSecurityContext.__init__2   s     DND DD!D $DDMDm&",$#.&!4l     c                     U R                   $ )a  
Gets the fs_group of this V1PodSecurityContext.
A special supplemental group that applies to all containers in a pod.
Some volume types allow the Kubelet to change the ownership of that
volume to be owned by the pod:  1. The owning GID will be the FSGroup 2.
The setgid bit is set (new files created in the volume will be owned by
FSGroup) 3. The permission bits are OR'd with rw-rw----  If unset, the
Kubelet will not modify the ownership and permissions of any volume.

:return: The fs_group of this V1PodSecurityContext.
:rtype: int
r   r"   s    r#   r   V1PodSecurityContext.fs_groupV   s     >>r&   c                     Xl         g)a   
Sets the fs_group of this V1PodSecurityContext.
A special supplemental group that applies to all containers in a pod.
Some volume types allow the Kubelet to change the ownership of that
volume to be owned by the pod:  1. The owning GID will be the FSGroup 2.
The setgid bit is set (new files created in the volume will be owned by
FSGroup) 3. The permission bits are OR'd with rw-rw----  If unset, the
Kubelet will not modify the ownership and permissions of any volume.

:param fs_group: The fs_group of this V1PodSecurityContext.
:type: int
Nr(   )r"   r   s     r#   r   r*   f   s	     Nr&   c                     U R                   $ )ay  
Gets the run_as_group of this V1PodSecurityContext.
The GID to run the entrypoint of the container process. Uses runtime
default if unset. May also be set in SecurityContext.  If set in both
SecurityContext and PodSecurityContext, the value specified in
SecurityContext takes precedence for that container.

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

:param run_as_group: The run_as_group of this V1PodSecurityContext.
:type: int
Nr-   )r"   r   s     r#   r   r.      s
     &r&   c                     U R                   $ )a  
Gets the run_as_non_root of this V1PodSecurityContext.
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
SecurityContext.  If set in both SecurityContext and PodSecurityContext,
the value specified in SecurityContext takes precedence.

:return: The run_as_non_root of this V1PodSecurityContext.
:rtype: bool
r   r)   s    r#   r   $V1PodSecurityContext.run_as_non_root   s        r&   c                     Xl         g)a*  
Sets the run_as_non_root of this V1PodSecurityContext.
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
SecurityContext.  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
V1PodSecurityContext.
:type: bool
Nr1   )r"   r   s     r#   r   r2      s
      ,r&   c                     U R                   $ )a  
Gets the run_as_user of this V1PodSecurityContext.
The UID to run the entrypoint of the container process. Defaults to user
specified in image metadata if unspecified. May also be set in
SecurityContext.  If set in both SecurityContext and PodSecurityContext,
the value specified in SecurityContext takes precedence for that
container.

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

:param run_as_user: The run_as_user of this V1PodSecurityContext.
:type: int
Nr5   )r"   r   s     r#   r   r6      s
     $r&   c                     U R                   $ )a  
Gets the se_linux_options of this V1PodSecurityContext.
The SELinux context to be applied to all containers. If unspecified, the
container runtime will allocate a random SELinux context for each
container.  May also be set in SecurityContext.  If set in both
SecurityContext and PodSecurityContext, the value specified in
SecurityContext takes precedence for that container.

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

:param se_linux_options: The se_linux_options of this
V1PodSecurityContext.
:type: V1SELinuxOptions
Nr9   )r"   r   s     r#   r   r:      s
     .r&   c                     U R                   $ )a:  
Gets the supplemental_groups of this V1PodSecurityContext.
A list of groups applied to the first process run in each container, in
addition to the container's primary GID.  If unspecified, no groups will
be added to any container.

:return: The supplemental_groups of this V1PodSecurityContext.
:rtype: list[int]
r   r)   s    r#   r   (V1PodSecurityContext.supplemental_groups   s     $$$r&   c                     Xl         g)aL  
Sets the supplemental_groups of this V1PodSecurityContext.
A list of groups applied to the first process run in each container, in
addition to the container's primary GID.  If unspecified, no groups will
be added to any container.

:param supplemental_groups: The supplemental_groups of this
V1PodSecurityContext.
:type: list[int]
Nr=   )r"   r   s     r#   r   r>     s
     !4r&   c                     U R                   $ )a  
Gets the sysctls of this V1PodSecurityContext.
Sysctls hold a list of namespaced sysctls used for the pod. Pods with
unsupported sysctls (by the container runtime) might fail to launch.

:return: The sysctls of this V1PodSecurityContext.
:rtype: list[V1Sysctl]
r    r)   s    r#   r   V1PodSecurityContext.sysctls  s     ==r&   c                     Xl         g)a  
Sets the sysctls of this V1PodSecurityContext.
Sysctls hold a list of namespaced sysctls used for the pod. Pods with
unsupported sysctls (by the container runtime) might fail to launch.

:param sysctls: The sysctls of this V1PodSecurityContext.
:type: list[V1Sysctl]
NrA   )r"   r   s     r#   r   rB     s	     Mr&   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hasattrrF   )xs    r#   <lambda>.V1PodSecurityContext.to_dict.<locals>.<lambda>4  s    I)>)>!))+EAEr&   rF   c                 ^    [        U S   S5      (       a  U S   U S   R                  5       4$ U $ )N   rF   r   rG   )items    r#   rJ   rK   :  s9    47I.. #1gtAw'89 9489r&   )
r   swagger_typesgetattr
isinstancelistmaprH   rF   dictitems)r"   resultattr_values        r#   rF   V1PodSecurityContext.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   rF   r)   s    r#   to_strV1PodSecurityContext.to_strA  s     4<<>""r&   c                 "    U R                  5       $ )z
For `print` and `pprint`
)r\   r)   s    r#   __repr__V1PodSecurityContext.__repr__G  s     ;;=r&   c                 `    [        U[        5      (       d  gU R                  UR                  :H  $ )z(
Returns true if both objects are equal
F)rQ   r   __dict__r"   others     r#   __eq__V1PodSecurityContext.__eq__M  s(     e122==ENN**r&   c                     X:X  + $ )z,
Returns true if both objects are not equal
 rc   s     r#   __ne__V1PodSecurityContext.__ne__V  s     r&   r   )NNNNNNN)__name__
__module____qualname____firstlineno____doc__rO   attribute_mapr$   propertyr   setterr   r   r   r   r   r   rF   r\   r_   re   ri   __static_attributes__rh   r&   r#   r   r      s    ,(!- "' *1-  # $#'"H   ??     & & ! ! , ,"   $ $ " " . .  
% 
% 4 4 	 	 >>
 
.#+r&   r   )ro   pprintr   sixr   reobjectr   rh   r&   r#   <module>rx      s#   	   	H6 Hr&   