Skip to content

Commit 5df1b54

Browse files
ecottem-kovalsky
andauthored
ecotte/adminFunctions (#293)
* Added Authentication class for Service Principal calls * Improved documentation for the Authentication Classes * Improvements to documentation and functions in Authentication module * Refactor of ServicePrincipalTokenProvider * Format authentication and mode * Improved the list_workspaces, assign_workspaces_to_capacity and list_capacities. * Format fixes * Changes for PR #293 * Format * Fixing list_workspace * Improvements and modifications on admin functions * Format changes * Fix in list_modified_workspaces * Added _build_url and changes in admin functions * Formating files --------- Co-authored-by: m-kovalsky <[email protected]>
1 parent 38afa97 commit 5df1b54

File tree

2 files changed

+706
-407
lines changed

2 files changed

+706
-407
lines changed

src/sempy_labs/_helper_functions.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,17 @@
1717
from IPython.display import display, HTML
1818

1919

20+
def _build_url(url: str, params: dict) -> str:
21+
"""
22+
Build the url with a list of parameters
23+
"""
24+
url_parts = list(urllib.parse.urlparse(url))
25+
url_parts[4] = urllib.parse.urlencode(params)
26+
url = urllib.parse.urlunparse(url_parts)
27+
28+
return url
29+
30+
2031
def create_abfss_path(
2132
lakehouse_id: UUID, lakehouse_workspace_id: UUID, delta_table_name: str
2233
) -> str:

0 commit comments

Comments
 (0)