kubernetes_asyncio.client.models.v1_windows_security_context_options module

Kubernetes

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

The version of the OpenAPI document: v1.34.3 Generated by: https://openapi-generator.tech

class kubernetes_asyncio.client.models.v1_windows_security_context_options.V1WindowsSecurityContextOptions(gmsa_credential_spec=None, gmsa_credential_spec_name=None, host_process=None, run_as_user_name=None, local_vars_configuration=None)

Bases: object

NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech

Do not edit the class manually.

attribute_map = {'gmsa_credential_spec': 'gmsaCredentialSpec', 'gmsa_credential_spec_name': 'gmsaCredentialSpecName', 'host_process': 'hostProcess', 'run_as_user_name': 'runAsUserName'}
property gmsa_credential_spec

Gets the gmsa_credential_spec of this V1WindowsSecurityContextOptions. # noqa: E501

GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. # noqa: E501

Returns:

The gmsa_credential_spec of this V1WindowsSecurityContextOptions. # noqa: E501

Return type:

str

property gmsa_credential_spec_name

Gets the gmsa_credential_spec_name of this V1WindowsSecurityContextOptions. # noqa: E501

GMSACredentialSpecName is the name of the GMSA credential spec to use. # noqa: E501

Returns:

The gmsa_credential_spec_name of this V1WindowsSecurityContextOptions. # noqa: E501

Return type:

str

property host_process

Gets the host_process of this V1WindowsSecurityContextOptions. # noqa: E501

HostProcess determines if a container should be run as a ‘Host Process’ container. All of a Pod’s containers must have the same effective HostProcess value (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers). In addition, if HostProcess is true then HostNetwork must also be set to true. # noqa: E501

Returns:

The host_process of this V1WindowsSecurityContextOptions. # noqa: E501

Return type:

bool

openapi_types = {'gmsa_credential_spec': 'str', 'gmsa_credential_spec_name': 'str', 'host_process': 'bool', 'run_as_user_name': 'str'}
property run_as_user_name

Gets the run_as_user_name of this V1WindowsSecurityContextOptions. # noqa: E501

The UserName in Windows to run the entrypoint of the container process. Defaults to the 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. # noqa: E501

Returns:

The run_as_user_name of this V1WindowsSecurityContextOptions. # noqa: E501

Return type:

str

to_dict(serialize=False)

Returns the model properties as a dict

to_str()

Returns the string representation of the model