Class: Google::Apis::RunV1alpha1::EnvVarSource
- Inherits:
-
Object
- Object
- Google::Apis::RunV1alpha1::EnvVarSource
- 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
EnvVarSource represents a source for the value of an EnvVar.
Instance Attribute Summary collapse
-
#config_map_key_ref ⇒ Google::Apis::RunV1alpha1::ConfigMapKeySelector
Not supported by Cloud Run Selects a key from a ConfigMap.
-
#secret_key_ref ⇒ Google::Apis::RunV1alpha1::SecretKeySelector
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.
Constructor Details
#initialize(**args) ⇒ EnvVarSource
Returns a new instance of EnvVarSource.
452 453 454 |
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 452 def initialize(**args) update!(**args) end |
Instance Attribute Details
#config_map_key_ref ⇒ Google::Apis::RunV1alpha1::ConfigMapKeySelector
Not supported by Cloud Run Selects a key from a ConfigMap.
Corresponds to the JSON property configMapKeyRef
445 446 447 |
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 445 def config_map_key_ref @config_map_key_ref end |
#secret_key_ref ⇒ Google::Apis::RunV1alpha1::SecretKeySelector
SecretKeySelector selects a key of a Secret.
Corresponds to the JSON property secretKeyRef
450 451 452 |
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 450 def secret_key_ref @secret_key_ref end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
457 458 459 460 |
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 457 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 |