Class: Google::Apis::GenomicsV2alpha1::Action
- Inherits:
-
Object
- Object
- Google::Apis::GenomicsV2alpha1::Action
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/genomics_v2alpha1/classes.rb,
generated/google/apis/genomics_v2alpha1/representations.rb,
generated/google/apis/genomics_v2alpha1/representations.rb
Overview
Action specifies a single action that runs a docker container.
Instance Attribute Summary collapse
-
#commands ⇒ Array<String>
If specified, overrides the CMD specified in the container.
-
#entrypoint ⇒ String
If specified, overrides the ENTRYPOINT specified in the container.
-
#environment ⇒ Hash<String,String>
The environment to pass into the container.
-
#flags ⇒ Array<String>
The set of flags to apply to this action.
-
#image_uri ⇒ String
The URI to pull the container image from.
-
#labels ⇒ Hash<String,String>
Labels to associate with the action.
-
#mounts ⇒ Array<Google::Apis::GenomicsV2alpha1::Mount>
A list of mounts to make available to the action.
-
#name ⇒ String
An optional name for the container.
-
#pid_namespace ⇒ String
The PID namespace to run the action inside.
-
#port_mappings ⇒ Hash<String,Fixnum>
A map of container to host port mappings for this container.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Action
constructor
A new instance of Action.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Action
Returns a new instance of Action
123 124 125 |
# File 'generated/google/apis/genomics_v2alpha1/classes.rb', line 123 def initialize(**args) update!(**args) end |
Instance Attribute Details
#commands ⇒ Array<String>
If specified, overrides the CMD specified in the container. If the
container also has an ENTRYPOINT the values are used as entrypoint
arguments. Otherwise, they are used as a command and arguments to run
inside the container.
Corresponds to the JSON property commands
35 36 37 |
# File 'generated/google/apis/genomics_v2alpha1/classes.rb', line 35 def commands @commands end |
#entrypoint ⇒ String
If specified, overrides the ENTRYPOINT specified in the container.
Corresponds to the JSON property entrypoint
40 41 42 |
# File 'generated/google/apis/genomics_v2alpha1/classes.rb', line 40 def entrypoint @entrypoint end |
#environment ⇒ Hash<String,String>
The environment to pass into the container. This environment is merged
with any values specified in the Pipeline message. These values overwrite
any in the Pipeline message.
In addition to the values passed here, a few other values are
automatically injected into the environment. These cannot be hidden or
overwritten.
GOOGLE_PIPELINE_FAILED
will be set to "1" if the pipeline has failed
because an action has exited with a non-zero status (and did not have the
IGNORE_EXIT_STATUS flag set). This can be used to determine if additional
debug or logging actions should execute.
GOOGLE_LAST_EXIT_STATUS
will be set to the exit status of the last
non-background action that executed. This can be used by workflow engine
authors to determine whether an individual action has succeeded or failed.
Corresponds to the JSON property environment
57 58 59 |
# File 'generated/google/apis/genomics_v2alpha1/classes.rb', line 57 def environment @environment end |
#flags ⇒ Array<String>
The set of flags to apply to this action.
Corresponds to the JSON property flags
62 63 64 |
# File 'generated/google/apis/genomics_v2alpha1/classes.rb', line 62 def flags @flags end |
#image_uri ⇒ String
The URI to pull the container image from. Note that all images referenced
by actions in the pipeline are pulled before the first action runs. If
multiple actions reference the same image, it is only pulled once,
ensuring that the same image is used for all actions in a single pipeline.
Corresponds to the JSON property imageUri
70 71 72 |
# File 'generated/google/apis/genomics_v2alpha1/classes.rb', line 70 def image_uri @image_uri end |
#labels ⇒ Hash<String,String>
Labels to associate with the action. This field is provided to assist
workflow engine authors in identifying actions (for example, to indicate
what sort of action they perform: eg. localization, debugging, etc). They
are returned in the operation metadata but are otherwise ignored.
Corresponds to the JSON property labels
78 79 80 |
# File 'generated/google/apis/genomics_v2alpha1/classes.rb', line 78 def labels @labels end |
#mounts ⇒ Array<Google::Apis::GenomicsV2alpha1::Mount>
A list of mounts to make available to the action. In addition to the values specified here, every action has a special virtual disk mounted under /google that contains log files and other operational components.
/google/logs
: all logs written during the pipeline execution are stored here./google/logs/output
: the combined standard output and standard error of all actions run as part of the pipeline execution./google/logs/action/*/stdout
: the complete contents of each individual action's standard output/google/logs/action/*/stderr
: the complete contents of each individual action's standard error output
Corresponds to the JSON property mounts
97 98 99 |
# File 'generated/google/apis/genomics_v2alpha1/classes.rb', line 97 def mounts @mounts end |
#name ⇒ String
An optional name for the container. The container hostname will be set to
this name, making it useful for inter-container communication. The name
must contain only upper and lowercase alphanumeric characters and hypens
and cannot start with a hypen.
Corresponds to the JSON property name
105 106 107 |
# File 'generated/google/apis/genomics_v2alpha1/classes.rb', line 105 def name @name end |
#pid_namespace ⇒ String
The PID namespace to run the action inside. If unspecified, a separate
isolated namespace is used.
Corresponds to the JSON property pidNamespace
111 112 113 |
# File 'generated/google/apis/genomics_v2alpha1/classes.rb', line 111 def pid_namespace @pid_namespace end |
#port_mappings ⇒ Hash<String,Fixnum>
A map of container to host port mappings for this container. Note that if
the container already specifies exposed ports, the PUBLISH_EXPOSED_PORTS
flag should be used instead.
The host port number must be less than 65536. If it is zero, an unused
random port is assigned. To determine the resulting port number, consult
the ContainerStartedEvent in the operation metadata.
Corresponds to the JSON property portMappings
121 122 123 |
# File 'generated/google/apis/genomics_v2alpha1/classes.rb', line 121 def port_mappings @port_mappings end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
128 129 130 131 132 133 134 135 136 137 138 139 |
# File 'generated/google/apis/genomics_v2alpha1/classes.rb', line 128 def update!(**args) @commands = args[:commands] if args.key?(:commands) @entrypoint = args[:entrypoint] if args.key?(:entrypoint) @environment = args[:environment] if args.key?(:environment) @flags = args[:flags] if args.key?(:flags) @image_uri = args[:image_uri] if args.key?(:image_uri) @labels = args[:labels] if args.key?(:labels) @mounts = args[:mounts] if args.key?(:mounts) @name = args[:name] if args.key?(:name) @pid_namespace = args[:pid_namespace] if args.key?(:pid_namespace) @port_mappings = args[:port_mappings] if args.key?(:port_mappings) end |