Class ConnectionsAPI
- java.lang.Object
-
- com.databricks.sdk.service.catalog.ConnectionsAPI
-
@Generated public class ConnectionsAPI extends Object
Connections allow for creating a connection to an external data source.A connection is an abstraction of an external data source that can be connected from Databricks Compute. Creating a connection object is the first step to managing external data sources within Unity Catalog, with the second step being creating a data object (catalog, schema, or table) using the connection. Data objects derived from a connection can be written to or read from similar to other Unity Catalog data objects based on cloud storage. Users may create different types of connections with each connection having a unique set of configuration options to support credential management and other settings.
-
-
Constructor Summary
Constructors Constructor Description ConnectionsAPI(ApiClient apiClient)Regular-use constructorConnectionsAPI(ConnectionsService mock)Constructor for mocks
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConnectionInfocreate(CreateConnection request)Create a connection.ConnectionInfocreate(String name, ConnectionType connectionType, Map<String,String> optionsKvpairs)voiddelete(DeleteConnectionRequest request)Delete a connection.voiddelete(String nameArg)ConnectionInfoget(GetConnectionRequest request)Get a connection.ConnectionInfoget(String nameArg)ConnectionsServiceimpl()Iterable<ConnectionInfo>list()List connections.ConnectionInfoupdate(UpdateConnection request)Update a connection.ConnectionInfoupdate(String name, Map<String,String> optionsKvpairs, String nameArg)
-
-
-
Constructor Detail
-
ConnectionsAPI
public ConnectionsAPI(ApiClient apiClient)
Regular-use constructor
-
ConnectionsAPI
public ConnectionsAPI(ConnectionsService mock)
Constructor for mocks
-
-
Method Detail
-
create
public ConnectionInfo create(String name, ConnectionType connectionType, Map<String,String> optionsKvpairs)
-
create
public ConnectionInfo create(CreateConnection request)
Create a connection.Creates a new connection
Creates a new connection to an external data source. It allows users to specify connection details and configurations for interaction with the external server.
-
delete
public void delete(String nameArg)
-
delete
public void delete(DeleteConnectionRequest request)
Delete a connection.Deletes the connection that matches the supplied name.
-
get
public ConnectionInfo get(String nameArg)
-
get
public ConnectionInfo get(GetConnectionRequest request)
Get a connection.Gets a connection from it's name.
-
list
public Iterable<ConnectionInfo> list()
List connections.List all connections.
-
update
public ConnectionInfo update(String name, Map<String,String> optionsKvpairs, String nameArg)
-
update
public ConnectionInfo update(UpdateConnection request)
Update a connection.Updates the connection that matches the supplied name.
-
impl
public ConnectionsService impl()
-
-