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

io.rancher.service.VirtualMachineService Maven / Gradle / Ivy

The newest version!
package io.rancher.service;

import io.rancher.base.Filters;
import io.rancher.base.TypeCollection;
import io.rancher.type.VirtualMachine;
import io.rancher.type.InstanceStop;
import io.rancher.type.ContainerExec;
import io.rancher.type.HostAccess;
import io.rancher.type.InstanceConsoleInput;
import io.rancher.type.InstanceConsole;
import io.rancher.type.ContainerLogs;
import io.rancher.type.ContainerProxy;
import io.rancher.type.Instance;

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 VirtualMachineService {

    @GET("virtualMachine")
    Call> list();

    @GET("virtualMachine")
    Call> list(@QueryMap Filters filters);

    @GET("virtualMachine/{id}")
    Call get(@Path("id") String id);

    @POST("virtualMachine")
    Call create(@Body VirtualMachine virtualMachine);

    @PUT("virtualMachine/{id}")
    Call update(@Path("id") String id, @Body VirtualMachine virtualMachine);

    @DELETE("virtualMachine/{id}")
    Call delete(@Path("id") String id);
    
    @POST("virtualMachine/{id}?action=allocate")
    Call allocate(@Path("id") String id);
    
    @POST("virtualMachine/{id}?action=console")
    Call console(@Path("id") String id, @Body InstanceConsoleInput instanceConsoleInput);
    
    @POST("virtualMachine/{id}?action=deallocate")
    Call deallocate(@Path("id") String id);
    
    @POST("virtualMachine/{id}?action=error")
    Call error(@Path("id") String id);
    
    @POST("virtualMachine/{id}?action=execute")
    Call execute(@Path("id") String id, @Body ContainerExec containerExec);
    
    @POST("virtualMachine/{id}?action=logs")
    Call logs(@Path("id") String id, @Body ContainerLogs containerLogs);
    
    @POST("virtualMachine/{id}?action=migrate")
    Call migrate(@Path("id") String id);
    
    @POST("virtualMachine/{id}?action=proxy")
    Call proxy(@Path("id") String id, @Body ContainerProxy containerProxy);
    
    @POST("virtualMachine/{id}?action=purge")
    Call purge(@Path("id") String id);
    
    @POST("virtualMachine/{id}?action=remove")
    Call remove(@Path("id") String id);
    
    @POST("virtualMachine/{id}?action=restart")
    Call restart(@Path("id") String id);
    
    @POST("virtualMachine/{id}?action=start")
    Call start(@Path("id") String id);
    
    @POST("virtualMachine/{id}?action=stop")
    Call stop(@Path("id") String id, @Body InstanceStop instanceStop);
    
    @POST("virtualMachine/{id}?action=updatehealthy")
    Call updatehealthy(@Path("id") String id);
    
    @POST("virtualMachine/{id}?action=updatereinitializing")
    Call updatereinitializing(@Path("id") String id);
    
    @POST("virtualMachine/{id}?action=updateunhealthy")
    Call updateunhealthy(@Path("id") String id);
    
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy