Class: Google::Apis::ReplicapoolV1beta1::EnvVariable

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

Overview

An environment variable to set for an action.

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



141
142
143
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 141

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

Instance Attribute Details

#hiddenBoolean Also known as: hidden?

Deprecated, do not use. Corresponds to the JSON property hidden

Returns:

  • (Boolean)


128
129
130
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 128

def hidden
  @hidden
end

#nameString

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

Returns:

  • (String)


134
135
136
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 134

def name
  @name
end

#valueString

The value of the variable. Corresponds to the JSON property value

Returns:

  • (String)


139
140
141
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 139

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



146
147
148
149
150
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 146

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