All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.jobservice.api.generated.JobsApi Maven / Gradle / Ivy

The newest version!
package com.github.jobservice.api.generated;

import com.github.jobservice.api.generated.model.CancelJobs200Response;
import com.github.jobservice.api.generated.model.DeleteJobs200Response;
import com.github.jobservice.api.generated.model.Job;
import com.github.jobservice.api.generated.model.JobStatus;
import com.github.jobservice.api.generated.model.NewJob;

import jakarta.ws.rs.*;
import jakarta.ws.rs.core.Response;


import java.io.InputStream;
import java.util.Map;
import java.util.List;


@Path("")
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", date = "2025-05-20T20:37:27.982313093Z[Etc/UTC]")
public interface JobsApi {

    @POST
    @Path("/partitions/{partitionId}/jobs/{jobId}/cancel")
    Response cancelJob(@PathParam("partitionId") String partitionId,@PathParam("jobId") String jobId) throws Exception;


    @POST
    @Path("/partitions/{partitionId}/jobs:cancel")
    @Produces({ "application/json" })
    Response cancelJobs(@PathParam("partitionId") String partitionId,@QueryParam("jobIdStartsWith")   String jobIdStartsWith,@QueryParam("labelExist")   String labelExist,@QueryParam("filter")   String filter) throws Exception;


    @PUT
    @Path("/partitions/{partitionId}/jobs/{jobId}")
    @Consumes({ "application/json" })
    Response createOrUpdateJob(@PathParam("partitionId") String partitionId,@PathParam("jobId") String jobId,NewJob newJob) throws Exception;


    @DELETE
    @Path("/partitions/{partitionId}/jobs/{jobId}")
    Response deleteJob(@PathParam("partitionId") String partitionId,@PathParam("jobId") String jobId) throws Exception;


    @POST
    @Path("/partitions/{partitionId}/jobs:delete")
    @Produces({ "application/json" })
    Response deleteJobs(@PathParam("partitionId") String partitionId,@QueryParam("jobIdStartsWith")   String jobIdStartsWith,@QueryParam("labelExist")   String labelExist,@QueryParam("filter")   String filter) throws Exception;


    @GET
    @Path("/partitions/{partitionId}/jobs/{jobId}")
    @Produces({ "application/json" })
    Response getJob(@PathParam("partitionId") String partitionId,@PathParam("jobId") String jobId) throws Exception;


    @GET
    @Path("/partitions/{partitionId}/jobs/{jobId}/isActive")
    @Produces({ "application/json" })
    Response getJobActive(@PathParam("partitionId") String partitionId,@PathParam("jobId") String jobId) throws Exception;


    @GET
    @Path("/partitions/{partitionId}/jobs/{jobId}/status")
    @Produces({ "application/json" })
    Response getJobStatus(@PathParam("partitionId") String partitionId,@PathParam("jobId") String jobId) throws Exception;


    @GET
    @Path("/partitions/{partitionId}/jobs")
    @Produces({ "application/json" })
    Response getJobs(@PathParam("partitionId") String partitionId,@QueryParam("jobIdStartsWith")   String jobIdStartsWith,@QueryParam("statusType")   String statusType,@QueryParam("status")   String status,@QueryParam("limit")   Integer limit,@QueryParam("offset")   Integer offset,@QueryParam("sort") @DefaultValue("createTime:desc")   String sort,@QueryParam("labelExist")   String labelExist,@QueryParam("filter")   String filter) throws Exception;


    @GET
    @Path("/partitions/{partitionId}/jobStats/count")
    @Produces({ "application/json" })
    Response getJobsCount(@PathParam("partitionId") String partitionId,@QueryParam("jobIdStartsWith")   String jobIdStartsWith,@QueryParam("statusType")   String statusType,@QueryParam("status")   String status,@QueryParam("filter")   String filter) throws Exception;


    @POST
    @Path("/partitions/{partitionId}/jobs/{jobId}/pause")
    Response pauseJob(@PathParam("partitionId") String partitionId,@PathParam("jobId") String jobId) throws Exception;


    @GET
    @Path("/ping")
    Response ping() throws Exception;


    @POST
    @Path("/partitions/{partitionId}/jobs/{jobId}/resume")
    Response resumeJob(@PathParam("partitionId") String partitionId,@PathParam("jobId") String jobId) throws Exception;

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy