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

io.github.zanella.nomad.v1.jobs.JobsApi Maven / Gradle / Ivy

The newest version!
package io.github.zanella.nomad.v1.jobs;

import io.github.zanella.nomad.v1.jobs.models.JobEvalResult;
import io.github.zanella.nomad.v1.jobs.models.JobSpec;
import io.github.zanella.nomad.v1.jobs.models.JobSummary;

import java.util.List;

import feign.Param;
import feign.RequestLine;

public interface JobsApi {
    String jobsUrl = "/v1/jobs";

    @RequestLine("GET " + jobsUrl)
    List getJobs();

    String jobsForRegionUrl = jobsUrl + "?region={region}";

    @RequestLine("GET " + jobsForRegionUrl)
    List getJobsForRegion(@Param("region") String region);

    @RequestLine("POST " + jobsUrl)
    JobEvalResult postJob(JobSpec jobSpec);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy