Refresh azure-mgmt-commerce after migrate to Typespec#47904
Refresh azure-mgmt-commerce after migrate to Typespec#47904azure-sdk-automation[bot] wants to merge 2 commits into
Conversation
…mmerce/Commerce/tspconfig.yaml', API Version: 2015-06-01-preview, SDK Release Type: beta, and CommitSHA: 'a7bdbe741c0ef1f1b159d8569b173757bd823ae9' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6528023 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release.
There was a problem hiding this comment.
Pull request overview
This PR regenerates the management-plane package azure-mgmt-commerce after migrating its source from AutoRest/Swagger to TypeSpec (spec commit a7bdbe74…, API version 2015-06-01-preview, beta release 6.1.0b3). It swaps the legacy msrest-based serialization models for the DPG (_utils/model_base.py) code generation stack, updates the client/config to the {endpoint}-based pattern, and bumps packaging metadata to reflect a beta release requiring Python 3.10+.
Changes:
- Migrated generated code from AutoRest to the Python (TypeSpec/DPG) generator: consolidated per-operation modules into
_operations.py, replaced_models_py3.pywith_models.py+model_base.py, renamedOfferTermInfoEnum→OfferTermInfoName, and removedRateCardQueryParameters/UsageAggregationListResult(addedUsageSample). - Updated packaging for the
6.1.0b3beta:is_stable=false,Development Status :: 4 - Beta,requires-python>=3.10, and refreshed_metadata.json/apiview-properties.json/tsp-location.yaml. - Public API changes: operation parameters are now keyword-only,
send_request/base_urlare exposed, and the client uses endpoint templating.
The only issue found is the CHANGELOG entry, which still holds the generator's placeholder text and does not document the breaking changes introduced by this migration.
Reviewed changes
Copilot reviewed 42 out of 42 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| CHANGELOG.md | Adds 6.1.0b3 entry but leaves the auto-generated placeholder instead of documenting breaking changes (flagged). |
| _version.py | Bumps version to 6.1.0b3 (matches CHANGELOG). |
| pyproject.toml | Sets beta stability flags, drops 3.9, adds 3.14, requires-python>=3.10. |
| README.md | Updates auth wording from "Azure Active Directory" to "Microsoft Entra". |
| azure/mgmt/commerce/_client.py, aio/_client.py | Switches to {endpoint} templating, send_request, empty Serializer/Deserializer; signature order credential, subscription_id, base_url preserved. |
| azure/mgmt/commerce/_configuration.py, aio/_configuration.py | Adds base_url param and updated docstrings. |
| azure/mgmt/commerce/operations/_operations.py, aio/.../_operations.py | Consolidated operations with keyword-only params and DPG (de)serialization. |
| azure/mgmt/commerce/models/_models.py, _enums.py, init.py | New DPG models, enum rename, updated exports. |
| azure/mgmt/commerce/_utils/model_base.py, serialization.py | Adds DPG model base and numeric-duration (de)serializers. |
| operations/_usage_aggregates_operations.py, _rate_card_operations.py, models/_models_py3.py (+ aio) | Removed legacy AutoRest modules. |
| generated_tests/, generated_samples/ | Regenerated tests/samples (generator header, keyword args, sanitized subscription IDs). |
| _metadata.json, apiview-properties.json, api.md, api.metadata.yml, tsp-location.yaml | Regenerated tooling/APIView metadata for the TypeSpec source. |
|
|
||
| ## 6.1.0b3 (2026-07-07) | ||
|
|
||
| tool can't generate changelog for this release, please update manually. |
Configurations: 'specification/commerce/resource-manager/Microsoft.Commerce/Commerce/tspconfig.yaml', API Version: 2015-06-01-preview, SDK Release Type: beta, and CommitSHA: 'a7bdbe741c0ef1f1b159d8569b173757bd823ae9' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6528023 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release.