Reference documentation and code samples for the Google Cloud Developer Connect V1 Client class OAuthCredential.
Represents an OAuth token of the account that authorized the Connection, and associated metadata.
Generated from protobuf message google.cloud.developerconnect.v1.OAuthCredential
Namespace
Google \ Cloud \ DeveloperConnect \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ oauth_token_secret_version
string
Required. A SecretManager resource containing the OAuth token that authorizes the connection. Format: projects/*/secrets/*/versions/*
.
↳ username
string
Output only. The username associated with this token.
getOauthTokenSecretVersion
Required. A SecretManager resource containing the OAuth token that
authorizes the connection. Format: projects/*/secrets/*/versions/*
.
string
setOauthTokenSecretVersion
Required. A SecretManager resource containing the OAuth token that
authorizes the connection. Format: projects/*/secrets/*/versions/*
.
var
string
$this
getUsername
Output only. The username associated with this token.
string
setUsername
Output only. The username associated with this token.
var
string
$this