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

io.github.zanella.nomad.v1.allocations.AllocationApi Maven / Gradle / Ivy

package io.github.zanella.nomad.v1.allocations;

import feign.Param;
import feign.RequestLine;
import io.github.zanella.nomad.v1.nodes.models.NodeAllocation;

public interface AllocationApi {
    String allocationUrl = "/v1/allocation";

    @RequestLine("GET " + allocationUrl + "/{allocationId}")
    NodeAllocation getAllocation(@Param("allocationId") String allocationId);

    @RequestLine("GET " + allocationUrl + "/{allocationId}" + "?region={region}")
    NodeAllocation getAllocationForRegion(@Param("allocationId") String allocationId, @Param("region") String region);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy