1package cdn 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// Algorithm enumerates the values for algorithm. 29type Algorithm string 30 31const ( 32 // SHA256 ... 33 SHA256 Algorithm = "SHA256" 34) 35 36// PossibleAlgorithmValues returns an array of possible values for the Algorithm const type. 37func PossibleAlgorithmValues() []Algorithm { 38 return []Algorithm{SHA256} 39} 40 41// CacheBehavior enumerates the values for cache behavior. 42type CacheBehavior string 43 44const ( 45 // BypassCache ... 46 BypassCache CacheBehavior = "BypassCache" 47 // Override ... 48 Override CacheBehavior = "Override" 49 // SetIfMissing ... 50 SetIfMissing CacheBehavior = "SetIfMissing" 51) 52 53// PossibleCacheBehaviorValues returns an array of possible values for the CacheBehavior const type. 54func PossibleCacheBehaviorValues() []CacheBehavior { 55 return []CacheBehavior{BypassCache, Override, SetIfMissing} 56} 57 58// CertificateSource enumerates the values for certificate source. 59type CertificateSource string 60 61const ( 62 // CertificateSourceAzureKeyVault ... 63 CertificateSourceAzureKeyVault CertificateSource = "AzureKeyVault" 64 // CertificateSourceCdn ... 65 CertificateSourceCdn CertificateSource = "Cdn" 66 // CertificateSourceCustomDomainHTTPSParameters ... 67 CertificateSourceCustomDomainHTTPSParameters CertificateSource = "CustomDomainHttpsParameters" 68) 69 70// PossibleCertificateSourceValues returns an array of possible values for the CertificateSource const type. 71func PossibleCertificateSourceValues() []CertificateSource { 72 return []CertificateSource{CertificateSourceAzureKeyVault, CertificateSourceCdn, CertificateSourceCustomDomainHTTPSParameters} 73} 74 75// CertificateType enumerates the values for certificate type. 76type CertificateType string 77 78const ( 79 // Dedicated ... 80 Dedicated CertificateType = "Dedicated" 81 // Shared ... 82 Shared CertificateType = "Shared" 83) 84 85// PossibleCertificateTypeValues returns an array of possible values for the CertificateType const type. 86func PossibleCertificateTypeValues() []CertificateType { 87 return []CertificateType{Dedicated, Shared} 88} 89 90// CookiesOperator enumerates the values for cookies operator. 91type CookiesOperator string 92 93const ( 94 // Any ... 95 Any CookiesOperator = "Any" 96 // BeginsWith ... 97 BeginsWith CookiesOperator = "BeginsWith" 98 // Contains ... 99 Contains CookiesOperator = "Contains" 100 // EndsWith ... 101 EndsWith CookiesOperator = "EndsWith" 102 // Equal ... 103 Equal CookiesOperator = "Equal" 104 // GreaterThan ... 105 GreaterThan CookiesOperator = "GreaterThan" 106 // GreaterThanOrEqual ... 107 GreaterThanOrEqual CookiesOperator = "GreaterThanOrEqual" 108 // LessThan ... 109 LessThan CookiesOperator = "LessThan" 110 // LessThanOrEqual ... 111 LessThanOrEqual CookiesOperator = "LessThanOrEqual" 112) 113 114// PossibleCookiesOperatorValues returns an array of possible values for the CookiesOperator const type. 115func PossibleCookiesOperatorValues() []CookiesOperator { 116 return []CookiesOperator{Any, BeginsWith, Contains, EndsWith, Equal, GreaterThan, GreaterThanOrEqual, LessThan, LessThanOrEqual} 117} 118 119// CustomDomainResourceState enumerates the values for custom domain resource state. 120type CustomDomainResourceState string 121 122const ( 123 // Active ... 124 Active CustomDomainResourceState = "Active" 125 // Creating ... 126 Creating CustomDomainResourceState = "Creating" 127 // Deleting ... 128 Deleting CustomDomainResourceState = "Deleting" 129) 130 131// PossibleCustomDomainResourceStateValues returns an array of possible values for the CustomDomainResourceState const type. 132func PossibleCustomDomainResourceStateValues() []CustomDomainResourceState { 133 return []CustomDomainResourceState{Active, Creating, Deleting} 134} 135 136// CustomHTTPSProvisioningState enumerates the values for custom https provisioning state. 137type CustomHTTPSProvisioningState string 138 139const ( 140 // Disabled ... 141 Disabled CustomHTTPSProvisioningState = "Disabled" 142 // Disabling ... 143 Disabling CustomHTTPSProvisioningState = "Disabling" 144 // Enabled ... 145 Enabled CustomHTTPSProvisioningState = "Enabled" 146 // Enabling ... 147 Enabling CustomHTTPSProvisioningState = "Enabling" 148 // Failed ... 149 Failed CustomHTTPSProvisioningState = "Failed" 150) 151 152// PossibleCustomHTTPSProvisioningStateValues returns an array of possible values for the CustomHTTPSProvisioningState const type. 153func PossibleCustomHTTPSProvisioningStateValues() []CustomHTTPSProvisioningState { 154 return []CustomHTTPSProvisioningState{Disabled, Disabling, Enabled, Enabling, Failed} 155} 156 157// CustomHTTPSProvisioningSubstate enumerates the values for custom https provisioning substate. 158type CustomHTTPSProvisioningSubstate string 159 160const ( 161 // CertificateDeleted ... 162 CertificateDeleted CustomHTTPSProvisioningSubstate = "CertificateDeleted" 163 // CertificateDeployed ... 164 CertificateDeployed CustomHTTPSProvisioningSubstate = "CertificateDeployed" 165 // DeletingCertificate ... 166 DeletingCertificate CustomHTTPSProvisioningSubstate = "DeletingCertificate" 167 // DeployingCertificate ... 168 DeployingCertificate CustomHTTPSProvisioningSubstate = "DeployingCertificate" 169 // DomainControlValidationRequestApproved ... 170 DomainControlValidationRequestApproved CustomHTTPSProvisioningSubstate = "DomainControlValidationRequestApproved" 171 // DomainControlValidationRequestRejected ... 172 DomainControlValidationRequestRejected CustomHTTPSProvisioningSubstate = "DomainControlValidationRequestRejected" 173 // DomainControlValidationRequestTimedOut ... 174 DomainControlValidationRequestTimedOut CustomHTTPSProvisioningSubstate = "DomainControlValidationRequestTimedOut" 175 // IssuingCertificate ... 176 IssuingCertificate CustomHTTPSProvisioningSubstate = "IssuingCertificate" 177 // PendingDomainControlValidationREquestApproval ... 178 PendingDomainControlValidationREquestApproval CustomHTTPSProvisioningSubstate = "PendingDomainControlValidationREquestApproval" 179 // SubmittingDomainControlValidationRequest ... 180 SubmittingDomainControlValidationRequest CustomHTTPSProvisioningSubstate = "SubmittingDomainControlValidationRequest" 181) 182 183// PossibleCustomHTTPSProvisioningSubstateValues returns an array of possible values for the CustomHTTPSProvisioningSubstate const type. 184func PossibleCustomHTTPSProvisioningSubstateValues() []CustomHTTPSProvisioningSubstate { 185 return []CustomHTTPSProvisioningSubstate{CertificateDeleted, CertificateDeployed, DeletingCertificate, DeployingCertificate, DomainControlValidationRequestApproved, DomainControlValidationRequestRejected, DomainControlValidationRequestTimedOut, IssuingCertificate, PendingDomainControlValidationREquestApproval, SubmittingDomainControlValidationRequest} 186} 187 188// CustomRuleEnabledState enumerates the values for custom rule enabled state. 189type CustomRuleEnabledState string 190 191const ( 192 // CustomRuleEnabledStateDisabled ... 193 CustomRuleEnabledStateDisabled CustomRuleEnabledState = "Disabled" 194 // CustomRuleEnabledStateEnabled ... 195 CustomRuleEnabledStateEnabled CustomRuleEnabledState = "Enabled" 196) 197 198// PossibleCustomRuleEnabledStateValues returns an array of possible values for the CustomRuleEnabledState const type. 199func PossibleCustomRuleEnabledStateValues() []CustomRuleEnabledState { 200 return []CustomRuleEnabledState{CustomRuleEnabledStateDisabled, CustomRuleEnabledStateEnabled} 201} 202 203// DestinationProtocol enumerates the values for destination protocol. 204type DestinationProtocol string 205 206const ( 207 // HTTP ... 208 HTTP DestinationProtocol = "Http" 209 // HTTPS ... 210 HTTPS DestinationProtocol = "Https" 211 // MatchRequest ... 212 MatchRequest DestinationProtocol = "MatchRequest" 213) 214 215// PossibleDestinationProtocolValues returns an array of possible values for the DestinationProtocol const type. 216func PossibleDestinationProtocolValues() []DestinationProtocol { 217 return []DestinationProtocol{HTTP, HTTPS, MatchRequest} 218} 219 220// EndpointResourceState enumerates the values for endpoint resource state. 221type EndpointResourceState string 222 223const ( 224 // EndpointResourceStateCreating ... 225 EndpointResourceStateCreating EndpointResourceState = "Creating" 226 // EndpointResourceStateDeleting ... 227 EndpointResourceStateDeleting EndpointResourceState = "Deleting" 228 // EndpointResourceStateRunning ... 229 EndpointResourceStateRunning EndpointResourceState = "Running" 230 // EndpointResourceStateStarting ... 231 EndpointResourceStateStarting EndpointResourceState = "Starting" 232 // EndpointResourceStateStopped ... 233 EndpointResourceStateStopped EndpointResourceState = "Stopped" 234 // EndpointResourceStateStopping ... 235 EndpointResourceStateStopping EndpointResourceState = "Stopping" 236) 237 238// PossibleEndpointResourceStateValues returns an array of possible values for the EndpointResourceState const type. 239func PossibleEndpointResourceStateValues() []EndpointResourceState { 240 return []EndpointResourceState{EndpointResourceStateCreating, EndpointResourceStateDeleting, EndpointResourceStateRunning, EndpointResourceStateStarting, EndpointResourceStateStopped, EndpointResourceStateStopping} 241} 242 243// GeoFilterActions enumerates the values for geo filter actions. 244type GeoFilterActions string 245 246const ( 247 // GeoFilterActionsAllow ... 248 GeoFilterActionsAllow GeoFilterActions = "Allow" 249 // GeoFilterActionsBlock ... 250 GeoFilterActionsBlock GeoFilterActions = "Block" 251) 252 253// PossibleGeoFilterActionsValues returns an array of possible values for the GeoFilterActions const type. 254func PossibleGeoFilterActionsValues() []GeoFilterActions { 255 return []GeoFilterActions{GeoFilterActionsAllow, GeoFilterActionsBlock} 256} 257 258// HeaderAction enumerates the values for header action. 259type HeaderAction string 260 261const ( 262 // Append ... 263 Append HeaderAction = "Append" 264 // Delete ... 265 Delete HeaderAction = "Delete" 266 // Overwrite ... 267 Overwrite HeaderAction = "Overwrite" 268) 269 270// PossibleHeaderActionValues returns an array of possible values for the HeaderAction const type. 271func PossibleHeaderActionValues() []HeaderAction { 272 return []HeaderAction{Append, Delete, Overwrite} 273} 274 275// HealthProbeRequestType enumerates the values for health probe request type. 276type HealthProbeRequestType string 277 278const ( 279 // GET ... 280 GET HealthProbeRequestType = "GET" 281 // HEAD ... 282 HEAD HealthProbeRequestType = "HEAD" 283 // NotSet ... 284 NotSet HealthProbeRequestType = "NotSet" 285) 286 287// PossibleHealthProbeRequestTypeValues returns an array of possible values for the HealthProbeRequestType const type. 288func PossibleHealthProbeRequestTypeValues() []HealthProbeRequestType { 289 return []HealthProbeRequestType{GET, HEAD, NotSet} 290} 291 292// ManagedRuleEnabledState enumerates the values for managed rule enabled state. 293type ManagedRuleEnabledState string 294 295const ( 296 // ManagedRuleEnabledStateDisabled ... 297 ManagedRuleEnabledStateDisabled ManagedRuleEnabledState = "Disabled" 298 // ManagedRuleEnabledStateEnabled ... 299 ManagedRuleEnabledStateEnabled ManagedRuleEnabledState = "Enabled" 300) 301 302// PossibleManagedRuleEnabledStateValues returns an array of possible values for the ManagedRuleEnabledState const type. 303func PossibleManagedRuleEnabledStateValues() []ManagedRuleEnabledState { 304 return []ManagedRuleEnabledState{ManagedRuleEnabledStateDisabled, ManagedRuleEnabledStateEnabled} 305} 306 307// MatchVariable enumerates the values for match variable. 308type MatchVariable string 309 310const ( 311 // Cookies ... 312 Cookies MatchVariable = "Cookies" 313 // PostArgs ... 314 PostArgs MatchVariable = "PostArgs" 315 // QueryString ... 316 QueryString MatchVariable = "QueryString" 317 // RemoteAddr ... 318 RemoteAddr MatchVariable = "RemoteAddr" 319 // RequestBody ... 320 RequestBody MatchVariable = "RequestBody" 321 // RequestHeader ... 322 RequestHeader MatchVariable = "RequestHeader" 323 // RequestMethod ... 324 RequestMethod MatchVariable = "RequestMethod" 325 // RequestURI ... 326 RequestURI MatchVariable = "RequestUri" 327 // SocketAddr ... 328 SocketAddr MatchVariable = "SocketAddr" 329) 330 331// PossibleMatchVariableValues returns an array of possible values for the MatchVariable const type. 332func PossibleMatchVariableValues() []MatchVariable { 333 return []MatchVariable{Cookies, PostArgs, QueryString, RemoteAddr, RequestBody, RequestHeader, RequestMethod, RequestURI, SocketAddr} 334} 335 336// MinimumTLSVersion enumerates the values for minimum tls version. 337type MinimumTLSVersion string 338 339const ( 340 // None ... 341 None MinimumTLSVersion = "None" 342 // TLS10 ... 343 TLS10 MinimumTLSVersion = "TLS10" 344 // TLS12 ... 345 TLS12 MinimumTLSVersion = "TLS12" 346) 347 348// PossibleMinimumTLSVersionValues returns an array of possible values for the MinimumTLSVersion const type. 349func PossibleMinimumTLSVersionValues() []MinimumTLSVersion { 350 return []MinimumTLSVersion{None, TLS10, TLS12} 351} 352 353// Name enumerates the values for name. 354type Name string 355 356const ( 357 // NameCookies ... 358 NameCookies Name = "Cookies" 359 // NameDeliveryRuleCondition ... 360 NameDeliveryRuleCondition Name = "DeliveryRuleCondition" 361 // NameHTTPVersion ... 362 NameHTTPVersion Name = "HttpVersion" 363 // NameIsDevice ... 364 NameIsDevice Name = "IsDevice" 365 // NamePostArgs ... 366 NamePostArgs Name = "PostArgs" 367 // NameQueryString ... 368 NameQueryString Name = "QueryString" 369 // NameRemoteAddress ... 370 NameRemoteAddress Name = "RemoteAddress" 371 // NameRequestBody ... 372 NameRequestBody Name = "RequestBody" 373 // NameRequestHeader ... 374 NameRequestHeader Name = "RequestHeader" 375 // NameRequestMethod ... 376 NameRequestMethod Name = "RequestMethod" 377 // NameRequestScheme ... 378 NameRequestScheme Name = "RequestScheme" 379 // NameRequestURI ... 380 NameRequestURI Name = "RequestUri" 381 // NameURLFileExtension ... 382 NameURLFileExtension Name = "UrlFileExtension" 383 // NameURLFileName ... 384 NameURLFileName Name = "UrlFileName" 385 // NameURLPath ... 386 NameURLPath Name = "UrlPath" 387) 388 389// PossibleNameValues returns an array of possible values for the Name const type. 390func PossibleNameValues() []Name { 391 return []Name{NameCookies, NameDeliveryRuleCondition, NameHTTPVersion, NameIsDevice, NamePostArgs, NameQueryString, NameRemoteAddress, NameRequestBody, NameRequestHeader, NameRequestMethod, NameRequestScheme, NameRequestURI, NameURLFileExtension, NameURLFileName, NameURLPath} 392} 393 394// NameBasicDeliveryRuleAction enumerates the values for name basic delivery rule action. 395type NameBasicDeliveryRuleAction string 396 397const ( 398 // NameCacheExpiration ... 399 NameCacheExpiration NameBasicDeliveryRuleAction = "CacheExpiration" 400 // NameCacheKeyQueryString ... 401 NameCacheKeyQueryString NameBasicDeliveryRuleAction = "CacheKeyQueryString" 402 // NameDeliveryRuleAction ... 403 NameDeliveryRuleAction NameBasicDeliveryRuleAction = "DeliveryRuleAction" 404 // NameModifyRequestHeader ... 405 NameModifyRequestHeader NameBasicDeliveryRuleAction = "ModifyRequestHeader" 406 // NameModifyResponseHeader ... 407 NameModifyResponseHeader NameBasicDeliveryRuleAction = "ModifyResponseHeader" 408 // NameURLRedirect ... 409 NameURLRedirect NameBasicDeliveryRuleAction = "UrlRedirect" 410 // NameURLRewrite ... 411 NameURLRewrite NameBasicDeliveryRuleAction = "UrlRewrite" 412 // NameURLSigning ... 413 NameURLSigning NameBasicDeliveryRuleAction = "UrlSigning" 414) 415 416// PossibleNameBasicDeliveryRuleActionValues returns an array of possible values for the NameBasicDeliveryRuleAction const type. 417func PossibleNameBasicDeliveryRuleActionValues() []NameBasicDeliveryRuleAction { 418 return []NameBasicDeliveryRuleAction{NameCacheExpiration, NameCacheKeyQueryString, NameDeliveryRuleAction, NameModifyRequestHeader, NameModifyResponseHeader, NameURLRedirect, NameURLRewrite, NameURLSigning} 419} 420 421// OdataType enumerates the values for odata type. 422type OdataType string 423 424const ( 425 // MicrosoftAzureCdnModelsDeliveryRuleURLSigningActionParameters ... 426 MicrosoftAzureCdnModelsDeliveryRuleURLSigningActionParameters OdataType = "#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlSigningActionParameters" 427) 428 429// PossibleOdataTypeValues returns an array of possible values for the OdataType const type. 430func PossibleOdataTypeValues() []OdataType { 431 return []OdataType{MicrosoftAzureCdnModelsDeliveryRuleURLSigningActionParameters} 432} 433 434// Operator enumerates the values for operator. 435type Operator string 436 437const ( 438 // OperatorAny ... 439 OperatorAny Operator = "Any" 440 // OperatorBeginsWith ... 441 OperatorBeginsWith Operator = "BeginsWith" 442 // OperatorContains ... 443 OperatorContains Operator = "Contains" 444 // OperatorEndsWith ... 445 OperatorEndsWith Operator = "EndsWith" 446 // OperatorEqual ... 447 OperatorEqual Operator = "Equal" 448 // OperatorGeoMatch ... 449 OperatorGeoMatch Operator = "GeoMatch" 450 // OperatorGreaterThan ... 451 OperatorGreaterThan Operator = "GreaterThan" 452 // OperatorGreaterThanOrEqual ... 453 OperatorGreaterThanOrEqual Operator = "GreaterThanOrEqual" 454 // OperatorIPMatch ... 455 OperatorIPMatch Operator = "IPMatch" 456 // OperatorLessThan ... 457 OperatorLessThan Operator = "LessThan" 458 // OperatorLessThanOrEqual ... 459 OperatorLessThanOrEqual Operator = "LessThanOrEqual" 460 // OperatorRegEx ... 461 OperatorRegEx Operator = "RegEx" 462) 463 464// PossibleOperatorValues returns an array of possible values for the Operator const type. 465func PossibleOperatorValues() []Operator { 466 return []Operator{OperatorAny, OperatorBeginsWith, OperatorContains, OperatorEndsWith, OperatorEqual, OperatorGeoMatch, OperatorGreaterThan, OperatorGreaterThanOrEqual, OperatorIPMatch, OperatorLessThan, OperatorLessThanOrEqual, OperatorRegEx} 467} 468 469// OptimizationType enumerates the values for optimization type. 470type OptimizationType string 471 472const ( 473 // DynamicSiteAcceleration ... 474 DynamicSiteAcceleration OptimizationType = "DynamicSiteAcceleration" 475 // GeneralMediaStreaming ... 476 GeneralMediaStreaming OptimizationType = "GeneralMediaStreaming" 477 // GeneralWebDelivery ... 478 GeneralWebDelivery OptimizationType = "GeneralWebDelivery" 479 // LargeFileDownload ... 480 LargeFileDownload OptimizationType = "LargeFileDownload" 481 // VideoOnDemandMediaStreaming ... 482 VideoOnDemandMediaStreaming OptimizationType = "VideoOnDemandMediaStreaming" 483) 484 485// PossibleOptimizationTypeValues returns an array of possible values for the OptimizationType const type. 486func PossibleOptimizationTypeValues() []OptimizationType { 487 return []OptimizationType{DynamicSiteAcceleration, GeneralMediaStreaming, GeneralWebDelivery, LargeFileDownload, VideoOnDemandMediaStreaming} 488} 489 490// OriginGroupResourceState enumerates the values for origin group resource state. 491type OriginGroupResourceState string 492 493const ( 494 // OriginGroupResourceStateActive ... 495 OriginGroupResourceStateActive OriginGroupResourceState = "Active" 496 // OriginGroupResourceStateCreating ... 497 OriginGroupResourceStateCreating OriginGroupResourceState = "Creating" 498 // OriginGroupResourceStateDeleting ... 499 OriginGroupResourceStateDeleting OriginGroupResourceState = "Deleting" 500) 501 502// PossibleOriginGroupResourceStateValues returns an array of possible values for the OriginGroupResourceState const type. 503func PossibleOriginGroupResourceStateValues() []OriginGroupResourceState { 504 return []OriginGroupResourceState{OriginGroupResourceStateActive, OriginGroupResourceStateCreating, OriginGroupResourceStateDeleting} 505} 506 507// OriginResourceState enumerates the values for origin resource state. 508type OriginResourceState string 509 510const ( 511 // OriginResourceStateActive ... 512 OriginResourceStateActive OriginResourceState = "Active" 513 // OriginResourceStateCreating ... 514 OriginResourceStateCreating OriginResourceState = "Creating" 515 // OriginResourceStateDeleting ... 516 OriginResourceStateDeleting OriginResourceState = "Deleting" 517) 518 519// PossibleOriginResourceStateValues returns an array of possible values for the OriginResourceState const type. 520func PossibleOriginResourceStateValues() []OriginResourceState { 521 return []OriginResourceState{OriginResourceStateActive, OriginResourceStateCreating, OriginResourceStateDeleting} 522} 523 524// ParamIndicator enumerates the values for param indicator. 525type ParamIndicator string 526 527const ( 528 // Expires ... 529 Expires ParamIndicator = "Expires" 530 // KeyID ... 531 KeyID ParamIndicator = "KeyId" 532 // Signature ... 533 Signature ParamIndicator = "Signature" 534) 535 536// PossibleParamIndicatorValues returns an array of possible values for the ParamIndicator const type. 537func PossibleParamIndicatorValues() []ParamIndicator { 538 return []ParamIndicator{Expires, KeyID, Signature} 539} 540 541// PolicyEnabledState enumerates the values for policy enabled state. 542type PolicyEnabledState string 543 544const ( 545 // PolicyEnabledStateDisabled ... 546 PolicyEnabledStateDisabled PolicyEnabledState = "Disabled" 547 // PolicyEnabledStateEnabled ... 548 PolicyEnabledStateEnabled PolicyEnabledState = "Enabled" 549) 550 551// PossiblePolicyEnabledStateValues returns an array of possible values for the PolicyEnabledState const type. 552func PossiblePolicyEnabledStateValues() []PolicyEnabledState { 553 return []PolicyEnabledState{PolicyEnabledStateDisabled, PolicyEnabledStateEnabled} 554} 555 556// PolicyMode enumerates the values for policy mode. 557type PolicyMode string 558 559const ( 560 // Detection ... 561 Detection PolicyMode = "Detection" 562 // Prevention ... 563 Prevention PolicyMode = "Prevention" 564) 565 566// PossiblePolicyModeValues returns an array of possible values for the PolicyMode const type. 567func PossiblePolicyModeValues() []PolicyMode { 568 return []PolicyMode{Detection, Prevention} 569} 570 571// PolicyResourceState enumerates the values for policy resource state. 572type PolicyResourceState string 573 574const ( 575 // PolicyResourceStateCreating ... 576 PolicyResourceStateCreating PolicyResourceState = "Creating" 577 // PolicyResourceStateDeleting ... 578 PolicyResourceStateDeleting PolicyResourceState = "Deleting" 579 // PolicyResourceStateDisabled ... 580 PolicyResourceStateDisabled PolicyResourceState = "Disabled" 581 // PolicyResourceStateDisabling ... 582 PolicyResourceStateDisabling PolicyResourceState = "Disabling" 583 // PolicyResourceStateEnabled ... 584 PolicyResourceStateEnabled PolicyResourceState = "Enabled" 585 // PolicyResourceStateEnabling ... 586 PolicyResourceStateEnabling PolicyResourceState = "Enabling" 587) 588 589// PossiblePolicyResourceStateValues returns an array of possible values for the PolicyResourceState const type. 590func PossiblePolicyResourceStateValues() []PolicyResourceState { 591 return []PolicyResourceState{PolicyResourceStateCreating, PolicyResourceStateDeleting, PolicyResourceStateDisabled, PolicyResourceStateDisabling, PolicyResourceStateEnabled, PolicyResourceStateEnabling} 592} 593 594// PostArgsOperator enumerates the values for post args operator. 595type PostArgsOperator string 596 597const ( 598 // PostArgsOperatorAny ... 599 PostArgsOperatorAny PostArgsOperator = "Any" 600 // PostArgsOperatorBeginsWith ... 601 PostArgsOperatorBeginsWith PostArgsOperator = "BeginsWith" 602 // PostArgsOperatorContains ... 603 PostArgsOperatorContains PostArgsOperator = "Contains" 604 // PostArgsOperatorEndsWith ... 605 PostArgsOperatorEndsWith PostArgsOperator = "EndsWith" 606 // PostArgsOperatorEqual ... 607 PostArgsOperatorEqual PostArgsOperator = "Equal" 608 // PostArgsOperatorGreaterThan ... 609 PostArgsOperatorGreaterThan PostArgsOperator = "GreaterThan" 610 // PostArgsOperatorGreaterThanOrEqual ... 611 PostArgsOperatorGreaterThanOrEqual PostArgsOperator = "GreaterThanOrEqual" 612 // PostArgsOperatorLessThan ... 613 PostArgsOperatorLessThan PostArgsOperator = "LessThan" 614 // PostArgsOperatorLessThanOrEqual ... 615 PostArgsOperatorLessThanOrEqual PostArgsOperator = "LessThanOrEqual" 616) 617 618// PossiblePostArgsOperatorValues returns an array of possible values for the PostArgsOperator const type. 619func PossiblePostArgsOperatorValues() []PostArgsOperator { 620 return []PostArgsOperator{PostArgsOperatorAny, PostArgsOperatorBeginsWith, PostArgsOperatorContains, PostArgsOperatorEndsWith, PostArgsOperatorEqual, PostArgsOperatorGreaterThan, PostArgsOperatorGreaterThanOrEqual, PostArgsOperatorLessThan, PostArgsOperatorLessThanOrEqual} 621} 622 623// PrivateEndpointStatus enumerates the values for private endpoint status. 624type PrivateEndpointStatus string 625 626const ( 627 // Approved ... 628 Approved PrivateEndpointStatus = "Approved" 629 // Disconnected ... 630 Disconnected PrivateEndpointStatus = "Disconnected" 631 // Pending ... 632 Pending PrivateEndpointStatus = "Pending" 633 // Rejected ... 634 Rejected PrivateEndpointStatus = "Rejected" 635 // Timeout ... 636 Timeout PrivateEndpointStatus = "Timeout" 637) 638 639// PossiblePrivateEndpointStatusValues returns an array of possible values for the PrivateEndpointStatus const type. 640func PossiblePrivateEndpointStatusValues() []PrivateEndpointStatus { 641 return []PrivateEndpointStatus{Approved, Disconnected, Pending, Rejected, Timeout} 642} 643 644// ProbeProtocol enumerates the values for probe protocol. 645type ProbeProtocol string 646 647const ( 648 // ProbeProtocolHTTP ... 649 ProbeProtocolHTTP ProbeProtocol = "Http" 650 // ProbeProtocolHTTPS ... 651 ProbeProtocolHTTPS ProbeProtocol = "Https" 652 // ProbeProtocolNotSet ... 653 ProbeProtocolNotSet ProbeProtocol = "NotSet" 654) 655 656// PossibleProbeProtocolValues returns an array of possible values for the ProbeProtocol const type. 657func PossibleProbeProtocolValues() []ProbeProtocol { 658 return []ProbeProtocol{ProbeProtocolHTTP, ProbeProtocolHTTPS, ProbeProtocolNotSet} 659} 660 661// ProfileResourceState enumerates the values for profile resource state. 662type ProfileResourceState string 663 664const ( 665 // ProfileResourceStateActive ... 666 ProfileResourceStateActive ProfileResourceState = "Active" 667 // ProfileResourceStateCreating ... 668 ProfileResourceStateCreating ProfileResourceState = "Creating" 669 // ProfileResourceStateDeleting ... 670 ProfileResourceStateDeleting ProfileResourceState = "Deleting" 671 // ProfileResourceStateDisabled ... 672 ProfileResourceStateDisabled ProfileResourceState = "Disabled" 673) 674 675// PossibleProfileResourceStateValues returns an array of possible values for the ProfileResourceState const type. 676func PossibleProfileResourceStateValues() []ProfileResourceState { 677 return []ProfileResourceState{ProfileResourceStateActive, ProfileResourceStateCreating, ProfileResourceStateDeleting, ProfileResourceStateDisabled} 678} 679 680// ProtocolType enumerates the values for protocol type. 681type ProtocolType string 682 683const ( 684 // IPBased ... 685 IPBased ProtocolType = "IPBased" 686 // ServerNameIndication ... 687 ServerNameIndication ProtocolType = "ServerNameIndication" 688) 689 690// PossibleProtocolTypeValues returns an array of possible values for the ProtocolType const type. 691func PossibleProtocolTypeValues() []ProtocolType { 692 return []ProtocolType{IPBased, ServerNameIndication} 693} 694 695// ProvisioningState enumerates the values for provisioning state. 696type ProvisioningState string 697 698const ( 699 // ProvisioningStateCreating ... 700 ProvisioningStateCreating ProvisioningState = "Creating" 701 // ProvisioningStateFailed ... 702 ProvisioningStateFailed ProvisioningState = "Failed" 703 // ProvisioningStateSucceeded ... 704 ProvisioningStateSucceeded ProvisioningState = "Succeeded" 705) 706 707// PossibleProvisioningStateValues returns an array of possible values for the ProvisioningState const type. 708func PossibleProvisioningStateValues() []ProvisioningState { 709 return []ProvisioningState{ProvisioningStateCreating, ProvisioningStateFailed, ProvisioningStateSucceeded} 710} 711 712// QueryStringBehavior enumerates the values for query string behavior. 713type QueryStringBehavior string 714 715const ( 716 // Exclude ... 717 Exclude QueryStringBehavior = "Exclude" 718 // ExcludeAll ... 719 ExcludeAll QueryStringBehavior = "ExcludeAll" 720 // Include ... 721 Include QueryStringBehavior = "Include" 722 // IncludeAll ... 723 IncludeAll QueryStringBehavior = "IncludeAll" 724) 725 726// PossibleQueryStringBehaviorValues returns an array of possible values for the QueryStringBehavior const type. 727func PossibleQueryStringBehaviorValues() []QueryStringBehavior { 728 return []QueryStringBehavior{Exclude, ExcludeAll, Include, IncludeAll} 729} 730 731// QueryStringCachingBehavior enumerates the values for query string caching behavior. 732type QueryStringCachingBehavior string 733 734const ( 735 // QueryStringCachingBehaviorBypassCaching ... 736 QueryStringCachingBehaviorBypassCaching QueryStringCachingBehavior = "BypassCaching" 737 // QueryStringCachingBehaviorIgnoreQueryString ... 738 QueryStringCachingBehaviorIgnoreQueryString QueryStringCachingBehavior = "IgnoreQueryString" 739 // QueryStringCachingBehaviorNotSet ... 740 QueryStringCachingBehaviorNotSet QueryStringCachingBehavior = "NotSet" 741 // QueryStringCachingBehaviorUseQueryString ... 742 QueryStringCachingBehaviorUseQueryString QueryStringCachingBehavior = "UseQueryString" 743) 744 745// PossibleQueryStringCachingBehaviorValues returns an array of possible values for the QueryStringCachingBehavior const type. 746func PossibleQueryStringCachingBehaviorValues() []QueryStringCachingBehavior { 747 return []QueryStringCachingBehavior{QueryStringCachingBehaviorBypassCaching, QueryStringCachingBehaviorIgnoreQueryString, QueryStringCachingBehaviorNotSet, QueryStringCachingBehaviorUseQueryString} 748} 749 750// QueryStringOperator enumerates the values for query string operator. 751type QueryStringOperator string 752 753const ( 754 // QueryStringOperatorAny ... 755 QueryStringOperatorAny QueryStringOperator = "Any" 756 // QueryStringOperatorBeginsWith ... 757 QueryStringOperatorBeginsWith QueryStringOperator = "BeginsWith" 758 // QueryStringOperatorContains ... 759 QueryStringOperatorContains QueryStringOperator = "Contains" 760 // QueryStringOperatorEndsWith ... 761 QueryStringOperatorEndsWith QueryStringOperator = "EndsWith" 762 // QueryStringOperatorEqual ... 763 QueryStringOperatorEqual QueryStringOperator = "Equal" 764 // QueryStringOperatorGreaterThan ... 765 QueryStringOperatorGreaterThan QueryStringOperator = "GreaterThan" 766 // QueryStringOperatorGreaterThanOrEqual ... 767 QueryStringOperatorGreaterThanOrEqual QueryStringOperator = "GreaterThanOrEqual" 768 // QueryStringOperatorLessThan ... 769 QueryStringOperatorLessThan QueryStringOperator = "LessThan" 770 // QueryStringOperatorLessThanOrEqual ... 771 QueryStringOperatorLessThanOrEqual QueryStringOperator = "LessThanOrEqual" 772) 773 774// PossibleQueryStringOperatorValues returns an array of possible values for the QueryStringOperator const type. 775func PossibleQueryStringOperatorValues() []QueryStringOperator { 776 return []QueryStringOperator{QueryStringOperatorAny, QueryStringOperatorBeginsWith, QueryStringOperatorContains, QueryStringOperatorEndsWith, QueryStringOperatorEqual, QueryStringOperatorGreaterThan, QueryStringOperatorGreaterThanOrEqual, QueryStringOperatorLessThan, QueryStringOperatorLessThanOrEqual} 777} 778 779// RedirectType enumerates the values for redirect type. 780type RedirectType string 781 782const ( 783 // Found ... 784 Found RedirectType = "Found" 785 // Moved ... 786 Moved RedirectType = "Moved" 787 // PermanentRedirect ... 788 PermanentRedirect RedirectType = "PermanentRedirect" 789 // TemporaryRedirect ... 790 TemporaryRedirect RedirectType = "TemporaryRedirect" 791) 792 793// PossibleRedirectTypeValues returns an array of possible values for the RedirectType const type. 794func PossibleRedirectTypeValues() []RedirectType { 795 return []RedirectType{Found, Moved, PermanentRedirect, TemporaryRedirect} 796} 797 798// RemoteAddressOperator enumerates the values for remote address operator. 799type RemoteAddressOperator string 800 801const ( 802 // RemoteAddressOperatorAny ... 803 RemoteAddressOperatorAny RemoteAddressOperator = "Any" 804 // RemoteAddressOperatorGeoMatch ... 805 RemoteAddressOperatorGeoMatch RemoteAddressOperator = "GeoMatch" 806 // RemoteAddressOperatorIPMatch ... 807 RemoteAddressOperatorIPMatch RemoteAddressOperator = "IPMatch" 808) 809 810// PossibleRemoteAddressOperatorValues returns an array of possible values for the RemoteAddressOperator const type. 811func PossibleRemoteAddressOperatorValues() []RemoteAddressOperator { 812 return []RemoteAddressOperator{RemoteAddressOperatorAny, RemoteAddressOperatorGeoMatch, RemoteAddressOperatorIPMatch} 813} 814 815// RequestBodyOperator enumerates the values for request body operator. 816type RequestBodyOperator string 817 818const ( 819 // RequestBodyOperatorAny ... 820 RequestBodyOperatorAny RequestBodyOperator = "Any" 821 // RequestBodyOperatorBeginsWith ... 822 RequestBodyOperatorBeginsWith RequestBodyOperator = "BeginsWith" 823 // RequestBodyOperatorContains ... 824 RequestBodyOperatorContains RequestBodyOperator = "Contains" 825 // RequestBodyOperatorEndsWith ... 826 RequestBodyOperatorEndsWith RequestBodyOperator = "EndsWith" 827 // RequestBodyOperatorEqual ... 828 RequestBodyOperatorEqual RequestBodyOperator = "Equal" 829 // RequestBodyOperatorGreaterThan ... 830 RequestBodyOperatorGreaterThan RequestBodyOperator = "GreaterThan" 831 // RequestBodyOperatorGreaterThanOrEqual ... 832 RequestBodyOperatorGreaterThanOrEqual RequestBodyOperator = "GreaterThanOrEqual" 833 // RequestBodyOperatorLessThan ... 834 RequestBodyOperatorLessThan RequestBodyOperator = "LessThan" 835 // RequestBodyOperatorLessThanOrEqual ... 836 RequestBodyOperatorLessThanOrEqual RequestBodyOperator = "LessThanOrEqual" 837) 838 839// PossibleRequestBodyOperatorValues returns an array of possible values for the RequestBodyOperator const type. 840func PossibleRequestBodyOperatorValues() []RequestBodyOperator { 841 return []RequestBodyOperator{RequestBodyOperatorAny, RequestBodyOperatorBeginsWith, RequestBodyOperatorContains, RequestBodyOperatorEndsWith, RequestBodyOperatorEqual, RequestBodyOperatorGreaterThan, RequestBodyOperatorGreaterThanOrEqual, RequestBodyOperatorLessThan, RequestBodyOperatorLessThanOrEqual} 842} 843 844// RequestHeaderOperator enumerates the values for request header operator. 845type RequestHeaderOperator string 846 847const ( 848 // RequestHeaderOperatorAny ... 849 RequestHeaderOperatorAny RequestHeaderOperator = "Any" 850 // RequestHeaderOperatorBeginsWith ... 851 RequestHeaderOperatorBeginsWith RequestHeaderOperator = "BeginsWith" 852 // RequestHeaderOperatorContains ... 853 RequestHeaderOperatorContains RequestHeaderOperator = "Contains" 854 // RequestHeaderOperatorEndsWith ... 855 RequestHeaderOperatorEndsWith RequestHeaderOperator = "EndsWith" 856 // RequestHeaderOperatorEqual ... 857 RequestHeaderOperatorEqual RequestHeaderOperator = "Equal" 858 // RequestHeaderOperatorGreaterThan ... 859 RequestHeaderOperatorGreaterThan RequestHeaderOperator = "GreaterThan" 860 // RequestHeaderOperatorGreaterThanOrEqual ... 861 RequestHeaderOperatorGreaterThanOrEqual RequestHeaderOperator = "GreaterThanOrEqual" 862 // RequestHeaderOperatorLessThan ... 863 RequestHeaderOperatorLessThan RequestHeaderOperator = "LessThan" 864 // RequestHeaderOperatorLessThanOrEqual ... 865 RequestHeaderOperatorLessThanOrEqual RequestHeaderOperator = "LessThanOrEqual" 866) 867 868// PossibleRequestHeaderOperatorValues returns an array of possible values for the RequestHeaderOperator const type. 869func PossibleRequestHeaderOperatorValues() []RequestHeaderOperator { 870 return []RequestHeaderOperator{RequestHeaderOperatorAny, RequestHeaderOperatorBeginsWith, RequestHeaderOperatorContains, RequestHeaderOperatorEndsWith, RequestHeaderOperatorEqual, RequestHeaderOperatorGreaterThan, RequestHeaderOperatorGreaterThanOrEqual, RequestHeaderOperatorLessThan, RequestHeaderOperatorLessThanOrEqual} 871} 872 873// RequestURIOperator enumerates the values for request uri operator. 874type RequestURIOperator string 875 876const ( 877 // RequestURIOperatorAny ... 878 RequestURIOperatorAny RequestURIOperator = "Any" 879 // RequestURIOperatorBeginsWith ... 880 RequestURIOperatorBeginsWith RequestURIOperator = "BeginsWith" 881 // RequestURIOperatorContains ... 882 RequestURIOperatorContains RequestURIOperator = "Contains" 883 // RequestURIOperatorEndsWith ... 884 RequestURIOperatorEndsWith RequestURIOperator = "EndsWith" 885 // RequestURIOperatorEqual ... 886 RequestURIOperatorEqual RequestURIOperator = "Equal" 887 // RequestURIOperatorGreaterThan ... 888 RequestURIOperatorGreaterThan RequestURIOperator = "GreaterThan" 889 // RequestURIOperatorGreaterThanOrEqual ... 890 RequestURIOperatorGreaterThanOrEqual RequestURIOperator = "GreaterThanOrEqual" 891 // RequestURIOperatorLessThan ... 892 RequestURIOperatorLessThan RequestURIOperator = "LessThan" 893 // RequestURIOperatorLessThanOrEqual ... 894 RequestURIOperatorLessThanOrEqual RequestURIOperator = "LessThanOrEqual" 895) 896 897// PossibleRequestURIOperatorValues returns an array of possible values for the RequestURIOperator const type. 898func PossibleRequestURIOperatorValues() []RequestURIOperator { 899 return []RequestURIOperator{RequestURIOperatorAny, RequestURIOperatorBeginsWith, RequestURIOperatorContains, RequestURIOperatorEndsWith, RequestURIOperatorEqual, RequestURIOperatorGreaterThan, RequestURIOperatorGreaterThanOrEqual, RequestURIOperatorLessThan, RequestURIOperatorLessThanOrEqual} 900} 901 902// ResourceType enumerates the values for resource type. 903type ResourceType string 904 905const ( 906 // MicrosoftCdnProfilesEndpoints ... 907 MicrosoftCdnProfilesEndpoints ResourceType = "Microsoft.Cdn/Profiles/Endpoints" 908) 909 910// PossibleResourceTypeValues returns an array of possible values for the ResourceType const type. 911func PossibleResourceTypeValues() []ResourceType { 912 return []ResourceType{MicrosoftCdnProfilesEndpoints} 913} 914 915// ResponseBasedDetectedErrorTypes enumerates the values for response based detected error types. 916type ResponseBasedDetectedErrorTypes string 917 918const ( 919 // ResponseBasedDetectedErrorTypesNone ... 920 ResponseBasedDetectedErrorTypesNone ResponseBasedDetectedErrorTypes = "None" 921 // ResponseBasedDetectedErrorTypesTCPAndHTTPErrors ... 922 ResponseBasedDetectedErrorTypesTCPAndHTTPErrors ResponseBasedDetectedErrorTypes = "TcpAndHttpErrors" 923 // ResponseBasedDetectedErrorTypesTCPErrorsOnly ... 924 ResponseBasedDetectedErrorTypesTCPErrorsOnly ResponseBasedDetectedErrorTypes = "TcpErrorsOnly" 925) 926 927// PossibleResponseBasedDetectedErrorTypesValues returns an array of possible values for the ResponseBasedDetectedErrorTypes const type. 928func PossibleResponseBasedDetectedErrorTypesValues() []ResponseBasedDetectedErrorTypes { 929 return []ResponseBasedDetectedErrorTypes{ResponseBasedDetectedErrorTypesNone, ResponseBasedDetectedErrorTypesTCPAndHTTPErrors, ResponseBasedDetectedErrorTypesTCPErrorsOnly} 930} 931 932// SkuName enumerates the values for sku name. 933type SkuName string 934 935const ( 936 // CustomVerizon ... 937 CustomVerizon SkuName = "Custom_Verizon" 938 // PremiumChinaCdn ... 939 PremiumChinaCdn SkuName = "Premium_ChinaCdn" 940 // PremiumVerizon ... 941 PremiumVerizon SkuName = "Premium_Verizon" 942 // StandardAkamai ... 943 StandardAkamai SkuName = "Standard_Akamai" 944 // StandardChinaCdn ... 945 StandardChinaCdn SkuName = "Standard_ChinaCdn" 946 // StandardMicrosoft ... 947 StandardMicrosoft SkuName = "Standard_Microsoft" 948 // StandardVerizon ... 949 StandardVerizon SkuName = "Standard_Verizon" 950) 951 952// PossibleSkuNameValues returns an array of possible values for the SkuName const type. 953func PossibleSkuNameValues() []SkuName { 954 return []SkuName{CustomVerizon, PremiumChinaCdn, PremiumVerizon, StandardAkamai, StandardChinaCdn, StandardMicrosoft, StandardVerizon} 955} 956 957// Transform enumerates the values for transform. 958type Transform string 959 960const ( 961 // Lowercase ... 962 Lowercase Transform = "Lowercase" 963 // Uppercase ... 964 Uppercase Transform = "Uppercase" 965) 966 967// PossibleTransformValues returns an array of possible values for the Transform const type. 968func PossibleTransformValues() []Transform { 969 return []Transform{Lowercase, Uppercase} 970} 971 972// TransformType enumerates the values for transform type. 973type TransformType string 974 975const ( 976 // TransformTypeLowercase ... 977 TransformTypeLowercase TransformType = "Lowercase" 978 // TransformTypeRemoveNulls ... 979 TransformTypeRemoveNulls TransformType = "RemoveNulls" 980 // TransformTypeTrim ... 981 TransformTypeTrim TransformType = "Trim" 982 // TransformTypeUppercase ... 983 TransformTypeUppercase TransformType = "Uppercase" 984 // TransformTypeURLDecode ... 985 TransformTypeURLDecode TransformType = "UrlDecode" 986 // TransformTypeURLEncode ... 987 TransformTypeURLEncode TransformType = "UrlEncode" 988) 989 990// PossibleTransformTypeValues returns an array of possible values for the TransformType const type. 991func PossibleTransformTypeValues() []TransformType { 992 return []TransformType{TransformTypeLowercase, TransformTypeRemoveNulls, TransformTypeTrim, TransformTypeUppercase, TransformTypeURLDecode, TransformTypeURLEncode} 993} 994 995// URLFileExtensionOperator enumerates the values for url file extension operator. 996type URLFileExtensionOperator string 997 998const ( 999 // URLFileExtensionOperatorAny ... 1000 URLFileExtensionOperatorAny URLFileExtensionOperator = "Any" 1001 // URLFileExtensionOperatorBeginsWith ... 1002 URLFileExtensionOperatorBeginsWith URLFileExtensionOperator = "BeginsWith" 1003 // URLFileExtensionOperatorContains ... 1004 URLFileExtensionOperatorContains URLFileExtensionOperator = "Contains" 1005 // URLFileExtensionOperatorEndsWith ... 1006 URLFileExtensionOperatorEndsWith URLFileExtensionOperator = "EndsWith" 1007 // URLFileExtensionOperatorEqual ... 1008 URLFileExtensionOperatorEqual URLFileExtensionOperator = "Equal" 1009 // URLFileExtensionOperatorGreaterThan ... 1010 URLFileExtensionOperatorGreaterThan URLFileExtensionOperator = "GreaterThan" 1011 // URLFileExtensionOperatorGreaterThanOrEqual ... 1012 URLFileExtensionOperatorGreaterThanOrEqual URLFileExtensionOperator = "GreaterThanOrEqual" 1013 // URLFileExtensionOperatorLessThan ... 1014 URLFileExtensionOperatorLessThan URLFileExtensionOperator = "LessThan" 1015 // URLFileExtensionOperatorLessThanOrEqual ... 1016 URLFileExtensionOperatorLessThanOrEqual URLFileExtensionOperator = "LessThanOrEqual" 1017) 1018 1019// PossibleURLFileExtensionOperatorValues returns an array of possible values for the URLFileExtensionOperator const type. 1020func PossibleURLFileExtensionOperatorValues() []URLFileExtensionOperator { 1021 return []URLFileExtensionOperator{URLFileExtensionOperatorAny, URLFileExtensionOperatorBeginsWith, URLFileExtensionOperatorContains, URLFileExtensionOperatorEndsWith, URLFileExtensionOperatorEqual, URLFileExtensionOperatorGreaterThan, URLFileExtensionOperatorGreaterThanOrEqual, URLFileExtensionOperatorLessThan, URLFileExtensionOperatorLessThanOrEqual} 1022} 1023 1024// URLFileNameOperator enumerates the values for url file name operator. 1025type URLFileNameOperator string 1026 1027const ( 1028 // URLFileNameOperatorAny ... 1029 URLFileNameOperatorAny URLFileNameOperator = "Any" 1030 // URLFileNameOperatorBeginsWith ... 1031 URLFileNameOperatorBeginsWith URLFileNameOperator = "BeginsWith" 1032 // URLFileNameOperatorContains ... 1033 URLFileNameOperatorContains URLFileNameOperator = "Contains" 1034 // URLFileNameOperatorEndsWith ... 1035 URLFileNameOperatorEndsWith URLFileNameOperator = "EndsWith" 1036 // URLFileNameOperatorEqual ... 1037 URLFileNameOperatorEqual URLFileNameOperator = "Equal" 1038 // URLFileNameOperatorGreaterThan ... 1039 URLFileNameOperatorGreaterThan URLFileNameOperator = "GreaterThan" 1040 // URLFileNameOperatorGreaterThanOrEqual ... 1041 URLFileNameOperatorGreaterThanOrEqual URLFileNameOperator = "GreaterThanOrEqual" 1042 // URLFileNameOperatorLessThan ... 1043 URLFileNameOperatorLessThan URLFileNameOperator = "LessThan" 1044 // URLFileNameOperatorLessThanOrEqual ... 1045 URLFileNameOperatorLessThanOrEqual URLFileNameOperator = "LessThanOrEqual" 1046) 1047 1048// PossibleURLFileNameOperatorValues returns an array of possible values for the URLFileNameOperator const type. 1049func PossibleURLFileNameOperatorValues() []URLFileNameOperator { 1050 return []URLFileNameOperator{URLFileNameOperatorAny, URLFileNameOperatorBeginsWith, URLFileNameOperatorContains, URLFileNameOperatorEndsWith, URLFileNameOperatorEqual, URLFileNameOperatorGreaterThan, URLFileNameOperatorGreaterThanOrEqual, URLFileNameOperatorLessThan, URLFileNameOperatorLessThanOrEqual} 1051} 1052 1053// URLPathOperator enumerates the values for url path operator. 1054type URLPathOperator string 1055 1056const ( 1057 // URLPathOperatorAny ... 1058 URLPathOperatorAny URLPathOperator = "Any" 1059 // URLPathOperatorBeginsWith ... 1060 URLPathOperatorBeginsWith URLPathOperator = "BeginsWith" 1061 // URLPathOperatorContains ... 1062 URLPathOperatorContains URLPathOperator = "Contains" 1063 // URLPathOperatorEndsWith ... 1064 URLPathOperatorEndsWith URLPathOperator = "EndsWith" 1065 // URLPathOperatorEqual ... 1066 URLPathOperatorEqual URLPathOperator = "Equal" 1067 // URLPathOperatorGreaterThan ... 1068 URLPathOperatorGreaterThan URLPathOperator = "GreaterThan" 1069 // URLPathOperatorGreaterThanOrEqual ... 1070 URLPathOperatorGreaterThanOrEqual URLPathOperator = "GreaterThanOrEqual" 1071 // URLPathOperatorLessThan ... 1072 URLPathOperatorLessThan URLPathOperator = "LessThan" 1073 // URLPathOperatorLessThanOrEqual ... 1074 URLPathOperatorLessThanOrEqual URLPathOperator = "LessThanOrEqual" 1075 // URLPathOperatorWildcard ... 1076 URLPathOperatorWildcard URLPathOperator = "Wildcard" 1077) 1078 1079// PossibleURLPathOperatorValues returns an array of possible values for the URLPathOperator const type. 1080func PossibleURLPathOperatorValues() []URLPathOperator { 1081 return []URLPathOperator{URLPathOperatorAny, URLPathOperatorBeginsWith, URLPathOperatorContains, URLPathOperatorEndsWith, URLPathOperatorEqual, URLPathOperatorGreaterThan, URLPathOperatorGreaterThanOrEqual, URLPathOperatorLessThan, URLPathOperatorLessThanOrEqual, URLPathOperatorWildcard} 1082} 1083