Class: Google::Apis::CloudbuildV2::EnvVar

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudbuild_v2/classes.rb,
lib/google/apis/cloudbuild_v2/representations.rb,
lib/google/apis/cloudbuild_v2/representations.rb

Overview

Environment variable.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EnvVar

Returns a new instance of EnvVar.



480
481
482
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 480

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

Instance Attribute Details

#nameString

Name of the environment variable. Corresponds to the JSON property name

Returns:

  • (String)


473
474
475
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 473

def name
  @name
end

#valueString

Value of the environment variable. Corresponds to the JSON property value

Returns:

  • (String)


478
479
480
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 478

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



485
486
487
488
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 485

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