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

com.quali.cloudshell.service.SandboxAPISpec Maven / Gradle / Ivy

The newest version!
package com.quali.cloudshell.service;

import com.quali.cloudshell.api.*;
import retrofit2.Call;
import retrofit2.http.*;

public interface SandboxAPISpec {
    @PUT("api/login")
    Call login(@Body User user);

    @GET("api/v1/blueprints")
    Call getBlueprint();

    @GET("api/v1/sandboxes/{sandbox}")
    Call getSandbox(
            @Path("sandbox") String sandbox);

    @GET("api/v2/sandboxes/{sandbox}/activity")
    Call getSandboxActivity(
            @Path("sandbox") String sandbox,
            @Query("error_only") Boolean error_only,
            @Query("since") String since,
            @Query("from_event_id") Long from_event_id,
            @Query("tail") Integer tail);

    @POST("api/v1/blueprints/{blueprint}/start")
    Call createSandbox(
            @Path("blueprint") String blueprint,
            @Body CreateSandboxRequest sandboxRequest);

    @POST("api/v1/sandboxes/{sandbox}/stop")
    Call stopSandbox(
            @Path("sandbox") String sandbox);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy