class Google::Apis::RunV2::GoogleCloudRunV2SecretKeySelector
SecretEnvVarSource represents a source for the value of an EnvVar.
Attributes
secret[RW]
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` @return [String]
version[RW]
The Cloud Secret Manager secret version. Can be ‘latest’ for the latest value or an integer for a specific version. Corresponds to the JSON property ‘version` @return [String]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/run_v2/classes.rb, line 754 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/run_v2/classes.rb, line 759 def update!(**args) @secret = args[:secret] if args.key?(:secret) @version = args[:version] if args.key?(:version) end