Class: Google::Apis::RunV1::EnvVarSource
- Inherits:
-
Object
- Object
- Google::Apis::RunV1::EnvVarSource
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/run_v1/classes.rb,
generated/google/apis/run_v1/representations.rb,
generated/google/apis/run_v1/representations.rb
Overview
Cloud Run fully managed: not supported Cloud Run for Anthos: supported EnvVarSource represents a source for the value of an EnvVar.
Instance Attribute Summary collapse
-
#config_map_key_ref ⇒ Google::Apis::RunV1::ConfigMapKeySelector
Cloud Run fully managed: not supported Cloud Run for Anthos: supported Selects a key from a ConfigMap.
-
#secret_key_ref ⇒ Google::Apis::RunV1::SecretKeySelector
Cloud Run fully managed: not supported Cloud Run for Anthos: supported SecretKeySelector selects a key of a Secret.
Instance Method Summary collapse
-
#initialize(**args) ⇒ EnvVarSource
constructor
A new instance of EnvVarSource.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ EnvVarSource
Returns a new instance of EnvVarSource.
1018 1019 1020 |
# File 'generated/google/apis/run_v1/classes.rb', line 1018 def initialize(**args) update!(**args) end |
Instance Attribute Details
#config_map_key_ref ⇒ Google::Apis::RunV1::ConfigMapKeySelector
Cloud Run fully managed: not supported
Cloud Run for Anthos: supported
Selects a key from a ConfigMap.
Corresponds to the JSON property configMapKeyRef
1009 1010 1011 |
# File 'generated/google/apis/run_v1/classes.rb', line 1009 def config_map_key_ref @config_map_key_ref end |
#secret_key_ref ⇒ Google::Apis::RunV1::SecretKeySelector
Cloud Run fully managed: not supported
Cloud Run for Anthos: supported
SecretKeySelector selects a key of a Secret.
Corresponds to the JSON property secretKeyRef
1016 1017 1018 |
# File 'generated/google/apis/run_v1/classes.rb', line 1016 def secret_key_ref @secret_key_ref end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1023 1024 1025 1026 |
# File 'generated/google/apis/run_v1/classes.rb', line 1023 def update!(**args) @config_map_key_ref = args[:config_map_key_ref] if args.key?(:config_map_key_ref) @secret_key_ref = args[:secret_key_ref] if args.key?(:secret_key_ref) end |