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

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

The newest version!
package io.rancher.service;

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

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

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

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

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

    @POST("launchConfig")
    Call create(@Body LaunchConfig launchConfig);

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy