-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
DataBoxStageName.cs
108 lines (99 loc) · 7.39 KB
/
DataBoxStageName.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using System.ComponentModel;
namespace Azure.ResourceManager.DataBox.Models
{
/// <summary> Name of the stage which is in progress. </summary>
public readonly partial struct DataBoxStageName : IEquatable<DataBoxStageName>
{
private readonly string _value;
/// <summary> Initializes a new instance of <see cref="DataBoxStageName"/>. </summary>
/// <exception cref="ArgumentNullException"> <paramref name="value"/> is null. </exception>
public DataBoxStageName(string value)
{
_value = value ?? throw new ArgumentNullException(nameof(value));
}
private const string DeviceOrderedValue = "DeviceOrdered";
private const string DevicePreparedValue = "DevicePrepared";
private const string DispatchedValue = "Dispatched";
private const string DeliveredValue = "Delivered";
private const string PickedUpValue = "PickedUp";
private const string AtAzureDataCenterValue = "AtAzureDC";
private const string DataCopyValue = "DataCopy";
private const string CompletedValue = "Completed";
private const string CompletedWithErrorsValue = "CompletedWithErrors";
private const string CancelledValue = "Cancelled";
private const string FailedIssueReportedAtCustomerValue = "Failed_IssueReportedAtCustomer";
private const string FailedIssueDetectedAtAzureDataCenterValue = "Failed_IssueDetectedAtAzureDC";
private const string AbortedValue = "Aborted";
private const string CompletedWithWarningsValue = "CompletedWithWarnings";
private const string ReadyToDispatchFromAzureDataCenterValue = "ReadyToDispatchFromAzureDC";
private const string ReadyToReceiveAtAzureDataCenterValue = "ReadyToReceiveAtAzureDC";
private const string CreatedValue = "Created";
private const string ShippedToAzureDataCenterValue = "ShippedToAzureDC";
private const string AwaitingShipmentDetailsValue = "AwaitingShipmentDetails";
private const string PreparingToShipFromAzureDataCenterValue = "PreparingToShipFromAzureDC";
private const string ShippedToCustomerValue = "ShippedToCustomer";
/// <summary> An order has been created. </summary>
public static DataBoxStageName DeviceOrdered { get; } = new DataBoxStageName(DeviceOrderedValue);
/// <summary> A device has been prepared for the order. </summary>
public static DataBoxStageName DevicePrepared { get; } = new DataBoxStageName(DevicePreparedValue);
/// <summary> Device has been dispatched to the user of the order. </summary>
public static DataBoxStageName Dispatched { get; } = new DataBoxStageName(DispatchedValue);
/// <summary> Device has been delivered to the user of the order. </summary>
public static DataBoxStageName Delivered { get; } = new DataBoxStageName(DeliveredValue);
/// <summary> Device has been picked up from user and in transit to Azure datacenter. </summary>
public static DataBoxStageName PickedUp { get; } = new DataBoxStageName(PickedUpValue);
/// <summary> Device has been received at Azure datacenter from the user. </summary>
public static DataBoxStageName AtAzureDataCenter { get; } = new DataBoxStageName(AtAzureDataCenterValue);
/// <summary> Data copy from the device at Azure datacenter. </summary>
public static DataBoxStageName DataCopy { get; } = new DataBoxStageName(DataCopyValue);
/// <summary> Order has completed. </summary>
public static DataBoxStageName Completed { get; } = new DataBoxStageName(CompletedValue);
/// <summary> Order has completed with errors. </summary>
public static DataBoxStageName CompletedWithErrors { get; } = new DataBoxStageName(CompletedWithErrorsValue);
/// <summary> Order has been cancelled. </summary>
public static DataBoxStageName Cancelled { get; } = new DataBoxStageName(CancelledValue);
/// <summary> Order has failed due to issue reported by user. </summary>
public static DataBoxStageName FailedIssueReportedAtCustomer { get; } = new DataBoxStageName(FailedIssueReportedAtCustomerValue);
/// <summary> Order has failed due to issue detected at Azure datacenter. </summary>
public static DataBoxStageName FailedIssueDetectedAtAzureDataCenter { get; } = new DataBoxStageName(FailedIssueDetectedAtAzureDataCenterValue);
/// <summary> Order has been aborted. </summary>
public static DataBoxStageName Aborted { get; } = new DataBoxStageName(AbortedValue);
/// <summary> Order has completed with warnings. </summary>
public static DataBoxStageName CompletedWithWarnings { get; } = new DataBoxStageName(CompletedWithWarningsValue);
/// <summary> Device is ready to be handed to customer from Azure DC. </summary>
public static DataBoxStageName ReadyToDispatchFromAzureDataCenter { get; } = new DataBoxStageName(ReadyToDispatchFromAzureDataCenterValue);
/// <summary> Device can be dropped off at Azure DC. </summary>
public static DataBoxStageName ReadyToReceiveAtAzureDataCenter { get; } = new DataBoxStageName(ReadyToReceiveAtAzureDataCenterValue);
/// <summary> Job created by the customer. </summary>
public static DataBoxStageName Created { get; } = new DataBoxStageName(CreatedValue);
/// <summary> User shipped the device to AzureDC. </summary>
public static DataBoxStageName ShippedToAzureDataCenter { get; } = new DataBoxStageName(ShippedToAzureDataCenterValue);
/// <summary> Awaiting shipment details of device from customer. </summary>
public static DataBoxStageName AwaitingShipmentDetails { get; } = new DataBoxStageName(AwaitingShipmentDetailsValue);
/// <summary> Preparing the device to ship to customer. </summary>
public static DataBoxStageName PreparingToShipFromAzureDataCenter { get; } = new DataBoxStageName(PreparingToShipFromAzureDataCenterValue);
/// <summary> Shipped the device to customer. </summary>
public static DataBoxStageName ShippedToCustomer { get; } = new DataBoxStageName(ShippedToCustomerValue);
/// <summary> Determines if two <see cref="DataBoxStageName"/> values are the same. </summary>
public static bool operator ==(DataBoxStageName left, DataBoxStageName right) => left.Equals(right);
/// <summary> Determines if two <see cref="DataBoxStageName"/> values are not the same. </summary>
public static bool operator !=(DataBoxStageName left, DataBoxStageName right) => !left.Equals(right);
/// <summary> Converts a string to a <see cref="DataBoxStageName"/>. </summary>
public static implicit operator DataBoxStageName(string value) => new DataBoxStageName(value);
/// <inheritdoc />
[EditorBrowsable(EditorBrowsableState.Never)]
public override bool Equals(object obj) => obj is DataBoxStageName other && Equals(other);
/// <inheritdoc />
public bool Equals(DataBoxStageName other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase);
/// <inheritdoc />
[EditorBrowsable(EditorBrowsableState.Never)]
public override int GetHashCode() => _value?.GetHashCode() ?? 0;
/// <inheritdoc />
public override string ToString() => _value;
}
}