Skip to content

Commit 14915e4

Browse files
committed
added Azure AS connection for tom
1 parent 20d732a commit 14915e4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/sempy_labs/tom/_model.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4701,24 +4701,24 @@ def close(self):
47014701
def connect_semantic_model(
47024702
dataset: str | UUID,
47034703
readonly: bool = True,
4704-
workspace: Optional[str] = None,
4704+
workspace: Optional[str | UUID] = None,
47054705
token_provider: Optional[TokenProvider] = None,
47064706
) -> Iterator[TOMWrapper]:
47074707
"""
47084708
Connects to the Tabular Object Model (TOM) within a semantic model.
47094709
47104710
Parameters
47114711
----------
4712-
dataset : str | UUID
4712+
dataset : str | uuid.UUID
47134713
Name or ID of the semantic model.
47144714
readonly: bool, default=True
47154715
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.
47184718
Defaults to None which resolves to the workspace of the attached lakehouse
47194719
or if no lakehouse attached, resolves to the workspace of the notebook.
47204720
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.
47224722
Returns
47234723
-------
47244724
typing.Iterator[TOMWrapper]

0 commit comments

Comments
 (0)