io.rancher.service.ApiKeyInstancesService Maven / Gradle / Ivy
The newest version!
package io.rancher.service;
import io.rancher.base.Filters;
import io.rancher.base.TypeCollection;
import io.rancher.type.Instance;
import io.rancher.type.InstanceConsoleInput;
import io.rancher.type.InstanceConsole;
import io.rancher.type.InstanceStop;
import retrofit2.Call;
import retrofit2.Response;
import retrofit2.http.Body;
import retrofit2.http.DELETE;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.PUT;
import retrofit2.http.Path;
import retrofit2.http.QueryMap;
public interface ApiKeyInstancesService {
@GET("apiKeys/{projectId}/instance")
Call> list(@Path("projectId") String projectId);
@GET("apiKeys/{projectId}/instance")
Call> list(@Path("projectId") String projectId, @QueryMap Filters filters);
@GET("apiKeys/{projectId}/instance/{id}")
Call get(@Path("projectId") String projectId, @Path("id") String id);
@POST("apiKeys/{projectId}/instance")
Call create(@Path("projectId") String projectId, @Body Instance instance);
@PUT("apiKeys/{projectId}/instance/{id}")
Call update(@Path("projectId") String projectId, @Path("id") String id, @Body Instance instance);
@DELETE("apiKeys/{projectId}/instance/{id}")
Call delete(@Path("projectId") String projectId, @Path("id") String id);
@POST("apiKeys/{projectId}/instance/{id}?action=allocate")
Call allocate(@Path("projectId") String projectId, @Path("id") String id);
@POST("apiKeys/{projectId}/instance/{id}?action=console")
Call console(@Path("projectId") String projectId, @Path("id") String id, @Body InstanceConsoleInput instanceConsoleInput);
@POST("apiKeys/{projectId}/instance/{id}?action=deallocate")
Call deallocate(@Path("projectId") String projectId, @Path("id") String id);
@POST("apiKeys/{projectId}/instance/{id}?action=error")
Call error(@Path("projectId") String projectId, @Path("id") String id);
@POST("apiKeys/{projectId}/instance/{id}?action=migrate")
Call migrate(@Path("projectId") String projectId, @Path("id") String id);
@POST("apiKeys/{projectId}/instance/{id}?action=purge")
Call purge(@Path("projectId") String projectId, @Path("id") String id);
@POST("apiKeys/{projectId}/instance/{id}?action=remove")
Call remove(@Path("projectId") String projectId, @Path("id") String id);
@POST("apiKeys/{projectId}/instance/{id}?action=restart")
Call restart(@Path("projectId") String projectId, @Path("id") String id);
@POST("apiKeys/{projectId}/instance/{id}?action=start")
Call start(@Path("projectId") String projectId, @Path("id") String id);
@POST("apiKeys/{projectId}/instance/{id}?action=stop")
Call stop(@Path("projectId") String projectId, @Path("id") String id, @Body InstanceStop instanceStop);
@POST("apiKeys/{projectId}/instance/{id}?action=updatehealthy")
Call updatehealthy(@Path("projectId") String projectId, @Path("id") String id);
@POST("apiKeys/{projectId}/instance/{id}?action=updatereinitializing")
Call updatereinitializing(@Path("projectId") String projectId, @Path("id") String id);
@POST("apiKeys/{projectId}/instance/{id}?action=updateunhealthy")
Call updateunhealthy(@Path("projectId") String projectId, @Path("id") String id);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy