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 \ V2Methods
__construct
Constructor.
| Parameter | |
|---|---|
| Name | Description |
data |
mixed
|
getUserTokenSecretVersion
Required. A SecretManager resource containing the user token that
authorizes the Cloud Build connection. Format:
projects/*/secrets/*/versions/*.
| Returns | |
|---|---|
| Type | Description |
string |
|
setUserTokenSecretVersion
Required. A SecretManager resource containing the user token that
authorizes the Cloud Build connection. Format:
projects/*/secrets/*/versions/*.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getUsername
Output only. The username associated to this token.
| Returns | |
|---|---|
| Type | Description |
string |
|
setUsername
Output only. The username associated to this token.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|