Class: Google::Apis::RemotebuildexecutionV1::BuildBazelRemoteExecutionV2Platform

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/remotebuildexecution_v1/classes.rb,
generated/google/apis/remotebuildexecution_v1/representations.rb,
generated/google/apis/remotebuildexecution_v1/representations.rb

Overview

A Platform is a set of requirements, such as hardware, operating system, or compiler toolchain, for an Action's execution environment. A Platform is represented as a series of key-value pairs representing the properties that are required of the platform.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ BuildBazelRemoteExecutionV2Platform

Returns a new instance of BuildBazelRemoteExecutionV2Platform.


1207
1208
1209
# File 'generated/google/apis/remotebuildexecution_v1/classes.rb', line 1207

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#propertiesArray<Google::Apis::RemotebuildexecutionV1::BuildBazelRemoteExecutionV2PlatformProperty>

The properties that make up this platform. In order to ensure that equivalent Platforms always hash to the same value, the properties MUST be lexicographically sorted by name, and then by value. Sorting of strings is done by code point, equivalently, by the UTF-8 bytes. Corresponds to the JSON property properties


1205
1206
1207
# File 'generated/google/apis/remotebuildexecution_v1/classes.rb', line 1205

def properties
  @properties
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


1212
1213
1214
# File 'generated/google/apis/remotebuildexecution_v1/classes.rb', line 1212

def update!(**args)
  @properties = args[:properties] if args.key?(:properties)
end