class Google::Apis::RunV1alpha1::EnvFromSource

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

Attributes

config_map_ref[RW]

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` @return [Google::Apis::RunV1alpha1::ConfigMapEnvSource]

prefix[RW]

(Optional) An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. Corresponds to the JSON property `prefix` @return [String]

secret_ref[RW]

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` @return [Google::Apis::RunV1alpha1::SecretEnvSource]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/run_v1alpha1/classes.rb, line 384
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/run_v1alpha1/classes.rb, line 389
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