Google Cloud Functions V1 Client - Class SecretVersion (1.5.0)

Reference documentation and code samples for the Google Cloud Functions V1 Client class SecretVersion.

Configuration for a single version.

Generated from protobuf message google.cloud.functions.v1.SecretVolume.SecretVersion

Namespace

Google \ Cloud \ Functions \ V1 \ SecretVolume

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ version 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.

↳ path string

Relative path of the file under the mount path where the secret value for this version is fetched and made available. For example, setting the mount_path as '/etc/secrets' and path as /secret_foo mounts the secret value file at /etc/secrets/secret_foo.

getVersion

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
TypeDescription
string

setVersion

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.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getPath

Relative path of the file under the mount path where the secret value for this version is fetched and made available. For example, setting the mount_path as '/etc/secrets' and path as /secret_foo mounts the secret value file at /etc/secrets/secret_foo.

Returns
TypeDescription
string

setPath

Relative path of the file under the mount path where the secret value for this version is fetched and made available. For example, setting the mount_path as '/etc/secrets' and path as /secret_foo mounts the secret value file at /etc/secrets/secret_foo.

Parameter
NameDescription
var string
Returns
TypeDescription
$this