Class SecureSourceManagerGrpc.SecureSourceManagerBlockingV2Stub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractBlockingStub<SecureSourceManagerGrpc.SecureSourceManagerBlockingV2Stub>
com.google.cloud.securesourcemanager.v1.SecureSourceManagerGrpc.SecureSourceManagerBlockingV2Stub
- Enclosing class:
- SecureSourceManagerGrpc
public static final class SecureSourceManagerGrpc.SecureSourceManagerBlockingV2Stub
extends io.grpc.stub.AbstractBlockingStub<SecureSourceManagerGrpc.SecureSourceManagerBlockingV2Stub>
A stub to allow clients to do synchronous rpc calls to service SecureSourceManager.
Secure Source Manager API Access Secure Source Manager instances, resources, and repositories.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub
io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>> -
Method Summary
Modifier and TypeMethodDescriptionBatch creates pull request comments.build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) closeIssue(CloseIssueRequest request) Closes an issue.closePullRequest(ClosePullRequestRequest request) Closes a pull request without merging.createBranchRule(CreateBranchRuleRequest request) CreateBranchRule creates a branch rule in a given repository.createHook(CreateHookRequest request) Creates a new hook in a given repository.createInstance(CreateInstanceRequest request) Creates a new instance in a given project and location.createIssue(CreateIssueRequest request) Creates an issue.Creates an issue comment.Creates a pull request.Creates a pull request comment.createRepository(CreateRepositoryRequest request) Creates a new repository in a given project and location.deleteBranchRule(DeleteBranchRuleRequest request) DeleteBranchRule deletes a branch rule.deleteHook(DeleteHookRequest request) Deletes a Hook.deleteInstance(DeleteInstanceRequest request) Deletes a single instance.deleteIssue(DeleteIssueRequest request) Deletes an issue.Deletes an issue comment.Deletes a pull request comment.deleteRepository(DeleteRepositoryRequest request) Deletes a Repository.fetchBlob(FetchBlobRequest request) Fetches a blob from a repository.fetchTree(FetchTreeRequest request) Fetches a tree from a repository.getBranchRule(GetBranchRuleRequest request) GetBranchRule gets a branch rule.getHook(GetHookRequest request) Gets metadata of a hook.com.google.iam.v1.PolicygetIamPolicyRepo(com.google.iam.v1.GetIamPolicyRequest request) Get IAM policy for a repository.getInstance(GetInstanceRequest request) Gets details of a single instance.getIssue(GetIssueRequest request) Gets an issue.getIssueComment(GetIssueCommentRequest request) Gets an issue comment.getPullRequest(GetPullRequestRequest request) Gets a pull request.Gets a pull request comment.getRepository(GetRepositoryRequest request) Gets metadata of a repository.listBranchRules(ListBranchRulesRequest request) ListBranchRules lists branch rules in a given repository.listHooks(ListHooksRequest request) Lists hooks in a given repository.listInstances(ListInstancesRequest request) Lists Instances in a given project and location.Lists comments in an issue.listIssues(ListIssuesRequest request) Lists issues in a repository.Lists pull request comments.Lists a pull request's file diffs.listPullRequests(ListPullRequestsRequest request) Lists pull requests in a repository.listRepositories(ListRepositoriesRequest request) Lists Repositories in a given project and location.mergePullRequest(MergePullRequestRequest request) Merges a pull request.openIssue(OpenIssueRequest request) Opens an issue.openPullRequest(OpenPullRequestRequest request) Opens a pull request.Resolves pull request comments.com.google.iam.v1.PolicysetIamPolicyRepo(com.google.iam.v1.SetIamPolicyRequest request) Set IAM policy on a repository.com.google.iam.v1.TestIamPermissionsResponsetestIamPermissionsRepo(com.google.iam.v1.TestIamPermissionsRequest request) Test IAM permissions on a repository.Unresolves pull request comments.updateBranchRule(UpdateBranchRuleRequest request) UpdateBranchRule updates a branch rule.updateHook(UpdateHookRequest request) Updates the metadata of a hook.updateIssue(UpdateIssueRequest request) Updates a issue.Updates an issue comment.Updates a pull request.Updates a pull request comment.updateRepository(UpdateRepositoryRequest request) Updates the metadata of a repository.Methods inherited from class io.grpc.stub.AbstractBlockingStub
newStub, newStubMethods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
Method Details
-
build
protected SecureSourceManagerGrpc.SecureSourceManagerBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<SecureSourceManagerGrpc.SecureSourceManagerBlockingV2Stub>
-
listInstances
public ListInstancesResponse listInstances(ListInstancesRequest request) throws io.grpc.StatusException Lists Instances in a given project and location.
- Throws:
io.grpc.StatusException
-
getInstance
Gets details of a single instance.
- Throws:
io.grpc.StatusException
-
createInstance
Creates a new instance in a given project and location.
- Throws:
io.grpc.StatusException
-
deleteInstance
Deletes a single instance.
- Throws:
io.grpc.StatusException
-
listRepositories
public ListRepositoriesResponse listRepositories(ListRepositoriesRequest request) throws io.grpc.StatusException 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.
- Throws:
io.grpc.StatusException
-
getRepository
Gets metadata of a repository.
- Throws:
io.grpc.StatusException
-
createRepository
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.
- Throws:
io.grpc.StatusException
-
updateRepository
Updates the metadata of a repository.
- Throws:
io.grpc.StatusException
-
deleteRepository
Deletes a Repository.
- Throws:
io.grpc.StatusException
-
listHooks
Lists hooks in a given repository.
- Throws:
io.grpc.StatusException
-
getHook
Gets metadata of a hook.
- Throws:
io.grpc.StatusException
-
createHook
Creates a new hook in a given repository.
- Throws:
io.grpc.StatusException
-
updateHook
Updates the metadata of a hook.
- Throws:
io.grpc.StatusException
-
deleteHook
Deletes a Hook.
- Throws:
io.grpc.StatusException
-
getIamPolicyRepo
public com.google.iam.v1.Policy getIamPolicyRepo(com.google.iam.v1.GetIamPolicyRequest request) throws io.grpc.StatusException Get IAM policy for a repository.
- Throws:
io.grpc.StatusException
-
setIamPolicyRepo
public com.google.iam.v1.Policy setIamPolicyRepo(com.google.iam.v1.SetIamPolicyRequest request) throws io.grpc.StatusException Set IAM policy on a repository.
- Throws:
io.grpc.StatusException
-
testIamPermissionsRepo
public com.google.iam.v1.TestIamPermissionsResponse testIamPermissionsRepo(com.google.iam.v1.TestIamPermissionsRequest request) throws io.grpc.StatusException Test IAM permissions on a repository. IAM permission checks are not required on this method.
- Throws:
io.grpc.StatusException
-
createBranchRule
CreateBranchRule creates a branch rule in a given repository.
- Throws:
io.grpc.StatusException
-
listBranchRules
public ListBranchRulesResponse listBranchRules(ListBranchRulesRequest request) throws io.grpc.StatusException ListBranchRules lists branch rules in a given repository.
- Throws:
io.grpc.StatusException
-
getBranchRule
GetBranchRule gets a branch rule.
- Throws:
io.grpc.StatusException
-
updateBranchRule
UpdateBranchRule updates a branch rule.
- Throws:
io.grpc.StatusException
-
deleteBranchRule
DeleteBranchRule deletes a branch rule.
- Throws:
io.grpc.StatusException
-
createPullRequest
Creates a pull request.
- Throws:
io.grpc.StatusException
-
getPullRequest
Gets a pull request.
- Throws:
io.grpc.StatusException
-
listPullRequests
public ListPullRequestsResponse listPullRequests(ListPullRequestsRequest request) throws io.grpc.StatusException Lists pull requests in a repository.
- Throws:
io.grpc.StatusException
-
updatePullRequest
Updates a pull request.
- Throws:
io.grpc.StatusException
-
mergePullRequest
Merges a pull request.
- Throws:
io.grpc.StatusException
-
openPullRequest
Opens a pull request.
- Throws:
io.grpc.StatusException
-
closePullRequest
Closes a pull request without merging.
- Throws:
io.grpc.StatusException
-
listPullRequestFileDiffs
public ListPullRequestFileDiffsResponse listPullRequestFileDiffs(ListPullRequestFileDiffsRequest request) throws io.grpc.StatusException Lists a pull request's file diffs.
- Throws:
io.grpc.StatusException
-
fetchTree
Fetches a tree from a repository.
- Throws:
io.grpc.StatusException
-
fetchBlob
Fetches a blob from a repository.
- Throws:
io.grpc.StatusException
-
createIssue
Creates an issue.
- Throws:
io.grpc.StatusException
-
getIssue
Gets an issue.
- Throws:
io.grpc.StatusException
-
listIssues
Lists issues in a repository.
- Throws:
io.grpc.StatusException
-
updateIssue
Updates a issue.
- Throws:
io.grpc.StatusException
-
deleteIssue
Deletes an issue.
- Throws:
io.grpc.StatusException
-
openIssue
Opens an issue.
- Throws:
io.grpc.StatusException
-
closeIssue
Closes an issue.
- Throws:
io.grpc.StatusException
-
getPullRequestComment
public PullRequestComment getPullRequestComment(GetPullRequestCommentRequest request) throws io.grpc.StatusException Gets a pull request comment.
- Throws:
io.grpc.StatusException
-
listPullRequestComments
public ListPullRequestCommentsResponse listPullRequestComments(ListPullRequestCommentsRequest request) throws io.grpc.StatusException Lists pull request comments.
- Throws:
io.grpc.StatusException
-
createPullRequestComment
public Operation createPullRequestComment(CreatePullRequestCommentRequest request) throws io.grpc.StatusException 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.
- Throws:
io.grpc.StatusException
-
updatePullRequestComment
public Operation updatePullRequestComment(UpdatePullRequestCommentRequest request) throws io.grpc.StatusException Updates a pull request comment.
- Throws:
io.grpc.StatusException
-
deletePullRequestComment
public Operation deletePullRequestComment(DeletePullRequestCommentRequest request) throws io.grpc.StatusException Deletes a pull request comment.
- Throws:
io.grpc.StatusException
-
batchCreatePullRequestComments
public Operation batchCreatePullRequestComments(BatchCreatePullRequestCommentsRequest request) throws io.grpc.StatusException 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.
- Throws:
io.grpc.StatusException
-
resolvePullRequestComments
public Operation resolvePullRequestComments(ResolvePullRequestCommentsRequest request) throws io.grpc.StatusException 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.
- Throws:
io.grpc.StatusException
-
unresolvePullRequestComments
public Operation unresolvePullRequestComments(UnresolvePullRequestCommentsRequest request) throws io.grpc.StatusException 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.
- Throws:
io.grpc.StatusException
-
createIssueComment
public Operation createIssueComment(CreateIssueCommentRequest request) throws io.grpc.StatusException Creates an issue comment.
- Throws:
io.grpc.StatusException
-
getIssueComment
Gets an issue comment.
- Throws:
io.grpc.StatusException
-
listIssueComments
public ListIssueCommentsResponse listIssueComments(ListIssueCommentsRequest request) throws io.grpc.StatusException Lists comments in an issue.
- Throws:
io.grpc.StatusException
-
updateIssueComment
public Operation updateIssueComment(UpdateIssueCommentRequest request) throws io.grpc.StatusException Updates an issue comment.
- Throws:
io.grpc.StatusException
-
deleteIssueComment
public Operation deleteIssueComment(DeleteIssueCommentRequest request) throws io.grpc.StatusException Deletes an issue comment.
- Throws:
io.grpc.StatusException
-