1package frontdoor 2 3// Copyright (c) Microsoft Corporation. All rights reserved. 4// Licensed under the MIT License. See License.txt in the project root for license information. 5// 6// Code generated by Microsoft (R) AutoRest Code Generator. 7// Changes may cause incorrect behavior and will be lost if the code is regenerated. 8 9// ActionType enumerates the values for action type. 10type ActionType string 11 12const ( 13 // Allow ... 14 Allow ActionType = "Allow" 15 // Block ... 16 Block ActionType = "Block" 17 // Log ... 18 Log ActionType = "Log" 19 // Redirect ... 20 Redirect ActionType = "Redirect" 21) 22 23// PossibleActionTypeValues returns an array of possible values for the ActionType const type. 24func PossibleActionTypeValues() []ActionType { 25 return []ActionType{Allow, Block, Log, Redirect} 26} 27 28// Availability enumerates the values for availability. 29type Availability string 30 31const ( 32 // Available ... 33 Available Availability = "Available" 34 // Unavailable ... 35 Unavailable Availability = "Unavailable" 36) 37 38// PossibleAvailabilityValues returns an array of possible values for the Availability const type. 39func PossibleAvailabilityValues() []Availability { 40 return []Availability{Available, Unavailable} 41} 42 43// BackendEnabledState enumerates the values for backend enabled state. 44type BackendEnabledState string 45 46const ( 47 // Disabled ... 48 Disabled BackendEnabledState = "Disabled" 49 // Enabled ... 50 Enabled BackendEnabledState = "Enabled" 51) 52 53// PossibleBackendEnabledStateValues returns an array of possible values for the BackendEnabledState const type. 54func PossibleBackendEnabledStateValues() []BackendEnabledState { 55 return []BackendEnabledState{Disabled, Enabled} 56} 57 58// CertificateSource enumerates the values for certificate source. 59type CertificateSource string 60 61const ( 62 // CertificateSourceAzureKeyVault ... 63 CertificateSourceAzureKeyVault CertificateSource = "AzureKeyVault" 64 // CertificateSourceFrontDoor ... 65 CertificateSourceFrontDoor CertificateSource = "FrontDoor" 66) 67 68// PossibleCertificateSourceValues returns an array of possible values for the CertificateSource const type. 69func PossibleCertificateSourceValues() []CertificateSource { 70 return []CertificateSource{CertificateSourceAzureKeyVault, CertificateSourceFrontDoor} 71} 72 73// CertificateType enumerates the values for certificate type. 74type CertificateType string 75 76const ( 77 // Dedicated ... 78 Dedicated CertificateType = "Dedicated" 79) 80 81// PossibleCertificateTypeValues returns an array of possible values for the CertificateType const type. 82func PossibleCertificateTypeValues() []CertificateType { 83 return []CertificateType{Dedicated} 84} 85 86// CustomHTTPSProvisioningState enumerates the values for custom https provisioning state. 87type CustomHTTPSProvisioningState string 88 89const ( 90 // CustomHTTPSProvisioningStateDisabled ... 91 CustomHTTPSProvisioningStateDisabled CustomHTTPSProvisioningState = "Disabled" 92 // CustomHTTPSProvisioningStateDisabling ... 93 CustomHTTPSProvisioningStateDisabling CustomHTTPSProvisioningState = "Disabling" 94 // CustomHTTPSProvisioningStateEnabled ... 95 CustomHTTPSProvisioningStateEnabled CustomHTTPSProvisioningState = "Enabled" 96 // CustomHTTPSProvisioningStateEnabling ... 97 CustomHTTPSProvisioningStateEnabling CustomHTTPSProvisioningState = "Enabling" 98 // CustomHTTPSProvisioningStateFailed ... 99 CustomHTTPSProvisioningStateFailed CustomHTTPSProvisioningState = "Failed" 100) 101 102// PossibleCustomHTTPSProvisioningStateValues returns an array of possible values for the CustomHTTPSProvisioningState const type. 103func PossibleCustomHTTPSProvisioningStateValues() []CustomHTTPSProvisioningState { 104 return []CustomHTTPSProvisioningState{CustomHTTPSProvisioningStateDisabled, CustomHTTPSProvisioningStateDisabling, CustomHTTPSProvisioningStateEnabled, CustomHTTPSProvisioningStateEnabling, CustomHTTPSProvisioningStateFailed} 105} 106 107// CustomHTTPSProvisioningSubstate enumerates the values for custom https provisioning substate. 108type CustomHTTPSProvisioningSubstate string 109 110const ( 111 // CertificateDeleted ... 112 CertificateDeleted CustomHTTPSProvisioningSubstate = "CertificateDeleted" 113 // CertificateDeployed ... 114 CertificateDeployed CustomHTTPSProvisioningSubstate = "CertificateDeployed" 115 // DeletingCertificate ... 116 DeletingCertificate CustomHTTPSProvisioningSubstate = "DeletingCertificate" 117 // DeployingCertificate ... 118 DeployingCertificate CustomHTTPSProvisioningSubstate = "DeployingCertificate" 119 // DomainControlValidationRequestApproved ... 120 DomainControlValidationRequestApproved CustomHTTPSProvisioningSubstate = "DomainControlValidationRequestApproved" 121 // DomainControlValidationRequestRejected ... 122 DomainControlValidationRequestRejected CustomHTTPSProvisioningSubstate = "DomainControlValidationRequestRejected" 123 // DomainControlValidationRequestTimedOut ... 124 DomainControlValidationRequestTimedOut CustomHTTPSProvisioningSubstate = "DomainControlValidationRequestTimedOut" 125 // IssuingCertificate ... 126 IssuingCertificate CustomHTTPSProvisioningSubstate = "IssuingCertificate" 127 // PendingDomainControlValidationREquestApproval ... 128 PendingDomainControlValidationREquestApproval CustomHTTPSProvisioningSubstate = "PendingDomainControlValidationREquestApproval" 129 // SubmittingDomainControlValidationRequest ... 130 SubmittingDomainControlValidationRequest CustomHTTPSProvisioningSubstate = "SubmittingDomainControlValidationRequest" 131) 132 133// PossibleCustomHTTPSProvisioningSubstateValues returns an array of possible values for the CustomHTTPSProvisioningSubstate const type. 134func PossibleCustomHTTPSProvisioningSubstateValues() []CustomHTTPSProvisioningSubstate { 135 return []CustomHTTPSProvisioningSubstate{CertificateDeleted, CertificateDeployed, DeletingCertificate, DeployingCertificate, DomainControlValidationRequestApproved, DomainControlValidationRequestRejected, DomainControlValidationRequestTimedOut, IssuingCertificate, PendingDomainControlValidationREquestApproval, SubmittingDomainControlValidationRequest} 136} 137 138// CustomRuleEnabledState enumerates the values for custom rule enabled state. 139type CustomRuleEnabledState string 140 141const ( 142 // CustomRuleEnabledStateDisabled ... 143 CustomRuleEnabledStateDisabled CustomRuleEnabledState = "Disabled" 144 // CustomRuleEnabledStateEnabled ... 145 CustomRuleEnabledStateEnabled CustomRuleEnabledState = "Enabled" 146) 147 148// PossibleCustomRuleEnabledStateValues returns an array of possible values for the CustomRuleEnabledState const type. 149func PossibleCustomRuleEnabledStateValues() []CustomRuleEnabledState { 150 return []CustomRuleEnabledState{CustomRuleEnabledStateDisabled, CustomRuleEnabledStateEnabled} 151} 152 153// DynamicCompressionEnabled enumerates the values for dynamic compression enabled. 154type DynamicCompressionEnabled string 155 156const ( 157 // DynamicCompressionEnabledDisabled ... 158 DynamicCompressionEnabledDisabled DynamicCompressionEnabled = "Disabled" 159 // DynamicCompressionEnabledEnabled ... 160 DynamicCompressionEnabledEnabled DynamicCompressionEnabled = "Enabled" 161) 162 163// PossibleDynamicCompressionEnabledValues returns an array of possible values for the DynamicCompressionEnabled const type. 164func PossibleDynamicCompressionEnabledValues() []DynamicCompressionEnabled { 165 return []DynamicCompressionEnabled{DynamicCompressionEnabledDisabled, DynamicCompressionEnabledEnabled} 166} 167 168// EnabledState enumerates the values for enabled state. 169type EnabledState string 170 171const ( 172 // EnabledStateDisabled ... 173 EnabledStateDisabled EnabledState = "Disabled" 174 // EnabledStateEnabled ... 175 EnabledStateEnabled EnabledState = "Enabled" 176) 177 178// PossibleEnabledStateValues returns an array of possible values for the EnabledState const type. 179func PossibleEnabledStateValues() []EnabledState { 180 return []EnabledState{EnabledStateDisabled, EnabledStateEnabled} 181} 182 183// EnforceCertificateNameCheckEnabledState enumerates the values for enforce certificate name check enabled 184// state. 185type EnforceCertificateNameCheckEnabledState string 186 187const ( 188 // EnforceCertificateNameCheckEnabledStateDisabled ... 189 EnforceCertificateNameCheckEnabledStateDisabled EnforceCertificateNameCheckEnabledState = "Disabled" 190 // EnforceCertificateNameCheckEnabledStateEnabled ... 191 EnforceCertificateNameCheckEnabledStateEnabled EnforceCertificateNameCheckEnabledState = "Enabled" 192) 193 194// PossibleEnforceCertificateNameCheckEnabledStateValues returns an array of possible values for the EnforceCertificateNameCheckEnabledState const type. 195func PossibleEnforceCertificateNameCheckEnabledStateValues() []EnforceCertificateNameCheckEnabledState { 196 return []EnforceCertificateNameCheckEnabledState{EnforceCertificateNameCheckEnabledStateDisabled, EnforceCertificateNameCheckEnabledStateEnabled} 197} 198 199// ForwardingProtocol enumerates the values for forwarding protocol. 200type ForwardingProtocol string 201 202const ( 203 // HTTPOnly ... 204 HTTPOnly ForwardingProtocol = "HttpOnly" 205 // HTTPSOnly ... 206 HTTPSOnly ForwardingProtocol = "HttpsOnly" 207 // MatchRequest ... 208 MatchRequest ForwardingProtocol = "MatchRequest" 209) 210 211// PossibleForwardingProtocolValues returns an array of possible values for the ForwardingProtocol const type. 212func PossibleForwardingProtocolValues() []ForwardingProtocol { 213 return []ForwardingProtocol{HTTPOnly, HTTPSOnly, MatchRequest} 214} 215 216// HealthProbeEnabled enumerates the values for health probe enabled. 217type HealthProbeEnabled string 218 219const ( 220 // HealthProbeEnabledDisabled ... 221 HealthProbeEnabledDisabled HealthProbeEnabled = "Disabled" 222 // HealthProbeEnabledEnabled ... 223 HealthProbeEnabledEnabled HealthProbeEnabled = "Enabled" 224) 225 226// PossibleHealthProbeEnabledValues returns an array of possible values for the HealthProbeEnabled const type. 227func PossibleHealthProbeEnabledValues() []HealthProbeEnabled { 228 return []HealthProbeEnabled{HealthProbeEnabledDisabled, HealthProbeEnabledEnabled} 229} 230 231// HealthProbeMethod enumerates the values for health probe method. 232type HealthProbeMethod string 233 234const ( 235 // GET ... 236 GET HealthProbeMethod = "GET" 237 // HEAD ... 238 HEAD HealthProbeMethod = "HEAD" 239) 240 241// PossibleHealthProbeMethodValues returns an array of possible values for the HealthProbeMethod const type. 242func PossibleHealthProbeMethodValues() []HealthProbeMethod { 243 return []HealthProbeMethod{GET, HEAD} 244} 245 246// ManagedRuleEnabledState enumerates the values for managed rule enabled state. 247type ManagedRuleEnabledState string 248 249const ( 250 // ManagedRuleEnabledStateDisabled ... 251 ManagedRuleEnabledStateDisabled ManagedRuleEnabledState = "Disabled" 252 // ManagedRuleEnabledStateEnabled ... 253 ManagedRuleEnabledStateEnabled ManagedRuleEnabledState = "Enabled" 254) 255 256// PossibleManagedRuleEnabledStateValues returns an array of possible values for the ManagedRuleEnabledState const type. 257func PossibleManagedRuleEnabledStateValues() []ManagedRuleEnabledState { 258 return []ManagedRuleEnabledState{ManagedRuleEnabledStateDisabled, ManagedRuleEnabledStateEnabled} 259} 260 261// MatchVariable enumerates the values for match variable. 262type MatchVariable string 263 264const ( 265 // Cookies ... 266 Cookies MatchVariable = "Cookies" 267 // PostArgs ... 268 PostArgs MatchVariable = "PostArgs" 269 // QueryString ... 270 QueryString MatchVariable = "QueryString" 271 // RemoteAddr ... 272 RemoteAddr MatchVariable = "RemoteAddr" 273 // RequestBody ... 274 RequestBody MatchVariable = "RequestBody" 275 // RequestHeader ... 276 RequestHeader MatchVariable = "RequestHeader" 277 // RequestMethod ... 278 RequestMethod MatchVariable = "RequestMethod" 279 // RequestURI ... 280 RequestURI MatchVariable = "RequestUri" 281 // SocketAddr ... 282 SocketAddr MatchVariable = "SocketAddr" 283) 284 285// PossibleMatchVariableValues returns an array of possible values for the MatchVariable const type. 286func PossibleMatchVariableValues() []MatchVariable { 287 return []MatchVariable{Cookies, PostArgs, QueryString, RemoteAddr, RequestBody, RequestHeader, RequestMethod, RequestURI, SocketAddr} 288} 289 290// MinimumTLSVersion enumerates the values for minimum tls version. 291type MinimumTLSVersion string 292 293const ( 294 // OneFullStopTwo ... 295 OneFullStopTwo MinimumTLSVersion = "1.2" 296 // OneFullStopZero ... 297 OneFullStopZero MinimumTLSVersion = "1.0" 298) 299 300// PossibleMinimumTLSVersionValues returns an array of possible values for the MinimumTLSVersion const type. 301func PossibleMinimumTLSVersionValues() []MinimumTLSVersion { 302 return []MinimumTLSVersion{OneFullStopTwo, OneFullStopZero} 303} 304 305// NetworkOperationStatus enumerates the values for network operation status. 306type NetworkOperationStatus string 307 308const ( 309 // Failed ... 310 Failed NetworkOperationStatus = "Failed" 311 // InProgress ... 312 InProgress NetworkOperationStatus = "InProgress" 313 // Succeeded ... 314 Succeeded NetworkOperationStatus = "Succeeded" 315) 316 317// PossibleNetworkOperationStatusValues returns an array of possible values for the NetworkOperationStatus const type. 318func PossibleNetworkOperationStatusValues() []NetworkOperationStatus { 319 return []NetworkOperationStatus{Failed, InProgress, Succeeded} 320} 321 322// OdataType enumerates the values for odata type. 323type OdataType string 324 325const ( 326 // OdataTypeMicrosoftAzureFrontDoorModelsFrontdoorForwardingConfiguration ... 327 OdataTypeMicrosoftAzureFrontDoorModelsFrontdoorForwardingConfiguration OdataType = "#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration" 328 // OdataTypeMicrosoftAzureFrontDoorModelsFrontdoorRedirectConfiguration ... 329 OdataTypeMicrosoftAzureFrontDoorModelsFrontdoorRedirectConfiguration OdataType = "#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration" 330 // OdataTypeRouteConfiguration ... 331 OdataTypeRouteConfiguration OdataType = "RouteConfiguration" 332) 333 334// PossibleOdataTypeValues returns an array of possible values for the OdataType const type. 335func PossibleOdataTypeValues() []OdataType { 336 return []OdataType{OdataTypeMicrosoftAzureFrontDoorModelsFrontdoorForwardingConfiguration, OdataTypeMicrosoftAzureFrontDoorModelsFrontdoorRedirectConfiguration, OdataTypeRouteConfiguration} 337} 338 339// Operator enumerates the values for operator. 340type Operator string 341 342const ( 343 // Any ... 344 Any Operator = "Any" 345 // BeginsWith ... 346 BeginsWith Operator = "BeginsWith" 347 // Contains ... 348 Contains Operator = "Contains" 349 // EndsWith ... 350 EndsWith Operator = "EndsWith" 351 // Equal ... 352 Equal Operator = "Equal" 353 // GeoMatch ... 354 GeoMatch Operator = "GeoMatch" 355 // GreaterThan ... 356 GreaterThan Operator = "GreaterThan" 357 // GreaterThanOrEqual ... 358 GreaterThanOrEqual Operator = "GreaterThanOrEqual" 359 // IPMatch ... 360 IPMatch Operator = "IPMatch" 361 // LessThan ... 362 LessThan Operator = "LessThan" 363 // LessThanOrEqual ... 364 LessThanOrEqual Operator = "LessThanOrEqual" 365 // RegEx ... 366 RegEx Operator = "RegEx" 367) 368 369// PossibleOperatorValues returns an array of possible values for the Operator const type. 370func PossibleOperatorValues() []Operator { 371 return []Operator{Any, BeginsWith, Contains, EndsWith, Equal, GeoMatch, GreaterThan, GreaterThanOrEqual, IPMatch, LessThan, LessThanOrEqual, RegEx} 372} 373 374// PolicyEnabledState enumerates the values for policy enabled state. 375type PolicyEnabledState string 376 377const ( 378 // PolicyEnabledStateDisabled ... 379 PolicyEnabledStateDisabled PolicyEnabledState = "Disabled" 380 // PolicyEnabledStateEnabled ... 381 PolicyEnabledStateEnabled PolicyEnabledState = "Enabled" 382) 383 384// PossiblePolicyEnabledStateValues returns an array of possible values for the PolicyEnabledState const type. 385func PossiblePolicyEnabledStateValues() []PolicyEnabledState { 386 return []PolicyEnabledState{PolicyEnabledStateDisabled, PolicyEnabledStateEnabled} 387} 388 389// PolicyMode enumerates the values for policy mode. 390type PolicyMode string 391 392const ( 393 // Detection ... 394 Detection PolicyMode = "Detection" 395 // Prevention ... 396 Prevention PolicyMode = "Prevention" 397) 398 399// PossiblePolicyModeValues returns an array of possible values for the PolicyMode const type. 400func PossiblePolicyModeValues() []PolicyMode { 401 return []PolicyMode{Detection, Prevention} 402} 403 404// PolicyResourceState enumerates the values for policy resource state. 405type PolicyResourceState string 406 407const ( 408 // PolicyResourceStateCreating ... 409 PolicyResourceStateCreating PolicyResourceState = "Creating" 410 // PolicyResourceStateDeleting ... 411 PolicyResourceStateDeleting PolicyResourceState = "Deleting" 412 // PolicyResourceStateDisabled ... 413 PolicyResourceStateDisabled PolicyResourceState = "Disabled" 414 // PolicyResourceStateDisabling ... 415 PolicyResourceStateDisabling PolicyResourceState = "Disabling" 416 // PolicyResourceStateEnabled ... 417 PolicyResourceStateEnabled PolicyResourceState = "Enabled" 418 // PolicyResourceStateEnabling ... 419 PolicyResourceStateEnabling PolicyResourceState = "Enabling" 420) 421 422// PossiblePolicyResourceStateValues returns an array of possible values for the PolicyResourceState const type. 423func PossiblePolicyResourceStateValues() []PolicyResourceState { 424 return []PolicyResourceState{PolicyResourceStateCreating, PolicyResourceStateDeleting, PolicyResourceStateDisabled, PolicyResourceStateDisabling, PolicyResourceStateEnabled, PolicyResourceStateEnabling} 425} 426 427// Protocol enumerates the values for protocol. 428type Protocol string 429 430const ( 431 // HTTP ... 432 HTTP Protocol = "Http" 433 // HTTPS ... 434 HTTPS Protocol = "Https" 435) 436 437// PossibleProtocolValues returns an array of possible values for the Protocol const type. 438func PossibleProtocolValues() []Protocol { 439 return []Protocol{HTTP, HTTPS} 440} 441 442// Query enumerates the values for query. 443type Query string 444 445const ( 446 // StripAll ... 447 StripAll Query = "StripAll" 448 // StripNone ... 449 StripNone Query = "StripNone" 450) 451 452// PossibleQueryValues returns an array of possible values for the Query const type. 453func PossibleQueryValues() []Query { 454 return []Query{StripAll, StripNone} 455} 456 457// RedirectProtocol enumerates the values for redirect protocol. 458type RedirectProtocol string 459 460const ( 461 // RedirectProtocolHTTPOnly ... 462 RedirectProtocolHTTPOnly RedirectProtocol = "HttpOnly" 463 // RedirectProtocolHTTPSOnly ... 464 RedirectProtocolHTTPSOnly RedirectProtocol = "HttpsOnly" 465 // RedirectProtocolMatchRequest ... 466 RedirectProtocolMatchRequest RedirectProtocol = "MatchRequest" 467) 468 469// PossibleRedirectProtocolValues returns an array of possible values for the RedirectProtocol const type. 470func PossibleRedirectProtocolValues() []RedirectProtocol { 471 return []RedirectProtocol{RedirectProtocolHTTPOnly, RedirectProtocolHTTPSOnly, RedirectProtocolMatchRequest} 472} 473 474// RedirectType enumerates the values for redirect type. 475type RedirectType string 476 477const ( 478 // Found ... 479 Found RedirectType = "Found" 480 // Moved ... 481 Moved RedirectType = "Moved" 482 // PermanentRedirect ... 483 PermanentRedirect RedirectType = "PermanentRedirect" 484 // TemporaryRedirect ... 485 TemporaryRedirect RedirectType = "TemporaryRedirect" 486) 487 488// PossibleRedirectTypeValues returns an array of possible values for the RedirectType const type. 489func PossibleRedirectTypeValues() []RedirectType { 490 return []RedirectType{Found, Moved, PermanentRedirect, TemporaryRedirect} 491} 492 493// ResourceState enumerates the values for resource state. 494type ResourceState string 495 496const ( 497 // ResourceStateCreating ... 498 ResourceStateCreating ResourceState = "Creating" 499 // ResourceStateDeleting ... 500 ResourceStateDeleting ResourceState = "Deleting" 501 // ResourceStateDisabled ... 502 ResourceStateDisabled ResourceState = "Disabled" 503 // ResourceStateDisabling ... 504 ResourceStateDisabling ResourceState = "Disabling" 505 // ResourceStateEnabled ... 506 ResourceStateEnabled ResourceState = "Enabled" 507 // ResourceStateEnabling ... 508 ResourceStateEnabling ResourceState = "Enabling" 509) 510 511// PossibleResourceStateValues returns an array of possible values for the ResourceState const type. 512func PossibleResourceStateValues() []ResourceState { 513 return []ResourceState{ResourceStateCreating, ResourceStateDeleting, ResourceStateDisabled, ResourceStateDisabling, ResourceStateEnabled, ResourceStateEnabling} 514} 515 516// ResourceType enumerates the values for resource type. 517type ResourceType string 518 519const ( 520 // MicrosoftNetworkfrontDoors ... 521 MicrosoftNetworkfrontDoors ResourceType = "Microsoft.Network/frontDoors" 522 // MicrosoftNetworkfrontDoorsfrontendEndpoints ... 523 MicrosoftNetworkfrontDoorsfrontendEndpoints ResourceType = "Microsoft.Network/frontDoors/frontendEndpoints" 524) 525 526// PossibleResourceTypeValues returns an array of possible values for the ResourceType const type. 527func PossibleResourceTypeValues() []ResourceType { 528 return []ResourceType{MicrosoftNetworkfrontDoors, MicrosoftNetworkfrontDoorsfrontendEndpoints} 529} 530 531// RoutingRuleEnabledState enumerates the values for routing rule enabled state. 532type RoutingRuleEnabledState string 533 534const ( 535 // RoutingRuleEnabledStateDisabled ... 536 RoutingRuleEnabledStateDisabled RoutingRuleEnabledState = "Disabled" 537 // RoutingRuleEnabledStateEnabled ... 538 RoutingRuleEnabledStateEnabled RoutingRuleEnabledState = "Enabled" 539) 540 541// PossibleRoutingRuleEnabledStateValues returns an array of possible values for the RoutingRuleEnabledState const type. 542func PossibleRoutingRuleEnabledStateValues() []RoutingRuleEnabledState { 543 return []RoutingRuleEnabledState{RoutingRuleEnabledStateDisabled, RoutingRuleEnabledStateEnabled} 544} 545 546// RuleType enumerates the values for rule type. 547type RuleType string 548 549const ( 550 // MatchRule ... 551 MatchRule RuleType = "MatchRule" 552 // RateLimitRule ... 553 RateLimitRule RuleType = "RateLimitRule" 554) 555 556// PossibleRuleTypeValues returns an array of possible values for the RuleType const type. 557func PossibleRuleTypeValues() []RuleType { 558 return []RuleType{MatchRule, RateLimitRule} 559} 560 561// SessionAffinityEnabledState enumerates the values for session affinity enabled state. 562type SessionAffinityEnabledState string 563 564const ( 565 // SessionAffinityEnabledStateDisabled ... 566 SessionAffinityEnabledStateDisabled SessionAffinityEnabledState = "Disabled" 567 // SessionAffinityEnabledStateEnabled ... 568 SessionAffinityEnabledStateEnabled SessionAffinityEnabledState = "Enabled" 569) 570 571// PossibleSessionAffinityEnabledStateValues returns an array of possible values for the SessionAffinityEnabledState const type. 572func PossibleSessionAffinityEnabledStateValues() []SessionAffinityEnabledState { 573 return []SessionAffinityEnabledState{SessionAffinityEnabledStateDisabled, SessionAffinityEnabledStateEnabled} 574} 575 576// TransformType enumerates the values for transform type. 577type TransformType string 578 579const ( 580 // Lowercase ... 581 Lowercase TransformType = "Lowercase" 582 // RemoveNulls ... 583 RemoveNulls TransformType = "RemoveNulls" 584 // Trim ... 585 Trim TransformType = "Trim" 586 // Uppercase ... 587 Uppercase TransformType = "Uppercase" 588 // URLDecode ... 589 URLDecode TransformType = "UrlDecode" 590 // URLEncode ... 591 URLEncode TransformType = "UrlEncode" 592) 593 594// PossibleTransformTypeValues returns an array of possible values for the TransformType const type. 595func PossibleTransformTypeValues() []TransformType { 596 return []TransformType{Lowercase, RemoveNulls, Trim, Uppercase, URLDecode, URLEncode} 597} 598