-
Notifications
You must be signed in to change notification settings - Fork 803
/
enums.go
300 lines (251 loc) · 11.8 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
package storagesync
// 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.
// ChangeDetectionMode enumerates the values for change detection mode.
type ChangeDetectionMode string
const (
// Default ...
Default ChangeDetectionMode = "Default"
// Recursive ...
Recursive ChangeDetectionMode = "Recursive"
)
// PossibleChangeDetectionModeValues returns an array of possible values for the ChangeDetectionMode const type.
func PossibleChangeDetectionModeValues() []ChangeDetectionMode {
return []ChangeDetectionMode{Default, Recursive}
}
// FeatureStatus enumerates the values for feature status.
type FeatureStatus string
const (
// Off ...
Off FeatureStatus = "off"
// On ...
On FeatureStatus = "on"
)
// PossibleFeatureStatusValues returns an array of possible values for the FeatureStatus const type.
func PossibleFeatureStatusValues() []FeatureStatus {
return []FeatureStatus{Off, On}
}
// IncomingTrafficPolicy enumerates the values for incoming traffic policy.
type IncomingTrafficPolicy string
const (
// AllowAllTraffic ...
AllowAllTraffic IncomingTrafficPolicy = "AllowAllTraffic"
// AllowVirtualNetworksOnly ...
AllowVirtualNetworksOnly IncomingTrafficPolicy = "AllowVirtualNetworksOnly"
)
// PossibleIncomingTrafficPolicyValues returns an array of possible values for the IncomingTrafficPolicy const type.
func PossibleIncomingTrafficPolicyValues() []IncomingTrafficPolicy {
return []IncomingTrafficPolicy{AllowAllTraffic, AllowVirtualNetworksOnly}
}
// InitialDownloadPolicy enumerates the values for initial download policy.
type InitialDownloadPolicy string
const (
// AvoidTieredFiles ...
AvoidTieredFiles InitialDownloadPolicy = "AvoidTieredFiles"
// NamespaceOnly ...
NamespaceOnly InitialDownloadPolicy = "NamespaceOnly"
// NamespaceThenModifiedFiles ...
NamespaceThenModifiedFiles InitialDownloadPolicy = "NamespaceThenModifiedFiles"
)
// PossibleInitialDownloadPolicyValues returns an array of possible values for the InitialDownloadPolicy const type.
func PossibleInitialDownloadPolicyValues() []InitialDownloadPolicy {
return []InitialDownloadPolicy{AvoidTieredFiles, NamespaceOnly, NamespaceThenModifiedFiles}
}
// LocalCacheMode enumerates the values for local cache mode.
type LocalCacheMode string
const (
// DownloadNewAndModifiedFiles ...
DownloadNewAndModifiedFiles LocalCacheMode = "DownloadNewAndModifiedFiles"
// UpdateLocallyCachedFiles ...
UpdateLocallyCachedFiles LocalCacheMode = "UpdateLocallyCachedFiles"
)
// PossibleLocalCacheModeValues returns an array of possible values for the LocalCacheMode const type.
func PossibleLocalCacheModeValues() []LocalCacheMode {
return []LocalCacheMode{DownloadNewAndModifiedFiles, UpdateLocallyCachedFiles}
}
// NameAvailabilityReason enumerates the values for name availability reason.
type NameAvailabilityReason string
const (
// AlreadyExists ...
AlreadyExists NameAvailabilityReason = "AlreadyExists"
// Invalid ...
Invalid NameAvailabilityReason = "Invalid"
)
// PossibleNameAvailabilityReasonValues returns an array of possible values for the NameAvailabilityReason const type.
func PossibleNameAvailabilityReasonValues() []NameAvailabilityReason {
return []NameAvailabilityReason{AlreadyExists, Invalid}
}
// OperationDirection enumerates the values for operation direction.
type OperationDirection string
const (
// Cancel ...
Cancel OperationDirection = "cancel"
// Do ...
Do OperationDirection = "do"
// Undo ...
Undo OperationDirection = "undo"
)
// PossibleOperationDirectionValues returns an array of possible values for the OperationDirection const type.
func PossibleOperationDirectionValues() []OperationDirection {
return []OperationDirection{Cancel, Do, Undo}
}
// PrivateEndpointConnectionProvisioningState enumerates the values for private endpoint connection
// provisioning state.
type PrivateEndpointConnectionProvisioningState string
const (
// Creating ...
Creating PrivateEndpointConnectionProvisioningState = "Creating"
// Deleting ...
Deleting PrivateEndpointConnectionProvisioningState = "Deleting"
// Failed ...
Failed PrivateEndpointConnectionProvisioningState = "Failed"
// Succeeded ...
Succeeded PrivateEndpointConnectionProvisioningState = "Succeeded"
)
// PossiblePrivateEndpointConnectionProvisioningStateValues returns an array of possible values for the PrivateEndpointConnectionProvisioningState const type.
func PossiblePrivateEndpointConnectionProvisioningStateValues() []PrivateEndpointConnectionProvisioningState {
return []PrivateEndpointConnectionProvisioningState{Creating, Deleting, Failed, Succeeded}
}
// PrivateEndpointServiceConnectionStatus enumerates the values for private endpoint service connection status.
type PrivateEndpointServiceConnectionStatus string
const (
// Approved ...
Approved PrivateEndpointServiceConnectionStatus = "Approved"
// Pending ...
Pending PrivateEndpointServiceConnectionStatus = "Pending"
// Rejected ...
Rejected PrivateEndpointServiceConnectionStatus = "Rejected"
)
// PossiblePrivateEndpointServiceConnectionStatusValues returns an array of possible values for the PrivateEndpointServiceConnectionStatus const type.
func PossiblePrivateEndpointServiceConnectionStatusValues() []PrivateEndpointServiceConnectionStatus {
return []PrivateEndpointServiceConnectionStatus{Approved, Pending, Rejected}
}
// ProgressType enumerates the values for progress type.
type ProgressType string
const (
// Download ...
Download ProgressType = "download"
// Initialize ...
Initialize ProgressType = "initialize"
// None ...
None ProgressType = "none"
// Recall ...
Recall ProgressType = "recall"
// Upload ...
Upload ProgressType = "upload"
)
// PossibleProgressTypeValues returns an array of possible values for the ProgressType const type.
func PossibleProgressTypeValues() []ProgressType {
return []ProgressType{Download, Initialize, None, Recall, Upload}
}
// Reason enumerates the values for reason.
type Reason string
const (
// Deleted ...
Deleted Reason = "Deleted"
// Registered ...
Registered Reason = "Registered"
// Suspended ...
Suspended Reason = "Suspended"
// Unregistered ...
Unregistered Reason = "Unregistered"
// Warned ...
Warned Reason = "Warned"
)
// PossibleReasonValues returns an array of possible values for the Reason const type.
func PossibleReasonValues() []Reason {
return []Reason{Deleted, Registered, Suspended, Unregistered, Warned}
}
// ServerEndpointCloudTieringHealthState enumerates the values for server endpoint cloud tiering health state.
type ServerEndpointCloudTieringHealthState string
const (
// ServerEndpointCloudTieringHealthStateError ...
ServerEndpointCloudTieringHealthStateError ServerEndpointCloudTieringHealthState = "Error"
// ServerEndpointCloudTieringHealthStateHealthy ...
ServerEndpointCloudTieringHealthStateHealthy ServerEndpointCloudTieringHealthState = "Healthy"
)
// PossibleServerEndpointCloudTieringHealthStateValues returns an array of possible values for the ServerEndpointCloudTieringHealthState const type.
func PossibleServerEndpointCloudTieringHealthStateValues() []ServerEndpointCloudTieringHealthState {
return []ServerEndpointCloudTieringHealthState{ServerEndpointCloudTieringHealthStateError, ServerEndpointCloudTieringHealthStateHealthy}
}
// ServerEndpointOfflineDataTransferState enumerates the values for server endpoint offline data transfer
// state.
type ServerEndpointOfflineDataTransferState string
const (
// Complete ...
Complete ServerEndpointOfflineDataTransferState = "Complete"
// InProgress ...
InProgress ServerEndpointOfflineDataTransferState = "InProgress"
// NotRunning ...
NotRunning ServerEndpointOfflineDataTransferState = "NotRunning"
// Stopping ...
Stopping ServerEndpointOfflineDataTransferState = "Stopping"
)
// PossibleServerEndpointOfflineDataTransferStateValues returns an array of possible values for the ServerEndpointOfflineDataTransferState const type.
func PossibleServerEndpointOfflineDataTransferStateValues() []ServerEndpointOfflineDataTransferState {
return []ServerEndpointOfflineDataTransferState{Complete, InProgress, NotRunning, Stopping}
}
// ServerEndpointSyncActivityState enumerates the values for server endpoint sync activity state.
type ServerEndpointSyncActivityState string
const (
// ServerEndpointSyncActivityStateDownload ...
ServerEndpointSyncActivityStateDownload ServerEndpointSyncActivityState = "Download"
// ServerEndpointSyncActivityStateUpload ...
ServerEndpointSyncActivityStateUpload ServerEndpointSyncActivityState = "Upload"
// ServerEndpointSyncActivityStateUploadAndDownload ...
ServerEndpointSyncActivityStateUploadAndDownload ServerEndpointSyncActivityState = "UploadAndDownload"
)
// PossibleServerEndpointSyncActivityStateValues returns an array of possible values for the ServerEndpointSyncActivityState const type.
func PossibleServerEndpointSyncActivityStateValues() []ServerEndpointSyncActivityState {
return []ServerEndpointSyncActivityState{ServerEndpointSyncActivityStateDownload, ServerEndpointSyncActivityStateUpload, ServerEndpointSyncActivityStateUploadAndDownload}
}
// ServerEndpointSyncHealthState enumerates the values for server endpoint sync health state.
type ServerEndpointSyncHealthState string
const (
// ServerEndpointSyncHealthStateError ...
ServerEndpointSyncHealthStateError ServerEndpointSyncHealthState = "Error"
// ServerEndpointSyncHealthStateHealthy ...
ServerEndpointSyncHealthStateHealthy ServerEndpointSyncHealthState = "Healthy"
// ServerEndpointSyncHealthStateNoActivity ...
ServerEndpointSyncHealthStateNoActivity ServerEndpointSyncHealthState = "NoActivity"
// ServerEndpointSyncHealthStateSyncBlockedForChangeDetectionPostRestore ...
ServerEndpointSyncHealthStateSyncBlockedForChangeDetectionPostRestore ServerEndpointSyncHealthState = "SyncBlockedForChangeDetectionPostRestore"
// ServerEndpointSyncHealthStateSyncBlockedForRestore ...
ServerEndpointSyncHealthStateSyncBlockedForRestore ServerEndpointSyncHealthState = "SyncBlockedForRestore"
)
// PossibleServerEndpointSyncHealthStateValues returns an array of possible values for the ServerEndpointSyncHealthState const type.
func PossibleServerEndpointSyncHealthStateValues() []ServerEndpointSyncHealthState {
return []ServerEndpointSyncHealthState{ServerEndpointSyncHealthStateError, ServerEndpointSyncHealthStateHealthy, ServerEndpointSyncHealthStateNoActivity, ServerEndpointSyncHealthStateSyncBlockedForChangeDetectionPostRestore, ServerEndpointSyncHealthStateSyncBlockedForRestore}
}
// WorkflowStatus enumerates the values for workflow status.
type WorkflowStatus string
const (
// WorkflowStatusAborted ...
WorkflowStatusAborted WorkflowStatus = "aborted"
// WorkflowStatusActive ...
WorkflowStatusActive WorkflowStatus = "active"
// WorkflowStatusExpired ...
WorkflowStatusExpired WorkflowStatus = "expired"
// WorkflowStatusFailed ...
WorkflowStatusFailed WorkflowStatus = "failed"
// WorkflowStatusSucceeded ...
WorkflowStatusSucceeded WorkflowStatus = "succeeded"
)
// PossibleWorkflowStatusValues returns an array of possible values for the WorkflowStatus const type.
func PossibleWorkflowStatusValues() []WorkflowStatus {
return []WorkflowStatus{WorkflowStatusAborted, WorkflowStatusActive, WorkflowStatusExpired, WorkflowStatusFailed, WorkflowStatusSucceeded}
}