public final class Container
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Cloud Run Admin API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
Container() |
| Modifier and Type | Method and Description |
|---|---|
Container |
clone() |
List<String> |
getArgs()
Arguments to the entrypoint.
|
List<String> |
getCommand()
Entrypoint array.
|
List<EnvVar> |
getEnv()
List of environment variables to set in the container.
|
List<EnvFromSource> |
getEnvFrom()
Not supported by Cloud Run.
|
String |
getImage()
Required.
|
String |
getImagePullPolicy()
Image pull policy.
|
Probe |
getLivenessProbe()
Periodic probe of container liveness.
|
String |
getName()
Name of the container specified as a DNS_LABEL (RFC 1123).
|
List<ContainerPort> |
getPorts()
List of ports to expose from the container.
|
Probe |
getReadinessProbe()
Not supported by Cloud Run.
|
ResourceRequirements |
getResources()
Compute Resources required by this container.
|
SecurityContext |
getSecurityContext()
Not supported by Cloud Run.
|
Probe |
getStartupProbe()
Startup probe of application within the container.
|
String |
getTerminationMessagePath()
Path at which the file to which the container's termination message will be written is mounted
into the container's filesystem.
|
String |
getTerminationMessagePolicy()
Indicate how the termination message should be populated.
|
List<VolumeMount> |
getVolumeMounts()
Volume to mount into the container's filesystem.
|
String |
getWorkingDir()
Container's working directory.
|
Container |
set(String fieldName,
Object value) |
Container |
setArgs(List<String> args)
Arguments to the entrypoint.
|
Container |
setCommand(List<String> command)
Entrypoint array.
|
Container |
setEnv(List<EnvVar> env)
List of environment variables to set in the container.
|
Container |
setEnvFrom(List<EnvFromSource> envFrom)
Not supported by Cloud Run.
|
Container |
setImage(String image)
Required.
|
Container |
setImagePullPolicy(String imagePullPolicy)
Image pull policy.
|
Container |
setLivenessProbe(Probe livenessProbe)
Periodic probe of container liveness.
|
Container |
setName(String name)
Name of the container specified as a DNS_LABEL (RFC 1123).
|
Container |
setPorts(List<ContainerPort> ports)
List of ports to expose from the container.
|
Container |
setReadinessProbe(Probe readinessProbe)
Not supported by Cloud Run.
|
Container |
setResources(ResourceRequirements resources)
Compute Resources required by this container.
|
Container |
setSecurityContext(SecurityContext securityContext)
Not supported by Cloud Run.
|
Container |
setStartupProbe(Probe startupProbe)
Startup probe of application within the container.
|
Container |
setTerminationMessagePath(String terminationMessagePath)
Path at which the file to which the container's termination message will be written is mounted
into the container's filesystem.
|
Container |
setTerminationMessagePolicy(String terminationMessagePolicy)
Indicate how the termination message should be populated.
|
Container |
setVolumeMounts(List<VolumeMount> volumeMounts)
Volume to mount into the container's filesystem.
|
Container |
setWorkingDir(String workingDir)
Container's working directory.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic List<String> getArgs()
null for nonepublic Container setArgs(List<String> args)
args - args or null for nonepublic List<String> getCommand()
null for nonepublic Container setCommand(List<String> command)
command - command or null for nonepublic List<EnvVar> getEnv()
null for nonepublic Container setEnv(List<EnvVar> env)
env - env or null for nonepublic List<EnvFromSource> getEnvFrom()
null for nonepublic Container setEnvFrom(List<EnvFromSource> envFrom)
envFrom - envFrom or null for nonepublic String getImage()
null for nonepublic Container setImage(String image)
image - image or null for nonepublic String getImagePullPolicy()
null for nonepublic Container setImagePullPolicy(String imagePullPolicy)
imagePullPolicy - imagePullPolicy or null for nonepublic Probe getLivenessProbe()
null for nonepublic Container setLivenessProbe(Probe livenessProbe)
livenessProbe - livenessProbe or null for nonepublic String getName()
null for nonepublic Container setName(String name)
name - name or null for nonepublic List<ContainerPort> getPorts()
null for nonepublic Container setPorts(List<ContainerPort> ports)
ports - ports or null for nonepublic Probe getReadinessProbe()
null for nonepublic Container setReadinessProbe(Probe readinessProbe)
readinessProbe - readinessProbe or null for nonepublic ResourceRequirements getResources()
null for nonepublic Container setResources(ResourceRequirements resources)
resources - resources or null for nonepublic SecurityContext getSecurityContext()
null for nonepublic Container setSecurityContext(SecurityContext securityContext)
securityContext - securityContext or null for nonepublic Probe getStartupProbe()
null for nonepublic Container setStartupProbe(Probe startupProbe)
startupProbe - startupProbe or null for nonepublic String getTerminationMessagePath()
null for nonepublic Container setTerminationMessagePath(String terminationMessagePath)
terminationMessagePath - terminationMessagePath or null for nonepublic String getTerminationMessagePolicy()
null for nonepublic Container setTerminationMessagePolicy(String terminationMessagePolicy)
terminationMessagePolicy - terminationMessagePolicy or null for nonepublic List<VolumeMount> getVolumeMounts()
null for nonepublic Container setVolumeMounts(List<VolumeMount> volumeMounts)
volumeMounts - volumeMounts or null for nonepublic String getWorkingDir()
null for nonepublic Container setWorkingDir(String workingDir)
workingDir - workingDir or null for nonepublic Container set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic Container clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2024 Google. All rights reserved.