Google Cloud Build V1 Client - Class SecretManagerSecret (0.14.0)

Reference documentation and code samples for the Google Cloud Build V1 Client class SecretManagerSecret.

Pairs a secret environment variable with a SecretVersion in Secret Manager.

Generated from protobuf message google.devtools.cloudbuild.v1.SecretManagerSecret

Namespace

Google \ Cloud \ Build \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ version_name string

Resource name of the SecretVersion. In format: projects//secrets//versions/*

↳ env string

Environment variable name to associate with the secret. Secret environment variables must be unique across all of a build's secrets, and must be used by at least one build step.

getVersionName

Resource name of the SecretVersion. In format: projects//secrets//versions/*

Returns
TypeDescription
string

setVersionName

Resource name of the SecretVersion. In format: projects//secrets//versions/*

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getEnv

Environment variable name to associate with the secret.

Secret environment variables must be unique across all of a build's secrets, and must be used by at least one build step.

Returns
TypeDescription
string

setEnv

Environment variable name to associate with the secret.

Secret environment variables must be unique across all of a build's secrets, and must be used by at least one build step.

Parameter
NameDescription
var string
Returns
TypeDescription
$this