Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Framework for creating and using the Unity Catalog connections API #647

Merged
merged 4 commits into from
Aug 8, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions databricks_cli/unity_catalog/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,23 @@ def delete_external_location(self, name, force):
def validate_external_location(self, validation_spec):
return self.client.validate_external_location(validation_spec)

# Connections APIs

def create_connection(self, con_spec):
return self.client.create_connection(con_spec)

def list_connections(self):
return self.client.list_connections()

def get_connection(self, name):
return self.client.get_connection(name)

def update_connnection(self, name, con_spec):
return self.client.update_connection(name, con_spec)

def delete_connection(self, name):
return self.client.delete_connection(name)

# Data Access Configuration APIs

def create_dac(self, metastore_id, dac_spec, skip_validation):
Expand Down
2 changes: 2 additions & 0 deletions databricks_cli/unity_catalog/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
from databricks_cli.unity_catalog.delta_sharing_cli import register_delta_sharing_commands
from databricks_cli.unity_catalog.perms_cli import register_perms_commands
from databricks_cli.unity_catalog.lineage_cli import register_lineage_commands
from databricks_cli.unity_catalog.connection_cli import register_connection_commands


@click.group(context_settings=CONTEXT_SETTINGS)
Expand All @@ -56,3 +57,4 @@ def unity_catalog_group(): # pragma: no cover
register_delta_sharing_commands(unity_catalog_group)
register_perms_commands(unity_catalog_group)
register_lineage_commands(unity_catalog_group)
register_connection_commands(unity_catalog_group)
Loading