Class: Google::Apis::RunV1::SecretEnvSource
- Inherits:
-
Object
- Object
- Google::Apis::RunV1::SecretEnvSource
- 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 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.
Instance Attribute Summary collapse
-
#local_object_reference ⇒ Google::Apis::RunV1::LocalObjectReference
Cloud Run fully managed: not supported Cloud Run for Anthos: supported 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 Secret to select from.
-
#optional ⇒ Boolean
(also: #optional?)
(Optional) Cloud Run fully managed: not supported Cloud Run for Anthos: supported Specify whether the Secret must be defined Corresponds to the JSON property
optional
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SecretEnvSource
constructor
A new instance of SecretEnvSource.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ SecretEnvSource
Returns a new instance of SecretEnvSource.
2696 2697 2698 |
# File 'generated/google/apis/run_v1/classes.rb', line 2696 def initialize(**args) update!(**args) end |
Instance Attribute Details
#local_object_reference ⇒ Google::Apis::RunV1::LocalObjectReference
Cloud Run fully managed: not supported
Cloud Run for Anthos: supported
LocalObjectReference contains enough information to let you locate the
referenced object inside the same namespace.
Corresponds to the JSON property localObjectReference
2678 2679 2680 |
# File 'generated/google/apis/run_v1/classes.rb', line 2678 def local_object_reference @local_object_reference end |
#name ⇒ String
Cloud Run fully managed: not supported
Cloud Run for Anthos: supported
The Secret to select from.
Corresponds to the JSON property name
2685 2686 2687 |
# File 'generated/google/apis/run_v1/classes.rb', line 2685 def name @name end |
#optional ⇒ Boolean Also known as: optional?
(Optional)
Cloud Run fully managed: not supported
Cloud Run for Anthos: supported
Specify whether the Secret must be defined
Corresponds to the JSON property optional
2693 2694 2695 |
# File 'generated/google/apis/run_v1/classes.rb', line 2693 def optional @optional end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2701 2702 2703 2704 2705 |
# File 'generated/google/apis/run_v1/classes.rb', line 2701 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 |