Skip to content

Commit 36824c3

Browse files
feat: add mrw support for generated models (Azure#51561)
1 parent 06a0b24 commit 36824c3

File tree

111 files changed

+6521
-271
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

111 files changed

+6521
-271
lines changed

sdk/monitor/Azure.Monitor.Query/CHANGELOG.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
11
# Release History
22

3-
## 1.8.0-beta.1 (Unreleased)
4-
5-
### Features Added
6-
7-
### Breaking Changes
8-
9-
### Bugs Fixed
3+
## 1.7.1 (2025-08-12)
104

115
### Other Changes
6+
- Updated internal serialization paths to use an AOT-friendly approach. The package now fully supports AOT and is trimmable.
127

138
## 1.7.0 (2025-06-26)
149

sdk/monitor/Azure.Monitor.Query/api/Azure.Monitor.Query.net8.0.cs

Lines changed: 87 additions & 15 deletions
Large diffs are not rendered by default.

sdk/monitor/Azure.Monitor.Query/api/Azure.Monitor.Query.netstandard2.0.cs

Lines changed: 87 additions & 15 deletions
Large diffs are not rendered by default.

sdk/monitor/Azure.Monitor.Query/assets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"AssetsRepo": "Azure/azure-sdk-assets",
33
"AssetsRepoPrefixPath": "net",
44
"TagPrefix": "net/monitor/Azure.Monitor.Query",
5-
"Tag": "net/monitor/Azure.Monitor.Query_8e43bc53d8"
5+
"Tag": "net/monitor/Azure.Monitor.Query_6b24680d04"
66
}

sdk/monitor/Azure.Monitor.Query/src/Azure.Monitor.Query.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<PropertyGroup>
33
<Description>A library for querying Azure Monitor's Logs and Metrics data sources.</Description>
44
<AssemblyTitle>Azure Monitor Query client library</AssemblyTitle>
5-
<Version>1.8.0-beta.1</Version>
5+
<Version>1.7.1</Version>
66
<!--The ApiCompatVersion is managed automatically and should not generally be modified manually.-->
77
<ApiCompatVersion>1.7.0</ApiCompatVersion>
88
<PackageTags>Azure Monitor Query</PackageTags>
@@ -22,6 +22,7 @@
2222

2323
<ItemGroup>
2424
<PackageReference Include="Azure.Core" />
25+
<PackageReference Include="System.ClientModel" />
2526
</ItemGroup>
2627

2728
<!-- Shared source from Azure.Core -->
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
4+
using System.ClientModel.Primitives;
5+
6+
namespace Azure.Monitor.Query
7+
{
8+
/// <summary>
9+
/// Context class which will be filled in by the System.ClientModel.SourceGeneration.
10+
/// For more information see 'https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/System.ClientModel/src/docs/ModelReaderWriterContext.md'
11+
/// </summary>
12+
13+
[ModelReaderWriterBuildable(typeof(Azure.ResponseError))]
14+
public partial class AzureMonitorQueryContext : ModelReaderWriterContext
15+
{
16+
}
17+
}

sdk/monitor/Azure.Monitor.Query/src/Generated/Internal/ModelSerializationExtensions.cs

Lines changed: 8 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/monitor/Azure.Monitor.Query/src/Generated/Internal/RequestContentHelper.cs

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/monitor/Azure.Monitor.Query/src/Generated/MetricsBatchRestClient.cs

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/monitor/Azure.Monitor.Query/src/Generated/Models/AzureMonitorQueryContext.cs

Lines changed: 77 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)