Class V1WindowsSecurityContextOptions
java.lang.Object
io.kubernetes.client.openapi.models.V1WindowsSecurityContextOptions
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-02-02T17:56:12.287571Z[Etc/UTC]")
public class V1WindowsSecurityContextOptions
extends Object
WindowsSecurityContextOptions contain Windows-specific options and credentials.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Create an instance of V1WindowsSecurityContextOptions given an JSON stringGMSACredentialSpec 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.GMSACredentialSpecName is the name of the GMSA credential spec to use.HostProcess determines if a container should be run as a 'Host Process' container.The UserName in Windows to run the entrypoint of the container process.gmsaCredentialSpec
(String gmsaCredentialSpec) gmsaCredentialSpecName
(String gmsaCredentialSpecName) int
hashCode()
hostProcess
(Boolean hostProcess) runAsUserName
(String runAsUserName) void
setGmsaCredentialSpec
(String gmsaCredentialSpec) void
setGmsaCredentialSpecName
(String gmsaCredentialSpecName) void
setHostProcess
(Boolean hostProcess) void
setRunAsUserName
(String runAsUserName) toJson()
Convert an instance of V1WindowsSecurityContextOptions to an JSON stringtoString()
static void
validateJsonObject
(com.google.gson.JsonObject jsonObj) Validates the JSON Object and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_GMSA_CREDENTIAL_SPEC
- See Also:
-
SERIALIZED_NAME_GMSA_CREDENTIAL_SPEC_NAME
- See Also:
-
SERIALIZED_NAME_HOST_PROCESS
- See Also:
-
SERIALIZED_NAME_RUN_AS_USER_NAME
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1WindowsSecurityContextOptions
public V1WindowsSecurityContextOptions()
-
-
Method Details
-
gmsaCredentialSpec
-
getGmsaCredentialSpec
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.- Returns:
- gmsaCredentialSpec
-
setGmsaCredentialSpec
-
gmsaCredentialSpecName
-
getGmsaCredentialSpecName
GMSACredentialSpecName is the name of the GMSA credential spec to use.- Returns:
- gmsaCredentialSpecName
-
setGmsaCredentialSpecName
-
hostProcess
-
getHostProcess
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.- Returns:
- hostProcess
-
setHostProcess
-
runAsUserName
-
getRunAsUserName
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.- Returns:
- runAsUserName
-
setRunAsUserName
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonObject
Validates the JSON Object and throws an exception if issues found- Parameters:
jsonObj
- JSON Object- Throws:
IOException
- if the JSON Object is invalid with respect to V1WindowsSecurityContextOptions
-
fromJson
Create an instance of V1WindowsSecurityContextOptions given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1WindowsSecurityContextOptions
- Throws:
IOException
- if the JSON string is invalid with respect to V1WindowsSecurityContextOptions
-
toJson
Convert an instance of V1WindowsSecurityContextOptions to an JSON string- Returns:
- JSON string
-