@Generated public class ConnectionsAPI extends Object
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 and Description |
|---|
ConnectionsAPI(ApiClient apiClient)
Regular-use constructor
|
ConnectionsAPI(ConnectionsService mock)
Constructor for mocks
|
| Modifier and Type | Method and Description |
|---|---|
ConnectionInfo |
create(CreateConnection request)
Create a connection.
|
ConnectionInfo |
create(String name,
ConnectionType connectionType,
Map<String,String> options) |
void |
delete(DeleteConnectionRequest request)
Delete a connection.
|
void |
delete(String name) |
ConnectionInfo |
get(GetConnectionRequest request)
Get a connection.
|
ConnectionInfo |
get(String name) |
ConnectionsService |
impl() |
Iterable<ConnectionInfo> |
list(ListConnectionsRequest request)
List connections.
|
ConnectionInfo |
update(String name,
Map<String,String> options) |
ConnectionInfo |
update(UpdateConnection request)
Update a connection.
|
public ConnectionsAPI(ApiClient apiClient)
public ConnectionsAPI(ConnectionsService mock)
public ConnectionInfo create(String name, ConnectionType connectionType, Map<String,String> options)
public ConnectionInfo create(CreateConnection request)
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.
public void delete(String name)
public void delete(DeleteConnectionRequest request)
Deletes the connection that matches the supplied name.
public ConnectionInfo get(String name)
public ConnectionInfo get(GetConnectionRequest request)
Gets a connection from it's name.
public Iterable<ConnectionInfo> list(ListConnectionsRequest request)
List all connections.
public ConnectionInfo update(String name, Map<String,String> options)
public ConnectionInfo update(UpdateConnection request)
Updates the connection that matches the supplied name.
public ConnectionsService impl()
Copyright © 2024. All rights reserved.