Class ContainerExecRequest
java.lang.Object
io.github.alersrt.pod4j.openapi.model.ContainerExecRequest
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-11-29T01:29:49.168634544+07:00[Asia/Barnaul]",
comments="Generator version: 7.7.0")
public class ContainerExecRequest
extends Object
ContainerExecRequest
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddCmdItem(String cmdItem) addEnvItem(String envItem) attachStderr(Boolean attachStderr) attachStdin(Boolean attachStdin) attachStdout(Boolean attachStdout) detachKeys(String detachKeys) booleanstatic ContainerExecRequestCreate an instance of ContainerExecRequest given an JSON stringAttach to stderr of the exec commandAttach to stdin of the exec commandAttach to stdout of the exec commandgetCmd()Command to run, as a string or array of strings.\"Override the key sequence for detaching a container.getEnv()A list of environment variables in the form [\"VAR=value\", ...]Runs the exec process with extended privilegesgetTty()Allocate a pseudo-TTYgetUser()\"The user, and optionally, group to run the exec process inside the container.The working directory for the exec process inside the container.inthashCode()privileged(Boolean privileged) voidsetAttachStderr(Boolean attachStderr) voidsetAttachStdin(Boolean attachStdin) voidsetAttachStdout(Boolean attachStdout) voidvoidsetDetachKeys(String detachKeys) voidvoidsetPrivileged(Boolean privileged) voidvoidvoidsetWorkingDir(String workingDir) toJson()Convert an instance of ContainerExecRequest to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues foundworkingDir(String workingDir)
-
Field Details
-
SERIALIZED_NAME_ATTACH_STDERR
- See Also:
-
SERIALIZED_NAME_ATTACH_STDIN
- See Also:
-
SERIALIZED_NAME_ATTACH_STDOUT
- See Also:
-
SERIALIZED_NAME_CMD
- See Also:
-
SERIALIZED_NAME_DETACH_KEYS
- See Also:
-
SERIALIZED_NAME_ENV
- See Also:
-
SERIALIZED_NAME_PRIVILEGED
- See Also:
-
SERIALIZED_NAME_TTY
- See Also:
-
SERIALIZED_NAME_USER
- See Also:
-
SERIALIZED_NAME_WORKING_DIR
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ContainerExecRequest
public ContainerExecRequest()
-
-
Method Details
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to ContainerExecRequest
-
fromJson
Create an instance of ContainerExecRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ContainerExecRequest
- Throws:
IOException- if the JSON string is invalid with respect to ContainerExecRequest
-
attachStderr
-
getAttachStderr
Attach to stderr of the exec command- Returns:
- attachStderr
-
setAttachStderr
-
attachStdin
-
getAttachStdin
Attach to stdin of the exec command- Returns:
- attachStdin
-
setAttachStdin
-
attachStdout
-
getAttachStdout
Attach to stdout of the exec command- Returns:
- attachStdout
-
setAttachStdout
-
cmd
-
addCmdItem
-
getCmd
Command to run, as a string or array of strings.- Returns:
- cmd
-
setCmd
-
detachKeys
-
getDetachKeys
\"Override the key sequence for detaching a container. Format is a single character [a-Z] or ctrl-<value> where <value> is one of: a-z, @, ^, [, , or _.\"- Returns:
- detachKeys
-
setDetachKeys
-
env
-
addEnvItem
-
getEnv
A list of environment variables in the form [\"VAR=value\", ...]- Returns:
- env
-
setEnv
-
privileged
-
getPrivileged
Runs the exec process with extended privileges- Returns:
- privileged
-
setPrivileged
-
tty
-
getTty
Allocate a pseudo-TTY- Returns:
- tty
-
setTty
-
user
-
getUser
\"The user, and optionally, group to run the exec process inside the container. Format is one of: user, user:group, uid, or uid:gid.\"- Returns:
- user
-
setUser
-
workingDir
-
getWorkingDir
The working directory for the exec process inside the container.- Returns:
- workingDir
-
setWorkingDir
-
equals
-
hashCode
public int hashCode() -
toString
-
toJson
Convert an instance of ContainerExecRequest to an JSON string- Returns:
- JSON string
-