io.rancher.service.InstanceService 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 InstanceService {
@GET("instance")
Call> list();
@GET("instance")
Call> list(@QueryMap Filters filters);
@GET("instance/{id}")
Call get(@Path("id") String id);
@POST("instance")
Call create(@Body Instance instance);
@PUT("instance/{id}")
Call update(@Path("id") String id, @Body Instance instance);
@DELETE("instance/{id}")
Call delete(@Path("id") String id);
@POST("instance/{id}?action=allocate")
Call allocate(@Path("id") String id);
@POST("instance/{id}?action=console")
Call console(@Path("id") String id, @Body InstanceConsoleInput instanceConsoleInput);
@POST("instance/{id}?action=deallocate")
Call deallocate(@Path("id") String id);
@POST("instance/{id}?action=error")
Call error(@Path("id") String id);
@POST("instance/{id}?action=migrate")
Call migrate(@Path("id") String id);
@POST("instance/{id}?action=purge")
Call purge(@Path("id") String id);
@POST("instance/{id}?action=remove")
Call remove(@Path("id") String id);
@POST("instance/{id}?action=restart")
Call restart(@Path("id") String id);
@POST("instance/{id}?action=start")
Call start(@Path("id") String id);
@POST("instance/{id}?action=stop")
Call stop(@Path("id") String id, @Body InstanceStop instanceStop);
@POST("instance/{id}?action=updatehealthy")
Call updatehealthy(@Path("id") String id);
@POST("instance/{id}?action=updatereinitializing")
Call updatereinitializing(@Path("id") String id);
@POST("instance/{id}?action=updateunhealthy")
Call updateunhealthy(@Path("id") String id);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy