| | 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> Information about a single resource change predicted by What-If operation. </summary> |
| | 14 | | public partial class WhatIfChange |
| | 15 | | { |
| | 16 | | /// <summary> Initializes a new instance of WhatIfChange. </summary> |
| | 17 | | /// <param name="resourceId"> Resource ID. </param> |
| | 18 | | /// <param name="changeType"> Type of change that will be made to the resource when the deployment is executed. |
| 0 | 19 | | internal WhatIfChange(string resourceId, ChangeType changeType) |
| | 20 | | { |
| 0 | 21 | | if (resourceId == null) |
| | 22 | | { |
| 0 | 23 | | throw new ArgumentNullException(nameof(resourceId)); |
| | 24 | | } |
| | 25 | |
|
| 0 | 26 | | ResourceId = resourceId; |
| 0 | 27 | | ChangeType = changeType; |
| 0 | 28 | | } |
| | 29 | |
|
| | 30 | | /// <summary> Initializes a new instance of WhatIfChange. </summary> |
| | 31 | | /// <param name="resourceId"> Resource ID. </param> |
| | 32 | | /// <param name="changeType"> Type of change that will be made to the resource when the deployment is executed. |
| | 33 | | /// <param name="before"> The snapshot of the resource before the deployment is executed. </param> |
| | 34 | | /// <param name="after"> The predicted snapshot of the resource after the deployment is executed. </param> |
| | 35 | | /// <param name="delta"> The predicted changes to resource properties. </param> |
| 64 | 36 | | internal WhatIfChange(string resourceId, ChangeType changeType, object before, object after, IReadOnlyList<WhatI |
| | 37 | | { |
| 64 | 38 | | ResourceId = resourceId; |
| 64 | 39 | | ChangeType = changeType; |
| 64 | 40 | | Before = before; |
| 64 | 41 | | After = after; |
| 64 | 42 | | Delta = delta; |
| 64 | 43 | | } |
| | 44 | |
|
| | 45 | | /// <summary> Resource ID. </summary> |
| 52 | 46 | | public string ResourceId { get; } |
| | 47 | | /// <summary> Type of change that will be made to the resource when the deployment is executed. </summary> |
| 70 | 48 | | public ChangeType ChangeType { get; } |
| | 49 | | /// <summary> The snapshot of the resource before the deployment is executed. </summary> |
| 24 | 50 | | public object Before { get; } |
| | 51 | | /// <summary> The predicted snapshot of the resource after the deployment is executed. </summary> |
| 28 | 52 | | public object After { get; } |
| | 53 | | /// <summary> The predicted changes to resource properties. </summary> |
| 60 | 54 | | public IReadOnlyList<WhatIfPropertyChange> Delta { get; } |
| | 55 | | } |
| | 56 | | } |