[AutoPR azure-mgmt-commerce]-generated-from-SDK Generation - Python-5979984#45582
Merged
ChenxiJiang333 merged 7 commits intoAzure:mainfrom Mar 11, 2026
Merged
Conversation
…mmerce/Commerce/tspconfig.yaml', API Version: 2015-06-01-preview, SDK Release Type: beta, and CommitSHA: 'de8053fa6afbc8e563095a6a40ad662bf4e90a4d' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=5979984 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release.
…mmerce/Commerce/tspconfig.yaml', API Version: 2015-06-01-preview, SDK Release Type: beta, and CommitSHA: '48e2c462287288d03adad21e682404d90375462e' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=5985785 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release.
Contributor
There was a problem hiding this comment.
Pull request overview
Updates azure-mgmt-commerce to the latest generated (TypeSpec/dpcodegen) shape, modernizing packaging and regenerating the client, operations, models, samples, and tests for the 2015-06-01-preview API version.
Changes:
- Migrates packaging metadata from legacy
setup.py/sdk_packaging.tomltopyproject.toml(PEP 517/518). - Replaces legacy AutoRest-generated client/operations/models with new dpcodegen-generated implementations (sync + async).
- Adds/updates generated samples and test scaffolding (including generated tests).
Reviewed changes
Copilot reviewed 54 out of 54 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| sdk/commerce/azure-mgmt-commerce/tsp-location.yaml | Adds TypeSpec source location metadata for regeneration traceability. |
| sdk/commerce/azure-mgmt-commerce/tests/test_usage_management_usage_aggregates_operations_test.py | Adds live-only sync test for usage aggregates list operation. |
| sdk/commerce/azure-mgmt-commerce/tests/test_usage_management_usage_aggregates_operations_async_test.py | Adds live-only async test for usage aggregates list operation. |
| sdk/commerce/azure-mgmt-commerce/tests/disable_test_mgmt_commerce.py | Normalizes formatting/quoting and updates test client creation style. |
| sdk/commerce/azure-mgmt-commerce/tests/conftest.py | Refreshes test proxy sanitizers and modernizes header/comments. |
| sdk/commerce/azure-mgmt-commerce/setup.py | Removes legacy setuptools packaging entrypoint (moved to pyproject). |
| sdk/commerce/azure-mgmt-commerce/sdk_packaging.toml | Removes legacy packaging config (now embedded in pyproject). |
| sdk/commerce/azure-mgmt-commerce/pyproject.toml | Introduces PEP 621 project metadata + build configuration. |
| sdk/commerce/azure-mgmt-commerce/generated_tests/test_usage_management_usage_aggregates_operations_async.py | Adds autogenerated async test stub (skipped). |
| sdk/commerce/azure-mgmt-commerce/generated_tests/test_usage_management_usage_aggregates_operations.py | Adds autogenerated sync test stub (skipped). |
| sdk/commerce/azure-mgmt-commerce/generated_tests/test_usage_management_rate_card_operations_async.py | Adds autogenerated async rate card test stub (skipped). |
| sdk/commerce/azure-mgmt-commerce/generated_tests/test_usage_management_rate_card_operations.py | Adds autogenerated sync rate card test stub (skipped). |
| sdk/commerce/azure-mgmt-commerce/generated_tests/conftest.py | Adds autogenerated sanitizers for generated test suite. |
| sdk/commerce/azure-mgmt-commerce/generated_samples/get_usage_aggregates_list.py | Adds generated usage aggregates sample. |
| sdk/commerce/azure-mgmt-commerce/generated_samples/get_rate_card.py | Updates generated rate card sample for new generator conventions. |
| sdk/commerce/azure-mgmt-commerce/dev_requirements.txt | Updates dev deps for tests/samples (resource mgmt + aiohttp). |
| sdk/commerce/azure-mgmt-commerce/azure/mgmt/commerce/operations/_usage_aggregates_operations.py | Removes legacy AutoRest operation group implementation. |
| sdk/commerce/azure-mgmt-commerce/azure/mgmt/commerce/operations/_rate_card_operations.py | Removes legacy AutoRest operation group implementation. |
| sdk/commerce/azure-mgmt-commerce/azure/mgmt/commerce/operations/_patch.py | Updates patch scaffold typing/headers to new generator style. |
| sdk/commerce/azure-mgmt-commerce/azure/mgmt/commerce/operations/_operations.py | Adds consolidated dpcodegen-generated operation group implementations. |
| sdk/commerce/azure-mgmt-commerce/azure/mgmt/commerce/operations/init.py | Re-points exports to new operations module + patch wiring. |
| sdk/commerce/azure-mgmt-commerce/azure/mgmt/commerce/models/_patch.py | Updates models patch scaffold typing/headers to new generator style. |
| sdk/commerce/azure-mgmt-commerce/azure/mgmt/commerce/models/_models_py3.py | Removes legacy AutoRest model file. |
| sdk/commerce/azure-mgmt-commerce/azure/mgmt/commerce/models/_models.py | Adds dpcodegen-generated models (rest_field/rest_discriminator based). |
| sdk/commerce/azure-mgmt-commerce/azure/mgmt/commerce/models/_enums.py | Updates enums to new naming and doc conventions. |
| sdk/commerce/azure-mgmt-commerce/azure/mgmt/commerce/models/init.py | Re-exports new models/enums + patch wiring. |
| sdk/commerce/azure-mgmt-commerce/azure/mgmt/commerce/aio/operations/_usage_aggregates_operations.py | Removes legacy AutoRest async operation group implementation. |
| sdk/commerce/azure-mgmt-commerce/azure/mgmt/commerce/aio/operations/_rate_card_operations.py | Removes legacy AutoRest async operation group implementation. |
| sdk/commerce/azure-mgmt-commerce/azure/mgmt/commerce/aio/operations/_patch.py | Updates async operations patch scaffold typing/headers. |
| sdk/commerce/azure-mgmt-commerce/azure/mgmt/commerce/aio/operations/_operations.py | Adds dpcodegen-generated async operations. |
| sdk/commerce/azure-mgmt-commerce/azure/mgmt/commerce/aio/operations/init.py | Re-points async exports to new operations module + patch wiring. |
| sdk/commerce/azure-mgmt-commerce/azure/mgmt/commerce/aio/_usage_management_client.py | Removes legacy AutoRest async client. |
| sdk/commerce/azure-mgmt-commerce/azure/mgmt/commerce/aio/_patch.py | Updates async patch scaffold typing/headers. |
| sdk/commerce/azure-mgmt-commerce/azure/mgmt/commerce/aio/_configuration.py | Updates async configuration shape (cloud/base_url support, policies). |
| sdk/commerce/azure-mgmt-commerce/azure/mgmt/commerce/aio/_client.py | Adds dpcodegen-generated async client implementation. |
| sdk/commerce/azure-mgmt-commerce/azure/mgmt/commerce/aio/init.py | Re-exports new async client + patch wiring. |
| sdk/commerce/azure-mgmt-commerce/azure/mgmt/commerce/_version.py | Bumps package version to 6.1.0b2. |
| sdk/commerce/azure-mgmt-commerce/azure/mgmt/commerce/_vendor.py | Removes legacy request conversion helpers (no longer used). |
| sdk/commerce/azure-mgmt-commerce/azure/mgmt/commerce/_utils/model_base.py | Adds dpcodegen model base/serialization utilities. |
| sdk/commerce/azure-mgmt-commerce/azure/mgmt/commerce/_utils/init.py | Adds package marker for generated utils namespace. |
| sdk/commerce/azure-mgmt-commerce/azure/mgmt/commerce/_usage_management_client.py | Removes legacy AutoRest sync client. |
| sdk/commerce/azure-mgmt-commerce/azure/mgmt/commerce/_patch.py | Updates patch scaffold typing/headers. |
| sdk/commerce/azure-mgmt-commerce/azure/mgmt/commerce/_configuration.py | Updates sync configuration shape (cloud/base_url support, policies). |
| sdk/commerce/azure-mgmt-commerce/azure/mgmt/commerce/_client.py | Adds dpcodegen-generated sync client implementation. |
| sdk/commerce/azure-mgmt-commerce/azure/mgmt/commerce/init.py | Re-exports new sync client + patch wiring. |
| sdk/commerce/azure-mgmt-commerce/azure/mgmt/init.py | Adds typing ignore for namespace package extend_path. |
| sdk/commerce/azure-mgmt-commerce/azure/init.py | Adds typing ignore for namespace package extend_path. |
| sdk/commerce/azure-mgmt-commerce/apiview-properties.json | Adds APIView metadata mapping for cross-language IDs. |
| sdk/commerce/azure-mgmt-commerce/_metadata.json | Adds new generation metadata (commit, emitter version, etc.). |
| sdk/commerce/azure-mgmt-commerce/_meta.json | Removes legacy autorest metadata file. |
| sdk/commerce/azure-mgmt-commerce/README.md | Updates Python version requirements and improves wording/formatting. |
| sdk/commerce/azure-mgmt-commerce/MANIFEST.in | Updates sdist include patterns for current layout. |
| sdk/commerce/azure-mgmt-commerce/CHANGELOG.md | Adds 6.1.0b2 entry describing new features/breaking changes. |
...commerce/azure-mgmt-commerce/tests/test_usage_management_usage_aggregates_operations_test.py
Outdated
Show resolved
Hide resolved
...ce/azure-mgmt-commerce/tests/test_usage_management_usage_aggregates_operations_async_test.py
Outdated
Show resolved
Hide resolved
msyyc
approved these changes
Mar 11, 2026
ChenxiJiang333
approved these changes
Mar 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Configurations: 'specification/commerce/resource-manager/Microsoft.Commerce/Commerce/tspconfig.yaml', API Version: 2015-06-01-preview, SDK Release Type: beta, and CommitSHA: 'de8053fa6afbc8e563095a6a40ad662bf4e90a4d' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=5979984 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release.