Google Cloud Build V1 Client - Class InlineSecret (0.5.1)

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

setKmsKeyName

Resource name of Cloud KMS crypto key to decrypt the encrypted value.

In format: projects//locations//keyRings//cryptoKeys/

Parameter
NameDescription
var string
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var array|Google\Protobuf\Internal\MapField
Returns
TypeDescription
$this