Interface HookApi


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

      • list

        @Consumes("application/json")
        @Path("/{project}/repos/{repo}/settings/hooks")
        @GET
        HookPage list​(@PathParam("project")
                      String project,
                      @PathParam("repo")
                      String repo,
                      @Nullable @QueryParam("start")
                      Integer start,
                      @Nullable @QueryParam("limit")
                      Integer limit)
      • get

        @Consumes("application/json")
        @Path("/{project}/repos/{repo}/settings/hooks/{hookKey}")
        @GET
        Hook get​(@PathParam("project")
                 String project,
                 @PathParam("repo")
                 String repo,
                 @PathParam("hookKey")
                 String hookKey)
      • update

        @Consumes("application/json")
        @Path("/{project}/repos/{repo}/settings/hooks/{hookKey}/settings")
        @PUT
        HookSettings update​(@PathParam("project")
                            String project,
                            @PathParam("repo")
                            String repo,
                            @PathParam("hookKey")
                            String hookKey,
                            HookSettings hookSettings)
      • settings

        @Consumes("application/json")
        @Path("/{project}/repos/{repo}/settings/hooks/{hookKey}/settings")
        @GET
        HookSettings settings​(@PathParam("project")
                              String project,
                              @PathParam("repo")
                              String repo,
                              @PathParam("hookKey")
                              String hookKey)
      • enable

        @Consumes("application/json")
        @Path("/{project}/repos/{repo}/settings/hooks/{hookKey}/enabled")
        @PUT
        Hook enable​(@PathParam("project")
                    String project,
                    @PathParam("repo")
                    String repo,
                    @PathParam("hookKey")
                    String hookKey)
      • disable

        @Consumes("application/json")
        @Path("/{project}/repos/{repo}/settings/hooks/{hookKey}/enabled")
        @DELETE
        Hook disable​(@PathParam("project")
                     String project,
                     @PathParam("repo")
                     String repo,
                     @PathParam("hookKey")
                     String hookKey)