Class: Google::Apis::RunV2::GoogleCloudRunV2SecretKeySelector
- Inherits:
-
Object
- Object
- Google::Apis::RunV2::GoogleCloudRunV2SecretKeySelector
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/run_v2/classes.rb,
lib/google/apis/run_v2/representations.rb,
lib/google/apis/run_v2/representations.rb
Overview
SecretEnvVarSource represents a source for the value of an EnvVar.
Instance Attribute Summary collapse
-
#secret ⇒ String
Required.
-
#version ⇒ String
The Cloud Secret Manager secret version.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRunV2SecretKeySelector
constructor
A new instance of GoogleCloudRunV2SecretKeySelector.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRunV2SecretKeySelector
Returns a new instance of GoogleCloudRunV2SecretKeySelector.
2122 2123 2124 |
# File 'lib/google/apis/run_v2/classes.rb', line 2122 def initialize(**args) update!(**args) end |
Instance Attribute Details
#secret ⇒ String
Required. The name of the secret in Cloud Secret Manager. Format: secret_name
if the secret is in the same project. projects/project
/secrets/secret_name
if the secret is in a different project.
Corresponds to the JSON property secret
2114 2115 2116 |
# File 'lib/google/apis/run_v2/classes.rb', line 2114 def secret @secret end |
#version ⇒ String
The Cloud Secret Manager secret version. Can be 'latest' for the latest
version, an integer for a specific version, or a version alias.
Corresponds to the JSON property version
2120 2121 2122 |
# File 'lib/google/apis/run_v2/classes.rb', line 2120 def version @version end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2127 2128 2129 2130 |
# File 'lib/google/apis/run_v2/classes.rb', line 2127 def update!(**args) @secret = args[:secret] if args.key?(:secret) @version = args[:version] if args.key?(:version) end |