Class: Google::Apis::RunV1::SecretEnvSource
- Inherits:
-
Object
- Object
- Google::Apis::RunV1::SecretEnvSource
- 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 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
Not supported by Cloud Run LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.
-
#name ⇒ String
The Secret to select from.
-
#optional ⇒ Boolean
(also: #optional?)
(Optional) 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.
Constructor Details
#initialize(**args) ⇒ SecretEnvSource
Returns a new instance of SecretEnvSource.
2912 2913 2914 |
# File 'lib/google/apis/run_v1/classes.rb', line 2912 def initialize(**args) update!(**args) end |
Instance Attribute Details
#local_object_reference ⇒ Google::Apis::RunV1::LocalObjectReference
Not supported by Cloud Run LocalObjectReference contains enough information to
let you locate the referenced object inside the same namespace.
Corresponds to the JSON property localObjectReference
2899 2900 2901 |
# File 'lib/google/apis/run_v1/classes.rb', line 2899 def local_object_reference @local_object_reference end |
#name ⇒ String
The Secret to select from.
Corresponds to the JSON property name
2904 2905 2906 |
# File 'lib/google/apis/run_v1/classes.rb', line 2904 def name @name end |
#optional ⇒ Boolean Also known as: optional?
(Optional) Specify whether the Secret must be defined
Corresponds to the JSON property optional
2909 2910 2911 |
# File 'lib/google/apis/run_v1/classes.rb', line 2909 def optional @optional end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2917 2918 2919 2920 2921 |
# File 'lib/google/apis/run_v1/classes.rb', line 2917 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 |