
    F.                     >    d Z ddlmZ ddlmZ ddlZ G d de      Zy)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                      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)%V1PodSecurityContextzw
    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                     d| _         d| _        d| _        d| _        d| _        d| _        d| _        d| _        ||| _        ||| _	        ||| _
        ||| _        ||| _        ||| _        ||| _        yy)zC
        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__zV1PodSecurityContext.__init__2   s     DND DD!D $DDMDdm&d",d$d#.d&!4ddl     c                     | j                   S )ai  
        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
   zV1PodSecurityContext.fs_groupV   s     >>r#   c                     || _         y)ap  
        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
   zV1PodSecurityContext.fs_groupf   s     DNr#   c                     | j                   S )a  
        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   z!V1PodSecurityContext.run_as_groupw   s     r#   c                     || _         y)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   z!V1PodSecurityContext.run_as_group   s     &Dr#   c                     | j                   S )al  
        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   z$V1PodSecurityContext.run_as_non_root   s        r#   c                     || _         y)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
        Nr,   )r    r   s     r!   r   z$V1PodSecurityContext.run_as_non_root   s      ,Dr#   c                     | j                   S )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   z V1PodSecurityContext.run_as_user   s     r#   c                     || _         y)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
        Nr/   )r    r   s     r!   r   z V1PodSecurityContext.run_as_user   s     $Dr#   c                     | j                   S )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   z%V1PodSecurityContext.se_linux_options   s     !!!r#   c                     || _         y)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
        Nr2   )r    r   s     r!   r   z%V1PodSecurityContext.se_linux_options   s     .Dr#   c                     | j                   S )ar  
        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   z(V1PodSecurityContext.supplemental_groups   s     $$$r#   c                     || _         y)a  
        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]
        Nr5   )r    r   s     r!   r   z(V1PodSecurityContext.supplemental_groups  s     !4Dr#   c                     | j                   S )a6  
        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   zV1PodSecurityContext.sysctls  s     ==r#   c                     || _         y)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]
        Nr8   )r    r   s     r!   r   zV1PodSecurityContext.sysctls  s     DMr#   c                 j   i }t        | j                        D ]  \  }}t        | |      }t        |t              rt	        t        d |            ||<   <t        |d      r|j                         ||<   \t        |t              r(t        t        d |j                                     ||<   |||<    |S )z8
        Returns the model properties as a dict
        c                 >    t        | d      r| j                         S | S )Nto_dicthasattrr<   )xs    r!   <lambda>z.V1PodSecurityContext.to_dict.<locals>.<lambda>4  s    I)>!))+EAEr#   r<   c                 T    t        | d   d      r| d   | d   j                         fS | S )N   r<   r   r=   )items    r!   r@   z.V1PodSecurityContext.to_dict.<locals>.<lambda>:  s6    47I. #1gtAw'89 9489r#   )
r   swagger_typesgetattr
isinstancelistmapr>   r<   dictitems)r    resultattr_values        r!   r<   zV1PodSecurityContext.to_dict*  s     FT//0adD!e	E4	 EuMOt5)$}}teT"9:?++-IJt
 t 1 Mr#   c                 4    t        | j                               S )z@
        Returns the string representation of the model
        )r   r<   r&   s    r!   to_strzV1PodSecurityContext.to_strA  s     4<<>""r#   c                 "    | j                         S )z*
        For `print` and `pprint`
        )rP   r&   s    r!   __repr__zV1PodSecurityContext.__repr__G  s     ;;=r#   c                 V    t        |t              sy| j                  |j                  k(  S )z8
        Returns true if both objects are equal
        F)rF   r   __dict__r    others     r!   __eq__zV1PodSecurityContext.__eq__M  s%     e12==ENN**r#   c                     | |k(   S )z<
        Returns true if both objects are not equal
         rU   s     r!   __ne__zV1PodSecurityContext.__ne__V  s     u}r#   )NNNNNNN)__name__
__module____qualname____doc__rD   attribute_mapr"   propertyr
   setterr   r   r   r   r   r   r<   rP   rR   rW   rZ   rY   r#   r!   r   r      s    ,(!- "' *1-  # $#'"H   ??     & & ! ! , ,"   $ $ " " . .  
% 
% 4 4 	 	 >>
 
.#+r#   r   )r^   pprintr   sixr   reobjectr   rY   r#   r!   <module>rf      s#   	   	H6 Hr#   