Show / Hide Table of Contents

Class ProjectsResource.LocationsResource.RepositoriesResource.PullRequestsResource

The "pullRequests" collection of methods.

Inheritance
object
ProjectsResource.LocationsResource.RepositoriesResource.PullRequestsResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.SecureSourceManager.v1
Assembly: Google.Apis.SecureSourceManager.v1.dll
Syntax
public class ProjectsResource.LocationsResource.RepositoriesResource.PullRequestsResource

Constructors

PullRequestsResource(IClientService)

Constructs a new resource.

Declaration
public PullRequestsResource(IClientService service)
Parameters
Type Name Description
IClientService service

Properties

PullRequestComments

Gets the PullRequestComments resource.

Declaration
public virtual ProjectsResource.LocationsResource.RepositoriesResource.PullRequestsResource.PullRequestCommentsResource PullRequestComments { get; }
Property Value
Type Description
ProjectsResource.LocationsResource.RepositoriesResource.PullRequestsResource.PullRequestCommentsResource

Methods

Close(ClosePullRequestRequest, string)

Closes a pull request without merging.

Declaration
public virtual ProjectsResource.LocationsResource.RepositoriesResource.PullRequestsResource.CloseRequest Close(ClosePullRequestRequest body, string name)
Parameters
Type Name Description
ClosePullRequestRequest body

The body of the request.

string name

Required. The pull request to close. Format: projects/{project_number}/locations/{location_id}/repositories/{repository_id}/pullRequests/{pull_request_id}

Returns
Type Description
ProjectsResource.LocationsResource.RepositoriesResource.PullRequestsResource.CloseRequest

Create(PullRequest, string)

Creates a pull request.

Declaration
public virtual ProjectsResource.LocationsResource.RepositoriesResource.PullRequestsResource.CreateRequest Create(PullRequest body, string parent)
Parameters
Type Name Description
PullRequest body

The body of the request.

string parent

Required. The repository that the pull request is created from. Format: projects/{project_number}/locations/{location_id}/repositories/{repository_id}

Returns
Type Description
ProjectsResource.LocationsResource.RepositoriesResource.PullRequestsResource.CreateRequest

Get(string)

Gets a pull request.

Declaration
public virtual ProjectsResource.LocationsResource.RepositoriesResource.PullRequestsResource.GetRequest Get(string name)
Parameters
Type Name Description
string name

Required. Name of the pull request to retrieve. The format is projects/{project}/locations/{location}/repositories/{repository}/pullRequests/{pull_request}.

Returns
Type Description
ProjectsResource.LocationsResource.RepositoriesResource.PullRequestsResource.GetRequest

List(string)

Lists pull requests in a repository.

Declaration
public virtual ProjectsResource.LocationsResource.RepositoriesResource.PullRequestsResource.ListRequest List(string parent)
Parameters
Type Name Description
string parent

Required. The repository in which to list pull requests. Format: projects/{project_number}/locations/{location_id}/repositories/{repository_id}

Returns
Type Description
ProjectsResource.LocationsResource.RepositoriesResource.PullRequestsResource.ListRequest

ListFileDiffs(string)

Lists a pull request's file diffs.

Declaration
public virtual ProjectsResource.LocationsResource.RepositoriesResource.PullRequestsResource.ListFileDiffsRequest ListFileDiffs(string name)
Parameters
Type Name Description
string name

Required. The pull request to list file diffs for. Format: projects/{project_number}/locations/{location_id}/repositories/{repository_id}/pullRequests/{pull_request_id}

Returns
Type Description
ProjectsResource.LocationsResource.RepositoriesResource.PullRequestsResource.ListFileDiffsRequest

Merge(MergePullRequestRequest, string)

Merges a pull request.

Declaration
public virtual ProjectsResource.LocationsResource.RepositoriesResource.PullRequestsResource.MergeRequest Merge(MergePullRequestRequest body, string name)
Parameters
Type Name Description
MergePullRequestRequest body

The body of the request.

string name

Required. The pull request to merge. Format: projects/{project_number}/locations/{location_id}/repositories/{repository_id}/pullRequests/{pull_request_id}

Returns
Type Description
ProjectsResource.LocationsResource.RepositoriesResource.PullRequestsResource.MergeRequest

Open(OpenPullRequestRequest, string)

Opens a pull request.

Declaration
public virtual ProjectsResource.LocationsResource.RepositoriesResource.PullRequestsResource.OpenRequest Open(OpenPullRequestRequest body, string name)
Parameters
Type Name Description
OpenPullRequestRequest body

The body of the request.

string name

Required. The pull request to open. Format: projects/{project_number}/locations/{location_id}/repositories/{repository_id}/pullRequests/{pull_request_id}

Returns
Type Description
ProjectsResource.LocationsResource.RepositoriesResource.PullRequestsResource.OpenRequest

Patch(PullRequest, string)

Updates a pull request.

Declaration
public virtual ProjectsResource.LocationsResource.RepositoriesResource.PullRequestsResource.PatchRequest Patch(PullRequest body, string name)
Parameters
Type Name Description
PullRequest body

The body of the request.

string name

Output only. A unique identifier for a PullRequest. The number appended at the end is generated by the server. Format: projects/{project}/locations/{location}/repositories/{repository}/pullRequests/{pull_request_id}

Returns
Type Description
ProjectsResource.LocationsResource.RepositoriesResource.PullRequestsResource.PatchRequest
In this article
Back to top Generated by DocFX