Class: Google::Apis::RemotebuildexecutionV1alpha::GoogleDevtoolsRemoteworkersV1test2CommandTaskInputs
- Inherits:
-
Object
- Object
- Google::Apis::RemotebuildexecutionV1alpha::GoogleDevtoolsRemoteworkersV1test2CommandTaskInputs
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/remotebuildexecution_v1alpha/classes.rb,
generated/google/apis/remotebuildexecution_v1alpha/representations.rb,
generated/google/apis/remotebuildexecution_v1alpha/representations.rb
Overview
Describes the inputs to a shell-style task.
Instance Attribute Summary collapse
-
#arguments ⇒ Array<String>
The command itself to run (e.g., argv).
-
#environment_variables ⇒ Array<Google::Apis::RemotebuildexecutionV1alpha::GoogleDevtoolsRemoteworkersV1test2CommandTaskInputsEnvironmentVariable>
All environment variables required by the task.
-
#files ⇒ Array<Google::Apis::RemotebuildexecutionV1alpha::GoogleDevtoolsRemoteworkersV1test2Digest>
The input filesystem to be set up prior to the task beginning.
-
#inline_blobs ⇒ Array<Google::Apis::RemotebuildexecutionV1alpha::GoogleDevtoolsRemoteworkersV1test2Blob>
Inline contents for blobs expected to be needed by the bot to execute the task.
-
#working_directory ⇒ String
Directory from which a command is executed.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleDevtoolsRemoteworkersV1test2CommandTaskInputs
constructor
A new instance of GoogleDevtoolsRemoteworkersV1test2CommandTaskInputs.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GoogleDevtoolsRemoteworkersV1test2CommandTaskInputs
Returns a new instance of GoogleDevtoolsRemoteworkersV1test2CommandTaskInputs.
2474 2475 2476 |
# File 'generated/google/apis/remotebuildexecution_v1alpha/classes.rb', line 2474 def initialize(**args) update!(**args) end |
Instance Attribute Details
#arguments ⇒ Array<String>
The command itself to run (e.g., argv).
This field should be passed directly to the underlying operating system,
and so it must be sensible to that operating system. For example, on
Windows, the first argument might be "C:\Windows\System32\ping.exe" -
that is, using drive letters and backslashes. A command for a *nix
system, on the other hand, would use forward slashes.
All other fields in the RWAPI must consistently use forward slashes,
since those fields may be interpretted by both the service and the bot.
Corresponds to the JSON property arguments
2438 2439 2440 |
# File 'generated/google/apis/remotebuildexecution_v1alpha/classes.rb', line 2438 def arguments @arguments end |
#environment_variables ⇒ Array<Google::Apis::RemotebuildexecutionV1alpha::GoogleDevtoolsRemoteworkersV1test2CommandTaskInputsEnvironmentVariable>
All environment variables required by the task.
Corresponds to the JSON property environmentVariables
2443 2444 2445 |
# File 'generated/google/apis/remotebuildexecution_v1alpha/classes.rb', line 2443 def environment_variables @environment_variables end |
#files ⇒ Array<Google::Apis::RemotebuildexecutionV1alpha::GoogleDevtoolsRemoteworkersV1test2Digest>
The input filesystem to be set up prior to the task beginning. The
contents should be a repeated set of FileMetadata messages though other
formats are allowed if better for the implementation (eg, a LUCI-style
.isolated file).
This field is repeated since implementations might want to cache the
metadata, in which case it may be useful to break up portions of the
filesystem that change frequently (eg, specific input files) from those
that don't (eg, standard header files).
Corresponds to the JSON property files
2455 2456 2457 |
# File 'generated/google/apis/remotebuildexecution_v1alpha/classes.rb', line 2455 def files @files end |
#inline_blobs ⇒ Array<Google::Apis::RemotebuildexecutionV1alpha::GoogleDevtoolsRemoteworkersV1test2Blob>
Inline contents for blobs expected to be needed by the bot to execute the
task. For example, contents of entries in files
or blobs that are
indirectly referenced by an entry there.
The bot should check against this list before downloading required task
inputs to reduce the number of communications between itself and the
remote CAS server.
Corresponds to the JSON property inlineBlobs
2465 2466 2467 |
# File 'generated/google/apis/remotebuildexecution_v1alpha/classes.rb', line 2465 def inline_blobs @inline_blobs end |
#working_directory ⇒ String
Directory from which a command is executed. It is a relative directory
with respect to the bot's working directory (i.e., "./"). If it is
non-empty, then it must exist under "./". Otherwise, "./" will be used.
Corresponds to the JSON property workingDirectory
2472 2473 2474 |
# File 'generated/google/apis/remotebuildexecution_v1alpha/classes.rb', line 2472 def working_directory @working_directory end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2479 2480 2481 2482 2483 2484 2485 |
# File 'generated/google/apis/remotebuildexecution_v1alpha/classes.rb', line 2479 def update!(**args) @arguments = args[:arguments] if args.key?(:arguments) @environment_variables = args[:environment_variables] if args.key?(:environment_variables) @files = args[:files] if args.key?(:files) @inline_blobs = args[:inline_blobs] if args.key?(:inline_blobs) @working_directory = args[:working_directory] if args.key?(:working_directory) end |