Class: Google::Apis::RunV1::EnvVarSource

Inherits:
Object
  • Object
show all
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

EnvVarSource represents a source for the value of an EnvVar.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EnvVarSource

Returns a new instance of EnvVarSource.



1026
1027
1028
# File 'lib/google/apis/run_v1/classes.rb', line 1026

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

Instance Attribute Details

#config_map_key_refGoogle::Apis::RunV1::ConfigMapKeySelector

Not supported by Cloud Run. Corresponds to the JSON property configMapKeyRef



1019
1020
1021
# File 'lib/google/apis/run_v1/classes.rb', line 1019

def config_map_key_ref
  @config_map_key_ref
end

#secret_key_refGoogle::Apis::RunV1::SecretKeySelector

SecretKeySelector selects a key of a Secret. Corresponds to the JSON property secretKeyRef



1024
1025
1026
# File 'lib/google/apis/run_v1/classes.rb', line 1024

def secret_key_ref
  @secret_key_ref
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1031
1032
1033
1034
# File 'lib/google/apis/run_v1/classes.rb', line 1031

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