Skip to content

Commit

Permalink
added capacity functions
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kovalsky committed Sep 15, 2024
1 parent ca95559 commit 2c0675d
Show file tree
Hide file tree
Showing 6 changed files with 597 additions and 7 deletions.
3 changes: 2 additions & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ azure-storage-file-datalake==12.3.1
azure-storage-blob>=12.9.0
anytree
IPython
polib
polib
azure.mgmt.resource
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ dependencies = [
"anytree",
"powerbiclient",
"polib",
"azure.mgmt.resource",
]

[tool.setuptools.packages.find]
Expand All @@ -44,7 +45,7 @@ test = [
Repository = "https://github.com/microsoft/semantic-link-labs.git"

[[tool.mypy.overrides]]
module = "sempy.*,Microsoft.*,System.*,anytree.*,powerbiclient.*,synapse.ml.services.*,polib.*"
module = "sempy.*,Microsoft.*,System.*,anytree.*,powerbiclient.*,synapse.ml.services.*,polib.*,azure.mgmt.resource.*"
ignore_missing_imports = true

[tool.flake8]
Expand Down
25 changes: 21 additions & 4 deletions src/sempy_labs/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
from sempy_labs._sql import (
ConnectWarehouse,
)

from sempy_labs._capacities import (
check_fabric_capacity_name_availablility,
delete_fabric_capacity,
resume_fabric_capacity,
update_fabric_capacity,
create_fabric_capacity,
delete_premium_capacity,
suspend_fabric_capacity,
delete_embedded_capacity,
)
from sempy_labs._workspace_identity import (
provision_workspace_identity,
deprovision_workspace_identity,
Expand Down Expand Up @@ -36,9 +45,9 @@

from sempy_labs._connections import (
list_connections,
# create_connection_cloud,
# create_connection_vnet,
# create_connection_on_prem
# create_connection_cloud,
# create_connection_vnet,
# create_connection_on_prem
)
from sempy_labs._dax import evaluate_dax_impersonation
from sempy_labs._generate_semantic_model import (
Expand Down Expand Up @@ -264,4 +273,12 @@
"update_from_git",
"connect_workspace_to_git",
"disconnect_workspace_from_git",
"check_fabric_capacity_name_availablility",
"delete_fabric_capacity",
"resume_fabric_capacity",
"update_fabric_capacity",
"create_fabric_capacity",
"delete_premium_capacity",
"suspend_fabric_capacity",
"delete_embedded_capacity",
]
Loading

0 comments on commit 2c0675d

Please sign in to comment.