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.



618
619
620
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 618

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

Instance Attribute Details

#nameString

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

Returns:

  • (String)


611
612
613
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 611

def name
  @name
end

#valueString

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

Returns:

  • (String)


616
617
618
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 616

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



623
624
625
626
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 623

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