Reference documentation and code samples for the Google Cloud Build V1 Client class InlineSecret.
Pairs a set of secret environment variables mapped to encrypted values with the Cloud KMS key to use to decrypt the value.
Generated from protobuf message google.devtools.cloudbuild.v1.InlineSecret
Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ kms_key_name |
string
Resource name of Cloud KMS crypto key to decrypt the encrypted value. In format: projects//locations//keyRings//cryptoKeys/ |
↳ env_map |
array|Google\Protobuf\Internal\MapField
Map of environment variable name to its encrypted value. Secret environment variables must be unique across all of a build's secrets, and must be used by at least one build step. Values can be at most 64 KB in size. There can be at most 100 secret values across all of a build's secrets. |
getKmsKeyName
Resource name of Cloud KMS crypto key to decrypt the encrypted value.
In format: projects//locations//keyRings//cryptoKeys/
| Returns | |
|---|---|
| Type | Description |
string |
|
setKmsKeyName
Resource name of Cloud KMS crypto key to decrypt the encrypted value.
In format: projects//locations//keyRings//cryptoKeys/
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getEnvMap
Map of environment variable name to its encrypted value.
Secret environment variables must be unique across all of a build's secrets, and must be used by at least one build step. Values can be at most 64 KB in size. There can be at most 100 secret values across all of a build's secrets.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\MapField |
|
setEnvMap
Map of environment variable name to its encrypted value.
Secret environment variables must be unique across all of a build's secrets, and must be used by at least one build step. Values can be at most 64 KB in size. There can be at most 100 secret values across all of a build's secrets.
| Parameter | |
|---|---|
| Name | Description |
var |
array|Google\Protobuf\Internal\MapField
|
| Returns | |
|---|---|
| Type | Description |
$this |
|