@Generated public class WarehousesAPI extends Object
Constructor and Description |
---|
WarehousesAPI(ApiClient apiClient)
Regular-use constructor
|
WarehousesAPI(WarehousesService mock)
Constructor for mocks
|
public WarehousesAPI(ApiClient apiClient)
public WarehousesAPI(WarehousesService mock)
public GetWarehouseResponse waitGetWarehouseRunning(String id) throws TimeoutException
TimeoutException
public GetWarehouseResponse waitGetWarehouseRunning(String id, Duration timeout, Consumer<GetWarehouseResponse> callback) throws TimeoutException
TimeoutException
public GetWarehouseResponse waitGetWarehouseStopped(String id) throws TimeoutException
TimeoutException
public GetWarehouseResponse waitGetWarehouseStopped(String id, Duration timeout, Consumer<GetWarehouseResponse> callback) throws TimeoutException
TimeoutException
public Wait<GetWarehouseResponse,CreateWarehouseResponse> create(CreateWarehouseRequest request)
Creates a new SQL warehouse.
public void delete(String id)
public void delete(DeleteWarehouseRequest request)
Deletes a SQL warehouse.
public Wait<GetWarehouseResponse,Void> edit(String id)
public Wait<GetWarehouseResponse,Void> edit(EditWarehouseRequest request)
Updates the configuration for a SQL warehouse.
public GetWarehouseResponse get(String id)
public GetWarehouseResponse get(GetWarehouseRequest request)
Gets the information for a single SQL warehouse.
public GetWarehousePermissionLevelsResponse getPermissionLevels(String warehouseId)
public GetWarehousePermissionLevelsResponse getPermissionLevels(GetWarehousePermissionLevelsRequest request)
Gets the permission levels that a user can have on an object.
public WarehousePermissions getPermissions(String warehouseId)
public WarehousePermissions getPermissions(GetWarehousePermissionsRequest request)
Gets the permissions of a SQL warehouse. SQL warehouses can inherit permissions from their root object.
public GetWorkspaceWarehouseConfigResponse getWorkspaceWarehouseConfig()
Gets the workspace level configuration that is shared by all SQL warehouses in a workspace.
public Iterable<EndpointInfo> list(ListWarehousesRequest request)
Lists all SQL warehouses that a user has manager permissions on.
public WarehousePermissions setPermissions(String warehouseId)
public WarehousePermissions setPermissions(WarehousePermissionsRequest request)
Sets permissions on a SQL warehouse. SQL warehouses can inherit permissions from their root object.
public void setWorkspaceWarehouseConfig(SetWorkspaceWarehouseConfigRequest request)
Sets the workspace level configuration that is shared by all SQL warehouses in a workspace.
public Wait<GetWarehouseResponse,Void> start(String id)
public Wait<GetWarehouseResponse,Void> start(StartRequest request)
Starts a SQL warehouse.
public Wait<GetWarehouseResponse,Void> stop(String id)
public Wait<GetWarehouseResponse,Void> stop(StopRequest request)
Stops a SQL warehouse.
public WarehousePermissions updatePermissions(String warehouseId)
public WarehousePermissions updatePermissions(WarehousePermissionsRequest request)
Updates the permissions on a SQL warehouse. SQL warehouses can inherit permissions from their root object.
public WarehousesService impl()
Copyright © 2023. All rights reserved.