Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

SecureSourceManager

import { SecureSourceManager } from "https://googleapis.deno.dev/v1/securesourcemanager:v1.ts";

Regionally deployed, single-tenant managed source code repository hosted on Google Cloud.

class SecureSourceManager {
constructor(client?: CredentialsClient, baseUrl?: string);
async projectsLocationsGet(name: string): Promise<Location>;
async projectsLocationsInstancesCreate(
parent: string,
req: Instance,
): Promise<Operation>;
async projectsLocationsInstancesDelete(name: string, opts?: ProjectsLocationsInstancesDeleteOptions): Promise<Operation>;
async projectsLocationsInstancesGet(name: string): Promise<Instance>;
async projectsLocationsInstancesGetIamPolicy(resource: string, opts?: ProjectsLocationsInstancesGetIamPolicyOptions): Promise<Policy>;
async projectsLocationsInstancesList(parent: string, opts?: ProjectsLocationsInstancesListOptions): Promise<ListInstancesResponse>;
async projectsLocationsInstancesSetIamPolicy(resource: string, req: SetIamPolicyRequest): Promise<Policy>;
async projectsLocationsInstancesTestIamPermissions(resource: string, req: TestIamPermissionsRequest): Promise<TestIamPermissionsResponse>;
async projectsLocationsList(name: string, opts?: ProjectsLocationsListOptions): Promise<ListLocationsResponse>;
async projectsLocationsOperationsCancel(name: string, req: CancelOperationRequest): Promise<Empty>;
async projectsLocationsOperationsDelete(name: string): Promise<Empty>;
async projectsLocationsOperationsGet(name: string): Promise<Operation>;
async projectsLocationsOperationsList(name: string, opts?: ProjectsLocationsOperationsListOptions): Promise<ListOperationsResponse>;
async projectsLocationsRepositoriesBranchRulesCreate(
parent: string,
): Promise<Operation>;
async projectsLocationsRepositoriesBranchRulesDelete(name: string, opts?: ProjectsLocationsRepositoriesBranchRulesDeleteOptions): Promise<Operation>;
async projectsLocationsRepositoriesBranchRulesGet(name: string): Promise<BranchRule>;
async projectsLocationsRepositoriesBranchRulesList(parent: string, opts?: ProjectsLocationsRepositoriesBranchRulesListOptions): Promise<ListBranchRulesResponse>;
async projectsLocationsRepositoriesBranchRulesPatch(
name: string,
): Promise<Operation>;
async projectsLocationsRepositoriesCreate(
parent: string,
): Promise<Operation>;
async projectsLocationsRepositoriesDelete(name: string, opts?: ProjectsLocationsRepositoriesDeleteOptions): Promise<Operation>;
async projectsLocationsRepositoriesFetchBlob(repository: string, opts?: ProjectsLocationsRepositoriesFetchBlobOptions): Promise<FetchBlobResponse>;
async projectsLocationsRepositoriesFetchTree(repository: string, opts?: ProjectsLocationsRepositoriesFetchTreeOptions): Promise<FetchTreeResponse>;
async projectsLocationsRepositoriesGet(name: string): Promise<Repository>;
async projectsLocationsRepositoriesGetIamPolicy(resource: string, opts?: ProjectsLocationsRepositoriesGetIamPolicyOptions): Promise<Policy>;
async projectsLocationsRepositoriesHooksCreate(
parent: string,
req: Hook,
): Promise<Operation>;
async projectsLocationsRepositoriesHooksDelete(name: string): Promise<Operation>;
async projectsLocationsRepositoriesHooksGet(name: string): Promise<Hook>;
async projectsLocationsRepositoriesHooksList(parent: string, opts?: ProjectsLocationsRepositoriesHooksListOptions): Promise<ListHooksResponse>;
async projectsLocationsRepositoriesHooksPatch(
name: string,
req: Hook,
): Promise<Operation>;
async projectsLocationsRepositoriesIssuesClose(name: string, req: CloseIssueRequest): Promise<Operation>;
async projectsLocationsRepositoriesIssuesCreate(parent: string, req: Issue): Promise<Operation>;
async projectsLocationsRepositoriesIssuesDelete(name: string, opts?: ProjectsLocationsRepositoriesIssuesDeleteOptions): Promise<Operation>;
async projectsLocationsRepositoriesIssuesGet(name: string): Promise<Issue>;
async projectsLocationsRepositoriesIssuesIssueCommentsCreate(parent: string, req: IssueComment): Promise<Operation>;
async projectsLocationsRepositoriesIssuesIssueCommentsDelete(name: string): Promise<Operation>;
async projectsLocationsRepositoriesIssuesIssueCommentsGet(name: string): Promise<IssueComment>;
async projectsLocationsRepositoriesIssuesIssueCommentsList(parent: string, opts?: ProjectsLocationsRepositoriesIssuesIssueCommentsListOptions): Promise<ListIssueCommentsResponse>;
async projectsLocationsRepositoriesIssuesIssueCommentsPatch(
name: string,
): Promise<Operation>;
async projectsLocationsRepositoriesIssuesList(parent: string, opts?: ProjectsLocationsRepositoriesIssuesListOptions): Promise<ListIssuesResponse>;
async projectsLocationsRepositoriesIssuesOpen(name: string, req: OpenIssueRequest): Promise<Operation>;
async projectsLocationsRepositoriesIssuesPatch(
name: string,
req: Issue,
): Promise<Operation>;
async projectsLocationsRepositoriesList(parent: string, opts?: ProjectsLocationsRepositoriesListOptions): Promise<ListRepositoriesResponse>;
async projectsLocationsRepositoriesPatch(
name: string,
): Promise<Operation>;
async projectsLocationsRepositoriesPullRequestsClose(name: string, req: ClosePullRequestRequest): Promise<Operation>;
async projectsLocationsRepositoriesPullRequestsCreate(parent: string, req: PullRequest): Promise<Operation>;
async projectsLocationsRepositoriesPullRequestsGet(name: string): Promise<PullRequest>;
async projectsLocationsRepositoriesPullRequestsList(parent: string, opts?: ProjectsLocationsRepositoriesPullRequestsListOptions): Promise<ListPullRequestsResponse>;
async projectsLocationsRepositoriesPullRequestsListFileDiffs(name: string, opts?: ProjectsLocationsRepositoriesPullRequestsListFileDiffsOptions): Promise<ListPullRequestFileDiffsResponse>;
async projectsLocationsRepositoriesPullRequestsMerge(name: string, req: MergePullRequestRequest): Promise<Operation>;
async projectsLocationsRepositoriesPullRequestsOpen(name: string, req: OpenPullRequestRequest): Promise<Operation>;
async projectsLocationsRepositoriesPullRequestsPatch(
name: string,
): Promise<Operation>;
async projectsLocationsRepositoriesPullRequestsPullRequestCommentsBatchCreate(parent: string, req: BatchCreatePullRequestCommentsRequest): Promise<Operation>;
async projectsLocationsRepositoriesPullRequestsPullRequestCommentsCreate(parent: string, req: PullRequestComment): Promise<Operation>;
async projectsLocationsRepositoriesPullRequestsPullRequestCommentsDelete(name: string): Promise<Operation>;
async projectsLocationsRepositoriesPullRequestsPullRequestCommentsGet(name: string): Promise<PullRequestComment>;
async projectsLocationsRepositoriesPullRequestsPullRequestCommentsList(parent: string, opts?: ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsListOptions): Promise<ListPullRequestCommentsResponse>;
async projectsLocationsRepositoriesPullRequestsPullRequestCommentsPatch(
name: string,
): Promise<Operation>;
async projectsLocationsRepositoriesPullRequestsPullRequestCommentsResolve(parent: string, req: ResolvePullRequestCommentsRequest): Promise<Operation>;
async projectsLocationsRepositoriesPullRequestsPullRequestCommentsUnresolve(parent: string, req: UnresolvePullRequestCommentsRequest): Promise<Operation>;
async projectsLocationsRepositoriesSetIamPolicy(resource: string, req: SetIamPolicyRequest): Promise<Policy>;
async projectsLocationsRepositoriesTestIamPermissions(resource: string, req: TestIamPermissionsRequest): Promise<TestIamPermissionsResponse>;
}

§Constructors

§
new SecureSourceManager(client?: CredentialsClient, baseUrl?: string)
[src]

§Methods

§
projectsLocationsGet(name: string): Promise<Location>
[src]

Gets information about a location.

@param name

Resource name for the location.

§
projectsLocationsInstancesCreate(parent: string, req: Instance, opts?: ProjectsLocationsInstancesCreateOptions): Promise<Operation>
[src]

Creates a new instance in a given project and location.

@param parent

Required. Value for parent.

§
projectsLocationsInstancesDelete(name: string, opts?: ProjectsLocationsInstancesDeleteOptions): Promise<Operation>
[src]

Deletes a single instance.

@param name

Required. Name of the resource.

§
projectsLocationsInstancesGet(name: string): Promise<Instance>
[src]

Gets details of a single instance.

@param name

Required. Name of the resource.

§
projectsLocationsInstancesGetIamPolicy(resource: string, opts?: ProjectsLocationsInstancesGetIamPolicyOptions): Promise<Policy>
[src]

Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.

@param resource

REQUIRED: The resource for which the policy is being requested. See Resource names for the appropriate value for this field.

§
projectsLocationsInstancesList(parent: string, opts?: ProjectsLocationsInstancesListOptions): Promise<ListInstancesResponse>
[src]

Lists Instances in a given project and location.

@param parent

Required. Parent value for ListInstancesRequest.

§
projectsLocationsInstancesSetIamPolicy(resource: string, req: SetIamPolicyRequest): Promise<Policy>
[src]

Sets the access control policy on the specified resource. Replaces any existing policy. Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.

@param resource

REQUIRED: The resource for which the policy is being specified. See Resource names for the appropriate value for this field.

§
projectsLocationsInstancesTestIamPermissions(resource: string, req: TestIamPermissionsRequest): Promise<TestIamPermissionsResponse>
[src]

Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.

@param resource

REQUIRED: The resource for which the policy detail is being requested. See Resource names for the appropriate value for this field.

§
projectsLocationsList(name: string, opts?: ProjectsLocationsListOptions): Promise<ListLocationsResponse>
[src]

Lists information about the supported locations for this service.

@param name

The resource that owns the locations collection, if applicable.

§
projectsLocationsOperationsCancel(name: string, req: CancelOperationRequest): Promise<Empty>
[src]

Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to Code.CANCELLED.

@param name

The name of the operation resource to be cancelled.

§
projectsLocationsOperationsDelete(name: string): Promise<Empty>
[src]

Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED.

@param name

The name of the operation resource to be deleted.

§
projectsLocationsOperationsGet(name: string): Promise<Operation>
[src]

Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.

@param name

The name of the operation resource.

§
projectsLocationsOperationsList(name: string, opts?: ProjectsLocationsOperationsListOptions): Promise<ListOperationsResponse>
[src]

Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns UNIMPLEMENTED.

@param name

The name of the operation's parent resource.

§
projectsLocationsRepositoriesBranchRulesCreate(parent: string, req: BranchRule, opts?: ProjectsLocationsRepositoriesBranchRulesCreateOptions): Promise<Operation>
[src]

CreateBranchRule creates a branch rule in a given repository.

§
projectsLocationsRepositoriesBranchRulesDelete(name: string, opts?: ProjectsLocationsRepositoriesBranchRulesDeleteOptions): Promise<Operation>
[src]

DeleteBranchRule deletes a branch rule.

§
projectsLocationsRepositoriesBranchRulesGet(name: string): Promise<BranchRule>
[src]

GetBranchRule gets a branch rule.

@param name

Required. Name of the repository to retrieve. The format is projects/{project}/locations/{location}/repositories/{repository}/branchRules/{branch_rule}.

§
projectsLocationsRepositoriesBranchRulesList(parent: string, opts?: ProjectsLocationsRepositoriesBranchRulesListOptions): Promise<ListBranchRulesResponse>
[src]

ListBranchRules lists branch rules in a given repository.

§
projectsLocationsRepositoriesBranchRulesPatch(name: string, req: BranchRule, opts?: ProjectsLocationsRepositoriesBranchRulesPatchOptions): Promise<Operation>
[src]

UpdateBranchRule updates a branch rule.

@param name

Optional. A unique identifier for a BranchRule. The name should be of the format: projects/{project}/locations/{location}/repositories/{repository}/branchRules/{branch_rule}

§
projectsLocationsRepositoriesCreate(parent: string, req: Repository, opts?: ProjectsLocationsRepositoriesCreateOptions): Promise<Operation>
[src]

Creates a new repository in a given project and location. The Repository.Instance field is required in the request body for requests using the securesourcemanager.googleapis.com endpoint.

@param parent

Required. The project in which to create the repository. Values are of the form projects/{project_number}/locations/{location_id}

§
projectsLocationsRepositoriesDelete(name: string, opts?: ProjectsLocationsRepositoriesDeleteOptions): Promise<Operation>
[src]

Deletes a Repository.

@param name

Required. Name of the repository to delete. The format is projects/{project_number}/locations/{location_id}/repositories/{repository_id}.

§
projectsLocationsRepositoriesFetchBlob(repository: string, opts?: ProjectsLocationsRepositoriesFetchBlobOptions): Promise<FetchBlobResponse>
[src]

Fetches a blob from a repository.

@param repository

Required. The format is projects/{project_number}/locations/{location_id}/repositories/{repository_id}. Specifies the repository containing the blob.

§
projectsLocationsRepositoriesFetchTree(repository: string, opts?: ProjectsLocationsRepositoriesFetchTreeOptions): Promise<FetchTreeResponse>
[src]

Fetches a tree from a repository.

@param repository

Required. The format is projects/{project_number}/locations/{location_id}/repositories/{repository_id}. Specifies the repository to fetch the tree from.

§
projectsLocationsRepositoriesGet(name: string): Promise<Repository>
[src]

Gets metadata of a repository.

@param name

Required. Name of the repository to retrieve. The format is projects/{project_number}/locations/{location_id}/repositories/{repository_id}.

§
projectsLocationsRepositoriesGetIamPolicy(resource: string, opts?: ProjectsLocationsRepositoriesGetIamPolicyOptions): Promise<Policy>
[src]

Get IAM policy for a repository.

@param resource

REQUIRED: The resource for which the policy is being requested. See Resource names for the appropriate value for this field.

§
projectsLocationsRepositoriesHooksCreate(parent: string, req: Hook, opts?: ProjectsLocationsRepositoriesHooksCreateOptions): Promise<Operation>
[src]

Creates a new hook in a given repository.

@param parent

Required. The repository in which to create the hook. Values are of the form projects/{project_number}/locations/{location_id}/repositories/{repository_id}

§
projectsLocationsRepositoriesHooksDelete(name: string): Promise<Operation>
[src]

Deletes a Hook.

@param name

Required. Name of the hook to delete. The format is projects/{project_number}/locations/{location_id}/repositories/{repository_id}/hooks/{hook_id}.

§
projectsLocationsRepositoriesHooksGet(name: string): Promise<Hook>
[src]

Gets metadata of a hook.

@param name

Required. Name of the hook to retrieve. The format is projects/{project_number}/locations/{location_id}/repositories/{repository_id}/hooks/{hook_id}.

§
projectsLocationsRepositoriesHooksList(parent: string, opts?: ProjectsLocationsRepositoriesHooksListOptions): Promise<ListHooksResponse>
[src]

Lists hooks in a given repository.

@param parent

Required. Parent value for ListHooksRequest.

§
projectsLocationsRepositoriesHooksPatch(name: string, req: Hook, opts?: ProjectsLocationsRepositoriesHooksPatchOptions): Promise<Operation>
[src]

Updates the metadata of a hook.

@param name

Identifier. A unique identifier for a Hook. The name should be of the format: projects/{project}/locations/{location_id}/repositories/{repository_id}/hooks/{hook_id}

§
projectsLocationsRepositoriesIssuesClose(name: string, req: CloseIssueRequest): Promise<Operation>
[src]

Closes an issue.

@param name

Required. Name of the issue to close. The format is projects/{project_number}/locations/{location_id}/repositories/{repository_id}/issues/{issue_id}.

§
projectsLocationsRepositoriesIssuesCreate(parent: string, req: Issue): Promise<Operation>
[src]

Creates an issue.

@param parent

Required. The repository in which to create the issue. Format: projects/{project_number}/locations/{location_id}/repositories/{repository_id}

§
projectsLocationsRepositoriesIssuesDelete(name: string, opts?: ProjectsLocationsRepositoriesIssuesDeleteOptions): Promise<Operation>
[src]

Deletes an issue.

@param name

Required. Name of the issue to delete. The format is projects/{project_number}/locations/{location_id}/repositories/{repository_id}/issues/{issue_id}.

§
projectsLocationsRepositoriesIssuesGet(name: string): Promise<Issue>
[src]

Gets an issue.

@param name

Required. Name of the issue to retrieve. The format is projects/{project}/locations/{location}/repositories/{repository}/issues/{issue_id}.

§
projectsLocationsRepositoriesIssuesIssueCommentsCreate(parent: string, req: IssueComment): Promise<Operation>
[src]

Creates an issue comment.

@param parent

Required. The issue in which to create the issue comment. Format: projects/{project_number}/locations/{location_id}/repositories/{repository_id}/issues/{issue_id}

§
projectsLocationsRepositoriesIssuesIssueCommentsDelete(name: string): Promise<Operation>
[src]

Deletes an issue comment.

@param name

Required. Name of the issue comment to delete. The format is projects/{project_number}/locations/{location_id}/repositories/{repository_id}/issues/{issue_id}/issueComments/{comment_id}.

§
projectsLocationsRepositoriesIssuesIssueCommentsGet(name: string): Promise<IssueComment>
[src]

Gets an issue comment.

@param name

Required. Name of the issue comment to retrieve. The format is projects/{project}/locations/{location}/repositories/{repository}/issues/{issue_id}/issueComments/{comment_id}.

§
projectsLocationsRepositoriesIssuesIssueCommentsList(parent: string, opts?: ProjectsLocationsRepositoriesIssuesIssueCommentsListOptions): Promise<ListIssueCommentsResponse>
[src]

Lists comments in an issue.

@param parent

Required. The issue in which to list the comments. Format: projects/{project_number}/locations/{location_id}/repositories/{repository_id}/issues/{issue_id}

§
projectsLocationsRepositoriesIssuesIssueCommentsPatch(name: string, req: IssueComment, opts?: ProjectsLocationsRepositoriesIssuesIssueCommentsPatchOptions): Promise<Operation>
[src]

Updates an issue comment.

@param name

Identifier. Unique identifier for an issue comment. The comment id is generated by the server. Format: projects/{project}/locations/{location}/repositories/{repository}/issues/{issue}/issueComments/{comment_id}

§
projectsLocationsRepositoriesIssuesList(parent: string, opts?: ProjectsLocationsRepositoriesIssuesListOptions): Promise<ListIssuesResponse>
[src]

Lists issues in a repository.

@param parent

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

§
projectsLocationsRepositoriesIssuesOpen(name: string, req: OpenIssueRequest): Promise<Operation>
[src]

Opens an issue.

@param name

Required. Name of the issue to open. The format is projects/{project_number}/locations/{location_id}/repositories/{repository_id}/issues/{issue_id}.

§
projectsLocationsRepositoriesIssuesPatch(name: string, req: Issue, opts?: ProjectsLocationsRepositoriesIssuesPatchOptions): Promise<Operation>
[src]

Updates a issue.

@param name

Identifier. Unique identifier for an issue. The issue id is generated by the server. Format: projects/{project}/locations/{location}/repositories/{repository}/issues/{issue_id}

§
projectsLocationsRepositoriesList(parent: string, opts?: ProjectsLocationsRepositoriesListOptions): Promise<ListRepositoriesResponse>
[src]

Lists Repositories in a given project and location. The instance field is required in the query parameter for requests using the securesourcemanager.googleapis.com endpoint.

@param parent

Required. Parent value for ListRepositoriesRequest.

§
projectsLocationsRepositoriesPatch(name: string, req: Repository, opts?: ProjectsLocationsRepositoriesPatchOptions): Promise<Operation>
[src]

Updates the metadata of a repository.

@param name

Optional. A unique identifier for a repository. The name should be of the format: projects/{project}/locations/{location_id}/repositories/{repository_id}

§
projectsLocationsRepositoriesPullRequestsClose(name: string, req: ClosePullRequestRequest): Promise<Operation>
[src]

Closes a pull request without merging.

@param name

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

§
projectsLocationsRepositoriesPullRequestsCreate(parent: string, req: PullRequest): Promise<Operation>
[src]

Creates a pull request.

@param parent

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

§
projectsLocationsRepositoriesPullRequestsGet(name: string): Promise<PullRequest>
[src]

Gets a pull request.

@param name

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

§
projectsLocationsRepositoriesPullRequestsList(parent: string, opts?: ProjectsLocationsRepositoriesPullRequestsListOptions): Promise<ListPullRequestsResponse>
[src]

Lists pull requests in a repository.

@param parent

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

§
projectsLocationsRepositoriesPullRequestsListFileDiffs(name: string, opts?: ProjectsLocationsRepositoriesPullRequestsListFileDiffsOptions): Promise<ListPullRequestFileDiffsResponse>
[src]

Lists a pull request's file diffs.

@param name

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

§
projectsLocationsRepositoriesPullRequestsMerge(name: string, req: MergePullRequestRequest): Promise<Operation>
[src]

Merges a pull request.

@param name

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

§
projectsLocationsRepositoriesPullRequestsOpen(name: string, req: OpenPullRequestRequest): Promise<Operation>
[src]

Opens a pull request.

@param name

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

§
projectsLocationsRepositoriesPullRequestsPatch(name: string, req: PullRequest, opts?: ProjectsLocationsRepositoriesPullRequestsPatchOptions): Promise<Operation>
[src]

Updates a pull request.

@param 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}

§
projectsLocationsRepositoriesPullRequestsPullRequestCommentsBatchCreate(parent: string, req: BatchCreatePullRequestCommentsRequest): Promise<Operation>
[src]

Batch creates pull request comments. This function is used to create multiple PullRequestComments for code review. There needs to be exactly one PullRequestComment of type Review, and at most 100 PullRequestComments of type Code per request. The Position of the code comments must be unique within the request.

@param parent

Required. The pull request in which to create the pull request comments. Format: projects/{project_number}/locations/{location_id}/repositories/{repository_id}/pullRequests/{pull_request_id}

§
projectsLocationsRepositoriesPullRequestsPullRequestCommentsCreate(parent: string, req: PullRequestComment): Promise<Operation>
[src]

Creates a pull request comment. This function is used to create a single PullRequestComment of type Comment, or a single PullRequestComment of type Code that's replying to another PullRequestComment of type Code. Use BatchCreatePullRequestComments to create multiple PullRequestComments for code reviews.

@param parent

Required. The pull request in which to create the pull request comment. Format: projects/{project_number}/locations/{location_id}/repositories/{repository_id}/pullRequests/{pull_request_id}

§
projectsLocationsRepositoriesPullRequestsPullRequestCommentsDelete(name: string): Promise<Operation>
[src]

Deletes a pull request comment.

@param name

Required. Name of the pull request comment to delete. The format is projects/{project_number}/locations/{location_id}/repositories/{repository_id}/pullRequests/{pull_request_id}/pullRequestComments/{comment_id}.

§
projectsLocationsRepositoriesPullRequestsPullRequestCommentsGet(name: string): Promise<PullRequestComment>
[src]

Gets a pull request comment.

@param name

Required. Name of the pull request comment to retrieve. The format is projects/{project_number}/locations/{location_id}/repositories/{repository_id}/pullRequests/{pull_request_id}/pullRequestComments/{comment_id}.

§
projectsLocationsRepositoriesPullRequestsPullRequestCommentsList(parent: string, opts?: ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsListOptions): Promise<ListPullRequestCommentsResponse>
[src]

Lists pull request comments.

@param parent

Required. The pull request in which to list pull request comments. Format: projects/{project_number}/locations/{location_id}/repositories/{repository_id}/pullRequests/{pull_request_id}

§
projectsLocationsRepositoriesPullRequestsPullRequestCommentsPatch(name: string, req: PullRequestComment, opts?: ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsPatchOptions): Promise<Operation>
[src]

Updates a pull request comment.

@param name

Identifier. Unique identifier for the pull request comment. The comment id is generated by the server. Format: projects/{project}/locations/{location}/repositories/{repository}/pullRequests/{pull_request}/pullRequestComments/{comment_id}

§
projectsLocationsRepositoriesPullRequestsPullRequestCommentsResolve(parent: string, req: ResolvePullRequestCommentsRequest): Promise<Operation>
[src]

Resolves pull request comments. A list of PullRequestComment names must be provided. The PullRequestComment names must be in the same conversation thread. If auto_fill is set, all comments in the conversation thread will be resolved.

@param parent

Required. The pull request in which to resolve the pull request comments. Format: projects/{project_number}/locations/{location_id}/repositories/{repository_id}/pullRequests/{pull_request_id}

§
projectsLocationsRepositoriesPullRequestsPullRequestCommentsUnresolve(parent: string, req: UnresolvePullRequestCommentsRequest): Promise<Operation>
[src]

Unresolves pull request comments. A list of PullRequestComment names must be provided. The PullRequestComment names must be in the same conversation thread. If auto_fill is set, all comments in the conversation thread will be unresolved.

@param parent

Required. The pull request in which to resolve the pull request comments. Format: projects/{project_number}/locations/{location_id}/repositories/{repository_id}/pullRequests/{pull_request_id}

§
projectsLocationsRepositoriesSetIamPolicy(resource: string, req: SetIamPolicyRequest): Promise<Policy>
[src]

Set IAM policy on a repository.

@param resource

REQUIRED: The resource for which the policy is being specified. See Resource names for the appropriate value for this field.

§
projectsLocationsRepositoriesTestIamPermissions(resource: string, req: TestIamPermissionsRequest): Promise<TestIamPermissionsResponse>
[src]

Test IAM permissions on a repository. IAM permission checks are not required on this method.

@param resource

REQUIRED: The resource for which the policy detail is being requested. See Resource names for the appropriate value for this field.