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
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
string |
setVersionName
Resource name of the SecretVersion. In format: projects//secrets//versions/*
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |