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

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

The newest version!
package io.rancher.service;

import io.rancher.base.Filters;
import io.rancher.base.TypeCollection;
import io.rancher.type.Service;
import io.rancher.type.AddRemoveServiceLinkInput;
import io.rancher.type.ServiceRestart;
import io.rancher.type.SetServiceLinksInput;
import io.rancher.type.ServiceUpgrade;

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

    @GET("networkDriverServices/{projectId}/service")
    Call> list(@Path("projectId") String projectId);

    @GET("networkDriverServices/{projectId}/service")
    Call> list(@Path("projectId") String projectId, @QueryMap Filters filters);

    @GET("networkDriverServices/{projectId}/service/{id}")
    Call get(@Path("projectId") String projectId, @Path("id") String id);

    @POST("networkDriverServices/{projectId}/service")
    Call create(@Path("projectId") String projectId, @Body Service service);

    @PUT("networkDriverServices/{projectId}/service/{id}")
    Call update(@Path("projectId") String projectId, @Path("id") String id, @Body Service service);

    @DELETE("networkDriverServices/{projectId}/service/{id}")
    Call delete(@Path("projectId") String projectId, @Path("id") String id);
    
    @POST("networkDriverServices/{projectId}/service/{id}?action=activate")
    Call activate(@Path("projectId") String projectId, @Path("id") String id);
    
    @POST("networkDriverServices/{projectId}/service/{id}?action=addservicelink")
    Call addservicelink(@Path("projectId") String projectId, @Path("id") String id, @Body AddRemoveServiceLinkInput addRemoveServiceLinkInput);
    
    @POST("networkDriverServices/{projectId}/service/{id}?action=cancelupgrade")
    Call cancelupgrade(@Path("projectId") String projectId, @Path("id") String id);
    
    @POST("networkDriverServices/{projectId}/service/{id}?action=continueupgrade")
    Call continueupgrade(@Path("projectId") String projectId, @Path("id") String id);
    
    @POST("networkDriverServices/{projectId}/service/{id}?action=deactivate")
    Call deactivate(@Path("projectId") String projectId, @Path("id") String id);
    
    @POST("networkDriverServices/{projectId}/service/{id}?action=finishupgrade")
    Call finishupgrade(@Path("projectId") String projectId, @Path("id") String id);
    
    @POST("networkDriverServices/{projectId}/service/{id}?action=remove")
    Call remove(@Path("projectId") String projectId, @Path("id") String id);
    
    @POST("networkDriverServices/{projectId}/service/{id}?action=removeservicelink")
    Call removeservicelink(@Path("projectId") String projectId, @Path("id") String id, @Body AddRemoveServiceLinkInput addRemoveServiceLinkInput);
    
    @POST("networkDriverServices/{projectId}/service/{id}?action=restart")
    Call restart(@Path("projectId") String projectId, @Path("id") String id, @Body ServiceRestart serviceRestart);
    
    @POST("networkDriverServices/{projectId}/service/{id}?action=rollback")
    Call rollback(@Path("projectId") String projectId, @Path("id") String id);
    
    @POST("networkDriverServices/{projectId}/service/{id}?action=setservicelinks")
    Call setservicelinks(@Path("projectId") String projectId, @Path("id") String id, @Body SetServiceLinksInput setServiceLinksInput);
    
    @POST("networkDriverServices/{projectId}/service/{id}?action=upgrade")
    Call upgrade(@Path("projectId") String projectId, @Path("id") String id, @Body ServiceUpgrade serviceUpgrade);
    
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy