-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
SphereImageType.cs
192 lines (183 loc) · 9.14 KB
/
SphereImageType.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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using System.ComponentModel;
namespace Azure.ResourceManager.Sphere.Models
{
/// <summary>
/// Image type values.
/// Serialized Name: ImageType
/// </summary>
public readonly partial struct SphereImageType : IEquatable<SphereImageType>
{
private readonly string _value;
/// <summary> Initializes a new instance of <see cref="SphereImageType"/>. </summary>
/// <exception cref="ArgumentNullException"> <paramref name="value"/> is null. </exception>
public SphereImageType(string value)
{
_value = value ?? throw new ArgumentNullException(nameof(value));
}
private const string InvalidImageTypeValue = "InvalidImageType";
private const string OneBlValue = "OneBl";
private const string PlutonRuntimeValue = "PlutonRuntime";
private const string WifiFirmwareValue = "WifiFirmware";
private const string SecurityMonitorValue = "SecurityMonitor";
private const string NormalWorldLoaderValue = "NormalWorldLoader";
private const string NormalWorldDtbValue = "NormalWorldDtb";
private const string NormalWorldKernelValue = "NormalWorldKernel";
private const string RootFsValue = "RootFs";
private const string ServicesValue = "Services";
private const string ApplicationsValue = "Applications";
private const string FwConfigValue = "FwConfig";
private const string BootManifestValue = "BootManifest";
private const string NwfsValue = "Nwfs";
private const string TrustedKeystoreValue = "TrustedKeystore";
private const string PolicyValue = "Policy";
private const string CustomerBoardConfigValue = "CustomerBoardConfig";
private const string UpdateCertStoreValue = "UpdateCertStore";
private const string BaseSystemUpdateManifestValue = "BaseSystemUpdateManifest";
private const string FirmwareUpdateManifestValue = "FirmwareUpdateManifest";
private const string CustomerUpdateManifestValue = "CustomerUpdateManifest";
private const string RecoveryManifestValue = "RecoveryManifest";
private const string ManifestSetValue = "ManifestSet";
private const string OtherValue = "Other";
/// <summary>
/// Invalid image.
/// Serialized Name: ImageType.InvalidImageType
/// </summary>
public static SphereImageType InvalidImageType { get; } = new SphereImageType(InvalidImageTypeValue);
/// <summary>
/// One Bl image type
/// Serialized Name: ImageType.OneBl
/// </summary>
public static SphereImageType OneBl { get; } = new SphereImageType(OneBlValue);
/// <summary>
/// Pluton image type
/// Serialized Name: ImageType.PlutonRuntime
/// </summary>
public static SphereImageType PlutonRuntime { get; } = new SphereImageType(PlutonRuntimeValue);
/// <summary>
/// Wifi firmware image type
/// Serialized Name: ImageType.WifiFirmware
/// </summary>
public static SphereImageType WifiFirmware { get; } = new SphereImageType(WifiFirmwareValue);
/// <summary>
/// Security monitor image type
/// Serialized Name: ImageType.SecurityMonitor
/// </summary>
public static SphereImageType SecurityMonitor { get; } = new SphereImageType(SecurityMonitorValue);
/// <summary>
/// Normal world loader image type
/// Serialized Name: ImageType.NormalWorldLoader
/// </summary>
public static SphereImageType NormalWorldLoader { get; } = new SphereImageType(NormalWorldLoaderValue);
/// <summary>
/// Normal world dtb image type
/// Serialized Name: ImageType.NormalWorldDtb
/// </summary>
public static SphereImageType NormalWorldDtb { get; } = new SphereImageType(NormalWorldDtbValue);
/// <summary>
/// Normal world kernel image type
/// Serialized Name: ImageType.NormalWorldKernel
/// </summary>
public static SphereImageType NormalWorldKernel { get; } = new SphereImageType(NormalWorldKernelValue);
/// <summary>
/// Root FS image type
/// Serialized Name: ImageType.RootFs
/// </summary>
public static SphereImageType RootFs { get; } = new SphereImageType(RootFsValue);
/// <summary>
/// Services image type
/// Serialized Name: ImageType.Services
/// </summary>
public static SphereImageType Services { get; } = new SphereImageType(ServicesValue);
/// <summary>
/// Applications image type
/// Serialized Name: ImageType.Applications
/// </summary>
public static SphereImageType Applications { get; } = new SphereImageType(ApplicationsValue);
/// <summary>
/// FW config image type
/// Serialized Name: ImageType.FwConfig
/// </summary>
public static SphereImageType FwConfig { get; } = new SphereImageType(FwConfigValue);
/// <summary>
/// Boot manifest image type
/// Serialized Name: ImageType.BootManifest
/// </summary>
public static SphereImageType BootManifest { get; } = new SphereImageType(BootManifestValue);
/// <summary>
/// Nwfs image type
/// Serialized Name: ImageType.Nwfs
/// </summary>
public static SphereImageType Nwfs { get; } = new SphereImageType(NwfsValue);
/// <summary>
/// Trusted key store image type
/// Serialized Name: ImageType.TrustedKeystore
/// </summary>
public static SphereImageType TrustedKeystore { get; } = new SphereImageType(TrustedKeystoreValue);
/// <summary>
/// Policy image type
/// Serialized Name: ImageType.Policy
/// </summary>
public static SphereImageType Policy { get; } = new SphereImageType(PolicyValue);
/// <summary>
/// Customer board config image type
/// Serialized Name: ImageType.CustomerBoardConfig
/// </summary>
public static SphereImageType CustomerBoardConfig { get; } = new SphereImageType(CustomerBoardConfigValue);
/// <summary>
/// Update certificate store image type
/// Serialized Name: ImageType.UpdateCertStore
/// </summary>
public static SphereImageType UpdateCertStore { get; } = new SphereImageType(UpdateCertStoreValue);
/// <summary>
/// Base system update manifest image type
/// Serialized Name: ImageType.BaseSystemUpdateManifest
/// </summary>
public static SphereImageType BaseSystemUpdateManifest { get; } = new SphereImageType(BaseSystemUpdateManifestValue);
/// <summary>
/// Firmware update manifest image type
/// Serialized Name: ImageType.FirmwareUpdateManifest
/// </summary>
public static SphereImageType FirmwareUpdateManifest { get; } = new SphereImageType(FirmwareUpdateManifestValue);
/// <summary>
/// Customer update manifest image type
/// Serialized Name: ImageType.CustomerUpdateManifest
/// </summary>
public static SphereImageType CustomerUpdateManifest { get; } = new SphereImageType(CustomerUpdateManifestValue);
/// <summary>
/// Recovery manifest image type
/// Serialized Name: ImageType.RecoveryManifest
/// </summary>
public static SphereImageType RecoveryManifest { get; } = new SphereImageType(RecoveryManifestValue);
/// <summary>
/// manifest set image type
/// Serialized Name: ImageType.ManifestSet
/// </summary>
public static SphereImageType ManifestSet { get; } = new SphereImageType(ManifestSetValue);
/// <summary>
/// Other image type
/// Serialized Name: ImageType.Other
/// </summary>
public static SphereImageType Other { get; } = new SphereImageType(OtherValue);
/// <summary> Determines if two <see cref="SphereImageType"/> values are the same. </summary>
public static bool operator ==(SphereImageType left, SphereImageType right) => left.Equals(right);
/// <summary> Determines if two <see cref="SphereImageType"/> values are not the same. </summary>
public static bool operator !=(SphereImageType left, SphereImageType right) => !left.Equals(right);
/// <summary> Converts a string to a <see cref="SphereImageType"/>. </summary>
public static implicit operator SphereImageType(string value) => new SphereImageType(value);
/// <inheritdoc />
[EditorBrowsable(EditorBrowsableState.Never)]
public override bool Equals(object obj) => obj is SphereImageType other && Equals(other);
/// <inheritdoc />
public bool Equals(SphereImageType 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;
}
}