Skip to content

Refresh azure-mgmt-commerce after migrate to Typespec#47904

Open
azure-sdk-automation[bot] wants to merge 2 commits into
mainfrom
sdkauto/azure-mgmt-commerce-6528023
Open

Refresh azure-mgmt-commerce after migrate to Typespec#47904
azure-sdk-automation[bot] wants to merge 2 commits into
mainfrom
sdkauto/azure-mgmt-commerce-6528023

Conversation

@azure-sdk-automation

Copy link
Copy Markdown
Contributor

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.

…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.
@msyyc msyyc changed the title [AutoPR azure-mgmt-commerce]-generated-from-SDK Generation - Python-6528023 Refresh azure-mgmt-commerce after migrate to Typespec Jul 7, 2026
@msyyc msyyc marked this pull request as ready for review July 7, 2026 07:33
@msyyc msyyc requested a review from ChenxiJiang333 as a code owner July 7, 2026 07:33
Copilot AI review requested due to automatic review settings July 7, 2026 07:33
@msyyc msyyc self-requested a review as a code owner July 7, 2026 07:33

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.py with _models.py + model_base.py, renamed OfferTermInfoEnumOfferTermInfoName, and removed RateCardQueryParameters/UsageAggregationListResult (added UsageSample).
  • Updated packaging for the 6.1.0b3 beta: 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_url are 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants