| Package | Description |
|---|---|
| com.google.api.services.run.v1.model |
| Modifier and Type | Method and Description |
|---|---|
Container |
Container.clone() |
Container |
Container.set(String fieldName,
Object value) |
Container |
Container.setArgs(List<String> args)
(Optional) Cloud Run fully managed: supported Cloud Run for Anthos: supported Arguments to the
entrypoint.
|
Container |
Container.setCommand(List<String> command) |
Container |
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 |
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 |
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 |
Container.setImagePullPolicy(String imagePullPolicy)
(Optional) Cloud Run fully managed: not supported Cloud Run for Anthos: supported Image pull
policy.
|
Container |
Container.setLivenessProbe(Probe livenessProbe)
(Optional) Cloud Run fully managed: not supported Cloud Run for Anthos: supported Periodic
probe of container liveness.
|
Container |
Container.setName(String name)
(Optional) Name of the container specified as a DNS_LABEL.
|
Container |
Container.setPorts(List<ContainerPort> ports)
(Optional) List of ports to expose from the container.
|
Container |
Container.setReadinessProbe(Probe readinessProbe)
(Optional) Cloud Run fully managed: not supported Cloud Run for Anthos: supported Periodic
probe of container service readiness.
|
Container |
Container.setResources(ResourceRequirements resources)
(Optional) Cloud Run fully managed: supported Cloud Run for Anthos: supported Compute Resources
required by this container.
|
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 |
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 |
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 |
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 |
Container.setWorkingDir(String workingDir)
(Optional) Cloud Run fully managed: not supported Cloud Run for Anthos: supported Container's
working directory.
|
| Modifier and Type | Method and Description |
|---|---|
List<Container> |
RevisionSpec.getContainers()
Containers holds the single container that defines the unit of execution for this Revision.
|
| Modifier and Type | Method and Description |
|---|---|
RevisionSpec |
RevisionSpec.setContainers(List<Container> containers)
Containers holds the single container that defines the unit of execution for this Revision.
|
Copyright © 2011–2020 Google. All rights reserved.