Class: Google::Apis::CloudbuildV2::EnvVar
- Inherits:
-
Object
- Object
- Google::Apis::CloudbuildV2::EnvVar
- 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
-
#name ⇒ String
Name of the environment variable.
-
#value ⇒ String
Value of the environment variable.
Instance Method Summary collapse
-
#initialize(**args) ⇒ EnvVar
constructor
A new instance of EnvVar.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#name ⇒ String
Name of the environment variable.
Corresponds to the JSON property name
611 612 613 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 611 def name @name end |
#value ⇒ String
Value of the environment variable.
Corresponds to the JSON property value
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 |