public sealed class GitFileSource : IMessage<GitFileSource>, IEquatable<GitFileSource>, IDeepCloneable<GitFileSource>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Build v1 API class GitFileSource.
GitFileSource describes a file within a (possibly remote) code repository.
Implements
IMessageGitFileSource, IEquatableGitFileSource, IDeepCloneableGitFileSource, IBufferMessage, IMessageNamespace
Google.Cloud.CloudBuild.V1Assembly
Google.Cloud.CloudBuild.V1.dll
Constructors
GitFileSource()
public GitFileSource()
GitFileSource(GitFileSource)
public GitFileSource(GitFileSource other)
Parameter | |
---|---|
Name | Description |
other |
GitFileSource |
Properties
EnterpriseConfigCase
public GitFileSource.EnterpriseConfigOneofCase EnterpriseConfigCase { get; }
Property Value | |
---|---|
Type | Description |
GitFileSourceEnterpriseConfigOneofCase |
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 |
Path
public string Path { get; set; }
The path of the file, with the repo root as the root of the path.
Property Value | |
---|---|
Type | Description |
string |
RepoType
public GitFileSource.Types.RepoType RepoType { get; set; }
See RepoType above.
Property Value | |
---|---|
Type | Description |
GitFileSourceTypesRepoType |
Repository
public string Repository { get; set; }
The fully qualified resource name of the Repos API repository. Either URI or repository can be specified. If unspecified, the repo from which the trigger invocation originated is assumed to be the repo from which to read the specified path.
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 |
Revision
public string Revision { get; set; }
The branch, tag, arbitrary ref, or SHA version of the repo to use when resolving the filename (optional). This field respects the same syntax/resolution as described here: https://git-scm.com/docs/gitrevisions If unspecified, the revision from which the trigger invocation originated is assumed to be the revision from which to read the specified path.
Property Value | |
---|---|
Type | Description |
string |
SourceCase
public GitFileSource.SourceOneofCase SourceCase { get; }
Property Value | |
---|---|
Type | Description |
GitFileSourceSourceOneofCase |
Uri
public string Uri { get; set; }
The URI of the repo. Either uri or repository can be specified. If unspecified, the repo from which the trigger invocation originated is assumed to be the repo from which to read the specified path.
Property Value | |
---|---|
Type | Description |
string |