public final class Container extends 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
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
Container() |
| Modifier and Type | Method and Description |
|---|---|
Container |
clone() |
List<String> |
getArgs()
(Optional) Cloud Run fully managed: supported Cloud Run for Anthos: supported Arguments to the
entrypoint.
|
List<String> |
getCommand() |
List<EnvVar> |
getEnv()
(Optional) Cloud Run fully managed: supported Cloud Run for Anthos: supported List of
environment variables to set in the container.
|
List<EnvFromSource> |
getEnvFrom()
(Optional) Cloud Run fully managed: not supported Cloud Run for Anthos: supported List of
sources to populate environment variables in the container.
|
String |
getImage()
Cloud Run fully managed: only supports containers from Google Container Registry Cloud Run for
Anthos: supported URL of the Container image.
|
String |
getImagePullPolicy()
(Optional) Cloud Run fully managed: not supported Cloud Run for Anthos: supported Image pull
policy.
|
Probe |
getLivenessProbe()
(Optional) Cloud Run fully managed: not supported Cloud Run for Anthos: supported Periodic
probe of container liveness.
|
String |
getName()
(Optional) Name of the container specified as a DNS_LABEL.
|
List<ContainerPort> |
getPorts()
(Optional) List of ports to expose from the container.
|
Probe |
getReadinessProbe()
(Optional) Cloud Run fully managed: not supported Cloud Run for Anthos: supported Periodic
probe of container service readiness.
|
ResourceRequirements |
getResources()
(Optional) Cloud Run fully managed: supported Cloud Run for Anthos: supported Compute Resources
required by this container.
|
SecurityContext |
getSecurityContext()
(Optional) Cloud Run fully managed: not supported Cloud Run for Anthos: supported Security
options the pod should run with.
|
String |
getTerminationMessagePath()
(Optional) Cloud Run fully managed: not supported Cloud Run for Anthos: supported Path at which
the file to which the container's termination message will be written is mounted into the
container's filesystem.
|
String |
getTerminationMessagePolicy()
(Optional) Cloud Run fully managed: not supported Cloud Run for Anthos: supported Indicate how
the termination message should be populated.
|
List<VolumeMount> |
getVolumeMounts()
(Optional) Cloud Run fully managed: not supported Cloud Run for Anthos: supported Pod volumes
to mount into the container's filesystem.
|
String |
getWorkingDir()
(Optional) Cloud Run fully managed: not supported Cloud Run for Anthos: supported Container's
working directory.
|
Container |
set(String fieldName,
Object value) |
Container |
setArgs(List<String> args)
(Optional) Cloud Run fully managed: supported Cloud Run for Anthos: supported Arguments to the
entrypoint.
|
Container |
setCommand(List<String> command) |
Container |
setEnv(List<EnvVar> env)
(Optional) Cloud Run fully managed: supported Cloud Run for Anthos: supported List of
environment variables to set in the container.
|
Container |
setEnvFrom(List<EnvFromSource> envFrom)
(Optional) Cloud Run fully managed: not supported Cloud Run for Anthos: supported List of
sources to populate environment variables in the container.
|
Container |
setImage(String image)
Cloud Run fully managed: only supports containers from Google Container Registry Cloud Run for
Anthos: supported URL of the Container image.
|
Container |
setImagePullPolicy(String imagePullPolicy)
(Optional) Cloud Run fully managed: not supported Cloud Run for Anthos: supported Image pull
policy.
|
Container |
setLivenessProbe(Probe livenessProbe)
(Optional) Cloud Run fully managed: not supported Cloud Run for Anthos: supported Periodic
probe of container liveness.
|
Container |
setName(String name)
(Optional) Name of the container specified as a DNS_LABEL.
|
Container |
setPorts(List<ContainerPort> ports)
(Optional) List of ports to expose from the container.
|
Container |
setReadinessProbe(Probe readinessProbe)
(Optional) Cloud Run fully managed: not supported Cloud Run for Anthos: supported Periodic
probe of container service readiness.
|
Container |
setResources(ResourceRequirements resources)
(Optional) Cloud Run fully managed: supported Cloud Run for Anthos: supported Compute Resources
required by this container.
|
Container |
setSecurityContext(SecurityContext securityContext)
(Optional) Cloud Run fully managed: not supported Cloud Run for Anthos: supported Security
options the pod should run with.
|
Container |
setTerminationMessagePath(String terminationMessagePath)
(Optional) Cloud Run fully managed: not supported Cloud Run for Anthos: supported 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)
(Optional) Cloud Run fully managed: not supported Cloud Run for Anthos: supported Indicate how
the termination message should be populated.
|
Container |
setVolumeMounts(List<VolumeMount> volumeMounts)
(Optional) Cloud Run fully managed: not supported Cloud Run for Anthos: supported Pod volumes
to mount into the container's filesystem.
|
Container |
setWorkingDir(String workingDir)
(Optional) Cloud Run fully managed: not supported Cloud Run for Anthos: supported 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 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 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 GenericJsonpublic Container clone()
clone in class GenericJsonCopyright © 2011–2020 Google. All rights reserved.