Class: Google::Apis::RunV1alpha1::ConfigMapEnvSource
- Inherits:
-
Object
- Object
- Google::Apis::RunV1alpha1::ConfigMapEnvSource
- 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
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.
Instance Attribute Summary collapse
-
#local_object_reference ⇒ Google::Apis::RunV1alpha1::LocalObjectReference
LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.
-
#name ⇒ String
Cloud Run fully managed: not supported Cloud Run for Anthos: supported The ConfigMap to select from.
-
#optional ⇒ Boolean
(also: #optional?)
Cloud Run fully managed: not supported Cloud Run for Anthos: supported Specify whether the ConfigMap must be defined +optional Corresponds to the JSON property
optional
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ConfigMapEnvSource
constructor
A new instance of ConfigMapEnvSource.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ConfigMapEnvSource
Returns a new instance of ConfigMapEnvSource.
1035 1036 1037 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 1035 def initialize(**args) update!(**args) end |
Instance Attribute Details
#local_object_reference ⇒ Google::Apis::RunV1alpha1::LocalObjectReference
LocalObjectReference contains enough information to let you locate the
referenced object inside the same namespace.
Corresponds to the JSON property localObjectReference
1017 1018 1019 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 1017 def local_object_reference @local_object_reference end |
#name ⇒ String
Cloud Run fully managed: not supported
Cloud Run for Anthos: supported
The ConfigMap to select from.
Corresponds to the JSON property name
1024 1025 1026 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 1024 def name @name end |
#optional ⇒ Boolean Also known as: optional?
Cloud Run fully managed: not supported
Cloud Run for Anthos: supported
Specify whether the ConfigMap must be defined
+optional
Corresponds to the JSON property optional
1032 1033 1034 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 1032 def optional @optional end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1040 1041 1042 1043 1044 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 1040 def update!(**args) @local_object_reference = args[:local_object_reference] if args.key?(:local_object_reference) @name = args[:name] if args.key?(:name) @optional = args[:optional] if args.key?(:optional) end |