You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/sempy_labs/tom/_model.py
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -4701,24 +4701,24 @@ def close(self):
4701
4701
defconnect_semantic_model(
4702
4702
dataset: str|UUID,
4703
4703
readonly: bool=True,
4704
-
workspace: Optional[str] =None,
4704
+
workspace: Optional[str|UUID] =None,
4705
4705
token_provider: Optional[TokenProvider] =None,
4706
4706
) ->Iterator[TOMWrapper]:
4707
4707
"""
4708
4708
Connects to the Tabular Object Model (TOM) within a semantic model.
4709
4709
4710
4710
Parameters
4711
4711
----------
4712
-
dataset : str | UUID
4712
+
dataset : str | uuid.UUID
4713
4713
Name or ID of the semantic model.
4714
4714
readonly: bool, default=True
4715
4715
Whether the connection is read-only or read/write. Setting this to False enables read/write which saves the changes made back to the server.
4716
-
workspace : str, default=None
4717
-
The Fabric workspace name.
4716
+
workspace : str | uuid.UUID, default=None
4717
+
The Fabric workspace name or ID. Also supports entering the Azure Analysis Services server name. If connecting to Azure Analysis Services, you must include a token_provider.
4718
4718
Defaults to None which resolves to the workspace of the attached lakehouse
4719
4719
or if no lakehouse attached, resolves to the workspace of the notebook.
4720
4720
token_provider : TokenProvider, default=None
4721
-
The token provider for authentication, created by using the ServicePrincipalTokenProvider class.
4721
+
The token provider for authentication, created by using the ServicePrincipalTokenProvider class. Required when connecting to Azure Analysis Services.
0 commit comments