Google Cloud Build V2 Client - Class UserCredential (0.13.2)

Reference documentation and code samples for the Google Cloud Build V2 Client class UserCredential.

Represents a personal access token that authorized the Connection, and associated metadata.

Generated from protobuf message google.devtools.cloudbuild.v2.UserCredential

Namespace

Google \ Cloud \ Build \ V2

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ user_token_secret_version string

Required. A SecretManager resource containing the user token that authorizes the Cloud Build connection. Format: projects/*/secrets/*/versions/*.

↳ username string

Output only. The username associated to this token.

getUserTokenSecretVersion

Required. A SecretManager resource containing the user token that authorizes the Cloud Build connection. Format: projects/*/secrets/*/versions/*.

Returns
TypeDescription
string

setUserTokenSecretVersion

Required. A SecretManager resource containing the user token that authorizes the Cloud Build connection. Format: projects/*/secrets/*/versions/*.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getUsername

Output only. The username associated to this token.

Returns
TypeDescription
string

setUsername

Output only. The username associated to this token.

Parameter
NameDescription
var string
Returns
TypeDescription
$this