
    <g]C                     B    d Z ddlZddlZddlZddlmZ  G d de      Zy)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.32
    Generated by: https://openapi-generator.tech
    N)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d6d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d1 Zd2 Zd3 Zd4 Zd5 Zy)7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               }|| _        d| _        d| _        d| _        d| _        d| _        d| _        d| _        d| _	        d| _
        d| _        d| _        d| _        d| _        ||| _        ||| _        ||| _        ||| _        ||| _        ||| _        ||| _        ||| _        |	|	| _        |
|
| _        ||| _        ||| _        yy)z.V1SecurityContext - a model defined in OpenAPIN)r   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                 a/var/www/openai/venv/lib/python3.12/site-packages/kubernetes/client/models/v1_security_context.py__init__zV1SecurityContext.__init__A   s+   #+'4$(@%+/("&!*.'! $ !% $ $!%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&   r3   s    r4   r   z,V1SecurityContext.allow_privilege_escalationn   s     ///r6   c                     || _         y)aQ  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: bool
        Nr8   )r3   r   s     r4   r   z,V1SecurityContext.allow_privilege_escalationy   s     ,F(r6   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'   r9   s    r4   r   z#V1SecurityContext.app_armor_profile   s     &&&r6   c                     || _         y)zSets the app_armor_profile of this V1SecurityContext.


        :param app_armor_profile: The app_armor_profile of this V1SecurityContext.  # noqa: E501
        :type: V1AppArmorProfile
        Nr<   )r3   r   s     r4   r   z#V1SecurityContext.app_armor_profile   s     #4r6   c                     | j                   S )zGets the capabilities of this V1SecurityContext.  # noqa: E501


        :return: The capabilities of this V1SecurityContext.  # noqa: E501
        :rtype: V1Capabilities
        r(   r9   s    r4   r   zV1SecurityContext.capabilities   s     !!!r6   c                     || _         y)zSets the capabilities of this V1SecurityContext.


        :param capabilities: The capabilities of this V1SecurityContext.  # noqa: E501
        :type: V1Capabilities
        Nr?   )r3   r   s     r4   r   zV1SecurityContext.capabilities   s     *r6   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)   r9   s    r4   r   zV1SecurityContext.privileged        r6   c                     || _         y)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: bool
        NrB   )r3   r   s     r4   r   zV1SecurityContext.privileged        &r6   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. This requires the ProcMountType feature flag to be enabled. 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*   r9   s    r4   r   zV1SecurityContext.proc_mount   rC   r6   c                     || _         y)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. This requires the ProcMountType feature flag to be enabled. 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: str
        NrG   )r3   r   s     r4   r   zV1SecurityContext.proc_mount   rE   r6   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+   r9   s    r4   r   z+V1SecurityContext.read_only_root_filesystem   s     ...r6   c                     || _         y)an  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: bool
        NrJ   )r3   r   s     r4   r   z+V1SecurityContext.read_only_root_filesystem   s     +D'r6   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,   r9   s    r4   r   zV1SecurityContext.run_as_group   s     !!!r6   c                     || _         y)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: int
        NrM   )r3   r   s     r4   r   zV1SecurityContext.run_as_group   s     *r6   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
        r-   r9   s    r4   r   z!V1SecurityContext.run_as_non_root  s     $$$r6   c                     || _         y)ac  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: bool
        NrP   )r3   r   s     r4   r   z!V1SecurityContext.run_as_non_root  s     !0r6   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
        r.   r9   s    r4   r   zV1SecurityContext.run_as_user"  s        r6   c                     || _         y)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: int
        NrS   )r3   r   s     r4   r   zV1SecurityContext.run_as_user-  s     (r6   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
        r/   r9   s    r4   r   z"V1SecurityContext.se_linux_options9  s     %%%r6   c                     || _         y)zSets the se_linux_options of this V1SecurityContext.


        :param se_linux_options: The se_linux_options of this V1SecurityContext.  # noqa: E501
        :type: V1SELinuxOptions
        NrV   )r3   r   s     r4   r   z"V1SecurityContext.se_linux_optionsC  s     "2r6   c                     | j                   S )zGets the seccomp_profile of this V1SecurityContext.  # noqa: E501


        :return: The seccomp_profile of this V1SecurityContext.  # noqa: E501
        :rtype: V1SeccompProfile
        r0   r9   s    r4   r   z!V1SecurityContext.seccomp_profileN       $$$r6   c                     || _         y)zSets the seccomp_profile of this V1SecurityContext.


        :param seccomp_profile: The seccomp_profile of this V1SecurityContext.  # noqa: E501
        :type: V1SeccompProfile
        NrY   )r3   r   s     r4   r   z!V1SecurityContext.seccomp_profileX       !0r6   c                     | j                   S )zGets the windows_options of this V1SecurityContext.  # noqa: E501


        :return: The windows_options of this V1SecurityContext.  # noqa: E501
        :rtype: V1WindowsSecurityContextOptions
        r1   r9   s    r4   r   z!V1SecurityContext.windows_optionsc  rZ   r6   c                     || _         y)zSets the windows_options of this V1SecurityContext.


        :param windows_options: The windows_options of this V1SecurityContext.  # noqa: E501
        :type: V1WindowsSecurityContextOptions
        Nr^   )r3   r   s     r4   r   z!V1SecurityContext.windows_optionsm  r\   r6   c                 ~   i }t        j                  | j                        D ]  \  }}t        | |      }t	        |t
              rt        t        d |            ||<   <t        |d      r|j                         ||<   \t	        |t              r(t        t        d |j                                     ||<   |||<    |S )z&Returns the model properties as a dictc                 >    t        | d      r| j                         S | S )Nto_dicthasattrrb   )xs    r4   <lambda>z+V1SecurityContext.to_dict.<locals>.<lambda>  s    WQ	-BaiikIIr6   rb   c                 T    t        | d   d      r| d   | d   j                         fS | S )N   rb   r   rc   )items    r4   rf   z+V1SecurityContext.to_dict.<locals>.<lambda>  s6    tAw	2 #'q'47??+<!= "=8<"=r6   )six	iteritemsopenapi_typesgetattr
isinstancelistmaprd   rb   dictitems)r3   resultattr_values        r4   rb   zV1SecurityContext.to_dictx  s    }}T%7%78GD!D$'E%&#CI%  t 	*$}}tE4(#C=KKM%  t  %t! 9$ r6   c                 H    t        j                  | j                               S )z.Returns the string representation of the model)pprintpformatrb   r9   s    r4   to_strzV1SecurityContext.to_str  s    ~~dlln--r6   c                 "    | j                         S )zFor `print` and `pprint`)rz   r9   s    r4   __repr__zV1SecurityContext.__repr__  s    {{}r6   c                 f    t        |t              sy| j                         |j                         k(  S )z&Returns true if both objects are equalFrn   r   rb   r3   others     r4   __eq__zV1SecurityContext.__eq__  s'    %!23||~00r6   c                 f    t        |t              sy| j                         |j                         k7  S )z*Returns true if both objects are not equalTr~   r   s     r4   __ne__zV1SecurityContext.__ne__  s'    %!23||~00r6   )NNNNNNNNNNNNN)__name__
__module____qualname____doc__rl   attribute_mapr5   propertyr   setterr   r   r   r   r   r   r   r   r   r   r   rb   rz   r|   r   r    r6   r4   r   r      s    '-0(%+!.-<M  'A.&"!%=$)",++M+3Z 0 0  &&	F '	F ' ' 4 4 " " * *     	& 	&     	& 	& / / %%	D &	D " " 	* 	* % % 	0 	0 ! ! 	( 	( & & 2 2 % % 0 0 % % 0 00.11r6   r   )r   rx   rerj   kubernetes.client.configurationr   objectr   r   r6   r4   <module>r      s&     	 
 9O1 O1r6   