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// CacheBehavior enumerates the values for cache behavior. 10type CacheBehavior string 11 12const ( 13 // BypassCache ... 14 BypassCache CacheBehavior = "BypassCache" 15 // Override ... 16 Override CacheBehavior = "Override" 17 // SetIfMissing ... 18 SetIfMissing CacheBehavior = "SetIfMissing" 19) 20 21// PossibleCacheBehaviorValues returns an array of possible values for the CacheBehavior const type. 22func PossibleCacheBehaviorValues() []CacheBehavior { 23 return []CacheBehavior{BypassCache, Override, SetIfMissing} 24} 25 26// CertificateSource enumerates the values for certificate source. 27type CertificateSource string 28 29const ( 30 // CertificateSourceAzureKeyVault ... 31 CertificateSourceAzureKeyVault CertificateSource = "AzureKeyVault" 32 // CertificateSourceCdn ... 33 CertificateSourceCdn CertificateSource = "Cdn" 34 // CertificateSourceCustomDomainHTTPSParameters ... 35 CertificateSourceCustomDomainHTTPSParameters CertificateSource = "CustomDomainHttpsParameters" 36) 37 38// PossibleCertificateSourceValues returns an array of possible values for the CertificateSource const type. 39func PossibleCertificateSourceValues() []CertificateSource { 40 return []CertificateSource{CertificateSourceAzureKeyVault, CertificateSourceCdn, CertificateSourceCustomDomainHTTPSParameters} 41} 42 43// CertificateType enumerates the values for certificate type. 44type CertificateType string 45 46const ( 47 // Dedicated ... 48 Dedicated CertificateType = "Dedicated" 49 // Shared ... 50 Shared CertificateType = "Shared" 51) 52 53// PossibleCertificateTypeValues returns an array of possible values for the CertificateType const type. 54func PossibleCertificateTypeValues() []CertificateType { 55 return []CertificateType{Dedicated, Shared} 56} 57 58// CustomDomainResourceState enumerates the values for custom domain resource state. 59type CustomDomainResourceState string 60 61const ( 62 // Active ... 63 Active CustomDomainResourceState = "Active" 64 // Creating ... 65 Creating CustomDomainResourceState = "Creating" 66 // Deleting ... 67 Deleting CustomDomainResourceState = "Deleting" 68) 69 70// PossibleCustomDomainResourceStateValues returns an array of possible values for the CustomDomainResourceState const type. 71func PossibleCustomDomainResourceStateValues() []CustomDomainResourceState { 72 return []CustomDomainResourceState{Active, Creating, Deleting} 73} 74 75// CustomHTTPSProvisioningState enumerates the values for custom https provisioning state. 76type CustomHTTPSProvisioningState string 77 78const ( 79 // Disabled ... 80 Disabled CustomHTTPSProvisioningState = "Disabled" 81 // Disabling ... 82 Disabling CustomHTTPSProvisioningState = "Disabling" 83 // Enabled ... 84 Enabled CustomHTTPSProvisioningState = "Enabled" 85 // Enabling ... 86 Enabling CustomHTTPSProvisioningState = "Enabling" 87 // Failed ... 88 Failed CustomHTTPSProvisioningState = "Failed" 89) 90 91// PossibleCustomHTTPSProvisioningStateValues returns an array of possible values for the CustomHTTPSProvisioningState const type. 92func PossibleCustomHTTPSProvisioningStateValues() []CustomHTTPSProvisioningState { 93 return []CustomHTTPSProvisioningState{Disabled, Disabling, Enabled, Enabling, Failed} 94} 95 96// CustomHTTPSProvisioningSubstate enumerates the values for custom https provisioning substate. 97type CustomHTTPSProvisioningSubstate string 98 99const ( 100 // CertificateDeleted ... 101 CertificateDeleted CustomHTTPSProvisioningSubstate = "CertificateDeleted" 102 // CertificateDeployed ... 103 CertificateDeployed CustomHTTPSProvisioningSubstate = "CertificateDeployed" 104 // DeletingCertificate ... 105 DeletingCertificate CustomHTTPSProvisioningSubstate = "DeletingCertificate" 106 // DeployingCertificate ... 107 DeployingCertificate CustomHTTPSProvisioningSubstate = "DeployingCertificate" 108 // DomainControlValidationRequestApproved ... 109 DomainControlValidationRequestApproved CustomHTTPSProvisioningSubstate = "DomainControlValidationRequestApproved" 110 // DomainControlValidationRequestRejected ... 111 DomainControlValidationRequestRejected CustomHTTPSProvisioningSubstate = "DomainControlValidationRequestRejected" 112 // DomainControlValidationRequestTimedOut ... 113 DomainControlValidationRequestTimedOut CustomHTTPSProvisioningSubstate = "DomainControlValidationRequestTimedOut" 114 // IssuingCertificate ... 115 IssuingCertificate CustomHTTPSProvisioningSubstate = "IssuingCertificate" 116 // PendingDomainControlValidationREquestApproval ... 117 PendingDomainControlValidationREquestApproval CustomHTTPSProvisioningSubstate = "PendingDomainControlValidationREquestApproval" 118 // SubmittingDomainControlValidationRequest ... 119 SubmittingDomainControlValidationRequest CustomHTTPSProvisioningSubstate = "SubmittingDomainControlValidationRequest" 120) 121 122// PossibleCustomHTTPSProvisioningSubstateValues returns an array of possible values for the CustomHTTPSProvisioningSubstate const type. 123func PossibleCustomHTTPSProvisioningSubstateValues() []CustomHTTPSProvisioningSubstate { 124 return []CustomHTTPSProvisioningSubstate{CertificateDeleted, CertificateDeployed, DeletingCertificate, DeployingCertificate, DomainControlValidationRequestApproved, DomainControlValidationRequestRejected, DomainControlValidationRequestTimedOut, IssuingCertificate, PendingDomainControlValidationREquestApproval, SubmittingDomainControlValidationRequest} 125} 126 127// EndpointResourceState enumerates the values for endpoint resource state. 128type EndpointResourceState string 129 130const ( 131 // EndpointResourceStateCreating ... 132 EndpointResourceStateCreating EndpointResourceState = "Creating" 133 // EndpointResourceStateDeleting ... 134 EndpointResourceStateDeleting EndpointResourceState = "Deleting" 135 // EndpointResourceStateRunning ... 136 EndpointResourceStateRunning EndpointResourceState = "Running" 137 // EndpointResourceStateStarting ... 138 EndpointResourceStateStarting EndpointResourceState = "Starting" 139 // EndpointResourceStateStopped ... 140 EndpointResourceStateStopped EndpointResourceState = "Stopped" 141 // EndpointResourceStateStopping ... 142 EndpointResourceStateStopping EndpointResourceState = "Stopping" 143) 144 145// PossibleEndpointResourceStateValues returns an array of possible values for the EndpointResourceState const type. 146func PossibleEndpointResourceStateValues() []EndpointResourceState { 147 return []EndpointResourceState{EndpointResourceStateCreating, EndpointResourceStateDeleting, EndpointResourceStateRunning, EndpointResourceStateStarting, EndpointResourceStateStopped, EndpointResourceStateStopping} 148} 149 150// GeoFilterActions enumerates the values for geo filter actions. 151type GeoFilterActions string 152 153const ( 154 // Allow ... 155 Allow GeoFilterActions = "Allow" 156 // Block ... 157 Block GeoFilterActions = "Block" 158) 159 160// PossibleGeoFilterActionsValues returns an array of possible values for the GeoFilterActions const type. 161func PossibleGeoFilterActionsValues() []GeoFilterActions { 162 return []GeoFilterActions{Allow, Block} 163} 164 165// MatchType enumerates the values for match type. 166type MatchType string 167 168const ( 169 // Literal ... 170 Literal MatchType = "Literal" 171 // Wildcard ... 172 Wildcard MatchType = "Wildcard" 173) 174 175// PossibleMatchTypeValues returns an array of possible values for the MatchType const type. 176func PossibleMatchTypeValues() []MatchType { 177 return []MatchType{Literal, Wildcard} 178} 179 180// Name enumerates the values for name. 181type Name string 182 183const ( 184 // NameCacheExpiration ... 185 NameCacheExpiration Name = "CacheExpiration" 186 // NameDeliveryRuleAction ... 187 NameDeliveryRuleAction Name = "DeliveryRuleAction" 188) 189 190// PossibleNameValues returns an array of possible values for the Name const type. 191func PossibleNameValues() []Name { 192 return []Name{NameCacheExpiration, NameDeliveryRuleAction} 193} 194 195// NameBasicDeliveryRuleCondition enumerates the values for name basic delivery rule condition. 196type NameBasicDeliveryRuleCondition string 197 198const ( 199 // NameDeliveryRuleCondition ... 200 NameDeliveryRuleCondition NameBasicDeliveryRuleCondition = "DeliveryRuleCondition" 201 // NameURLFileExtension ... 202 NameURLFileExtension NameBasicDeliveryRuleCondition = "UrlFileExtension" 203 // NameURLPath ... 204 NameURLPath NameBasicDeliveryRuleCondition = "UrlPath" 205) 206 207// PossibleNameBasicDeliveryRuleConditionValues returns an array of possible values for the NameBasicDeliveryRuleCondition const type. 208func PossibleNameBasicDeliveryRuleConditionValues() []NameBasicDeliveryRuleCondition { 209 return []NameBasicDeliveryRuleCondition{NameDeliveryRuleCondition, NameURLFileExtension, NameURLPath} 210} 211 212// OptimizationType enumerates the values for optimization type. 213type OptimizationType string 214 215const ( 216 // DynamicSiteAcceleration ... 217 DynamicSiteAcceleration OptimizationType = "DynamicSiteAcceleration" 218 // GeneralMediaStreaming ... 219 GeneralMediaStreaming OptimizationType = "GeneralMediaStreaming" 220 // GeneralWebDelivery ... 221 GeneralWebDelivery OptimizationType = "GeneralWebDelivery" 222 // LargeFileDownload ... 223 LargeFileDownload OptimizationType = "LargeFileDownload" 224 // VideoOnDemandMediaStreaming ... 225 VideoOnDemandMediaStreaming OptimizationType = "VideoOnDemandMediaStreaming" 226) 227 228// PossibleOptimizationTypeValues returns an array of possible values for the OptimizationType const type. 229func PossibleOptimizationTypeValues() []OptimizationType { 230 return []OptimizationType{DynamicSiteAcceleration, GeneralMediaStreaming, GeneralWebDelivery, LargeFileDownload, VideoOnDemandMediaStreaming} 231} 232 233// OriginResourceState enumerates the values for origin resource state. 234type OriginResourceState string 235 236const ( 237 // OriginResourceStateActive ... 238 OriginResourceStateActive OriginResourceState = "Active" 239 // OriginResourceStateCreating ... 240 OriginResourceStateCreating OriginResourceState = "Creating" 241 // OriginResourceStateDeleting ... 242 OriginResourceStateDeleting OriginResourceState = "Deleting" 243) 244 245// PossibleOriginResourceStateValues returns an array of possible values for the OriginResourceState const type. 246func PossibleOriginResourceStateValues() []OriginResourceState { 247 return []OriginResourceState{OriginResourceStateActive, OriginResourceStateCreating, OriginResourceStateDeleting} 248} 249 250// ProfileResourceState enumerates the values for profile resource state. 251type ProfileResourceState string 252 253const ( 254 // ProfileResourceStateActive ... 255 ProfileResourceStateActive ProfileResourceState = "Active" 256 // ProfileResourceStateCreating ... 257 ProfileResourceStateCreating ProfileResourceState = "Creating" 258 // ProfileResourceStateDeleting ... 259 ProfileResourceStateDeleting ProfileResourceState = "Deleting" 260 // ProfileResourceStateDisabled ... 261 ProfileResourceStateDisabled ProfileResourceState = "Disabled" 262) 263 264// PossibleProfileResourceStateValues returns an array of possible values for the ProfileResourceState const type. 265func PossibleProfileResourceStateValues() []ProfileResourceState { 266 return []ProfileResourceState{ProfileResourceStateActive, ProfileResourceStateCreating, ProfileResourceStateDeleting, ProfileResourceStateDisabled} 267} 268 269// ProtocolType enumerates the values for protocol type. 270type ProtocolType string 271 272const ( 273 // IPBased ... 274 IPBased ProtocolType = "IPBased" 275 // ServerNameIndication ... 276 ServerNameIndication ProtocolType = "ServerNameIndication" 277) 278 279// PossibleProtocolTypeValues returns an array of possible values for the ProtocolType const type. 280func PossibleProtocolTypeValues() []ProtocolType { 281 return []ProtocolType{IPBased, ServerNameIndication} 282} 283 284// QueryStringCachingBehavior enumerates the values for query string caching behavior. 285type QueryStringCachingBehavior string 286 287const ( 288 // BypassCaching ... 289 BypassCaching QueryStringCachingBehavior = "BypassCaching" 290 // IgnoreQueryString ... 291 IgnoreQueryString QueryStringCachingBehavior = "IgnoreQueryString" 292 // NotSet ... 293 NotSet QueryStringCachingBehavior = "NotSet" 294 // UseQueryString ... 295 UseQueryString QueryStringCachingBehavior = "UseQueryString" 296) 297 298// PossibleQueryStringCachingBehaviorValues returns an array of possible values for the QueryStringCachingBehavior const type. 299func PossibleQueryStringCachingBehaviorValues() []QueryStringCachingBehavior { 300 return []QueryStringCachingBehavior{BypassCaching, IgnoreQueryString, NotSet, UseQueryString} 301} 302 303// ResourceType enumerates the values for resource type. 304type ResourceType string 305 306const ( 307 // MicrosoftCdnProfilesEndpoints ... 308 MicrosoftCdnProfilesEndpoints ResourceType = "Microsoft.Cdn/Profiles/Endpoints" 309) 310 311// PossibleResourceTypeValues returns an array of possible values for the ResourceType const type. 312func PossibleResourceTypeValues() []ResourceType { 313 return []ResourceType{MicrosoftCdnProfilesEndpoints} 314} 315 316// SkuName enumerates the values for sku name. 317type SkuName string 318 319const ( 320 // CustomVerizon ... 321 CustomVerizon SkuName = "Custom_Verizon" 322 // PremiumChinaCdn ... 323 PremiumChinaCdn SkuName = "Premium_ChinaCdn" 324 // PremiumVerizon ... 325 PremiumVerizon SkuName = "Premium_Verizon" 326 // StandardAkamai ... 327 StandardAkamai SkuName = "Standard_Akamai" 328 // StandardChinaCdn ... 329 StandardChinaCdn SkuName = "Standard_ChinaCdn" 330 // StandardMicrosoft ... 331 StandardMicrosoft SkuName = "Standard_Microsoft" 332 // StandardVerizon ... 333 StandardVerizon SkuName = "Standard_Verizon" 334) 335 336// PossibleSkuNameValues returns an array of possible values for the SkuName const type. 337func PossibleSkuNameValues() []SkuName { 338 return []SkuName{CustomVerizon, PremiumChinaCdn, PremiumVerizon, StandardAkamai, StandardChinaCdn, StandardMicrosoft, StandardVerizon} 339} 340