Class: Google::Apis::RunV1::ConfigMapEnvSource

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

Overview

Not supported by Cloud Run. ConfigMapEnvSource selects a ConfigMap to populate the environment variables with. The contents of the target ConfigMap's Data field will represent the key-value pairs as environment variables.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ConfigMapEnvSource

Returns a new instance of ConfigMapEnvSource.



255
256
257
# File 'lib/google/apis/run_v1/classes.rb', line 255

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

Instance Attribute Details

#local_object_referenceGoogle::Apis::RunV1::LocalObjectReference

Not supported by Cloud Run. LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace. Corresponds to the JSON property localObjectReference



242
243
244
# File 'lib/google/apis/run_v1/classes.rb', line 242

def local_object_reference
  @local_object_reference
end

#nameString

The ConfigMap to select from. Corresponds to the JSON property name

Returns:

  • (String)


247
248
249
# File 'lib/google/apis/run_v1/classes.rb', line 247

def name
  @name
end

#optionalBoolean Also known as: optional?

Specify whether the ConfigMap must be defined. Corresponds to the JSON property optional

Returns:

  • (Boolean)


252
253
254
# File 'lib/google/apis/run_v1/classes.rb', line 252

def optional
  @optional
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



260
261
262
263
264
# File 'lib/google/apis/run_v1/classes.rb', line 260

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