Cloud Functions V2 API - Class Google::Cloud::Functions::V2::SecretVolume::SecretVersion (v0.6.2)

Reference documentation and code samples for the Cloud Functions V2 API class Google::Cloud::Functions::V2::SecretVolume::SecretVersion.

Configuration for a single version.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#path

def path() -> ::String
Returns
  • (::String) — Relative path of the file under the mount path where the secret value for this version will be fetched and made available. For example, setting the mount_path as '/etc/secrets' and path as secret_foo would mount the secret value file at /etc/secrets/secret_foo.

#path=

def path=(value) -> ::String
Parameter
  • value (::String) — Relative path of the file under the mount path where the secret value for this version will be fetched and made available. For example, setting the mount_path as '/etc/secrets' and path as secret_foo would mount the secret value file at /etc/secrets/secret_foo.
Returns
  • (::String) — Relative path of the file under the mount path where the secret value for this version will be fetched and made available. For example, setting the mount_path as '/etc/secrets' and path as secret_foo would mount the secret value file at /etc/secrets/secret_foo.

#version

def version() -> ::String
Returns
  • (::String) — Version of the secret (version number or the string 'latest'). It is preferable to use latest version with secret volumes as secret value changes are reflected immediately.

#version=

def version=(value) -> ::String
Parameter
  • value (::String) — Version of the secret (version number or the string 'latest'). It is preferable to use latest version with secret volumes as secret value changes are reflected immediately.
Returns
  • (::String) — Version of the secret (version number or the string 'latest'). It is preferable to use latest version with secret volumes as secret value changes are reflected immediately.