Class: Google::Apis::RunV1alpha1::EnvFromSource

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

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.



1743
1744
1745
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 1743

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

Instance Attribute Details

#config_map_refGoogle::Apis::RunV1alpha1::ConfigMapEnvSource

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



1728
1729
1730
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 1728

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. +optional Corresponds to the JSON property prefix

Returns:

  • (String)


1734
1735
1736
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 1734

def prefix
  @prefix
end

#secret_refGoogle::Apis::RunV1alpha1::SecretEnvSource

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



1741
1742
1743
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 1741

def secret_ref
  @secret_ref
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1748
1749
1750
1751
1752
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 1748

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