Cloud Build v2 API - Class UserCredential (1.1.0)

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

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

Represents a personal access token that authorized the Connection, and associated metadata.

Inheritance

object > UserCredential

Namespace

Google.Cloud.CloudBuild.V2

Assembly

Google.Cloud.CloudBuild.V2.dll

Constructors

UserCredential()

public UserCredential()

UserCredential(UserCredential)

public UserCredential(UserCredential other)
Parameter
NameDescription
otherUserCredential

Properties

UserTokenSecretVersion

public string UserTokenSecretVersion { get; set; }

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

Property Value
TypeDescription
string

UserTokenSecretVersionAsSecretVersionName

public SecretVersionName UserTokenSecretVersionAsSecretVersionName { get; set; }

SecretVersionName-typed view over the UserTokenSecretVersion 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