[Monitor Query] Regenerate from Typespec#46161
Open
pvaneck wants to merge 2 commits intoAzure:mainfrom
Open
Conversation
Regeneration introduces updates and improvements to generated code. - Moves the project to by pyproject.toml based - Fixes pyright failures in CI Signed-off-by: Paul Van Eck <paulvaneck@microsoft.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates azure-monitor-query to regenerate from the updated TypeSpec location, including switching packaging to pyproject.toml and incorporating regenerated client/model/runtime code changes.
Changes:
- Updated
tsp-location.yamlto point at the new spec directory/commit for regeneration. - Migrated packaging from
setup.pytopyproject.toml(PEP 621 / setuptools dynamic metadata). - Regenerated code updates models/operations/utilities (typing updates, streaming handling, and deserialization helpers).
Reviewed changes
Copilot reviewed 18 out of 18 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| sdk/monitor/azure-monitor-query/tsp-location.yaml | Updates TypeSpec spec location + commit used for regeneration. |
| sdk/monitor/azure-monitor-query/setup.py | Removed legacy setuptools packaging entrypoint. |
| sdk/monitor/azure-monitor-query/pyproject.toml | Adds pyproject-based packaging configuration and dynamic version/readme. |
| sdk/monitor/azure-monitor-query/azure/monitor/query/models/_models.py | Regenerated REST models with updated typing (builtins) and enum reference changes. |
| sdk/monitor/azure-monitor-query/azure/monitor/query/models/_enums.py | Enum docstring formatting updates. |
| sdk/monitor/azure-monitor-query/azure/monitor/query/models/init.py | Regenerated models package exports/import structure. |
| sdk/monitor/azure-monitor-query/azure/monitor/query/_utils/serialization.py | Regenerated serialization helpers (typing + safer basic type conversion). |
| sdk/monitor/azure-monitor-query/azure/monitor/query/_utils/model_base.py | Regenerated model base/deserialization behavior and failsafe error deserialization API. |
| sdk/monitor/azure-monitor-query/azure/monitor/query/_operations/_operations.py | Regenerated sync operations (streaming decompress support; updated failsafe deserialization call). |
| sdk/monitor/azure-monitor-query/azure/monitor/query/_operations/init.py | Exposes regenerated operations mixin via package init. |
| sdk/monitor/azure-monitor-query/azure/monitor/query/_client.py | Adjusted operations import path; docstring formatting updates. |
| sdk/monitor/azure-monitor-query/azure/monitor/query/_configuration.py | Docstring formatting updates for api_version. |
| sdk/monitor/azure-monitor-query/azure/monitor/query/aio/_operations/_operations.py | Regenerated async operations (streaming decompress support; updated failsafe deserialization call). |
| sdk/monitor/azure-monitor-query/azure/monitor/query/aio/_operations/init.py | Exposes regenerated async operations mixin via package init. |
| sdk/monitor/azure-monitor-query/azure/monitor/query/aio/_client.py | Adjusted operations import path; docstring formatting updates. |
| sdk/monitor/azure-monitor-query/azure/monitor/query/aio/_configuration.py | Docstring formatting updates for api_version. |
| sdk/monitor/azure-monitor-query/apiview-properties.json | Updates APIView cross-language mapping metadata. |
| sdk/monitor/azure-monitor-query/_metadata.json | Adds apiVersions map alongside apiVersion. |
sdk/monitor/azure-monitor-query/azure/monitor/query/aio/_configuration.py
Show resolved
Hide resolved
Signed-off-by: Paul Van Eck <paulvaneck@microsoft.com>
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.
Updated tsp-location.yaml to new specs repo path.
Regeneration introduces updates and improvements to generated code.