forked from Azure/azure-sdk-for-go
/
enums.go
460 lines (384 loc) · 16.3 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
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
package frontdoor
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
// Action enumerates the values for action.
type Action string
const (
// Allow ...
Allow Action = "Allow"
// Block ...
Block Action = "Block"
// Log ...
Log Action = "Log"
)
// PossibleActionValues returns an array of possible values for the Action const type.
func PossibleActionValues() []Action {
return []Action{Allow, Block, Log}
}
// Availability enumerates the values for availability.
type Availability string
const (
// Available ...
Available Availability = "Available"
// Unavailable ...
Unavailable Availability = "Unavailable"
)
// PossibleAvailabilityValues returns an array of possible values for the Availability const type.
func PossibleAvailabilityValues() []Availability {
return []Availability{Available, Unavailable}
}
// CertificateSource enumerates the values for certificate source.
type CertificateSource string
const (
// CertificateSourceAzureKeyVault ...
CertificateSourceAzureKeyVault CertificateSource = "AzureKeyVault"
// CertificateSourceFrontDoor ...
CertificateSourceFrontDoor CertificateSource = "FrontDoor"
)
// PossibleCertificateSourceValues returns an array of possible values for the CertificateSource const type.
func PossibleCertificateSourceValues() []CertificateSource {
return []CertificateSource{CertificateSourceAzureKeyVault, CertificateSourceFrontDoor}
}
// CertificateType enumerates the values for certificate type.
type CertificateType string
const (
// Dedicated ...
Dedicated CertificateType = "Dedicated"
)
// PossibleCertificateTypeValues returns an array of possible values for the CertificateType const type.
func PossibleCertificateTypeValues() []CertificateType {
return []CertificateType{Dedicated}
}
// CustomHTTPSProvisioningState enumerates the values for custom https provisioning state.
type CustomHTTPSProvisioningState string
const (
// Disabled ...
Disabled CustomHTTPSProvisioningState = "Disabled"
// Disabling ...
Disabling CustomHTTPSProvisioningState = "Disabling"
// Enabled ...
Enabled CustomHTTPSProvisioningState = "Enabled"
// Enabling ...
Enabling CustomHTTPSProvisioningState = "Enabling"
// Failed ...
Failed CustomHTTPSProvisioningState = "Failed"
)
// PossibleCustomHTTPSProvisioningStateValues returns an array of possible values for the CustomHTTPSProvisioningState const type.
func PossibleCustomHTTPSProvisioningStateValues() []CustomHTTPSProvisioningState {
return []CustomHTTPSProvisioningState{Disabled, Disabling, Enabled, Enabling, Failed}
}
// CustomHTTPSProvisioningSubstate enumerates the values for custom https provisioning substate.
type CustomHTTPSProvisioningSubstate string
const (
// CertificateDeleted ...
CertificateDeleted CustomHTTPSProvisioningSubstate = "CertificateDeleted"
// CertificateDeployed ...
CertificateDeployed CustomHTTPSProvisioningSubstate = "CertificateDeployed"
// DeletingCertificate ...
DeletingCertificate CustomHTTPSProvisioningSubstate = "DeletingCertificate"
// DeployingCertificate ...
DeployingCertificate CustomHTTPSProvisioningSubstate = "DeployingCertificate"
// DomainControlValidationRequestApproved ...
DomainControlValidationRequestApproved CustomHTTPSProvisioningSubstate = "DomainControlValidationRequestApproved"
// DomainControlValidationRequestRejected ...
DomainControlValidationRequestRejected CustomHTTPSProvisioningSubstate = "DomainControlValidationRequestRejected"
// DomainControlValidationRequestTimedOut ...
DomainControlValidationRequestTimedOut CustomHTTPSProvisioningSubstate = "DomainControlValidationRequestTimedOut"
// IssuingCertificate ...
IssuingCertificate CustomHTTPSProvisioningSubstate = "IssuingCertificate"
// PendingDomainControlValidationREquestApproval ...
PendingDomainControlValidationREquestApproval CustomHTTPSProvisioningSubstate = "PendingDomainControlValidationREquestApproval"
// SubmittingDomainControlValidationRequest ...
SubmittingDomainControlValidationRequest CustomHTTPSProvisioningSubstate = "SubmittingDomainControlValidationRequest"
)
// PossibleCustomHTTPSProvisioningSubstateValues returns an array of possible values for the CustomHTTPSProvisioningSubstate const type.
func PossibleCustomHTTPSProvisioningSubstateValues() []CustomHTTPSProvisioningSubstate {
return []CustomHTTPSProvisioningSubstate{CertificateDeleted, CertificateDeployed, DeletingCertificate, DeployingCertificate, DomainControlValidationRequestApproved, DomainControlValidationRequestRejected, DomainControlValidationRequestTimedOut, IssuingCertificate, PendingDomainControlValidationREquestApproval, SubmittingDomainControlValidationRequest}
}
// DynamicCompressionEnabled enumerates the values for dynamic compression enabled.
type DynamicCompressionEnabled string
const (
// DynamicCompressionEnabledDisabled ...
DynamicCompressionEnabledDisabled DynamicCompressionEnabled = "Disabled"
// DynamicCompressionEnabledEnabled ...
DynamicCompressionEnabledEnabled DynamicCompressionEnabled = "Enabled"
)
// PossibleDynamicCompressionEnabledValues returns an array of possible values for the DynamicCompressionEnabled const type.
func PossibleDynamicCompressionEnabledValues() []DynamicCompressionEnabled {
return []DynamicCompressionEnabled{DynamicCompressionEnabledDisabled, DynamicCompressionEnabledEnabled}
}
// EnabledState enumerates the values for enabled state.
type EnabledState string
const (
// EnabledStateDisabled ...
EnabledStateDisabled EnabledState = "Disabled"
// EnabledStateEnabled ...
EnabledStateEnabled EnabledState = "Enabled"
)
// PossibleEnabledStateValues returns an array of possible values for the EnabledState const type.
func PossibleEnabledStateValues() []EnabledState {
return []EnabledState{EnabledStateDisabled, EnabledStateEnabled}
}
// EnabledStateEnum enumerates the values for enabled state enum.
type EnabledStateEnum string
const (
// EnabledStateEnumDisabled ...
EnabledStateEnumDisabled EnabledStateEnum = "Disabled"
// EnabledStateEnumEnabled ...
EnabledStateEnumEnabled EnabledStateEnum = "Enabled"
)
// PossibleEnabledStateEnumValues returns an array of possible values for the EnabledStateEnum const type.
func PossibleEnabledStateEnumValues() []EnabledStateEnum {
return []EnabledStateEnum{EnabledStateEnumDisabled, EnabledStateEnumEnabled}
}
// ForwardingProtocol enumerates the values for forwarding protocol.
type ForwardingProtocol string
const (
// HTTPOnly ...
HTTPOnly ForwardingProtocol = "HttpOnly"
// HTTPSOnly ...
HTTPSOnly ForwardingProtocol = "HttpsOnly"
// MatchRequest ...
MatchRequest ForwardingProtocol = "MatchRequest"
)
// PossibleForwardingProtocolValues returns an array of possible values for the ForwardingProtocol const type.
func PossibleForwardingProtocolValues() []ForwardingProtocol {
return []ForwardingProtocol{HTTPOnly, HTTPSOnly, MatchRequest}
}
// MatchCondition enumerates the values for match condition.
type MatchCondition string
const (
// PostArgs ...
PostArgs MatchCondition = "PostArgs"
// QueryString ...
QueryString MatchCondition = "QueryString"
// RemoteAddr ...
RemoteAddr MatchCondition = "RemoteAddr"
// RequestBody ...
RequestBody MatchCondition = "RequestBody"
// RequestHeader ...
RequestHeader MatchCondition = "RequestHeader"
// RequestMethod ...
RequestMethod MatchCondition = "RequestMethod"
// RequestURI ...
RequestURI MatchCondition = "RequestUri"
)
// PossibleMatchConditionValues returns an array of possible values for the MatchCondition const type.
func PossibleMatchConditionValues() []MatchCondition {
return []MatchCondition{PostArgs, QueryString, RemoteAddr, RequestBody, RequestHeader, RequestMethod, RequestURI}
}
// Mode enumerates the values for mode.
type Mode string
const (
// Detection ...
Detection Mode = "Detection"
// Prevention ...
Prevention Mode = "Prevention"
)
// PossibleModeValues returns an array of possible values for the Mode const type.
func PossibleModeValues() []Mode {
return []Mode{Detection, Prevention}
}
// NetworkOperationStatus enumerates the values for network operation status.
type NetworkOperationStatus string
const (
// NetworkOperationStatusFailed ...
NetworkOperationStatusFailed NetworkOperationStatus = "Failed"
// NetworkOperationStatusInProgress ...
NetworkOperationStatusInProgress NetworkOperationStatus = "InProgress"
// NetworkOperationStatusSucceeded ...
NetworkOperationStatusSucceeded NetworkOperationStatus = "Succeeded"
)
// PossibleNetworkOperationStatusValues returns an array of possible values for the NetworkOperationStatus const type.
func PossibleNetworkOperationStatusValues() []NetworkOperationStatus {
return []NetworkOperationStatus{NetworkOperationStatusFailed, NetworkOperationStatusInProgress, NetworkOperationStatusSucceeded}
}
// Operator enumerates the values for operator.
type Operator string
const (
// Any ...
Any Operator = "Any"
// BeginsWith ...
BeginsWith Operator = "BeginsWith"
// Contains ...
Contains Operator = "Contains"
// EndsWith ...
EndsWith Operator = "EndsWith"
// Equal ...
Equal Operator = "Equal"
// GeoMatch ...
GeoMatch Operator = "GeoMatch"
// GreaterThan ...
GreaterThan Operator = "GreaterThan"
// GreaterThanOrEqual ...
GreaterThanOrEqual Operator = "GreaterThanOrEqual"
// IPMatch ...
IPMatch Operator = "IPMatch"
// LessThan ...
LessThan Operator = "LessThan"
// LessThanOrEqual ...
LessThanOrEqual Operator = "LessThanOrEqual"
)
// PossibleOperatorValues returns an array of possible values for the Operator const type.
func PossibleOperatorValues() []Operator {
return []Operator{Any, BeginsWith, Contains, EndsWith, Equal, GeoMatch, GreaterThan, GreaterThanOrEqual, IPMatch, LessThan, LessThanOrEqual}
}
// Protocol enumerates the values for protocol.
type Protocol string
const (
// HTTP ...
HTTP Protocol = "Http"
// HTTPS ...
HTTPS Protocol = "Https"
)
// PossibleProtocolValues returns an array of possible values for the Protocol const type.
func PossibleProtocolValues() []Protocol {
return []Protocol{HTTP, HTTPS}
}
// Query enumerates the values for query.
type Query string
const (
// StripAll ...
StripAll Query = "StripAll"
// StripNone ...
StripNone Query = "StripNone"
)
// PossibleQueryValues returns an array of possible values for the Query const type.
func PossibleQueryValues() []Query {
return []Query{StripAll, StripNone}
}
// ResourceState enumerates the values for resource state.
type ResourceState string
const (
// ResourceStateCreating ...
ResourceStateCreating ResourceState = "Creating"
// ResourceStateDeleting ...
ResourceStateDeleting ResourceState = "Deleting"
// ResourceStateDisabled ...
ResourceStateDisabled ResourceState = "Disabled"
// ResourceStateDisabling ...
ResourceStateDisabling ResourceState = "Disabling"
// ResourceStateEnabled ...
ResourceStateEnabled ResourceState = "Enabled"
// ResourceStateEnabling ...
ResourceStateEnabling ResourceState = "Enabling"
)
// PossibleResourceStateValues returns an array of possible values for the ResourceState const type.
func PossibleResourceStateValues() []ResourceState {
return []ResourceState{ResourceStateCreating, ResourceStateDeleting, ResourceStateDisabled, ResourceStateDisabling, ResourceStateEnabled, ResourceStateEnabling}
}
// ResourceType enumerates the values for resource type.
type ResourceType string
const (
// MicrosoftNetworkfrontDoors ...
MicrosoftNetworkfrontDoors ResourceType = "Microsoft.Network/frontDoors"
// MicrosoftNetworkfrontDoorsfrontendEndpoints ...
MicrosoftNetworkfrontDoorsfrontendEndpoints ResourceType = "Microsoft.Network/frontDoors/frontendEndpoints"
)
// PossibleResourceTypeValues returns an array of possible values for the ResourceType const type.
func PossibleResourceTypeValues() []ResourceType {
return []ResourceType{MicrosoftNetworkfrontDoors, MicrosoftNetworkfrontDoorsfrontendEndpoints}
}
// RuleGroupOverride enumerates the values for rule group override.
type RuleGroupOverride string
const (
// SQLInjection ...
SQLInjection RuleGroupOverride = "SqlInjection"
// XSS ...
XSS RuleGroupOverride = "XSS"
)
// PossibleRuleGroupOverrideValues returns an array of possible values for the RuleGroupOverride const type.
func PossibleRuleGroupOverrideValues() []RuleGroupOverride {
return []RuleGroupOverride{SQLInjection, XSS}
}
// RuleSetType enumerates the values for rule set type.
type RuleSetType string
const (
// RuleSetTypeAzureManagedRuleSet ...
RuleSetTypeAzureManagedRuleSet RuleSetType = "AzureManagedRuleSet"
// RuleSetTypeUnknown ...
RuleSetTypeUnknown RuleSetType = "Unknown"
)
// PossibleRuleSetTypeValues returns an array of possible values for the RuleSetType const type.
func PossibleRuleSetTypeValues() []RuleSetType {
return []RuleSetType{RuleSetTypeAzureManagedRuleSet, RuleSetTypeUnknown}
}
// RuleType enumerates the values for rule type.
type RuleType string
const (
// MatchRule ...
MatchRule RuleType = "MatchRule"
// RateLimitRule ...
RateLimitRule RuleType = "RateLimitRule"
)
// PossibleRuleTypeValues returns an array of possible values for the RuleType const type.
func PossibleRuleTypeValues() []RuleType {
return []RuleType{MatchRule, RateLimitRule}
}
// SessionAffinityEnabledState enumerates the values for session affinity enabled state.
type SessionAffinityEnabledState string
const (
// SessionAffinityEnabledStateDisabled ...
SessionAffinityEnabledStateDisabled SessionAffinityEnabledState = "Disabled"
// SessionAffinityEnabledStateEnabled ...
SessionAffinityEnabledStateEnabled SessionAffinityEnabledState = "Enabled"
)
// PossibleSessionAffinityEnabledStateValues returns an array of possible values for the SessionAffinityEnabledState const type.
func PossibleSessionAffinityEnabledStateValues() []SessionAffinityEnabledState {
return []SessionAffinityEnabledState{SessionAffinityEnabledStateDisabled, SessionAffinityEnabledStateEnabled}
}
// TLSProtocolType enumerates the values for tls protocol type.
type TLSProtocolType string
const (
// ServerNameIndication ...
ServerNameIndication TLSProtocolType = "ServerNameIndication"
)
// PossibleTLSProtocolTypeValues returns an array of possible values for the TLSProtocolType const type.
func PossibleTLSProtocolTypeValues() []TLSProtocolType {
return []TLSProtocolType{ServerNameIndication}
}
// Transform enumerates the values for transform.
type Transform string
const (
// HTMLEntityDecode ...
HTMLEntityDecode Transform = "HtmlEntityDecode"
// Lowercase ...
Lowercase Transform = "Lowercase"
// RemoveNulls ...
RemoveNulls Transform = "RemoveNulls"
// Trim ...
Trim Transform = "Trim"
// Uppercase ...
Uppercase Transform = "Uppercase"
// URLDecode ...
URLDecode Transform = "UrlDecode"
// URLEncode ...
URLEncode Transform = "UrlEncode"
)
// PossibleTransformValues returns an array of possible values for the Transform const type.
func PossibleTransformValues() []Transform {
return []Transform{HTMLEntityDecode, Lowercase, RemoveNulls, Trim, Uppercase, URLDecode, URLEncode}
}
// WebApplicationFirewallPolicy enumerates the values for web application firewall policy.
type WebApplicationFirewallPolicy string
const (
// WebApplicationFirewallPolicyCreating ...
WebApplicationFirewallPolicyCreating WebApplicationFirewallPolicy = "Creating"
// WebApplicationFirewallPolicyDeleting ...
WebApplicationFirewallPolicyDeleting WebApplicationFirewallPolicy = "Deleting"
// WebApplicationFirewallPolicyDisabled ...
WebApplicationFirewallPolicyDisabled WebApplicationFirewallPolicy = "Disabled"
// WebApplicationFirewallPolicyDisabling ...
WebApplicationFirewallPolicyDisabling WebApplicationFirewallPolicy = "Disabling"
// WebApplicationFirewallPolicyEnabled ...
WebApplicationFirewallPolicyEnabled WebApplicationFirewallPolicy = "Enabled"
// WebApplicationFirewallPolicyEnabling ...
WebApplicationFirewallPolicyEnabling WebApplicationFirewallPolicy = "Enabling"
)
// PossibleWebApplicationFirewallPolicyValues returns an array of possible values for the WebApplicationFirewallPolicy const type.
func PossibleWebApplicationFirewallPolicyValues() []WebApplicationFirewallPolicy {
return []WebApplicationFirewallPolicy{WebApplicationFirewallPolicyCreating, WebApplicationFirewallPolicyDeleting, WebApplicationFirewallPolicyDisabled, WebApplicationFirewallPolicyDisabling, WebApplicationFirewallPolicyEnabled, WebApplicationFirewallPolicyEnabling}
}