Interface PullRequestApi


  • @Produces("application/json")
    @Path("/rest/api/{jclouds.api-version}/projects")
    public interface PullRequestApi
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      Participants addParticipant​(java.lang.String project, java.lang.String repo, long pullRequestId, java.lang.String userSlug, CreateParticipants participants)  
      Participants assignParticipant​(java.lang.String project, java.lang.String repo, long pullRequestId, CreateParticipants participants)  
      MergeStatus canMerge​(java.lang.String project, java.lang.String repo, int pullRequestId)  
      ChangePage changes​(java.lang.String project, java.lang.String repo, int pullRequestId, java.lang.Boolean withComments, java.lang.Integer limit, java.lang.Integer start)  
      CommitPage commits​(java.lang.String project, java.lang.String repo, int pullRequestId, java.lang.Boolean withCounts, java.lang.Integer limit, java.lang.Integer start)  
      PullRequest create​(java.lang.String project, java.lang.String repo, CreatePullRequest createPullRequest)  
      PullRequest decline​(java.lang.String project, java.lang.String repo, int pullRequestId, int version)  
      RequestStatus delete​(java.lang.String project, java.lang.String repo, long pullRequestId, long version)  
      RequestStatus deleteParticipant​(java.lang.String project, java.lang.String repo, long pullRequestId, java.lang.String userSlug)  
      PullRequest get​(java.lang.String project, java.lang.String repo, int pullRequestId)  
      PullRequestPage list​(java.lang.String project, java.lang.String repo, java.lang.String direction, java.lang.String branchOrTag, java.lang.String state, java.lang.String order, java.lang.Boolean withAttributes, java.lang.Boolean withProperties, java.lang.Integer start, java.lang.Integer limit)  
      ActivitiesPage listActivities​(java.lang.String project, java.lang.String repo, long pullRequestId, java.lang.Integer limit, java.lang.Integer start)  
      ParticipantsPage listParticipants​(java.lang.String project, java.lang.String repo, long pullRequestId, java.lang.Integer limit, java.lang.Integer start)  
      PullRequest merge​(java.lang.String project, java.lang.String repo, int pullRequestId, int version)  
      PullRequest reopen​(java.lang.String project, java.lang.String repo, int pullRequestId, int version)  
    • Method Detail

      • get

        @Named("pull-request:get")
        @Consumes("application/json")
        @Path("/{project}/repos/{repo}/pull-requests/{pullRequestId}")
        @GET
        PullRequest get​(@PathParam("project")
                        java.lang.String project,
                        @PathParam("repo")
                        java.lang.String repo,
                        @PathParam("pullRequestId")
                        int pullRequestId)
      • list

        @Named("pull-request:list")
        @Consumes("application/json")
        @Path("/{project}/repos/{repo}/pull-requests")
        @GET
        PullRequestPage list​(@PathParam("project")
                             java.lang.String project,
                             @PathParam("repo")
                             java.lang.String repo,
                             @Nullable @QueryParam("direction")
                             java.lang.String direction,
                             @Nullable @QueryParam("at")
                             java.lang.String branchOrTag,
                             @Nullable @QueryParam("state")
                             java.lang.String state,
                             @Nullable @QueryParam("order")
                             java.lang.String order,
                             @Nullable @QueryParam("withAttributes")
                             java.lang.Boolean withAttributes,
                             @Nullable @QueryParam("withProperties")
                             java.lang.Boolean withProperties,
                             @Nullable @QueryParam("start")
                             java.lang.Integer start,
                             @Nullable @QueryParam("limit")
                             java.lang.Integer limit)
      • create

        @Named("pull-request:create")
        @Consumes("application/json")
        @Path("/{project}/repos/{repo}/pull-requests")
        @POST
        PullRequest create​(@PathParam("project")
                           java.lang.String project,
                           @PathParam("repo")
                           java.lang.String repo,
                           CreatePullRequest createPullRequest)
      • delete

        @Named("pull-request:delete")
        @Consumes("application/json")
        @Path("/{project}/repos/{repo}/pull-requests/{pullRequestId}")
        @DELETE
        RequestStatus delete​(@PathParam("project")
                             java.lang.String project,
                             @PathParam("repo")
                             java.lang.String repo,
                             @PathParam("pullRequestId")
                             long pullRequestId,
                             long version)
      • merge

        @Named("pull-request:merge")
        @Consumes("application/json")
        @Path("/{project}/repos/{repo}/pull-requests/{pullRequestId}/merge")
        @POST
        PullRequest merge​(@PathParam("project")
                          java.lang.String project,
                          @PathParam("repo")
                          java.lang.String repo,
                          @PathParam("pullRequestId")
                          int pullRequestId,
                          @QueryParam("version")
                          int version)
      • canMerge

        @Named("pull-request:can-merge")
        @Consumes("application/json")
        @Path("/{project}/repos/{repo}/pull-requests/{pullRequestId}/merge")
        @GET
        MergeStatus canMerge​(@PathParam("project")
                             java.lang.String project,
                             @PathParam("repo")
                             java.lang.String repo,
                             @PathParam("pullRequestId")
                             int pullRequestId)
      • decline

        @Named("pull-request:decline")
        @Consumes("application/json")
        @Path("/{project}/repos/{repo}/pull-requests/{pullRequestId}/decline")
        @POST
        PullRequest decline​(@PathParam("project")
                            java.lang.String project,
                            @PathParam("repo")
                            java.lang.String repo,
                            @PathParam("pullRequestId")
                            int pullRequestId,
                            @QueryParam("version")
                            int version)
      • reopen

        @Named("pull-request:reopen")
        @Consumes("application/json")
        @Path("/{project}/repos/{repo}/pull-requests/{pullRequestId}/reopen")
        @POST
        PullRequest reopen​(@PathParam("project")
                           java.lang.String project,
                           @PathParam("repo")
                           java.lang.String repo,
                           @PathParam("pullRequestId")
                           int pullRequestId,
                           @QueryParam("version")
                           int version)
      • changes

        @Named("pull-request:changes")
        @Consumes("application/json")
        @Path("/{project}/repos/{repo}/pull-requests/{pullRequestId}/changes")
        @GET
        ChangePage changes​(@PathParam("project")
                           java.lang.String project,
                           @PathParam("repo")
                           java.lang.String repo,
                           @PathParam("pullRequestId")
                           int pullRequestId,
                           @Nullable @QueryParam("withComments")
                           java.lang.Boolean withComments,
                           @Nullable @QueryParam("limit")
                           java.lang.Integer limit,
                           @Nullable @QueryParam("start")
                           java.lang.Integer start)
      • commits

        @Named("pull-request:commits")
        @Consumes("application/json")
        @Path("/{project}/repos/{repo}/pull-requests/{pullRequestId}/commits")
        @GET
        CommitPage commits​(@PathParam("project")
                           java.lang.String project,
                           @PathParam("repo")
                           java.lang.String repo,
                           @PathParam("pullRequestId")
                           int pullRequestId,
                           @Nullable @QueryParam("withCounts")
                           java.lang.Boolean withCounts,
                           @Nullable @QueryParam("limit")
                           java.lang.Integer limit,
                           @Nullable @QueryParam("start")
                           java.lang.Integer start)
      • listActivities

        @Named("pull-request:list-activities")
        @Consumes("application/json")
        @Path("/{project}/repos/{repo}/pull-requests/{pullRequestId}/activities")
        @GET
        ActivitiesPage listActivities​(@PathParam("project")
                                      java.lang.String project,
                                      @PathParam("repo")
                                      java.lang.String repo,
                                      @PathParam("pullRequestId")
                                      long pullRequestId,
                                      @Nullable @QueryParam("limit")
                                      java.lang.Integer limit,
                                      @Nullable @QueryParam("start")
                                      java.lang.Integer start)
      • listParticipants

        @Named("pull-request:list-participants")
        @Consumes("application/json")
        @Path("/{project}/repos/{repo}/pull-requests/{pullRequestId}/participants")
        @GET
        ParticipantsPage listParticipants​(@PathParam("project")
                                          java.lang.String project,
                                          @PathParam("repo")
                                          java.lang.String repo,
                                          @PathParam("pullRequestId")
                                          long pullRequestId,
                                          @Nullable @QueryParam("limit")
                                          java.lang.Integer limit,
                                          @Nullable @QueryParam("start")
                                          java.lang.Integer start)
      • assignParticipant

        @Named("pull-request:assign-participants")
        @Consumes("application/json")
        @Path("/{project}/repos/{repo}/pull-requests/{pullRequestId}/participants")
        @POST
        Participants assignParticipant​(@PathParam("project")
                                       java.lang.String project,
                                       @PathParam("repo")
                                       java.lang.String repo,
                                       @PathParam("pullRequestId")
                                       long pullRequestId,
                                       CreateParticipants participants)
      • deleteParticipant

        @Named("pull-request:delete-participants")
        @Consumes("application/json")
        @Path("/{project}/repos/{repo}/pull-requests/{pullRequestId}/participants/{userSlug}")
        @DELETE
        RequestStatus deleteParticipant​(@PathParam("project")
                                        java.lang.String project,
                                        @PathParam("repo")
                                        java.lang.String repo,
                                        @PathParam("pullRequestId")
                                        long pullRequestId,
                                        @PathParam("userSlug")
                                        java.lang.String userSlug)
      • addParticipant

        @Named("pull-request:add-participant")
        @Consumes("application/json")
        @Path("/{project}/repos/{repo}/pull-requests/{pullRequestId}/participants/{userSlug}")
        @PUT
        Participants addParticipant​(@PathParam("project")
                                    java.lang.String project,
                                    @PathParam("repo")
                                    java.lang.String repo,
                                    @PathParam("pullRequestId")
                                    long pullRequestId,
                                    @PathParam("userSlug")
                                    java.lang.String userSlug,
                                    CreateParticipants participants)