Package com.databricks.sdk.core
Class ApiClient
- java.lang.Object
-
- com.databricks.sdk.core.ApiClient
-
public class ApiClient extends Object
Simplified REST API client with retries, JSON POJO SerDe through Jackson and exception POJO guessing
-
-
Constructor Summary
Constructors Constructor Description ApiClient()
ApiClient(DatabricksConfig config)
ApiClient(DatabricksConfig config, Timer timer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
configuredAccountID()
<I,O>
ODELETE(String path, I in, Class<O> target)
<T> T
deserialize(String body, com.fasterxml.jackson.databind.JavaType target)
<T> T
deserialize(String body, Class<T> target)
<I,O>
OGET(String path, I in, Class<O> target)
<O> O
GET(String path, Class<O> target)
<I,O>
Collection<O>getCollection(String path, I in, Class<O> element)
<I> Map<String,String>
getStringMap(String path, I in)
<I,O>
OPATCH(String path, I in, Class<O> target)
<I,O>
OPOST(String path, I in, Class<O> target)
<I,O>
OPUT(String path, I in, Class<O> target)
protected <I,O>
OwithJavaType(String path, I in, com.fasterxml.jackson.databind.JavaType javaType)
-
-
-
Constructor Detail
-
ApiClient
public ApiClient()
-
ApiClient
public ApiClient(DatabricksConfig config)
-
ApiClient
public ApiClient(DatabricksConfig config, Timer timer)
-
-
Method Detail
-
configuredAccountID
public String configuredAccountID()
-
getCollection
public <I,O> Collection<O> getCollection(String path, I in, Class<O> element)
-
withJavaType
protected <I,O> O withJavaType(String path, I in, com.fasterxml.jackson.databind.JavaType javaType)
-
deserialize
public <T> T deserialize(String body, Class<T> target) throws IOException
- Throws:
IOException
-
deserialize
public <T> T deserialize(String body, com.fasterxml.jackson.databind.JavaType target) throws IOException
- Throws:
IOException
-
-