Cloud Build v2 API - Class OAuthCredential (1.0.0)

public sealed class OAuthCredential : IMessage<OAuthCredential>, IEquatable<OAuthCredential>, IDeepCloneable<OAuthCredential>, IBufferMessage, IMessage

Reference documentation and code samples for the Cloud Build v2 API class OAuthCredential.

Represents an OAuth token of the account that authorized the Connection, and associated metadata.

Inheritance

object > OAuthCredential

Namespace

Google.Cloud.CloudBuild.V2

Assembly

Google.Cloud.CloudBuild.V2.dll

Constructors

OAuthCredential()

public OAuthCredential()

OAuthCredential(OAuthCredential)

public OAuthCredential(OAuthCredential other)
Parameter
NameDescription
otherOAuthCredential

Properties

OauthTokenSecretVersion

public string OauthTokenSecretVersion { get; set; }

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

Property Value
TypeDescription
string

OauthTokenSecretVersionAsSecretVersionName

public SecretVersionName OauthTokenSecretVersionAsSecretVersionName { get; set; }

SecretVersionName-typed view over the OauthTokenSecretVersion resource name property.

Property Value
TypeDescription
SecretVersionName

Username

public string Username { get; set; }

Output only. The username associated to this token.

Property Value
TypeDescription
string