public final class Action 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 Life Sciences 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 |
|---|
Action() |
| Modifier and Type | Method and Description |
|---|---|
Action |
clone() |
Boolean |
getAlwaysRun()
By default, after an action fails, no further actions are run.
|
List<String> |
getCommands()
If specified, overrides the `CMD` specified in the container.
|
String |
getContainerName()
An optional name for the container.
|
Secret |
getCredentials()
If the specified image is hosted on a private registry other than Google Container Registry,
the credentials required to pull the image must be specified here as an encrypted secret.
|
Boolean |
getDisableImagePrefetch()
All container images are typically downloaded before any actions are executed.
|
Boolean |
getDisableStandardErrorCapture()
A small portion of the container's standard error stream is typically captured and returned
inside the `ContainerStoppedEvent`.
|
Boolean |
getEnableFuse()
Enable access to the FUSE device for this action.
|
String |
getEntrypoint()
If specified, overrides the `ENTRYPOINT` specified in the container.
|
Map<String,String> |
getEnvironment()
The environment to pass into the container.
|
Boolean |
getIgnoreExitStatus()
Normally, a non-zero exit status causes the pipeline to fail.
|
String |
getImageUri()
Required.
|
Map<String,String> |
getLabels()
Labels to associate with the action.
|
List<Mount> |
getMounts()
A list of mounts to make available to the action.
|
String |
getPidNamespace()
An optional identifier for a PID namespace to run the action inside.
|
Map<String,Integer> |
getPortMappings()
A map of containers to host port mappings for this container.
|
Boolean |
getPublishExposedPorts()
Exposes all ports specified by `EXPOSE` statements in the container.
|
Boolean |
getRunInBackground()
This flag allows an action to continue running in the background while executing subsequent
actions.
|
String |
getTimeout()
The maximum amount of time to give the action to complete.
|
Action |
set(String fieldName,
Object value) |
Action |
setAlwaysRun(Boolean alwaysRun)
By default, after an action fails, no further actions are run.
|
Action |
setCommands(List<String> commands)
If specified, overrides the `CMD` specified in the container.
|
Action |
setContainerName(String containerName)
An optional name for the container.
|
Action |
setCredentials(Secret credentials)
If the specified image is hosted on a private registry other than Google Container Registry,
the credentials required to pull the image must be specified here as an encrypted secret.
|
Action |
setDisableImagePrefetch(Boolean disableImagePrefetch)
All container images are typically downloaded before any actions are executed.
|
Action |
setDisableStandardErrorCapture(Boolean disableStandardErrorCapture)
A small portion of the container's standard error stream is typically captured and returned
inside the `ContainerStoppedEvent`.
|
Action |
setEnableFuse(Boolean enableFuse)
Enable access to the FUSE device for this action.
|
Action |
setEntrypoint(String entrypoint)
If specified, overrides the `ENTRYPOINT` specified in the container.
|
Action |
setEnvironment(Map<String,String> environment)
The environment to pass into the container.
|
Action |
setIgnoreExitStatus(Boolean ignoreExitStatus)
Normally, a non-zero exit status causes the pipeline to fail.
|
Action |
setImageUri(String imageUri)
Required.
|
Action |
setLabels(Map<String,String> labels)
Labels to associate with the action.
|
Action |
setMounts(List<Mount> mounts)
A list of mounts to make available to the action.
|
Action |
setPidNamespace(String pidNamespace)
An optional identifier for a PID namespace to run the action inside.
|
Action |
setPortMappings(Map<String,Integer> portMappings)
A map of containers to host port mappings for this container.
|
Action |
setPublishExposedPorts(Boolean publishExposedPorts)
Exposes all ports specified by `EXPOSE` statements in the container.
|
Action |
setRunInBackground(Boolean runInBackground)
This flag allows an action to continue running in the background while executing subsequent
actions.
|
Action |
setTimeout(String timeout)
The maximum amount of time to give the action to complete.
|
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 Boolean getAlwaysRun()
null for nonepublic Action setAlwaysRun(Boolean alwaysRun)
alwaysRun - alwaysRun or null for nonepublic List<String> getCommands()
null for nonepublic Action setCommands(List<String> commands)
commands - commands or null for nonepublic String getContainerName()
null for nonepublic Action setContainerName(String containerName)
containerName - containerName or null for nonepublic Secret getCredentials()
null for nonepublic Action setCredentials(Secret credentials)
credentials - credentials or null for nonepublic Boolean getDisableImagePrefetch()
null for nonepublic Action setDisableImagePrefetch(Boolean disableImagePrefetch)
disableImagePrefetch - disableImagePrefetch or null for nonepublic Boolean getDisableStandardErrorCapture()
null for nonepublic Action setDisableStandardErrorCapture(Boolean disableStandardErrorCapture)
disableStandardErrorCapture - disableStandardErrorCapture or null for nonepublic Boolean getEnableFuse()
null for nonepublic Action setEnableFuse(Boolean enableFuse)
enableFuse - enableFuse or null for nonepublic String getEntrypoint()
null for nonepublic Action setEntrypoint(String entrypoint)
entrypoint - entrypoint or null for nonepublic Map<String,String> getEnvironment()
null for nonepublic Action setEnvironment(Map<String,String> environment)
environment - environment or null for nonepublic Boolean getIgnoreExitStatus()
null for nonepublic Action setIgnoreExitStatus(Boolean ignoreExitStatus)
ignoreExitStatus - ignoreExitStatus or null for nonepublic String getImageUri()
null for nonepublic Action setImageUri(String imageUri)
imageUri - imageUri or null for nonepublic Map<String,String> getLabels()
null for nonepublic Action setLabels(Map<String,String> labels)
labels - labels or null for nonepublic List<Mount> getMounts()
null for nonepublic Action setMounts(List<Mount> mounts)
mounts - mounts or null for nonepublic String getPidNamespace()
null for nonepublic Action setPidNamespace(String pidNamespace)
pidNamespace - pidNamespace or null for nonepublic Map<String,Integer> getPortMappings()
null for nonepublic Action setPortMappings(Map<String,Integer> portMappings)
portMappings - portMappings or null for nonepublic Boolean getPublishExposedPorts()
null for nonepublic Action setPublishExposedPorts(Boolean publishExposedPorts)
publishExposedPorts - publishExposedPorts or null for nonepublic Boolean getRunInBackground()
null for nonepublic Action setRunInBackground(Boolean runInBackground)
runInBackground - runInBackground or null for nonepublic String getTimeout()
null for nonepublic Action setTimeout(String timeout)
timeout - timeout or null for nonepublic Action set(String fieldName, Object value)
set in class GenericJsonpublic Action clone()
clone in class GenericJsonCopyright © 2011–2019 Google. All rights reserved.