-
Notifications
You must be signed in to change notification settings - Fork 4.6k
/
OperationStatusResult.cs
79 lines (72 loc) · 3.27 KB
/
OperationStatusResult.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using System.Collections.Generic;
using Azure.Core;
namespace Azure.ResourceManager.Models
{
/// <summary> The current status of an async operation. </summary>
[TypeReferenceType]
public partial class OperationStatusResult
{
/// <summary> Initializes a new instance of <see cref="OperationStatusResult"/>. </summary>
/// <param name="status"> Operation status. </param>
[InitializationConstructor]
public OperationStatusResult(string status)
{
Status = status;
Operations = new ChangeTrackingList<OperationStatusResult>();
}
/// <summary> Initializes a new instance of <see cref="OperationStatusResult"/>. </summary>
/// <param name="id"> Fully qualified ID for the async operation. </param>
/// <param name="name"> Name of the async operation. </param>
/// <param name="status"> Operation status. </param>
/// <param name="percentComplete"> Percent of the operation that is complete. </param>
/// <param name="startOn"> The start time of the operation. </param>
/// <param name="endOn"> The end time of the operation. </param>
/// <param name="operations"> The operations list. </param>
/// <param name="error"> If present, details of the operation error. </param>
[SerializationConstructor]
protected OperationStatusResult(ResourceIdentifier id, string name, string status, float? percentComplete, DateTimeOffset? startOn, DateTimeOffset? endOn, IReadOnlyList<OperationStatusResult> operations, ResponseError error)
{
Id = id;
Name = name;
Status = status;
PercentComplete = percentComplete;
StartOn = startOn;
EndOn = endOn;
Operations = operations;
Error = error;
}
/// <summary> Initializes a new instance of <see cref="OperationStatusResult"/> for deserialization. </summary>
protected OperationStatusResult()
{
}
/// <summary> Fully qualified ID for the async operation. </summary>
[WirePath("id")]
public ResourceIdentifier Id { get; }
/// <summary> Name of the async operation. </summary>
[WirePath("name")]
public string Name { get; }
/// <summary> Operation status. </summary>
[WirePath("status")]
public string Status { get; }
/// <summary> Percent of the operation that is complete. </summary>
[WirePath("percentComplete")]
public float? PercentComplete { get; }
/// <summary> The start time of the operation. </summary>
[WirePath("startTime")]
public DateTimeOffset? StartOn { get; }
/// <summary> The end time of the operation. </summary>
[WirePath("endTime")]
public DateTimeOffset? EndOn { get; }
/// <summary> The operations list. </summary>
[WirePath("operations")]
public IReadOnlyList<OperationStatusResult> Operations { get; }
/// <summary> If present, details of the operation error. </summary>
[WirePath("error")]
public ResponseError Error { get; }
}
}