/
enums.go
313 lines (270 loc) · 13.4 KB
/
enums.go
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
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
package databox
// Copyright (c) Microsoft and contributors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
// AccessProtocol enumerates the values for access protocol.
type AccessProtocol string
const (
// NFS Network File System protocol(NFS).
NFS AccessProtocol = "NFS"
// SMB Server Message Block protocol(SMB).
SMB AccessProtocol = "SMB"
)
// PossibleAccessProtocolValues returns an array of possible values for the AccessProtocol const type.
func PossibleAccessProtocolValues() []AccessProtocol {
return []AccessProtocol{NFS, SMB}
}
// AddressType enumerates the values for address type.
type AddressType string
const (
// Commercial Commercial Address.
Commercial AddressType = "Commercial"
// None Address type not known.
None AddressType = "None"
// Residential Residential Address.
Residential AddressType = "Residential"
)
// PossibleAddressTypeValues returns an array of possible values for the AddressType const type.
func PossibleAddressTypeValues() []AddressType {
return []AddressType{Commercial, None, Residential}
}
// AddressValidationStatus enumerates the values for address validation status.
type AddressValidationStatus string
const (
// Ambiguous Address provided is ambiguous, please choose one of the alternate addresses returned.
Ambiguous AddressValidationStatus = "Ambiguous"
// Invalid Address provided is invalid or not supported.
Invalid AddressValidationStatus = "Invalid"
// Valid Address provided is valid.
Valid AddressValidationStatus = "Valid"
)
// PossibleAddressValidationStatusValues returns an array of possible values for the AddressValidationStatus const type.
func PossibleAddressValidationStatusValues() []AddressValidationStatus {
return []AddressValidationStatus{Ambiguous, Invalid, Valid}
}
// CopyLogDetailsType enumerates the values for copy log details type.
type CopyLogDetailsType string
const (
// CopyLogDetailsTypeCopyLogDetails ...
CopyLogDetailsTypeCopyLogDetails CopyLogDetailsType = "CopyLogDetails"
// CopyLogDetailsTypeDataBox ...
CopyLogDetailsTypeDataBox CopyLogDetailsType = "DataBox"
// CopyLogDetailsTypeDataBoxDisk ...
CopyLogDetailsTypeDataBoxDisk CopyLogDetailsType = "DataBoxDisk"
// CopyLogDetailsTypeDataBoxHeavy ...
CopyLogDetailsTypeDataBoxHeavy CopyLogDetailsType = "DataBoxHeavy"
)
// PossibleCopyLogDetailsTypeValues returns an array of possible values for the CopyLogDetailsType const type.
func PossibleCopyLogDetailsTypeValues() []CopyLogDetailsType {
return []CopyLogDetailsType{CopyLogDetailsTypeCopyLogDetails, CopyLogDetailsTypeDataBox, CopyLogDetailsTypeDataBoxDisk, CopyLogDetailsTypeDataBoxHeavy}
}
// CopyStatus enumerates the values for copy status.
type CopyStatus string
const (
// Completed Data copy completed.
Completed CopyStatus = "Completed"
// CompletedWithErrors Data copy completed with errors.
CompletedWithErrors CopyStatus = "CompletedWithErrors"
// Failed Data copy failed. No data was copied.
Failed CopyStatus = "Failed"
// InProgress Data copy is in progress.
InProgress CopyStatus = "InProgress"
// NotReturned No copy triggered as device was not returned.
NotReturned CopyStatus = "NotReturned"
// NotStarted Data copy hasn't started yet.
NotStarted CopyStatus = "NotStarted"
)
// PossibleCopyStatusValues returns an array of possible values for the CopyStatus const type.
func PossibleCopyStatusValues() []CopyStatus {
return []CopyStatus{Completed, CompletedWithErrors, Failed, InProgress, NotReturned, NotStarted}
}
// DataDestinationType enumerates the values for data destination type.
type DataDestinationType string
const (
// DataDestinationTypeDestinationAccountDetails ...
DataDestinationTypeDestinationAccountDetails DataDestinationType = "DestinationAccountDetails"
// DataDestinationTypeManagedDisk ...
DataDestinationTypeManagedDisk DataDestinationType = "ManagedDisk"
// DataDestinationTypeStorageAccount ...
DataDestinationTypeStorageAccount DataDestinationType = "StorageAccount"
)
// PossibleDataDestinationTypeValues returns an array of possible values for the DataDestinationType const type.
func PossibleDataDestinationTypeValues() []DataDestinationType {
return []DataDestinationType{DataDestinationTypeDestinationAccountDetails, DataDestinationTypeManagedDisk, DataDestinationTypeStorageAccount}
}
// JobDetailsTypeEnum enumerates the values for job details type enum.
type JobDetailsTypeEnum string
const (
// JobDetailsTypeDataBox ...
JobDetailsTypeDataBox JobDetailsTypeEnum = "DataBox"
// JobDetailsTypeDataBoxDisk ...
JobDetailsTypeDataBoxDisk JobDetailsTypeEnum = "DataBoxDisk"
// JobDetailsTypeDataBoxHeavy ...
JobDetailsTypeDataBoxHeavy JobDetailsTypeEnum = "DataBoxHeavy"
// JobDetailsTypeJobDetails ...
JobDetailsTypeJobDetails JobDetailsTypeEnum = "JobDetails"
)
// PossibleJobDetailsTypeEnumValues returns an array of possible values for the JobDetailsTypeEnum const type.
func PossibleJobDetailsTypeEnumValues() []JobDetailsTypeEnum {
return []JobDetailsTypeEnum{JobDetailsTypeDataBox, JobDetailsTypeDataBoxDisk, JobDetailsTypeDataBoxHeavy, JobDetailsTypeJobDetails}
}
// JobSecretsTypeEnum enumerates the values for job secrets type enum.
type JobSecretsTypeEnum string
const (
// JobSecretsTypeDataBox ...
JobSecretsTypeDataBox JobSecretsTypeEnum = "DataBox"
// JobSecretsTypeDataBoxDisk ...
JobSecretsTypeDataBoxDisk JobSecretsTypeEnum = "DataBoxDisk"
// JobSecretsTypeDataBoxHeavy ...
JobSecretsTypeDataBoxHeavy JobSecretsTypeEnum = "DataBoxHeavy"
// JobSecretsTypeJobSecrets ...
JobSecretsTypeJobSecrets JobSecretsTypeEnum = "JobSecrets"
)
// PossibleJobSecretsTypeEnumValues returns an array of possible values for the JobSecretsTypeEnum const type.
func PossibleJobSecretsTypeEnumValues() []JobSecretsTypeEnum {
return []JobSecretsTypeEnum{JobSecretsTypeDataBox, JobSecretsTypeDataBoxDisk, JobSecretsTypeDataBoxHeavy, JobSecretsTypeJobSecrets}
}
// NotificationStageName enumerates the values for notification stage name.
type NotificationStageName string
const (
// AtAzureDC Notification at device received at azure datacenter stage.
AtAzureDC NotificationStageName = "AtAzureDC"
// DataCopy Notification at data copy started stage.
DataCopy NotificationStageName = "DataCopy"
// Delivered Notification at device delivered stage.
Delivered NotificationStageName = "Delivered"
// DevicePrepared Notification at device prepared stage.
DevicePrepared NotificationStageName = "DevicePrepared"
// Dispatched Notification at device dispatched stage.
Dispatched NotificationStageName = "Dispatched"
// PickedUp Notification at device picked up from user stage.
PickedUp NotificationStageName = "PickedUp"
)
// PossibleNotificationStageNameValues returns an array of possible values for the NotificationStageName const type.
func PossibleNotificationStageNameValues() []NotificationStageName {
return []NotificationStageName{AtAzureDC, DataCopy, Delivered, DevicePrepared, Dispatched, PickedUp}
}
// ShareDestinationFormatType enumerates the values for share destination format type.
type ShareDestinationFormatType string
const (
// AzureFile Azure storage file format.
AzureFile ShareDestinationFormatType = "AzureFile"
// BlockBlob Azure storage block blob format.
BlockBlob ShareDestinationFormatType = "BlockBlob"
// HCS StorSimple data format.
HCS ShareDestinationFormatType = "HCS"
// ManagedDisk Azure Compute Disk.
ManagedDisk ShareDestinationFormatType = "ManagedDisk"
// PageBlob Azure storage page blob format.
PageBlob ShareDestinationFormatType = "PageBlob"
// UnknownType Unknown format.
UnknownType ShareDestinationFormatType = "UnknownType"
)
// PossibleShareDestinationFormatTypeValues returns an array of possible values for the ShareDestinationFormatType const type.
func PossibleShareDestinationFormatTypeValues() []ShareDestinationFormatType {
return []ShareDestinationFormatType{AzureFile, BlockBlob, HCS, ManagedDisk, PageBlob, UnknownType}
}
// SkuDisabledReason enumerates the values for sku disabled reason.
type SkuDisabledReason string
const (
// SkuDisabledReasonCountry SKU is not available in the requested country.
SkuDisabledReasonCountry SkuDisabledReason = "Country"
// SkuDisabledReasonFeature Required features are not enabled for the SKU.
SkuDisabledReasonFeature SkuDisabledReason = "Feature"
// SkuDisabledReasonNone SKU is not disabled.
SkuDisabledReasonNone SkuDisabledReason = "None"
// SkuDisabledReasonNoSubscriptionInfo Subscription has not registered to Microsoft.DataBox and Service
// does not have the subscription notification.
SkuDisabledReasonNoSubscriptionInfo SkuDisabledReason = "NoSubscriptionInfo"
// SkuDisabledReasonOfferType Subscription does not have required offer types for the SKU.
SkuDisabledReasonOfferType SkuDisabledReason = "OfferType"
// SkuDisabledReasonRegion SKU is not available to push data to the requested Azure region.
SkuDisabledReasonRegion SkuDisabledReason = "Region"
)
// PossibleSkuDisabledReasonValues returns an array of possible values for the SkuDisabledReason const type.
func PossibleSkuDisabledReasonValues() []SkuDisabledReason {
return []SkuDisabledReason{SkuDisabledReasonCountry, SkuDisabledReasonFeature, SkuDisabledReasonNone, SkuDisabledReasonNoSubscriptionInfo, SkuDisabledReasonOfferType, SkuDisabledReasonRegion}
}
// SkuName enumerates the values for sku name.
type SkuName string
const (
// DataBox DataBox.
DataBox SkuName = "DataBox"
// DataBoxDisk DataBoxDisk.
DataBoxDisk SkuName = "DataBoxDisk"
// DataBoxHeavy DataBoxHeavy.
DataBoxHeavy SkuName = "DataBoxHeavy"
)
// PossibleSkuNameValues returns an array of possible values for the SkuName const type.
func PossibleSkuNameValues() []SkuName {
return []SkuName{DataBox, DataBoxDisk, DataBoxHeavy}
}
// StageName enumerates the values for stage name.
type StageName string
const (
// StageNameAborted Order has been aborted.
StageNameAborted StageName = "Aborted"
// StageNameAtAzureDC Device has been received at azure datacenter from the user.
StageNameAtAzureDC StageName = "AtAzureDC"
// StageNameCancelled Order has been cancelled.
StageNameCancelled StageName = "Cancelled"
// StageNameCompleted Order has completed.
StageNameCompleted StageName = "Completed"
// StageNameCompletedWithErrors Order has completed with errors.
StageNameCompletedWithErrors StageName = "CompletedWithErrors"
// StageNameDataCopy Data copy from the device at azure datacenter.
StageNameDataCopy StageName = "DataCopy"
// StageNameDelivered Device has been delivered to the user of the order.
StageNameDelivered StageName = "Delivered"
// StageNameDeviceOrdered An order has been created.
StageNameDeviceOrdered StageName = "DeviceOrdered"
// StageNameDevicePrepared A device has been prepared for the order.
StageNameDevicePrepared StageName = "DevicePrepared"
// StageNameDispatched Device has been dispatched to the user of the order.
StageNameDispatched StageName = "Dispatched"
// StageNameFailedIssueDetectedAtAzureDC Order has failed due to issue detected at azure datacenter.
StageNameFailedIssueDetectedAtAzureDC StageName = "Failed_IssueDetectedAtAzureDC"
// StageNameFailedIssueReportedAtCustomer Order has failed due to issue reported by user.
StageNameFailedIssueReportedAtCustomer StageName = "Failed_IssueReportedAtCustomer"
// StageNamePickedUp Device has been picked up from user and in transit to azure datacenter.
StageNamePickedUp StageName = "PickedUp"
)
// PossibleStageNameValues returns an array of possible values for the StageName const type.
func PossibleStageNameValues() []StageName {
return []StageName{StageNameAborted, StageNameAtAzureDC, StageNameCancelled, StageNameCompleted, StageNameCompletedWithErrors, StageNameDataCopy, StageNameDelivered, StageNameDeviceOrdered, StageNameDevicePrepared, StageNameDispatched, StageNameFailedIssueDetectedAtAzureDC, StageNameFailedIssueReportedAtCustomer, StageNamePickedUp}
}
// StageStatus enumerates the values for stage status.
type StageStatus string
const (
// StageStatusCancelled Stage has been cancelled.
StageStatusCancelled StageStatus = "Cancelled"
// StageStatusCancelling Stage is cancelling.
StageStatusCancelling StageStatus = "Cancelling"
// StageStatusFailed Stage has failed.
StageStatusFailed StageStatus = "Failed"
// StageStatusInProgress Stage is in progress.
StageStatusInProgress StageStatus = "InProgress"
// StageStatusNone No status available yet.
StageStatusNone StageStatus = "None"
// StageStatusSucceeded Stage has succeeded.
StageStatusSucceeded StageStatus = "Succeeded"
// StageStatusSucceededWithErrors Stage has succeeded with errors.
StageStatusSucceededWithErrors StageStatus = "SucceededWithErrors"
)
// PossibleStageStatusValues returns an array of possible values for the StageStatus const type.
func PossibleStageStatusValues() []StageStatus {
return []StageStatus{StageStatusCancelled, StageStatusCancelling, StageStatusFailed, StageStatusInProgress, StageStatusNone, StageStatusSucceeded, StageStatusSucceededWithErrors}
}