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.
Implements
IMessageUserCredential, IEquatableUserCredential, IDeepCloneableUserCredential, IBufferMessage, IMessageNamespace
Google.Cloud.CloudBuild.V2Assembly
Google.Cloud.CloudBuild.V2.dll
Constructors
UserCredential()
public UserCredential()
UserCredential(UserCredential)
public UserCredential(UserCredential other)
Parameter | |
---|---|
Name | Description |
other | UserCredential |
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 | |
---|---|
Type | Description |
string |
UserTokenSecretVersionAsSecretVersionName
public SecretVersionName UserTokenSecretVersionAsSecretVersionName { get; set; }
SecretVersionName-typed view over the UserTokenSecretVersion resource name property.
Property Value | |
---|---|
Type | Description |
SecretVersionName |
Username
public string Username { get; set; }
Output only. The username associated to this token.
Property Value | |
---|---|
Type | Description |
string |