Cloud Build v1 API - Class GitFileSource (2.7.0)

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.

Inheritance

object > GitFileSource

Namespace

Google.Cloud.CloudBuild.V1

Assembly

Google.Cloud.CloudBuild.V1.dll

Constructors

GitFileSource()

public GitFileSource()

GitFileSource(GitFileSource)

public GitFileSource(GitFileSource other)
Parameter
NameDescription
otherGitFileSource

Properties

EnterpriseConfigCase

public GitFileSource.EnterpriseConfigOneofCase EnterpriseConfigCase { get; }
Property Value
TypeDescription
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
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

Path

public string Path { get; set; }

The path of the file, with the repo root as the root of the path.

Property Value
TypeDescription
string

RepoType

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

See RepoType above.

Property Value
TypeDescription
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
TypeDescription
string

RepositoryAsRepositoryName

public RepositoryName RepositoryAsRepositoryName { get; set; }

RepositoryName-typed view over the Repository resource name property.

Property Value
TypeDescription
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
TypeDescription
string

SourceCase

public GitFileSource.SourceOneofCase SourceCase { get; }
Property Value
TypeDescription
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
TypeDescription
string