Interface BranchApi


  • @Produces("application/json")
    @Path("/rest")
    public interface BranchApi
    • Method Detail

      • list

        @Named("branch:list")
        @Consumes("application/json")
        @Path("/api/{jclouds.api-version}/projects/{project}/repos/{repo}/branches")
        @GET
        BranchPage list​(@PathParam("project")
                        String project,
                        @PathParam("repo")
                        String repo,
                        @Nullable @QueryParam("base")
                        String base,
                        @Nullable @QueryParam("details")
                        String details,
                        @Nullable @QueryParam("filterText")
                        String filterText,
                        @Nullable @QueryParam("orderBy")
                        String orderBy,
                        @Nullable @QueryParam("start")
                        Integer start,
                        @Nullable @QueryParam("limit")
                        Integer limit)
      • create

        @Named("branch:create")
        @Consumes("application/json")
        @Path("/branch-utils/{jclouds.api-version}/projects/{project}/repos/{repo}/branches")
        @POST
        Branch create​(@PathParam("project")
                      String project,
                      @PathParam("repo")
                      String repo,
                      CreateBranch createBranch)
      • delete

        @Named("branch:delete")
        @Consumes("application/json")
        @Path("/branch-utils/{jclouds.api-version}/projects/{project}/repos/{repo}/branches")
        @DELETE
        RequestStatus delete​(@PathParam("project")
                             String project,
                             @PathParam("repo")
                             String repo,
                             String branchPath)
      • updateDefault

        @Named("branch:update-default")
        @Consumes("application/json")
        @Path("/api/{jclouds.api-version}/projects/{project}/repos/{repo}/branches/default")
        @PUT
        RequestStatus updateDefault​(@PathParam("project")
                                    String project,
                                    @PathParam("repo")
                                    String repo,
                                    String id)
      • getDefault

        @Named("branch:get-default")
        @Consumes("application/json")
        @Path("/api/{jclouds.api-version}/projects/{project}/repos/{repo}/branches/default")
        @GET
        Branch getDefault​(@PathParam("project")
                          String project,
                          @PathParam("repo")
                          String repo)
      • model

        @Named("branch:model")
        @Consumes("application/json")
        @Path("/branch-utils/{jclouds.api-version}/projects/{project}/repos/{repo}/branchmodel")
        @GET
        BranchModel model​(@PathParam("project")
                          String project,
                          @PathParam("repo")
                          String repo)
      • info

        @Named("branch:info")
        @Consumes("application/json")
        @Path("/branch-utils/{jclouds.api-version}/projects/{project}/repos/{repo}/branches/info/{commitId}")
        @GET
        BranchPage info​(@PathParam("project")
                        String project,
                        @PathParam("repo")
                        String repo,
                        @PathParam("commitId")
                        String commitId)
      • getModelConfiguration

        @Named("branch:get-model-configuration")
        @Consumes("application/json")
        @Path("/branch-utils/{jclouds.api-version}/projects/{project}/repos/{repo}/branchmodel/configuration")
        @GET
        BranchModelConfiguration getModelConfiguration​(@PathParam("project")
                                                       String project,
                                                       @PathParam("repo")
                                                       String repo)
      • updateModelConfiguration

        @Named("branch:update-model-configuration")
        @Consumes("application/json")
        @Path("/branch-utils/{jclouds.api-version}/projects/{project}/repos/{repo}/branchmodel/configuration")
        @PUT
        BranchModelConfiguration updateModelConfiguration​(@PathParam("project")
                                                          String project,
                                                          @PathParam("repo")
                                                          String repo,
                                                          CreateBranchModelConfiguration config)
      • deleteModelConfiguration

        @Named("branch:delete-model-configuration")
        @Consumes("application/json")
        @Path("/branch-utils/{jclouds.api-version}/projects/{project}/repos/{repo}/branchmodel/configuration")
        @DELETE
        RequestStatus deleteModelConfiguration​(@PathParam("project")
                                               String project,
                                               @PathParam("repo")
                                               String repo)
      • listBranchRestriction

        @Named("branch:list-branch-permission")
        @Consumes("application/json")
        @Path("/branch-permissions/2.0/projects/{project}/repos/{repo}/restrictions")
        @GET
        BranchRestrictionPage listBranchRestriction​(@PathParam("project")
                                                    String project,
                                                    @PathParam("repo")
                                                    String repo,
                                                    @Nullable @QueryParam("start")
                                                    Integer start,
                                                    @Nullable @QueryParam("limit")
                                                    Integer limit)
      • createBranchRestriction

        @Named("branch:update-branch-permission")
        @Path("/branch-permissions/2.0/projects/{project}/repos/{repo}/restrictions")
        @Produces("application/vnd.atl.bitbucket.bulk+json")
        @Consumes("application/json")
        @POST
        RequestStatus createBranchRestriction​(@PathParam("project")
                                              String project,
                                              @PathParam("repo")
                                              String repo,
                                              List<BranchRestriction> branchRestrictions)
      • deleteBranchRestriction

        @Named("branch:delete-branch-permission")
        @Consumes("application/json")
        @Path("/branch-permissions/2.0/projects/{project}/repos/{repo}/restrictions/{id}")
        @DELETE
        RequestStatus deleteBranchRestriction​(@PathParam("project")
                                              String project,
                                              @PathParam("repo")
                                              String repo,
                                              @PathParam("id")
                                              long id)