Class: Google::Apis::RemotebuildexecutionV2::GoogleDevtoolsRemoteworkersV1test2FileMetadata
- Inherits:
-
Object
- Object
- Google::Apis::RemotebuildexecutionV2::GoogleDevtoolsRemoteworkersV1test2FileMetadata
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/remotebuildexecution_v2/classes.rb,
generated/google/apis/remotebuildexecution_v2/representations.rb,
generated/google/apis/remotebuildexecution_v2/representations.rb
Overview
The metadata for a file. Similar to the equivalent message in the Remote Execution API.
Instance Attribute Summary collapse
-
#contents ⇒ String
If the file is small enough, its contents may also or alternatively be listed here.
-
#digest ⇒ Google::Apis::RemotebuildexecutionV2::GoogleDevtoolsRemoteworkersV1test2Digest
The CommandTask and CommandResult messages assume the existence of a service that can serve blobs of content, identified by a hash and size known as a "digest." The method by which these blobs may be retrieved is not specified here, but a model implementation is in the Remote Execution API's "ContentAddressibleStorage" interface.
-
#is_executable ⇒ Boolean
(also: #is_executable?)
Properties of the file Corresponds to the JSON property
isExecutable
. -
#path ⇒ String
The path of this file.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleDevtoolsRemoteworkersV1test2FileMetadata
constructor
A new instance of GoogleDevtoolsRemoteworkersV1test2FileMetadata.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GoogleDevtoolsRemoteworkersV1test2FileMetadata
Returns a new instance of GoogleDevtoolsRemoteworkersV1test2FileMetadata
3337 3338 3339 |
# File 'generated/google/apis/remotebuildexecution_v2/classes.rb', line 3337 def initialize(**args) update!(**args) end |
Instance Attribute Details
#contents ⇒ String
If the file is small enough, its contents may also or alternatively be
listed here.
Corresponds to the JSON property contents
NOTE: Values are automatically base64 encoded/decoded in the client library.
3308 3309 3310 |
# File 'generated/google/apis/remotebuildexecution_v2/classes.rb', line 3308 def contents @contents end |
#digest ⇒ Google::Apis::RemotebuildexecutionV2::GoogleDevtoolsRemoteworkersV1test2Digest
The CommandTask and CommandResult messages assume the existence of a service
that can serve blobs of content, identified by a hash and size known as a
"digest." The method by which these blobs may be retrieved is not specified
here, but a model implementation is in the Remote Execution API's
"ContentAddressibleStorage" interface.
In the context of the RWAPI, a Digest will virtually always refer to the
contents of a file or a directory. The latter is represented by the
byte-encoded Directory message.
Corresponds to the JSON property digest
3320 3321 3322 |
# File 'generated/google/apis/remotebuildexecution_v2/classes.rb', line 3320 def digest @digest end |
#is_executable ⇒ Boolean Also known as: is_executable?
Properties of the file
Corresponds to the JSON property isExecutable
3325 3326 3327 |
# File 'generated/google/apis/remotebuildexecution_v2/classes.rb', line 3325 def is_executable @is_executable end |
#path ⇒ String
The path of this file. If this message is part of the
CommandOutputs.outputs fields, the path is relative to the execution root
and must correspond to an entry in CommandTask.outputs.files. If this
message is part of a Directory message, then the path is relative to the
root of that directory. All paths MUST be delimited by forward slashes.
Corresponds to the JSON property path
3335 3336 3337 |
# File 'generated/google/apis/remotebuildexecution_v2/classes.rb', line 3335 def path @path end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3342 3343 3344 3345 3346 3347 |
# File 'generated/google/apis/remotebuildexecution_v2/classes.rb', line 3342 def update!(**args) @contents = args[:contents] if args.key?(:contents) @digest = args[:digest] if args.key?(:digest) @is_executable = args[:is_executable] if args.key?(:is_executable) @path = args[:path] if args.key?(:path) end |