
    <g]                     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
dZdddddd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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ed1        Zej                  d2        Zed3        Zej                  d4        Zd5 Zd6 Zd7 Zd8 Zd9 Zy);V1PodSecurityContextzNOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    V1AppArmorProfileintstrboolV1SELinuxOptionsV1SeccompProfilez	list[int]zlist[V1Sysctl]V1WindowsSecurityContextOptions)app_armor_profilefs_groupfs_group_change_policyrun_as_grouprun_as_non_rootrun_as_userse_linux_change_policyse_linux_optionsseccomp_profilesupplemental_groupssupplemental_groups_policysysctlswindows_optionsappArmorProfilefsGroupfsGroupChangePolicy
runAsGrouprunAsNonRoot	runAsUserseLinuxChangePolicyseLinuxOptionsseccompProfilesupplementalGroupssupplementalGroupsPolicyr   windowsOptionsNc                    |
t               }|| _        d| _        d| _        d| _        d| _        d| _        d| _        d| _        d| _	        d| _
        d| _        d| _        d| _        d| _        d| _        ||| _        ||| _        ||| _        ||| _        ||| _        ||| _        ||| _        ||| _        |	|	| _        |
|
| _        ||| _        ||| _        ||| _        yy)z1V1PodSecurityContext - a model defined in OpenAPIN)r   local_vars_configuration_app_armor_profile	_fs_group_fs_group_change_policy_run_as_group_run_as_non_root_run_as_user_se_linux_change_policy_se_linux_options_seccomp_profile_supplemental_groups_supplemental_groups_policy_sysctls_windows_optionsdiscriminatorr   r   r   r   r   r   r   r   r   r   r   r   r   )selfr   r   r   r   r   r   r   r   r   r   r   r   r   r'   s                  e/var/www/openai/venv/lib/python3.12/site-packages/kubernetes/client/models/v1_pod_security_context.py__init__zV1PodSecurityContext.__init__C   s?   #+'4$(@%"&'+$! $ '+$!% $$(!+/( $!(%6D"$DM!-*@D'# ,D&#2D "*D!-*@D''$4D!&#2D *':D$%1.HD+"DL&#2D  '    c                     | j                   S )zGets the app_armor_profile of this V1PodSecurityContext.  # noqa: E501


        :return: The app_armor_profile of this V1PodSecurityContext.  # noqa: E501
        :rtype: V1AppArmorProfile
        r(   r6   s    r7   r   z&V1PodSecurityContext.app_armor_profiles   s     &&&r9   c                     || _         y)zSets the app_armor_profile of this V1PodSecurityContext.


        :param app_armor_profile: The app_armor_profile of this V1PodSecurityContext.  # noqa: E501
        :type: V1AppArmorProfile
        Nr;   )r6   r   s     r7   r   z&V1PodSecurityContext.app_armor_profile}   s     #4r9   c                     | j                   S )a  Gets the fs_group of this V1PodSecurityContext.  # noqa: E501

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

        :return: The fs_group of this V1PodSecurityContext.  # noqa: E501
        :rtype: int
        r)   r<   s    r7   r   zV1PodSecurityContext.fs_group   s     ~~r9   c                     || _         y)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. Note that this field cannot be set when spec.os.name is windows.  # noqa: E501

        :param fs_group: The fs_group of this V1PodSecurityContext.  # noqa: E501
        :type: int
        Nr?   )r6   r   s     r7   r   zV1PodSecurityContext.fs_group   s     "r9   c                     | j                   S )a  Gets the fs_group_change_policy of this V1PodSecurityContext.  # noqa: E501

        fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified, "Always" is used. Note that this field cannot be set when spec.os.name is windows.  # noqa: E501

        :return: The fs_group_change_policy of this V1PodSecurityContext.  # noqa: E501
        :rtype: str
        r*   r<   s    r7   r   z+V1PodSecurityContext.fs_group_change_policy        +++r9   c                     || _         y)a  Sets the fs_group_change_policy of this V1PodSecurityContext.

        fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified, "Always" is used. Note that this field cannot be set when spec.os.name is windows.  # noqa: E501

        :param fs_group_change_policy: The fs_group_change_policy of this V1PodSecurityContext.  # noqa: E501
        :type: str
        NrB   )r6   r   s     r7   r   z+V1PodSecurityContext.fs_group_change_policy        (>$r9   c                     | j                   S )a  Gets the run_as_group of this V1PodSecurityContext.  # noqa: E501

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

        :return: The run_as_group of this V1PodSecurityContext.  # noqa: E501
        :rtype: int
        r+   r<   s    r7   r   z!V1PodSecurityContext.run_as_group   s     !!!r9   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. 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 V1PodSecurityContext.  # noqa: E501
        :type: int
        NrG   )r6   r   s     r7   r   z!V1PodSecurityContext.run_as_group   s     *r9   c                     | j                   S )af  Gets the run_as_non_root of this V1PodSecurityContext.  # 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 SecurityContext.  If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.  # noqa: E501

        :return: The run_as_non_root of this V1PodSecurityContext.  # noqa: E501
        :rtype: bool
        r,   r<   s    r7   r   z$V1PodSecurityContext.run_as_non_root   s     $$$r9   c                     || _         y)af  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.  # noqa: E501

        :param run_as_non_root: The run_as_non_root of this V1PodSecurityContext.  # noqa: E501
        :type: bool
        NrJ   )r6   r   s     r7   r   z$V1PodSecurityContext.run_as_non_root   s     !0r9   c                     | j                   S )a   Gets the run_as_user of this V1PodSecurityContext.  # 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 SecurityContext.  If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows.  # noqa: E501

        :return: The run_as_user of this V1PodSecurityContext.  # noqa: E501
        :rtype: int
        r-   r<   s    r7   r   z V1PodSecurityContext.run_as_user   s        r9   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. 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 V1PodSecurityContext.  # noqa: E501
        :type: int
        NrM   )r6   r   s     r7   r   z V1PodSecurityContext.run_as_user   s     (r9   c                     | j                   S )a  Gets the se_linux_change_policy of this V1PodSecurityContext.  # noqa: E501

        seLinuxChangePolicy defines how the container's SELinux label is applied to all volumes used by the Pod. It has no effect on nodes that do not support SELinux or to volumes does not support SELinux. Valid values are "MountOption" and "Recursive".  "Recursive" means relabeling of all files on all Pod volumes by the container runtime. This may be slow for large volumes, but allows mixing privileged and unprivileged Pods sharing the same volume on the same node.  "MountOption" mounts all eligible Pod volumes with `-o context` mount option. This requires all Pods that share the same volume to use the same SELinux label. It is not possible to share the same volume among privileged and unprivileged Pods. Eligible volumes are in-tree FibreChannel and iSCSI volumes, and all CSI volumes whose CSI driver announces SELinux support by setting spec.seLinuxMount: true in their CSIDriver instance. Other volumes are always re-labelled recursively. "MountOption" value is allowed only when SELinuxMount feature gate is enabled.  If not specified and SELinuxMount feature gate is enabled, "MountOption" is used. If not specified and SELinuxMount feature gate is disabled, "MountOption" is used for ReadWriteOncePod volumes and "Recursive" for all other volumes.  This field affects only Pods that have SELinux label set, either in PodSecurityContext or in SecurityContext of all containers.  All Pods that use the same volume should use the same seLinuxChangePolicy, otherwise some pods can get stuck in ContainerCreating state. Note that this field cannot be set when spec.os.name is windows.  # noqa: E501

        :return: The se_linux_change_policy of this V1PodSecurityContext.  # noqa: E501
        :rtype: str
        r.   r<   s    r7   r   z+V1PodSecurityContext.se_linux_change_policy   rC   r9   c                     || _         y)a  Sets the se_linux_change_policy of this V1PodSecurityContext.

        seLinuxChangePolicy defines how the container's SELinux label is applied to all volumes used by the Pod. It has no effect on nodes that do not support SELinux or to volumes does not support SELinux. Valid values are "MountOption" and "Recursive".  "Recursive" means relabeling of all files on all Pod volumes by the container runtime. This may be slow for large volumes, but allows mixing privileged and unprivileged Pods sharing the same volume on the same node.  "MountOption" mounts all eligible Pod volumes with `-o context` mount option. This requires all Pods that share the same volume to use the same SELinux label. It is not possible to share the same volume among privileged and unprivileged Pods. Eligible volumes are in-tree FibreChannel and iSCSI volumes, and all CSI volumes whose CSI driver announces SELinux support by setting spec.seLinuxMount: true in their CSIDriver instance. Other volumes are always re-labelled recursively. "MountOption" value is allowed only when SELinuxMount feature gate is enabled.  If not specified and SELinuxMount feature gate is enabled, "MountOption" is used. If not specified and SELinuxMount feature gate is disabled, "MountOption" is used for ReadWriteOncePod volumes and "Recursive" for all other volumes.  This field affects only Pods that have SELinux label set, either in PodSecurityContext or in SecurityContext of all containers.  All Pods that use the same volume should use the same seLinuxChangePolicy, otherwise some pods can get stuck in ContainerCreating state. Note that this field cannot be set when spec.os.name is windows.  # noqa: E501

        :param se_linux_change_policy: The se_linux_change_policy of this V1PodSecurityContext.  # noqa: E501
        :type: str
        NrP   )r6   r   s     r7   r   z+V1PodSecurityContext.se_linux_change_policy  rE   r9   c                     | j                   S )zGets the se_linux_options of this V1PodSecurityContext.  # noqa: E501


        :return: The se_linux_options of this V1PodSecurityContext.  # noqa: E501
        :rtype: V1SELinuxOptions
        r/   r<   s    r7   r   z%V1PodSecurityContext.se_linux_options  s     %%%r9   c                     || _         y)zSets the se_linux_options of this V1PodSecurityContext.


        :param se_linux_options: The se_linux_options of this V1PodSecurityContext.  # noqa: E501
        :type: V1SELinuxOptions
        NrS   )r6   r   s     r7   r   z%V1PodSecurityContext.se_linux_options  s     "2r9   c                     | j                   S )zGets the seccomp_profile of this V1PodSecurityContext.  # noqa: E501


        :return: The seccomp_profile of this V1PodSecurityContext.  # noqa: E501
        :rtype: V1SeccompProfile
        r0   r<   s    r7   r   z$V1PodSecurityContext.seccomp_profile'       $$$r9   c                     || _         y)zSets the seccomp_profile of this V1PodSecurityContext.


        :param seccomp_profile: The seccomp_profile of this V1PodSecurityContext.  # noqa: E501
        :type: V1SeccompProfile
        NrV   )r6   r   s     r7   r   z$V1PodSecurityContext.seccomp_profile1       !0r9   c                     | j                   S )a  Gets the supplemental_groups of this V1PodSecurityContext.  # noqa: E501

        A list of groups applied to the first process run in each container, in addition to the container's primary GID and fsGroup (if specified).  If the SupplementalGroupsPolicy feature is enabled, the supplementalGroupsPolicy field determines whether these are in addition to or instead of any group memberships defined in the container image. If unspecified, no additional groups are added, though group memberships defined in the container image may still be used, depending on the supplementalGroupsPolicy field. Note that this field cannot be set when spec.os.name is windows.  # noqa: E501

        :return: The supplemental_groups of this V1PodSecurityContext.  # noqa: E501
        :rtype: list[int]
        r1   r<   s    r7   r   z(V1PodSecurityContext.supplemental_groups<  s     (((r9   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 and fsGroup (if specified).  If the SupplementalGroupsPolicy feature is enabled, the supplementalGroupsPolicy field determines whether these are in addition to or instead of any group memberships defined in the container image. If unspecified, no additional groups are added, though group memberships defined in the container image may still be used, depending on the supplementalGroupsPolicy field. Note that this field cannot be set when spec.os.name is windows.  # noqa: E501

        :param supplemental_groups: The supplemental_groups of this V1PodSecurityContext.  # noqa: E501
        :type: list[int]
        Nr[   )r6   r   s     r7   r   z(V1PodSecurityContext.supplemental_groupsG  s     %8!r9   c                     | j                   S )aX  Gets the supplemental_groups_policy of this V1PodSecurityContext.  # noqa: E501

        Defines how supplemental groups of the first container processes are calculated. Valid values are "Merge" and "Strict". If not specified, "Merge" is used. (Alpha) Using the field requires the SupplementalGroupsPolicy feature gate to be enabled and the container runtime must implement support for this feature. Note that this field cannot be set when spec.os.name is windows.  # noqa: E501

        :return: The supplemental_groups_policy of this V1PodSecurityContext.  # noqa: E501
        :rtype: str
        r2   r<   s    r7   r   z/V1PodSecurityContext.supplemental_groups_policyS  s     ///r9   c                     || _         y)ac  Sets the supplemental_groups_policy of this V1PodSecurityContext.

        Defines how supplemental groups of the first container processes are calculated. Valid values are "Merge" and "Strict". If not specified, "Merge" is used. (Alpha) Using the field requires the SupplementalGroupsPolicy feature gate to be enabled and the container runtime must implement support for this feature. Note that this field cannot be set when spec.os.name is windows.  # noqa: E501

        :param supplemental_groups_policy: The supplemental_groups_policy of this V1PodSecurityContext.  # noqa: E501
        :type: str
        Nr^   )r6   r   s     r7   r   z/V1PodSecurityContext.supplemental_groups_policy^  s     ,F(r9   c                     | j                   S )a  Gets the sysctls of this V1PodSecurityContext.  # noqa: E501

        Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. Note that this field cannot be set when spec.os.name is windows.  # noqa: E501

        :return: The sysctls of this V1PodSecurityContext.  # noqa: E501
        :rtype: list[V1Sysctl]
        r3   r<   s    r7   r   zV1PodSecurityContext.sysctlsj  s     }}r9   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. Note that this field cannot be set when spec.os.name is windows.  # noqa: E501

        :param sysctls: The sysctls of this V1PodSecurityContext.  # noqa: E501
        :type: list[V1Sysctl]
        Nra   )r6   r   s     r7   r   zV1PodSecurityContext.sysctlsu  s      r9   c                     | j                   S )zGets the windows_options of this V1PodSecurityContext.  # noqa: E501


        :return: The windows_options of this V1PodSecurityContext.  # noqa: E501
        :rtype: V1WindowsSecurityContextOptions
        r4   r<   s    r7   r   z$V1PodSecurityContext.windows_options  rW   r9   c                     || _         y)zSets the windows_options of this V1PodSecurityContext.


        :param windows_options: The windows_options of this V1PodSecurityContext.  # noqa: E501
        :type: V1WindowsSecurityContextOptions
        Nrd   )r6   r   s     r7   r   z$V1PodSecurityContext.windows_options  rY   r9   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hasattrrh   )xs    r7   <lambda>z.V1PodSecurityContext.to_dict.<locals>.<lambda>  s    WQ	-BaiikIIr9   rh   c                 T    t        | d   d      r| d   | d   j                         fS | S )N   rh   r   ri   )items    r7   rl   z.V1PodSecurityContext.to_dict.<locals>.<lambda>  s6    tAw	2 #'q'47??+<!= "=8<"=r9   )six	iteritemsopenapi_typesgetattr
isinstancelistmaprj   rh   dictitems)r6   resultattr_values        r7   rh   zV1PodSecurityContext.to_dict  s    }}T%7%78GD!D$'E%&#CI%  t 	*$}}tE4(#C=KKM%  t  %t! 9$ r9   c                 H    t        j                  | j                               S )z.Returns the string representation of the model)pprintpformatrh   r<   s    r7   to_strzV1PodSecurityContext.to_str  s    ~~dlln--r9   c                 "    | j                         S )zFor `print` and `pprint`)r   r<   s    r7   __repr__zV1PodSecurityContext.__repr__  s    {{}r9   c                 f    t        |t              sy| j                         |j                         k(  S )z&Returns true if both objects are equalFrt   r   rh   r6   others     r7   __eq__zV1PodSecurityContext.__eq__  s'    %!56||~00r9   c                 f    t        |t              sy| j                         |j                         k7  S )z*Returns true if both objects are not equalTr   r   s     r7   __ne__zV1PodSecurityContext.__ne__  s'    %!56||~00r9   )NNNNNNNNNNNNNN)__name__
__module____qualname____doc__rr   attribute_mapr8   propertyr   setterr   r   r   r   r   r   r   r   r   r   r   r   rh   r   r   r   r    r9   r7   r   r      s    1"'!"'.-*&+#<M" /"7$)""7,+3&@+M .3` ' ' 4 4   __	" 	" , , ""	> #	> " " 	* 	* % % 	0 	0 ! ! 	( 	( , , ""	> #	> & & 2 2 % % 0 0 ) ) 	8  	8 0 0  &&	F '	F   ^^	  	  % % 0 00.11r9   r   )r   r~   rerp   kubernetes.client.configurationr   objectr   r   r9   r7   <module>r      s&     	 
 9m16 m1r9   