Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions sdk/resources/azure-mgmt-resourcegraph/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,36 @@
# Release History

## 8.1.0b4 (2026-06-02)

### Features Added

- Client `ResourceGraphClient` added parameter `cloud_setting` in method `__init__`
- Client `ResourceGraphClient` added method `send_request`
- Client `ResourceGraphClient` added operation group `graph_query`
- Added enum `CreatedByType`
- Added model `ErrorFieldContract`
- Added model `GraphQueryError`
- Added model `GraphQueryErrorError`
- Added model `GraphQueryProperties`
- Added model `GraphQueryPropertiesUpdateParameters`
- Added model `GraphQueryResource`
- Added model `GraphQueryUpdateParameters`
- Added model `ProxyResource`
- Added model `Resource`
- Added enum `ResultKind`
- Added model `SystemData`
- Added model `GraphQueryOperations`

### Breaking Changes

- Method `ResourceGraphClient.__init__` inserted a `positional_or_keyword` parameter `subscription_id`

### Other Changes

- Deleted model `Column`/`ColumnDataType`/`Table` which actually was not used by SDK users
- Method `ResourceGraphClient.resources_history` changed return type from `JSON` to `Any`
- Renamed operation group `ResourceGraphClientOperationsMixin` to `_ResourceGraphClientOperationsMixin`

## 8.0.1 (2025-11-24)

### Other Changes
Expand Down
55 changes: 44 additions & 11 deletions sdk/resources/azure-mgmt-resourcegraph/README.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,61 @@
# Microsoft Azure SDK for Python

This is the Microsoft Azure Resource Graph Client Library.
This package has been tested with Python 3.7+.
This package has been tested with Python 3.10+.
For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all).

## _Disclaimer_

_Azure SDK Python packages support for Python 2.7 has ended 01 January 2022. For more information and questions, please refer to https://github.com/Azure/azure-sdk-for-python/issues/20691_

# Usage
## Getting started

### Prerequisites

To learn how to use this package, see the [quickstart guide](https://aka.ms/azsdk/python/mgmt)

For docs and references, see [Python SDK References](https://docs.microsoft.com/python/api/overview/azure/resource-graph)
Code samples for this package can be found at [Resource Graph](https://docs.microsoft.com/samples/browse/?languages=python&term=Getting%20started%20-%20Managing&terms=Getting%20started%20-%20Managing) on docs.microsoft.com.
Additional code samples for different Azure services are available at [Samples Repo](https://github.com/Azure-Samples/azure-samples-python-management/tree/main/samples/resourcegraph)
- Python 3.10+ is required to use this package.
- [Azure subscription](https://azure.microsoft.com/free/)

### Install the package

# Provide Feedback
```bash
pip install azure-mgmt-resourcegraph
pip install azure-identity
```

If you encounter any bugs or have suggestions, please file an issue in the
[Issues](https://github.com/Azure/azure-sdk-for-python/issues)
section of the project.
### Authentication

By default, [Microsoft Entra](https://learn.microsoft.com/entra/fundamentals/what-is-entra) token authentication depends on correct configuration of the following environment variables.

- `AZURE_CLIENT_ID` for Azure client ID.
- `AZURE_TENANT_ID` for Azure tenant ID.
- `AZURE_CLIENT_SECRET` for Azure client secret.

In addition, Azure subscription ID can be configured via environment variable `AZURE_SUBSCRIPTION_ID`.

With above configuration, client can be authenticated by following code:

```python
from azure.identity import DefaultAzureCredential
from azure.mgmt.resourcegraph import ResourceGraphClient
import os

sub_id = os.getenv("AZURE_SUBSCRIPTION_ID")
client = ResourceGraphClient(credential=DefaultAzureCredential(), subscription_id=sub_id)
```

## Examples

Code samples for this package can be found at:
- [Search Resource Graph](https://docs.microsoft.com/samples/browse/?languages=python&term=Getting%20started%20-%20Managing&terms=Getting%20started%20-%20Managing) on docs.microsoft.com
- [Azure Python Mgmt SDK Samples Repo](https://aka.ms/azsdk/python/mgmt/samples)


## Troubleshooting

## Next steps

## Provide Feedback

If you encounter any bugs or have suggestions, please file an issue in the
[Issues](https://github.com/Azure/azure-sdk-for-python/issues)
section of the project.
17 changes: 9 additions & 8 deletions sdk/resources/azure-mgmt-resourcegraph/_metadata.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
{
"commit": "e96c24570a484cff13d153fb472f812878866a39",
"apiVersions": {
"GraphQueryApi": "2024-04-01",
"ResourceChanges": "2020-09-01-preview",
"ResourceGraphApi": "2024-04-01",
"ResourceHistory": "2021-06-01-preview"
},
"commit": "16e90365f2fcc4efaa3e67e39c15f75c3712ad3d",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest": "3.10.2",
"use": [
"@autorest/python@6.42.0",
"@autorest/modelerfour@4.27.0"
],
"autorest_command": "autorest specification/resourcegraph/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --package-mode=azure-mgmt --python --python-sdks-folder=/mnt/vss/_work/1/azure-sdk-for-python/sdk --tag=package-2021-03 --use=@autorest/python@6.42.0 --use=@autorest/modelerfour@4.27.0 --version=3.10.2 --version-tolerant=False",
"readme": "specification/resourcegraph/resource-manager/readme.md"
"typespec_src": "specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/ResourceGraph",
"emitterVersion": "0.62.1"
}
115 changes: 69 additions & 46 deletions sdk/resources/azure-mgmt-resourcegraph/apiview-properties.json
Original file line number Diff line number Diff line change
@@ -1,49 +1,72 @@
{
"CrossLanguagePackageId": null,
"CrossLanguagePackageId": "ResourceChanges",
"CrossLanguageDefinitionId": {
"azure.mgmt.resourcegraph.models.Column": null,
"azure.mgmt.resourcegraph.models.Error": null,
"azure.mgmt.resourcegraph.models.ErrorDetails": null,
"azure.mgmt.resourcegraph.models.ErrorFieldContract": null,
"azure.mgmt.resourcegraph.models.ErrorResponse": null,
"azure.mgmt.resourcegraph.models.Facet": null,
"azure.mgmt.resourcegraph.models.FacetError": null,
"azure.mgmt.resourcegraph.models.FacetRequest": null,
"azure.mgmt.resourcegraph.models.FacetRequestOptions": null,
"azure.mgmt.resourcegraph.models.FacetResult": null,
"azure.mgmt.resourcegraph.models.GraphQueryError": null,
"azure.mgmt.resourcegraph.models.GraphQueryErrorError": null,
"azure.mgmt.resourcegraph.models.GraphQueryListResult": null,
"azure.mgmt.resourcegraph.models.Resource": null,
"azure.mgmt.resourcegraph.models.GraphQueryResource": null,
"azure.mgmt.resourcegraph.models.GraphQueryUpdateParameters": null,
"azure.mgmt.resourcegraph.models.Operation": null,
"azure.mgmt.resourcegraph.models.OperationDisplay": null,
"azure.mgmt.resourcegraph.models.OperationListResult": null,
"azure.mgmt.resourcegraph.models.QueryRequest": null,
"azure.mgmt.resourcegraph.models.QueryRequestOptions": null,
"azure.mgmt.resourcegraph.models.QueryResponse": null,
"azure.mgmt.resourcegraph.models.Table": null,
"azure.mgmt.resourcegraph.models.FacetSortOrder": null,
"azure.mgmt.resourcegraph.models.ResultKind": null,
"azure.mgmt.resourcegraph.models.ColumnDataType": null,
"azure.mgmt.resourcegraph.models.ResultFormat": null,
"azure.mgmt.resourcegraph.models.ResultTruncated": null,
"azure.mgmt.resourcegraph.ResourceGraphClient.resources": null,
"azure.mgmt.resourcegraph.aio.ResourceGraphClient.resources": null,
"azure.mgmt.resourcegraph.operations.Operations.list": null,
"azure.mgmt.resourcegraph.aio.operations.Operations.list": null,
"azure.mgmt.resourcegraph.operations.GraphQueryOperations.list_by_subscription": null,
"azure.mgmt.resourcegraph.aio.operations.GraphQueryOperations.list_by_subscription": null,
"azure.mgmt.resourcegraph.operations.GraphQueryOperations.list": null,
"azure.mgmt.resourcegraph.aio.operations.GraphQueryOperations.list": null,
"azure.mgmt.resourcegraph.operations.GraphQueryOperations.get": null,
"azure.mgmt.resourcegraph.aio.operations.GraphQueryOperations.get": null,
"azure.mgmt.resourcegraph.operations.GraphQueryOperations.delete": null,
"azure.mgmt.resourcegraph.aio.operations.GraphQueryOperations.delete": null,
"azure.mgmt.resourcegraph.operations.GraphQueryOperations.create_or_update": null,
"azure.mgmt.resourcegraph.aio.operations.GraphQueryOperations.create_or_update": null,
"azure.mgmt.resourcegraph.operations.GraphQueryOperations.update": null,
"azure.mgmt.resourcegraph.aio.operations.GraphQueryOperations.update": null
}
"azure.mgmt.resourcegraph.models.DateTimeInterval": "ResourceGraphCommon.DateTimeInterval",
"azure.mgmt.resourcegraph.models.Error": "ResourceGraphCommon.Error",
"azure.mgmt.resourcegraph.models.ErrorDetails": "ResourceGraphCommon.ErrorDetails",
"azure.mgmt.resourcegraph.models.ErrorFieldContract": "GraphQueryApi.ErrorFieldContract",
"azure.mgmt.resourcegraph.models.ErrorResponse": "ResourceGraphCommon.ErrorResponse",
"azure.mgmt.resourcegraph.models.Facet": "ResourceGraphApi.Facet",
"azure.mgmt.resourcegraph.models.FacetError": "ResourceGraphApi.FacetError",
"azure.mgmt.resourcegraph.models.FacetRequest": "ResourceGraphApi.FacetRequest",
"azure.mgmt.resourcegraph.models.FacetRequestOptions": "ResourceGraphApi.FacetRequestOptions",
"azure.mgmt.resourcegraph.models.FacetResult": "ResourceGraphApi.FacetResult",
"azure.mgmt.resourcegraph.models.GraphQueryError": "GraphQueryApi.GraphQueryError",
"azure.mgmt.resourcegraph.models.GraphQueryErrorError": "GraphQueryApi.GraphQueryErrorError",
"azure.mgmt.resourcegraph.models.GraphQueryProperties": "GraphQueryApi.GraphQueryProperties",
"azure.mgmt.resourcegraph.models.GraphQueryPropertiesUpdateParameters": "GraphQueryApi.GraphQueryPropertiesUpdateParameters",
"azure.mgmt.resourcegraph.models.Resource": "Azure.ResourceManager.CommonTypes.Resource",
"azure.mgmt.resourcegraph.models.ProxyResource": "Azure.ResourceManager.CommonTypes.ProxyResource",
"azure.mgmt.resourcegraph.models.GraphQueryResource": "GraphQueryApi.GraphQueryResource",
"azure.mgmt.resourcegraph.models.GraphQueryUpdateParameters": "GraphQueryApi.GraphQueryUpdateParameters",
"azure.mgmt.resourcegraph.models.Operation": "ResourceGraphApi.Operation",
"azure.mgmt.resourcegraph.models.OperationDisplay": "ResourceGraphApi.OperationDisplay",
"azure.mgmt.resourcegraph.models.QueryRequest": "ResourceGraphApi.QueryRequest",
"azure.mgmt.resourcegraph.models.QueryRequestOptions": "ResourceGraphApi.QueryRequestOptions",
"azure.mgmt.resourcegraph.models.QueryResponse": "ResourceGraphApi.QueryResponse",
"azure.mgmt.resourcegraph.models.ResourceChangeData": "ResourceChanges.ResourceChangeData",
"azure.mgmt.resourcegraph.models.ResourceSnapshotData": "ResourceChanges.ResourceSnapshotData",
"azure.mgmt.resourcegraph.models.ResourceChangeDataAfterSnapshot": "ResourceChanges.ResourceChangeDataAfterSnapshot",
"azure.mgmt.resourcegraph.models.ResourceChangeDataBeforeSnapshot": "ResourceChanges.ResourceChangeDataBeforeSnapshot",
"azure.mgmt.resourcegraph.models.ResourceChangeDetailsRequestParameters": "ResourceChanges.ResourceChangeDetailsRequestParameters",
"azure.mgmt.resourcegraph.models.ResourceChangeList": "ResourceChanges.ResourceChangeList",
"azure.mgmt.resourcegraph.models.ResourceChangesRequestParameters": "ResourceChanges.ResourceChangesRequestParameters",
"azure.mgmt.resourcegraph.models.ResourceChangesRequestParametersInterval": "ResourceChanges.ResourceChangesRequestParametersInterval",
"azure.mgmt.resourcegraph.models.ResourcePropertyChange": "ResourceChanges.ResourcePropertyChange",
"azure.mgmt.resourcegraph.models.ResourcesHistoryRequest": "ResourceHistory.ResourcesHistoryRequest",
"azure.mgmt.resourcegraph.models.ResourcesHistoryRequestOptions": "ResourceHistory.ResourcesHistoryRequestOptions",
"azure.mgmt.resourcegraph.models.SystemData": "Azure.ResourceManager.CommonTypes.SystemData",
"azure.mgmt.resourcegraph.models.CreatedByType": "Azure.ResourceManager.CommonTypes.createdByType",
"azure.mgmt.resourcegraph.models.ResultKind": "GraphQueryApi.ResultKind",
"azure.mgmt.resourcegraph.models.ChangeType": "ResourceChanges.ChangeType",
"azure.mgmt.resourcegraph.models.ChangeCategory": "ResourceChanges.ChangeCategory",
"azure.mgmt.resourcegraph.models.PropertyChangeType": "ResourceChanges.PropertyChangeType",
"azure.mgmt.resourcegraph.models.ResultTruncated": "ResourceGraphApi.ResultTruncated",
"azure.mgmt.resourcegraph.models.ResultFormat": "ResourceGraphCommon.ResultFormat",
"azure.mgmt.resourcegraph.models.AuthorizationScopeFilter": "ResourceGraphApi.AuthorizationScopeFilter",
"azure.mgmt.resourcegraph.models.FacetSortOrder": "ResourceGraphApi.FacetSortOrder",
"azure.mgmt.resourcegraph.operations.Operations.list": "Azure.ResourceManager.Legacy.Operations.list",
"azure.mgmt.resourcegraph.aio.operations.Operations.list": "Azure.ResourceManager.Legacy.Operations.list",
"azure.mgmt.resourcegraph.operations.GraphQueryOperations.get": "GraphQueryApi.GraphQueryResources.get",
"azure.mgmt.resourcegraph.aio.operations.GraphQueryOperations.get": "GraphQueryApi.GraphQueryResources.get",
"azure.mgmt.resourcegraph.operations.GraphQueryOperations.create_or_update": "GraphQueryApi.GraphQueryResources.createOrUpdate",
"azure.mgmt.resourcegraph.aio.operations.GraphQueryOperations.create_or_update": "GraphQueryApi.GraphQueryResources.createOrUpdate",
"azure.mgmt.resourcegraph.operations.GraphQueryOperations.update": "GraphQueryApi.GraphQueryResources.update",
"azure.mgmt.resourcegraph.aio.operations.GraphQueryOperations.update": "GraphQueryApi.GraphQueryResources.update",
"azure.mgmt.resourcegraph.operations.GraphQueryOperations.delete": "GraphQueryApi.GraphQueryResources.delete",
"azure.mgmt.resourcegraph.aio.operations.GraphQueryOperations.delete": "GraphQueryApi.GraphQueryResources.delete",
"azure.mgmt.resourcegraph.operations.GraphQueryOperations.list": "GraphQueryApi.GraphQueryResources.list",
"azure.mgmt.resourcegraph.aio.operations.GraphQueryOperations.list": "GraphQueryApi.GraphQueryResources.list",
"azure.mgmt.resourcegraph.operations.GraphQueryOperations.list_by_subscription": "GraphQueryApi.GraphQueryResources.listBySubscription",
"azure.mgmt.resourcegraph.aio.operations.GraphQueryOperations.list_by_subscription": "GraphQueryApi.GraphQueryResources.listBySubscription",
"azure.mgmt.resourcegraph.ResourceGraphClient.resource_changes": "ResourceChanges.resourceChanges",
"azure.mgmt.resourcegraph.aio.ResourceGraphClient.resource_changes": "ResourceChanges.resourceChanges",
"azure.mgmt.resourcegraph.ResourceGraphClient.resource_change_details": "ResourceChanges.resourceChangeDetails",
"azure.mgmt.resourcegraph.aio.ResourceGraphClient.resource_change_details": "ResourceChanges.resourceChangeDetails",
"azure.mgmt.resourcegraph.ResourceGraphClient.resources": "ResourceGraphApi.resources",
"azure.mgmt.resourcegraph.aio.ResourceGraphClient.resources": "ResourceGraphApi.resources",
"azure.mgmt.resourcegraph.ResourceGraphClient.resources_history": "ResourceHistory.resourcesHistory",
"azure.mgmt.resourcegraph.aio.ResourceGraphClient.resources_history": "ResourceHistory.resourcesHistory"
},
"CrossLanguageVersion": "c38463afc85a"
}
2 changes: 1 addition & 1 deletion sdk/resources/azure-mgmt-resourcegraph/azure/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
__path__ = __import__("pkgutil").extend_path(__path__, __name__) # type: ignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
__path__ = __import__("pkgutil").extend_path(__path__, __name__) # type: ignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Code generated by Microsoft (R) Python Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
# pylint: disable=wrong-import-position
Expand All @@ -12,7 +12,7 @@
if TYPE_CHECKING:
from ._patch import * # pylint: disable=unused-wildcard-import

from ._resource_graph_client import ResourceGraphClient # type: ignore
from ._client import ResourceGraphClient # type: ignore
from ._version import VERSION

__version__ = VERSION
Expand Down
Loading
Loading