Skip to content

[Monitor Query Metrics] Regenerate from Typespec#46165

Open
pvaneck wants to merge 2 commits intoAzure:mainfrom
pvaneck:monitor-pyright-querymetrics
Open

[Monitor Query Metrics] Regenerate from Typespec#46165
pvaneck wants to merge 2 commits intoAzure:mainfrom
pvaneck:monitor-pyright-querymetrics

Conversation

@pvaneck
Copy link
Copy Markdown
Member

@pvaneck pvaneck commented Apr 6, 2026

Updated tsp-location.yaml to new specs repo path.

Regeneration introduces updates and improvements to generated code.

  • Moves the project to pyproject.toml based
  • Fixes pyright failures in CI

Updated tsp-location.yaml to new specs repo path.

Regeneration introduces updates and improvements to generated code.

- Moves the project to pyproject.toml based
- Fixes pyright failures in CI

Signed-off-by: Paul Van Eck <paulvaneck@microsoft.com>
@github-actions github-actions bot added the Monitor Monitor, Monitor Ingestion, Monitor Query label Apr 6, 2026
@pvaneck pvaneck marked this pull request as ready for review April 6, 2026 21:21
@pvaneck pvaneck requested a review from a team as a code owner April 6, 2026 21:21
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 azure-monitor-querymetrics from an updated TypeSpec source location, and updates the package to use pyproject.toml-based packaging while incorporating generator-driven updates (including changes intended to address CI type-checking issues).

Changes:

  • Updated tsp-location.yaml to point to the new specs repo directory/commit and regenerated the SDK.
  • Migrated packaging from setup.py to pyproject.toml.
  • Regeneration updates across generated models/operations/utilities (typing updates, streaming/decompress support, deserialization utilities).

Reviewed changes

Copilot reviewed 21 out of 21 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
sdk/monitor/azure-monitor-querymetrics/tsp-location.yaml Updates the TypeSpec source directory/commit for regeneration.
sdk/monitor/azure-monitor-querymetrics/setup.py Removed legacy setuptools setup.py packaging entrypoint.
sdk/monitor/azure-monitor-querymetrics/pyproject.toml Adds PEP 621/pyproject-based packaging configuration and dependencies.
sdk/monitor/azure-monitor-querymetrics/samples/sample_metrics_query.py Adds pylint suppression header.
sdk/monitor/azure-monitor-querymetrics/samples/sample_metrics_query_async.py Adds pylint suppression header.
sdk/monitor/azure-monitor-querymetrics/samples/sample_authentication.py Adds pylint suppression header.
sdk/monitor/azure-monitor-querymetrics/samples/sample_authentication_async.py Adds pylint suppression header.
sdk/monitor/azure-monitor-querymetrics/azure/monitor/querymetrics/models/_models.py Regenerated model types and annotations (notably List[...]list[...]).
sdk/monitor/azure-monitor-querymetrics/azure/monitor/querymetrics/models/_enums.py Minor docstring formatting changes from regeneration.
sdk/monitor/azure-monitor-querymetrics/azure/monitor/querymetrics/models/init.py Ensures generated modules are imported/available during patch initialization.
sdk/monitor/azure-monitor-querymetrics/azure/monitor/querymetrics/_operations/_operations.py Regenerated sync operations; adds decompress handling and updates failsafe error deserialization call shape.
sdk/monitor/azure-monitor-querymetrics/azure/monitor/querymetrics/_operations/init.py Re-exports operations mixin for updated import path.
sdk/monitor/azure-monitor-querymetrics/azure/monitor/querymetrics/_configuration.py Regenerated docstring formatting and API version docs.
sdk/monitor/azure-monitor-querymetrics/azure/monitor/querymetrics/_client.py Updates operations mixin import path.
sdk/monitor/azure-monitor-querymetrics/azure/monitor/querymetrics/aio/_operations/_operations.py Regenerated async operations; mirrors sync decompress + failsafe deserialization updates.
sdk/monitor/azure-monitor-querymetrics/azure/monitor/querymetrics/aio/_operations/init.py Re-exports async operations mixin for updated import path.
sdk/monitor/azure-monitor-querymetrics/azure/monitor/querymetrics/aio/_configuration.py Regenerated docstring formatting and API version docs.
sdk/monitor/azure-monitor-querymetrics/azure/monitor/querymetrics/aio/_client.py Updates async operations mixin import path.
sdk/monitor/azure-monitor-querymetrics/azure/monitor/querymetrics/_utils/serialization.py Regenerated serialization utilities (typing modernizations, removes eval for basic types, etc.).
sdk/monitor/azure-monitor-querymetrics/azure/monitor/querymetrics/_utils/model_base.py Regenerated model base/deserialization helpers (array-encoded support, failsafe deserialize signature changes, etc.).
sdk/monitor/azure-monitor-querymetrics/_metadata.json Adds apiVersions map alongside apiVersion.

Signed-off-by: Paul Van Eck <paulvaneck@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Monitor Monitor, Monitor Ingestion, Monitor Query

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants