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.
Implements
IMessageGitRepoSource, IEquatableGitRepoSource, IDeepCloneableGitRepoSource, IBufferMessage, IMessageNamespace
Google.Cloud.CloudBuild.V1Assembly
Google.Cloud.CloudBuild.V1.dll
Constructors
GitRepoSource()
public GitRepoSource()
GitRepoSource(GitRepoSource)
public GitRepoSource(GitRepoSource other)
Parameter | |
---|---|
Name | Description |
other | GitRepoSource |
Properties
EnterpriseConfigCase
public GitRepoSource.EnterpriseConfigOneofCase EnterpriseConfigCase { get; }
Property Value | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
string |
GithubEnterpriseConfigAsGithubEnterpriseConfigName
public GithubEnterpriseConfigName GithubEnterpriseConfigAsGithubEnterpriseConfigName { get; set; }
GithubEnterpriseConfigName-typed view over the GithubEnterpriseConfig resource name property.
Property Value | |
---|---|
Type | Description |
GithubEnterpriseConfigName |
HasGithubEnterpriseConfig
public bool HasGithubEnterpriseConfig { get; }
Gets whether the "github_enterprise_config" field is set
Property Value | |
---|---|
Type | Description |
bool |
HasRepository
public bool HasRepository { get; }
Gets whether the "repository" field is set
Property Value | |
---|---|
Type | Description |
bool |
Ref
public string Ref { get; set; }
The branch or tag to use. Must start with "refs/" (required).
Property Value | |
---|---|
Type | Description |
string |
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 | |
---|---|
Type | Description |
string |
RepositoryAsRepositoryName
public RepositoryName RepositoryAsRepositoryName { get; set; }
RepositoryName-typed view over the Repository resource name property.
Property Value | |
---|---|
Type | Description |
RepositoryName |
RepoType
public GitFileSource.Types.RepoType RepoType { get; set; }
See RepoType below.
Property Value | |
---|---|
Type | Description |
GitFileSourceTypesRepoType |
SourceCase
public GitRepoSource.SourceOneofCase SourceCase { get; }
Property Value | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
string |