msfabricpysdkcore 0.2.8__tar.gz → 0.2.9__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/PKG-INFO +37 -3
- {msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/README.md +36 -2
- {msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/client.py +2 -0
- {msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/coreapi.py +49 -4
- {msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/item.py +5 -0
- {msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/workspace.py +6 -3
- {msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore.egg-info/PKG-INFO +37 -3
- {msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/pyproject.toml +1 -1
- {msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/setup.py +1 -1
- {msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/LICENSE +0 -0
- {msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/__init__.py +0 -0
- {msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/admin_item.py +0 -0
- {msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/admin_workspace.py +0 -0
- {msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/adminapi.py +0 -0
- {msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/auth.py +0 -0
- {msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/capacity.py +0 -0
- {msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/deployment_pipeline.py +0 -0
- {msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/domain.py +0 -0
- {msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/environment.py +0 -0
- {msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/eventstream.py +0 -0
- {msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/fabric_azure_capacity.py +0 -0
- {msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/fabric_azure_client.py +0 -0
- {msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/folder.py +0 -0
- {msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/job_instance.py +0 -0
- {msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/lakehouse.py +0 -0
- {msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/long_running_operation.py +0 -0
- {msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/onelakeshortcut.py +0 -0
- {msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/otheritems.py +0 -0
- {msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/spark_custom_pool.py +0 -0
- {msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/tests/__init__.py +0 -0
- {msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/tests/test_admin_apis.py +0 -0
- {msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/tests/test_admin_tags.py +0 -0
- {msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/tests/test_apache_airflow_job.py +0 -0
- {msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/tests/test_connection.py +0 -0
- {msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/tests/test_copy_jobs.py +0 -0
- {msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/tests/test_dataflows.py +0 -0
- {msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/tests/test_datapipelines.py +0 -0
- {msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/tests/test_deployment_pipelinev2.py +0 -0
- {msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/tests/test_digital_twin_builder.py +0 -0
- {msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/tests/test_domains.py +0 -0
- {msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/tests/test_environments.py +0 -0
- {msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/tests/test_evenstreams.py +0 -0
- {msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/tests/test_eventhouses.py +0 -0
- {msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/tests/test_eventstream_topology.py +0 -0
- {msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/tests/test_external_data_shares.py +0 -0
- {msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/tests/test_fabric_azure_client.py +0 -0
- {msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/tests/test_folders.py +0 -0
- {msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/tests/test_gateways.py +0 -0
- {msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/tests/test_git.py +0 -0
- {msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/tests/test_graphqlapi.py +0 -0
- {msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/tests/test_items.py +0 -0
- {msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/tests/test_jobs.py +0 -0
- {msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/tests/test_kql_dashboards.py +0 -0
- {msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/tests/test_kql_queryset.py +0 -0
- {msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/tests/test_kqldatabases.py +0 -0
- {msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/tests/test_lakehouse.py +0 -0
- {msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/tests/test_managed_private_endpoints.py +0 -0
- {msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/tests/test_mirrored_azuredatabricks_catalog.py +0 -0
- {msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/tests/test_mirroreddatabases.py +0 -0
- {msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/tests/test_ml_experiments.py +0 -0
- {msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/tests/test_ml_models.py +0 -0
- {msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/tests/test_mounted_adf.py +0 -0
- {msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/tests/test_notebooks.py +0 -0
- {msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/tests/test_one_lake_data_access_security.py +0 -0
- {msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/tests/test_other_items.py +0 -0
- {msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/tests/test_reflex.py +0 -0
- {msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/tests/test_reports.py +0 -0
- {msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/tests/test_semantic_model.py +0 -0
- {msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/tests/test_shortcuts.py +0 -0
- {msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/tests/test_spark.py +0 -0
- {msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/tests/test_sparkjobdefinition.py +0 -0
- {msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/tests/test_sql_endpoint.py +0 -0
- {msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/tests/test_sqldatabases.py +0 -0
- {msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/tests/test_tags.py +0 -0
- {msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/tests/test_variable_libary.py +0 -0
- {msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/tests/test_warehouses.py +0 -0
- {msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/tests/test_workspaces_capacities.py +0 -0
- {msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/util/__init__.py +0 -0
- {msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/util/logger.py +0 -0
- {msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore.egg-info/SOURCES.txt +0 -0
- {msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore.egg-info/dependency_links.txt +0 -0
- {msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore.egg-info/requires.txt +0 -0
- {msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore.egg-info/top_level.txt +0 -0
- {msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: msfabricpysdkcore
|
3
|
-
Version: 0.2.
|
3
|
+
Version: 0.2.9
|
4
4
|
Summary: A Python SDK for Microsoft Fabric
|
5
5
|
Author: Andreas Rederer
|
6
6
|
Project-URL: Homepage, https://github.com/DaSenf1860/ms-fabric-sdk-core
|
@@ -653,9 +653,15 @@ git_provider_details = {'organizationName': 'dasenf1860',
|
|
653
653
|
'branchName': 'main',
|
654
654
|
'directoryName': '/folder1'}
|
655
655
|
|
656
|
-
|
656
|
+
# Optional:
|
657
|
+
my_git_credentials = {
|
658
|
+
"source": "ConfiguredConnection",
|
659
|
+
"connectionId": "3f2asdfasdf82c3301"
|
660
|
+
}
|
661
|
+
|
662
|
+
fc.git_connect(workspace_id="workspaceid", git_provider_details=git_provider_details, my_git_credentials=my_git_credentials)
|
657
663
|
# or
|
658
|
-
ws.git_connect(git_provider_details=git_provider_details)
|
664
|
+
ws.git_connect(git_provider_details=git_provider_details, my_git_credentials=my_git_credentials)
|
659
665
|
|
660
666
|
|
661
667
|
# Initialize a git connection
|
@@ -731,6 +737,34 @@ item.create_shortcut(path="path",
|
|
731
737
|
"workspaceId": "workspace_id_target"}})
|
732
738
|
|
733
739
|
|
740
|
+
# Bulk create shortcuts
|
741
|
+
fc.create_shortcuts_bulk(workspace_id="workspace_id",
|
742
|
+
item_id="item_id",
|
743
|
+
create_shortcut_requests=[
|
744
|
+
{
|
745
|
+
"path": "Files",
|
746
|
+
"name": "sales_2023",
|
747
|
+
"target": {
|
748
|
+
"oneLake": {
|
749
|
+
"workspaceId": "workspace_id_target",
|
750
|
+
"itemId": "item_id_target",
|
751
|
+
"path": "Tables/Sales2023"
|
752
|
+
}
|
753
|
+
}
|
754
|
+
},
|
755
|
+
{
|
756
|
+
"path": "Files/landingZone",
|
757
|
+
"name": "PartnerProducts",
|
758
|
+
"target": {
|
759
|
+
"adlsGen2": {
|
760
|
+
"location": "https://casdfasdfat.dfs.core.windows.net",
|
761
|
+
"subpath": "/mycontainer/data/ContosoProducts",
|
762
|
+
"connectionId": "91asdfasdfa1e"
|
763
|
+
}
|
764
|
+
}
|
765
|
+
}
|
766
|
+
])
|
767
|
+
|
734
768
|
# Get a shortcut
|
735
769
|
shortcut = fc.get_shortcut(workspace_id="workspace_id",
|
736
770
|
item_id="item_id",
|
@@ -635,9 +635,15 @@ git_provider_details = {'organizationName': 'dasenf1860',
|
|
635
635
|
'branchName': 'main',
|
636
636
|
'directoryName': '/folder1'}
|
637
637
|
|
638
|
-
|
638
|
+
# Optional:
|
639
|
+
my_git_credentials = {
|
640
|
+
"source": "ConfiguredConnection",
|
641
|
+
"connectionId": "3f2asdfasdf82c3301"
|
642
|
+
}
|
643
|
+
|
644
|
+
fc.git_connect(workspace_id="workspaceid", git_provider_details=git_provider_details, my_git_credentials=my_git_credentials)
|
639
645
|
# or
|
640
|
-
ws.git_connect(git_provider_details=git_provider_details)
|
646
|
+
ws.git_connect(git_provider_details=git_provider_details, my_git_credentials=my_git_credentials)
|
641
647
|
|
642
648
|
|
643
649
|
# Initialize a git connection
|
@@ -713,6 +719,34 @@ item.create_shortcut(path="path",
|
|
713
719
|
"workspaceId": "workspace_id_target"}})
|
714
720
|
|
715
721
|
|
722
|
+
# Bulk create shortcuts
|
723
|
+
fc.create_shortcuts_bulk(workspace_id="workspace_id",
|
724
|
+
item_id="item_id",
|
725
|
+
create_shortcut_requests=[
|
726
|
+
{
|
727
|
+
"path": "Files",
|
728
|
+
"name": "sales_2023",
|
729
|
+
"target": {
|
730
|
+
"oneLake": {
|
731
|
+
"workspaceId": "workspace_id_target",
|
732
|
+
"itemId": "item_id_target",
|
733
|
+
"path": "Tables/Sales2023"
|
734
|
+
}
|
735
|
+
}
|
736
|
+
},
|
737
|
+
{
|
738
|
+
"path": "Files/landingZone",
|
739
|
+
"name": "PartnerProducts",
|
740
|
+
"target": {
|
741
|
+
"adlsGen2": {
|
742
|
+
"location": "https://casdfasdfat.dfs.core.windows.net",
|
743
|
+
"subpath": "/mycontainer/data/ContosoProducts",
|
744
|
+
"connectionId": "91asdfasdfa1e"
|
745
|
+
}
|
746
|
+
}
|
747
|
+
}
|
748
|
+
])
|
749
|
+
|
716
750
|
# Get a shortcut
|
717
751
|
shortcut = fc.get_shortcut(workspace_id="workspace_id",
|
718
752
|
item_id="item_id",
|
@@ -118,6 +118,8 @@ class FabricClient():
|
|
118
118
|
if wait_for_completion:
|
119
119
|
operation_result = self.long_running_operation(response.headers)
|
120
120
|
if "operation_result" in return_format:
|
121
|
+
if ("value_json" in return_format and isinstance(operation_result, dict) and "value" in operation_result):
|
122
|
+
return operation_result["value"]
|
121
123
|
return operation_result
|
122
124
|
return response
|
123
125
|
elif response.status_code not in response_codes:
|
@@ -1128,11 +1128,13 @@ class FabricClientCore(FabricClient):
|
|
1128
1128
|
|
1129
1129
|
return response.status_code
|
1130
1130
|
|
1131
|
-
|
1131
|
+
|
1132
|
+
def git_connect(self, workspace_id, git_provider_details, my_git_credentials = None):
|
1132
1133
|
"""Connect git
|
1133
1134
|
Args:
|
1134
1135
|
workspace_id (str): The ID of the workspace
|
1135
1136
|
git_provider_details (dict): The git provider details
|
1137
|
+
my_git_credentials (dict): The git credentials
|
1136
1138
|
Returns:
|
1137
1139
|
int: The status code of the response
|
1138
1140
|
"""
|
@@ -1140,8 +1142,11 @@ class FabricClientCore(FabricClient):
|
|
1140
1142
|
url = f"https://api.fabric.microsoft.com/v1/workspaces/{workspace_id}/git/connect"
|
1141
1143
|
|
1142
1144
|
payload = {
|
1143
|
-
'gitProviderDetails': git_provider_details
|
1145
|
+
'gitProviderDetails': git_provider_details,
|
1146
|
+
|
1144
1147
|
}
|
1148
|
+
if my_git_credentials:
|
1149
|
+
payload['myGitCredentials'] = my_git_credentials
|
1145
1150
|
|
1146
1151
|
response = self.calling_routine(url=url, operation="POST", body=payload,
|
1147
1152
|
response_codes=[200, 202, 429],
|
@@ -2005,7 +2010,46 @@ class FabricClientCore(FabricClient):
|
|
2005
2010
|
shortcut_dict['itemId'] = item_id
|
2006
2011
|
return OneLakeShortcut.from_dict(shortcut_dict,
|
2007
2012
|
core_client = self)
|
2008
|
-
|
2013
|
+
|
2014
|
+
|
2015
|
+
def create_shortcuts_bulk(self, workspace_id, item_id, create_shortcut_requests):
|
2016
|
+
"""
|
2017
|
+
Bulk create OneLake shortcuts.
|
2018
|
+
|
2019
|
+
Args:
|
2020
|
+
workspace_id (str)
|
2021
|
+
item_id (str)
|
2022
|
+
create_shortcut_requests (list[dict]): Each dict must have:
|
2023
|
+
path, name, target (target has 'oneLake' OR 'adlsGen2' child object)
|
2024
|
+
|
2025
|
+
Returns:
|
2026
|
+
dict: The results of the operation
|
2027
|
+
"""
|
2028
|
+
if not isinstance(create_shortcut_requests, list) or len(create_shortcut_requests) == 0:
|
2029
|
+
raise Exception("create_shortcut_requests must be a non-empty list.")
|
2030
|
+
|
2031
|
+
required_keys = {"path", "name", "target"}
|
2032
|
+
for idx, req in enumerate(create_shortcut_requests):
|
2033
|
+
if not isinstance(req, dict):
|
2034
|
+
raise Exception(f"Shortcut request at index {idx} is not a dict.")
|
2035
|
+
missing = required_keys - set(req.keys())
|
2036
|
+
if missing:
|
2037
|
+
raise Exception(f"Shortcut request at index {idx} missing keys: {missing}")
|
2038
|
+
|
2039
|
+
url = f"https://api.fabric.microsoft.com/v1/workspaces/{workspace_id}/items/{item_id}/shortcuts/bulkCreate"
|
2040
|
+
body = {
|
2041
|
+
"createShortcutRequests": create_shortcut_requests
|
2042
|
+
}
|
2043
|
+
|
2044
|
+
return self.calling_routine(
|
2045
|
+
url=url,
|
2046
|
+
operation="POST",
|
2047
|
+
body=body,
|
2048
|
+
response_codes=[200, 202, 429],
|
2049
|
+
error_message="Error creating shortcuts in bulk",
|
2050
|
+
return_format="value_json+operation_result",
|
2051
|
+
wait_for_completion=True
|
2052
|
+
)
|
2009
2053
|
|
2010
2054
|
def get_shortcut(self, workspace_id, item_id, path, name):
|
2011
2055
|
"""Get the shortcut in the item
|
@@ -2028,7 +2072,8 @@ class FabricClientCore(FabricClient):
|
|
2028
2072
|
shortcut_dict['itemId'] = id
|
2029
2073
|
return OneLakeShortcut.from_dict(shortcut_dict,
|
2030
2074
|
core_client = self)
|
2031
|
-
|
2075
|
+
|
2076
|
+
|
2032
2077
|
def delete_shortcut(self, workspace_id, item_id, path, name):
|
2033
2078
|
"""Delete the shortcut
|
2034
2079
|
Args:
|
@@ -95,6 +95,11 @@ class Item:
|
|
95
95
|
return self.core_client.create_shortcut(workspace_id=self.workspace_id, item_id=self.id,
|
96
96
|
path=path, name=name, target=target)
|
97
97
|
|
98
|
+
def create_shortcuts_bulk(self, create_shortcut_requests):
|
99
|
+
"""Create multiple shortcuts in the item"""
|
100
|
+
return self.core_client.create_shortcuts_bulk(workspace_id=self.workspace_id, item_id=self.id,
|
101
|
+
create_shortcut_requests=create_shortcut_requests)
|
102
|
+
|
98
103
|
def delete_shortcut(self, path, name):
|
99
104
|
"""Delete the shortcut in the item"""
|
100
105
|
return self.core_client.delete_shortcut(workspace_id=self.workspace_id, item_id=self.id,
|
@@ -325,6 +325,9 @@ class Workspace:
|
|
325
325
|
def create_shortcut(self, item_id, path, name, target):
|
326
326
|
return self.core_client.create_shortcut(workspace_id=self.id, item_id=item_id,
|
327
327
|
path=path, name=name, target=target)
|
328
|
+
|
329
|
+
def create_shortcuts_bulk(self, item_id, create_shortcut_requests):
|
330
|
+
return self.core_client.create_shortcuts_bulk(workspace_id=self.id, item_id=item_id, create_shortcut_requests=create_shortcut_requests)
|
328
331
|
|
329
332
|
def delete_shortcut(self, item_id, path, name):
|
330
333
|
return self.core_client.delete_shortcut(self.id, item_id, path=path, name=name)
|
@@ -372,9 +375,9 @@ class Workspace:
|
|
372
375
|
return self.core_client.commit_to_git(workspace_id=self.id, mode=mode, comment=comment,
|
373
376
|
items=items, workspace_head=workspace_head)
|
374
377
|
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
+
def git_connect(self, git_provider_details, my_git_credentials):
|
379
|
+
return self.core_client.git_connect(workspace_id=self.id, git_provider_details=git_provider_details,
|
380
|
+
my_git_credentials=my_git_credentials)
|
378
381
|
|
379
382
|
def git_disconnect(self):
|
380
383
|
return self.core_client.git_disconnect(workspace_id=self.id)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: msfabricpysdkcore
|
3
|
-
Version: 0.2.
|
3
|
+
Version: 0.2.9
|
4
4
|
Summary: A Python SDK for Microsoft Fabric
|
5
5
|
Author: Andreas Rederer
|
6
6
|
Project-URL: Homepage, https://github.com/DaSenf1860/ms-fabric-sdk-core
|
@@ -653,9 +653,15 @@ git_provider_details = {'organizationName': 'dasenf1860',
|
|
653
653
|
'branchName': 'main',
|
654
654
|
'directoryName': '/folder1'}
|
655
655
|
|
656
|
-
|
656
|
+
# Optional:
|
657
|
+
my_git_credentials = {
|
658
|
+
"source": "ConfiguredConnection",
|
659
|
+
"connectionId": "3f2asdfasdf82c3301"
|
660
|
+
}
|
661
|
+
|
662
|
+
fc.git_connect(workspace_id="workspaceid", git_provider_details=git_provider_details, my_git_credentials=my_git_credentials)
|
657
663
|
# or
|
658
|
-
ws.git_connect(git_provider_details=git_provider_details)
|
664
|
+
ws.git_connect(git_provider_details=git_provider_details, my_git_credentials=my_git_credentials)
|
659
665
|
|
660
666
|
|
661
667
|
# Initialize a git connection
|
@@ -731,6 +737,34 @@ item.create_shortcut(path="path",
|
|
731
737
|
"workspaceId": "workspace_id_target"}})
|
732
738
|
|
733
739
|
|
740
|
+
# Bulk create shortcuts
|
741
|
+
fc.create_shortcuts_bulk(workspace_id="workspace_id",
|
742
|
+
item_id="item_id",
|
743
|
+
create_shortcut_requests=[
|
744
|
+
{
|
745
|
+
"path": "Files",
|
746
|
+
"name": "sales_2023",
|
747
|
+
"target": {
|
748
|
+
"oneLake": {
|
749
|
+
"workspaceId": "workspace_id_target",
|
750
|
+
"itemId": "item_id_target",
|
751
|
+
"path": "Tables/Sales2023"
|
752
|
+
}
|
753
|
+
}
|
754
|
+
},
|
755
|
+
{
|
756
|
+
"path": "Files/landingZone",
|
757
|
+
"name": "PartnerProducts",
|
758
|
+
"target": {
|
759
|
+
"adlsGen2": {
|
760
|
+
"location": "https://casdfasdfat.dfs.core.windows.net",
|
761
|
+
"subpath": "/mycontainer/data/ContosoProducts",
|
762
|
+
"connectionId": "91asdfasdfa1e"
|
763
|
+
}
|
764
|
+
}
|
765
|
+
}
|
766
|
+
])
|
767
|
+
|
734
768
|
# Get a shortcut
|
735
769
|
shortcut = fc.get_shortcut(workspace_id="workspace_id",
|
736
770
|
item_id="item_id",
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/deployment_pipeline.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/fabric_azure_capacity.py
RENAMED
File without changes
|
{msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/fabric_azure_client.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/long_running_operation.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/tests/test_admin_apis.py
RENAMED
File without changes
|
{msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/tests/test_admin_tags.py
RENAMED
File without changes
|
File without changes
|
{msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/tests/test_connection.py
RENAMED
File without changes
|
{msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/tests/test_copy_jobs.py
RENAMED
File without changes
|
{msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/tests/test_dataflows.py
RENAMED
File without changes
|
{msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/tests/test_datapipelines.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/tests/test_environments.py
RENAMED
File without changes
|
{msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/tests/test_evenstreams.py
RENAMED
File without changes
|
{msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/tests/test_eventhouses.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/tests/test_gateways.py
RENAMED
File without changes
|
File without changes
|
{msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/tests/test_graphqlapi.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/tests/test_kql_dashboards.py
RENAMED
File without changes
|
{msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/tests/test_kql_queryset.py
RENAMED
File without changes
|
{msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/tests/test_kqldatabases.py
RENAMED
File without changes
|
{msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/tests/test_lakehouse.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/tests/test_ml_experiments.py
RENAMED
File without changes
|
{msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/tests/test_ml_models.py
RENAMED
File without changes
|
{msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/tests/test_mounted_adf.py
RENAMED
File without changes
|
{msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/tests/test_notebooks.py
RENAMED
File without changes
|
File without changes
|
{msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/tests/test_other_items.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/tests/test_semantic_model.py
RENAMED
File without changes
|
{msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/tests/test_shortcuts.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/tests/test_sql_endpoint.py
RENAMED
File without changes
|
{msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/tests/test_sqldatabases.py
RENAMED
File without changes
|
File without changes
|
{msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/tests/test_variable_libary.py
RENAMED
File without changes
|
{msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore/tests/test_warehouses.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore.egg-info/dependency_links.txt
RENAMED
File without changes
|
File without changes
|
{msfabricpysdkcore-0.2.8 → msfabricpysdkcore-0.2.9}/msfabricpysdkcore.egg-info/top_level.txt
RENAMED
File without changes
|
File without changes
|