| | 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; |
| | 9 | | using System.Collections.Generic; |
| | 10 | |
|
| | 11 | | namespace Azure.ResourceManager.Resources.Models |
| | 12 | | { |
| | 13 | | /// <summary> The predicted change to the resource property. </summary> |
| | 14 | | public partial class WhatIfPropertyChange |
| | 15 | | { |
| | 16 | | /// <summary> Initializes a new instance of WhatIfPropertyChange. </summary> |
| | 17 | | /// <param name="path"> The path of the property. </param> |
| | 18 | | /// <param name="propertyChangeType"> The type of property change. </param> |
| 0 | 19 | | internal WhatIfPropertyChange(string path, PropertyChangeType propertyChangeType) |
| | 20 | | { |
| 0 | 21 | | if (path == null) |
| | 22 | | { |
| 0 | 23 | | throw new ArgumentNullException(nameof(path)); |
| | 24 | | } |
| | 25 | |
|
| 0 | 26 | | Path = path; |
| 0 | 27 | | PropertyChangeType = propertyChangeType; |
| 0 | 28 | | } |
| | 29 | |
|
| | 30 | | /// <summary> Initializes a new instance of WhatIfPropertyChange. </summary> |
| | 31 | | /// <param name="path"> The path of the property. </param> |
| | 32 | | /// <param name="propertyChangeType"> The type of property change. </param> |
| | 33 | | /// <param name="before"> The value of the property before the deployment is executed. </param> |
| | 34 | | /// <param name="after"> The value of the property after the deployment is executed. </param> |
| | 35 | | /// <param name="children"> Nested property changes. </param> |
| 20 | 36 | | internal WhatIfPropertyChange(string path, PropertyChangeType propertyChangeType, object before, object after, I |
| | 37 | | { |
| 20 | 38 | | Path = path; |
| 20 | 39 | | PropertyChangeType = propertyChangeType; |
| 20 | 40 | | Before = before; |
| 20 | 41 | | After = after; |
| 20 | 42 | | Children = children; |
| 20 | 43 | | } |
| | 44 | |
|
| | 45 | | /// <summary> The path of the property. </summary> |
| 12 | 46 | | public string Path { get; } |
| | 47 | | /// <summary> The type of property change. </summary> |
| 8 | 48 | | public PropertyChangeType PropertyChangeType { get; } |
| | 49 | | /// <summary> The value of the property before the deployment is executed. </summary> |
| 8 | 50 | | public object Before { get; } |
| | 51 | | /// <summary> The value of the property after the deployment is executed. </summary> |
| 12 | 52 | | public object After { get; } |
| | 53 | | /// <summary> Nested property changes. </summary> |
| 0 | 54 | | public IReadOnlyList<WhatIfPropertyChange> Children { get; } |
| | 55 | | } |
| | 56 | | } |