| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | // <auto-generated/> |
| | 5 | |
|
| | 6 | | #nullable disable |
| | 7 | |
|
| | 8 | | using System.Text.Json; |
| | 9 | | using Azure.Core; |
| | 10 | |
|
| | 11 | | namespace Azure.Iot.Hub.Service.Models |
| | 12 | | { |
| | 13 | | public partial class ConfigurationQueriesTestInput : IUtf8JsonSerializable |
| | 14 | | { |
| | 15 | | void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) |
| | 16 | | { |
| 0 | 17 | | writer.WriteStartObject(); |
| 0 | 18 | | if (Optional.IsDefined(TargetCondition)) |
| | 19 | | { |
| 0 | 20 | | writer.WritePropertyName("targetCondition"); |
| 0 | 21 | | writer.WriteStringValue(TargetCondition); |
| | 22 | | } |
| 0 | 23 | | if (Optional.IsCollectionDefined(CustomMetricQueries)) |
| | 24 | | { |
| 0 | 25 | | writer.WritePropertyName("customMetricQueries"); |
| 0 | 26 | | writer.WriteStartObject(); |
| 0 | 27 | | foreach (var item in CustomMetricQueries) |
| | 28 | | { |
| 0 | 29 | | writer.WritePropertyName(item.Key); |
| 0 | 30 | | writer.WriteStringValue(item.Value); |
| | 31 | | } |
| 0 | 32 | | writer.WriteEndObject(); |
| | 33 | | } |
| 0 | 34 | | writer.WriteEndObject(); |
| 0 | 35 | | } |
| | 36 | | } |
| | 37 | | } |