Class: Google::Apis::RunV1alpha1::EnvFromSource
- Inherits:
-
Object
- Object
- Google::Apis::RunV1alpha1::EnvFromSource
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/run_v1alpha1/classes.rb,
lib/google/apis/run_v1alpha1/representations.rb,
lib/google/apis/run_v1alpha1/representations.rb
Overview
Not supported by Cloud Run EnvFromSource represents the source of a set of ConfigMaps
Instance Attribute Summary collapse
-
#config_map_ref ⇒ Google::Apis::RunV1alpha1::ConfigMapEnvSource
Not supported by Cloud Run ConfigMapEnvSource selects a ConfigMap to populate the environment variables with.
-
#prefix ⇒ String
(Optional) An optional identifier to prepend to each key in the ConfigMap.
-
#secret_ref ⇒ Google::Apis::RunV1alpha1::SecretEnvSource
Not supported by Cloud Run SecretEnvSource selects a Secret to populate the environment variables with.
Instance Method Summary collapse
-
#initialize(**args) ⇒ EnvFromSource
constructor
A new instance of EnvFromSource.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ EnvFromSource
Returns a new instance of EnvFromSource.
391 392 393 |
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 391 def initialize(**args) update!(**args) end |
Instance Attribute Details
#config_map_ref ⇒ Google::Apis::RunV1alpha1::ConfigMapEnvSource
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.
Corresponds to the JSON property configMapRef
376 377 378 |
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 376 def config_map_ref @config_map_ref end |
#prefix ⇒ String
(Optional) An optional identifier to prepend to each key in the ConfigMap.
Must be a C_IDENTIFIER.
Corresponds to the JSON property prefix
382 383 384 |
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 382 def prefix @prefix end |
#secret_ref ⇒ Google::Apis::RunV1alpha1::SecretEnvSource
Not supported by Cloud Run SecretEnvSource selects a Secret to populate the
environment variables with. The contents of the target Secret's Data field
will represent the key-value pairs as environment variables.
Corresponds to the JSON property secretRef
389 390 391 |
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 389 def secret_ref @secret_ref end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
396 397 398 399 400 |
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 396 def update!(**args) @config_map_ref = args[:config_map_ref] if args.key?(:config_map_ref) @prefix = args[:prefix] if args.key?(:prefix) @secret_ref = args[:secret_ref] if args.key?(:secret_ref) end |