Class: Google::Apis::RemotebuildexecutionV2::BuildBazelRemoteExecutionV2CommandEnvironmentVariable

Inherits:
Object
  • Object
show all
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

An EnvironmentVariable is one variable to set in the running program's environment.

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) ⇒ BuildBazelRemoteExecutionV2CommandEnvironmentVariable

Returns a new instance of BuildBazelRemoteExecutionV2CommandEnvironmentVariable.


782
783
784
# File 'generated/google/apis/remotebuildexecution_v2/classes.rb', line 782

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

Instance Attribute Details

#nameString

The variable name. Corresponds to the JSON property name

Returns:

  • (String)

775
776
777
# File 'generated/google/apis/remotebuildexecution_v2/classes.rb', line 775

def name
  @name
end

#valueString

The variable value. Corresponds to the JSON property value

Returns:

  • (String)

780
781
782
# File 'generated/google/apis/remotebuildexecution_v2/classes.rb', line 780

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


787
788
789
790
# File 'generated/google/apis/remotebuildexecution_v2/classes.rb', line 787

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