Reference documentation and code samples for the Google Cloud Build V2 Client class OAuthCredential.
Represents an OAuth token of the account that authorized the Connection, and associated metadata.
Generated from protobuf message google.devtools.cloudbuild.v2.OAuthCredential
Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ oauth_token_secret_version
string
A SecretManager resource containing the OAuth token that authorizes the Cloud Build connection. Format: projects/*/secrets/*/versions/*
.
↳ username
string
Output only. The username associated to this token.
getOauthTokenSecretVersion
A SecretManager resource containing the OAuth token that authorizes
the Cloud Build connection. Format: projects/*/secrets/*/versions/*
.
string
setOauthTokenSecretVersion
A SecretManager resource containing the OAuth token that authorizes
the Cloud Build connection. Format: projects/*/secrets/*/versions/*
.
var
string
$this
getUsername
Output only. The username associated to this token.
string
setUsername
Output only. The username associated to this token.
var
string
$this