Class: Google::Apis::ManagerV1beta2::EnvVariable

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

Overview

An environment variable.

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

Returns a new instance of EnvVariable



339
340
341
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 339

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

Instance Attribute Details

#hiddenBoolean Also known as: hidden?

Whether this variable is hidden or visible. Corresponds to the JSON property hidden

Returns:

  • (Boolean)


331
332
333
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 331

def hidden
  @hidden
end

#valueString

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

Returns:

  • (String)


337
338
339
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 337

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



344
345
346
347
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 344

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