/
WhatIfOperationResult.cs
41 lines (35 loc) · 1.57 KB
/
WhatIfOperationResult.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System.Collections.Generic;
using Azure;
using Azure.Core;
namespace Azure.ResourceManager.Resources.Models
{
/// <summary> Result of the What-If operation. Contains a list of predicted changes and a URL link to get to the next set of results. </summary>
public partial class WhatIfOperationResult
{
/// <summary> Initializes a new instance of WhatIfOperationResult. </summary>
internal WhatIfOperationResult()
{
Changes = new ChangeTrackingList<WhatIfChange>();
}
/// <summary> Initializes a new instance of WhatIfOperationResult. </summary>
/// <param name="status"> Status of the What-If operation. </param>
/// <param name="error"> Error when What-If operation fails. </param>
/// <param name="changes"> List of resource changes predicted by What-If operation. </param>
internal WhatIfOperationResult(string status, ResponseError error, IReadOnlyList<WhatIfChange> changes)
{
Status = status;
Error = error;
Changes = changes;
}
/// <summary> Status of the What-If operation. </summary>
public string Status { get; }
/// <summary> Error when What-If operation fails. </summary>
public ResponseError Error { get; }
/// <summary> List of resource changes predicted by What-If operation. </summary>
public IReadOnlyList<WhatIfChange> Changes { get; }
}
}