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.
 
  • Method Details

    • build

      protected SecureSourceManagerGrpc.SecureSourceManagerBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
      Specified by:
      build in class io.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

      public Instance getInstance(GetInstanceRequest request) throws io.grpc.StatusException
       Gets details of a single instance.
       
      Throws:
      io.grpc.StatusException
    • createInstance

      public Operation createInstance(CreateInstanceRequest request) throws io.grpc.StatusException
       Creates a new instance in a given project and location.
       
      Throws:
      io.grpc.StatusException
    • deleteInstance

      public Operation deleteInstance(DeleteInstanceRequest request) throws io.grpc.StatusException
       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

      public Repository getRepository(GetRepositoryRequest request) throws io.grpc.StatusException
       Gets metadata of a repository.
       
      Throws:
      io.grpc.StatusException
    • createRepository

      public Operation createRepository(CreateRepositoryRequest request) throws io.grpc.StatusException
       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

      public Operation updateRepository(UpdateRepositoryRequest request) throws io.grpc.StatusException
       Updates the metadata of a repository.
       
      Throws:
      io.grpc.StatusException
    • deleteRepository

      public Operation deleteRepository(DeleteRepositoryRequest request) throws io.grpc.StatusException
       Deletes a Repository.
       
      Throws:
      io.grpc.StatusException
    • listHooks

      public ListHooksResponse listHooks(ListHooksRequest request) throws io.grpc.StatusException
       Lists hooks in a given repository.
       
      Throws:
      io.grpc.StatusException
    • getHook

      public Hook getHook(GetHookRequest request) throws io.grpc.StatusException
       Gets metadata of a hook.
       
      Throws:
      io.grpc.StatusException
    • createHook

      public Operation createHook(CreateHookRequest request) throws io.grpc.StatusException
       Creates a new hook in a given repository.
       
      Throws:
      io.grpc.StatusException
    • updateHook

      public Operation updateHook(UpdateHookRequest request) throws io.grpc.StatusException
       Updates the metadata of a hook.
       
      Throws:
      io.grpc.StatusException
    • deleteHook

      public Operation deleteHook(DeleteHookRequest request) throws io.grpc.StatusException
       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

      public Operation createBranchRule(CreateBranchRuleRequest request) throws io.grpc.StatusException
       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

      public BranchRule getBranchRule(GetBranchRuleRequest request) throws io.grpc.StatusException
       GetBranchRule gets a branch rule.
       
      Throws:
      io.grpc.StatusException
    • updateBranchRule

      public Operation updateBranchRule(UpdateBranchRuleRequest request) throws io.grpc.StatusException
       UpdateBranchRule updates a branch rule.
       
      Throws:
      io.grpc.StatusException
    • deleteBranchRule

      public Operation deleteBranchRule(DeleteBranchRuleRequest request) throws io.grpc.StatusException
       DeleteBranchRule deletes a branch rule.
       
      Throws:
      io.grpc.StatusException
    • createPullRequest

      public Operation createPullRequest(CreatePullRequestRequest request) throws io.grpc.StatusException
       Creates a pull request.
       
      Throws:
      io.grpc.StatusException
    • getPullRequest

      public PullRequest getPullRequest(GetPullRequestRequest request) throws io.grpc.StatusException
       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

      public Operation updatePullRequest(UpdatePullRequestRequest request) throws io.grpc.StatusException
       Updates a pull request.
       
      Throws:
      io.grpc.StatusException
    • mergePullRequest

      public Operation mergePullRequest(MergePullRequestRequest request) throws io.grpc.StatusException
       Merges a pull request.
       
      Throws:
      io.grpc.StatusException
    • openPullRequest

      public Operation openPullRequest(OpenPullRequestRequest request) throws io.grpc.StatusException
       Opens a pull request.
       
      Throws:
      io.grpc.StatusException
    • closePullRequest

      public Operation closePullRequest(ClosePullRequestRequest request) throws io.grpc.StatusException
       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

      public FetchTreeResponse fetchTree(FetchTreeRequest request) throws io.grpc.StatusException
       Fetches a tree from a repository.
       
      Throws:
      io.grpc.StatusException
    • fetchBlob

      public FetchBlobResponse fetchBlob(FetchBlobRequest request) throws io.grpc.StatusException
       Fetches a blob from a repository.
       
      Throws:
      io.grpc.StatusException
    • createIssue

      public Operation createIssue(CreateIssueRequest request) throws io.grpc.StatusException
       Creates an issue.
       
      Throws:
      io.grpc.StatusException
    • getIssue

      public Issue getIssue(GetIssueRequest request) throws io.grpc.StatusException
       Gets an issue.
       
      Throws:
      io.grpc.StatusException
    • listIssues

      public ListIssuesResponse listIssues(ListIssuesRequest request) throws io.grpc.StatusException
       Lists issues in a repository.
       
      Throws:
      io.grpc.StatusException
    • updateIssue

      public Operation updateIssue(UpdateIssueRequest request) throws io.grpc.StatusException
       Updates a issue.
       
      Throws:
      io.grpc.StatusException
    • deleteIssue

      public Operation deleteIssue(DeleteIssueRequest request) throws io.grpc.StatusException
       Deletes an issue.
       
      Throws:
      io.grpc.StatusException
    • openIssue

      public Operation openIssue(OpenIssueRequest request) throws io.grpc.StatusException
       Opens an issue.
       
      Throws:
      io.grpc.StatusException
    • closeIssue

      public Operation closeIssue(CloseIssueRequest request) throws io.grpc.StatusException
       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

      public IssueComment getIssueComment(GetIssueCommentRequest request) throws io.grpc.StatusException
       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