| | | 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.ResourceManager.Resources.Models |
| | | 12 | | { |
| | | 13 | | public partial class DeploymentWhatIfProperties : IUtf8JsonSerializable |
| | | 14 | | { |
| | | 15 | | void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) |
| | | 16 | | { |
| | 152 | 17 | | writer.WriteStartObject(); |
| | 152 | 18 | | if (WhatIfSettings != null) |
| | | 19 | | { |
| | 72 | 20 | | writer.WritePropertyName("whatIfSettings"); |
| | 72 | 21 | | writer.WriteObjectValue(WhatIfSettings); |
| | | 22 | | } |
| | 152 | 23 | | writer.WritePropertyName("template"); |
| | 152 | 24 | | TemplateJson.WriteTo(writer); |
| | 152 | 25 | | if (TemplateLink != null) |
| | | 26 | | { |
| | 16 | 27 | | writer.WritePropertyName("templateLink"); |
| | 16 | 28 | | writer.WriteObjectValue(TemplateLink); |
| | | 29 | | } |
| | 152 | 30 | | writer.WritePropertyName("parameters"); |
| | 152 | 31 | | ParametersJson.WriteTo(writer); |
| | 152 | 32 | | if (ParametersLink != null) |
| | | 33 | | { |
| | 16 | 34 | | writer.WritePropertyName("parametersLink"); |
| | 16 | 35 | | writer.WriteObjectValue(ParametersLink); |
| | | 36 | | } |
| | 152 | 37 | | writer.WritePropertyName("mode"); |
| | 152 | 38 | | writer.WriteStringValue(Mode.ToSerialString()); |
| | 152 | 39 | | if (DebugSetting != null) |
| | | 40 | | { |
| | 0 | 41 | | writer.WritePropertyName("debugSetting"); |
| | 0 | 42 | | writer.WriteObjectValue(DebugSetting); |
| | | 43 | | } |
| | 152 | 44 | | if (OnErrorDeployment != null) |
| | | 45 | | { |
| | 0 | 46 | | writer.WritePropertyName("onErrorDeployment"); |
| | 0 | 47 | | writer.WriteObjectValue(OnErrorDeployment); |
| | | 48 | | } |
| | 152 | 49 | | writer.WriteEndObject(); |
| | 152 | 50 | | } |
| | | 51 | | } |
| | | 52 | | } |