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// ManagedRuleExclusionMatchVariable enumerates the values for managed rule exclusion match variable. 262type ManagedRuleExclusionMatchVariable string 263 264const ( 265 // QueryStringArgNames ... 266 QueryStringArgNames ManagedRuleExclusionMatchVariable = "QueryStringArgNames" 267 // RequestBodyPostArgNames ... 268 RequestBodyPostArgNames ManagedRuleExclusionMatchVariable = "RequestBodyPostArgNames" 269 // RequestCookieNames ... 270 RequestCookieNames ManagedRuleExclusionMatchVariable = "RequestCookieNames" 271 // RequestHeaderNames ... 272 RequestHeaderNames ManagedRuleExclusionMatchVariable = "RequestHeaderNames" 273) 274 275// PossibleManagedRuleExclusionMatchVariableValues returns an array of possible values for the ManagedRuleExclusionMatchVariable const type. 276func PossibleManagedRuleExclusionMatchVariableValues() []ManagedRuleExclusionMatchVariable { 277 return []ManagedRuleExclusionMatchVariable{QueryStringArgNames, RequestBodyPostArgNames, RequestCookieNames, RequestHeaderNames} 278} 279 280// ManagedRuleExclusionSelectorMatchOperator enumerates the values for managed rule exclusion selector match 281// operator. 282type ManagedRuleExclusionSelectorMatchOperator string 283 284const ( 285 // Contains ... 286 Contains ManagedRuleExclusionSelectorMatchOperator = "Contains" 287 // EndsWith ... 288 EndsWith ManagedRuleExclusionSelectorMatchOperator = "EndsWith" 289 // Equals ... 290 Equals ManagedRuleExclusionSelectorMatchOperator = "Equals" 291 // EqualsAny ... 292 EqualsAny ManagedRuleExclusionSelectorMatchOperator = "EqualsAny" 293 // StartsWith ... 294 StartsWith ManagedRuleExclusionSelectorMatchOperator = "StartsWith" 295) 296 297// PossibleManagedRuleExclusionSelectorMatchOperatorValues returns an array of possible values for the ManagedRuleExclusionSelectorMatchOperator const type. 298func PossibleManagedRuleExclusionSelectorMatchOperatorValues() []ManagedRuleExclusionSelectorMatchOperator { 299 return []ManagedRuleExclusionSelectorMatchOperator{Contains, EndsWith, Equals, EqualsAny, StartsWith} 300} 301 302// MatchVariable enumerates the values for match variable. 303type MatchVariable string 304 305const ( 306 // Cookies ... 307 Cookies MatchVariable = "Cookies" 308 // PostArgs ... 309 PostArgs MatchVariable = "PostArgs" 310 // QueryString ... 311 QueryString MatchVariable = "QueryString" 312 // RemoteAddr ... 313 RemoteAddr MatchVariable = "RemoteAddr" 314 // RequestBody ... 315 RequestBody MatchVariable = "RequestBody" 316 // RequestHeader ... 317 RequestHeader MatchVariable = "RequestHeader" 318 // RequestMethod ... 319 RequestMethod MatchVariable = "RequestMethod" 320 // RequestURI ... 321 RequestURI MatchVariable = "RequestUri" 322 // SocketAddr ... 323 SocketAddr MatchVariable = "SocketAddr" 324) 325 326// PossibleMatchVariableValues returns an array of possible values for the MatchVariable const type. 327func PossibleMatchVariableValues() []MatchVariable { 328 return []MatchVariable{Cookies, PostArgs, QueryString, RemoteAddr, RequestBody, RequestHeader, RequestMethod, RequestURI, SocketAddr} 329} 330 331// MinimumTLSVersion enumerates the values for minimum tls version. 332type MinimumTLSVersion string 333 334const ( 335 // OneFullStopTwo ... 336 OneFullStopTwo MinimumTLSVersion = "1.2" 337 // OneFullStopZero ... 338 OneFullStopZero MinimumTLSVersion = "1.0" 339) 340 341// PossibleMinimumTLSVersionValues returns an array of possible values for the MinimumTLSVersion const type. 342func PossibleMinimumTLSVersionValues() []MinimumTLSVersion { 343 return []MinimumTLSVersion{OneFullStopTwo, OneFullStopZero} 344} 345 346// NetworkOperationStatus enumerates the values for network operation status. 347type NetworkOperationStatus string 348 349const ( 350 // Failed ... 351 Failed NetworkOperationStatus = "Failed" 352 // InProgress ... 353 InProgress NetworkOperationStatus = "InProgress" 354 // Succeeded ... 355 Succeeded NetworkOperationStatus = "Succeeded" 356) 357 358// PossibleNetworkOperationStatusValues returns an array of possible values for the NetworkOperationStatus const type. 359func PossibleNetworkOperationStatusValues() []NetworkOperationStatus { 360 return []NetworkOperationStatus{Failed, InProgress, Succeeded} 361} 362 363// OdataType enumerates the values for odata type. 364type OdataType string 365 366const ( 367 // OdataTypeMicrosoftAzureFrontDoorModelsFrontdoorForwardingConfiguration ... 368 OdataTypeMicrosoftAzureFrontDoorModelsFrontdoorForwardingConfiguration OdataType = "#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration" 369 // OdataTypeMicrosoftAzureFrontDoorModelsFrontdoorRedirectConfiguration ... 370 OdataTypeMicrosoftAzureFrontDoorModelsFrontdoorRedirectConfiguration OdataType = "#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration" 371 // OdataTypeRouteConfiguration ... 372 OdataTypeRouteConfiguration OdataType = "RouteConfiguration" 373) 374 375// PossibleOdataTypeValues returns an array of possible values for the OdataType const type. 376func PossibleOdataTypeValues() []OdataType { 377 return []OdataType{OdataTypeMicrosoftAzureFrontDoorModelsFrontdoorForwardingConfiguration, OdataTypeMicrosoftAzureFrontDoorModelsFrontdoorRedirectConfiguration, OdataTypeRouteConfiguration} 378} 379 380// Operator enumerates the values for operator. 381type Operator string 382 383const ( 384 // OperatorAny ... 385 OperatorAny Operator = "Any" 386 // OperatorBeginsWith ... 387 OperatorBeginsWith Operator = "BeginsWith" 388 // OperatorContains ... 389 OperatorContains Operator = "Contains" 390 // OperatorEndsWith ... 391 OperatorEndsWith Operator = "EndsWith" 392 // OperatorEqual ... 393 OperatorEqual Operator = "Equal" 394 // OperatorGeoMatch ... 395 OperatorGeoMatch Operator = "GeoMatch" 396 // OperatorGreaterThan ... 397 OperatorGreaterThan Operator = "GreaterThan" 398 // OperatorGreaterThanOrEqual ... 399 OperatorGreaterThanOrEqual Operator = "GreaterThanOrEqual" 400 // OperatorIPMatch ... 401 OperatorIPMatch Operator = "IPMatch" 402 // OperatorLessThan ... 403 OperatorLessThan Operator = "LessThan" 404 // OperatorLessThanOrEqual ... 405 OperatorLessThanOrEqual Operator = "LessThanOrEqual" 406 // OperatorRegEx ... 407 OperatorRegEx Operator = "RegEx" 408) 409 410// PossibleOperatorValues returns an array of possible values for the Operator const type. 411func PossibleOperatorValues() []Operator { 412 return []Operator{OperatorAny, OperatorBeginsWith, OperatorContains, OperatorEndsWith, OperatorEqual, OperatorGeoMatch, OperatorGreaterThan, OperatorGreaterThanOrEqual, OperatorIPMatch, OperatorLessThan, OperatorLessThanOrEqual, OperatorRegEx} 413} 414 415// PolicyEnabledState enumerates the values for policy enabled state. 416type PolicyEnabledState string 417 418const ( 419 // PolicyEnabledStateDisabled ... 420 PolicyEnabledStateDisabled PolicyEnabledState = "Disabled" 421 // PolicyEnabledStateEnabled ... 422 PolicyEnabledStateEnabled PolicyEnabledState = "Enabled" 423) 424 425// PossiblePolicyEnabledStateValues returns an array of possible values for the PolicyEnabledState const type. 426func PossiblePolicyEnabledStateValues() []PolicyEnabledState { 427 return []PolicyEnabledState{PolicyEnabledStateDisabled, PolicyEnabledStateEnabled} 428} 429 430// PolicyMode enumerates the values for policy mode. 431type PolicyMode string 432 433const ( 434 // Detection ... 435 Detection PolicyMode = "Detection" 436 // Prevention ... 437 Prevention PolicyMode = "Prevention" 438) 439 440// PossiblePolicyModeValues returns an array of possible values for the PolicyMode const type. 441func PossiblePolicyModeValues() []PolicyMode { 442 return []PolicyMode{Detection, Prevention} 443} 444 445// PolicyResourceState enumerates the values for policy resource state. 446type PolicyResourceState string 447 448const ( 449 // PolicyResourceStateCreating ... 450 PolicyResourceStateCreating PolicyResourceState = "Creating" 451 // PolicyResourceStateDeleting ... 452 PolicyResourceStateDeleting PolicyResourceState = "Deleting" 453 // PolicyResourceStateDisabled ... 454 PolicyResourceStateDisabled PolicyResourceState = "Disabled" 455 // PolicyResourceStateDisabling ... 456 PolicyResourceStateDisabling PolicyResourceState = "Disabling" 457 // PolicyResourceStateEnabled ... 458 PolicyResourceStateEnabled PolicyResourceState = "Enabled" 459 // PolicyResourceStateEnabling ... 460 PolicyResourceStateEnabling PolicyResourceState = "Enabling" 461) 462 463// PossiblePolicyResourceStateValues returns an array of possible values for the PolicyResourceState const type. 464func PossiblePolicyResourceStateValues() []PolicyResourceState { 465 return []PolicyResourceState{PolicyResourceStateCreating, PolicyResourceStateDeleting, PolicyResourceStateDisabled, PolicyResourceStateDisabling, PolicyResourceStateEnabled, PolicyResourceStateEnabling} 466} 467 468// Protocol enumerates the values for protocol. 469type Protocol string 470 471const ( 472 // HTTP ... 473 HTTP Protocol = "Http" 474 // HTTPS ... 475 HTTPS Protocol = "Https" 476) 477 478// PossibleProtocolValues returns an array of possible values for the Protocol const type. 479func PossibleProtocolValues() []Protocol { 480 return []Protocol{HTTP, HTTPS} 481} 482 483// Query enumerates the values for query. 484type Query string 485 486const ( 487 // StripAll ... 488 StripAll Query = "StripAll" 489 // StripNone ... 490 StripNone Query = "StripNone" 491) 492 493// PossibleQueryValues returns an array of possible values for the Query const type. 494func PossibleQueryValues() []Query { 495 return []Query{StripAll, StripNone} 496} 497 498// RedirectProtocol enumerates the values for redirect protocol. 499type RedirectProtocol string 500 501const ( 502 // RedirectProtocolHTTPOnly ... 503 RedirectProtocolHTTPOnly RedirectProtocol = "HttpOnly" 504 // RedirectProtocolHTTPSOnly ... 505 RedirectProtocolHTTPSOnly RedirectProtocol = "HttpsOnly" 506 // RedirectProtocolMatchRequest ... 507 RedirectProtocolMatchRequest RedirectProtocol = "MatchRequest" 508) 509 510// PossibleRedirectProtocolValues returns an array of possible values for the RedirectProtocol const type. 511func PossibleRedirectProtocolValues() []RedirectProtocol { 512 return []RedirectProtocol{RedirectProtocolHTTPOnly, RedirectProtocolHTTPSOnly, RedirectProtocolMatchRequest} 513} 514 515// RedirectType enumerates the values for redirect type. 516type RedirectType string 517 518const ( 519 // Found ... 520 Found RedirectType = "Found" 521 // Moved ... 522 Moved RedirectType = "Moved" 523 // PermanentRedirect ... 524 PermanentRedirect RedirectType = "PermanentRedirect" 525 // TemporaryRedirect ... 526 TemporaryRedirect RedirectType = "TemporaryRedirect" 527) 528 529// PossibleRedirectTypeValues returns an array of possible values for the RedirectType const type. 530func PossibleRedirectTypeValues() []RedirectType { 531 return []RedirectType{Found, Moved, PermanentRedirect, TemporaryRedirect} 532} 533 534// ResourceState enumerates the values for resource state. 535type ResourceState string 536 537const ( 538 // ResourceStateCreating ... 539 ResourceStateCreating ResourceState = "Creating" 540 // ResourceStateDeleting ... 541 ResourceStateDeleting ResourceState = "Deleting" 542 // ResourceStateDisabled ... 543 ResourceStateDisabled ResourceState = "Disabled" 544 // ResourceStateDisabling ... 545 ResourceStateDisabling ResourceState = "Disabling" 546 // ResourceStateEnabled ... 547 ResourceStateEnabled ResourceState = "Enabled" 548 // ResourceStateEnabling ... 549 ResourceStateEnabling ResourceState = "Enabling" 550) 551 552// PossibleResourceStateValues returns an array of possible values for the ResourceState const type. 553func PossibleResourceStateValues() []ResourceState { 554 return []ResourceState{ResourceStateCreating, ResourceStateDeleting, ResourceStateDisabled, ResourceStateDisabling, ResourceStateEnabled, ResourceStateEnabling} 555} 556 557// ResourceType enumerates the values for resource type. 558type ResourceType string 559 560const ( 561 // MicrosoftNetworkfrontDoors ... 562 MicrosoftNetworkfrontDoors ResourceType = "Microsoft.Network/frontDoors" 563 // MicrosoftNetworkfrontDoorsfrontendEndpoints ... 564 MicrosoftNetworkfrontDoorsfrontendEndpoints ResourceType = "Microsoft.Network/frontDoors/frontendEndpoints" 565) 566 567// PossibleResourceTypeValues returns an array of possible values for the ResourceType const type. 568func PossibleResourceTypeValues() []ResourceType { 569 return []ResourceType{MicrosoftNetworkfrontDoors, MicrosoftNetworkfrontDoorsfrontendEndpoints} 570} 571 572// RoutingRuleEnabledState enumerates the values for routing rule enabled state. 573type RoutingRuleEnabledState string 574 575const ( 576 // RoutingRuleEnabledStateDisabled ... 577 RoutingRuleEnabledStateDisabled RoutingRuleEnabledState = "Disabled" 578 // RoutingRuleEnabledStateEnabled ... 579 RoutingRuleEnabledStateEnabled RoutingRuleEnabledState = "Enabled" 580) 581 582// PossibleRoutingRuleEnabledStateValues returns an array of possible values for the RoutingRuleEnabledState const type. 583func PossibleRoutingRuleEnabledStateValues() []RoutingRuleEnabledState { 584 return []RoutingRuleEnabledState{RoutingRuleEnabledStateDisabled, RoutingRuleEnabledStateEnabled} 585} 586 587// RuleType enumerates the values for rule type. 588type RuleType string 589 590const ( 591 // MatchRule ... 592 MatchRule RuleType = "MatchRule" 593 // RateLimitRule ... 594 RateLimitRule RuleType = "RateLimitRule" 595) 596 597// PossibleRuleTypeValues returns an array of possible values for the RuleType const type. 598func PossibleRuleTypeValues() []RuleType { 599 return []RuleType{MatchRule, RateLimitRule} 600} 601 602// SessionAffinityEnabledState enumerates the values for session affinity enabled state. 603type SessionAffinityEnabledState string 604 605const ( 606 // SessionAffinityEnabledStateDisabled ... 607 SessionAffinityEnabledStateDisabled SessionAffinityEnabledState = "Disabled" 608 // SessionAffinityEnabledStateEnabled ... 609 SessionAffinityEnabledStateEnabled SessionAffinityEnabledState = "Enabled" 610) 611 612// PossibleSessionAffinityEnabledStateValues returns an array of possible values for the SessionAffinityEnabledState const type. 613func PossibleSessionAffinityEnabledStateValues() []SessionAffinityEnabledState { 614 return []SessionAffinityEnabledState{SessionAffinityEnabledStateDisabled, SessionAffinityEnabledStateEnabled} 615} 616 617// TransformType enumerates the values for transform type. 618type TransformType string 619 620const ( 621 // Lowercase ... 622 Lowercase TransformType = "Lowercase" 623 // RemoveNulls ... 624 RemoveNulls TransformType = "RemoveNulls" 625 // Trim ... 626 Trim TransformType = "Trim" 627 // Uppercase ... 628 Uppercase TransformType = "Uppercase" 629 // URLDecode ... 630 URLDecode TransformType = "UrlDecode" 631 // URLEncode ... 632 URLEncode TransformType = "UrlEncode" 633) 634 635// PossibleTransformTypeValues returns an array of possible values for the TransformType const type. 636func PossibleTransformTypeValues() []TransformType { 637 return []TransformType{Lowercase, RemoveNulls, Trim, Uppercase, URLDecode, URLEncode} 638} 639