Class: Google::Apis::RunV1::ConfigMapEnvSource
- Inherits:
-
Object
- Object
- Google::Apis::RunV1::ConfigMapEnvSource
- 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
-
#local_object_reference ⇒ Google::Apis::RunV1::LocalObjectReference
Not supported by Cloud Run.
-
#name ⇒ String
The ConfigMap to select from.
-
#optional ⇒ Boolean
(also: #optional?)
Specify whether the ConfigMap must be defined.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ConfigMapEnvSource
constructor
A new instance of ConfigMapEnvSource.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ConfigMapEnvSource
Returns a new instance of ConfigMapEnvSource.
253 254 255 |
# File 'lib/google/apis/run_v1/classes.rb', line 253 def initialize(**args) update!(**args) end |
Instance Attribute Details
#local_object_reference ⇒ Google::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
240 241 242 |
# File 'lib/google/apis/run_v1/classes.rb', line 240 def local_object_reference @local_object_reference end |
#name ⇒ String
The ConfigMap to select from.
Corresponds to the JSON property name
245 246 247 |
# File 'lib/google/apis/run_v1/classes.rb', line 245 def name @name end |
#optional ⇒ Boolean Also known as: optional?
Specify whether the ConfigMap must be defined.
Corresponds to the JSON property optional
250 251 252 |
# File 'lib/google/apis/run_v1/classes.rb', line 250 def optional @optional end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
258 259 260 261 262 |
# File 'lib/google/apis/run_v1/classes.rb', line 258 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 |