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

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

Not supported by Cloud Run. EnvFromSource represents the source of a set of ConfigMaps

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EnvFromSource

Returns a new instance of EnvFromSource.



968
969
970
# File 'lib/google/apis/run_v1/classes.rb', line 968

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

Instance Attribute Details

#config_map_refGoogle::Apis::RunV1::ConfigMapEnvSource

Not supported by Cloud Run. 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



953
954
955
# File 'lib/google/apis/run_v1/classes.rb', line 953

def config_map_ref
  @config_map_ref
end

#prefixString

An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. Corresponds to the JSON property prefix

Returns:

  • (String)


959
960
961
# File 'lib/google/apis/run_v1/classes.rb', line 959

def prefix
  @prefix
end

#secret_refGoogle::Apis::RunV1::SecretEnvSource

Not supported by Cloud Run. 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



966
967
968
# File 'lib/google/apis/run_v1/classes.rb', line 966

def secret_ref
  @secret_ref
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



973
974
975
976
977
# File 'lib/google/apis/run_v1/classes.rb', line 973

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