
    [jE                     |    d Z 	 ddlmZ n# e$ r	 ddlmZ Y nw xY wddlZddlZddlZddlm	Z	  G d de
          ZdS )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.36
    Generated by: https://openapi-generator.tech
    )getfullargspec)
getargspecN)Configurationc                       e Zd ZdZ	 dddddddddddd	d
Zddddddddddddd
Zd7d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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	        d0             Zd8d2Zd3 Zd4 Zd5 Zd6 ZdS )9V1SecurityContextzNOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    boolV1AppArmorProfileV1CapabilitiesstrintV1SELinuxOptionsV1SeccompProfileV1WindowsSecurityContextOptions)allow_privilege_escalationapp_armor_profilecapabilities
privileged
proc_mountread_only_root_filesystemrun_as_grouprun_as_non_rootrun_as_userse_linux_optionsseccomp_profilewindows_optionsallowPrivilegeEscalationappArmorProfiler   r   	procMountreadOnlyRootFilesystem
runAsGrouprunAsNonRoot	runAsUserseLinuxOptionsseccompProfilewindowsOptionsNc                    |t          j                    }|| _        d| _        d| _        d| _        d| _        d| _        d| _        d| _	        d| _
        d| _        d| _        d| _        d| _        d| _        ||| _        ||| _        ||| _        ||| _        ||| _        ||| _        ||| _        ||| _        |	|	| _        |
|
| _        ||| _        |	|| _        dS dS )z.V1SecurityContext - a model defined in OpenAPIN)r   get_default_copylocal_vars_configuration_allow_privilege_escalation_app_armor_profile_capabilities_privileged_proc_mount_read_only_root_filesystem_run_as_group_run_as_non_root_run_as_user_se_linux_options_seccomp_profile_windows_optionsdiscriminatorr   r   r   r   r   r   r   r   r   r   r   r   )selfr   r   r   r   r   r   r   r   r   r   r   r   r(   s                 i/var/www/FlaskApp/flask-venv/lib/python3.11/site-packages/kubernetes/client/models/v1_security_context.py__init__zV1SecurityContext.__init__D   s;   #+'4'E'G'G$(@%+/("&!*.'! $ !% $ $!%1.HD+(%6D"# ,D!(DO!(DO$0-FD*# ,D&#2D "*D'$4D!&#2D &#2D    '&    c                     | j         S )aF  Gets the allow_privilege_escalation of this V1SecurityContext.  # noqa: E501

        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 Note that this field cannot be set when spec.os.name is windows.  # noqa: E501

        :return: The allow_privilege_escalation of this V1SecurityContext.  # noqa: E501
        :rtype: bool
        r)   r6   s    r7   r   z,V1SecurityContext.allow_privilege_escalationq   s     //r9   c                     || _         dS )al  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 Note that this field cannot be set when spec.os.name is windows.  # noqa: E501

        :param allow_privilege_escalation: The allow_privilege_escalation of this V1SecurityContext.  # noqa: E501
        :type allow_privilege_escalation: bool
        Nr;   )r6   r   s     r7   r   z,V1SecurityContext.allow_privilege_escalation|   s     ,F(((r9   c                     | j         S )zGets the app_armor_profile of this V1SecurityContext.  # noqa: E501


        :return: The app_armor_profile of this V1SecurityContext.  # noqa: E501
        :rtype: V1AppArmorProfile
        r*   r<   s    r7   r   z#V1SecurityContext.app_armor_profile   s     &&r9   c                     || _         dS )zSets the app_armor_profile of this V1SecurityContext.


        :param app_armor_profile: The app_armor_profile of this V1SecurityContext.  # noqa: E501
        :type app_armor_profile: V1AppArmorProfile
        Nr?   )r6   r   s     r7   r   z#V1SecurityContext.app_armor_profile   s     #4r9   c                     | j         S )zGets the capabilities of this V1SecurityContext.  # noqa: E501


        :return: The capabilities of this V1SecurityContext.  # noqa: E501
        :rtype: V1Capabilities
        r+   r<   s    r7   r   zV1SecurityContext.capabilities   s     !!r9   c                     || _         dS )zSets the capabilities of this V1SecurityContext.


        :param capabilities: The capabilities of this V1SecurityContext.  # noqa: E501
        :type capabilities: V1Capabilities
        NrB   )r6   r   s     r7   r   zV1SecurityContext.capabilities   s     *r9   c                     | j         S )a  Gets the privileged of this V1SecurityContext.  # noqa: E501

        Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. Note that this field cannot be set when spec.os.name is windows.  # noqa: E501

        :return: The privileged of this V1SecurityContext.  # noqa: E501
        :rtype: bool
        r,   r<   s    r7   r   zV1SecurityContext.privileged        r9   c                     || _         dS )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. Note that this field cannot be set when spec.os.name is windows.  # noqa: E501

        :param privileged: The privileged of this V1SecurityContext.  # noqa: E501
        :type privileged: bool
        NrE   )r6   r   s     r7   r   zV1SecurityContext.privileged        &r9   c                     | j         S )a  Gets the proc_mount of this V1SecurityContext.  # noqa: E501

        procMount denotes the type of proc mount to use for the containers. The default value is Default which uses the container runtime defaults for readonly paths and masked paths. Note that this field cannot be set when spec.os.name is windows.  # noqa: E501

        :return: The proc_mount of this V1SecurityContext.  # noqa: E501
        :rtype: str
        r-   r<   s    r7   r   zV1SecurityContext.proc_mount   rF   r9   c                     || _         dS )a  Sets the proc_mount of this V1SecurityContext.

        procMount denotes the type of proc mount to use for the containers. The default value is Default which uses the container runtime defaults for readonly paths and masked paths. Note that this field cannot be set when spec.os.name is windows.  # noqa: E501

        :param proc_mount: The proc_mount of this V1SecurityContext.  # noqa: E501
        :type proc_mount: str
        NrJ   )r6   r   s     r7   r   zV1SecurityContext.proc_mount   rH   r9   c                     | j         S )ad  Gets the read_only_root_filesystem of this V1SecurityContext.  # noqa: E501

        Whether this container has a read-only root filesystem. Default is false. Note that this field cannot be set when spec.os.name is windows.  # noqa: E501

        :return: The read_only_root_filesystem of this V1SecurityContext.  # noqa: E501
        :rtype: bool
        r.   r<   s    r7   r   z+V1SecurityContext.read_only_root_filesystem   s     ..r9   c                     || _         dS )a  Sets the read_only_root_filesystem of this V1SecurityContext.

        Whether this container has a read-only root filesystem. Default is false. Note that this field cannot be set when spec.os.name is windows.  # noqa: E501

        :param read_only_root_filesystem: The read_only_root_filesystem of this V1SecurityContext.  # noqa: E501
        :type read_only_root_filesystem: bool
        NrM   )r6   r   s     r7   r   z+V1SecurityContext.read_only_root_filesystem   s     +D'''r9   c                     | j         S )a  Gets the run_as_group of this V1SecurityContext.  # noqa: E501

        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. Note that this field cannot be set when spec.os.name is windows.  # noqa: E501

        :return: The run_as_group of this V1SecurityContext.  # noqa: E501
        :rtype: int
        r/   r<   s    r7   r   zV1SecurityContext.run_as_group   s     !!r9   c                     || _         dS )a  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. Note that this field cannot be set when spec.os.name is windows.  # noqa: E501

        :param run_as_group: The run_as_group of this V1SecurityContext.  # noqa: E501
        :type run_as_group: int
        NrP   )r6   r   s     r7   r   zV1SecurityContext.run_as_group  s     *r9   c                     | j         S )ac  Gets the run_as_non_root of this V1SecurityContext.  # noqa: E501

        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.  # noqa: E501

        :return: The run_as_non_root of this V1SecurityContext.  # noqa: E501
        :rtype: bool
        r0   r<   s    r7   r   z!V1SecurityContext.run_as_non_root  s     $$r9   c                     || _         dS )as  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.  # noqa: E501

        :param run_as_non_root: The run_as_non_root of this V1SecurityContext.  # noqa: E501
        :type run_as_non_root: bool
        NrS   )r6   r   s     r7   r   z!V1SecurityContext.run_as_non_root  s     !0r9   c                     | j         S )a
  Gets the run_as_user of this V1SecurityContext.  # noqa: E501

        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. Note that this field cannot be set when spec.os.name is windows.  # noqa: E501

        :return: The run_as_user of this V1SecurityContext.  # noqa: E501
        :rtype: int
        r1   r<   s    r7   r   zV1SecurityContext.run_as_user%  s       r9   c                     || _         dS )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. Note that this field cannot be set when spec.os.name is windows.  # noqa: E501

        :param run_as_user: The run_as_user of this V1SecurityContext.  # noqa: E501
        :type run_as_user: int
        NrV   )r6   r   s     r7   r   zV1SecurityContext.run_as_user0  s     (r9   c                     | j         S )zGets the se_linux_options of this V1SecurityContext.  # noqa: E501


        :return: The se_linux_options of this V1SecurityContext.  # noqa: E501
        :rtype: V1SELinuxOptions
        r2   r<   s    r7   r   z"V1SecurityContext.se_linux_options<  s     %%r9   c                     || _         dS )zSets the se_linux_options of this V1SecurityContext.


        :param se_linux_options: The se_linux_options of this V1SecurityContext.  # noqa: E501
        :type se_linux_options: V1SELinuxOptions
        NrY   )r6   r   s     r7   r   z"V1SecurityContext.se_linux_optionsF  s     "2r9   c                     | j         S )zGets the seccomp_profile of this V1SecurityContext.  # noqa: E501


        :return: The seccomp_profile of this V1SecurityContext.  # noqa: E501
        :rtype: V1SeccompProfile
        r3   r<   s    r7   r   z!V1SecurityContext.seccomp_profileQ       $$r9   c                     || _         dS )zSets the seccomp_profile of this V1SecurityContext.


        :param seccomp_profile: The seccomp_profile of this V1SecurityContext.  # noqa: E501
        :type seccomp_profile: V1SeccompProfile
        Nr\   )r6   r   s     r7   r   z!V1SecurityContext.seccomp_profile[       !0r9   c                     | j         S )zGets the windows_options of this V1SecurityContext.  # noqa: E501


        :return: The windows_options of this V1SecurityContext.  # noqa: E501
        :rtype: V1WindowsSecurityContextOptions
        r4   r<   s    r7   r   z!V1SecurityContext.windows_optionsf  r]   r9   c                     || _         dS )zSets the windows_options of this V1SecurityContext.


        :param windows_options: The windows_options of this V1SecurityContext.  # noqa: E501
        :type windows_options: V1WindowsSecurityContextOptions
        Nra   )r6   r   s     r7   r   z!V1SecurityContext.windows_optionsp  r_   r9   Fc                    i }fdt          j        | j                  D ]\  }}t          | |          }r| j                            ||          n|}t          |t                    r$t          t          fd|                    ||<   mt          |t                    r6t          t          fd|
                                                    ||<    |          ||<   |S )z&Returns the model properties as a dictc                     t          | d          rUt          | j                  j        }t	          |          dk    r|                                 S |                               S | S )Nto_dict   )hasattrr   re   argslen)xrh   	serializes     r7   convertz*V1SecurityContext.to_dict.<locals>.convert  s[    q)$$ %ai005t99>>99;;&99Y///r9   c                      |           S )N )rj   rl   s    r7   <lambda>z+V1SecurityContext.to_dict.<locals>.<lambda>  s    ggajj r9   c                 6    | d          | d                   fS )Nr   rf   rn   )itemrl   s    r7   ro   z+V1SecurityContext.to_dict.<locals>.<lambda>  s    $q'7747+;+;!< r9   )six	iteritemsopenapi_typesgetattrattribute_mapget
isinstancelistmapdictitems)r6   rk   resultattr_valuerl   s    `    @r7   re   zV1SecurityContext.to_dict{  s   	 	 	 	 	 }T%788 	. 	.GD!D$''E9BL4%))$555D%&& .#C((((% %    t E4(( .#C<<<<KKMM% %    t
  'wu~~tr9   c                 N    t          j        |                                           S )z.Returns the string representation of the model)pprintpformatre   r<   s    r7   to_strzV1SecurityContext.to_str  s    ~dllnn---r9   c                 *    |                                  S )zFor `print` and `pprint`)r   r<   s    r7   __repr__zV1SecurityContext.__repr__  s    {{}}r9   c                     t          |t                    sdS |                                 |                                k    S )z&Returns true if both objects are equalFrx   r   re   r6   others     r7   __eq__zV1SecurityContext.__eq__  s5    %!233 	5||~~00r9   c                     t          |t                    sdS |                                 |                                k    S )z*Returns true if both objects are not equalTr   r   s     r7   __ne__zV1SecurityContext.__ne__  s5    %!233 	4||~~00r9   )NNNNNNNNNNNNN)F)__name__
__module____qualname____doc__rt   rv   r8   propertyr   setterr   r   r   r   r   r   r   r   r   r   r   re   r   r   r   r   rn   r9   r7   r   r      s         '-0(%+!.-< M  'A.&"!%=$)",++ M+3 +3 +3 +3Z 0 0 X0  &	F 	F '&	F ' ' X' 4 4 4 " " X" * * *     X  	& 	& 	&     X  	& 	& 	& / / X/ %	D 	D &%	D " " X" 	* 	* 	* % % X% 	0 	0 	0 ! ! X! 	( 	( 	( & & X& 2 2 2 % % X% 0 0 0 % % X% 0 0 0   @. . .  1 1 11 1 1 1 1r9   r   )r   inspectr   ImportErrorr   r   rerr   kubernetes.client.configurationr   objectr   rn   r9   r7   <module>r      s    5&&&&&&& 5 5 5444444445  				 



 9 9 9 9 9 9W1 W1 W1 W1 W1 W1 W1 W1 W1 W1s    