Design Center v1 API - Class GitReference (1.0.0-beta01)

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

Reference documentation and code samples for the Design Center v1 API class GitReference.

The Git reference. Can be a commit SHA, branch name, or tag name.

Inheritance

object > GitReference

Namespace

Google.Cloud.DesignCenter.V1

Assembly

Google.Cloud.DesignCenter.V1.dll

Constructors

GitReference()

public GitReference()

GitReference(GitReference)

public GitReference(GitReference other)
Parameter
Name Description
other GitReference

Properties

Branch

public string Branch { get; set; }

Optional. The name of the branch from which content should be read. For example: "main"

Property Value
Type Description
string

CommitSha

public string CommitSha { get; set; }

Optional. The full SHA hash of a specific commit from which content should be read.

Property Value
Type Description
string

HasBranch

public bool HasBranch { get; }

Gets whether the "branch" field is set

Property Value
Type Description
bool

HasCommitSha

public bool HasCommitSha { get; }

Gets whether the "commit_sha" field is set

Property Value
Type Description
bool

HasRefTag

public bool HasRefTag { get; }

Gets whether the "ref_tag" field is set

Property Value
Type Description
bool

RefTag

public string RefTag { get; set; }

Optional. The reference tag from which content should be read. For example: "v1.2.3"

Property Value
Type Description
string

ReferenceCase

public GitReference.ReferenceOneofCase ReferenceCase { get; }
Property Value
Type Description
GitReferenceReferenceOneofCase