water.bindings.proxies.retrofit.Sessions Maven / Gradle / Ivy
/*
* This file is auto-generated by h2o-3/h2o-bindings/bin/gen_java.py
* Copyright 2016 H2O.ai; Apache License Version 2.0 (see LICENSE for details)
*/
package water.bindings.proxies.retrofit;
import water.bindings.pojos.*;
import retrofit2.*;
import retrofit2.http.*;
public interface Sessions {
/**
* Start a new Rapids session, and return the session id.
* @param _fields Filter on the set of output fields: if you set _fields="foo,bar,baz", then only those fields will
* be included in the output; or you can specify _fields="-goo,gee" to include all fields except goo
* and gee. If the result contains nested data structures, then you can refer to the fields within
* those structures as well. For example if you specify _fields="foo(oof),bar(-rab)", then only
* fields foo and bar will be included, and within foo there will be only field oof, whereas within
* bar all fields except rab will be reported.
*/
@FormUrlEncoded
@POST("/4/sessions")
Call newSession4(@Field("_fields") String _fields);
@FormUrlEncoded
@POST("/4/sessions")
Call newSession4();
/**
* Close the Rapids session.
* @param session_key Session ID
* @param _exclude_fields Comma-separated list of JSON field paths to exclude from the result, used like:
* "/3/Frames?_exclude_fields=frames/frame_id/URL,__meta"
*/
@DELETE("/4/sessions/{session_key}")
Call endSession(
@Path("session_key") String session_key,
@Field("_exclude_fields") String _exclude_fields
);
@DELETE("/4/sessions/{session_key}")
Call endSession(@Path("session_key") String session_key);
}