Cloud Build v1 API - Class GitRepoSource (2.7.0)

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

Reference documentation and code samples for the Cloud Build v1 API class GitRepoSource.

GitRepoSource describes a repo and ref of a code repository.

Inheritance

object > GitRepoSource

Namespace

Google.Cloud.CloudBuild.V1

Assembly

Google.Cloud.CloudBuild.V1.dll

Constructors

GitRepoSource()

public GitRepoSource()

GitRepoSource(GitRepoSource)

public GitRepoSource(GitRepoSource other)
Parameter
NameDescription
otherGitRepoSource

Properties

EnterpriseConfigCase

public GitRepoSource.EnterpriseConfigOneofCase EnterpriseConfigCase { get; }
Property Value
TypeDescription
GitRepoSourceEnterpriseConfigOneofCase

GithubEnterpriseConfig

public string GithubEnterpriseConfig { get; set; }

The full resource name of the github enterprise config. Format: projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}. projects/{project}/githubEnterpriseConfigs/{id}.

Property Value
TypeDescription
string

GithubEnterpriseConfigAsGithubEnterpriseConfigName

public GithubEnterpriseConfigName GithubEnterpriseConfigAsGithubEnterpriseConfigName { get; set; }

GithubEnterpriseConfigName-typed view over the GithubEnterpriseConfig resource name property.

Property Value
TypeDescription
GithubEnterpriseConfigName

HasGithubEnterpriseConfig

public bool HasGithubEnterpriseConfig { get; }

Gets whether the "github_enterprise_config" field is set

Property Value
TypeDescription
bool

HasRepository

public bool HasRepository { get; }

Gets whether the "repository" field is set

Property Value
TypeDescription
bool

Ref

public string Ref { get; set; }

The branch or tag to use. Must start with "refs/" (required).

Property Value
TypeDescription
string

RepoType

public GitFileSource.Types.RepoType RepoType { get; set; }

See RepoType below.

Property Value
TypeDescription
GitFileSourceTypesRepoType

Repository

public string Repository { get; set; }

The connected repository resource name, in the format projects/*/locations/*/connections/*/repositories/*. Either uri or repository can be specified and is required.

Property Value
TypeDescription
string

RepositoryAsRepositoryName

public RepositoryName RepositoryAsRepositoryName { get; set; }

RepositoryName-typed view over the Repository resource name property.

Property Value
TypeDescription
RepositoryName

SourceCase

public GitRepoSource.SourceOneofCase SourceCase { get; }
Property Value
TypeDescription
GitRepoSourceSourceOneofCase

Uri

public string Uri { get; set; }

The URI of the repo (e.g. https://github.com/user/repo.git). Either uri or repository can be specified and is required.

Property Value
TypeDescription
string