Cloud Run V2 API - Class Google::Cloud::Run::V2::SecretKeySelector (v0.12.0)

Reference documentation and code samples for the Cloud Run V2 API class Google::Cloud::Run::V2::SecretKeySelector.

SecretEnvVarSource represents a source for the value of an EnvVar.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#secret

def secret() -> ::String
Returns
  • (::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.

#secret=

def secret=(value) -> ::String
Parameter
  • value (::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.
Returns
  • (::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.

#version

def version() -> ::String
Returns
  • (::String) — The Cloud Secret Manager secret version. Can be 'latest' for the latest version, an integer for a specific version, or a version alias.

#version=

def version=(value) -> ::String
Parameter
  • value (::String) — The Cloud Secret Manager secret version. Can be 'latest' for the latest version, an integer for a specific version, or a version alias.
Returns
  • (::String) — The Cloud Secret Manager secret version. Can be 'latest' for the latest version, an integer for a specific version, or a version alias.