Class StorageResources
java.lang.Object
org.apache.drill.exec.server.rest.StorageResources
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
Model class for Storage Plugin and Credentials page. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.Response
createOrUpdatePlugin
(String name, String storagePluginConfig) javax.ws.rs.core.Response
Deprecated.javax.ws.rs.core.Response
javax.ws.rs.core.Response
deletePlugin
(String name) javax.ws.rs.core.Response
deletePluginViaGet
(String name) Deprecated.use the method with DELETE requestdeletePlugin(String)
insteadjavax.ws.rs.core.Response
enablePlugin
(String name, Boolean enable) javax.ws.rs.core.Response
enablePluginViaGet
(String name, Boolean enable) Deprecated.use the method with POST requestenablePlugin(java.lang.String, java.lang.Boolean)
insteadjavax.ws.rs.core.Response
exportPlugin
(String name, String format) Regex allows the following paths: /storage/{name}/export "/storage/{name}/export/{format} Note: for the second case the format involves the leading slash, therefore it should be removed thengetConfigsFor
(String pluginGroup) Regex allows the following paths:javax.ws.rs.core.Response
getConfigsFor
(String pluginGroup, String format) Regex allows the following paths:org.glassfish.jersey.server.mvc.Viewable
javax.ws.rs.core.Response
getPluginConfig
(String name) org.glassfish.jersey.server.mvc.Viewable
javax.ws.rs.core.Response
updateAccessToken
(String name, OAuthTokenContainer tokens) Deprecated.javax.ws.rs.core.Response
updateAuthToken
(String name, String code) Deprecated.javax.ws.rs.core.Response
updateOAuthTokens
(String name, OAuthTokenContainer tokenContainer) Deprecated.javax.ws.rs.core.Response
updateRefreshToken
(String name, OAuthTokenContainer tokens) Deprecated.
-
Constructor Details
-
StorageResources
public StorageResources()
-
-
Method Details
-
getConfigsFor
@GET @Path("/storage/{group}/plugins/export{format: (/[^/]+?)*}") @Produces("application/json") public javax.ws.rs.core.Response getConfigsFor(@PathParam("group") String pluginGroup, @PathParam("format") String format) Regex allows the following paths:/storage/{group}/plugins/export /storage/{group}/plugins/export/{format}
Note: for the second case the format involves the leading slash, therefore it should be removed then
-
getPluginsJSON
@GET @Path("/storage.json") @Produces("application/json") public List<PluginConfigWrapper> getPluginsJSON() -
getPlugins
@GET @Path("/storage") @Produces("text/html") public org.glassfish.jersey.server.mvc.Viewable getPlugins() -
getPluginConfig
@GET @Path("/storage/{name}.json") @Produces("application/json") public javax.ws.rs.core.Response getPluginConfig(@PathParam("name") String name) -
getPlugin
@GET @Path("/storage/{name}") @Produces("text/html") public org.glassfish.jersey.server.mvc.Viewable getPlugin(@PathParam("name") String name) -
enablePlugin
-
updateRefreshToken
@POST @Path("/storage/{name}/update_refresh_token") @Consumes("application/json") @Produces("application/json") @Deprecated public javax.ws.rs.core.Response updateRefreshToken(@PathParam("name") String name, OAuthTokenContainer tokens) Deprecated. -
updateAccessToken
@POST @Path("/storage/{name}/update_access_token") @Consumes("application/json") @Produces("application/json") @Deprecated public javax.ws.rs.core.Response updateAccessToken(@PathParam("name") String name, OAuthTokenContainer tokens) Deprecated. -
updateOAuthTokens
@POST @Path("/storage/{name}/update_oauth_tokens") @Consumes("application/json") @Produces("application/json") @Deprecated public javax.ws.rs.core.Response updateOAuthTokens(@PathParam("name") String name, OAuthTokenContainer tokenContainer) Deprecated. -
updateAuthToken
@GET @Path("/storage/{name}/update_oauth2_authtoken") @Produces("text/html") @Deprecated public javax.ws.rs.core.Response updateAuthToken(@PathParam("name") String name, @QueryParam("code") String code) Deprecated. -
enablePluginViaGet
@GET @Path("/storage/{name}/enable/{val}") @Produces("application/json") @Deprecated public javax.ws.rs.core.Response enablePluginViaGet(@PathParam("name") String name, @PathParam("val") Boolean enable) Deprecated.use the method with POST requestenablePlugin(java.lang.String, java.lang.Boolean)
instead -
exportPlugin
@GET @Path("/storage/{name}/export{format: (/[^/]+?)*}") @Produces("application/json") public javax.ws.rs.core.Response exportPlugin(@PathParam("name") String name, @PathParam("format") String format) Regex allows the following paths: /storage/{name}/export "/storage/{name}/export/{format} Note: for the second case the format involves the leading slash, therefore it should be removed then -
deletePlugin
@DELETE @Path("/storage/{name}.json") @Produces("application/json") public javax.ws.rs.core.Response deletePlugin(@PathParam("name") String name) -
createOrUpdatePluginJSON
@POST @Path("/storage/{name}.json") @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response createOrUpdatePluginJSON(PluginConfigWrapper plugin) -
createOrUpdatePlugin
-
getConfigsFor
@GET @Path("/storage{group: (/[^/]+?)*}-plugins.json") @Produces("application/json") public List<PluginConfigWrapper> getConfigsFor(@PathParam("group") String pluginGroup) Regex allows the following paths:
Allowable groups:/storage.json /storage/{group}-plugins.json
- "all"
ALL_PLUGINS
- "enabled"
ENABLED_PLUGINS
- "disabled"
DISABLED_PLUGINS
Note: for the second case the group involves the leading slash, therefore it should be removed then
- "all"
-
createOrUpdatePlugin
@POST @Path("/storage/{name}") @Consumes("application/json") @Produces("application/json") @Deprecated public javax.ws.rs.core.Response createOrUpdatePlugin(PluginConfigWrapper plugin) Deprecated. -
deletePluginViaGet
@GET @Path("/storage/{name}/delete") @Produces("application/json") @Deprecated public javax.ws.rs.core.Response deletePluginViaGet(@PathParam("name") String name) Deprecated.use the method with DELETE requestdeletePlugin(String)
instead
-
createOrUpdatePluginJSON(org.apache.drill.exec.server.rest.PluginConfigWrapper)
instead