-
Notifications
You must be signed in to change notification settings - Fork 815
/
enums.go
390 lines (329 loc) · 12.6 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
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
package apimanagement
// 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.
// APIProtocolContract enumerates the values for api protocol contract.
type APIProtocolContract string
const (
// HTTP ...
HTTP APIProtocolContract = "Http"
// HTTPS ...
HTTPS APIProtocolContract = "Https"
)
// PossibleAPIProtocolContractValues returns an array of possible values for the APIProtocolContract const type.
func PossibleAPIProtocolContractValues() []APIProtocolContract {
return []APIProtocolContract{HTTP, HTTPS}
}
// APITypeContract enumerates the values for api type contract.
type APITypeContract string
const (
// APITypeContractHTTP ...
APITypeContractHTTP APITypeContract = "Http"
// APITypeContractSoap ...
APITypeContractSoap APITypeContract = "Soap"
)
// PossibleAPITypeContractValues returns an array of possible values for the APITypeContract const type.
func PossibleAPITypeContractValues() []APITypeContract {
return []APITypeContract{APITypeContractHTTP, APITypeContractSoap}
}
// AsyncOperationState enumerates the values for async operation state.
type AsyncOperationState string
const (
// Failed ...
Failed AsyncOperationState = "Failed"
// InProgress ...
InProgress AsyncOperationState = "InProgress"
// Started ...
Started AsyncOperationState = "Started"
// Succeeded ...
Succeeded AsyncOperationState = "Succeeded"
)
// PossibleAsyncOperationStateValues returns an array of possible values for the AsyncOperationState const type.
func PossibleAsyncOperationStateValues() []AsyncOperationState {
return []AsyncOperationState{Failed, InProgress, Started, Succeeded}
}
// BearerTokenSendingMethodsContract enumerates the values for bearer token sending methods contract.
type BearerTokenSendingMethodsContract string
const (
// AuthorizationHeader ...
AuthorizationHeader BearerTokenSendingMethodsContract = "authorizationHeader"
// Query ...
Query BearerTokenSendingMethodsContract = "query"
)
// PossibleBearerTokenSendingMethodsContractValues returns an array of possible values for the BearerTokenSendingMethodsContract const type.
func PossibleBearerTokenSendingMethodsContractValues() []BearerTokenSendingMethodsContract {
return []BearerTokenSendingMethodsContract{AuthorizationHeader, Query}
}
// ClientAuthenticationMethodContract enumerates the values for client authentication method contract.
type ClientAuthenticationMethodContract string
const (
// Basic ...
Basic ClientAuthenticationMethodContract = "Basic"
// Body ...
Body ClientAuthenticationMethodContract = "Body"
)
// PossibleClientAuthenticationMethodContractValues returns an array of possible values for the ClientAuthenticationMethodContract const type.
func PossibleClientAuthenticationMethodContractValues() []ClientAuthenticationMethodContract {
return []ClientAuthenticationMethodContract{Basic, Body}
}
// GrantTypesContract enumerates the values for grant types contract.
type GrantTypesContract string
const (
// AuthorizationCode ...
AuthorizationCode GrantTypesContract = "authorizationCode"
// ClientCredentials ...
ClientCredentials GrantTypesContract = "clientCredentials"
// Implicit ...
Implicit GrantTypesContract = "implicit"
// ResourceOwnerPassword ...
ResourceOwnerPassword GrantTypesContract = "resourceOwnerPassword"
)
// PossibleGrantTypesContractValues returns an array of possible values for the GrantTypesContract const type.
func PossibleGrantTypesContractValues() []GrantTypesContract {
return []GrantTypesContract{AuthorizationCode, ClientCredentials, Implicit, ResourceOwnerPassword}
}
// GroupTypeContract enumerates the values for group type contract.
type GroupTypeContract string
const (
// Custom ...
Custom GroupTypeContract = "Custom"
// External ...
External GroupTypeContract = "External"
// System ...
System GroupTypeContract = "System"
)
// PossibleGroupTypeContractValues returns an array of possible values for the GroupTypeContract const type.
func PossibleGroupTypeContractValues() []GroupTypeContract {
return []GroupTypeContract{Custom, External, System}
}
// HostnameType enumerates the values for hostname type.
type HostnameType string
const (
// Management ...
Management HostnameType = "Management"
// Portal ...
Portal HostnameType = "Portal"
// Proxy ...
Proxy HostnameType = "Proxy"
// Scm ...
Scm HostnameType = "Scm"
)
// PossibleHostnameTypeValues returns an array of possible values for the HostnameType const type.
func PossibleHostnameTypeValues() []HostnameType {
return []HostnameType{Management, Portal, Proxy, Scm}
}
// HTTPStatusCode enumerates the values for http status code.
type HTTPStatusCode string
const (
// Accepted ...
Accepted HTTPStatusCode = "Accepted"
// Conflict ...
Conflict HTTPStatusCode = "Conflict"
// Continue ...
Continue HTTPStatusCode = "Continue"
// Created ...
Created HTTPStatusCode = "Created"
// NotFound ...
NotFound HTTPStatusCode = "NotFound"
// OK ...
OK HTTPStatusCode = "OK"
)
// PossibleHTTPStatusCodeValues returns an array of possible values for the HTTPStatusCode const type.
func PossibleHTTPStatusCodeValues() []HTTPStatusCode {
return []HTTPStatusCode{Accepted, Conflict, Continue, Created, NotFound, OK}
}
// IdentityProviderNameType enumerates the values for identity provider name type.
type IdentityProviderNameType string
const (
// Aad ...
Aad IdentityProviderNameType = "aad"
// Facebook ...
Facebook IdentityProviderNameType = "facebook"
// Google ...
Google IdentityProviderNameType = "google"
// Microsoft ...
Microsoft IdentityProviderNameType = "microsoft"
// Twitter ...
Twitter IdentityProviderNameType = "twitter"
)
// PossibleIdentityProviderNameTypeValues returns an array of possible values for the IdentityProviderNameType const type.
func PossibleIdentityProviderNameTypeValues() []IdentityProviderNameType {
return []IdentityProviderNameType{Aad, Facebook, Google, Microsoft, Twitter}
}
// MethodContract enumerates the values for method contract.
type MethodContract string
const (
// DELETE ...
DELETE MethodContract = "DELETE"
// GET ...
GET MethodContract = "GET"
// HEAD ...
HEAD MethodContract = "HEAD"
// OPTIONS ...
OPTIONS MethodContract = "OPTIONS"
// PATCH ...
PATCH MethodContract = "PATCH"
// POST ...
POST MethodContract = "POST"
// PUT ...
PUT MethodContract = "PUT"
// TRACE ...
TRACE MethodContract = "TRACE"
)
// PossibleMethodContractValues returns an array of possible values for the MethodContract const type.
func PossibleMethodContractValues() []MethodContract {
return []MethodContract{DELETE, GET, HEAD, OPTIONS, PATCH, POST, PUT, TRACE}
}
// NameAvailabilityReason enumerates the values for name availability reason.
type NameAvailabilityReason string
const (
// AlreadyExists ...
AlreadyExists NameAvailabilityReason = "AlreadyExists"
// Invalid ...
Invalid NameAvailabilityReason = "Invalid"
// Valid ...
Valid NameAvailabilityReason = "Valid"
)
// PossibleNameAvailabilityReasonValues returns an array of possible values for the NameAvailabilityReason const type.
func PossibleNameAvailabilityReasonValues() []NameAvailabilityReason {
return []NameAvailabilityReason{AlreadyExists, Invalid, Valid}
}
// OperationStatus enumerates the values for operation status.
type OperationStatus string
const (
// OperationStatusFailed ...
OperationStatusFailed OperationStatus = "Failed"
// OperationStatusInProgress ...
OperationStatusInProgress OperationStatus = "InProgress"
// OperationStatusSucceeded ...
OperationStatusSucceeded OperationStatus = "Succeeded"
)
// PossibleOperationStatusValues returns an array of possible values for the OperationStatus const type.
func PossibleOperationStatusValues() []OperationStatus {
return []OperationStatus{OperationStatusFailed, OperationStatusInProgress, OperationStatusSucceeded}
}
// PolicyScopeContract enumerates the values for policy scope contract.
type PolicyScopeContract string
const (
// All ...
All PolicyScopeContract = "All"
// API ...
API PolicyScopeContract = "Api"
// Operation ...
Operation PolicyScopeContract = "Operation"
// Product ...
Product PolicyScopeContract = "Product"
// Tenant ...
Tenant PolicyScopeContract = "Tenant"
)
// PossiblePolicyScopeContractValues returns an array of possible values for the PolicyScopeContract const type.
func PossiblePolicyScopeContractValues() []PolicyScopeContract {
return []PolicyScopeContract{All, API, Operation, Product, Tenant}
}
// ProductStateContract enumerates the values for product state contract.
type ProductStateContract string
const (
// NotPublished ...
NotPublished ProductStateContract = "NotPublished"
// Published ...
Published ProductStateContract = "Published"
)
// PossibleProductStateContractValues returns an array of possible values for the ProductStateContract const type.
func PossibleProductStateContractValues() []ProductStateContract {
return []ProductStateContract{NotPublished, Published}
}
// ReportsAggregation enumerates the values for reports aggregation.
type ReportsAggregation string
const (
// ByAPI ...
ByAPI ReportsAggregation = "byApi"
// ByGeo ...
ByGeo ReportsAggregation = "byGeo"
// ByOperation ...
ByOperation ReportsAggregation = "byOperation"
// ByProduct ...
ByProduct ReportsAggregation = "byProduct"
// BySubscription ...
BySubscription ReportsAggregation = "bySubscription"
// ByTime ...
ByTime ReportsAggregation = "byTime"
// ByUser ...
ByUser ReportsAggregation = "byUser"
)
// PossibleReportsAggregationValues returns an array of possible values for the ReportsAggregation const type.
func PossibleReportsAggregationValues() []ReportsAggregation {
return []ReportsAggregation{ByAPI, ByGeo, ByOperation, ByProduct, BySubscription, ByTime, ByUser}
}
// SkuType enumerates the values for sku type.
type SkuType string
const (
// Developer ...
Developer SkuType = "Developer"
// Premium ...
Premium SkuType = "Premium"
// Standard ...
Standard SkuType = "Standard"
)
// PossibleSkuTypeValues returns an array of possible values for the SkuType const type.
func PossibleSkuTypeValues() []SkuType {
return []SkuType{Developer, Premium, Standard}
}
// SubscriptionStateContract enumerates the values for subscription state contract.
type SubscriptionStateContract string
const (
// Active ...
Active SubscriptionStateContract = "Active"
// Cancelled ...
Cancelled SubscriptionStateContract = "Cancelled"
// Expired ...
Expired SubscriptionStateContract = "Expired"
// Rejected ...
Rejected SubscriptionStateContract = "Rejected"
// Submitted ...
Submitted SubscriptionStateContract = "Submitted"
// Suspended ...
Suspended SubscriptionStateContract = "Suspended"
)
// PossibleSubscriptionStateContractValues returns an array of possible values for the SubscriptionStateContract const type.
func PossibleSubscriptionStateContractValues() []SubscriptionStateContract {
return []SubscriptionStateContract{Active, Cancelled, Expired, Rejected, Submitted, Suspended}
}
// UserStateContract enumerates the values for user state contract.
type UserStateContract string
const (
// UserStateContractActive ...
UserStateContractActive UserStateContract = "Active"
// UserStateContractBlocked ...
UserStateContractBlocked UserStateContract = "Blocked"
)
// PossibleUserStateContractValues returns an array of possible values for the UserStateContract const type.
func PossibleUserStateContractValues() []UserStateContract {
return []UserStateContract{UserStateContractActive, UserStateContractBlocked}
}
// VirtualNetworkType enumerates the values for virtual network type.
type VirtualNetworkType string
const (
// VirtualNetworkTypeExternal ...
VirtualNetworkTypeExternal VirtualNetworkType = "External"
// VirtualNetworkTypeInternal ...
VirtualNetworkTypeInternal VirtualNetworkType = "Internal"
// VirtualNetworkTypeNone ...
VirtualNetworkTypeNone VirtualNetworkType = "None"
)
// PossibleVirtualNetworkTypeValues returns an array of possible values for the VirtualNetworkType const type.
func PossibleVirtualNetworkTypeValues() []VirtualNetworkType {
return []VirtualNetworkType{VirtualNetworkTypeExternal, VirtualNetworkTypeInternal, VirtualNetworkTypeNone}
}