Package com.databricks.sdk.service.sql
Class WarehousesAPI
- java.lang.Object
-
- com.databricks.sdk.service.sql.WarehousesAPI
-
@Generated public class WarehousesAPI extends Object
A SQL warehouse is a compute resource that lets you run SQL commands on data objects within Databricks SQL. Compute resources are infrastructure resources that provide processing capabilities in the cloud.
-
-
Constructor Summary
Constructors Constructor Description WarehousesAPI(ApiClient apiClient)
Regular-use constructorWarehousesAPI(WarehousesService mock)
Constructor for mocks
-
Method Summary
-
-
-
Constructor Detail
-
WarehousesAPI
public WarehousesAPI(ApiClient apiClient)
Regular-use constructor
-
WarehousesAPI
public WarehousesAPI(WarehousesService mock)
Constructor for mocks
-
-
Method Detail
-
waitGetWarehouseRunning
public GetWarehouseResponse waitGetWarehouseRunning(String id) throws TimeoutException
- Throws:
TimeoutException
-
waitGetWarehouseRunning
public GetWarehouseResponse waitGetWarehouseRunning(String id, Duration timeout, Consumer<GetWarehouseResponse> callback) throws TimeoutException
- Throws:
TimeoutException
-
waitGetWarehouseStopped
public GetWarehouseResponse waitGetWarehouseStopped(String id) throws TimeoutException
- Throws:
TimeoutException
-
waitGetWarehouseStopped
public GetWarehouseResponse waitGetWarehouseStopped(String id, Duration timeout, Consumer<GetWarehouseResponse> callback) throws TimeoutException
- Throws:
TimeoutException
-
create
public Wait<GetWarehouseResponse,CreateWarehouseResponse> create(CreateWarehouseRequest request)
Create a warehouse.Creates a new SQL warehouse.
-
delete
public void delete(String id)
-
delete
public void delete(DeleteWarehouseRequest request)
Delete a warehouse.Deletes a SQL warehouse.
-
edit
public Wait<GetWarehouseResponse,Void> edit(String id)
-
edit
public Wait<GetWarehouseResponse,Void> edit(EditWarehouseRequest request)
Update a warehouse.Updates the configuration for a SQL warehouse.
-
get
public GetWarehouseResponse get(String id)
-
get
public GetWarehouseResponse get(GetWarehouseRequest request)
Get warehouse info.Gets the information for a single SQL warehouse.
-
getWorkspaceWarehouseConfig
public GetWorkspaceWarehouseConfigResponse getWorkspaceWarehouseConfig()
Get the workspace configuration.Gets the workspace level configuration that is shared by all SQL warehouses in a workspace.
-
list
public Iterable<EndpointInfo> list(ListWarehousesRequest request)
List warehouses.Lists all SQL warehouses that a user has manager permissions on.
-
setWorkspaceWarehouseConfig
public void setWorkspaceWarehouseConfig(SetWorkspaceWarehouseConfigRequest request)
Set the workspace configuration.Sets the workspace level configuration that is shared by all SQL warehouses in a workspace.
-
start
public Wait<GetWarehouseResponse,Void> start(String id)
-
start
public Wait<GetWarehouseResponse,Void> start(StartRequest request)
Start a warehouse.Starts a SQL warehouse.
-
stop
public Wait<GetWarehouseResponse,Void> stop(String id)
-
stop
public Wait<GetWarehouseResponse,Void> stop(StopRequest request)
Stop a warehouse.Stops a SQL warehouse.
-
impl
public WarehousesService impl()
-
-