Skip to content

Commit

Permalink
added uuid.UUID
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kovalsky committed Dec 18, 2024
1 parent 82373c2 commit fe9e5fc
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 39 deletions.
4 changes: 2 additions & 2 deletions src/sempy_labs/_job_scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ def list_item_job_instances(
Parameters
----------
item : str | UUID
item : str | uuid.UUID
The item name or ID
type : str, default=None
The item type. If specifying the item name as the item, the item type is required.
workspace : str | UUID, default=None
workspace : str | uuid.UUID, default=None
The Fabric workspace name or ID used by the lakehouse.
Defaults to None which resolves to the workspace of the attached lakehouse
or if no lakehouse attached, resolves to the workspace of the notebook.
Expand Down
6 changes: 3 additions & 3 deletions src/sempy_labs/_kql_databases.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def list_kql_databases(workspace: Optional[str | UUID] = None) -> pd.DataFrame:
Parameters
----------
workspace : str | UUID, default=None
workspace : str | uuid.UUID, default=None
The Fabric workspace name or ID.
Defaults to None which resolves to the workspace of the attached lakehouse
or if no lakehouse attached, resolves to the workspace of the notebook.
Expand Down Expand Up @@ -83,7 +83,7 @@ def create_kql_database(
Name of the KQL database.
description : str, default=None
A description of the environment.
workspace : str | UUID, default=None
workspace : str | uuid.UUID, default=None
The Fabric workspace name or ID.
Defaults to None which resolves to the workspace of the attached lakehouse
or if no lakehouse attached, resolves to the workspace of the notebook.
Expand Down Expand Up @@ -118,7 +118,7 @@ def delete_kql_database(name: str, workspace: Optional[str | UUID] = None):
----------
name: str
Name of the KQL database.
workspace : str | UUID, default=None
workspace : str | uuid.UUID, default=None
The Fabric workspace name or ID.
Defaults to None which resolves to the workspace of the attached lakehouse
or if no lakehouse attached, resolves to the workspace of the notebook.
Expand Down
6 changes: 3 additions & 3 deletions src/sempy_labs/_kql_querysets.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def list_kql_querysets(workspace: Optional[str | UUID] = None) -> pd.DataFrame:
Parameters
----------
workspace : str | UUID, default=None
workspace : str | uuid.UUID, default=None
The Fabric workspace name or ID.
Defaults to None which resolves to the workspace of the attached lakehouse
or if no lakehouse attached, resolves to the workspace of the notebook.
Expand Down Expand Up @@ -73,7 +73,7 @@ def create_kql_queryset(
Name of the KQL queryset.
description : str, default=None
A description of the environment.
workspace : str | UUID, default=None
workspace : str | uuid.UUID, default=None
The Fabric workspace name or ID.
Defaults to None which resolves to the workspace of the attached lakehouse
or if no lakehouse attached, resolves to the workspace of the notebook.
Expand Down Expand Up @@ -108,7 +108,7 @@ def delete_kql_queryset(name: str, workspace: Optional[str | UUID] = None):
----------
name: str
Name of the KQL queryset.
workspace : str | UUID, default=None
workspace : str | uuid.UUID, default=None
The Fabric workspace name or ID.
Defaults to None which resolves to the workspace of the attached lakehouse
or if no lakehouse attached, resolves to the workspace of the notebook.
Expand Down
61 changes: 30 additions & 31 deletions src/sempy_labs/_list_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
resolve_workspace_name_and_id,
create_relationship_name,
resolve_lakehouse_id,
resolve_dataset_id,
pagination,
resolve_item_type,
format_dax_object_name,
Expand All @@ -24,9 +23,9 @@ def get_object_level_security(
Parameters
----------
dataset : str | UUID
dataset : str | uuid.UUID
Name or ID of the semantic model.
workspace : str | UUID, default=None
workspace : str | uuid.UUID, default=None
The Fabric workspace name or ID.
Defaults to None which resolves to the workspace of the attached lakehouse
or if no lakehouse attached, resolves to the workspace of the notebook.
Expand Down Expand Up @@ -92,9 +91,9 @@ def list_tables(
Parameters
----------
dataset : str | UUID
dataset : str | uuid.UUID
Name or ID of the semantic model.
workspace : str | UUID, default=None
workspace : str | uuid.UUID, default=None
The Fabric workspace name or ID.
Defaults to None which resolves to the workspace of the attached lakehouse
or if no lakehouse attached, resolves to the workspace of the notebook.
Expand Down Expand Up @@ -266,9 +265,9 @@ def list_annotations(
Parameters
----------
dataset : str | UUID
dataset : str | uuid.UUID
Name or ID of the semantic model.
workspace : str | UUID, default=None
workspace : str | uuid.UUID, default=None
The Fabric workspace name or ID.
Defaults to None which resolves to the workspace of the attached lakehouse
or if no lakehouse attached, resolves to the workspace of the notebook.
Expand Down Expand Up @@ -502,9 +501,9 @@ def list_columns(
Parameters
----------
dataset : str | UUID
dataset : str | uuid.UUID
Name or ID of the semantic model.
workspace : str | UUID, default=None
workspace : str | uuid.UUID, default=None
The Fabric workspace name or ID.
Defaults to None which resolves to the workspace of the attached lakehouse
or if no lakehouse attached, resolves to the workspace of the notebook.
Expand Down Expand Up @@ -600,7 +599,7 @@ def list_dashboards(workspace: Optional[str | UUID] = None) -> pd.DataFrame:
Parameters
----------
workspace : str | UUID, default=None
workspace : str | uuid.UUID, default=None
The Fabric workspace name or ID.
Defaults to None which resolves to the workspace of the attached lakehouse
or if no lakehouse attached, resolves to the workspace of the notebook.
Expand Down Expand Up @@ -655,7 +654,7 @@ def list_lakehouses(workspace: Optional[str | UUID] = None) -> pd.DataFrame:
Parameters
----------
workspace : str | UUID, default=None
workspace : str | uuid.UUID, default=None
The Fabric workspace name or ID.
Defaults to None which resolves to the workspace of the attached lakehouse
or if no lakehouse attached, resolves to the workspace of the notebook.
Expand Down Expand Up @@ -715,7 +714,7 @@ def list_sql_endpoints(workspace: Optional[str | UUID] = None) -> pd.DataFrame:
Parameters
----------
workspace : str | UUID, default=None
workspace : str | uuid.UUID, default=None
The Fabric workspace name or ID.
Defaults to None which resolves to the workspace of the attached lakehouse
or if no lakehouse attached, resolves to the workspace of the notebook.
Expand Down Expand Up @@ -756,7 +755,7 @@ def list_datamarts(workspace: Optional[str | UUID] = None) -> pd.DataFrame:
Parameters
----------
workspace : str | UUID, default=None
workspace : str | uuid.UUID, default=None
The Fabric workspace name or ID.
Defaults to None which resolves to the workspace of the attached lakehouse
or if no lakehouse attached, resolves to the workspace of the notebook.
Expand Down Expand Up @@ -810,7 +809,7 @@ def update_item(
The new name of the item.
description : str, default=None
A description of the item.
workspace : str | UUID, default=None
workspace : str | uuid.UUID, default=None
The Fabric workspace name or ID.
Defaults to None which resolves to the workspace of the attached lakehouse
or if no lakehouse attached, resolves to the workspace of the notebook.
Expand Down Expand Up @@ -865,9 +864,9 @@ def list_relationships(
Parameters
----------
dataset: str | UUID
dataset: str | uuid.UUID
Name or UUID of the semantic model.
workspace : str | UUID, default=None
workspace : str | uuid.UUID, default=None
The Fabric workspace name or ID.
Defaults to None which resolves to the workspace of the attached lakehouse
or if no lakehouse attached, resolves to the workspace of the notebook.
Expand Down Expand Up @@ -949,9 +948,9 @@ def list_kpis(
Parameters
----------
dataset: str | UUID
dataset: str | uuid.UUID
Name or ID of the semantic model.
workspace : str | UUID, default=None
workspace : str | uuid.UUID, default=None
The Fabric workspace name or ID.
Defaults to None which resolves to the workspace of the attached lakehouse
or if no lakehouse attached, resolves to the workspace of the notebook.
Expand Down Expand Up @@ -1018,9 +1017,9 @@ def list_semantic_model_objects(
Parameters
----------
dataset : str | UUID
dataset : str | uuid.UUID
Name or ID of the semantic model.
workspace : str | UUID, default=None
workspace : str | uuid.UUID, default=None
The Fabric workspace name or ID.
Defaults to None which resolves to the workspace of the attached lakehouse
or if no lakehouse attached, resolves to the workspace of the notebook.
Expand Down Expand Up @@ -1185,7 +1184,7 @@ def list_shortcuts(
lakehouse : str, default=None
The Fabric lakehouse name.
Defaults to None which resolves to the lakehouse attached to the notebook.
workspace : str | UUID, default=None
workspace : str | uuid.UUID, default=None
The name or ID of the Fabric workspace in which lakehouse resides.
Defaults to None which resolves to the workspace of the attached lakehouse
or if no lakehouse attached, resolves to the workspace of the notebook.
Expand Down Expand Up @@ -1325,9 +1324,9 @@ def list_reports_using_semantic_model(
Parameters
----------
dataset : str | UUID
dataset : str | uuid.UUID
Name or ID of the semantic model.
workspace : str | UUID, default=None
workspace : str | uuid.UUID, default=None
The Fabric workspace name or ID.
Defaults to None which resolves to the workspace of the attached lakehouse
or if no lakehouse attached, resolves to the workspace of the notebook.
Expand Down Expand Up @@ -1386,9 +1385,9 @@ def list_report_semantic_model_objects(
Parameters
----------
dataset : str | UUID
dataset : str | uuid.UUID
Name or ID of the semantic model.
workspace : str | UUID, default=None
workspace : str | uuid.UUID, default=None
The Fabric workspace name or ID.
Defaults to None which resolves to the workspace of the attached lakehouse
or if no lakehouse attached, resolves to the workspace of the notebook.
Expand Down Expand Up @@ -1483,9 +1482,9 @@ def list_semantic_model_object_report_usage(
Parameters
----------
dataset : str | UUID
dataset : str | uuid.UUID
Name or ID of the semantic model.
workspace : str | UUID, default=None
workspace : str | uuid.UUID, default=None
The Fabric workspace name or ID.
Defaults to None which resolves to the workspace of the attached lakehouse
or if no lakehouse attached, resolves to the workspace of the notebook.
Expand Down Expand Up @@ -1599,8 +1598,8 @@ def list_server_properties(workspace: Optional[str | UUID] = None) -> pd.DataFra
Parameters
----------
workspace : str, default=None
The Fabric workspace name.
workspace : str | uuid.UUID, default=None
The Fabric workspace name or ID.
Defaults to None which resolves to the workspace of the attached lakehouse
or if no lakehouse attached, resolves to the workspace of the notebook.
Expand Down Expand Up @@ -1642,9 +1641,9 @@ def list_semantic_model_errors(
Parameters
----------
dataset : str | UUID
dataset : str | uuid.UUID
Name or ID of the semantic model.
workspace : str | UUID, default=None
workspace : str | uuid.UUID, default=None
The Fabric workspace name or ID.
Defaults to None which resolves to the workspace of the attached lakehouse
or if no lakehouse attached, resolves to the workspace of the notebook.
Expand Down

0 comments on commit fe9e5fc

Please sign in to comment.