Skip to content

Refresh azure-mgmt-recoveryservicessiterecovery after migrate to Typespec#47667

Open
azure-sdk wants to merge 2 commits into
mainfrom
sdkauto/azure-mgmt-recoveryservicessiterecovery-6480999
Open

Refresh azure-mgmt-recoveryservicessiterecovery after migrate to Typespec#47667
azure-sdk wants to merge 2 commits into
mainfrom
sdkauto/azure-mgmt-recoveryservicessiterecovery-6480999

Conversation

@azure-sdk

Copy link
Copy Markdown
Collaborator

Configurations: 'specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/SiteRecovery/tspconfig.yaml', API Version: 2025-08-01, SDK Release Type: stable, and CommitSHA: '8a6875438f0aba253bdcb9e9ccc7013e886af024' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6480999 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release.

…manager/Microsoft.RecoveryServices/SiteRecovery/tspconfig.yaml', API Version: 2025-08-01, SDK Release Type: stable, and CommitSHA: '8a6875438f0aba253bdcb9e9ccc7013e886af024' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6480999 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release.
@ChenxiJiang333 ChenxiJiang333 changed the title [AutoPR azure-mgmt-recoveryservicessiterecovery]-generated-from-SDK Generation - Python-6480999 Refresh azure-mgmt-recoveryservicessiterecovery after migrate to Typespec Jun 25, 2026
@ChenxiJiang333 ChenxiJiang333 marked this pull request as ready for review June 25, 2026 07:14
Copilot AI review requested due to automatic review settings June 25, 2026 07:14

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 refreshes the management-plane package azure-mgmt-recoveryservicessiterecovery after its migration to TypeSpec, promoting it from the preview 2.0.0b1 to the stable GA release 2.0.0 (API version 2025-08-01). It updates the spec commit pin, regenerates code with a newer emitter (0.61.30.63.2), and aligns packaging/docs metadata for a stable release. The bulk of the diff is regenerated source under azure/mgmt/**/ (operations, models, and the shared _utils serialization/model-base runtime), which is generated code.

Changes:

  • Version/stability promotion to GA 2.0.0: _version.py, pyproject.toml (is_stable=true, Development Status :: 5 - Production/Stable), and a comprehensive CHANGELOG entry.
  • Dependency/runtime modernization: drop Python 3.9 (require >=3.10), gate Self import behind sys.version_info, add numeric duration serializers and fast-path scalar/XML deserialization in the generated _utils.
  • Metadata/spec refresh: tsp-location.yaml, _metadata.json (new commit + emitter versions), apiview-properties.json (CrossLanguageVersion), and new api.metadata.yml.

Per the management-plane review rules, generated source under azure/mgmt/**/ (other than _client.py) and the generated_* folders were not line-reviewed. The reviewable surface — client signature, client-name consistency, version/changelog consistency, stability flags, and README — was verified and is internally consistent. No issues were found in the reviewable scope.

Reviewed changes

Copilot reviewed 17 out of 18 changed files in this pull request and generated no comments.

Show a summary per file
File Description
tsp-location.yaml Pins the new spec commit for regeneration.
README.md Updates supported Python to 3.10+ and switches AAD wording to Microsoft Entra.
pyproject.toml Sets stable classifiers/is_stable=true, requires-python>=3.10, adds 3.14, drops 3.9.
CHANGELOG.md Adds the 2.0.0 (2026-06-25) GA entry (features + breaking changes).
_version.py Bumps version to 2.0.0, matching the changelog.
_client.py / aio/_client.py Gates Self import by Python version; updates api_version docstring.
_configuration.py / aio/_configuration.py Updates api_version docstring (default now None).
operations/_operations.py / aio/operations/_operations.py Generated: forward headers on next-link requests; drop LRO Location/Retry-After headers; fix RP casing.
models/_models.py Generated: escape backslashes in docstrings.
_utils/serialization.py / _utils/model_base.py Generated runtime: numeric duration formats and fast-path deserialization.
_metadata.json Updates commit, emitter version, and http-client-python version.
apiview-properties.json Adds CrossLanguageVersion.
api.metadata.yml New API surface snapshot metadata.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@ChenxiJiang333

Copy link
Copy Markdown
Member

❌ Live Test Results

Summary: 2 failed, 2 warnings in 12.12s

Failed Tests

TestSiteRecoveryManagementOperationsAsync.test_operations_list

azure.core.exceptions.HttpResponseError: (AuthorizationFailed) The client 'v-chenjiang@microsoft.com' with object id '<redacted-id>' does not have authorization to perform action 'Microsoft.Resources/subscriptions/resourcegroups/write' over scope '/subscriptions/<redacted-id>/resourcegroups/rgpy-mehntwdjvkdmmrilgqpltpxojrjwifaqcmmeonwaehxvkmtmnhccfbcauakazpxvptxrluctinn' or the scope is invalid. If access was recently granted, please refresh your credentials.
Code: AuthorizationFailed
Message: The client 'v-chenjiang@microsoft.com' with object id '<redacted-id>' does not have authorization to perform action 'Microsoft.Resources/subscriptions/resourcegroups/write' over scope '/subscriptions/<redacted-id>/resourcegroups/rgpy-mehntwdjvkdmmrilgqpltpxojrjwifaqcmmeonwaehxvkmtmnhccfbcauakazpxvptxrluctinn' or the scope is invalid. If access was recently granted, please refresh your credentials.
Exception: Preparer failure when creating resource ResourceGroupPreparer for test <test_site_recovery_management_operations_async_test.TestSiteRecoveryManagementOperationsAsync object at 0x00000227A2DF5550>: (AuthorizationFailed) The client 'v-chenjiang@microsoft.com' with object id '<redacted-id>' does not have authorization to perform action 'Microsoft.Resources/subscriptions/resourcegroups/write' over scope '/subscriptions/<redacted-id>/resourcegroups/rgpy-mehntwdjvkdmmrilgqpltpxojrjwifaqcmmeonwaehxvkmtmnhccfbcauakazpxvptxrluctinn' or the scope is invalid. If access was recently granted, please refresh your credentials.
Code: AuthorizationFailed
Message: The client 'v-chenjiang@microsoft.com' with object id '<redacted-id>' does not have authorization to perform action 'Microsoft.Resources/subscriptions/resourcegroups/write' over scope '/subscriptions/<redacted-id>/resourcegroups/rgpy-mehntwdjvkdmmrilgqpltpxojrjwifaqcmmeonwaehxvkmtmnhccfbcauakazpxvptxrluctinn' or the scope is invalid. If access was recently granted, please refresh your credentials.

TestSiteRecoveryManagementOperations.test_operations_list

azure.core.exceptions.HttpResponseError: (AuthorizationFailed) The client 'v-chenjiang@microsoft.com' with object id '<redacted-id>' does not have authorization to perform action 'Microsoft.Resources/subscriptions/resourcegroups/write' over scope '/subscriptions/<redacted-id>/resourcegroups/rgpy-zjzlchazrqekvlqbwikfwuiwuxkfhdthirrjjnydrwlqhlfiolkjyeayjkgpifqcglmjqgmvqag' or the scope is invalid. If access was recently granted, please refresh your credentials.
Code: AuthorizationFailed
Message: The client 'v-chenjiang@microsoft.com' with object id '<redacted-id>' does not have authorization to perform action 'Microsoft.Resources/subscriptions/resourcegroups/write' over scope '/subscriptions/<redacted-id>/resourcegroups/rgpy-zjzlchazrqekvlqbwikfwuiwuxkfhdthirrjjnydrwlqhlfiolkjyeayjkgpifqcglmjqgmvqag' or the scope is invalid. If access was recently granted, please refresh your credentials.
Exception: Preparer failure when creating resource ResourceGroupPreparer for test <test_site_recovery_management_operations_test.TestSiteRecoveryManagementOperations object at 0x00000227A2B0DB20>: (AuthorizationFailed) The client 'v-chenjiang@microsoft.com' with object id '<redacted-id>' does not have authorization to perform action 'Microsoft.Resources/subscriptions/resourcegroups/write' over scope '/subscriptions/<redacted-id>/resourcegroups/rgpy-zjzlchazrqekvlqbwikfwuiwuxkfhdthirrjjnydrwlqhlfiolkjyeayjkgpifqcglmjqgmvqag' or the scope is invalid. If access was recently granted, please refresh your credentials.
Code: AuthorizationFailed
Message: The client 'v-chenjiang@microsoft.com' with object id '<redacted-id>' does not have authorization to perform action 'Microsoft.Resources/subscriptions/resourcegroups/write' over scope '/subscriptions/<redacted-id>/resourcegroups/rgpy-zjzlchazrqekvlqbwikfwuiwuxkfhdthirrjjnydrwlqhlfiolkjyeayjkgpifqcglmjqgmvqag' or the scope is invalid. If access was recently granted, please refresh your credentials.

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