kubernetes.client.models.v1_pod_security_context module

Kubernetes

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

The version of the OpenAPI document: release-1.36 Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.

class kubernetes.client.models.v1_pod_security_context.V1PodSecurityContext(*, app_armor_profile: V1AppArmorProfile | None = None, fs_group: Annotated[int, Strict(strict=True)] | None = None, fs_group_change_policy: Annotated[str, Strict(strict=True)] | None = None, run_as_group: Annotated[int, Strict(strict=True)] | None = None, run_as_non_root: Annotated[bool, Strict(strict=True)] | None = None, run_as_user: Annotated[int, Strict(strict=True)] | None = None, se_linux_change_policy: Annotated[str, Strict(strict=True)] | None = None, se_linux_options: V1SELinuxOptions | None = None, seccomp_profile: V1SeccompProfile | None = None, supplemental_groups: List[Annotated[int, Strict(strict=True)]] | None = None, supplemental_groups_policy: Annotated[str, Strict(strict=True)] | None = None, sysctls: List[V1Sysctl] | None = None, windows_options: V1WindowsSecurityContextOptions | None = None)

Bases: BaseModel

PodSecurityContext holds pod-level security attributes and common container settings. Some fields are also present in container.securityContext. Field values of container.securityContext take precedence over field values of PodSecurityContext.

Attributes:
openapi_types (dict): The key is attribute name

and the value is attribute type.

attribute_map (dict): The key is attribute name

and the value is json key in definition.

app_armor_profile: V1AppArmorProfile | None
attribute_map: ClassVar[Dict[str, str]] = {'app_armor_profile': 'appArmorProfile', 'fs_group': 'fsGroup', 'fs_group_change_policy': 'fsGroupChangePolicy', 'run_as_group': 'runAsGroup', 'run_as_non_root': 'runAsNonRoot', 'run_as_user': 'runAsUser', 'se_linux_change_policy': 'seLinuxChangePolicy', 'se_linux_options': 'seLinuxOptions', 'seccomp_profile': 'seccompProfile', 'supplemental_groups': 'supplementalGroups', 'supplemental_groups_policy': 'supplementalGroupsPolicy', 'sysctls': 'sysctls', 'windows_options': 'windowsOptions'}
classmethod from_dict(obj: Dict[str, Any] | None) Self | None

Create an instance of V1PodSecurityContext from a dict

classmethod from_json(json_str: str) Self | None

Create an instance of V1PodSecurityContext from a JSON string

fs_group: StrictInt | None
fs_group_change_policy: StrictStr | None
model_config = {'extra': 'forbid', 'protected_namespaces': (), 'validate_assignment': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

openapi_types: ClassVar[Dict[str, str]] = {'app_armor_profile': 'V1AppArmorProfile', 'fs_group': 'int', 'fs_group_change_policy': 'str', 'run_as_group': 'int', 'run_as_non_root': 'bool', 'run_as_user': 'int', 'se_linux_change_policy': 'str', 'se_linux_options': 'V1SELinuxOptions', 'seccomp_profile': 'V1SeccompProfile', 'supplemental_groups': 'List[int]', 'supplemental_groups_policy': 'str', 'sysctls': 'List[V1Sysctl]', 'windows_options': 'V1WindowsSecurityContextOptions'}
run_as_group: StrictInt | None
run_as_non_root: StrictBool | None
run_as_user: StrictInt | None
se_linux_change_policy: StrictStr | None
se_linux_options: V1SELinuxOptions | None
seccomp_profile: V1SeccompProfile | None
supplemental_groups: List[StrictInt] | None
supplemental_groups_policy: StrictStr | None
sysctls: List[V1Sysctl] | None
to_dict(serialize: bool = False) Dict[str, Any]

Return all declared model fields using public or wire names.

to_json() str

Returns the JSON representation of the model using alias

to_str() str

Returns the string representation of the model

windows_options: V1WindowsSecurityContextOptions | None