Class: Google::Apis::RunV1alpha1::EnvVarSource

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

Overview

Cloud Run fully managed: not supported Cloud Run on GKE: supported EnvVarSource represents a source for the value of an EnvVar.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ EnvVarSource

Returns a new instance of EnvVarSource.



1636
1637
1638
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 1636

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

Instance Attribute Details

#config_map_key_refGoogle::Apis::RunV1alpha1::ConfigMapKeySelector

Cloud Run fully managed: not supported Cloud Run on GKE: supported Selects a key from a ConfigMap. Corresponds to the JSON property configMapKeyRef



1627
1628
1629
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 1627

def config_map_key_ref
  @config_map_key_ref
end

#secret_key_refGoogle::Apis::RunV1alpha1::SecretKeySelector

Cloud Run fully managed: not supported Cloud Run on GKE: supported SecretKeySelector selects a key of a Secret. Corresponds to the JSON property secretKeyRef



1634
1635
1636
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 1634

def secret_key_ref
  @secret_key_ref
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1641
1642
1643
1644
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 1641

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