Reference documentation and code samples for the Google Cloud Developer Connect V1 Client class UserCredential.
Represents a personal access token that authorized the Connection, and associated metadata.
Generated from protobuf message google.cloud.developerconnect.v1.UserCredential
Namespace
Google \ Cloud \ DeveloperConnect \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
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 Developer Connect connection. Format: |
↳ username |
string
Output only. The username associated with this token. |
getUserTokenSecretVersion
Required. A SecretManager resource containing the user token that
authorizes the Developer Connect connection. Format:
projects/*/secrets/*/versions/*
.
Returns | |
---|---|
Type | Description |
string |
setUserTokenSecretVersion
Required. A SecretManager resource containing the user token that
authorizes the Developer Connect connection. Format:
projects/*/secrets/*/versions/*
.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getUsername
Output only. The username associated with this token.
Returns | |
---|---|
Type | Description |
string |
setUsername
Output only. The username associated with this token.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |