Class: Google::Apis::RunV1::EnvFromSource

Inherits:
Object
  • Object
show all
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 EnvFromSource represents the source of a set of ConfigMaps

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) ⇒ EnvFromSource

Returns a new instance of EnvFromSource



1027
1028
1029
# File 'generated/google/apis/run_v1/classes.rb', line 1027

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

Instance Attribute Details

#config_map_refGoogle::Apis::RunV1::ConfigMapEnvSource

Cloud Run fully managed: not supported Cloud Run for Anthos: supported 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



1006
1007
1008
# File 'generated/google/apis/run_v1/classes.rb', line 1006

def config_map_ref
  @config_map_ref
end

#prefixString

(Optional) Cloud Run fully managed: not supported Cloud Run for Anthos: supported An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. Corresponds to the JSON property prefix

Returns:

  • (String)


1015
1016
1017
# File 'generated/google/apis/run_v1/classes.rb', line 1015

def prefix
  @prefix
end

#secret_refGoogle::Apis::RunV1::SecretEnvSource

Cloud Run fully managed: not supported Cloud Run for Anthos: supported 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



1025
1026
1027
# File 'generated/google/apis/run_v1/classes.rb', line 1025

def secret_ref
  @secret_ref
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1032
1033
1034
1035
1036
# File 'generated/google/apis/run_v1/classes.rb', line 1032

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