microsoft / semantic-link-labs

Early access to new features for Microsoft Fabric's Semantic Link.
MIT License
178 stars 37 forks source link

feat: list environments #137

Closed LauJohansson closed 2 months ago

LauJohansson commented 2 months ago

Overview

This PR introduces a way to list environments for a specific workspace using the Fabric API: https://learn.microsoft.com/en-us/rest/api/fabric/environment/items/list-environments?tabs=HTTP

Details

def list_environments(workspace_name: str) -> dict:

Maybe this is not the right library to add the functionality, but I was unable to find the semantic-link-sempy library.

Please let me know if you use any format or linting rules.

m-kovalsky commented 2 months ago

Closing as this is within the other PR. Also, for future PRs, list functions generally return pandas dataframes, not json dictionaries.