Class ProjectsResource.LocationsResource.ConnectionsResource.GitRepositoryLinksResource.FetchCommitRequest
Fetch Commit details from a Git repository link.
Inheritance
Inherited Members
Namespace: Google.Apis.DeveloperConnect.v1
Assembly: Google.Apis.DeveloperConnect.v1.dll
Syntax
public class ProjectsResource.LocationsResource.ConnectionsResource.GitRepositoryLinksResource.FetchCommitRequest : DeveloperConnectBaseServiceRequest<FetchGitRepositoryLinkCommitResponse>, IClientServiceRequest<FetchGitRepositoryLinkCommitResponse>, IClientServiceRequest
Constructors
FetchCommitRequest(IClientService, string)
Constructs a new FetchCommit request.
Declaration
public FetchCommitRequest(IClientService service, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| string | name |
Properties
CommitSha
Required. The commit SHA, or symbolic revision (for example, branch name, tag, or Git reference).
Declaration
[RequestParameter("commitSha", RequestParameterType.Query)]
public virtual string CommitSha { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
Name
Required. The resource name of the GitRepositoryLink in the format
projects/*/locations/*/connections/*/gitRepositoryLinks/*.
Declaration
[RequestParameter("name", RequestParameterType.Path)]
public virtual string Name { get; }
Property Value
| Type | Description |
|---|---|
| string |
PathFilters
Optional. Path patterns or exact paths to filter returned files (only applicable in FULL
view). When path_filters is specified, FileDiff.patch is populated for all matching
files (use ["**"] to include patches for all changed files). When path_filters is
omitted or empty, the full list of FileDiff is returned without patch diffs
(FileDiff.patch is empty).
Declaration
[RequestParameter("pathFilters", RequestParameterType.Query)]
public virtual Repeatable<string> PathFilters { get; set; }
Property Value
| Type | Description |
|---|---|
| Repeatable<string> |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
View
Optional. The level of commit details to return in the response. Defaults to FULL if
unspecified. In FULL view, files metadata (paths and statuses) are returned;
path_filters must also be specified to populate line patch hunks.
Declaration
[RequestParameter("view", RequestParameterType.Query)]
public virtual ProjectsResource.LocationsResource.ConnectionsResource.GitRepositoryLinksResource.FetchCommitRequest.ViewEnum? View { get; set; }
Property Value
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.ConnectionsResource.GitRepositoryLinksResource.FetchCommitRequest.ViewEnum? |
Methods
InitParameters()
Initializes FetchCommit parameter list.
Declaration
protected override void InitParameters()