From 4acbaf1edc9458e5455edb00c7ff5c868b615247 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Thu, 13 Jan 2022 02:46:37 +0000 Subject: [PATCH] CodeGen from PR 17323 in Azure/azure-rest-api-specs Merge 18d807f0735c14235135cf3da5e126df6c31ed87 into 8e4746332979ed6ff3577bdc97dd2065a7577598 --- sdk/cdn/arm-cdn/CHANGELOG.md | 227 +- sdk/cdn/arm-cdn/LICENSE | 2 +- sdk/cdn/arm-cdn/_meta.json | 6 +- sdk/cdn/arm-cdn/package.json | 18 +- sdk/cdn/arm-cdn/review/arm-cdn.api.md | 700 +- sdk/cdn/arm-cdn/src/cdnManagementClient.ts | 68 +- sdk/cdn/arm-cdn/src/models/index.ts | 5593 ++++++----- sdk/cdn/arm-cdn/src/models/mappers.ts | 8783 ++++++++++------- sdk/cdn/arm-cdn/src/models/parameters.ts | 289 +- .../src/operations/aFDCustomDomains.ts | 80 +- .../arm-cdn/src/operations/aFDEndpoints.ts | 74 +- .../arm-cdn/src/operations/aFDOriginGroups.ts | 61 +- sdk/cdn/arm-cdn/src/operations/aFDOrigins.ts | 62 +- sdk/cdn/arm-cdn/src/operations/aFDProfiles.ts | 28 +- .../arm-cdn/src/operations/customDomains.ts | 198 +- sdk/cdn/arm-cdn/src/operations/endpoints.ts | 32 +- sdk/cdn/arm-cdn/src/operations/index.ts | 16 +- .../arm-cdn/src/operations/logAnalytics.ts | 42 +- .../arm-cdn/src/operations/managedRuleSets.ts | 2 +- .../arm-cdn/src/operations/originGroups.ts | 16 +- sdk/cdn/arm-cdn/src/operations/origins.ts | 16 +- sdk/cdn/arm-cdn/src/operations/policies.ts | 19 +- sdk/cdn/arm-cdn/src/operations/profiles.ts | 115 +- sdk/cdn/arm-cdn/src/operations/routes.ts | 42 +- sdk/cdn/arm-cdn/src/operations/ruleSets.ts | 130 +- sdk/cdn/arm-cdn/src/operations/rules.ts | 42 +- sdk/cdn/arm-cdn/src/operations/secrets.ts | 164 +- .../src/operations/securityPolicies.ts | 52 +- .../operationsInterfaces/aFDCustomDomains.ts | 42 +- .../src/operationsInterfaces/aFDEndpoints.ts | 36 +- .../operationsInterfaces/aFDOriginGroups.ts | 27 +- .../src/operationsInterfaces/aFDOrigins.ts | 24 +- .../src/operationsInterfaces/aFDProfiles.ts | 10 +- .../src/operationsInterfaces/customDomains.ts | 42 +- .../arm-cdn/src/operationsInterfaces/index.ts | 16 +- .../src/operationsInterfaces/logAnalytics.ts | 18 +- .../src/operationsInterfaces/profiles.ts | 64 +- .../src/operationsInterfaces/routes.ts | 24 +- .../src/operationsInterfaces/ruleSets.ts | 38 +- .../arm-cdn/src/operationsInterfaces/rules.ts | 24 +- .../src/operationsInterfaces/secrets.ts | 53 +- .../operationsInterfaces/securityPolicies.ts | 32 +- sdk/cdn/arm-cdn/test/sampleTest.ts | 48 + 43 files changed, 9886 insertions(+), 7489 deletions(-) create mode 100644 sdk/cdn/arm-cdn/test/sampleTest.ts diff --git a/sdk/cdn/arm-cdn/CHANGELOG.md b/sdk/cdn/arm-cdn/CHANGELOG.md index e5bbced080e1..3377e9fa861e 100644 --- a/sdk/cdn/arm-cdn/CHANGELOG.md +++ b/sdk/cdn/arm-cdn/CHANGELOG.md @@ -1,15 +1,226 @@ # Release History + +## 7.0.0 (2022-01-13) + +**Features** -## 6.0.1 (Unreleased) + - Added operation CustomDomains.disableCustomHttps + - Added operation CustomDomains.enableCustomHttps + - Added operation RuleSets.create + - Added Interface ActivatedResourceReference + - Added Interface AfdRouteCacheConfiguration + - Added Interface CacheConfiguration + - Added Interface CheckHostNameAvailabilityInput + - Added Interface ClientPortMatchConditionParameters + - Added Interface DimensionProperties + - Added Interface ErrorAdditionalInfo + - Added Interface ErrorDetail + - Added Interface HostNameMatchConditionParameters + - Added Interface LogSpecification + - Added Interface ManagedServiceIdentity + - Added Interface MetricAvailability + - Added Interface MetricSpecification + - Added Interface OriginGroupOverride + - Added Interface RouteConfigurationOverrideActionParameters + - Added Interface ServerPortMatchConditionParameters + - Added Interface ServiceSpecification + - Added Interface SocketAddrMatchConditionParameters + - Added Interface SslProtocolMatchConditionParameters + - Added Type Alias AzureFirstPartyManagedCertificate + - Added Type Alias AzureFirstPartyManagedCertificateParameters + - Added Type Alias ClientPortOperator + - Added Type Alias CustomDomainsDisableCustomHttpsResponse + - Added Type Alias CustomDomainsEnableCustomHttpsResponse + - Added Type Alias DeliveryRuleClientPortCondition + - Added Type Alias DeliveryRuleHostNameCondition + - Added Type Alias DeliveryRuleRouteConfigurationOverrideAction + - Added Type Alias DeliveryRuleServerPortCondition + - Added Type Alias DeliveryRuleSocketAddrCondition + - Added Type Alias DeliveryRuleSslProtocolCondition + - Added Type Alias Enum47 + - Added Type Alias HostNameOperator + - Added Type Alias ManagedServiceIdentityType + - Added Type Alias RuleCacheBehavior + - Added Type Alias RuleIsCompressionEnabled + - Added Type Alias RuleQueryStringCachingBehavior + - Added Type Alias ServerPortOperator + - Added Type Alias SocketAddrOperator + - Added Type Alias SslProtocol + - Added Type Alias SslProtocolOperator + - Added Type Alias WafMatchVariable + - Interface AFDDomainUpdateParameters has a new optional parameter preValidatedCustomDomainResourceId + - Interface AFDDomainUpdateParameters has a new optional parameter profileName + - Interface AFDDomainUpdatePropertiesParameters has a new optional parameter preValidatedCustomDomainResourceId + - Interface AFDDomainUpdatePropertiesParameters has a new optional parameter profileName + - Interface AFDEndpointPropertiesUpdateParameters has a new optional parameter profileName + - Interface AFDEndpointUpdateParameters has a new optional parameter profileName + - Interface AFDOriginGroupUpdateParameters has a new optional parameter profileName + - Interface AFDOriginGroupUpdatePropertiesParameters has a new optional parameter profileName + - Interface AFDOriginUpdateParameters has a new optional parameter enforceCertificateNameCheck + - Interface AFDOriginUpdateParameters has a new optional parameter originGroupName + - Interface AFDOriginUpdatePropertiesParameters has a new optional parameter enforceCertificateNameCheck + - Interface AFDOriginUpdatePropertiesParameters has a new optional parameter originGroupName + - Interface Certificate has a new optional parameter type + - Interface DeepCreatedOrigin has a new optional parameter privateEndpointStatus + - Interface ErrorResponse has a new optional parameter error + - Interface HttpVersionMatchConditionParameters has a new optional parameter transforms + - Interface Operation has a new optional parameter isDataAction + - Interface Operation has a new optional parameter origin + - Interface Operation has a new optional parameter serviceSpecification + - Interface OperationDisplay has a new optional parameter description + - Interface RequestMethodMatchConditionParameters has a new optional parameter transforms + - Interface RequestSchemeMatchConditionParameters has a new optional parameter transforms + - Interface RouteUpdateParameters has a new optional parameter cacheConfiguration + - Interface RouteUpdateParameters has a new optional parameter endpointName + - Interface RouteUpdatePropertiesParameters has a new optional parameter cacheConfiguration + - Interface RouteUpdatePropertiesParameters has a new optional parameter endpointName + - Interface RuleUpdateParameters has a new optional parameter ruleSetName + - Interface RuleUpdatePropertiesParameters has a new optional parameter ruleSetName + - Interface ValidateSecretInput has a new optional parameter secretVersion + - Type Alias AFDDomain has a new parameter profileName + - Type Alias AFDDomain has a new parameter preValidatedCustomDomainResourceId + - Type Alias AFDEndpoint has a new parameter profileName + - Type Alias AFDOrigin has a new parameter originGroupName + - Type Alias AFDOrigin has a new parameter enforceCertificateNameCheck + - Type Alias AFDOriginGroup has a new parameter profileName + - Type Alias CustomerCertificate has a new parameter secretSource + - Type Alias CustomerCertificate has a new parameter secretVersion + - Type Alias CustomerCertificate has a new parameter thumbprint + - Type Alias CustomerCertificateParameters has a new parameter subject + - Type Alias CustomerCertificateParameters has a new parameter expirationDate + - Type Alias CustomerCertificateParameters has a new parameter thumbprint + - Type Alias Endpoint has a new parameter customDomains + - Type Alias EndpointProperties has a new parameter customDomains + - Type Alias ManagedCertificateParameters has a new parameter subject + - Type Alias ManagedCertificateParameters has a new parameter expirationDate + - Type Alias Profile has a new parameter identity + - Type Alias Profile has a new parameter frontDoorId + - Type Alias Profile has a new parameter kind + - Type Alias Profile has a new parameter originResponseTimeoutSeconds + - Type Alias Route has a new parameter endpointName + - Type Alias Route has a new parameter cacheConfiguration + - Type Alias Rule has a new parameter ruleSetName + - Type Alias RuleSet has a new parameter profileName + - Type Alias RuleSetProperties has a new parameter profileName + - Type Alias Secret has a new parameter profileName + - Type Alias SecretProperties has a new parameter profileName + - Type Alias SecurityPolicy has a new parameter profileName + - Type Alias SecurityPolicyProperties has a new parameter profileName + - Added Enum KnownAfdQueryStringCachingBehavior + - Added Enum KnownClientPortOperator + - Added Enum KnownEnum47 + - Added Enum KnownHostNameOperator + - Added Enum KnownManagedServiceIdentityType + - Added Enum KnownRuleCacheBehavior + - Added Enum KnownRuleIsCompressionEnabled + - Added Enum KnownRuleQueryStringCachingBehavior + - Added Enum KnownServerPortOperator + - Added Enum KnownSocketAddrOperator + - Added Enum KnownSslProtocol + - Added Enum KnownSslProtocolOperator + - Added Enum KnownWafMatchVariable + - Enum KnownAfdCertificateType has a new value AzureFirstPartyManagedCertificate + - Enum KnownDeliveryRuleAction has a new value RouteConfigurationOverride + - Enum KnownDomainValidationState has a new value Rejected + - Enum KnownLogMetricsGroupBy has a new value CountryOrRegion + - Enum KnownMatchVariable has a new value ClientPort + - Enum KnownMatchVariable has a new value HostName + - Enum KnownMatchVariable has a new value ServerPort + - Enum KnownMatchVariable has a new value SslProtocol + - Enum KnownMetricsResponseSeriesItemUnit has a new value MilliSeconds + - Enum KnownSecretType has a new value AzureFirstPartyManagedCertificate + - Enum KnownTransform has a new value RemoveNulls + - Enum KnownTransform has a new value Trim + - Enum KnownTransform has a new value UrlDecode + - Enum KnownTransform has a new value UrlEncode + - Enum KnownWafRankingType has a new value CountryOrRegion -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes +**Breaking Changes** + - Removed operation CustomDomains.beginDisableCustomHttps + - Removed operation CustomDomains.beginDisableCustomHttpsAndWait + - Removed operation CustomDomains.beginEnableCustomHttps + - Removed operation CustomDomains.beginEnableCustomHttpsAndWait + - Removed operation RuleSets.beginCreate + - Removed operation RuleSets.beginCreateAndWait + - Removed operation Secrets.beginUpdate + - Removed operation Secrets.beginUpdateAndWait + - Operation AFDProfiles.checkHostNameAvailability has a new signature + - Interface CacheExpirationActionParameters no longer has parameter odataType + - Interface CacheKeyQueryStringActionParameters no longer has parameter odataType + - Interface CdnCertificateSourceParameters no longer has parameter odataType + - Interface Certificate no longer has parameter thumbprint + - Interface CookiesMatchConditionParameters no longer has parameter odataType + - Interface CustomDomainsDisableCustomHttpsOptionalParams no longer has parameter resumeFrom + - Interface CustomDomainsDisableCustomHttpsOptionalParams no longer has parameter updateIntervalInMs + - Interface CustomDomainsEnableCustomHttpsOptionalParams no longer has parameter resumeFrom + - Interface CustomDomainsEnableCustomHttpsOptionalParams no longer has parameter updateIntervalInMs + - Interface ErrorResponse no longer has parameter code + - Interface ErrorResponse no longer has parameter message + - Interface HeaderActionParameters no longer has parameter odataType + - Interface HttpVersionMatchConditionParameters no longer has parameter odataType + - Interface IsDeviceMatchConditionParameters no longer has parameter odataType + - Interface IsDeviceMatchConditionParameters no longer has parameter transforms + - Interface KeyVaultCertificateSourceParameters no longer has parameter odataType + - Interface KeyVaultSigningKeyParameters no longer has parameter odataType + - Interface OriginGroupOverrideActionParameters no longer has parameter odataType + - Interface PostArgsMatchConditionParameters no longer has parameter odataType + - Interface QueryStringMatchConditionParameters no longer has parameter odataType + - Interface RemoteAddressMatchConditionParameters no longer has parameter odataType + - Interface RequestBodyMatchConditionParameters no longer has parameter odataType + - Interface RequestHeaderMatchConditionParameters no longer has parameter odataType + - Interface RequestMethodMatchConditionParameters no longer has parameter odataType + - Interface RequestSchemeMatchConditionParameters no longer has parameter odataType + - Interface RequestUriMatchConditionParameters no longer has parameter odataType + - Interface RouteUpdateParameters no longer has parameter compressionSettings + - Interface RouteUpdateParameters no longer has parameter queryStringCachingBehavior + - Interface RouteUpdatePropertiesParameters no longer has parameter compressionSettings + - Interface RouteUpdatePropertiesParameters no longer has parameter queryStringCachingBehavior + - Interface RuleSetsCreateOptionalParams no longer has parameter resumeFrom + - Interface RuleSetsCreateOptionalParams no longer has parameter updateIntervalInMs + - Interface UrlFileExtensionMatchConditionParameters no longer has parameter odataType + - Interface UrlFileNameMatchConditionParameters no longer has parameter odataType + - Interface UrlPathMatchConditionParameters no longer has parameter odataType + - Interface UrlRedirectActionParameters no longer has parameter odataType + - Interface UrlRewriteActionParameters no longer has parameter odataType + - Interface UrlSigningActionParameters no longer has parameter odataType + - Interface CacheExpirationActionParameters has a new required parameter typeName + - Interface CacheKeyQueryStringActionParameters has a new required parameter typeName + - Interface CdnCertificateSourceParameters has a new required parameter typeName + - Interface CookiesMatchConditionParameters has a new required parameter typeName + - Interface HeaderActionParameters has a new required parameter typeName + - Interface HttpVersionMatchConditionParameters has a new required parameter typeName + - Interface IsDeviceMatchConditionParameters has a new required parameter typeName + - Interface KeyVaultCertificateSourceParameters has a new required parameter typeName + - Interface KeyVaultSigningKeyParameters has a new required parameter typeName + - Interface OriginGroupOverrideActionParameters has a new required parameter typeName + - Interface PostArgsMatchConditionParameters has a new required parameter typeName + - Interface QueryStringMatchConditionParameters has a new required parameter typeName + - Interface RemoteAddressMatchConditionParameters has a new required parameter typeName + - Interface RequestBodyMatchConditionParameters has a new required parameter typeName + - Interface RequestHeaderMatchConditionParameters has a new required parameter typeName + - Interface RequestMethodMatchConditionParameters has a new required parameter typeName + - Interface RequestSchemeMatchConditionParameters has a new required parameter typeName + - Interface RequestUriMatchConditionParameters has a new required parameter typeName + - Interface UrlFileExtensionMatchConditionParameters has a new required parameter typeName + - Interface UrlFileNameMatchConditionParameters has a new required parameter typeName + - Interface UrlPathMatchConditionParameters has a new required parameter typeName + - Interface UrlRedirectActionParameters has a new required parameter typeName + - Interface UrlRewriteActionParameters has a new required parameter typeName + - Interface UrlSigningActionParameters has a new required parameter typeName + - Type Alias CustomerCertificate no longer has parameter version + - Type Alias CustomerCertificate no longer has parameter certificateUrl + - Type Alias Profile no longer has parameter frontdoorId + - Type Alias Route no longer has parameter compressionSettings + - Type Alias Route no longer has parameter queryStringCachingBehavior + - Removed Enum KnownEnum46 + - Removed Enum KnownValidateSecretType + - Enum KnownLogMetricsGroupBy no longer has value Country + - Enum KnownMatchVariable no longer has value RemoteAddr + - Enum KnownSkuName no longer has value PremiumChinaCdn + - Enum KnownWafRankingType no longer has value Country + + ## 6.0.0 (2021-12-16) The package of @azure/arm-cdn is using our next generation design principles since version 6.0.0, which contains breaking changes. diff --git a/sdk/cdn/arm-cdn/LICENSE b/sdk/cdn/arm-cdn/LICENSE index ccb63b166732..5d1d36e0af80 100644 --- a/sdk/cdn/arm-cdn/LICENSE +++ b/sdk/cdn/arm-cdn/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2021 Microsoft +Copyright (c) 2022 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/cdn/arm-cdn/_meta.json b/sdk/cdn/arm-cdn/_meta.json index fcbfec47664b..91e8cacee024 100644 --- a/sdk/cdn/arm-cdn/_meta.json +++ b/sdk/cdn/arm-cdn/_meta.json @@ -1,7 +1,7 @@ { - "commit": "ea0f7b072ad3aaff203ea9003246b9e584b819ff", + "commit": "eaa54e1ccc73feca8be98915b90bd536be559fc1", "readme": "specification/cdn/resource-manager/readme.md", - "autorest_command": "autorest --version=3.1.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\mydev\\azure-sdk-for-js ../azure-rest-api-specs/specification/cdn/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20211207.1", + "autorest_command": "autorest --version=3.1.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/cdn/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20220105.1", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "use": "@autorest/typescript@6.0.0-alpha.16.20211207.1" + "use": "@autorest/typescript@6.0.0-alpha.16.20220105.1" } \ No newline at end of file diff --git a/sdk/cdn/arm-cdn/package.json b/sdk/cdn/arm-cdn/package.json index 07693adc75ca..f0b092274404 100644 --- a/sdk/cdn/arm-cdn/package.json +++ b/sdk/cdn/arm-cdn/package.json @@ -3,10 +3,8 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for CdnManagementClient.", - "version": "6.0.1", - "engines": { - "node": ">=12.0.0" - }, + "version": "7.0.0", + "engines": { "node": ">=12.0.0" }, "dependencies": { "@azure/core-lro": "^2.2.0", "@azure/abort-controller": "^1.0.0", @@ -16,13 +14,7 @@ "@azure/core-rest-pipeline": "^1.1.0", "tslib": "^2.2.0" }, - "keywords": [ - "node", - "azure", - "typescript", - "browser", - "isomorphic" - ], + "keywords": ["node", "azure", "typescript", "browser", "isomorphic"], "license": "MIT", "main": "./dist/index.js", "module": "./dist-esm/src/index.js", @@ -49,9 +41,7 @@ "type": "git", "url": "https://github.com/Azure/azure-sdk-for-js.git" }, - "bugs": { - "url": "https://github.com/Azure/azure-sdk-for-js/issues" - }, + "bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" }, "files": [ "dist/**/*.js", "dist/**/*.js.map", diff --git a/sdk/cdn/arm-cdn/review/arm-cdn.api.md b/sdk/cdn/arm-cdn/review/arm-cdn.api.md index 1cc7630d5ccb..644f9d0b9300 100644 --- a/sdk/cdn/arm-cdn/review/arm-cdn.api.md +++ b/sdk/cdn/arm-cdn/review/arm-cdn.api.md @@ -13,6 +13,12 @@ import { PollOperationState } from '@azure/core-lro'; // @public export type ActionType = string; +// @public +export interface ActivatedResourceReference { + id?: string; + readonly isActive?: boolean; +} + // @public export type AfdCertificateType = string; @@ -22,8 +28,8 @@ export interface AFDCustomDomains { beginCreateAndWait(resourceGroupName: string, profileName: string, customDomainName: string, customDomain: AFDDomain, options?: AFDCustomDomainsCreateOptionalParams): Promise; beginDelete(resourceGroupName: string, profileName: string, customDomainName: string, options?: AFDCustomDomainsDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, profileName: string, customDomainName: string, options?: AFDCustomDomainsDeleteOptionalParams): Promise; - beginRefreshValidationToken(resourceGroupName: string, profileName: string, customDomainName: string, options?: AFDCustomDomainsRefreshValidationTokenOptionalParams): Promise, AFDCustomDomainsRefreshValidationTokenResponse>>; - beginRefreshValidationTokenAndWait(resourceGroupName: string, profileName: string, customDomainName: string, options?: AFDCustomDomainsRefreshValidationTokenOptionalParams): Promise; + beginRefreshValidationToken(resourceGroupName: string, profileName: string, customDomainName: string, options?: AFDCustomDomainsRefreshValidationTokenOptionalParams): Promise, void>>; + beginRefreshValidationTokenAndWait(resourceGroupName: string, profileName: string, customDomainName: string, options?: AFDCustomDomainsRefreshValidationTokenOptionalParams): Promise; beginUpdate(resourceGroupName: string, profileName: string, customDomainName: string, customDomainUpdateProperties: AFDDomainUpdateParameters, options?: AFDCustomDomainsUpdateOptionalParams): Promise, AFDCustomDomainsUpdateResponse>>; beginUpdateAndWait(resourceGroupName: string, profileName: string, customDomainName: string, customDomainUpdateProperties: AFDDomainUpdateParameters, options?: AFDCustomDomainsUpdateOptionalParams): Promise; get(resourceGroupName: string, profileName: string, customDomainName: string, options?: AFDCustomDomainsGetOptionalParams): Promise; @@ -72,9 +78,6 @@ export interface AFDCustomDomainsRefreshValidationTokenOptionalParams extends co updateIntervalInMs?: number; } -// @public -export type AFDCustomDomainsRefreshValidationTokenResponse = ValidationToken; - // @public export interface AFDCustomDomainsUpdateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -86,8 +89,10 @@ export type AFDCustomDomainsUpdateResponse = AFDDomain; // @public export type AFDDomain = ProxyResource & { + readonly profileName?: string; tlsSettings?: AFDDomainHttpsParameters; azureDnsZone?: ResourceReference; + preValidatedCustomDomainResourceId?: ResourceReference; readonly provisioningState?: AfdProvisioningState; readonly deploymentStatus?: DeploymentStatus; readonly domainValidationState?: DomainValidationState; @@ -118,19 +123,24 @@ export type AFDDomainProperties = AFDDomainUpdatePropertiesParameters & AFDState // @public export interface AFDDomainUpdateParameters { azureDnsZone?: ResourceReference; + preValidatedCustomDomainResourceId?: ResourceReference; + readonly profileName?: string; tlsSettings?: AFDDomainHttpsParameters; } // @public export interface AFDDomainUpdatePropertiesParameters { azureDnsZone?: ResourceReference; + preValidatedCustomDomainResourceId?: ResourceReference; + readonly profileName?: string; tlsSettings?: AFDDomainHttpsParameters; } // @public export type AFDEndpoint = TrackedResource & { - originResponseTimeoutSeconds?: number; + readonly profileName?: string; enabledState?: EnabledState; + originResponseTimeoutSeconds?: number; readonly provisioningState?: AfdProvisioningState; readonly deploymentStatus?: DeploymentStatus; readonly hostName?: string; @@ -151,6 +161,7 @@ export type AFDEndpointProperties = AFDEndpointPropertiesUpdateParameters & AFDS export interface AFDEndpointPropertiesUpdateParameters { enabledState?: EnabledState; originResponseTimeoutSeconds?: number; + readonly profileName?: string; } // @public @@ -248,6 +259,7 @@ export type AFDEndpointsValidateCustomDomainResponse = ValidateCustomDomainOutpu export interface AFDEndpointUpdateParameters { enabledState?: EnabledState; originResponseTimeoutSeconds?: number; + readonly profileName?: string; tags?: { [propertyName: string]: string; }; @@ -255,7 +267,7 @@ export interface AFDEndpointUpdateParameters { // @public export interface AfdErrorResponse { - error?: ErrorResponse; + error?: ErrorDetail; } // @public @@ -263,6 +275,7 @@ export type AfdMinimumTlsVersion = "TLS10" | "TLS12"; // @public export type AFDOrigin = ProxyResource & { + readonly originGroupName?: string; azureOrigin?: ResourceReference; hostName?: string; httpPort?: number; @@ -272,12 +285,14 @@ export type AFDOrigin = ProxyResource & { weight?: number; sharedPrivateLinkResource?: Record; enabledState?: EnabledState; + enforceCertificateNameCheck?: boolean; readonly provisioningState?: AfdProvisioningState; readonly deploymentStatus?: DeploymentStatus; }; // @public export type AFDOriginGroup = ProxyResource & { + readonly profileName?: string; loadBalancingSettings?: LoadBalancingSettingsParameters; healthProbeSettings?: HealthProbeParameters; trafficRestorationTimeToHealedOrNewEndpointsInMinutes?: number; @@ -372,6 +387,7 @@ export type AFDOriginGroupsUpdateResponse = AFDOriginGroup; export interface AFDOriginGroupUpdateParameters { healthProbeSettings?: HealthProbeParameters; loadBalancingSettings?: LoadBalancingSettingsParameters; + readonly profileName?: string; responseBasedAfdOriginErrorDetectionSettings?: ResponseBasedOriginErrorDetectionParameters; sessionAffinityState?: EnabledState; trafficRestorationTimeToHealedOrNewEndpointsInMinutes?: number; @@ -381,6 +397,7 @@ export interface AFDOriginGroupUpdateParameters { export interface AFDOriginGroupUpdatePropertiesParameters { healthProbeSettings?: HealthProbeParameters; loadBalancingSettings?: LoadBalancingSettingsParameters; + readonly profileName?: string; responseBasedAfdOriginErrorDetectionSettings?: ResponseBasedOriginErrorDetectionParameters; sessionAffinityState?: EnabledState; trafficRestorationTimeToHealedOrNewEndpointsInMinutes?: number; @@ -456,9 +473,11 @@ export type AFDOriginsUpdateResponse = AFDOrigin; export interface AFDOriginUpdateParameters { azureOrigin?: ResourceReference; enabledState?: EnabledState; + enforceCertificateNameCheck?: boolean; hostName?: string; httpPort?: number; httpsPort?: number; + readonly originGroupName?: string; originHostHeader?: string; priority?: number; sharedPrivateLinkResource?: Record; @@ -469,9 +488,11 @@ export interface AFDOriginUpdateParameters { export interface AFDOriginUpdatePropertiesParameters { azureOrigin?: ResourceReference; enabledState?: EnabledState; + enforceCertificateNameCheck?: boolean; hostName?: string; httpPort?: number; httpsPort?: number; + readonly originGroupName?: string; originHostHeader?: string; priority?: number; sharedPrivateLinkResource?: Record; @@ -480,7 +501,7 @@ export interface AFDOriginUpdatePropertiesParameters { // @public export interface AFDProfiles { - checkHostNameAvailability(resourceGroupName: string, profileName: string, checkHostNameAvailabilityInput: ValidateCustomDomainInput, options?: AFDProfilesCheckHostNameAvailabilityOptionalParams): Promise; + checkHostNameAvailability(resourceGroupName: string, profileName: string, checkHostNameAvailabilityInput: CheckHostNameAvailabilityInput, options?: AFDProfilesCheckHostNameAvailabilityOptionalParams): Promise; listResourceUsage(resourceGroupName: string, profileName: string, options?: AFDProfilesListResourceUsageOptionalParams): PagedAsyncIterableIterator; } @@ -489,7 +510,7 @@ export interface AFDProfilesCheckHostNameAvailabilityOptionalParams extends core } // @public -export type AFDProfilesCheckHostNameAvailabilityResponse = ValidateCustomDomainOutput; +export type AFDProfilesCheckHostNameAvailabilityResponse = CheckNameAvailabilityOutput; // @public export interface AFDProfilesListResourceUsageNextOptionalParams extends coreClient.OperationOptions { @@ -515,7 +536,14 @@ export interface AfdPurgeParameters { } // @public -export type AfdQueryStringCachingBehavior = "IgnoreQueryString" | "UseQueryString" | "NotSet"; +export type AfdQueryStringCachingBehavior = string; + +// @public +export interface AfdRouteCacheConfiguration { + compressionSettings?: Record; + queryParameters?: string; + queryStringCachingBehavior?: AfdQueryStringCachingBehavior; +} // @public export interface AFDStateProperties { @@ -527,24 +555,41 @@ export interface AFDStateProperties { type Algorithm_2 = string; export { Algorithm_2 as Algorithm } +// @public +export type AzureFirstPartyManagedCertificate = Certificate & {}; + +// @public +export type AzureFirstPartyManagedCertificateParameters = SecretParameters & { + type: "AzureFirstPartyManagedCertificate"; +}; + // @public export type CacheBehavior = string; +// @public +export interface CacheConfiguration { + cacheBehavior?: RuleCacheBehavior; + cacheDuration?: string; + isCompressionEnabled?: RuleIsCompressionEnabled; + queryParameters?: string; + queryStringCachingBehavior?: RuleQueryStringCachingBehavior; +} + // @public export interface CacheExpirationActionParameters { cacheBehavior: CacheBehavior; cacheDuration?: string; cacheType: CacheType; // (undocumented) - odataType: "#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters"; + typeName: "DeliveryRuleCacheExpirationActionParameters"; } // @public export interface CacheKeyQueryStringActionParameters { - // (undocumented) - odataType: "#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheKeyQueryStringBehaviorActionParameters"; queryParameters?: string; queryStringBehavior: QueryStringBehavior; + // (undocumented) + typeName: "DeliveryRuleCacheKeyQueryStringBehaviorActionParameters"; } // @public @@ -554,7 +599,7 @@ export type CacheType = string; export interface CdnCertificateSourceParameters { certificateType: CertificateType; // (undocumented) - odataType: "#Microsoft.Azure.Cdn.Models.CdnCertificateSourceParameters"; + typeName: "CdnCertificateSourceParameters"; } // @public @@ -661,9 +706,9 @@ export interface CdnWebApplicationFirewallPolicyPatchParameters { // @public export interface Certificate { - expirationDate?: string; - subject?: string; - thumbprint?: string; + readonly expirationDate?: string; + readonly subject?: string; + type?: SecretType; } // @public @@ -672,6 +717,11 @@ export type CertificateSource = string; // @public export type CertificateType = string; +// @public +export interface CheckHostNameAvailabilityInput { + hostName: string; +} + // @public export interface CheckNameAvailabilityInput { name: string; @@ -705,6 +755,18 @@ export interface CidrIpAddress { prefixLength?: number; } +// @public +export interface ClientPortMatchConditionParameters { + matchValues?: string[]; + negateCondition?: boolean; + operator: ClientPortOperator; + // (undocumented) + typeName: "DeliveryRuleClientPortConditionParameters"; +} + +// @public +export type ClientPortOperator = string; + // @public (undocumented) export interface Components18OrqelSchemasWafmetricsresponsePropertiesSeriesItemsPropertiesDataItems { // (undocumented) @@ -763,11 +825,11 @@ export interface ContinentsResponseCountryOrRegionsItem { export interface CookiesMatchConditionParameters { matchValues?: string[]; negateCondition?: boolean; - // (undocumented) - odataType: "#Microsoft.Azure.Cdn.Models.DeliveryRuleCookiesConditionParameters"; operator: CookiesOperator; selector?: string; transforms?: Transform[]; + // (undocumented) + typeName: "DeliveryRuleCookiesConditionParameters"; } // @public @@ -814,10 +876,8 @@ export interface CustomDomains { beginCreateAndWait(resourceGroupName: string, profileName: string, endpointName: string, customDomainName: string, customDomainProperties: CustomDomainParameters, options?: CustomDomainsCreateOptionalParams): Promise; beginDelete(resourceGroupName: string, profileName: string, endpointName: string, customDomainName: string, options?: CustomDomainsDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, profileName: string, endpointName: string, customDomainName: string, options?: CustomDomainsDeleteOptionalParams): Promise; - beginDisableCustomHttps(resourceGroupName: string, profileName: string, endpointName: string, customDomainName: string, options?: CustomDomainsDisableCustomHttpsOptionalParams): Promise, void>>; - beginDisableCustomHttpsAndWait(resourceGroupName: string, profileName: string, endpointName: string, customDomainName: string, options?: CustomDomainsDisableCustomHttpsOptionalParams): Promise; - beginEnableCustomHttps(resourceGroupName: string, profileName: string, endpointName: string, customDomainName: string, options?: CustomDomainsEnableCustomHttpsOptionalParams): Promise, void>>; - beginEnableCustomHttpsAndWait(resourceGroupName: string, profileName: string, endpointName: string, customDomainName: string, options?: CustomDomainsEnableCustomHttpsOptionalParams): Promise; + disableCustomHttps(resourceGroupName: string, profileName: string, endpointName: string, customDomainName: string, options?: CustomDomainsDisableCustomHttpsOptionalParams): Promise; + enableCustomHttps(resourceGroupName: string, profileName: string, endpointName: string, customDomainName: string, options?: CustomDomainsEnableCustomHttpsOptionalParams): Promise; get(resourceGroupName: string, profileName: string, endpointName: string, customDomainName: string, options?: CustomDomainsGetOptionalParams): Promise; listByEndpoint(resourceGroupName: string, profileName: string, endpointName: string, options?: CustomDomainsListByEndpointOptionalParams): PagedAsyncIterableIterator; } @@ -839,17 +899,19 @@ export interface CustomDomainsDeleteOptionalParams extends coreClient.OperationO // @public export interface CustomDomainsDisableCustomHttpsOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; } +// @public +export type CustomDomainsDisableCustomHttpsResponse = CustomDomain; + // @public export interface CustomDomainsEnableCustomHttpsOptionalParams extends coreClient.OperationOptions { customDomainHttpsParameters?: CustomDomainHttpsParametersUnion; - resumeFrom?: string; - updateIntervalInMs?: number; } +// @public +export type CustomDomainsEnableCustomHttpsResponse = CustomDomain; + // @public export interface CustomDomainsGetOptionalParams extends coreClient.OperationOptions { } @@ -873,11 +935,12 @@ export type CustomDomainsListByEndpointResponse = CustomDomainListResult; // @public export type CustomerCertificate = Certificate & { - version?: string; - certificateAuthority?: string; - certificateUrl: string; + secretSource?: ResourceReference; + secretVersion?: string; + readonly certificateAuthority?: string; useLatestVersion?: boolean; subjectAlternativeNames?: string[]; + readonly thumbprint?: string; }; // @public @@ -885,9 +948,12 @@ export type CustomerCertificateParameters = SecretParameters & { type: "CustomerCertificate"; secretSource: ResourceReference; secretVersion?: string; - certificateAuthority?: string; useLatestVersion?: boolean; + readonly subject?: string; + readonly expirationDate?: string; + readonly certificateAuthority?: string; subjectAlternativeNames?: string[]; + readonly thumbprint?: string; }; // @public @@ -922,6 +988,7 @@ export interface DeepCreatedOrigin { name: string; originHostHeader?: string; priority?: number; + readonly privateEndpointStatus?: PrivateEndpointStatus; privateLinkAlias?: string; privateLinkApprovalMessage?: string; privateLinkLocation?: string; @@ -954,11 +1021,11 @@ export type DeliveryRuleAction = string; // @public export interface DeliveryRuleActionAutoGenerated { - name: "UrlRedirect" | "UrlSigning" | "OriginGroupOverride" | "UrlRewrite" | "ModifyRequestHeader" | "ModifyResponseHeader" | "CacheExpiration" | "CacheKeyQueryString"; + name: "UrlRedirect" | "UrlSigning" | "OriginGroupOverride" | "UrlRewrite" | "ModifyRequestHeader" | "ModifyResponseHeader" | "CacheExpiration" | "CacheKeyQueryString" | "RouteConfigurationOverride"; } // @public (undocumented) -export type DeliveryRuleActionAutoGeneratedUnion = DeliveryRuleActionAutoGenerated | UrlRedirectAction | UrlSigningAction | OriginGroupOverrideAction | UrlRewriteAction | DeliveryRuleRequestHeaderAction | DeliveryRuleResponseHeaderAction | DeliveryRuleCacheExpirationAction | DeliveryRuleCacheKeyQueryStringAction; +export type DeliveryRuleActionAutoGeneratedUnion = DeliveryRuleActionAutoGenerated | UrlRedirectAction | UrlSigningAction | OriginGroupOverrideAction | UrlRewriteAction | DeliveryRuleRequestHeaderAction | DeliveryRuleResponseHeaderAction | DeliveryRuleCacheExpirationAction | DeliveryRuleCacheKeyQueryStringAction | DeliveryRuleRouteConfigurationOverrideAction; // @public export type DeliveryRuleCacheExpirationAction = DeliveryRuleActionAutoGenerated & { @@ -972,13 +1039,19 @@ export type DeliveryRuleCacheKeyQueryStringAction = DeliveryRuleActionAutoGenera parameters: CacheKeyQueryStringActionParameters; }; +// @public +export type DeliveryRuleClientPortCondition = DeliveryRuleCondition & { + name: "ClientPort"; + parameters: ClientPortMatchConditionParameters; +}; + // @public export interface DeliveryRuleCondition { - name: "RemoteAddress" | "RequestMethod" | "QueryString" | "PostArgs" | "RequestUri" | "RequestHeader" | "RequestBody" | "RequestScheme" | "UrlPath" | "UrlFileExtension" | "UrlFileName" | "HttpVersion" | "Cookies" | "IsDevice"; + name: "RemoteAddress" | "RequestMethod" | "QueryString" | "PostArgs" | "RequestUri" | "RequestHeader" | "RequestBody" | "RequestScheme" | "UrlPath" | "UrlFileExtension" | "UrlFileName" | "HttpVersion" | "Cookies" | "IsDevice" | "SocketAddr" | "ClientPort" | "ServerPort" | "HostName" | "SslProtocol"; } // @public (undocumented) -export type DeliveryRuleConditionUnion = DeliveryRuleCondition | DeliveryRuleRemoteAddressCondition | DeliveryRuleRequestMethodCondition | DeliveryRuleQueryStringCondition | DeliveryRulePostArgsCondition | DeliveryRuleRequestUriCondition | DeliveryRuleRequestHeaderCondition | DeliveryRuleRequestBodyCondition | DeliveryRuleRequestSchemeCondition | DeliveryRuleUrlPathCondition | DeliveryRuleUrlFileExtensionCondition | DeliveryRuleUrlFileNameCondition | DeliveryRuleHttpVersionCondition | DeliveryRuleCookiesCondition | DeliveryRuleIsDeviceCondition; +export type DeliveryRuleConditionUnion = DeliveryRuleCondition | DeliveryRuleRemoteAddressCondition | DeliveryRuleRequestMethodCondition | DeliveryRuleQueryStringCondition | DeliveryRulePostArgsCondition | DeliveryRuleRequestUriCondition | DeliveryRuleRequestHeaderCondition | DeliveryRuleRequestBodyCondition | DeliveryRuleRequestSchemeCondition | DeliveryRuleUrlPathCondition | DeliveryRuleUrlFileExtensionCondition | DeliveryRuleUrlFileNameCondition | DeliveryRuleHttpVersionCondition | DeliveryRuleCookiesCondition | DeliveryRuleIsDeviceCondition | DeliveryRuleSocketAddrCondition | DeliveryRuleClientPortCondition | DeliveryRuleServerPortCondition | DeliveryRuleHostNameCondition | DeliveryRuleSslProtocolCondition; // @public export type DeliveryRuleCookiesCondition = DeliveryRuleCondition & { @@ -986,6 +1059,12 @@ export type DeliveryRuleCookiesCondition = DeliveryRuleCondition & { parameters: CookiesMatchConditionParameters; }; +// @public +export type DeliveryRuleHostNameCondition = DeliveryRuleCondition & { + name: "HostName"; + parameters: HostNameMatchConditionParameters; +}; + // @public export type DeliveryRuleHttpVersionCondition = DeliveryRuleCondition & { name: "HttpVersion"; @@ -1058,6 +1137,30 @@ export type DeliveryRuleResponseHeaderAction = DeliveryRuleActionAutoGenerated & parameters: HeaderActionParameters; }; +// @public +export type DeliveryRuleRouteConfigurationOverrideAction = DeliveryRuleActionAutoGenerated & { + name: "RouteConfigurationOverride"; + parameters: RouteConfigurationOverrideActionParameters; +}; + +// @public +export type DeliveryRuleServerPortCondition = DeliveryRuleCondition & { + name: "ServerPort"; + parameters: ServerPortMatchConditionParameters; +}; + +// @public +export type DeliveryRuleSocketAddrCondition = DeliveryRuleCondition & { + name: "SocketAddr"; + parameters: SocketAddrMatchConditionParameters; +}; + +// @public +export type DeliveryRuleSslProtocolCondition = DeliveryRuleCondition & { + name: "SslProtocol"; + parameters: SslProtocolMatchConditionParameters; +}; + // @public export type DeliveryRuleUrlFileExtensionCondition = DeliveryRuleCondition & { name: "UrlFileExtension"; @@ -1082,6 +1185,13 @@ export type DeploymentStatus = string; // @public export type DestinationProtocol = string; +// @public +export interface DimensionProperties { + displayName?: string; + internalName?: string; + name?: string; +} + // @public export interface DomainValidationProperties { readonly expirationDate?: string; @@ -1143,6 +1253,7 @@ export type Endpoint = TrackedResource & { readonly hostName?: string; origins?: DeepCreatedOrigin[]; originGroups?: DeepCreatedOriginGroup[]; + readonly customDomains?: CustomDomain[]; readonly resourceState?: EndpointResourceState; readonly provisioningState?: string; }; @@ -1158,6 +1269,7 @@ export type EndpointProperties = EndpointPropertiesUpdateParameters & { readonly hostName?: string; origins: DeepCreatedOrigin[]; originGroups?: DeepCreatedOriginGroup[]; + readonly customDomains?: CustomDomain[]; readonly resourceState?: EndpointResourceState; readonly provisioningState?: string; }; @@ -1334,12 +1446,26 @@ export interface EndpointUpdateParameters { } // @public -export type Enum46 = number; +export type Enum47 = number; // @public -export interface ErrorResponse { +export interface ErrorAdditionalInfo { + readonly info?: Record; + readonly type?: string; +} + +// @public +export interface ErrorDetail { + readonly additionalInfo?: ErrorAdditionalInfo[]; readonly code?: string; + readonly details?: ErrorDetail[]; readonly message?: string; + readonly target?: string; +} + +// @public +export interface ErrorResponse { + error?: ErrorDetail; } // @public @@ -1363,7 +1489,7 @@ export interface HeaderActionParameters { headerAction: HeaderAction; headerName: string; // (undocumented) - odataType: "#Microsoft.Azure.Cdn.Models.DeliveryRuleHeaderActionParameters"; + typeName: "DeliveryRuleHeaderActionParameters"; value?: string; } @@ -1378,6 +1504,19 @@ export interface HealthProbeParameters { // @public export type HealthProbeRequestType = "NotSet" | "GET" | "HEAD"; +// @public +export interface HostNameMatchConditionParameters { + matchValues?: string[]; + negateCondition?: boolean; + operator: HostNameOperator; + transforms?: Transform[]; + // (undocumented) + typeName: "DeliveryRuleHostNameConditionParameters"; +} + +// @public +export type HostNameOperator = string; + // @public export interface HttpErrorRangeParameters { begin?: number; @@ -1391,9 +1530,10 @@ export type HttpsRedirect = string; export interface HttpVersionMatchConditionParameters { matchValues?: string[]; negateCondition?: boolean; - // (undocumented) - odataType: "#Microsoft.Azure.Cdn.Models.DeliveryRuleHttpVersionConditionParameters"; operator: HttpVersionOperator; + transforms?: Transform[]; + // (undocumented) + typeName: "DeliveryRuleHttpVersionConditionParameters"; } // @public @@ -1413,10 +1553,9 @@ export interface IpAddressGroup { export interface IsDeviceMatchConditionParameters { matchValues?: IsDeviceMatchConditionParametersMatchValuesItem[]; negateCondition?: boolean; - // (undocumented) - odataType: "#Microsoft.Azure.Cdn.Models.DeliveryRuleIsDeviceConditionParameters"; operator: IsDeviceOperator; - transforms?: Transform[]; + // (undocumented) + typeName: "DeliveryRuleIsDeviceConditionParameters"; } // @public @@ -1428,24 +1567,24 @@ export type IsDeviceOperator = string; // @public export interface KeyVaultCertificateSourceParameters { deleteRule: DeleteRule; - // (undocumented) - odataType: "#Microsoft.Azure.Cdn.Models.KeyVaultCertificateSourceParameters"; resourceGroupName: string; secretName: string; secretVersion?: string; subscriptionId: string; + // (undocumented) + typeName: "KeyVaultCertificateSourceParameters"; updateRule: UpdateRule; vaultName: string; } // @public export interface KeyVaultSigningKeyParameters { - // (undocumented) - odataType: "#Microsoft.Azure.Cdn.Models.KeyVaultSigningKeyParameters"; resourceGroupName: string; secretName: string; secretVersion: string; subscriptionId: string; + // (undocumented) + typeName: "KeyVaultSigningKeyParameters"; vaultName: string; } @@ -1463,6 +1602,8 @@ export enum KnownActionType { // @public export enum KnownAfdCertificateType { + // (undocumented) + AzureFirstPartyManagedCertificate = "AzureFirstPartyManagedCertificate", // (undocumented) CustomerCertificate = "CustomerCertificate", // (undocumented) @@ -1491,6 +1632,18 @@ export enum KnownAfdProvisioningState { Updating = "Updating" } +// @public +export enum KnownAfdQueryStringCachingBehavior { + // (undocumented) + IgnoreQueryString = "IgnoreQueryString", + // (undocumented) + IgnoreSpecifiedQueryStrings = "IgnoreSpecifiedQueryStrings", + // (undocumented) + IncludeSpecifiedQueryStrings = "IncludeSpecifiedQueryStrings", + // (undocumented) + UseQueryString = "UseQueryString" +} + // @public export enum KnownAlgorithm { // (undocumented) @@ -1529,6 +1682,30 @@ export enum KnownCertificateType { Shared = "Shared" } +// @public +export enum KnownClientPortOperator { + // (undocumented) + Any = "Any", + // (undocumented) + BeginsWith = "BeginsWith", + // (undocumented) + Contains = "Contains", + // (undocumented) + EndsWith = "EndsWith", + // (undocumented) + Equal = "Equal", + // (undocumented) + GreaterThan = "GreaterThan", + // (undocumented) + GreaterThanOrEqual = "GreaterThanOrEqual", + // (undocumented) + LessThan = "LessThan", + // (undocumented) + LessThanOrEqual = "LessThanOrEqual", + // (undocumented) + RegEx = "RegEx" +} + // @public export enum KnownCookiesOperator { // (undocumented) @@ -1628,6 +1805,8 @@ export enum KnownDeliveryRuleAction { // (undocumented) OriginGroupOverride = "OriginGroupOverride", // (undocumented) + RouteConfigurationOverride = "RouteConfigurationOverride", + // (undocumented) UrlRedirect = "UrlRedirect", // (undocumented) UrlRewrite = "UrlRewrite", @@ -1666,6 +1845,8 @@ export enum KnownDomainValidationState { // (undocumented) PendingRevalidation = "PendingRevalidation", // (undocumented) + Rejected = "Rejected", + // (undocumented) Submitting = "Submitting", // (undocumented) TimedOut = "TimedOut", @@ -1698,7 +1879,7 @@ export enum KnownEndpointResourceState { } // @public -export enum KnownEnum46 { +export enum KnownEnum47 { // (undocumented) FourHundredFive = 405, // (undocumented) @@ -1731,6 +1912,30 @@ export enum KnownHeaderAction { Overwrite = "Overwrite" } +// @public +export enum KnownHostNameOperator { + // (undocumented) + Any = "Any", + // (undocumented) + BeginsWith = "BeginsWith", + // (undocumented) + Contains = "Contains", + // (undocumented) + EndsWith = "EndsWith", + // (undocumented) + Equal = "Equal", + // (undocumented) + GreaterThan = "GreaterThan", + // (undocumented) + GreaterThanOrEqual = "GreaterThanOrEqual", + // (undocumented) + LessThan = "LessThan", + // (undocumented) + LessThanOrEqual = "LessThanOrEqual", + // (undocumented) + RegEx = "RegEx" +} + // @public export enum KnownHttpsRedirect { // (undocumented) @@ -1810,7 +2015,7 @@ export enum KnownLogMetricsGroupBy { // (undocumented) CacheStatus = "cacheStatus", // (undocumented) - Country = "country", + CountryOrRegion = "countryOrRegion", // (undocumented) CustomDomain = "customDomain", // (undocumented) @@ -1857,6 +2062,14 @@ export enum KnownManagedRuleEnabledState { Enabled = "Enabled" } +// @public +export enum KnownManagedServiceIdentityType { + // (undocumented) + None = "None", + // (undocumented) + SystemAssigned = "SystemAssigned" +} + // @public export enum KnownMatchProcessingBehavior { // (undocumented) @@ -1867,9 +2080,13 @@ export enum KnownMatchProcessingBehavior { // @public export enum KnownMatchVariable { + // (undocumented) + ClientPort = "ClientPort", // (undocumented) Cookies = "Cookies", // (undocumented) + HostName = "HostName", + // (undocumented) HttpVersion = "HttpVersion", // (undocumented) IsDevice = "IsDevice", @@ -1878,8 +2095,6 @@ export enum KnownMatchVariable { // (undocumented) QueryString = "QueryString", // (undocumented) - RemoteAddr = "RemoteAddr", - // (undocumented) RemoteAddress = "RemoteAddress", // (undocumented) RequestBody = "RequestBody", @@ -1892,8 +2107,12 @@ export enum KnownMatchVariable { // (undocumented) RequestUri = "RequestUri", // (undocumented) + ServerPort = "ServerPort", + // (undocumented) SocketAddr = "SocketAddr", // (undocumented) + SslProtocol = "SslProtocol", + // (undocumented) UrlFileExtension = "UrlFileExtension", // (undocumented) UrlFileName = "UrlFileName", @@ -1918,7 +2137,9 @@ export enum KnownMetricsResponseSeriesItemUnit { // (undocumented) Bytes = "bytes", // (undocumented) - Count = "count" + Count = "count", + // (undocumented) + MilliSeconds = "milliSeconds" } // @public @@ -2255,8 +2476,40 @@ export enum KnownRequestUriOperator { RegEx = "RegEx" } +// @public +export enum KnownRuleCacheBehavior { + // (undocumented) + HonorOrigin = "HonorOrigin", + // (undocumented) + OverrideAlways = "OverrideAlways", + // (undocumented) + OverrideIfOriginMissing = "OverrideIfOriginMissing" +} + +// @public +export enum KnownRuleIsCompressionEnabled { + // (undocumented) + Disabled = "Disabled", + // (undocumented) + Enabled = "Enabled" +} + +// @public +export enum KnownRuleQueryStringCachingBehavior { + // (undocumented) + IgnoreQueryString = "IgnoreQueryString", + // (undocumented) + IgnoreSpecifiedQueryStrings = "IgnoreSpecifiedQueryStrings", + // (undocumented) + IncludeSpecifiedQueryStrings = "IncludeSpecifiedQueryStrings", + // (undocumented) + UseQueryString = "UseQueryString" +} + // @public export enum KnownSecretType { + // (undocumented) + AzureFirstPartyManagedCertificate = "AzureFirstPartyManagedCertificate", // (undocumented) CustomerCertificate = "CustomerCertificate", // (undocumented) @@ -2271,6 +2524,30 @@ export enum KnownSecurityPolicyType { WebApplicationFirewall = "WebApplicationFirewall" } +// @public +export enum KnownServerPortOperator { + // (undocumented) + Any = "Any", + // (undocumented) + BeginsWith = "BeginsWith", + // (undocumented) + Contains = "Contains", + // (undocumented) + EndsWith = "EndsWith", + // (undocumented) + Equal = "Equal", + // (undocumented) + GreaterThan = "GreaterThan", + // (undocumented) + GreaterThanOrEqual = "GreaterThanOrEqual", + // (undocumented) + LessThan = "LessThan", + // (undocumented) + LessThanOrEqual = "LessThanOrEqual", + // (undocumented) + RegEx = "RegEx" +} + // @public export enum KnownSkuName { // (undocumented) @@ -2278,8 +2555,6 @@ export enum KnownSkuName { // (undocumented) PremiumAzureFrontDoor = "Premium_AzureFrontDoor", // (undocumented) - PremiumChinaCdn = "Premium_ChinaCdn", - // (undocumented) PremiumVerizon = "Premium_Verizon", // (undocumented) Standard955BandWidthChinaCdn = "Standard_955BandWidth_ChinaCdn", @@ -2303,6 +2578,30 @@ export enum KnownSkuName { StandardVerizon = "Standard_Verizon" } +// @public +export enum KnownSocketAddrOperator { + // (undocumented) + Any = "Any", + // (undocumented) + IPMatch = "IPMatch" +} + +// @public +export enum KnownSslProtocol { + // (undocumented) + TLSv1 = "TLSv1", + // (undocumented) + TLSv11 = "TLSv1.1", + // (undocumented) + TLSv12 = "TLSv1.2" +} + +// @public +export enum KnownSslProtocolOperator { + // (undocumented) + Equal = "Equal" +} + // @public export enum KnownStatus { // (undocumented) @@ -2320,7 +2619,15 @@ export enum KnownTransform { // (undocumented) Lowercase = "Lowercase", // (undocumented) - Uppercase = "Uppercase" + RemoveNulls = "RemoveNulls", + // (undocumented) + Trim = "Trim", + // (undocumented) + Uppercase = "Uppercase", + // (undocumented) + UrlDecode = "UrlDecode", + // (undocumented) + UrlEncode = "UrlEncode" } // @public @@ -2425,16 +2732,6 @@ export enum KnownUsageUnit { Count = "Count" } -// @public -export enum KnownValidateSecretType { - // (undocumented) - CustomerCertificate = "CustomerCertificate", - // (undocumented) - ManagedCertificate = "ManagedCertificate", - // (undocumented) - UrlSigningKey = "UrlSigningKey" -} - // @public export enum KnownWafAction { // (undocumented) @@ -2457,6 +2754,28 @@ export enum KnownWafGranularity { PT5M = "PT5M" } +// @public +export enum KnownWafMatchVariable { + // (undocumented) + Cookies = "Cookies", + // (undocumented) + PostArgs = "PostArgs", + // (undocumented) + QueryString = "QueryString", + // (undocumented) + RemoteAddr = "RemoteAddr", + // (undocumented) + RequestBody = "RequestBody", + // (undocumented) + RequestHeader = "RequestHeader", + // (undocumented) + RequestMethod = "RequestMethod", + // (undocumented) + RequestUri = "RequestUri", + // (undocumented) + SocketAddr = "SocketAddr" +} + // @public export enum KnownWafMetric { // (undocumented) @@ -2488,7 +2807,7 @@ export enum KnownWafRankingType { // (undocumented) ClientIp = "clientIp", // (undocumented) - Country = "country", + CountryOrRegion = "countryOrRegion", // (undocumented) RuleGroup = "ruleGroup", // (undocumented) @@ -2602,12 +2921,22 @@ export type LogRanking = string; // @public export type LogRankingMetric = string; +// @public +export interface LogSpecification { + blobDuration?: string; + displayName?: string; + logFilterPattern?: string; + name?: string; +} + // @public export type ManagedCertificate = Certificate & {}; // @public export type ManagedCertificateParameters = SecretParameters & { type: "ManagedCertificate"; + readonly subject?: string; + readonly expirationDate?: string; }; // @public @@ -2686,10 +3015,20 @@ export interface ManagedRuleSetsListOptionalParams extends coreClient.OperationO // @public export type ManagedRuleSetsListResponse = ManagedRuleSetDefinitionList; +// @public +export interface ManagedServiceIdentity { + readonly principalId?: string; + readonly tenantId?: string; + type?: ManagedServiceIdentityType; +} + +// @public +export type ManagedServiceIdentityType = string; + // @public export interface MatchCondition { matchValue: string[]; - matchVariable: MatchVariable; + matchVariable: WafMatchVariable; negateCondition?: boolean; operator: Operator; selector?: string; @@ -2702,6 +3041,29 @@ export type MatchProcessingBehavior = string; // @public export type MatchVariable = string; +// @public +export interface MetricAvailability { + // (undocumented) + blobDuration?: string; + // (undocumented) + timeGrain?: string; +} + +// @public +export interface MetricSpecification { + aggregationType?: string; + availabilities?: MetricAvailability[]; + dimensions?: DimensionProperties[]; + displayDescription?: string; + displayName?: string; + fillGapWithZero?: boolean; + isInternal?: boolean; + metricFilterPattern?: string; + name?: string; + supportedTimeGrainTypes?: string[]; + unit?: string; +} + // @public export interface MetricsResponse { // (undocumented) @@ -2746,11 +3108,15 @@ export type MinimumTlsVersion = "None" | "TLS10" | "TLS12"; // @public export interface Operation { display?: OperationDisplay; + isDataAction?: boolean; readonly name?: string; + readonly origin?: string; + serviceSpecification?: ServiceSpecification; } // @public export interface OperationDisplay { + readonly description?: string; readonly operation?: string; readonly provider?: string; readonly resource?: string; @@ -2778,7 +3144,7 @@ export type OperationsListResponse = OperationsListResult; // @public export interface OperationsListResult { nextLink?: string; - readonly value?: Operation[]; + value?: Operation[]; } // @public @@ -2821,6 +3187,12 @@ export interface OriginGroupListResult { readonly value?: OriginGroup[]; } +// @public +export interface OriginGroupOverride { + forwardingProtocol?: ForwardingProtocol; + originGroup?: ResourceReference; +} + // @public export type OriginGroupOverrideAction = DeliveryRuleActionAutoGenerated & { name: "OriginGroupOverride"; @@ -2829,9 +3201,9 @@ export type OriginGroupOverrideAction = DeliveryRuleActionAutoGenerated & { // @public export interface OriginGroupOverrideActionParameters { - // (undocumented) - odataType: "#Microsoft.Azure.Cdn.Models.DeliveryRuleOriginGroupOverrideActionParameters"; originGroup: ResourceReference; + // (undocumented) + typeName: "DeliveryRuleOriginGroupOverrideActionParameters"; } // @public @@ -3088,7 +3460,7 @@ export type PolicyResourceState = string; // @public export interface PolicySettings { defaultCustomBlockResponseBody?: string; - defaultCustomBlockResponseStatusCode?: Enum46; + defaultCustomBlockResponseStatusCode?: Enum47; defaultRedirectUrl?: string; enabledState?: PolicyEnabledState; mode?: PolicyMode; @@ -3098,11 +3470,11 @@ export interface PolicySettings { export interface PostArgsMatchConditionParameters { matchValues?: string[]; negateCondition?: boolean; - // (undocumented) - odataType: "#Microsoft.Azure.Cdn.Models.DeliveryRulePostArgsConditionParameters"; operator: PostArgsOperator; selector?: string; transforms?: Transform[]; + // (undocumented) + typeName: "DeliveryRulePostArgsConditionParameters"; } // @public @@ -3118,8 +3490,11 @@ export type ProbeProtocol = "NotSet" | "Http" | "Https"; export type Profile = TrackedResource & { sku: Sku; readonly resourceState?: ProfileResourceState; + identity?: ManagedServiceIdentity; readonly provisioningState?: string; - readonly frontdoorId?: string; + readonly frontDoorId?: string; + readonly kind?: string; + originResponseTimeoutSeconds?: number; }; // @public @@ -3265,10 +3640,10 @@ export type QueryStringCachingBehavior = "IgnoreQueryString" | "BypassCaching" | export interface QueryStringMatchConditionParameters { matchValues?: string[]; negateCondition?: boolean; - // (undocumented) - odataType: "#Microsoft.Azure.Cdn.Models.DeliveryRuleQueryStringConditionParameters"; operator: QueryStringOperator; transforms?: Transform[]; + // (undocumented) + typeName: "DeliveryRuleQueryStringConditionParameters"; } // @public @@ -3328,10 +3703,10 @@ export type RedirectType = string; export interface RemoteAddressMatchConditionParameters { matchValues?: string[]; negateCondition?: boolean; - // (undocumented) - odataType: "#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters"; operator: RemoteAddressOperator; transforms?: Transform[]; + // (undocumented) + typeName: "DeliveryRuleRemoteAddressConditionParameters"; } // @public @@ -3341,10 +3716,10 @@ export type RemoteAddressOperator = string; export interface RequestBodyMatchConditionParameters { matchValues?: string[]; negateCondition?: boolean; - // (undocumented) - odataType: "#Microsoft.Azure.Cdn.Models.DeliveryRuleRequestBodyConditionParameters"; operator: RequestBodyOperator; transforms?: Transform[]; + // (undocumented) + typeName: "DeliveryRuleRequestBodyConditionParameters"; } // @public @@ -3354,11 +3729,11 @@ export type RequestBodyOperator = string; export interface RequestHeaderMatchConditionParameters { matchValues?: string[]; negateCondition?: boolean; - // (undocumented) - odataType: "#Microsoft.Azure.Cdn.Models.DeliveryRuleRequestHeaderConditionParameters"; operator: RequestHeaderOperator; selector?: string; transforms?: Transform[]; + // (undocumented) + typeName: "DeliveryRuleRequestHeaderConditionParameters"; } // @public @@ -3368,9 +3743,10 @@ export type RequestHeaderOperator = string; export interface RequestMethodMatchConditionParameters { matchValues?: RequestMethodMatchConditionParametersMatchValuesItem[]; negateCondition?: boolean; - // (undocumented) - odataType: "#Microsoft.Azure.Cdn.Models.DeliveryRuleRequestMethodConditionParameters"; operator: RequestMethodOperator; + transforms?: Transform[]; + // (undocumented) + typeName: "DeliveryRuleRequestMethodConditionParameters"; } // @public @@ -3383,9 +3759,10 @@ export type RequestMethodOperator = string; export interface RequestSchemeMatchConditionParameters { matchValues?: RequestSchemeMatchConditionParametersMatchValuesItem[]; negateCondition?: boolean; - // (undocumented) - odataType: "#Microsoft.Azure.Cdn.Models.DeliveryRuleRequestSchemeConditionParameters"; operator: "Equal"; + transforms?: Transform[]; + // (undocumented) + typeName: "DeliveryRuleRequestSchemeConditionParameters"; } // @public @@ -3395,10 +3772,10 @@ export type RequestSchemeMatchConditionParametersMatchValuesItem = string; export interface RequestUriMatchConditionParameters { matchValues?: string[]; negateCondition?: boolean; - // (undocumented) - odataType: "#Microsoft.Azure.Cdn.Models.DeliveryRuleRequestUriConditionParameters"; operator: RequestUriOperator; transforms?: Transform[]; + // (undocumented) + typeName: "DeliveryRuleRequestUriConditionParameters"; } // @public @@ -3506,14 +3883,14 @@ export interface ResponseBasedOriginErrorDetectionParameters { // @public export type Route = ProxyResource & { - customDomains?: ResourceReference[]; + readonly endpointName?: string; + customDomains?: ActivatedResourceReference[]; originGroup?: ResourceReference; originPath?: string; ruleSets?: ResourceReference[]; supportedProtocols?: AFDEndpointProtocols[]; patternsToMatch?: string[]; - compressionSettings?: Record; - queryStringCachingBehavior?: AfdQueryStringCachingBehavior; + cacheConfiguration?: AfdRouteCacheConfiguration; forwardingProtocol?: ForwardingProtocol; linkToDefaultDomain?: LinkToDefaultDomain; httpsRedirect?: HttpsRedirect; @@ -3522,6 +3899,14 @@ export type Route = ProxyResource & { readonly deploymentStatus?: DeploymentStatus; }; +// @public +export interface RouteConfigurationOverrideActionParameters { + cacheConfiguration?: CacheConfiguration; + originGroupOverride?: OriginGroupOverride; + // (undocumented) + typeName: "DeliveryRuleRouteConfigurationOverrideActionParameters"; +} + // @public export interface RouteListResult { nextLink?: string; @@ -3590,38 +3975,39 @@ export type RoutesUpdateResponse = Route; // @public export interface RouteUpdateParameters { - compressionSettings?: Record; - customDomains?: ResourceReference[]; + cacheConfiguration?: AfdRouteCacheConfiguration; + customDomains?: ActivatedResourceReference[]; enabledState?: EnabledState; + readonly endpointName?: string; forwardingProtocol?: ForwardingProtocol; httpsRedirect?: HttpsRedirect; linkToDefaultDomain?: LinkToDefaultDomain; originGroup?: ResourceReference; originPath?: string; patternsToMatch?: string[]; - queryStringCachingBehavior?: AfdQueryStringCachingBehavior; ruleSets?: ResourceReference[]; supportedProtocols?: AFDEndpointProtocols[]; } // @public export interface RouteUpdatePropertiesParameters { - compressionSettings?: Record; - customDomains?: ResourceReference[]; + cacheConfiguration?: AfdRouteCacheConfiguration; + customDomains?: ActivatedResourceReference[]; enabledState?: EnabledState; + readonly endpointName?: string; forwardingProtocol?: ForwardingProtocol; httpsRedirect?: HttpsRedirect; linkToDefaultDomain?: LinkToDefaultDomain; originGroup?: ResourceReference; originPath?: string; patternsToMatch?: string[]; - queryStringCachingBehavior?: AfdQueryStringCachingBehavior; ruleSets?: ResourceReference[]; supportedProtocols?: AFDEndpointProtocols[]; } // @public export type Rule = ProxyResource & { + readonly ruleSetName?: string; order?: number; conditions?: DeliveryRuleConditionUnion[]; actions?: DeliveryRuleActionAutoGeneratedUnion[]; @@ -3630,6 +4016,12 @@ export type Rule = ProxyResource & { readonly deploymentStatus?: DeploymentStatus; }; +// @public +export type RuleCacheBehavior = string; + +// @public +export type RuleIsCompressionEnabled = string; + // @public export interface RuleListResult { nextLink?: string; @@ -3639,6 +4031,9 @@ export interface RuleListResult { // @public export type RuleProperties = RuleUpdatePropertiesParameters & AFDStateProperties & {}; +// @public +export type RuleQueryStringCachingBehavior = string; + // @public export interface Rules { beginCreate(resourceGroupName: string, profileName: string, ruleSetName: string, ruleName: string, rule: Rule, options?: RulesCreateOptionalParams): Promise, RulesCreateResponse>>; @@ -3670,6 +4065,7 @@ export interface RulesDeleteOptionalParams extends coreClient.OperationOptions { export type RuleSet = ProxyResource & { readonly provisioningState?: AfdProvisioningState; readonly deploymentStatus?: DeploymentStatus; + readonly profileName?: string; }; // @public @@ -3679,14 +4075,15 @@ export interface RuleSetListResult { } // @public -export type RuleSetProperties = AFDStateProperties & {}; +export type RuleSetProperties = AFDStateProperties & { + readonly profileName?: string; +}; // @public export interface RuleSets { - beginCreate(resourceGroupName: string, profileName: string, ruleSetName: string, options?: RuleSetsCreateOptionalParams): Promise, RuleSetsCreateResponse>>; - beginCreateAndWait(resourceGroupName: string, profileName: string, ruleSetName: string, options?: RuleSetsCreateOptionalParams): Promise; beginDelete(resourceGroupName: string, profileName: string, ruleSetName: string, options?: RuleSetsDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, profileName: string, ruleSetName: string, options?: RuleSetsDeleteOptionalParams): Promise; + create(resourceGroupName: string, profileName: string, ruleSetName: string, options?: RuleSetsCreateOptionalParams): Promise; get(resourceGroupName: string, profileName: string, ruleSetName: string, options?: RuleSetsGetOptionalParams): Promise; listByProfile(resourceGroupName: string, profileName: string, options?: RuleSetsListByProfileOptionalParams): PagedAsyncIterableIterator; listResourceUsage(resourceGroupName: string, profileName: string, ruleSetName: string, options?: RuleSetsListResourceUsageOptionalParams): PagedAsyncIterableIterator; @@ -3694,8 +4091,6 @@ export interface RuleSets { // @public export interface RuleSetsCreateOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; } // @public @@ -3778,6 +4173,7 @@ export interface RuleUpdateParameters { conditions?: DeliveryRuleConditionUnion[]; matchProcessingBehavior?: MatchProcessingBehavior; order?: number; + readonly ruleSetName?: string; } // @public @@ -3786,12 +4182,14 @@ export interface RuleUpdatePropertiesParameters { conditions?: DeliveryRuleConditionUnion[]; matchProcessingBehavior?: MatchProcessingBehavior; order?: number; + readonly ruleSetName?: string; } // @public export type Secret = ProxyResource & { readonly provisioningState?: AfdProvisioningState; readonly deploymentStatus?: DeploymentStatus; + readonly profileName?: string; parameters?: SecretParametersUnion; }; @@ -3803,14 +4201,15 @@ export interface SecretListResult { // @public export interface SecretParameters { - type: "UrlSigningKey" | "ManagedCertificate" | "CustomerCertificate"; + type: "UrlSigningKey" | "ManagedCertificate" | "CustomerCertificate" | "AzureFirstPartyManagedCertificate"; } // @public (undocumented) -export type SecretParametersUnion = SecretParameters | UrlSigningKeyParameters | ManagedCertificateParameters | CustomerCertificateParameters; +export type SecretParametersUnion = SecretParameters | UrlSigningKeyParameters | ManagedCertificateParameters | CustomerCertificateParameters | AzureFirstPartyManagedCertificateParameters; // @public export type SecretProperties = AFDStateProperties & { + readonly profileName?: string; parameters?: SecretParametersUnion; }; @@ -3820,8 +4219,6 @@ export interface Secrets { beginCreateAndWait(resourceGroupName: string, profileName: string, secretName: string, secret: Secret, options?: SecretsCreateOptionalParams): Promise; beginDelete(resourceGroupName: string, profileName: string, secretName: string, options?: SecretsDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, profileName: string, secretName: string, options?: SecretsDeleteOptionalParams): Promise; - beginUpdate(resourceGroupName: string, profileName: string, secretName: string, secretProperties: SecretProperties, options?: SecretsUpdateOptionalParams): Promise, SecretsUpdateResponse>>; - beginUpdateAndWait(resourceGroupName: string, profileName: string, secretName: string, secretProperties: SecretProperties, options?: SecretsUpdateOptionalParams): Promise; get(resourceGroupName: string, profileName: string, secretName: string, options?: SecretsGetOptionalParams): Promise; listByProfile(resourceGroupName: string, profileName: string, options?: SecretsListByProfileOptionalParams): PagedAsyncIterableIterator; } @@ -3862,15 +4259,6 @@ export interface SecretsListByProfileOptionalParams extends coreClient.Operation // @public export type SecretsListByProfileResponse = SecretListResult; -// @public -export interface SecretsUpdateOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type SecretsUpdateResponse = Secret; - // @public export type SecretType = string; @@ -3935,6 +4323,7 @@ export type SecurityPoliciesPatchResponse = SecurityPolicy; export type SecurityPolicy = ProxyResource & { readonly provisioningState?: AfdProvisioningState; readonly deploymentStatus?: DeploymentStatus; + readonly profileName?: string; parameters?: SecurityPolicyParametersUnion; }; @@ -3954,6 +4343,7 @@ export type SecurityPolicyParametersUnion = SecurityPolicyParameters | SecurityP // @public export type SecurityPolicyProperties = AFDStateProperties & { + readonly profileName?: string; parameters?: SecurityPolicyParametersUnion; }; @@ -3962,7 +4352,7 @@ export type SecurityPolicyType = string; // @public export interface SecurityPolicyWebApplicationFirewallAssociation { - domains?: ResourceReference[]; + domains?: ActivatedResourceReference[]; patternsToMatch?: string[]; } @@ -3973,6 +4363,24 @@ export type SecurityPolicyWebApplicationFirewallParameters = SecurityPolicyParam associations?: SecurityPolicyWebApplicationFirewallAssociation[]; }; +// @public +export interface ServerPortMatchConditionParameters { + matchValues?: string[]; + negateCondition?: boolean; + operator: ServerPortOperator; + // (undocumented) + typeName: "DeliveryRuleServerPortConditionParameters"; +} + +// @public +export type ServerPortOperator = string; + +// @public +export interface ServiceSpecification { + logSpecifications?: LogSpecification[]; + metricSpecifications?: MetricSpecification[]; +} + // @public export interface SharedPrivateLinkResourceProperties { groupId?: string; @@ -3993,6 +4401,33 @@ export interface Sku { // @public export type SkuName = string; +// @public +export interface SocketAddrMatchConditionParameters { + matchValues?: string[]; + negateCondition?: boolean; + operator: SocketAddrOperator; + // (undocumented) + typeName: "DeliveryRuleSocketAddrConditionParameters"; +} + +// @public +export type SocketAddrOperator = string; + +// @public +export type SslProtocol = string; + +// @public +export interface SslProtocolMatchConditionParameters { + matchValues?: SslProtocol[]; + negateCondition?: boolean; + operator: SslProtocolOperator; + // (undocumented) + typeName: "DeliveryRuleSslProtocolConditionParameters"; +} + +// @public +export type SslProtocolOperator = string; + // @public export interface SsoUri { readonly ssoUriValue?: string; @@ -4037,10 +4472,10 @@ export type UpdateRule = string; export interface UrlFileExtensionMatchConditionParameters { matchValues?: string[]; negateCondition?: boolean; - // (undocumented) - odataType: "#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlFileExtensionMatchConditionParameters"; operator: UrlFileExtensionOperator; transforms?: Transform[]; + // (undocumented) + typeName: "DeliveryRuleUrlFileExtensionMatchConditionParameters"; } // @public @@ -4050,10 +4485,10 @@ export type UrlFileExtensionOperator = string; export interface UrlFileNameMatchConditionParameters { matchValues?: string[]; negateCondition?: boolean; - // (undocumented) - odataType: "#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlFilenameConditionParameters"; operator: UrlFileNameOperator; transforms?: Transform[]; + // (undocumented) + typeName: "DeliveryRuleUrlFilenameConditionParameters"; } // @public @@ -4063,10 +4498,10 @@ export type UrlFileNameOperator = string; export interface UrlPathMatchConditionParameters { matchValues?: string[]; negateCondition?: boolean; - // (undocumented) - odataType: "#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlPathMatchConditionParameters"; operator: UrlPathOperator; transforms?: Transform[]; + // (undocumented) + typeName: "DeliveryRuleUrlPathMatchConditionParameters"; } // @public @@ -4085,9 +4520,9 @@ export interface UrlRedirectActionParameters { customPath?: string; customQueryString?: string; destinationProtocol?: DestinationProtocol; - // (undocumented) - odataType: "#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlRedirectActionParameters"; redirectType: RedirectType; + // (undocumented) + typeName: "DeliveryRuleUrlRedirectActionParameters"; } // @public @@ -4099,10 +4534,10 @@ export type UrlRewriteAction = DeliveryRuleActionAutoGenerated & { // @public export interface UrlRewriteActionParameters { destination: string; - // (undocumented) - odataType: "#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlRewriteActionParameters"; preserveUnmatchedPath?: boolean; sourcePattern: string; + // (undocumented) + typeName: "DeliveryRuleUrlRewriteActionParameters"; } // @public @@ -4114,9 +4549,9 @@ export type UrlSigningAction = DeliveryRuleActionAutoGenerated & { // @public export interface UrlSigningActionParameters { algorithm?: Algorithm_2; - // (undocumented) - odataType: "#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlSigningActionParameters"; parameterNameOverride?: UrlSigningParamIdentifier[]; + // (undocumented) + typeName: "DeliveryRuleUrlSigningActionParameters"; } // @public @@ -4208,7 +4643,8 @@ export type ValidateProbeResponse = ValidateProbeOutput; // @public export interface ValidateSecretInput { secretSource: ResourceReference; - secretType: ValidateSecretType; + secretType: SecretType; + secretVersion?: string; } // @public @@ -4224,9 +4660,6 @@ export interface ValidateSecretOutput { // @public export type ValidateSecretResponse = ValidateSecretOutput; -// @public -export type ValidateSecretType = string; - // @public export interface ValidationToken { readonly token?: string; @@ -4238,6 +4671,9 @@ export type WafAction = string; // @public export type WafGranularity = string; +// @public +export type WafMatchVariable = string; + // @public export type WafMetric = string; diff --git a/sdk/cdn/arm-cdn/src/cdnManagementClient.ts b/sdk/cdn/arm-cdn/src/cdnManagementClient.ts index 7db6755e7456..a6915874930d 100644 --- a/sdk/cdn/arm-cdn/src/cdnManagementClient.ts +++ b/sdk/cdn/arm-cdn/src/cdnManagementClient.ts @@ -9,14 +9,6 @@ import * as coreClient from "@azure/core-client"; import * as coreAuth from "@azure/core-auth"; import { - ProfilesImpl, - EndpointsImpl, - OriginsImpl, - OriginGroupsImpl, - CustomDomainsImpl, - ResourceUsageOperationsImpl, - OperationsImpl, - EdgeNodesImpl, AFDProfilesImpl, AFDCustomDomainsImpl, AFDEndpointsImpl, @@ -29,18 +21,18 @@ import { SecretsImpl, ValidateImpl, LogAnalyticsImpl, + ProfilesImpl, + EndpointsImpl, + OriginsImpl, + OriginGroupsImpl, + CustomDomainsImpl, + ResourceUsageOperationsImpl, + OperationsImpl, + EdgeNodesImpl, PoliciesImpl, ManagedRuleSetsImpl } from "./operations"; import { - Profiles, - Endpoints, - Origins, - OriginGroups, - CustomDomains, - ResourceUsageOperations, - Operations, - EdgeNodes, AFDProfiles, AFDCustomDomains, AFDEndpoints, @@ -53,6 +45,14 @@ import { Secrets, Validate, LogAnalytics, + Profiles, + Endpoints, + Origins, + OriginGroups, + CustomDomains, + ResourceUsageOperations, + Operations, + EdgeNodes, Policies, ManagedRuleSets } from "./operationsInterfaces"; @@ -102,7 +102,7 @@ export class CdnManagementClient extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-cdn/6.0.0`; + const packageDetails = `azsdk-js-arm-cdn/7.0.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -125,15 +125,7 @@ export class CdnManagementClient extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2020-09-01"; - this.profiles = new ProfilesImpl(this); - this.endpoints = new EndpointsImpl(this); - this.origins = new OriginsImpl(this); - this.originGroups = new OriginGroupsImpl(this); - this.customDomains = new CustomDomainsImpl(this); - this.resourceUsageOperations = new ResourceUsageOperationsImpl(this); - this.operations = new OperationsImpl(this); - this.edgeNodes = new EdgeNodesImpl(this); + this.apiVersion = options.apiVersion || "2021-06-01"; this.aFDProfiles = new AFDProfilesImpl(this); this.aFDCustomDomains = new AFDCustomDomainsImpl(this); this.aFDEndpoints = new AFDEndpointsImpl(this); @@ -146,6 +138,14 @@ export class CdnManagementClient extends coreClient.ServiceClient { this.secrets = new SecretsImpl(this); this.validate = new ValidateImpl(this); this.logAnalytics = new LogAnalyticsImpl(this); + this.profiles = new ProfilesImpl(this); + this.endpoints = new EndpointsImpl(this); + this.origins = new OriginsImpl(this); + this.originGroups = new OriginGroupsImpl(this); + this.customDomains = new CustomDomainsImpl(this); + this.resourceUsageOperations = new ResourceUsageOperationsImpl(this); + this.operations = new OperationsImpl(this); + this.edgeNodes = new EdgeNodesImpl(this); this.policies = new PoliciesImpl(this); this.managedRuleSets = new ManagedRuleSetsImpl(this); } @@ -199,14 +199,6 @@ export class CdnManagementClient extends coreClient.ServiceClient { ); } - profiles: Profiles; - endpoints: Endpoints; - origins: Origins; - originGroups: OriginGroups; - customDomains: CustomDomains; - resourceUsageOperations: ResourceUsageOperations; - operations: Operations; - edgeNodes: EdgeNodes; aFDProfiles: AFDProfiles; aFDCustomDomains: AFDCustomDomains; aFDEndpoints: AFDEndpoints; @@ -219,6 +211,14 @@ export class CdnManagementClient extends coreClient.ServiceClient { secrets: Secrets; validate: Validate; logAnalytics: LogAnalytics; + profiles: Profiles; + endpoints: Endpoints; + origins: Origins; + originGroups: OriginGroups; + customDomains: CustomDomains; + resourceUsageOperations: ResourceUsageOperations; + operations: Operations; + edgeNodes: EdgeNodes; policies: Policies; managedRuleSets: ManagedRuleSets; } diff --git a/sdk/cdn/arm-cdn/src/models/index.ts b/sdk/cdn/arm-cdn/src/models/index.ts index 42508ba9ceae..a303a6d8162f 100644 --- a/sdk/cdn/arm-cdn/src/models/index.ts +++ b/sdk/cdn/arm-cdn/src/models/index.ts @@ -23,7 +23,12 @@ export type DeliveryRuleConditionUnion = | DeliveryRuleUrlFileNameCondition | DeliveryRuleHttpVersionCondition | DeliveryRuleCookiesCondition - | DeliveryRuleIsDeviceCondition; + | DeliveryRuleIsDeviceCondition + | DeliveryRuleSocketAddrCondition + | DeliveryRuleClientPortCondition + | DeliveryRuleServerPortCondition + | DeliveryRuleHostNameCondition + | DeliveryRuleSslProtocolCondition; export type DeliveryRuleActionAutoGeneratedUnion = | DeliveryRuleActionAutoGenerated | UrlRedirectAction @@ -33,11 +38,8 @@ export type DeliveryRuleActionAutoGeneratedUnion = | DeliveryRuleRequestHeaderAction | DeliveryRuleResponseHeaderAction | DeliveryRuleCacheExpirationAction - | DeliveryRuleCacheKeyQueryStringAction; -export type CustomDomainHttpsParametersUnion = - | CustomDomainHttpsParameters - | CdnManagedHttpsParameters - | UserManagedHttpsParameters; + | DeliveryRuleCacheKeyQueryStringAction + | DeliveryRuleRouteConfigurationOverrideAction; export type SecurityPolicyParametersUnion = | SecurityPolicyParameters | SecurityPolicyWebApplicationFirewallParameters; @@ -45,23 +47,185 @@ export type SecretParametersUnion = | SecretParameters | UrlSigningKeyParameters | ManagedCertificateParameters - | CustomerCertificateParameters; + | CustomerCertificateParameters + | AzureFirstPartyManagedCertificateParameters; +export type CustomDomainHttpsParametersUnion = + | CustomDomainHttpsParameters + | CdnManagedHttpsParameters + | UserManagedHttpsParameters; -/** Result of the request to list profiles. It contains a list of profile objects and a URL link to get the next set of results. */ -export interface ProfileListResult { +/** The list usages operation response. */ +export interface UsagesListResult { + /** The list of resource usages. */ + value?: Usage[]; + /** URL to get the next set of results. */ + nextLink?: string; +} + +/** Describes resource usage. */ +export interface Usage { /** - * List of CDN profiles within a resource group. + * Resource identifier. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: Profile[]; - /** URL to get the next set of profile objects if there are any. */ + readonly id?: string; + /** An enum describing the unit of measurement. */ + unit: UsageUnit; + /** The current value of the usage. */ + currentValue: number; + /** The limit of usage. */ + limit: number; + /** The name of the type of usage. */ + name: UsageName; +} + +/** The usage names. */ +export interface UsageName { + /** A string describing the resource name. */ + value?: string; + /** A localized string describing the resource name. */ + localizedValue?: string; +} + +/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */ +export interface AfdErrorResponse { + /** The error object. */ + error?: ErrorDetail; +} + +/** The error detail. */ +export interface ErrorDetail { + /** + * The error code. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly code?: string; + /** + * The error message. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly message?: string; + /** + * The error target. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly target?: string; + /** + * The error details. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly details?: ErrorDetail[]; + /** + * The error additional info. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly additionalInfo?: ErrorAdditionalInfo[]; +} + +/** The resource management error additional info. */ +export interface ErrorAdditionalInfo { + /** + * The additional info type. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; + /** + * The additional info. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly info?: Record; +} + +/** Input of CheckHostNameAvailability API. */ +export interface CheckHostNameAvailabilityInput { + /** The host name to validate. */ + hostName: string; +} + +/** Output of check name availability API. */ +export interface CheckNameAvailabilityOutput { + /** + * Indicates whether the name is available. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nameAvailable?: boolean; + /** + * The reason why the name is not available. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly reason?: string; + /** + * The detailed error message describing why the name is not available. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly message?: string; +} + +/** Result of the request to list domains. It contains a list of domain objects and a URL link to get the next set of results. */ +export interface AFDDomainListResult { + /** + * List of AzureFrontDoor domains within a profile. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: AFDDomain[]; + /** URL to get the next set of domain objects if there are any. */ nextLink?: string; } -/** The pricing tier (defines a CDN provider, feature list and rate) of the CDN profile. */ -export interface Sku { - /** Name of the pricing tier. */ - name?: SkuName; +/** The JSON object that contains the properties to validate a domain. */ +export interface DomainValidationProperties { + /** + * Challenge used for DNS TXT record or file based validation + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly validationToken?: string; + /** + * The date time that the token expires + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly expirationDate?: string; +} + +/** The JSON object that contains the properties of the domain to create. */ +export interface AFDDomainUpdatePropertiesParameters { + /** + * The name of the profile which holds the domain. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly profileName?: string; + /** The configuration specifying how to enable HTTPS for the domain - using AzureFrontDoor managed certificate or user's own certificate. If not specified, enabling ssl uses AzureFrontDoor managed certificate by default. */ + tlsSettings?: AFDDomainHttpsParameters; + /** Resource reference to the Azure DNS zone */ + azureDnsZone?: ResourceReference; + /** Resource reference to the Azure resource where custom domain ownership was prevalidated */ + preValidatedCustomDomainResourceId?: ResourceReference; +} + +/** The JSON object that contains the properties to secure a domain. */ +export interface AFDDomainHttpsParameters { + /** Defines the source of the SSL certificate. */ + certificateType: AfdCertificateType; + /** TLS protocol version that will be used for Https */ + minimumTlsVersion?: AfdMinimumTlsVersion; + /** Resource reference to the secret. ie. subs/rg/profile/secret */ + secret?: ResourceReference; +} + +/** Reference to another resource. */ +export interface ResourceReference { + /** Resource ID. */ + id?: string; +} + +/** The tracking states for afd resources. */ +export interface AFDStateProperties { + /** + * Provisioning status + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: AfdProvisioningState; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly deploymentStatus?: DeploymentStatus; } /** The core properties of ARM resources */ @@ -104,130 +268,131 @@ export interface SystemData { lastModifiedAt?: Date; } -/** Error response indicates CDN service is not able to process the incoming request. The reason is provided in the error message. */ -export interface ErrorResponse { - /** - * Error code. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly code?: string; +/** The domain JSON object required for domain creation or update. */ +export interface AFDDomainUpdateParameters { /** - * Error message indicating why the operation failed. + * The name of the profile which holds the domain. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly message?: string; -} - -/** Properties required to update a profile. */ -export interface ProfileUpdateParameters { - /** Profile tags */ - tags?: { [propertyName: string]: string }; + readonly profileName?: string; + /** The configuration specifying how to enable HTTPS for the domain - using AzureFrontDoor managed certificate or user's own certificate. If not specified, enabling ssl uses AzureFrontDoor managed certificate by default. */ + tlsSettings?: AFDDomainHttpsParameters; + /** Resource reference to the Azure DNS zone */ + azureDnsZone?: ResourceReference; + /** Resource reference to the Azure resource where custom domain ownership was prevalidated */ + preValidatedCustomDomainResourceId?: ResourceReference; } -/** The URI required to login to the supplemental portal from the Azure portal. */ -export interface SsoUri { +/** Result of the request to list endpoints. It contains a list of endpoint objects and a URL link to get the next set of results. */ +export interface AFDEndpointListResult { /** - * The URI used to login to the supplemental portal. + * List of AzureFrontDoor endpoints within a profile * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly ssoUriValue?: string; + readonly value?: AFDEndpoint[]; + /** URL to get the next set of endpoint objects if there is any. */ + nextLink?: string; } -/** The result of the GetSupportedOptimizationTypes API */ -export interface SupportedOptimizationTypesListResult { +/** The JSON object containing endpoint update parameters. */ +export interface AFDEndpointPropertiesUpdateParameters { /** - * Supported optimization types for a profile. + * The name of the profile which holds the endpoint. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedOptimizationTypes?: OptimizationType[]; + readonly profileName?: string; + /** Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled' */ + enabledState?: EnabledState; + /** Send and receive timeout on forwarding request to the origin. When timeout is reached, the request fails and returns. */ + originResponseTimeoutSeconds?: number; } -/** Output of check resource usage API. */ -export interface ResourceUsageListResult { +/** Properties required to create or update an endpoint. */ +export interface AFDEndpointUpdateParameters { + /** Endpoint tags. */ + tags?: { [propertyName: string]: string }; /** - * List of resource usages. + * The name of the profile which holds the endpoint. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ResourceUsage[]; - /** URL to get the next set of custom domain objects if there are any. */ - nextLink?: string; + readonly profileName?: string; + /** Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled' */ + enabledState?: EnabledState; + /** Send and receive timeout on forwarding request to the origin. When timeout is reached, the request fails and returns. */ + originResponseTimeoutSeconds?: number; } -/** Output of check resource usage API. */ -export interface ResourceUsage { - /** - * Resource type for which the usage is provided. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly resourceType?: string; +/** Parameters required for content purge. */ +export interface AfdPurgeParameters { + /** The path to the content to be purged. Can describe a file path or a wild card directory. */ + contentPaths: string[]; + /** List of domains. */ + domains?: string[]; +} + +/** Input of the custom domain to be validated for DNS mapping. */ +export interface ValidateCustomDomainInput { + /** The host name of the custom domain. Must be a domain name. */ + hostName: string; +} + +/** Output of custom domain validation. */ +export interface ValidateCustomDomainOutput { /** - * Unit of the usage. e.g. Count. + * Indicates whether the custom domain is valid or not. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly unit?: string; + readonly customDomainValidated?: boolean; /** - * Actual value of usage on the specified resource type. + * The reason why the custom domain is not valid. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly currentValue?: number; + readonly reason?: string; /** - * Quota of the specified resource type. + * Error message describing why the custom domain is not valid. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly limit?: number; + readonly message?: string; } -/** Result of the request to list endpoints. It contains a list of endpoint objects and a URL link to get the next set of results. */ -export interface EndpointListResult { +/** Result of the request to list origin groups. It contains a list of origin groups objects and a URL link to get the next set of results. */ +export interface AFDOriginGroupListResult { /** - * List of CDN endpoints within a profile + * List of CDN origin groups within an endpoint * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: Endpoint[]; - /** URL to get the next set of endpoint objects if there is any. */ + readonly value?: AFDOriginGroup[]; + /** URL to get the next set of origin objects if there are any. */ nextLink?: string; } -/** The main origin of CDN content which is added when creating a CDN endpoint. */ -export interface DeepCreatedOrigin { - /** Origin name which must be unique within the endpoint. */ - name: string; - /** The address of the origin. It can be a domain name, IPv4 address, or IPv6 address. This should be unique across all origins in an endpoint. */ - hostName?: string; - /** The value of the HTTP port. Must be between 1 and 65535. */ - httpPort?: number; - /** The value of the HTTPS port. Must be between 1 and 65535. */ - httpsPort?: number; - /** The host header value sent to the origin with each request. If you leave this blank, the request hostname determines this value. Azure CDN origins, such as Web Apps, Blob Storage, and Cloud Services require this host header value to match the origin hostname by default. */ - originHostHeader?: string; - /** Priority of origin in given origin group for load balancing. Higher priorities will not be used for load balancing if any lower priority origin is healthy.Must be between 1 and 5. */ - priority?: number; - /** Weight of the origin in given origin group for load balancing. Must be between 1 and 1000 */ - weight?: number; - /** Origin is enabled for load balancing or not. By default, origin is always enabled. */ - enabled?: boolean; - /** The Alias of the Private Link resource. Populating this optional field indicates that this origin is 'Private' */ - privateLinkAlias?: string; - /** The Resource Id of the Private Link resource. Populating this optional field indicates that this backend is 'Private' */ - privateLinkResourceId?: string; - /** The location of the Private Link resource. Required only if 'privateLinkResourceId' is populated */ - privateLinkLocation?: string; - /** A custom message to be included in the approval request to connect to the Private Link. */ - privateLinkApprovalMessage?: string; -} - -/** The origin group for CDN content which is added when creating a CDN endpoint. Traffic is sent to the origins within the origin group based on origin health. */ -export interface DeepCreatedOriginGroup { - /** Origin group name which must be unique within the endpoint. */ - name: string; +/** The JSON object that contains the properties of the origin group. */ +export interface AFDOriginGroupUpdatePropertiesParameters { + /** + * The name of the profile which holds the origin group. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly profileName?: string; + /** Load balancing settings for a backend pool */ + loadBalancingSettings?: LoadBalancingSettingsParameters; /** Health probe settings to the origin that is used to determine the health of the origin. */ healthProbeSettings?: HealthProbeParameters; - /** The source of the content being delivered via CDN within given origin group. */ - origins?: ResourceReference[]; /** Time in minutes to shift the traffic to the endpoint gradually when an unhealthy endpoint comes healthy or a new endpoint is added. Default is 10 mins. This property is currently not supported. */ trafficRestorationTimeToHealedOrNewEndpointsInMinutes?: number; - /** The JSON object that contains the properties to determine origin health using real requests/responses.This property is currently not supported. */ - responseBasedOriginErrorDetectionSettings?: ResponseBasedOriginErrorDetectionParameters; + /** The JSON object that contains the properties to determine origin health using real requests/responses. This property is currently not supported. */ + responseBasedAfdOriginErrorDetectionSettings?: ResponseBasedOriginErrorDetectionParameters; + /** Whether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled' */ + sessionAffinityState?: EnabledState; +} + +/** Round-Robin load balancing settings for a backend pool */ +export interface LoadBalancingSettingsParameters { + /** The number of samples to consider for load balancing decisions */ + sampleSize?: number; + /** The number of samples within the sample period that must succeed */ + successfulSamplesRequired?: number; + /** The additional latency in milliseconds for probes to fall into the lowest latency bucket */ + additionalLatencyInMilliseconds?: number; } /** The JSON object that contains the properties to send health probes to origin. */ @@ -242,12 +407,6 @@ export interface HealthProbeParameters { probeIntervalInSeconds?: number; } -/** Reference to another resource. */ -export interface ResourceReference { - /** Resource ID. */ - id?: string; -} - /** The JSON object that contains the properties to determine origin health using real requests/responses. */ export interface ResponseBasedOriginErrorDetectionParameters { /** Type of response errors for real user requests for which origin will be deemed unhealthy */ @@ -266,98 +425,234 @@ export interface HttpErrorRangeParameters { end?: number; } -/** The JSON object containing endpoint update parameters. */ -export interface EndpointPropertiesUpdateParameters { - /** A directory path on the origin that CDN can use to retrieve content from, e.g. contoso.cloudapp.net/originpath. */ - originPath?: string; - /** List of content types on which compression applies. The value should be a valid MIME type. */ - contentTypesToCompress?: string[]; - /** The host header value sent to the origin with each request. This property at Endpoint is only allowed when endpoint uses single origin and can be overridden by the same property specified at origin.If you leave this blank, the request hostname determines this value. Azure CDN origins, such as Web Apps, Blob Storage, and Cloud Services require this host header value to match the origin hostname by default. */ +/** AFDOrigin group properties needed for origin group creation or update. */ +export interface AFDOriginGroupUpdateParameters { + /** + * The name of the profile which holds the origin group. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly profileName?: string; + /** Load balancing settings for a backend pool */ + loadBalancingSettings?: LoadBalancingSettingsParameters; + /** Health probe settings to the origin that is used to determine the health of the origin. */ + healthProbeSettings?: HealthProbeParameters; + /** Time in minutes to shift the traffic to the endpoint gradually when an unhealthy endpoint comes healthy or a new endpoint is added. Default is 10 mins. This property is currently not supported. */ + trafficRestorationTimeToHealedOrNewEndpointsInMinutes?: number; + /** The JSON object that contains the properties to determine origin health using real requests/responses. This property is currently not supported. */ + responseBasedAfdOriginErrorDetectionSettings?: ResponseBasedOriginErrorDetectionParameters; + /** Whether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled' */ + sessionAffinityState?: EnabledState; +} + +/** Result of the request to list origins. It contains a list of origin objects and a URL link to get the next set of results. */ +export interface AFDOriginListResult { + /** + * List of CDN origins within an endpoint + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: AFDOrigin[]; + /** URL to get the next set of origin objects if there are any. */ + nextLink?: string; +} + +/** The JSON object that contains the properties of the origin. */ +export interface AFDOriginUpdatePropertiesParameters { + /** + * The name of the origin group which contains this origin. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly originGroupName?: string; + /** Resource reference to the Azure origin resource. */ + azureOrigin?: ResourceReference; + /** The address of the origin. Domain names, IPv4 addresses, and IPv6 addresses are supported.This should be unique across all origins in an endpoint. */ + hostName?: string; + /** The value of the HTTP port. Must be between 1 and 65535. */ + httpPort?: number; + /** The value of the HTTPS port. Must be between 1 and 65535. */ + httpsPort?: number; + /** The host header value sent to the origin with each request. If you leave this blank, the request hostname determines this value. Azure CDN origins, such as Web Apps, Blob Storage, and Cloud Services require this host header value to match the origin hostname by default. This overrides the host header defined at Endpoint */ originHostHeader?: string; - /** Indicates whether content compression is enabled on CDN. Default value is false. If compression is enabled, content will be served as compressed if user requests for a compressed version. Content won't be compressed on CDN when requested content is smaller than 1 byte or larger than 1 MB. */ - isCompressionEnabled?: boolean; - /** Indicates whether HTTP traffic is allowed on the endpoint. Default value is true. At least one protocol (HTTP or HTTPS) must be allowed. */ - isHttpAllowed?: boolean; - /** Indicates whether HTTPS traffic is allowed on the endpoint. Default value is true. At least one protocol (HTTP or HTTPS) must be allowed. */ - isHttpsAllowed?: boolean; - /** Defines how CDN caches requests that include query strings. You can ignore any query strings when caching, bypass caching to prevent requests that contain query strings from being cached, or cache every request with a unique URL. */ - queryStringCachingBehavior?: QueryStringCachingBehavior; - /** Specifies what scenario the customer wants this CDN endpoint to optimize for, e.g. Download, Media services. With this information, CDN can apply scenario driven optimization. */ - optimizationType?: OptimizationType; - /** Path to a file hosted on the origin which helps accelerate delivery of the dynamic content and calculate the most optimal routes for the CDN. This is relative to the origin path. This property is only relevant when using a single origin. */ - probePath?: string; - /** List of rules defining the user's geo access within a CDN endpoint. Each geo filter defines an access rule to a specified path or content, e.g. block APAC for path /pictures/ */ - geoFilters?: GeoFilter[]; - /** A reference to the origin group. */ - defaultOriginGroup?: ResourceReference; - /** List of keys used to validate the signed URL hashes. */ - urlSigningKeys?: UrlSigningKey[]; - /** A policy that specifies the delivery rules to be used for an endpoint. */ - deliveryPolicy?: EndpointPropertiesUpdateParametersDeliveryPolicy; - /** Defines the Web Application Firewall policy for the endpoint (if applicable) */ - webApplicationFirewallPolicyLink?: EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink; + /** Priority of origin in given origin group for load balancing. Higher priorities will not be used for load balancing if any lower priority origin is healthy.Must be between 1 and 5 */ + priority?: number; + /** Weight of the origin in given origin group for load balancing. Must be between 1 and 1000 */ + weight?: number; + /** The properties of the private link resource for private origin. */ + sharedPrivateLinkResource?: Record; + /** Whether to enable health probes to be made against backends defined under backendPools. Health probes can only be disabled if there is a single enabled backend in single enabled backend pool. */ + enabledState?: EnabledState; + /** Whether to enable certificate name check at origin level */ + enforceCertificateNameCheck?: boolean; } -/** Rules defining user's geo access within a CDN endpoint. */ -export interface GeoFilter { - /** Relative path applicable to geo filter. (e.g. '/mypictures', '/mypicture/kitty.jpg', and etc.) */ - relativePath: string; - /** Action of the geo filter, i.e. allow or block access. */ - action: GeoFilterActions; - /** Two letter country codes defining user country access in a geo filter, e.g. AU, MX, US. */ - countryCodes: string[]; +/** AFDOrigin properties needed for origin update. */ +export interface AFDOriginUpdateParameters { + /** + * The name of the origin group which contains this origin. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly originGroupName?: string; + /** Resource reference to the Azure origin resource. */ + azureOrigin?: ResourceReference; + /** The address of the origin. Domain names, IPv4 addresses, and IPv6 addresses are supported.This should be unique across all origins in an endpoint. */ + hostName?: string; + /** The value of the HTTP port. Must be between 1 and 65535. */ + httpPort?: number; + /** The value of the HTTPS port. Must be between 1 and 65535. */ + httpsPort?: number; + /** The host header value sent to the origin with each request. If you leave this blank, the request hostname determines this value. Azure CDN origins, such as Web Apps, Blob Storage, and Cloud Services require this host header value to match the origin hostname by default. This overrides the host header defined at Endpoint */ + originHostHeader?: string; + /** Priority of origin in given origin group for load balancing. Higher priorities will not be used for load balancing if any lower priority origin is healthy.Must be between 1 and 5 */ + priority?: number; + /** Weight of the origin in given origin group for load balancing. Must be between 1 and 1000 */ + weight?: number; + /** The properties of the private link resource for private origin. */ + sharedPrivateLinkResource?: Record; + /** Whether to enable health probes to be made against backends defined under backendPools. Health probes can only be disabled if there is a single enabled backend in single enabled backend pool. */ + enabledState?: EnabledState; + /** Whether to enable certificate name check at origin level */ + enforceCertificateNameCheck?: boolean; } -/** Url signing key */ -export interface UrlSigningKey { - /** Defines the customer defined key Id. This id will exist in the incoming request to indicate the key used to form the hash. */ - keyId: string; - /** Defines the parameters for using customer key vault for Url Signing Key. */ - keySourceParameters: KeyVaultSigningKeyParameters; +/** Result of the request to list routes. It contains a list of route objects and a URL link to get the next set of results. */ +export interface RouteListResult { + /** + * List of AzureFrontDoor routes within a profile. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: Route[]; + /** URL to get the next set of route objects if there are any. */ + nextLink?: string; } -/** Describes the parameters for using a user's KeyVault for URL Signing Key. */ -export interface KeyVaultSigningKeyParameters { - odataType: "#Microsoft.Azure.Cdn.Models.KeyVaultSigningKeyParameters"; - /** Subscription Id of the user's Key Vault containing the secret */ - subscriptionId: string; - /** Resource group of the user's Key Vault containing the secret */ - resourceGroupName: string; - /** The name of the user's Key Vault containing the secret */ - vaultName: string; - /** The name of secret in Key Vault. */ - secretName: string; - /** The version(GUID) of secret in Key Vault. */ - secretVersion: string; +/** The JSON object that contains the properties of the domain to create. */ +export interface RouteUpdatePropertiesParameters { + /** + * The name of the endpoint which holds the route. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly endpointName?: string; + /** Domains referenced by this endpoint. */ + customDomains?: ActivatedResourceReference[]; + /** A reference to the origin group. */ + originGroup?: ResourceReference; + /** A directory path on the origin that AzureFrontDoor can use to retrieve content from, e.g. contoso.cloudapp.net/originpath. */ + originPath?: string; + /** rule sets referenced by this endpoint. */ + ruleSets?: ResourceReference[]; + /** List of supported protocols for this route. */ + supportedProtocols?: AFDEndpointProtocols[]; + /** The route patterns of the rule. */ + patternsToMatch?: string[]; + /** The caching configuration for this route. To disable caching, do not provide a cacheConfiguration object. */ + cacheConfiguration?: AfdRouteCacheConfiguration; + /** Protocol this rule will use when forwarding traffic to backends. */ + forwardingProtocol?: ForwardingProtocol; + /** whether this route will be linked to the default endpoint domain. */ + linkToDefaultDomain?: LinkToDefaultDomain; + /** Whether to automatically redirect HTTP traffic to HTTPS traffic. Note that this is a easy way to set up this rule and it will be the first rule that gets executed. */ + httpsRedirect?: HttpsRedirect; + /** Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled' */ + enabledState?: EnabledState; } -/** A policy that specifies the delivery rules to be used for an endpoint. */ -export interface EndpointPropertiesUpdateParametersDeliveryPolicy { - /** User-friendly description of the policy. */ - description?: string; - /** A list of the delivery rules. */ - rules: DeliveryRule[]; +/** Reference to another resource along with its state. */ +export interface ActivatedResourceReference { + /** Resource ID. */ + id?: string; + /** + * Whether the resource is active or inactive + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly isActive?: boolean; } -/** A rule that specifies a set of actions and conditions */ -export interface DeliveryRule { - /** Name of the rule */ - name?: string; - /** The order in which the rules are applied for the endpoint. Possible values {0,1,2,3,………}. A rule with a lesser order will be applied before a rule with a greater order. Rule with order 0 is a special rule. It does not require any condition and actions listed in it will always be applied. */ - order: number; - /** A list of conditions that must be matched for the actions to be executed */ - conditions?: DeliveryRuleConditionUnion[]; - /** A list of actions that are executed when all the conditions of a rule are satisfied. */ - actions: DeliveryRuleActionAutoGeneratedUnion[]; +/** Caching settings for a caching-type route. To disable caching, do not provide a cacheConfiguration object. */ +export interface AfdRouteCacheConfiguration { + /** Defines how Frontdoor caches requests that include query strings. You can ignore any query strings when caching, ignore specific query strings, cache every request with a unique URL, or cache specific query strings. */ + queryStringCachingBehavior?: AfdQueryStringCachingBehavior; + /** query parameters to include or exclude (comma separated). */ + queryParameters?: string; + /** compression settings. */ + compressionSettings?: Record; } -/** A condition for the delivery rule. */ -export interface DeliveryRuleCondition { - /** Polymorphic discriminator, which specifies the different types this object can be */ - name: - | "RemoteAddress" - | "RequestMethod" - | "QueryString" +/** The domain JSON object required for domain creation or update. */ +export interface RouteUpdateParameters { + /** + * The name of the endpoint which holds the route. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly endpointName?: string; + /** Domains referenced by this endpoint. */ + customDomains?: ActivatedResourceReference[]; + /** A reference to the origin group. */ + originGroup?: ResourceReference; + /** A directory path on the origin that AzureFrontDoor can use to retrieve content from, e.g. contoso.cloudapp.net/originpath. */ + originPath?: string; + /** rule sets referenced by this endpoint. */ + ruleSets?: ResourceReference[]; + /** List of supported protocols for this route. */ + supportedProtocols?: AFDEndpointProtocols[]; + /** The route patterns of the rule. */ + patternsToMatch?: string[]; + /** The caching configuration for this route. To disable caching, do not provide a cacheConfiguration object. */ + cacheConfiguration?: AfdRouteCacheConfiguration; + /** Protocol this rule will use when forwarding traffic to backends. */ + forwardingProtocol?: ForwardingProtocol; + /** whether this route will be linked to the default endpoint domain. */ + linkToDefaultDomain?: LinkToDefaultDomain; + /** Whether to automatically redirect HTTP traffic to HTTPS traffic. Note that this is a easy way to set up this rule and it will be the first rule that gets executed. */ + httpsRedirect?: HttpsRedirect; + /** Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled' */ + enabledState?: EnabledState; +} + +/** Result of the request to list rule sets. It contains a list of rule set objects and a URL link to get the next set of results. */ +export interface RuleSetListResult { + /** + * List of AzureFrontDoor rule sets within a profile. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: RuleSet[]; + /** URL to get the next set of rule set objects if there are any. */ + nextLink?: string; +} + +/** Result of the request to list rules. It contains a list of rule objects and a URL link to get the next set of results. */ +export interface RuleListResult { + /** + * List of AzureFrontDoor rules within a rule set. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: Rule[]; + /** URL to get the next set of rule objects if there are any. */ + nextLink?: string; +} + +/** The JSON object that contains the properties of the rule to update. */ +export interface RuleUpdatePropertiesParameters { + /** + * The name of the rule set containing the rule. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly ruleSetName?: string; + /** The order in which the rules are applied for the endpoint. Possible values {0,1,2,3,………}. A rule with a lesser order will be applied before a rule with a greater order. Rule with order 0 is a special rule. It does not require any condition and actions listed in it will always be applied. */ + order?: number; + /** A list of conditions that must be matched for the actions to be executed */ + conditions?: DeliveryRuleConditionUnion[]; + /** A list of actions that are executed when all the conditions of a rule are satisfied. */ + actions?: DeliveryRuleActionAutoGeneratedUnion[]; + /** If this rule is a match should the rules engine continue running the remaining rules or stop. If not present, defaults to Continue. */ + matchProcessingBehavior?: MatchProcessingBehavior; +} + +/** A condition for the delivery rule. */ +export interface DeliveryRuleCondition { + /** Polymorphic discriminator, which specifies the different types this object can be */ + name: + | "RemoteAddress" + | "RequestMethod" + | "QueryString" | "PostArgs" | "RequestUri" | "RequestHeader" @@ -368,7 +663,12 @@ export interface DeliveryRuleCondition { | "UrlFileName" | "HttpVersion" | "Cookies" - | "IsDevice"; + | "IsDevice" + | "SocketAddr" + | "ClientPort" + | "ServerPort" + | "HostName" + | "SslProtocol"; } /** An action for the delivery rule. */ @@ -382,876 +682,824 @@ export interface DeliveryRuleActionAutoGenerated { | "ModifyRequestHeader" | "ModifyResponseHeader" | "CacheExpiration" - | "CacheKeyQueryString"; -} - -/** Defines the Web Application Firewall policy for the endpoint (if applicable) */ -export interface EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink { - /** Resource ID. */ - id?: string; -} - -/** Properties required to create or update an endpoint. */ -export interface EndpointUpdateParameters { - /** Endpoint tags. */ - tags?: { [propertyName: string]: string }; - /** A directory path on the origin that CDN can use to retrieve content from, e.g. contoso.cloudapp.net/originpath. */ - originPath?: string; - /** List of content types on which compression applies. The value should be a valid MIME type. */ - contentTypesToCompress?: string[]; - /** The host header value sent to the origin with each request. This property at Endpoint is only allowed when endpoint uses single origin and can be overridden by the same property specified at origin.If you leave this blank, the request hostname determines this value. Azure CDN origins, such as Web Apps, Blob Storage, and Cloud Services require this host header value to match the origin hostname by default. */ - originHostHeader?: string; - /** Indicates whether content compression is enabled on CDN. Default value is false. If compression is enabled, content will be served as compressed if user requests for a compressed version. Content won't be compressed on CDN when requested content is smaller than 1 byte or larger than 1 MB. */ - isCompressionEnabled?: boolean; - /** Indicates whether HTTP traffic is allowed on the endpoint. Default value is true. At least one protocol (HTTP or HTTPS) must be allowed. */ - isHttpAllowed?: boolean; - /** Indicates whether HTTPS traffic is allowed on the endpoint. Default value is true. At least one protocol (HTTP or HTTPS) must be allowed. */ - isHttpsAllowed?: boolean; - /** Defines how CDN caches requests that include query strings. You can ignore any query strings when caching, bypass caching to prevent requests that contain query strings from being cached, or cache every request with a unique URL. */ - queryStringCachingBehavior?: QueryStringCachingBehavior; - /** Specifies what scenario the customer wants this CDN endpoint to optimize for, e.g. Download, Media services. With this information, CDN can apply scenario driven optimization. */ - optimizationType?: OptimizationType; - /** Path to a file hosted on the origin which helps accelerate delivery of the dynamic content and calculate the most optimal routes for the CDN. This is relative to the origin path. This property is only relevant when using a single origin. */ - probePath?: string; - /** List of rules defining the user's geo access within a CDN endpoint. Each geo filter defines an access rule to a specified path or content, e.g. block APAC for path /pictures/ */ - geoFilters?: GeoFilter[]; - /** A reference to the origin group. */ - defaultOriginGroup?: ResourceReference; - /** List of keys used to validate the signed URL hashes. */ - urlSigningKeys?: UrlSigningKey[]; - /** A policy that specifies the delivery rules to be used for an endpoint. */ - deliveryPolicy?: EndpointPropertiesUpdateParametersDeliveryPolicy; - /** Defines the Web Application Firewall policy for the endpoint (if applicable) */ - webApplicationFirewallPolicyLink?: EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink; -} - -/** Parameters required for content purge. */ -export interface PurgeParameters { - /** The path to the content to be purged. Can describe a file path or a wild card directory. */ - contentPaths: string[]; -} - -/** Parameters required for content load. */ -export interface LoadParameters { - /** The path to the content to be loaded. Path should be a relative file URL of the origin. */ - contentPaths: string[]; -} - -/** Input of the custom domain to be validated for DNS mapping. */ -export interface ValidateCustomDomainInput { - /** The host name of the custom domain. Must be a domain name. */ - hostName: string; + | "CacheKeyQueryString" + | "RouteConfigurationOverride"; } -/** Output of custom domain validation. */ -export interface ValidateCustomDomainOutput { - /** - * Indicates whether the custom domain is valid or not. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly customDomainValidated?: boolean; - /** - * The reason why the custom domain is not valid. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly reason?: string; +/** The domain JSON object required for domain creation or update. */ +export interface RuleUpdateParameters { /** - * Error message describing why the custom domain is not valid. + * The name of the rule set containing the rule. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly message?: string; + readonly ruleSetName?: string; + /** The order in which the rules are applied for the endpoint. Possible values {0,1,2,3,………}. A rule with a lesser order will be applied before a rule with a greater order. Rule with order 0 is a special rule. It does not require any condition and actions listed in it will always be applied. */ + order?: number; + /** A list of conditions that must be matched for the actions to be executed */ + conditions?: DeliveryRuleConditionUnion[]; + /** A list of actions that are executed when all the conditions of a rule are satisfied. */ + actions?: DeliveryRuleActionAutoGeneratedUnion[]; + /** If this rule is a match should the rules engine continue running the remaining rules or stop. If not present, defaults to Continue. */ + matchProcessingBehavior?: MatchProcessingBehavior; } -/** Result of the request to list origins. It contains a list of origin objects and a URL link to get the next set of results. */ -export interface OriginListResult { +/** Result of the request to list security policies. It contains a list of security policy objects and a URL link to get the next set of results. */ +export interface SecurityPolicyListResult { /** - * List of CDN origins within an endpoint + * List of Security policies within a profile * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: Origin[]; - /** URL to get the next set of origin objects if there are any. */ + readonly value?: SecurityPolicy[]; + /** URL to get the next set of security policy objects if there is any. */ nextLink?: string; } -/** The JSON object that contains the properties of the origin. */ -export interface OriginUpdatePropertiesParameters { - /** The address of the origin. Domain names, IPv4 addresses, and IPv6 addresses are supported.This should be unique across all origins in an endpoint. */ - hostName?: string; - /** The value of the HTTP port. Must be between 1 and 65535. */ - httpPort?: number; - /** The value of the HTTPS port. Must be between 1 and 65535. */ - httpsPort?: number; - /** The host header value sent to the origin with each request. If you leave this blank, the request hostname determines this value. Azure CDN origins, such as Web Apps, Blob Storage, and Cloud Services require this host header value to match the origin hostname by default. This overrides the host header defined at Endpoint */ - originHostHeader?: string; - /** Priority of origin in given origin group for load balancing. Higher priorities will not be used for load balancing if any lower priority origin is healthy.Must be between 1 and 5 */ - priority?: number; - /** Weight of the origin in given origin group for load balancing. Must be between 1 and 1000 */ - weight?: number; - /** Origin is enabled for load balancing or not */ - enabled?: boolean; - /** The Alias of the Private Link resource. Populating this optional field indicates that this origin is 'Private' */ - privateLinkAlias?: string; - /** The Resource Id of the Private Link resource. Populating this optional field indicates that this backend is 'Private' */ - privateLinkResourceId?: string; - /** The location of the Private Link resource. Required only if 'privateLinkResourceId' is populated */ - privateLinkLocation?: string; - /** A custom message to be included in the approval request to connect to the Private Link. */ - privateLinkApprovalMessage?: string; -} - -/** Origin properties needed for origin update. */ -export interface OriginUpdateParameters { - /** The address of the origin. Domain names, IPv4 addresses, and IPv6 addresses are supported.This should be unique across all origins in an endpoint. */ - hostName?: string; - /** The value of the HTTP port. Must be between 1 and 65535. */ - httpPort?: number; - /** The value of the HTTPS port. Must be between 1 and 65535. */ - httpsPort?: number; - /** The host header value sent to the origin with each request. If you leave this blank, the request hostname determines this value. Azure CDN origins, such as Web Apps, Blob Storage, and Cloud Services require this host header value to match the origin hostname by default. This overrides the host header defined at Endpoint */ - originHostHeader?: string; - /** Priority of origin in given origin group for load balancing. Higher priorities will not be used for load balancing if any lower priority origin is healthy.Must be between 1 and 5 */ - priority?: number; - /** Weight of the origin in given origin group for load balancing. Must be between 1 and 1000 */ - weight?: number; - /** Origin is enabled for load balancing or not */ - enabled?: boolean; - /** The Alias of the Private Link resource. Populating this optional field indicates that this origin is 'Private' */ - privateLinkAlias?: string; - /** The Resource Id of the Private Link resource. Populating this optional field indicates that this backend is 'Private' */ - privateLinkResourceId?: string; - /** The location of the Private Link resource. Required only if 'privateLinkResourceId' is populated */ - privateLinkLocation?: string; - /** A custom message to be included in the approval request to connect to the Private Link. */ - privateLinkApprovalMessage?: string; +/** The json object containing security policy parameters */ +export interface SecurityPolicyParameters { + /** Polymorphic discriminator, which specifies the different types this object can be */ + type: "WebApplicationFirewall"; } -/** Result of the request to list origin groups. It contains a list of origin groups objects and a URL link to get the next set of results. */ -export interface OriginGroupListResult { +/** Result of the request to list secrets. It contains a list of Secret objects and a URL link to get the next set of results. */ +export interface SecretListResult { /** - * List of CDN origin groups within an endpoint + * List of AzureFrontDoor secrets within a profile. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: OriginGroup[]; - /** URL to get the next set of origin objects if there are any. */ + readonly value?: Secret[]; + /** URL to get the next set of Secret objects if there are any. */ nextLink?: string; } -/** The JSON object that contains the properties of the origin group. */ -export interface OriginGroupUpdatePropertiesParameters { - /** Health probe settings to the origin that is used to determine the health of the origin. */ - healthProbeSettings?: HealthProbeParameters; - /** The source of the content being delivered via CDN within given origin group. */ - origins?: ResourceReference[]; - /** Time in minutes to shift the traffic to the endpoint gradually when an unhealthy endpoint comes healthy or a new endpoint is added. Default is 10 mins. This property is currently not supported. */ - trafficRestorationTimeToHealedOrNewEndpointsInMinutes?: number; - /** The JSON object that contains the properties to determine origin health using real requests/responses. This property is currently not supported. */ - responseBasedOriginErrorDetectionSettings?: ResponseBasedOriginErrorDetectionParameters; +/** The json object containing secret parameters */ +export interface SecretParameters { + /** Polymorphic discriminator, which specifies the different types this object can be */ + type: + | "UrlSigningKey" + | "ManagedCertificate" + | "CustomerCertificate" + | "AzureFirstPartyManagedCertificate"; } -/** Origin group properties needed for origin group creation or update. */ -export interface OriginGroupUpdateParameters { - /** Health probe settings to the origin that is used to determine the health of the origin. */ - healthProbeSettings?: HealthProbeParameters; - /** The source of the content being delivered via CDN within given origin group. */ - origins?: ResourceReference[]; - /** Time in minutes to shift the traffic to the endpoint gradually when an unhealthy endpoint comes healthy or a new endpoint is added. Default is 10 mins. This property is currently not supported. */ - trafficRestorationTimeToHealedOrNewEndpointsInMinutes?: number; - /** The JSON object that contains the properties to determine origin health using real requests/responses. This property is currently not supported. */ - responseBasedOriginErrorDetectionSettings?: ResponseBasedOriginErrorDetectionParameters; +/** Input of the secret to be validated. */ +export interface ValidateSecretInput { + /** The secret type. */ + secretType: SecretType; + /** Resource reference to the Azure Key Vault secret. Expected to be in format of /subscriptions/{​​​​​​​​​subscriptionId}​​​​​​​​​/resourceGroups/{​​​​​​​​​resourceGroupName}​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​/providers/Microsoft.KeyVault/vaults/{vaultName}​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​/secrets/{secretName}​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​ */ + secretSource: ResourceReference; + /** Secret version, if customer is using a specific version. */ + secretVersion?: string; } -/** Result of the request to list custom domains. It contains a list of custom domain objects and a URL link to get the next set of results. */ -export interface CustomDomainListResult { - /** - * List of CDN CustomDomains within an endpoint. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: CustomDomain[]; - /** URL to get the next set of custom domain objects if there are any. */ - nextLink?: string; +/** Output of the validated secret. */ +export interface ValidateSecretOutput { + /** The validation status. */ + status?: Status; + /** Detailed error message */ + message?: string; } -/** The JSON object that contains the properties to secure a custom domain. */ -export interface CustomDomainHttpsParameters { - /** Polymorphic discriminator, which specifies the different types this object can be */ - certificateSource: "Cdn" | "AzureKeyVault"; - /** Defines the TLS extension protocol that is used for secure delivery. */ - protocolType: ProtocolType; - /** TLS protocol version that will be used for Https */ - minimumTlsVersion?: MinimumTlsVersion; +/** Metrics Response */ +export interface MetricsResponse { + dateTimeBegin?: Date; + dateTimeEnd?: Date; + granularity?: MetricsResponseGranularity; + series?: MetricsResponseSeriesItem[]; } -/** The customDomain JSON object required for custom domain creation or update. */ -export interface CustomDomainParameters { - /** The host name of the custom domain. Must be a domain name. */ - hostName?: string; +export interface MetricsResponseSeriesItem { + metric?: string; + unit?: MetricsResponseSeriesItemUnit; + groups?: MetricsResponseSeriesPropertiesItemsItem[]; + data?: Components1Gs0LlpSchemasMetricsresponsePropertiesSeriesItemsPropertiesDataItems[]; } -/** Input of CheckNameAvailability API. */ -export interface CheckNameAvailabilityInput { - /** The resource name to validate. */ - name: string; - /** The type of the resource whose name is to be validated. */ - type: "Microsoft.Cdn/Profiles/Endpoints"; +export interface MetricsResponseSeriesPropertiesItemsItem { + name?: string; + value?: string; } -/** Output of check name availability API. */ -export interface CheckNameAvailabilityOutput { +export interface Components1Gs0LlpSchemasMetricsresponsePropertiesSeriesItemsPropertiesDataItems { + dateTime?: Date; + value?: number; +} + +/** Rankings Response */ +export interface RankingsResponse { + dateTimeBegin?: Date; + dateTimeEnd?: Date; + tables?: RankingsResponseTablesItem[]; +} + +export interface RankingsResponseTablesItem { + ranking?: string; + data?: RankingsResponseTablesPropertiesItemsItem[]; +} + +export interface RankingsResponseTablesPropertiesItemsItem { + name?: string; + metrics?: RankingsResponseTablesPropertiesItemsMetricsItem[]; +} + +export interface RankingsResponseTablesPropertiesItemsMetricsItem { + metric?: string; + value?: number; + percentage?: number; +} + +/** Continents Response */ +export interface ContinentsResponse { + continents?: ContinentsResponseContinentsItem[]; + countryOrRegions?: ContinentsResponseCountryOrRegionsItem[]; +} + +export interface ContinentsResponseContinentsItem { + id?: string; +} + +export interface ContinentsResponseCountryOrRegionsItem { + id?: string; + continentId?: string; +} + +/** Resources Response */ +export interface ResourcesResponse { + endpoints?: ResourcesResponseEndpointsItem[]; + customDomains?: ResourcesResponseCustomDomainsItem[]; +} + +export interface ResourcesResponseEndpointsItem { + id?: string; + name?: string; + history?: boolean; + customDomains?: ResourcesResponseEndpointsPropertiesItemsItem[]; +} + +export interface ResourcesResponseEndpointsPropertiesItemsItem { + id?: string; + name?: string; + endpointId?: string; + history?: boolean; +} + +export interface ResourcesResponseCustomDomainsItem { + id?: string; + name?: string; + endpointId?: string; + history?: boolean; +} + +/** Waf Metrics Response */ +export interface WafMetricsResponse { + dateTimeBegin?: Date; + dateTimeEnd?: Date; + granularity?: WafMetricsResponseGranularity; + series?: WafMetricsResponseSeriesItem[]; +} + +export interface WafMetricsResponseSeriesItem { + metric?: string; + unit?: "count"; + groups?: WafMetricsResponseSeriesPropertiesItemsItem[]; + data?: Components18OrqelSchemasWafmetricsresponsePropertiesSeriesItemsPropertiesDataItems[]; +} + +export interface WafMetricsResponseSeriesPropertiesItemsItem { + name?: string; + value?: string; +} + +export interface Components18OrqelSchemasWafmetricsresponsePropertiesSeriesItemsPropertiesDataItems { + dateTime?: Date; + value?: number; +} + +/** Waf Rankings Response */ +export interface WafRankingsResponse { + dateTimeBegin?: Date; + dateTimeEnd?: Date; + groups?: string[]; + data?: WafRankingsResponseDataItem[]; +} + +export interface WafRankingsResponseDataItem { + groupValues?: string[]; + metrics?: ComponentsKpo1PjSchemasWafrankingsresponsePropertiesDataItemsPropertiesMetricsItems[]; +} + +export interface ComponentsKpo1PjSchemasWafrankingsresponsePropertiesDataItemsPropertiesMetricsItems { + metric?: string; + value?: number; + percentage?: number; +} + +/** Result of the request to list profiles. It contains a list of profile objects and a URL link to get the next set of results. */ +export interface ProfileListResult { /** - * Indicates whether the name is available. + * List of CDN profiles within a resource group. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nameAvailable?: boolean; + readonly value?: Profile[]; + /** URL to get the next set of profile objects if there are any. */ + nextLink?: string; +} + +/** + * Standard_Verizon = The SKU name for a Standard Verizon CDN profile. + * Premium_Verizon = The SKU name for a Premium Verizon CDN profile. + * Custom_Verizon = The SKU name for a Custom Verizon CDN profile. + * Standard_Akamai = The SKU name for an Akamai CDN profile. + * Standard_ChinaCdn = The SKU name for a China CDN profile for VOD, Web and download scenarios using GB based billing model. + * Standard_Microsoft = The SKU name for a Standard Microsoft CDN profile. + * Standard_AzureFrontDoor = The SKU name for an Azure Front Door Standard profile. + * Premium_AzureFrontDoor = The SKU name for an Azure Front Door Premium profile. + * Standard_955BandWidth_ChinaCdn = The SKU name for a China CDN profile for VOD, Web and download scenarios using 95-5 peak bandwidth billing model. + * Standard_AvgBandWidth_ChinaCdn = The SKU name for a China CDN profile for VOD, Web and download scenarios using monthly average peak bandwidth billing model. + * StandardPlus_ChinaCdn = The SKU name for a China CDN profile for live-streaming using GB based billing model. + * StandardPlus_955BandWidth_ChinaCdn = The SKU name for a China CDN live-streaming profile using 95-5 peak bandwidth billing model. + * StandardPlus_AvgBandWidth_ChinaCdn = The SKU name for a China CDN live-streaming profile using monthly average peak bandwidth billing model. + * + */ +export interface Sku { + /** Name of the pricing tier. */ + name?: SkuName; +} + +/** Managed service identity. */ +export interface ManagedServiceIdentity { + /** Type of managed service identity. */ + type?: ManagedServiceIdentityType; /** - * The reason why the name is not available. + * Tenant of managed service identity. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly reason?: string; + readonly tenantId?: string; /** - * The detailed error message describing why the name is not available. + * Principal Id of managed service identity. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly message?: string; + readonly principalId?: string; } -/** Input of the validate probe API. */ -export interface ValidateProbeInput { - /** The probe URL to validate. */ - probeURL: string; +/** Error response indicates Azure Front Door Standard or Azure Front Door Premium or CDN service is not able to process the incoming request. The reason is provided in the error message. */ +export interface ErrorResponse { + /** The error object. */ + error?: ErrorDetail; } -/** Output of the validate probe API. */ -export interface ValidateProbeOutput { - /** - * Indicates whether the probe URL is accepted or not. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly isValid?: boolean; +/** Properties required to update a profile. */ +export interface ProfileUpdateParameters { + /** Profile tags */ + tags?: { [propertyName: string]: string }; +} + +/** The URI required to login to the supplemental portal from the Azure portal. */ +export interface SsoUri { /** - * Specifies the error code when the probe url is not accepted. + * The URI used to login to the supplemental portal. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errorCode?: string; + readonly ssoUriValue?: string; +} + +/** The result of the GetSupportedOptimizationTypes API */ +export interface SupportedOptimizationTypesListResult { /** - * The detailed error message describing why the probe URL is not accepted. + * Supported optimization types for a profile. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly message?: string; + readonly supportedOptimizationTypes?: OptimizationType[]; } -/** Result of the request to list CDN operations. It contains a list of operations and a URL link to get the next set of results. */ -export interface OperationsListResult { +/** Output of check resource usage API. */ +export interface ResourceUsageListResult { /** - * List of CDN operations supported by the CDN resource provider. + * List of resource usages. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: Operation[]; - /** URL to get the next set of operation list results if there are any. */ + readonly value?: ResourceUsage[]; + /** URL to get the next set of custom domain objects if there are any. */ nextLink?: string; } -/** CDN REST API operation */ -export interface Operation { +/** Output of check resource usage API. */ +export interface ResourceUsage { /** - * Operation name: {provider}/{resource}/{operation} + * Resource type for which the usage is provided. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: string; - /** The object that represents the operation. */ - display?: OperationDisplay; -} - -/** The object that represents the operation. */ -export interface OperationDisplay { + readonly resourceType?: string; /** - * Service provider: Microsoft.Cdn + * Unit of the usage. e.g. Count. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provider?: string; + readonly unit?: string; /** - * Resource on which the operation is performed: Profile, endpoint, etc. + * Actual value of usage on the specified resource type. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly resource?: string; + readonly currentValue?: number; /** - * Operation type: Read, write, delete, etc. + * Quota of the specified resource type. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly operation?: string; + readonly limit?: number; } -/** Result of the request to list CDN edgenodes. It contains a list of ip address group and a URL link to get the next set of results. */ -export interface EdgenodeResult { +/** Result of the request to list endpoints. It contains a list of endpoint objects and a URL link to get the next set of results. */ +export interface EndpointListResult { /** - * Edge node of CDN service. + * List of CDN endpoints within a profile * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: EdgeNode[]; - /** URL to get the next set of edgenode list results if there are any. */ - nextLink?: string; -} - -/** CDN Ip address group */ -export interface IpAddressGroup { - /** The delivery region of the ip address group */ - deliveryRegion?: string; - /** The list of ip v4 addresses. */ - ipv4Addresses?: CidrIpAddress[]; - /** The list of ip v6 addresses. */ - ipv6Addresses?: CidrIpAddress[]; -} - -/** CIDR Ip address */ -export interface CidrIpAddress { - /** Ip address itself. */ - baseIpAddress?: string; - /** The length of the prefix of the ip address. */ - prefixLength?: number; -} - -/** The list usages operation response. */ -export interface UsagesListResult { - /** The list of resource usages. */ - value?: Usage[]; - /** URL to get the next set of results. */ - nextLink?: string; -} - -/** Describes resource usage. */ -export interface Usage { - /** - * Resource identifier. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly id?: string; - /** An enum describing the unit of measurement. */ - unit: UsageUnit; - /** The current value of the usage. */ - currentValue: number; - /** The limit of usage. */ - limit: number; - /** The name of the type of usage. */ - name: UsageName; -} - -/** The usage names. */ -export interface UsageName { - /** A string describing the resource name. */ - value?: string; - /** A localized string describing the resource name. */ - localizedValue?: string; -} - -/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */ -export interface AfdErrorResponse { - /** The error object. */ - error?: ErrorResponse; -} - -/** Result of the request to list domains. It contains a list of domain objects and a URL link to get the next set of results. */ -export interface AFDDomainListResult { - /** - * List of AzureFrontDoor domains within a profile. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: AFDDomain[]; - /** URL to get the next set of domain objects if there are any. */ - nextLink?: string; -} - -/** The JSON object that contains the properties to validate a domain. */ -export interface DomainValidationProperties { - /** - * Challenge used for DNS TXT record or file based validation - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly validationToken?: string; - /** - * The date time that the token expires - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly expirationDate?: string; -} - -/** The JSON object that contains the properties of the domain to create. */ -export interface AFDDomainUpdatePropertiesParameters { - /** The configuration specifying how to enable HTTPS for the domain - using AzureFrontDoor managed certificate or user's own certificate. If not specified, enabling ssl uses AzureFrontDoor managed certificate by default. */ - tlsSettings?: AFDDomainHttpsParameters; - /** Resource reference to the Azure DNS zone */ - azureDnsZone?: ResourceReference; -} - -/** The JSON object that contains the properties to secure a domain. */ -export interface AFDDomainHttpsParameters { - /** Defines the source of the SSL certificate. */ - certificateType: AfdCertificateType; - /** TLS protocol version that will be used for Https */ - minimumTlsVersion?: AfdMinimumTlsVersion; - /** Resource reference to the secret. ie. subs/rg/profile/secret */ - secret?: ResourceReference; -} - -/** The tracking states for afd resources. */ -export interface AFDStateProperties { - /** - * Provisioning status - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: AfdProvisioningState; - /** NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly deploymentStatus?: DeploymentStatus; -} - -/** The domain JSON object required for domain creation or update. */ -export interface AFDDomainUpdateParameters { - /** The configuration specifying how to enable HTTPS for the domain - using AzureFrontDoor managed certificate or user's own certificate. If not specified, enabling ssl uses AzureFrontDoor managed certificate by default. */ - tlsSettings?: AFDDomainHttpsParameters; - /** Resource reference to the Azure DNS zone */ - azureDnsZone?: ResourceReference; -} - -/** The validation token. */ -export interface ValidationToken { - /** NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly token?: string; -} - -/** Result of the request to list endpoints. It contains a list of endpoint objects and a URL link to get the next set of results. */ -export interface AFDEndpointListResult { - /** - * List of AzureFrontDoor endpoints within a profile - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: AFDEndpoint[]; + readonly value?: Endpoint[]; /** URL to get the next set of endpoint objects if there is any. */ nextLink?: string; } -/** The JSON object containing endpoint update parameters. */ -export interface AFDEndpointPropertiesUpdateParameters { - /** Send and receive timeout on forwarding request to the origin. When timeout is reached, the request fails and returns. */ - originResponseTimeoutSeconds?: number; - /** Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled' */ - enabledState?: EnabledState; -} - -/** Properties required to create or update an endpoint. */ -export interface AFDEndpointUpdateParameters { - /** Endpoint tags. */ - tags?: { [propertyName: string]: string }; - /** Send and receive timeout on forwarding request to the origin. When timeout is reached, the request fails and returns. */ - originResponseTimeoutSeconds?: number; - /** Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled' */ - enabledState?: EnabledState; -} - -/** Parameters required for content purge. */ -export interface AfdPurgeParameters { - /** The path to the content to be purged. Can describe a file path or a wild card directory. */ - contentPaths: string[]; - /** List of domains. */ - domains?: string[]; -} - -/** Result of the request to list origin groups. It contains a list of origin groups objects and a URL link to get the next set of results. */ -export interface AFDOriginGroupListResult { - /** - * List of CDN origin groups within an endpoint - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: AFDOriginGroup[]; - /** URL to get the next set of origin objects if there are any. */ - nextLink?: string; -} - -/** The JSON object that contains the properties of the origin group. */ -export interface AFDOriginGroupUpdatePropertiesParameters { - /** Load balancing settings for a backend pool */ - loadBalancingSettings?: LoadBalancingSettingsParameters; - /** Health probe settings to the origin that is used to determine the health of the origin. */ - healthProbeSettings?: HealthProbeParameters; - /** Time in minutes to shift the traffic to the endpoint gradually when an unhealthy endpoint comes healthy or a new endpoint is added. Default is 10 mins. This property is currently not supported. */ - trafficRestorationTimeToHealedOrNewEndpointsInMinutes?: number; - /** The JSON object that contains the properties to determine origin health using real requests/responses. This property is currently not supported. */ - responseBasedAfdOriginErrorDetectionSettings?: ResponseBasedOriginErrorDetectionParameters; - /** Whether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled' */ - sessionAffinityState?: EnabledState; -} - -/** Round-Robin load balancing settings for a backend pool */ -export interface LoadBalancingSettingsParameters { - /** The number of samples to consider for load balancing decisions */ - sampleSize?: number; - /** The number of samples within the sample period that must succeed */ - successfulSamplesRequired?: number; - /** The additional latency in milliseconds for probes to fall into the lowest latency bucket */ - additionalLatencyInMilliseconds?: number; -} - -/** AFDOrigin group properties needed for origin group creation or update. */ -export interface AFDOriginGroupUpdateParameters { - /** Load balancing settings for a backend pool */ - loadBalancingSettings?: LoadBalancingSettingsParameters; - /** Health probe settings to the origin that is used to determine the health of the origin. */ - healthProbeSettings?: HealthProbeParameters; - /** Time in minutes to shift the traffic to the endpoint gradually when an unhealthy endpoint comes healthy or a new endpoint is added. Default is 10 mins. This property is currently not supported. */ - trafficRestorationTimeToHealedOrNewEndpointsInMinutes?: number; - /** The JSON object that contains the properties to determine origin health using real requests/responses. This property is currently not supported. */ - responseBasedAfdOriginErrorDetectionSettings?: ResponseBasedOriginErrorDetectionParameters; - /** Whether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled' */ - sessionAffinityState?: EnabledState; -} - -/** Result of the request to list origins. It contains a list of origin objects and a URL link to get the next set of results. */ -export interface AFDOriginListResult { - /** - * List of CDN origins within an endpoint - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: AFDOrigin[]; - /** URL to get the next set of origin objects if there are any. */ - nextLink?: string; -} - -/** The JSON object that contains the properties of the origin. */ -export interface AFDOriginUpdatePropertiesParameters { - /** Resource reference to the Azure origin resource. */ - azureOrigin?: ResourceReference; - /** The address of the origin. Domain names, IPv4 addresses, and IPv6 addresses are supported.This should be unique across all origins in an endpoint. */ - hostName?: string; - /** The value of the HTTP port. Must be between 1 and 65535. */ - httpPort?: number; - /** The value of the HTTPS port. Must be between 1 and 65535. */ - httpsPort?: number; - /** The host header value sent to the origin with each request. If you leave this blank, the request hostname determines this value. Azure CDN origins, such as Web Apps, Blob Storage, and Cloud Services require this host header value to match the origin hostname by default. This overrides the host header defined at Endpoint */ - originHostHeader?: string; - /** Priority of origin in given origin group for load balancing. Higher priorities will not be used for load balancing if any lower priority origin is healthy.Must be between 1 and 5 */ - priority?: number; - /** Weight of the origin in given origin group for load balancing. Must be between 1 and 1000 */ - weight?: number; - /** The properties of the private link resource for private origin. */ - sharedPrivateLinkResource?: Record; - /** Whether to enable health probes to be made against backends defined under backendPools. Health probes can only be disabled if there is a single enabled backend in single enabled backend pool. */ - enabledState?: EnabledState; -} - -/** AFDOrigin properties needed for origin update. */ -export interface AFDOriginUpdateParameters { - /** Resource reference to the Azure origin resource. */ - azureOrigin?: ResourceReference; - /** The address of the origin. Domain names, IPv4 addresses, and IPv6 addresses are supported.This should be unique across all origins in an endpoint. */ +/** The main origin of CDN content which is added when creating a CDN endpoint. */ +export interface DeepCreatedOrigin { + /** Origin name which must be unique within the endpoint. */ + name: string; + /** The address of the origin. It can be a domain name, IPv4 address, or IPv6 address. This should be unique across all origins in an endpoint. */ hostName?: string; /** The value of the HTTP port. Must be between 1 and 65535. */ httpPort?: number; /** The value of the HTTPS port. Must be between 1 and 65535. */ httpsPort?: number; - /** The host header value sent to the origin with each request. If you leave this blank, the request hostname determines this value. Azure CDN origins, such as Web Apps, Blob Storage, and Cloud Services require this host header value to match the origin hostname by default. This overrides the host header defined at Endpoint */ + /** The host header value sent to the origin with each request. If you leave this blank, the request hostname determines this value. Azure CDN origins, such as Web Apps, Blob Storage, and Cloud Services require this host header value to match the origin hostname by default. */ originHostHeader?: string; - /** Priority of origin in given origin group for load balancing. Higher priorities will not be used for load balancing if any lower priority origin is healthy.Must be between 1 and 5 */ + /** Priority of origin in given origin group for load balancing. Higher priorities will not be used for load balancing if any lower priority origin is healthy.Must be between 1 and 5. */ priority?: number; /** Weight of the origin in given origin group for load balancing. Must be between 1 and 1000 */ weight?: number; - /** The properties of the private link resource for private origin. */ - sharedPrivateLinkResource?: Record; - /** Whether to enable health probes to be made against backends defined under backendPools. Health probes can only be disabled if there is a single enabled backend in single enabled backend pool. */ - enabledState?: EnabledState; -} - -/** Result of the request to list routes. It contains a list of route objects and a URL link to get the next set of results. */ -export interface RouteListResult { - /** - * List of AzureFrontDoor routes within a profile. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: Route[]; - /** URL to get the next set of route objects if there are any. */ - nextLink?: string; -} - -/** The JSON object that contains the properties of the domain to create. */ -export interface RouteUpdatePropertiesParameters { - /** Domains referenced by this endpoint. */ - customDomains?: ResourceReference[]; - /** A reference to the origin group. */ - originGroup?: ResourceReference; - /** A directory path on the origin that AzureFrontDoor can use to retrieve content from, e.g. contoso.cloudapp.net/originpath. */ - originPath?: string; - /** rule sets referenced by this endpoint. */ - ruleSets?: ResourceReference[]; - /** List of supported protocols for this route. */ - supportedProtocols?: AFDEndpointProtocols[]; - /** The route patterns of the rule. */ - patternsToMatch?: string[]; - /** compression settings. */ - compressionSettings?: Record; - /** Defines how CDN caches requests that include query strings. You can ignore any query strings when caching, bypass caching to prevent requests that contain query strings from being cached, or cache every request with a unique URL. */ - queryStringCachingBehavior?: AfdQueryStringCachingBehavior; - /** Protocol this rule will use when forwarding traffic to backends. */ - forwardingProtocol?: ForwardingProtocol; - /** whether this route will be linked to the default endpoint domain. */ - linkToDefaultDomain?: LinkToDefaultDomain; - /** Whether to automatically redirect HTTP traffic to HTTPS traffic. Note that this is a easy way to set up this rule and it will be the first rule that gets executed. */ - httpsRedirect?: HttpsRedirect; - /** Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled' */ - enabledState?: EnabledState; -} - -/** The domain JSON object required for domain creation or update. */ -export interface RouteUpdateParameters { - /** Domains referenced by this endpoint. */ - customDomains?: ResourceReference[]; - /** A reference to the origin group. */ - originGroup?: ResourceReference; - /** A directory path on the origin that AzureFrontDoor can use to retrieve content from, e.g. contoso.cloudapp.net/originpath. */ - originPath?: string; - /** rule sets referenced by this endpoint. */ - ruleSets?: ResourceReference[]; - /** List of supported protocols for this route. */ - supportedProtocols?: AFDEndpointProtocols[]; - /** The route patterns of the rule. */ - patternsToMatch?: string[]; - /** compression settings. */ - compressionSettings?: Record; - /** Defines how CDN caches requests that include query strings. You can ignore any query strings when caching, bypass caching to prevent requests that contain query strings from being cached, or cache every request with a unique URL. */ - queryStringCachingBehavior?: AfdQueryStringCachingBehavior; - /** Protocol this rule will use when forwarding traffic to backends. */ - forwardingProtocol?: ForwardingProtocol; - /** whether this route will be linked to the default endpoint domain. */ - linkToDefaultDomain?: LinkToDefaultDomain; - /** Whether to automatically redirect HTTP traffic to HTTPS traffic. Note that this is a easy way to set up this rule and it will be the first rule that gets executed. */ - httpsRedirect?: HttpsRedirect; - /** Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled' */ - enabledState?: EnabledState; -} - -/** Result of the request to list rule sets. It contains a list of rule set objects and a URL link to get the next set of results. */ -export interface RuleSetListResult { + /** Origin is enabled for load balancing or not. By default, origin is always enabled. */ + enabled?: boolean; + /** The Alias of the Private Link resource. Populating this optional field indicates that this origin is 'Private' */ + privateLinkAlias?: string; + /** The Resource Id of the Private Link resource. Populating this optional field indicates that this backend is 'Private' */ + privateLinkResourceId?: string; + /** The location of the Private Link resource. Required only if 'privateLinkResourceId' is populated */ + privateLinkLocation?: string; + /** A custom message to be included in the approval request to connect to the Private Link. */ + privateLinkApprovalMessage?: string; /** - * List of AzureFrontDoor rule sets within a profile. + * The approval status for the connection to the Private Link * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: RuleSet[]; - /** URL to get the next set of rule set objects if there are any. */ - nextLink?: string; + readonly privateEndpointStatus?: PrivateEndpointStatus; } -/** Result of the request to list rules. It contains a list of rule objects and a URL link to get the next set of results. */ -export interface RuleListResult { - /** - * List of AzureFrontDoor rules within a rule set. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: Rule[]; - /** URL to get the next set of rule objects if there are any. */ - nextLink?: string; +/** The origin group for CDN content which is added when creating a CDN endpoint. Traffic is sent to the origins within the origin group based on origin health. */ +export interface DeepCreatedOriginGroup { + /** Origin group name which must be unique within the endpoint. */ + name: string; + /** Health probe settings to the origin that is used to determine the health of the origin. */ + healthProbeSettings?: HealthProbeParameters; + /** The source of the content being delivered via CDN within given origin group. */ + origins?: ResourceReference[]; + /** Time in minutes to shift the traffic to the endpoint gradually when an unhealthy endpoint comes healthy or a new endpoint is added. Default is 10 mins. This property is currently not supported. */ + trafficRestorationTimeToHealedOrNewEndpointsInMinutes?: number; + /** The JSON object that contains the properties to determine origin health using real requests/responses.This property is currently not supported. */ + responseBasedOriginErrorDetectionSettings?: ResponseBasedOriginErrorDetectionParameters; } -/** The JSON object that contains the properties of the domain to create. */ -export interface RuleUpdatePropertiesParameters { - /** The order in which the rules are applied for the endpoint. Possible values {0,1,2,3,………}. A rule with a lesser order will be applied before a rule with a greater order. Rule with order 0 is a special rule. It does not require any condition and actions listed in it will always be applied. */ - order?: number; - /** A list of conditions that must be matched for the actions to be executed */ - conditions?: DeliveryRuleConditionUnion[]; - /** A list of actions that are executed when all the conditions of a rule are satisfied. */ - actions?: DeliveryRuleActionAutoGeneratedUnion[]; - /** If this rule is a match should the rules engine continue running the remaining rules or stop. If not present, defaults to Continue. */ - matchProcessingBehavior?: MatchProcessingBehavior; +/** The JSON object that contains the properties to secure a custom domain. */ +export interface CustomDomainHttpsParameters { + /** Polymorphic discriminator, which specifies the different types this object can be */ + certificateSource: "Cdn" | "AzureKeyVault"; + /** Defines the TLS extension protocol that is used for secure delivery. */ + protocolType: ProtocolType; + /** TLS protocol version that will be used for Https */ + minimumTlsVersion?: MinimumTlsVersion; } -/** The domain JSON object required for domain creation or update. */ -export interface RuleUpdateParameters { - /** The order in which the rules are applied for the endpoint. Possible values {0,1,2,3,………}. A rule with a lesser order will be applied before a rule with a greater order. Rule with order 0 is a special rule. It does not require any condition and actions listed in it will always be applied. */ - order?: number; - /** A list of conditions that must be matched for the actions to be executed */ - conditions?: DeliveryRuleConditionUnion[]; - /** A list of actions that are executed when all the conditions of a rule are satisfied. */ - actions?: DeliveryRuleActionAutoGeneratedUnion[]; - /** If this rule is a match should the rules engine continue running the remaining rules or stop. If not present, defaults to Continue. */ - matchProcessingBehavior?: MatchProcessingBehavior; +/** The JSON object containing endpoint update parameters. */ +export interface EndpointPropertiesUpdateParameters { + /** A directory path on the origin that CDN can use to retrieve content from, e.g. contoso.cloudapp.net/originpath. */ + originPath?: string; + /** List of content types on which compression applies. The value should be a valid MIME type. */ + contentTypesToCompress?: string[]; + /** The host header value sent to the origin with each request. This property at Endpoint is only allowed when endpoint uses single origin and can be overridden by the same property specified at origin.If you leave this blank, the request hostname determines this value. Azure CDN origins, such as Web Apps, Blob Storage, and Cloud Services require this host header value to match the origin hostname by default. */ + originHostHeader?: string; + /** Indicates whether content compression is enabled on CDN. Default value is false. If compression is enabled, content will be served as compressed if user requests for a compressed version. Content won't be compressed on CDN when requested content is smaller than 1 byte or larger than 1 MB. */ + isCompressionEnabled?: boolean; + /** Indicates whether HTTP traffic is allowed on the endpoint. Default value is true. At least one protocol (HTTP or HTTPS) must be allowed. */ + isHttpAllowed?: boolean; + /** Indicates whether HTTPS traffic is allowed on the endpoint. Default value is true. At least one protocol (HTTP or HTTPS) must be allowed. */ + isHttpsAllowed?: boolean; + /** Defines how CDN caches requests that include query strings. You can ignore any query strings when caching, bypass caching to prevent requests that contain query strings from being cached, or cache every request with a unique URL. */ + queryStringCachingBehavior?: QueryStringCachingBehavior; + /** Specifies what scenario the customer wants this CDN endpoint to optimize for, e.g. Download, Media services. With this information, CDN can apply scenario driven optimization. */ + optimizationType?: OptimizationType; + /** Path to a file hosted on the origin which helps accelerate delivery of the dynamic content and calculate the most optimal routes for the CDN. This is relative to the origin path. This property is only relevant when using a single origin. */ + probePath?: string; + /** List of rules defining the user's geo access within a CDN endpoint. Each geo filter defines an access rule to a specified path or content, e.g. block APAC for path /pictures/ */ + geoFilters?: GeoFilter[]; + /** A reference to the origin group. */ + defaultOriginGroup?: ResourceReference; + /** List of keys used to validate the signed URL hashes. */ + urlSigningKeys?: UrlSigningKey[]; + /** A policy that specifies the delivery rules to be used for an endpoint. */ + deliveryPolicy?: EndpointPropertiesUpdateParametersDeliveryPolicy; + /** Defines the Web Application Firewall policy for the endpoint (if applicable) */ + webApplicationFirewallPolicyLink?: EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink; } -/** Result of the request to list security policies. It contains a list of security policy objects and a URL link to get the next set of results. */ -export interface SecurityPolicyListResult { - /** - * List of Security policies within a profile - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: SecurityPolicy[]; - /** URL to get the next set of security policy objects if there is any. */ - nextLink?: string; +/** Rules defining user's geo access within a CDN endpoint. */ +export interface GeoFilter { + /** Relative path applicable to geo filter. (e.g. '/mypictures', '/mypicture/kitty.jpg', and etc.) */ + relativePath: string; + /** Action of the geo filter, i.e. allow or block access. */ + action: GeoFilterActions; + /** Two letter country or region codes defining user country or region access in a geo filter, e.g. AU, MX, US. */ + countryCodes: string[]; } -/** The json object containing security policy parameters */ -export interface SecurityPolicyParameters { - /** Polymorphic discriminator, which specifies the different types this object can be */ - type: "WebApplicationFirewall"; +/** Url signing key */ +export interface UrlSigningKey { + /** Defines the customer defined key Id. This id will exist in the incoming request to indicate the key used to form the hash. */ + keyId: string; + /** Defines the parameters for using customer key vault for Url Signing Key. */ + keySourceParameters: KeyVaultSigningKeyParameters; } -/** Result of the request to list secrets. It contains a list of Secret objects and a URL link to get the next set of results. */ -export interface SecretListResult { - /** - * List of AzureFrontDoor secrets within a profile. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: Secret[]; - /** URL to get the next set of Secret objects if there are any. */ - nextLink?: string; +/** Describes the parameters for using a user's KeyVault for URL Signing Key. */ +export interface KeyVaultSigningKeyParameters { + typeName: "KeyVaultSigningKeyParameters"; + /** Subscription Id of the user's Key Vault containing the secret */ + subscriptionId: string; + /** Resource group of the user's Key Vault containing the secret */ + resourceGroupName: string; + /** The name of the user's Key Vault containing the secret */ + vaultName: string; + /** The name of secret in Key Vault. */ + secretName: string; + /** The version(GUID) of secret in Key Vault. */ + secretVersion: string; } -/** The json object containing secret parameters */ -export interface SecretParameters { - /** Polymorphic discriminator, which specifies the different types this object can be */ - type: "UrlSigningKey" | "ManagedCertificate" | "CustomerCertificate"; +/** A policy that specifies the delivery rules to be used for an endpoint. */ +export interface EndpointPropertiesUpdateParametersDeliveryPolicy { + /** User-friendly description of the policy. */ + description?: string; + /** A list of the delivery rules. */ + rules: DeliveryRule[]; } -/** Input of the secret to be validated. */ -export interface ValidateSecretInput { - /** The secret source. */ - secretSource: ResourceReference; - /** The secret type. */ - secretType: ValidateSecretType; +/** A rule that specifies a set of actions and conditions */ +export interface DeliveryRule { + /** Name of the rule */ + name?: string; + /** The order in which the rules are applied for the endpoint. Possible values {0,1,2,3,………}. A rule with a lesser order will be applied before a rule with a greater order. Rule with order 0 is a special rule. It does not require any condition and actions listed in it will always be applied. */ + order: number; + /** A list of conditions that must be matched for the actions to be executed */ + conditions?: DeliveryRuleConditionUnion[]; + /** A list of actions that are executed when all the conditions of a rule are satisfied. */ + actions: DeliveryRuleActionAutoGeneratedUnion[]; } -/** Output of the validated secret. */ -export interface ValidateSecretOutput { - /** The validation status. */ - status?: Status; - /** Detailed error message */ - message?: string; +/** Defines the Web Application Firewall policy for the endpoint (if applicable) */ +export interface EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink { + /** Resource ID. */ + id?: string; } -/** Metrics Response */ -export interface MetricsResponse { - dateTimeBegin?: Date; - dateTimeEnd?: Date; - granularity?: MetricsResponseGranularity; - series?: MetricsResponseSeriesItem[]; +/** Properties required to create or update an endpoint. */ +export interface EndpointUpdateParameters { + /** Endpoint tags. */ + tags?: { [propertyName: string]: string }; + /** A directory path on the origin that CDN can use to retrieve content from, e.g. contoso.cloudapp.net/originpath. */ + originPath?: string; + /** List of content types on which compression applies. The value should be a valid MIME type. */ + contentTypesToCompress?: string[]; + /** The host header value sent to the origin with each request. This property at Endpoint is only allowed when endpoint uses single origin and can be overridden by the same property specified at origin.If you leave this blank, the request hostname determines this value. Azure CDN origins, such as Web Apps, Blob Storage, and Cloud Services require this host header value to match the origin hostname by default. */ + originHostHeader?: string; + /** Indicates whether content compression is enabled on CDN. Default value is false. If compression is enabled, content will be served as compressed if user requests for a compressed version. Content won't be compressed on CDN when requested content is smaller than 1 byte or larger than 1 MB. */ + isCompressionEnabled?: boolean; + /** Indicates whether HTTP traffic is allowed on the endpoint. Default value is true. At least one protocol (HTTP or HTTPS) must be allowed. */ + isHttpAllowed?: boolean; + /** Indicates whether HTTPS traffic is allowed on the endpoint. Default value is true. At least one protocol (HTTP or HTTPS) must be allowed. */ + isHttpsAllowed?: boolean; + /** Defines how CDN caches requests that include query strings. You can ignore any query strings when caching, bypass caching to prevent requests that contain query strings from being cached, or cache every request with a unique URL. */ + queryStringCachingBehavior?: QueryStringCachingBehavior; + /** Specifies what scenario the customer wants this CDN endpoint to optimize for, e.g. Download, Media services. With this information, CDN can apply scenario driven optimization. */ + optimizationType?: OptimizationType; + /** Path to a file hosted on the origin which helps accelerate delivery of the dynamic content and calculate the most optimal routes for the CDN. This is relative to the origin path. This property is only relevant when using a single origin. */ + probePath?: string; + /** List of rules defining the user's geo access within a CDN endpoint. Each geo filter defines an access rule to a specified path or content, e.g. block APAC for path /pictures/ */ + geoFilters?: GeoFilter[]; + /** A reference to the origin group. */ + defaultOriginGroup?: ResourceReference; + /** List of keys used to validate the signed URL hashes. */ + urlSigningKeys?: UrlSigningKey[]; + /** A policy that specifies the delivery rules to be used for an endpoint. */ + deliveryPolicy?: EndpointPropertiesUpdateParametersDeliveryPolicy; + /** Defines the Web Application Firewall policy for the endpoint (if applicable) */ + webApplicationFirewallPolicyLink?: EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink; } -export interface MetricsResponseSeriesItem { - metric?: string; - unit?: MetricsResponseSeriesItemUnit; - groups?: MetricsResponseSeriesPropertiesItemsItem[]; - data?: Components1Gs0LlpSchemasMetricsresponsePropertiesSeriesItemsPropertiesDataItems[]; +/** Parameters required for content purge. */ +export interface PurgeParameters { + /** The path to the content to be purged. Can describe a file path or a wild card directory. */ + contentPaths: string[]; } -export interface MetricsResponseSeriesPropertiesItemsItem { - name?: string; - value?: string; +/** Parameters required for content load. */ +export interface LoadParameters { + /** The path to the content to be loaded. Path should be a relative file URL of the origin. */ + contentPaths: string[]; } -export interface Components1Gs0LlpSchemasMetricsresponsePropertiesSeriesItemsPropertiesDataItems { - dateTime?: Date; - value?: number; +/** Result of the request to list origins. It contains a list of origin objects and a URL link to get the next set of results. */ +export interface OriginListResult { + /** + * List of CDN origins within an endpoint + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: Origin[]; + /** URL to get the next set of origin objects if there are any. */ + nextLink?: string; } -/** Rankings Response */ -export interface RankingsResponse { - dateTimeBegin?: Date; - dateTimeEnd?: Date; - tables?: RankingsResponseTablesItem[]; +/** The JSON object that contains the properties of the origin. */ +export interface OriginUpdatePropertiesParameters { + /** The address of the origin. Domain names, IPv4 addresses, and IPv6 addresses are supported.This should be unique across all origins in an endpoint. */ + hostName?: string; + /** The value of the HTTP port. Must be between 1 and 65535. */ + httpPort?: number; + /** The value of the HTTPS port. Must be between 1 and 65535. */ + httpsPort?: number; + /** The host header value sent to the origin with each request. If you leave this blank, the request hostname determines this value. Azure CDN origins, such as Web Apps, Blob Storage, and Cloud Services require this host header value to match the origin hostname by default. This overrides the host header defined at Endpoint */ + originHostHeader?: string; + /** Priority of origin in given origin group for load balancing. Higher priorities will not be used for load balancing if any lower priority origin is healthy.Must be between 1 and 5 */ + priority?: number; + /** Weight of the origin in given origin group for load balancing. Must be between 1 and 1000 */ + weight?: number; + /** Origin is enabled for load balancing or not */ + enabled?: boolean; + /** The Alias of the Private Link resource. Populating this optional field indicates that this origin is 'Private' */ + privateLinkAlias?: string; + /** The Resource Id of the Private Link resource. Populating this optional field indicates that this backend is 'Private' */ + privateLinkResourceId?: string; + /** The location of the Private Link resource. Required only if 'privateLinkResourceId' is populated */ + privateLinkLocation?: string; + /** A custom message to be included in the approval request to connect to the Private Link. */ + privateLinkApprovalMessage?: string; } -export interface RankingsResponseTablesItem { - ranking?: string; - data?: RankingsResponseTablesPropertiesItemsItem[]; +/** Origin properties needed for origin update. */ +export interface OriginUpdateParameters { + /** The address of the origin. Domain names, IPv4 addresses, and IPv6 addresses are supported.This should be unique across all origins in an endpoint. */ + hostName?: string; + /** The value of the HTTP port. Must be between 1 and 65535. */ + httpPort?: number; + /** The value of the HTTPS port. Must be between 1 and 65535. */ + httpsPort?: number; + /** The host header value sent to the origin with each request. If you leave this blank, the request hostname determines this value. Azure CDN origins, such as Web Apps, Blob Storage, and Cloud Services require this host header value to match the origin hostname by default. This overrides the host header defined at Endpoint */ + originHostHeader?: string; + /** Priority of origin in given origin group for load balancing. Higher priorities will not be used for load balancing if any lower priority origin is healthy.Must be between 1 and 5 */ + priority?: number; + /** Weight of the origin in given origin group for load balancing. Must be between 1 and 1000 */ + weight?: number; + /** Origin is enabled for load balancing or not */ + enabled?: boolean; + /** The Alias of the Private Link resource. Populating this optional field indicates that this origin is 'Private' */ + privateLinkAlias?: string; + /** The Resource Id of the Private Link resource. Populating this optional field indicates that this backend is 'Private' */ + privateLinkResourceId?: string; + /** The location of the Private Link resource. Required only if 'privateLinkResourceId' is populated */ + privateLinkLocation?: string; + /** A custom message to be included in the approval request to connect to the Private Link. */ + privateLinkApprovalMessage?: string; } -export interface RankingsResponseTablesPropertiesItemsItem { - name?: string; - metrics?: RankingsResponseTablesPropertiesItemsMetricsItem[]; +/** Result of the request to list origin groups. It contains a list of origin groups objects and a URL link to get the next set of results. */ +export interface OriginGroupListResult { + /** + * List of CDN origin groups within an endpoint + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: OriginGroup[]; + /** URL to get the next set of origin objects if there are any. */ + nextLink?: string; } -export interface RankingsResponseTablesPropertiesItemsMetricsItem { - metric?: string; - value?: number; - percentage?: number; +/** The JSON object that contains the properties of the origin group. */ +export interface OriginGroupUpdatePropertiesParameters { + /** Health probe settings to the origin that is used to determine the health of the origin. */ + healthProbeSettings?: HealthProbeParameters; + /** The source of the content being delivered via CDN within given origin group. */ + origins?: ResourceReference[]; + /** Time in minutes to shift the traffic to the endpoint gradually when an unhealthy endpoint comes healthy or a new endpoint is added. Default is 10 mins. This property is currently not supported. */ + trafficRestorationTimeToHealedOrNewEndpointsInMinutes?: number; + /** The JSON object that contains the properties to determine origin health using real requests/responses. This property is currently not supported. */ + responseBasedOriginErrorDetectionSettings?: ResponseBasedOriginErrorDetectionParameters; } -/** Continents Response */ -export interface ContinentsResponse { - continents?: ContinentsResponseContinentsItem[]; - countryOrRegions?: ContinentsResponseCountryOrRegionsItem[]; +/** Origin group properties needed for origin group creation or update. */ +export interface OriginGroupUpdateParameters { + /** Health probe settings to the origin that is used to determine the health of the origin. */ + healthProbeSettings?: HealthProbeParameters; + /** The source of the content being delivered via CDN within given origin group. */ + origins?: ResourceReference[]; + /** Time in minutes to shift the traffic to the endpoint gradually when an unhealthy endpoint comes healthy or a new endpoint is added. Default is 10 mins. This property is currently not supported. */ + trafficRestorationTimeToHealedOrNewEndpointsInMinutes?: number; + /** The JSON object that contains the properties to determine origin health using real requests/responses. This property is currently not supported. */ + responseBasedOriginErrorDetectionSettings?: ResponseBasedOriginErrorDetectionParameters; } -export interface ContinentsResponseContinentsItem { - id?: string; +/** Result of the request to list custom domains. It contains a list of custom domain objects and a URL link to get the next set of results. */ +export interface CustomDomainListResult { + /** + * List of CDN CustomDomains within an endpoint. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: CustomDomain[]; + /** URL to get the next set of custom domain objects if there are any. */ + nextLink?: string; } -export interface ContinentsResponseCountryOrRegionsItem { - id?: string; - continentId?: string; +/** The customDomain JSON object required for custom domain creation or update. */ +export interface CustomDomainParameters { + /** The host name of the custom domain. Must be a domain name. */ + hostName?: string; } -/** Resources Response */ -export interface ResourcesResponse { - endpoints?: ResourcesResponseEndpointsItem[]; - customDomains?: ResourcesResponseCustomDomainsItem[]; +/** Input of CheckNameAvailability API. */ +export interface CheckNameAvailabilityInput { + /** The resource name to validate. */ + name: string; + /** The type of the resource whose name is to be validated. */ + type: "Microsoft.Cdn/Profiles/Endpoints"; } -export interface ResourcesResponseEndpointsItem { - id?: string; - name?: string; - history?: boolean; - customDomains?: ResourcesResponseEndpointsPropertiesItemsItem[]; +/** Input of the validate probe API. */ +export interface ValidateProbeInput { + /** The probe URL to validate. */ + probeURL: string; } -export interface ResourcesResponseEndpointsPropertiesItemsItem { - id?: string; - name?: string; - endpointId?: string; - history?: boolean; +/** Output of the validate probe API. */ +export interface ValidateProbeOutput { + /** + * Indicates whether the probe URL is accepted or not. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly isValid?: boolean; + /** + * Specifies the error code when the probe url is not accepted. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly errorCode?: string; + /** + * The detailed error message describing why the probe URL is not accepted. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly message?: string; } -export interface ResourcesResponseCustomDomainsItem { - id?: string; - name?: string; - endpointId?: string; - history?: boolean; +/** Result of the request to list CDN operations. It contains a list of operations and a URL link to get the next set of results. */ +export interface OperationsListResult { + /** List of CDN operations supported by the CDN resource provider. */ + value?: Operation[]; + /** URL to get the next set of operation list results if there are any. */ + nextLink?: string; } -/** Waf Metrics Response */ -export interface WafMetricsResponse { - dateTimeBegin?: Date; - dateTimeEnd?: Date; - granularity?: WafMetricsResponseGranularity; - series?: WafMetricsResponseSeriesItem[]; +/** CDN REST API operation */ +export interface Operation { + /** + * Operation name: {provider}/{resource}/{operation} + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** Indicates whether the operation is a data action */ + isDataAction?: boolean; + /** The object that represents the operation. */ + display?: OperationDisplay; + /** + * The origin of operations. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly origin?: string; + /** One property of operation, include metric specifications. */ + serviceSpecification?: ServiceSpecification; } -export interface WafMetricsResponseSeriesItem { - metric?: string; - unit?: "count"; - groups?: WafMetricsResponseSeriesPropertiesItemsItem[]; - data?: Components18OrqelSchemasWafmetricsresponsePropertiesSeriesItemsPropertiesDataItems[]; +/** The object that represents the operation. */ +export interface OperationDisplay { + /** + * Service provider: Microsoft.Cdn + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provider?: string; + /** + * Resource on which the operation is performed: Profile, endpoint, etc. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly resource?: string; + /** + * Operation type: Read, write, delete, etc. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly operation?: string; + /** + * Description of operation. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly description?: string; } -export interface WafMetricsResponseSeriesPropertiesItemsItem { +/** One property of operation, include log specifications. */ +export interface ServiceSpecification { + /** Log specifications of operation. */ + logSpecifications?: LogSpecification[]; + /** Metric specifications of operation. */ + metricSpecifications?: MetricSpecification[]; +} + +/** Log specification of operation. */ +export interface LogSpecification { + /** Name of log specification. */ name?: string; - value?: string; + /** Display name of log specification. */ + displayName?: string; + /** Blob duration of specification. */ + blobDuration?: string; + /** Pattern to filter based on name */ + logFilterPattern?: string; } -export interface Components18OrqelSchemasWafmetricsresponsePropertiesSeriesItemsPropertiesDataItems { - dateTime?: Date; - value?: number; +/** Metric specification of operation. */ +export interface MetricSpecification { + /** Name of metric specification. */ + name?: string; + /** Display name of metric specification. */ + displayName?: string; + /** Display description of metric specification. */ + displayDescription?: string; + /** The metric unit. Possible values include: 'Bytes', 'Count', 'Milliseconds'. */ + unit?: string; + /** The metric aggregation type. Possible values include: 'Average', 'Count', 'Total'. */ + aggregationType?: string; + /** Retention policies of a resource metric. */ + availabilities?: MetricAvailability[]; + /** The supported time grain types for the metrics. */ + supportedTimeGrainTypes?: string[]; + /** The dimensions of metric */ + dimensions?: DimensionProperties[]; + /** Property to specify whether to fill gap with zero. */ + fillGapWithZero?: boolean; + /** Pattern to filter based on name */ + metricFilterPattern?: string; + /** Property to specify metric is internal or not. */ + isInternal?: boolean; +} + +/** Retention policy of a resource metric. */ +export interface MetricAvailability { + timeGrain?: string; + blobDuration?: string; +} + +/** Type of operation: get, read, delete, etc. */ +export interface DimensionProperties { + /** Name of dimension. */ + name?: string; + /** Display name of dimension. */ + displayName?: string; + /** Internal name of dimension. */ + internalName?: string; } -/** Waf Rankings Response */ -export interface WafRankingsResponse { - dateTimeBegin?: Date; - dateTimeEnd?: Date; - groups?: string[]; - data?: WafRankingsResponseDataItem[]; +/** Result of the request to list CDN edgenodes. It contains a list of ip address group and a URL link to get the next set of results. */ +export interface EdgenodeResult { + /** + * Edge node of CDN service. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: EdgeNode[]; + /** URL to get the next set of edgenode list results if there are any. */ + nextLink?: string; } -export interface WafRankingsResponseDataItem { - groupValues?: string[]; - metrics?: ComponentsKpo1PjSchemasWafrankingsresponsePropertiesDataItemsPropertiesMetricsItems[]; +/** CDN Ip address group */ +export interface IpAddressGroup { + /** The delivery region of the ip address group */ + deliveryRegion?: string; + /** The list of ip v4 addresses. */ + ipv4Addresses?: CidrIpAddress[]; + /** The list of ip v6 addresses. */ + ipv6Addresses?: CidrIpAddress[]; } -export interface ComponentsKpo1PjSchemasWafrankingsresponsePropertiesDataItemsPropertiesMetricsItems { - metric?: string; - value?: number; - percentage?: number; +/** CIDR Ip address */ +export interface CidrIpAddress { + /** Ip address itself. */ + baseIpAddress?: string; + /** The length of the prefix of the ip address. */ + prefixLength?: number; } /** Defines a list of WebApplicationFirewallPolicies for Azure CDN. It contains a list of WebApplicationFirewallPolicy objects and a URL link to get the next set of results. */ @@ -1274,7 +1522,7 @@ export interface PolicySettings { /** If action type is redirect, this field represents the default redirect URL for the client. */ defaultRedirectUrl?: string; /** If the action type is block, this field defines the default customer overridable http response status code. */ - defaultCustomBlockResponseStatusCode?: Enum46; + defaultCustomBlockResponseStatusCode?: Enum47; /** If the action type is block, customer can override the response body. The body must be specified in base64 encoding. */ defaultCustomBlockResponseBody?: string; } @@ -1302,7 +1550,7 @@ export interface CustomRule { /** Define match conditions */ export interface MatchCondition { /** Match variable to compare against. */ - matchVariable: MatchVariable; + matchVariable: WafMatchVariable; /** Selector can used to match a specific key for QueryString, Cookies, RequestHeader or PostArgs. */ selector?: string; /** Describes operator to be matched */ @@ -1413,9 +1661,61 @@ export interface ManagedRuleDefinition { readonly description?: string; } +/** Certificate used for https */ +export interface Certificate { + /** The type of the secret resource. */ + type?: SecretType; + /** + * Subject name in the certificate. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly subject?: string; + /** + * Certificate expiration date. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly expirationDate?: string; +} + +/** settings for security policy patterns to match */ +export interface SecurityPolicyWebApplicationFirewallAssociation { + /** List of domains. */ + domains?: ActivatedResourceReference[]; + /** List of paths */ + patternsToMatch?: string[]; +} + +/** settings for compression. */ +export interface CompressionSettings { + /** List of content types on which compression applies. The value should be a valid MIME type. */ + contentTypesToCompress?: string[]; + /** Indicates whether content compression is enabled on AzureFrontDoor. Default value is false. If compression is enabled, content will be served as compressed if user requests for a compressed version. Content won't be compressed on AzureFrontDoor when requested content is smaller than 1 byte or larger than 1 MB. */ + isCompressionEnabled?: boolean; +} + +/** Describes the properties of an existing Shared Private Link Resource to use when connecting to a private origin. */ +export interface SharedPrivateLinkResourceProperties { + /** The resource id of the resource the shared private link resource is for. */ + privateLink?: ResourceReference; + /** The location of the shared private link resource */ + privateLinkLocation?: string; + /** The group id from the provider of resource the shared private link resource is for. */ + groupId?: string; + /** The request message for requesting approval of the shared private link resource. */ + requestMessage?: string; + /** Status of the shared private link resource. Can be Pending, Approved, Rejected, Disconnected, or Timeout. */ + status?: SharedPrivateLinkResourceStatus; +} + +/** The validation token. */ +export interface ValidationToken { + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly token?: string; +} + /** Defines the parameters for RemoteAddress match conditions */ export interface RemoteAddressMatchConditionParameters { - odataType: "#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters"; + typeName: "DeliveryRuleRemoteAddressConditionParameters"; /** Describes operator to be matched */ operator: RemoteAddressOperator; /** Describes if this is negate condition or not */ @@ -1428,18 +1728,20 @@ export interface RemoteAddressMatchConditionParameters { /** Defines the parameters for RequestMethod match conditions */ export interface RequestMethodMatchConditionParameters { - odataType: "#Microsoft.Azure.Cdn.Models.DeliveryRuleRequestMethodConditionParameters"; + typeName: "DeliveryRuleRequestMethodConditionParameters"; /** Describes operator to be matched */ operator: RequestMethodOperator; /** Describes if this is negate condition or not */ negateCondition?: boolean; + /** List of transforms */ + transforms?: Transform[]; /** The match value for the condition of the delivery rule */ matchValues?: RequestMethodMatchConditionParametersMatchValuesItem[]; } /** Defines the parameters for QueryString match conditions */ export interface QueryStringMatchConditionParameters { - odataType: "#Microsoft.Azure.Cdn.Models.DeliveryRuleQueryStringConditionParameters"; + typeName: "DeliveryRuleQueryStringConditionParameters"; /** Describes operator to be matched */ operator: QueryStringOperator; /** Describes if this is negate condition or not */ @@ -1452,7 +1754,7 @@ export interface QueryStringMatchConditionParameters { /** Defines the parameters for PostArgs match conditions */ export interface PostArgsMatchConditionParameters { - odataType: "#Microsoft.Azure.Cdn.Models.DeliveryRulePostArgsConditionParameters"; + typeName: "DeliveryRulePostArgsConditionParameters"; /** Name of PostArg to be matched */ selector?: string; /** Describes operator to be matched */ @@ -1467,7 +1769,7 @@ export interface PostArgsMatchConditionParameters { /** Defines the parameters for RequestUri match conditions */ export interface RequestUriMatchConditionParameters { - odataType: "#Microsoft.Azure.Cdn.Models.DeliveryRuleRequestUriConditionParameters"; + typeName: "DeliveryRuleRequestUriConditionParameters"; /** Describes operator to be matched */ operator: RequestUriOperator; /** Describes if this is negate condition or not */ @@ -1480,7 +1782,7 @@ export interface RequestUriMatchConditionParameters { /** Defines the parameters for RequestHeader match conditions */ export interface RequestHeaderMatchConditionParameters { - odataType: "#Microsoft.Azure.Cdn.Models.DeliveryRuleRequestHeaderConditionParameters"; + typeName: "DeliveryRuleRequestHeaderConditionParameters"; /** Name of Header to be matched */ selector?: string; /** Describes operator to be matched */ @@ -1495,7 +1797,7 @@ export interface RequestHeaderMatchConditionParameters { /** Defines the parameters for RequestBody match conditions */ export interface RequestBodyMatchConditionParameters { - odataType: "#Microsoft.Azure.Cdn.Models.DeliveryRuleRequestBodyConditionParameters"; + typeName: "DeliveryRuleRequestBodyConditionParameters"; /** Describes operator to be matched */ operator: RequestBodyOperator; /** Describes if this is negate condition or not */ @@ -1508,18 +1810,20 @@ export interface RequestBodyMatchConditionParameters { /** Defines the parameters for RequestScheme match conditions */ export interface RequestSchemeMatchConditionParameters { - odataType: "#Microsoft.Azure.Cdn.Models.DeliveryRuleRequestSchemeConditionParameters"; + typeName: "DeliveryRuleRequestSchemeConditionParameters"; /** Describes operator to be matched */ operator: "Equal"; /** Describes if this is negate condition or not */ negateCondition?: boolean; + /** List of transforms */ + transforms?: Transform[]; /** The match value for the condition of the delivery rule */ matchValues?: RequestSchemeMatchConditionParametersMatchValuesItem[]; } /** Defines the parameters for UrlPath match conditions */ export interface UrlPathMatchConditionParameters { - odataType: "#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlPathMatchConditionParameters"; + typeName: "DeliveryRuleUrlPathMatchConditionParameters"; /** Describes operator to be matched */ operator: UrlPathOperator; /** Describes if this is negate condition or not */ @@ -1532,7 +1836,7 @@ export interface UrlPathMatchConditionParameters { /** Defines the parameters for UrlFileExtension match conditions */ export interface UrlFileExtensionMatchConditionParameters { - odataType: "#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlFileExtensionMatchConditionParameters"; + typeName: "DeliveryRuleUrlFileExtensionMatchConditionParameters"; /** Describes operator to be matched */ operator: UrlFileExtensionOperator; /** Describes if this is negate condition or not */ @@ -1545,7 +1849,7 @@ export interface UrlFileExtensionMatchConditionParameters { /** Defines the parameters for UrlFilename match conditions */ export interface UrlFileNameMatchConditionParameters { - odataType: "#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlFilenameConditionParameters"; + typeName: "DeliveryRuleUrlFilenameConditionParameters"; /** Describes operator to be matched */ operator: UrlFileNameOperator; /** Describes if this is negate condition or not */ @@ -1558,18 +1862,20 @@ export interface UrlFileNameMatchConditionParameters { /** Defines the parameters for HttpVersion match conditions */ export interface HttpVersionMatchConditionParameters { - odataType: "#Microsoft.Azure.Cdn.Models.DeliveryRuleHttpVersionConditionParameters"; + typeName: "DeliveryRuleHttpVersionConditionParameters"; /** Describes operator to be matched */ operator: HttpVersionOperator; /** Describes if this is negate condition or not */ negateCondition?: boolean; /** The match value for the condition of the delivery rule */ matchValues?: string[]; + /** List of transforms */ + transforms?: Transform[]; } /** Defines the parameters for Cookies match conditions */ export interface CookiesMatchConditionParameters { - odataType: "#Microsoft.Azure.Cdn.Models.DeliveryRuleCookiesConditionParameters"; + typeName: "DeliveryRuleCookiesConditionParameters"; /** Name of Cookies to be matched */ selector?: string; /** Describes operator to be matched */ @@ -1584,20 +1890,75 @@ export interface CookiesMatchConditionParameters { /** Defines the parameters for IsDevice match conditions */ export interface IsDeviceMatchConditionParameters { - odataType: "#Microsoft.Azure.Cdn.Models.DeliveryRuleIsDeviceConditionParameters"; + typeName: "DeliveryRuleIsDeviceConditionParameters"; /** Describes operator to be matched */ operator: IsDeviceOperator; /** Describes if this is negate condition or not */ negateCondition?: boolean; /** The match value for the condition of the delivery rule */ matchValues?: IsDeviceMatchConditionParametersMatchValuesItem[]; +} + +/** Defines the parameters for SocketAddress match conditions */ +export interface SocketAddrMatchConditionParameters { + typeName: "DeliveryRuleSocketAddrConditionParameters"; + /** Describes operator to be matched */ + operator: SocketAddrOperator; + /** Describes if this is negate condition or not */ + negateCondition?: boolean; + /** The match value for the condition of the delivery rule */ + matchValues?: string[]; +} + +/** Defines the parameters for ClientPort match conditions */ +export interface ClientPortMatchConditionParameters { + typeName: "DeliveryRuleClientPortConditionParameters"; + /** Describes operator to be matched */ + operator: ClientPortOperator; + /** Describes if this is negate condition or not */ + negateCondition?: boolean; + /** The match value for the condition of the delivery rule */ + matchValues?: string[]; +} + +/** Defines the parameters for ServerPort match conditions */ +export interface ServerPortMatchConditionParameters { + typeName: "DeliveryRuleServerPortConditionParameters"; + /** Describes operator to be matched */ + operator: ServerPortOperator; + /** Describes if this is negate condition or not */ + negateCondition?: boolean; + /** The match value for the condition of the delivery rule */ + matchValues?: string[]; +} + +/** Defines the parameters for HostName match conditions */ +export interface HostNameMatchConditionParameters { + typeName: "DeliveryRuleHostNameConditionParameters"; + /** Describes operator to be matched */ + operator: HostNameOperator; + /** Describes if this is negate condition or not */ + negateCondition?: boolean; + /** The match value for the condition of the delivery rule */ + matchValues?: string[]; /** List of transforms */ transforms?: Transform[]; } +/** Defines the parameters for SslProtocol match conditions */ +export interface SslProtocolMatchConditionParameters { + typeName: "DeliveryRuleSslProtocolConditionParameters"; + /** Describes operator to be matched */ + operator: SslProtocolOperator; + /** Describes if this is negate condition or not */ + negateCondition?: boolean; + /** The match value for the condition of the delivery rule */ + matchValues?: SslProtocol[]; +} + /** Defines the parameters for the url redirect action. */ export interface UrlRedirectActionParameters { - odataType: "#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlRedirectActionParameters"; + typeName: "DeliveryRuleUrlRedirectActionParameters"; /** The redirect type the rule will use when redirecting traffic. */ redirectType: RedirectType; /** Protocol to use for the redirect. The default value is MatchRequest */ @@ -1614,7 +1975,7 @@ export interface UrlRedirectActionParameters { /** Defines the parameters for the Url Signing action. */ export interface UrlSigningActionParameters { - odataType: "#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlSigningActionParameters"; + typeName: "DeliveryRuleUrlSigningActionParameters"; /** Algorithm to use for URL signing */ algorithm?: Algorithm; /** Defines which query string parameters in the url to be considered for expires, key id etc. */ @@ -1631,14 +1992,14 @@ export interface UrlSigningParamIdentifier { /** Defines the parameters for the origin group override action. */ export interface OriginGroupOverrideActionParameters { - odataType: "#Microsoft.Azure.Cdn.Models.DeliveryRuleOriginGroupOverrideActionParameters"; + typeName: "DeliveryRuleOriginGroupOverrideActionParameters"; /** defines the OriginGroup that would override the DefaultOriginGroup. */ originGroup: ResourceReference; } /** Defines the parameters for the url rewrite action. */ export interface UrlRewriteActionParameters { - odataType: "#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlRewriteActionParameters"; + typeName: "DeliveryRuleUrlRewriteActionParameters"; /** define a request URI pattern that identifies the type of requests that may be rewritten. If value is blank, all strings are matched. */ sourcePattern: string; /** Define the relative URL to which the above requests will be rewritten by. */ @@ -1649,7 +2010,7 @@ export interface UrlRewriteActionParameters { /** Defines the parameters for the request header action. */ export interface HeaderActionParameters { - odataType: "#Microsoft.Azure.Cdn.Models.DeliveryRuleHeaderActionParameters"; + typeName: "DeliveryRuleHeaderActionParameters"; /** Action to perform */ headerAction: HeaderAction; /** Name of the header to modify */ @@ -1660,7 +2021,7 @@ export interface HeaderActionParameters { /** Defines the parameters for the cache expiration action. */ export interface CacheExpirationActionParameters { - odataType: "#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters"; + typeName: "DeliveryRuleCacheExpirationActionParameters"; /** Caching behavior for the requests */ cacheBehavior: CacheBehavior; /** The level at which the content needs to be cached. */ @@ -1671,23 +2032,54 @@ export interface CacheExpirationActionParameters { /** Defines the parameters for the cache-key query string action. */ export interface CacheKeyQueryStringActionParameters { - odataType: "#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheKeyQueryStringBehaviorActionParameters"; + typeName: "DeliveryRuleCacheKeyQueryStringBehaviorActionParameters"; /** Caching behavior for the requests */ queryStringBehavior: QueryStringBehavior; /** query parameters to include or exclude (comma separated). */ queryParameters?: string; } +/** Defines the parameters for the route configuration override action. */ +export interface RouteConfigurationOverrideActionParameters { + typeName: "DeliveryRuleRouteConfigurationOverrideActionParameters"; + /** A reference to the origin group override configuration. Leave empty to use the default origin group on route. */ + originGroupOverride?: OriginGroupOverride; + /** The caching configuration associated with this rule. To disable caching, do not provide a cacheConfiguration object. */ + cacheConfiguration?: CacheConfiguration; +} + +/** Defines the parameters for the origin group override configuration. */ +export interface OriginGroupOverride { + /** defines the OriginGroup that would override the DefaultOriginGroup on route. */ + originGroup?: ResourceReference; + /** Protocol this rule will use when forwarding traffic to backends. */ + forwardingProtocol?: ForwardingProtocol; +} + +/** Caching settings for a caching-type route. To disable caching, do not provide a cacheConfiguration object. */ +export interface CacheConfiguration { + /** Defines how Frontdoor caches requests that include query strings. You can ignore any query strings when caching, ignore specific query strings, cache every request with a unique URL, or cache specific query strings. */ + queryStringCachingBehavior?: RuleQueryStringCachingBehavior; + /** query parameters to include or exclude (comma separated). */ + queryParameters?: string; + /** Indicates whether content compression is enabled. If compression is enabled, content will be served as compressed if user requests for a compressed version. Content won't be compressed on AzureFrontDoor when requested content is smaller than 1 byte or larger than 1 MB. */ + isCompressionEnabled?: RuleIsCompressionEnabled; + /** Caching behavior for the requests */ + cacheBehavior?: RuleCacheBehavior; + /** The duration for which the content needs to be cached. Allowed format is [d.]hh:mm:ss */ + cacheDuration?: string; +} + /** Defines the parameters for using CDN managed certificate for securing custom domain. */ export interface CdnCertificateSourceParameters { - odataType: "#Microsoft.Azure.Cdn.Models.CdnCertificateSourceParameters"; + typeName: "CdnCertificateSourceParameters"; /** Type of certificate used */ certificateType: CertificateType; } /** Describes the parameters for using a user's KeyVault certificate for securing custom domain. */ export interface KeyVaultCertificateSourceParameters { - odataType: "#Microsoft.Azure.Cdn.Models.KeyVaultCertificateSourceParameters"; + typeName: "KeyVaultCertificateSourceParameters"; /** Subscription Id of the user's Key Vault containing the SSL certificate */ subscriptionId: string; /** Resource group of the user's Key Vault containing the SSL certificate */ @@ -1704,45 +2096,82 @@ export interface KeyVaultCertificateSourceParameters { deleteRule: DeleteRule; } -/** Certificate used for https */ -export interface Certificate { - /** Subject name in the certificate. */ - subject?: string; - /** Certificate expiration date. */ - expirationDate?: string; - /** Certificate thumbprint. */ - thumbprint?: string; -} +/** The JSON object that contains the properties of the domain to create. */ +export type AFDDomainProperties = AFDDomainUpdatePropertiesParameters & + AFDStateProperties & { + /** + * Provisioning substate shows the progress of custom HTTPS enabling/disabling process step by step. DCV stands for DomainControlValidation. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly domainValidationState?: DomainValidationState; + /** The host name of the domain. Must be a domain name. */ + hostName: string; + /** + * Values the customer needs to validate domain ownership + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly validationProperties?: DomainValidationProperties; + }; -/** settings for security policy patterns to match */ -export interface SecurityPolicyWebApplicationFirewallAssociation { - /** List of domains. */ - domains?: ResourceReference[]; - /** List of paths */ - patternsToMatch?: string[]; -} +/** The JSON object that contains the properties required to create an endpoint. */ +export type AFDEndpointProperties = AFDEndpointPropertiesUpdateParameters & + AFDStateProperties & { + /** + * The host name of the endpoint structured as {endpointName}.{DNSZone}, e.g. contoso.azureedge.net + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly hostName?: string; + }; -/** settings for compression. */ -export interface CompressionSettings { - /** List of content types on which compression applies. The value should be a valid MIME type. */ - contentTypesToCompress?: string[]; - /** Indicates whether content compression is enabled on AzureFrontDoor. Default value is false. If compression is enabled, content will be served as compressed if user requests for a compressed version. Content won't be compressed on AzureFrontDoor when requested content is smaller than 1 byte or larger than 1 MB. */ - isCompressionEnabled?: boolean; -} +/** The JSON object that contains the properties of the origin group. */ +export type AFDOriginGroupProperties = AFDOriginGroupUpdatePropertiesParameters & + AFDStateProperties & {}; -/** Describes the properties of an existing Shared Private Link Resource to use when connecting to a private origin. */ -export interface SharedPrivateLinkResourceProperties { - /** The resource id of the resource the shared private link resource is for. */ - privateLink?: ResourceReference; - /** The location of the shared private link resource */ - privateLinkLocation?: string; - /** The group id from the provider of resource the shared private link resource is for. */ - groupId?: string; - /** The request message for requesting approval of the shared private link resource. */ - requestMessage?: string; - /** Status of the shared private link resource. Can be Pending, Approved, Rejected, Disconnected, or Timeout. */ - status?: SharedPrivateLinkResourceStatus; -} +/** The JSON object that contains the properties of the origin. */ +export type AFDOriginProperties = AFDOriginUpdatePropertiesParameters & + AFDStateProperties & {}; + +/** The JSON object that contains the properties of the Routes to create. */ +export type RouteProperties = RouteUpdatePropertiesParameters & + AFDStateProperties & {}; + +/** The JSON object that contains the properties of the Rule Set to create. */ +export type RuleSetProperties = AFDStateProperties & { + /** + * The name of the profile which holds the rule set. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly profileName?: string; +}; + +/** The JSON object that contains the properties of the Rules to create. */ +export type RuleProperties = RuleUpdatePropertiesParameters & + AFDStateProperties & {}; + +/** The json object that contains properties required to create a security policy */ +export type SecurityPolicyProperties = AFDStateProperties & { + /** + * The name of the profile which holds the security policy. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly profileName?: string; + /** object which contains security policy parameters */ + parameters?: SecurityPolicyParametersUnion; +}; + +/** The JSON object that contains the properties of the Secret to create. */ +export type SecretProperties = AFDStateProperties & { + /** + * The name of the profile which holds the secret. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly profileName?: string; + /** object which contains secret parameters */ + parameters?: SecretParametersUnion; +}; + +/** The resource model definition for a ARM proxy resource. It will have everything other than required location and tags */ +export type ProxyResource = Resource & {}; /** The resource model definition for a ARM tracked top level resource. */ export type TrackedResource = Resource & { @@ -1752,9 +2181,6 @@ export type TrackedResource = Resource & { tags?: { [propertyName: string]: string }; }; -/** The resource model definition for a ARM proxy resource. It will have everything other than required location and tags */ -export type ProxyResource = Resource & {}; - /** Describes a managed rule set definition. */ export type ManagedRuleSetDefinition = Resource & { /** The pricing tier (defines a CDN provider, feature list and rate) of the CdnWebApplicationFirewallPolicy. */ @@ -1781,29 +2207,6 @@ export type ManagedRuleSetDefinition = Resource & { readonly ruleGroups?: ManagedRuleGroupDefinition[]; }; -/** The JSON object that contains the properties required to create an endpoint. */ -export type EndpointProperties = EndpointPropertiesUpdateParameters & { - /** - * The host name of the endpoint structured as {endpointName}.{DNSZone}, e.g. contoso.azureedge.net - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly hostName?: string; - /** The source of the content being delivered via CDN. */ - origins: DeepCreatedOrigin[]; - /** The origin groups comprising of origins that are used for load balancing the traffic based on availability. */ - originGroups?: DeepCreatedOriginGroup[]; - /** - * Resource status of the endpoint. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly resourceState?: EndpointResourceState; - /** - * Provisioning status of the endpoint. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: string; -}; - /** Defines the RemoteAddress condition for the delivery rule. */ export type DeliveryRuleRemoteAddressCondition = DeliveryRuleCondition & { /** Polymorphic discriminator, which specifies the different types this object can be */ @@ -1916,175 +2319,116 @@ export type DeliveryRuleIsDeviceCondition = DeliveryRuleCondition & { parameters: IsDeviceMatchConditionParameters; }; -/** Defines the url redirect action for the delivery rule. */ -export type UrlRedirectAction = DeliveryRuleActionAutoGenerated & { +/** Defines the SocketAddress condition for the delivery rule. */ +export type DeliveryRuleSocketAddrCondition = DeliveryRuleCondition & { /** Polymorphic discriminator, which specifies the different types this object can be */ - name: "UrlRedirect"; - /** Defines the parameters for the action. */ - parameters: UrlRedirectActionParameters; + name: "SocketAddr"; + /** Defines the parameters for the condition. */ + parameters: SocketAddrMatchConditionParameters; }; -/** Defines the url signing action for the delivery rule. */ -export type UrlSigningAction = DeliveryRuleActionAutoGenerated & { +/** Defines the ClientPort condition for the delivery rule. */ +export type DeliveryRuleClientPortCondition = DeliveryRuleCondition & { /** Polymorphic discriminator, which specifies the different types this object can be */ - name: "UrlSigning"; - /** Defines the parameters for the action. */ - parameters: UrlSigningActionParameters; + name: "ClientPort"; + /** Defines the parameters for the condition. */ + parameters: ClientPortMatchConditionParameters; }; -/** Defines the origin group override action for the delivery rule. */ -export type OriginGroupOverrideAction = DeliveryRuleActionAutoGenerated & { +/** Defines the ServerPort condition for the delivery rule. */ +export type DeliveryRuleServerPortCondition = DeliveryRuleCondition & { /** Polymorphic discriminator, which specifies the different types this object can be */ - name: "OriginGroupOverride"; - /** Defines the parameters for the action. */ - parameters: OriginGroupOverrideActionParameters; + name: "ServerPort"; + /** Defines the parameters for the condition. */ + parameters: ServerPortMatchConditionParameters; }; -/** Defines the url rewrite action for the delivery rule. */ -export type UrlRewriteAction = DeliveryRuleActionAutoGenerated & { +/** Defines the HostName condition for the delivery rule. */ +export type DeliveryRuleHostNameCondition = DeliveryRuleCondition & { /** Polymorphic discriminator, which specifies the different types this object can be */ - name: "UrlRewrite"; - /** Defines the parameters for the action. */ - parameters: UrlRewriteActionParameters; + name: "HostName"; + /** Defines the parameters for the condition. */ + parameters: HostNameMatchConditionParameters; }; -/** Defines the request header action for the delivery rule. */ -export type DeliveryRuleRequestHeaderAction = DeliveryRuleActionAutoGenerated & { +/** Defines the SslProtocol condition for the delivery rule. */ +export type DeliveryRuleSslProtocolCondition = DeliveryRuleCondition & { /** Polymorphic discriminator, which specifies the different types this object can be */ - name: "ModifyRequestHeader"; - /** Defines the parameters for the action. */ - parameters: HeaderActionParameters; + name: "SslProtocol"; + /** Defines the parameters for the condition. */ + parameters: SslProtocolMatchConditionParameters; }; -/** Defines the response header action for the delivery rule. */ -export type DeliveryRuleResponseHeaderAction = DeliveryRuleActionAutoGenerated & { +/** Defines the url redirect action for the delivery rule. */ +export type UrlRedirectAction = DeliveryRuleActionAutoGenerated & { /** Polymorphic discriminator, which specifies the different types this object can be */ - name: "ModifyResponseHeader"; + name: "UrlRedirect"; /** Defines the parameters for the action. */ - parameters: HeaderActionParameters; + parameters: UrlRedirectActionParameters; }; -/** Defines the cache expiration action for the delivery rule. */ -export type DeliveryRuleCacheExpirationAction = DeliveryRuleActionAutoGenerated & { +/** Defines the url signing action for the delivery rule. */ +export type UrlSigningAction = DeliveryRuleActionAutoGenerated & { /** Polymorphic discriminator, which specifies the different types this object can be */ - name: "CacheExpiration"; + name: "UrlSigning"; /** Defines the parameters for the action. */ - parameters: CacheExpirationActionParameters; + parameters: UrlSigningActionParameters; }; -/** Defines the cache-key query string action for the delivery rule. */ -export type DeliveryRuleCacheKeyQueryStringAction = DeliveryRuleActionAutoGenerated & { +/** Defines the origin group override action for the delivery rule. */ +export type OriginGroupOverrideAction = DeliveryRuleActionAutoGenerated & { /** Polymorphic discriminator, which specifies the different types this object can be */ - name: "CacheKeyQueryString"; + name: "OriginGroupOverride"; /** Defines the parameters for the action. */ - parameters: CacheKeyQueryStringActionParameters; -}; - -/** The JSON object that contains the properties of the origin. */ -export type OriginProperties = OriginUpdatePropertiesParameters & { - /** - * Resource status of the origin. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly resourceState?: OriginResourceState; - /** - * Provisioning status of the origin. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: string; - /** - * The approval status for the connection to the Private Link - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly privateEndpointStatus?: PrivateEndpointStatus; -}; - -/** The JSON object that contains the properties of the origin group. */ -export type OriginGroupProperties = OriginGroupUpdatePropertiesParameters & { - /** - * Resource status of the origin group. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly resourceState?: OriginGroupResourceState; - /** - * Provisioning status of the origin group. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: string; -}; - -/** Defines the certificate source parameters using CDN managed certificate for enabling SSL. */ -export type CdnManagedHttpsParameters = CustomDomainHttpsParameters & { - /** Polymorphic discriminator, which specifies the different types this object can be */ - certificateSource: "Cdn"; - /** Defines the certificate source parameters using CDN managed certificate for enabling SSL. */ - certificateSourceParameters: CdnCertificateSourceParameters; -}; - -/** Defines the certificate source parameters using user's keyvault certificate for enabling SSL. */ -export type UserManagedHttpsParameters = CustomDomainHttpsParameters & { - /** Polymorphic discriminator, which specifies the different types this object can be */ - certificateSource: "AzureKeyVault"; - /** Defines the certificate source parameters using user's keyvault certificate for enabling SSL. */ - certificateSourceParameters: KeyVaultCertificateSourceParameters; -}; - -/** The JSON object that contains the properties of the domain to create. */ -export type AFDDomainProperties = AFDDomainUpdatePropertiesParameters & - AFDStateProperties & { - /** - * Provisioning substate shows the progress of custom HTTPS enabling/disabling process step by step. DCV stands for DomainControlValidation. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly domainValidationState?: DomainValidationState; - /** The host name of the domain. Must be a domain name. */ - hostName: string; - /** - * Values the customer needs to validate domain ownership - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly validationProperties?: DomainValidationProperties; - }; - -/** The JSON object that contains the properties required to create an endpoint. */ -export type AFDEndpointProperties = AFDEndpointPropertiesUpdateParameters & - AFDStateProperties & { - /** - * The host name of the endpoint structured as {endpointName}.{DNSZone}, e.g. contoso.azureedge.net - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly hostName?: string; - }; - -/** The JSON object that contains the properties of the origin group. */ -export type AFDOriginGroupProperties = AFDOriginGroupUpdatePropertiesParameters & - AFDStateProperties & {}; + parameters: OriginGroupOverrideActionParameters; +}; -/** The JSON object that contains the properties of the origin. */ -export type AFDOriginProperties = AFDOriginUpdatePropertiesParameters & - AFDStateProperties & {}; +/** Defines the url rewrite action for the delivery rule. */ +export type UrlRewriteAction = DeliveryRuleActionAutoGenerated & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + name: "UrlRewrite"; + /** Defines the parameters for the action. */ + parameters: UrlRewriteActionParameters; +}; -/** The JSON object that contains the properties of the Routes to create. */ -export type RouteProperties = RouteUpdatePropertiesParameters & - AFDStateProperties & {}; +/** Defines the request header action for the delivery rule. */ +export type DeliveryRuleRequestHeaderAction = DeliveryRuleActionAutoGenerated & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + name: "ModifyRequestHeader"; + /** Defines the parameters for the action. */ + parameters: HeaderActionParameters; +}; -/** The JSON object that contains the properties of the Rule Set to create. */ -export type RuleSetProperties = AFDStateProperties & {}; +/** Defines the response header action for the delivery rule. */ +export type DeliveryRuleResponseHeaderAction = DeliveryRuleActionAutoGenerated & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + name: "ModifyResponseHeader"; + /** Defines the parameters for the action. */ + parameters: HeaderActionParameters; +}; -/** The JSON object that contains the properties of the Rules to create. */ -export type RuleProperties = RuleUpdatePropertiesParameters & - AFDStateProperties & {}; +/** Defines the cache expiration action for the delivery rule. */ +export type DeliveryRuleCacheExpirationAction = DeliveryRuleActionAutoGenerated & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + name: "CacheExpiration"; + /** Defines the parameters for the action. */ + parameters: CacheExpirationActionParameters; +}; -/** The json object that contains properties required to create a security policy */ -export type SecurityPolicyProperties = AFDStateProperties & { - /** object which contains security policy parameters */ - parameters?: SecurityPolicyParametersUnion; +/** Defines the cache-key query string action for the delivery rule. */ +export type DeliveryRuleCacheKeyQueryStringAction = DeliveryRuleActionAutoGenerated & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + name: "CacheKeyQueryString"; + /** Defines the parameters for the action. */ + parameters: CacheKeyQueryStringActionParameters; }; -/** The JSON object that contains the properties of the Secret to create. */ -export type SecretProperties = AFDStateProperties & { - /** object which contains secret parameters */ - parameters?: SecretParametersUnion; +/** Defines the route configuration override action for the delivery rule. Only applicable to Frontdoor Standard/Premium Profiles. */ +export type DeliveryRuleRouteConfigurationOverrideAction = DeliveryRuleActionAutoGenerated & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + name: "RouteConfigurationOverride"; + /** Defines the parameters for the action. */ + parameters: RouteConfigurationOverrideActionParameters; }; /** The json object containing security policy waf parameters */ @@ -2103,7 +2447,7 @@ export type UrlSigningKeyParameters = SecretParameters & { type: "UrlSigningKey"; /** Defines the customer defined key Id. This id will exist in the incoming request to indicate the key used to form the hash. */ keyId: string; - /** Resource reference to the KV secret */ + /** Resource reference to the Azure Key Vault secret. Expected to be in format of /subscriptions/{​​​​​​​​​subscriptionId}​​​​​​​​​/resourceGroups/{​​​​​​​​​resourceGroupName}​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​/providers/Microsoft.KeyVault/vaults/{vaultName}​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​/secrets/{secretName}​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​ */ secretSource: ResourceReference; /** Version of the secret to be used */ secretVersion?: string; @@ -2113,109 +2457,90 @@ export type UrlSigningKeyParameters = SecretParameters & { export type ManagedCertificateParameters = SecretParameters & { /** Polymorphic discriminator, which specifies the different types this object can be */ type: "ManagedCertificate"; + /** + * Subject name in the certificate. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly subject?: string; + /** + * Certificate expiration date. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly expirationDate?: string; }; /** Customer Certificate used for https */ export type CustomerCertificateParameters = SecretParameters & { /** Polymorphic discriminator, which specifies the different types this object can be */ type: "CustomerCertificate"; - /** Resource reference to the KV secret */ + /** Resource reference to the Azure Key Vault certificate. Expected to be in format of /subscriptions/{​​​​​​​​​subscriptionId}​​​​​​​​​/resourceGroups/{​​​​​​​​​resourceGroupName}​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​/providers/Microsoft.KeyVault/vaults/{vaultName}​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​/secrets/{certificateName}​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​ */ secretSource: ResourceReference; /** Version of the secret to be used */ secretVersion?: string; - /** Certificate issuing authority. */ - certificateAuthority?: string; - /** Whether to use the latest version for the certificate */ - useLatestVersion?: boolean; - /** The list of SANs. */ - subjectAlternativeNames?: string[]; -}; - -/** Defines a rate limiting rule that can be included in a waf policy */ -export type RateLimitRule = CustomRule & { - /** Defines rate limit threshold. */ - rateLimitThreshold: number; - /** Defines rate limit duration. Default is 1 minute. */ - rateLimitDurationInMinutes: number; -}; - -/** Managed Certificate used for https */ -export type ManagedCertificate = Certificate & {}; - -/** Customer Certificate used for https */ -export type CustomerCertificate = Certificate & { - /** Certificate version. */ - version?: string; - /** Certificate issuing authority. */ - certificateAuthority?: string; - /** Complete Url to the certificate */ - certificateUrl: string; /** Whether to use the latest version for the certificate */ useLatestVersion?: boolean; - /** The list of SANs. */ - subjectAlternativeNames?: string[]; -}; - -/** CDN profile is a logical grouping of endpoints that share the same settings, such as CDN provider and pricing tier. */ -export type Profile = TrackedResource & { - /** The pricing tier (defines a CDN provider, feature list and rate) of the CDN profile. */ - sku: Sku; /** - * Resource status of the profile. + * Subject name in the certificate. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly resourceState?: ProfileResourceState; + readonly subject?: string; /** - * Provisioning status of the profile. + * Certificate expiration date. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: string; + readonly expirationDate?: string; /** - * The Id of the frontdoor. + * Certificate issuing authority. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly certificateAuthority?: string; + /** The list of SANs. */ + subjectAlternativeNames?: string[]; + /** + * Certificate thumbprint. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly frontdoorId?: string; + readonly thumbprint?: string; }; -/** CDN endpoint is the entity within a CDN profile containing configuration information such as origin, protocol, content caching and delivery behavior. The CDN endpoint uses the URL format .azureedge.net. */ -export type Endpoint = TrackedResource & { - /** A directory path on the origin that CDN can use to retrieve content from, e.g. contoso.cloudapp.net/originpath. */ - originPath?: string; - /** List of content types on which compression applies. The value should be a valid MIME type. */ - contentTypesToCompress?: string[]; - /** The host header value sent to the origin with each request. This property at Endpoint is only allowed when endpoint uses single origin and can be overridden by the same property specified at origin.If you leave this blank, the request hostname determines this value. Azure CDN origins, such as Web Apps, Blob Storage, and Cloud Services require this host header value to match the origin hostname by default. */ - originHostHeader?: string; - /** Indicates whether content compression is enabled on CDN. Default value is false. If compression is enabled, content will be served as compressed if user requests for a compressed version. Content won't be compressed on CDN when requested content is smaller than 1 byte or larger than 1 MB. */ - isCompressionEnabled?: boolean; - /** Indicates whether HTTP traffic is allowed on the endpoint. Default value is true. At least one protocol (HTTP or HTTPS) must be allowed. */ - isHttpAllowed?: boolean; - /** Indicates whether HTTPS traffic is allowed on the endpoint. Default value is true. At least one protocol (HTTP or HTTPS) must be allowed. */ - isHttpsAllowed?: boolean; - /** Defines how CDN caches requests that include query strings. You can ignore any query strings when caching, bypass caching to prevent requests that contain query strings from being cached, or cache every request with a unique URL. */ - queryStringCachingBehavior?: QueryStringCachingBehavior; - /** Specifies what scenario the customer wants this CDN endpoint to optimize for, e.g. Download, Media services. With this information, CDN can apply scenario driven optimization. */ - optimizationType?: OptimizationType; - /** Path to a file hosted on the origin which helps accelerate delivery of the dynamic content and calculate the most optimal routes for the CDN. This is relative to the origin path. This property is only relevant when using a single origin. */ - probePath?: string; - /** List of rules defining the user's geo access within a CDN endpoint. Each geo filter defines an access rule to a specified path or content, e.g. block APAC for path /pictures/ */ - geoFilters?: GeoFilter[]; - /** A reference to the origin group. */ - defaultOriginGroup?: ResourceReference; - /** List of keys used to validate the signed URL hashes. */ - urlSigningKeys?: UrlSigningKey[]; - /** A policy that specifies the delivery rules to be used for an endpoint. */ - deliveryPolicy?: EndpointPropertiesUpdateParametersDeliveryPolicy; - /** Defines the Web Application Firewall policy for the endpoint (if applicable) */ - webApplicationFirewallPolicyLink?: EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink; +/** Azure FirstParty Managed Certificate provided by other first party resource providers to enable HTTPS. */ +export type AzureFirstPartyManagedCertificateParameters = SecretParameters & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + type: "AzureFirstPartyManagedCertificate"; +}; + +/** Defines the certificate source parameters using CDN managed certificate for enabling SSL. */ +export type CdnManagedHttpsParameters = CustomDomainHttpsParameters & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + certificateSource: "Cdn"; + /** Defines the certificate source parameters using CDN managed certificate for enabling SSL. */ + certificateSourceParameters: CdnCertificateSourceParameters; +}; + +/** Defines the certificate source parameters using user's keyvault certificate for enabling SSL. */ +export type UserManagedHttpsParameters = CustomDomainHttpsParameters & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + certificateSource: "AzureKeyVault"; + /** Defines the certificate source parameters using user's keyvault certificate for enabling SSL. */ + certificateSourceParameters: KeyVaultCertificateSourceParameters; +}; + +/** The JSON object that contains the properties required to create an endpoint. */ +export type EndpointProperties = EndpointPropertiesUpdateParameters & { /** * The host name of the endpoint structured as {endpointName}.{DNSZone}, e.g. contoso.azureedge.net * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly hostName?: string; /** The source of the content being delivered via CDN. */ - origins?: DeepCreatedOrigin[]; + origins: DeepCreatedOrigin[]; /** The origin groups comprising of origins that are used for load balancing the traffic based on availability. */ originGroups?: DeepCreatedOriginGroup[]; + /** + * The custom domains under the endpoint. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly customDomains?: CustomDomain[]; /** * Resource status of the endpoint. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2228,162 +2553,88 @@ export type Endpoint = TrackedResource & { readonly provisioningState?: string; }; -/** CDN endpoint is the entity within a CDN profile containing configuration information such as origin, protocol, content caching and delivery behavior. The AzureFrontDoor endpoint uses the URL format .azureedge.net. */ -export type AFDEndpoint = TrackedResource & { - /** Send and receive timeout on forwarding request to the origin. When timeout is reached, the request fails and returns. */ - originResponseTimeoutSeconds?: number; - /** Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled' */ - enabledState?: EnabledState; - /** - * Provisioning status - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: AfdProvisioningState; - /** NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly deploymentStatus?: DeploymentStatus; - /** - * The host name of the endpoint structured as {endpointName}.{DNSZone}, e.g. contoso.azureedge.net - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly hostName?: string; -}; - -/** Defines web application firewall policy for Azure CDN. */ -export type CdnWebApplicationFirewallPolicy = TrackedResource & { - /** Gets a unique read-only string that changes whenever the resource is updated. */ - etag?: string; - /** The pricing tier (defines a CDN provider, feature list and rate) of the CdnWebApplicationFirewallPolicy. */ - sku: Sku; - /** Describes policySettings for policy */ - policySettings?: PolicySettings; - /** Describes rate limit rules inside the policy. */ - rateLimitRules?: RateLimitRuleList; - /** Describes custom rules inside the policy. */ - customRules?: CustomRuleList; - /** Describes managed rules inside the policy. */ - managedRules?: ManagedRuleSetList; - /** - * Describes Azure CDN endpoints associated with this Web Application Firewall policy. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly endpointLinks?: CdnEndpoint[]; - /** - * Provisioning state of the WebApplicationFirewallPolicy. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: ProvisioningState; - /** - * Resource status of the policy. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly resourceState?: PolicyResourceState; -}; - -/** CDN origin is the source of the content being delivered via CDN. When the edge nodes represented by an endpoint do not have the requested content cached, they attempt to fetch it from one or more of the configured origins. */ -export type Origin = ProxyResource & { - /** The address of the origin. Domain names, IPv4 addresses, and IPv6 addresses are supported.This should be unique across all origins in an endpoint. */ - hostName?: string; - /** The value of the HTTP port. Must be between 1 and 65535. */ - httpPort?: number; - /** The value of the HTTPS port. Must be between 1 and 65535. */ - httpsPort?: number; - /** The host header value sent to the origin with each request. If you leave this blank, the request hostname determines this value. Azure CDN origins, such as Web Apps, Blob Storage, and Cloud Services require this host header value to match the origin hostname by default. This overrides the host header defined at Endpoint */ - originHostHeader?: string; - /** Priority of origin in given origin group for load balancing. Higher priorities will not be used for load balancing if any lower priority origin is healthy.Must be between 1 and 5 */ - priority?: number; - /** Weight of the origin in given origin group for load balancing. Must be between 1 and 1000 */ - weight?: number; - /** Origin is enabled for load balancing or not */ - enabled?: boolean; - /** The Alias of the Private Link resource. Populating this optional field indicates that this origin is 'Private' */ - privateLinkAlias?: string; - /** The Resource Id of the Private Link resource. Populating this optional field indicates that this backend is 'Private' */ - privateLinkResourceId?: string; - /** The location of the Private Link resource. Required only if 'privateLinkResourceId' is populated */ - privateLinkLocation?: string; - /** A custom message to be included in the approval request to connect to the Private Link. */ - privateLinkApprovalMessage?: string; +/** The JSON object that contains the properties of the origin. */ +export type OriginProperties = OriginUpdatePropertiesParameters & { /** * Resource status of the origin. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly resourceState?: OriginResourceState; /** - * Provisioning status of the origin. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: string; - /** - * The approval status for the connection to the Private Link - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly privateEndpointStatus?: PrivateEndpointStatus; -}; - -/** Origin group comprising of origins is used for load balancing to origins when the content cannot be served from CDN. */ -export type OriginGroup = ProxyResource & { - /** Health probe settings to the origin that is used to determine the health of the origin. */ - healthProbeSettings?: HealthProbeParameters; - /** The source of the content being delivered via CDN within given origin group. */ - origins?: ResourceReference[]; - /** Time in minutes to shift the traffic to the endpoint gradually when an unhealthy endpoint comes healthy or a new endpoint is added. Default is 10 mins. This property is currently not supported. */ - trafficRestorationTimeToHealedOrNewEndpointsInMinutes?: number; - /** The JSON object that contains the properties to determine origin health using real requests/responses. This property is currently not supported. */ - responseBasedOriginErrorDetectionSettings?: ResponseBasedOriginErrorDetectionParameters; - /** - * Resource status of the origin group. + * Provisioning status of the origin. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly resourceState?: OriginGroupResourceState; + readonly provisioningState?: string; /** - * Provisioning status of the origin group. + * The approval status for the connection to the Private Link * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: string; + readonly privateEndpointStatus?: PrivateEndpointStatus; }; -/** Friendly domain name mapping to the endpoint hostname that the customer provides for branding purposes, e.g. www.contoso.com. */ -export type CustomDomain = ProxyResource & { - /** The host name of the custom domain. Must be a domain name. */ - hostName?: string; +/** The JSON object that contains the properties of the origin group. */ +export type OriginGroupProperties = OriginGroupUpdatePropertiesParameters & { /** - * Resource status of the custom domain. + * Resource status of the origin group. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly resourceState?: CustomDomainResourceState; + readonly resourceState?: OriginGroupResourceState; /** - * Provisioning status of Custom Https of the custom domain. + * Provisioning status of the origin group. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly customHttpsProvisioningState?: CustomHttpsProvisioningState; + readonly provisioningState?: string; +}; + +/** Defines a rate limiting rule that can be included in a waf policy */ +export type RateLimitRule = CustomRule & { + /** Defines rate limit threshold. */ + rateLimitThreshold: number; + /** Defines rate limit duration. Default is 1 minute. */ + rateLimitDurationInMinutes: number; +}; + +/** Managed Certificate used for https */ +export type ManagedCertificate = Certificate & {}; + +/** Customer Certificate used for https */ +export type CustomerCertificate = Certificate & { + /** Resource reference to the Azure Key Vault certificate. Expected to be in format of /subscriptions/{​​​​​​​​​subscriptionId}​​​​​​​​​/resourceGroups/{​​​​​​​​​resourceGroupName}​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​/providers/Microsoft.KeyVault/vaults/{vaultName}​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​/secrets/{certificateName}​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​ */ + secretSource?: ResourceReference; + /** Certificate version. */ + secretVersion?: string; /** - * Provisioning substate shows the progress of custom HTTPS enabling/disabling process step by step. + * Certificate issuing authority. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly customHttpsProvisioningSubstate?: CustomHttpsProvisioningSubstate; - /** Certificate parameters for securing custom HTTPS */ - customHttpsParameters?: CustomDomainHttpsParametersUnion; - /** Special validation or data may be required when delivering CDN to some regions due to local compliance reasons. E.g. ICP license number of a custom domain is required to deliver content in China. */ - validationData?: string; + readonly certificateAuthority?: string; + /** Whether to use the latest version for the certificate */ + useLatestVersion?: boolean; + /** The list of SANs. */ + subjectAlternativeNames?: string[]; /** - * Provisioning status of the custom domain. + * Certificate thumbprint. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: string; + readonly thumbprint?: string; }; -/** Edgenode is a global Point of Presence (POP) location used to deliver CDN content to end users. */ -export type EdgeNode = ProxyResource & { - /** List of ip address groups. */ - ipAddressGroups?: IpAddressGroup[]; -}; +/** Azure FirstParty Managed Certificate provided by other first party resource providers to enable HTTPS. */ +export type AzureFirstPartyManagedCertificate = Certificate & {}; /** Friendly domain name mapping to the endpoint hostname that the customer provides for branding purposes, e.g. www.contoso.com. */ export type AFDDomain = ProxyResource & { + /** + * The name of the profile which holds the domain. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly profileName?: string; /** The configuration specifying how to enable HTTPS for the domain - using AzureFrontDoor managed certificate or user's own certificate. If not specified, enabling ssl uses AzureFrontDoor managed certificate by default. */ tlsSettings?: AFDDomainHttpsParameters; /** Resource reference to the Azure DNS zone */ azureDnsZone?: ResourceReference; + /** Resource reference to the Azure resource where custom domain ownership was prevalidated */ + preValidatedCustomDomainResourceId?: ResourceReference; /** * Provisioning status * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2407,6 +2658,11 @@ export type AFDDomain = ProxyResource & { /** AFDOrigin group comprising of origins is used for load balancing to origins when the content cannot be served from CDN. */ export type AFDOriginGroup = ProxyResource & { + /** + * The name of the profile which holds the origin group. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly profileName?: string; /** Load balancing settings for a backend pool */ loadBalancingSettings?: LoadBalancingSettingsParameters; /** Health probe settings to the origin that is used to determine the health of the origin. */ @@ -2428,6 +2684,11 @@ export type AFDOriginGroup = ProxyResource & { /** CDN origin is the source of the content being delivered via CDN. When the edge nodes represented by an endpoint do not have the requested content cached, they attempt to fetch it from one or more of the configured origins. */ export type AFDOrigin = ProxyResource & { + /** + * The name of the origin group which contains this origin. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly originGroupName?: string; /** Resource reference to the Azure origin resource. */ azureOrigin?: ResourceReference; /** The address of the origin. Domain names, IPv4 addresses, and IPv6 addresses are supported.This should be unique across all origins in an endpoint. */ @@ -2446,6 +2707,8 @@ export type AFDOrigin = ProxyResource & { sharedPrivateLinkResource?: Record; /** Whether to enable health probes to be made against backends defined under backendPools. Health probes can only be disabled if there is a single enabled backend in single enabled backend pool. */ enabledState?: EnabledState; + /** Whether to enable certificate name check at origin level */ + enforceCertificateNameCheck?: boolean; /** * Provisioning status * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2457,8 +2720,13 @@ export type AFDOrigin = ProxyResource & { /** Friendly Routes name mapping to the any Routes or secret related information. */ export type Route = ProxyResource & { + /** + * The name of the endpoint which holds the route. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly endpointName?: string; /** Domains referenced by this endpoint. */ - customDomains?: ResourceReference[]; + customDomains?: ActivatedResourceReference[]; /** A reference to the origin group. */ originGroup?: ResourceReference; /** A directory path on the origin that AzureFrontDoor can use to retrieve content from, e.g. contoso.cloudapp.net/originpath. */ @@ -2469,10 +2737,8 @@ export type Route = ProxyResource & { supportedProtocols?: AFDEndpointProtocols[]; /** The route patterns of the rule. */ patternsToMatch?: string[]; - /** compression settings. */ - compressionSettings?: Record; - /** Defines how CDN caches requests that include query strings. You can ignore any query strings when caching, bypass caching to prevent requests that contain query strings from being cached, or cache every request with a unique URL. */ - queryStringCachingBehavior?: AfdQueryStringCachingBehavior; + /** The caching configuration for this route. To disable caching, do not provide a cacheConfiguration object. */ + cacheConfiguration?: AfdRouteCacheConfiguration; /** Protocol this rule will use when forwarding traffic to backends. */ forwardingProtocol?: ForwardingProtocol; /** whether this route will be linked to the default endpoint domain. */ @@ -2488,123 +2754,424 @@ export type Route = ProxyResource & { readonly provisioningState?: AfdProvisioningState; /** NOTE: This property will not be serialized. It can only be populated by the server. */ readonly deploymentStatus?: DeploymentStatus; -}; - -/** Friendly RuleSet name mapping to the any RuleSet or secret related information. */ -export type RuleSet = ProxyResource & { +}; + +/** Friendly RuleSet name mapping to the any RuleSet or secret related information. */ +export type RuleSet = ProxyResource & { + /** + * Provisioning status + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: AfdProvisioningState; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly deploymentStatus?: DeploymentStatus; + /** + * The name of the profile which holds the rule set. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly profileName?: string; +}; + +/** Friendly Rules name mapping to the any Rules or secret related information. */ +export type Rule = ProxyResource & { + /** + * The name of the rule set containing the rule. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly ruleSetName?: string; + /** The order in which the rules are applied for the endpoint. Possible values {0,1,2,3,………}. A rule with a lesser order will be applied before a rule with a greater order. Rule with order 0 is a special rule. It does not require any condition and actions listed in it will always be applied. */ + order?: number; + /** A list of conditions that must be matched for the actions to be executed */ + conditions?: DeliveryRuleConditionUnion[]; + /** A list of actions that are executed when all the conditions of a rule are satisfied. */ + actions?: DeliveryRuleActionAutoGeneratedUnion[]; + /** If this rule is a match should the rules engine continue running the remaining rules or stop. If not present, defaults to Continue. */ + matchProcessingBehavior?: MatchProcessingBehavior; + /** + * Provisioning status + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: AfdProvisioningState; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly deploymentStatus?: DeploymentStatus; +}; + +/** SecurityPolicy association for AzureFrontDoor profile */ +export type SecurityPolicy = ProxyResource & { + /** + * Provisioning status + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: AfdProvisioningState; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly deploymentStatus?: DeploymentStatus; + /** + * The name of the profile which holds the security policy. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly profileName?: string; + /** object which contains security policy parameters */ + parameters?: SecurityPolicyParametersUnion; +}; + +/** Friendly Secret name mapping to the any Secret or secret related information. */ +export type Secret = ProxyResource & { + /** + * Provisioning status + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: AfdProvisioningState; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly deploymentStatus?: DeploymentStatus; + /** + * The name of the profile which holds the secret. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly profileName?: string; + /** object which contains secret parameters */ + parameters?: SecretParametersUnion; +}; + +/** Friendly domain name mapping to the endpoint hostname that the customer provides for branding purposes, e.g. www.contoso.com. */ +export type CustomDomain = ProxyResource & { + /** The host name of the custom domain. Must be a domain name. */ + hostName?: string; + /** + * Resource status of the custom domain. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly resourceState?: CustomDomainResourceState; + /** + * Provisioning status of Custom Https of the custom domain. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly customHttpsProvisioningState?: CustomHttpsProvisioningState; + /** + * Provisioning substate shows the progress of custom HTTPS enabling/disabling process step by step. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly customHttpsProvisioningSubstate?: CustomHttpsProvisioningSubstate; + /** Certificate parameters for securing custom HTTPS */ + customHttpsParameters?: CustomDomainHttpsParametersUnion; + /** Special validation or data may be required when delivering CDN to some regions due to local compliance reasons. E.g. ICP license number of a custom domain is required to deliver content in China. */ + validationData?: string; + /** + * Provisioning status of the custom domain. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: string; +}; + +/** CDN origin is the source of the content being delivered via CDN. When the edge nodes represented by an endpoint do not have the requested content cached, they attempt to fetch it from one or more of the configured origins. */ +export type Origin = ProxyResource & { + /** The address of the origin. Domain names, IPv4 addresses, and IPv6 addresses are supported.This should be unique across all origins in an endpoint. */ + hostName?: string; + /** The value of the HTTP port. Must be between 1 and 65535. */ + httpPort?: number; + /** The value of the HTTPS port. Must be between 1 and 65535. */ + httpsPort?: number; + /** The host header value sent to the origin with each request. If you leave this blank, the request hostname determines this value. Azure CDN origins, such as Web Apps, Blob Storage, and Cloud Services require this host header value to match the origin hostname by default. This overrides the host header defined at Endpoint */ + originHostHeader?: string; + /** Priority of origin in given origin group for load balancing. Higher priorities will not be used for load balancing if any lower priority origin is healthy.Must be between 1 and 5 */ + priority?: number; + /** Weight of the origin in given origin group for load balancing. Must be between 1 and 1000 */ + weight?: number; + /** Origin is enabled for load balancing or not */ + enabled?: boolean; + /** The Alias of the Private Link resource. Populating this optional field indicates that this origin is 'Private' */ + privateLinkAlias?: string; + /** The Resource Id of the Private Link resource. Populating this optional field indicates that this backend is 'Private' */ + privateLinkResourceId?: string; + /** The location of the Private Link resource. Required only if 'privateLinkResourceId' is populated */ + privateLinkLocation?: string; + /** A custom message to be included in the approval request to connect to the Private Link. */ + privateLinkApprovalMessage?: string; + /** + * Resource status of the origin. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly resourceState?: OriginResourceState; + /** + * Provisioning status of the origin. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: string; + /** + * The approval status for the connection to the Private Link + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly privateEndpointStatus?: PrivateEndpointStatus; +}; + +/** Origin group comprising of origins is used for load balancing to origins when the content cannot be served from CDN. */ +export type OriginGroup = ProxyResource & { + /** Health probe settings to the origin that is used to determine the health of the origin. */ + healthProbeSettings?: HealthProbeParameters; + /** The source of the content being delivered via CDN within given origin group. */ + origins?: ResourceReference[]; + /** Time in minutes to shift the traffic to the endpoint gradually when an unhealthy endpoint comes healthy or a new endpoint is added. Default is 10 mins. This property is currently not supported. */ + trafficRestorationTimeToHealedOrNewEndpointsInMinutes?: number; + /** The JSON object that contains the properties to determine origin health using real requests/responses. This property is currently not supported. */ + responseBasedOriginErrorDetectionSettings?: ResponseBasedOriginErrorDetectionParameters; + /** + * Resource status of the origin group. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly resourceState?: OriginGroupResourceState; + /** + * Provisioning status of the origin group. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: string; +}; + +/** Edgenode is a global Point of Presence (POP) location used to deliver CDN content to end users. */ +export type EdgeNode = ProxyResource & { + /** List of ip address groups. */ + ipAddressGroups?: IpAddressGroup[]; +}; + +/** CDN endpoint is the entity within a CDN profile containing configuration information such as origin, protocol, content caching and delivery behavior. The AzureFrontDoor endpoint uses the URL format .azureedge.net. */ +export type AFDEndpoint = TrackedResource & { + /** + * The name of the profile which holds the endpoint. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly profileName?: string; + /** Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled' */ + enabledState?: EnabledState; + /** Send and receive timeout on forwarding request to the origin. When timeout is reached, the request fails and returns. */ + originResponseTimeoutSeconds?: number; + /** + * Provisioning status + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: AfdProvisioningState; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly deploymentStatus?: DeploymentStatus; /** - * Provisioning status + * The host name of the endpoint structured as {endpointName}.{DNSZone}, e.g. contoso.azureedge.net * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: AfdProvisioningState; - /** NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly deploymentStatus?: DeploymentStatus; + readonly hostName?: string; }; -/** Friendly Rules name mapping to the any Rules or secret related information. */ -export type Rule = ProxyResource & { - /** The order in which the rules are applied for the endpoint. Possible values {0,1,2,3,………}. A rule with a lesser order will be applied before a rule with a greater order. Rule with order 0 is a special rule. It does not require any condition and actions listed in it will always be applied. */ - order?: number; - /** A list of conditions that must be matched for the actions to be executed */ - conditions?: DeliveryRuleConditionUnion[]; - /** A list of actions that are executed when all the conditions of a rule are satisfied. */ - actions?: DeliveryRuleActionAutoGeneratedUnion[]; - /** If this rule is a match should the rules engine continue running the remaining rules or stop. If not present, defaults to Continue. */ - matchProcessingBehavior?: MatchProcessingBehavior; +/** A profile is a logical grouping of endpoints that share the same settings. */ +export type Profile = TrackedResource & { + /** The pricing tier (defines Azure Front Door Standard or Premium or a CDN provider, feature list and rate) of the profile. */ + sku: Sku; /** - * Provisioning status + * Resource status of the profile. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: AfdProvisioningState; - /** NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly deploymentStatus?: DeploymentStatus; + readonly resourceState?: ProfileResourceState; + /** Managed service identity. */ + identity?: ManagedServiceIdentity; + /** + * Provisioning status of the profile. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: string; + /** + * The Id of the frontdoor. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly frontDoorId?: string; + /** + * Kind of the profile. Used by portal to differentiate traditional CDN profile and new AFD profile. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly kind?: string; + /** Send and receive timeout on forwarding request to the origin. When timeout is reached, the request fails and returns. */ + originResponseTimeoutSeconds?: number; }; -/** SecurityPolicy association for AzureFrontDoor profile */ -export type SecurityPolicy = ProxyResource & { +/** CDN endpoint is the entity within a CDN profile containing configuration information such as origin, protocol, content caching and delivery behavior. The CDN endpoint uses the URL format .azureedge.net. */ +export type Endpoint = TrackedResource & { + /** A directory path on the origin that CDN can use to retrieve content from, e.g. contoso.cloudapp.net/originpath. */ + originPath?: string; + /** List of content types on which compression applies. The value should be a valid MIME type. */ + contentTypesToCompress?: string[]; + /** The host header value sent to the origin with each request. This property at Endpoint is only allowed when endpoint uses single origin and can be overridden by the same property specified at origin.If you leave this blank, the request hostname determines this value. Azure CDN origins, such as Web Apps, Blob Storage, and Cloud Services require this host header value to match the origin hostname by default. */ + originHostHeader?: string; + /** Indicates whether content compression is enabled on CDN. Default value is false. If compression is enabled, content will be served as compressed if user requests for a compressed version. Content won't be compressed on CDN when requested content is smaller than 1 byte or larger than 1 MB. */ + isCompressionEnabled?: boolean; + /** Indicates whether HTTP traffic is allowed on the endpoint. Default value is true. At least one protocol (HTTP or HTTPS) must be allowed. */ + isHttpAllowed?: boolean; + /** Indicates whether HTTPS traffic is allowed on the endpoint. Default value is true. At least one protocol (HTTP or HTTPS) must be allowed. */ + isHttpsAllowed?: boolean; + /** Defines how CDN caches requests that include query strings. You can ignore any query strings when caching, bypass caching to prevent requests that contain query strings from being cached, or cache every request with a unique URL. */ + queryStringCachingBehavior?: QueryStringCachingBehavior; + /** Specifies what scenario the customer wants this CDN endpoint to optimize for, e.g. Download, Media services. With this information, CDN can apply scenario driven optimization. */ + optimizationType?: OptimizationType; + /** Path to a file hosted on the origin which helps accelerate delivery of the dynamic content and calculate the most optimal routes for the CDN. This is relative to the origin path. This property is only relevant when using a single origin. */ + probePath?: string; + /** List of rules defining the user's geo access within a CDN endpoint. Each geo filter defines an access rule to a specified path or content, e.g. block APAC for path /pictures/ */ + geoFilters?: GeoFilter[]; + /** A reference to the origin group. */ + defaultOriginGroup?: ResourceReference; + /** List of keys used to validate the signed URL hashes. */ + urlSigningKeys?: UrlSigningKey[]; + /** A policy that specifies the delivery rules to be used for an endpoint. */ + deliveryPolicy?: EndpointPropertiesUpdateParametersDeliveryPolicy; + /** Defines the Web Application Firewall policy for the endpoint (if applicable) */ + webApplicationFirewallPolicyLink?: EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink; /** - * Provisioning status + * The host name of the endpoint structured as {endpointName}.{DNSZone}, e.g. contoso.azureedge.net * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: AfdProvisioningState; - /** NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly deploymentStatus?: DeploymentStatus; - /** object which contains security policy parameters */ - parameters?: SecurityPolicyParametersUnion; + readonly hostName?: string; + /** The source of the content being delivered via CDN. */ + origins?: DeepCreatedOrigin[]; + /** The origin groups comprising of origins that are used for load balancing the traffic based on availability. */ + originGroups?: DeepCreatedOriginGroup[]; + /** + * The custom domains under the endpoint. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly customDomains?: CustomDomain[]; + /** + * Resource status of the endpoint. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly resourceState?: EndpointResourceState; + /** + * Provisioning status of the endpoint. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: string; }; -/** Friendly Secret name mapping to the any Secret or secret related information. */ -export type Secret = ProxyResource & { +/** Defines web application firewall policy for Azure CDN. */ +export type CdnWebApplicationFirewallPolicy = TrackedResource & { + /** Gets a unique read-only string that changes whenever the resource is updated. */ + etag?: string; + /** The pricing tier (defines a CDN provider, feature list and rate) of the CdnWebApplicationFirewallPolicy. */ + sku: Sku; + /** Describes policySettings for policy */ + policySettings?: PolicySettings; + /** Describes rate limit rules inside the policy. */ + rateLimitRules?: RateLimitRuleList; + /** Describes custom rules inside the policy. */ + customRules?: CustomRuleList; + /** Describes managed rules inside the policy. */ + managedRules?: ManagedRuleSetList; /** - * Provisioning status + * Describes Azure CDN endpoints associated with this Web Application Firewall policy. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: AfdProvisioningState; - /** NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly deploymentStatus?: DeploymentStatus; - /** object which contains secret parameters */ - parameters?: SecretParametersUnion; + readonly endpointLinks?: CdnEndpoint[]; + /** + * Provisioning state of the WebApplicationFirewallPolicy. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningState; + /** + * Resource status of the policy. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly resourceState?: PolicyResourceState; }; -/** Known values of {@link SkuName} that the service accepts. */ -export enum KnownSkuName { - StandardVerizon = "Standard_Verizon", - PremiumVerizon = "Premium_Verizon", - CustomVerizon = "Custom_Verizon", - StandardAkamai = "Standard_Akamai", - StandardChinaCdn = "Standard_ChinaCdn", - StandardMicrosoft = "Standard_Microsoft", - PremiumChinaCdn = "Premium_ChinaCdn", - StandardAzureFrontDoor = "Standard_AzureFrontDoor", - PremiumAzureFrontDoor = "Premium_AzureFrontDoor", - Standard955BandWidthChinaCdn = "Standard_955BandWidth_ChinaCdn", - StandardAvgBandWidthChinaCdn = "Standard_AvgBandWidth_ChinaCdn", - StandardPlusChinaCdn = "StandardPlus_ChinaCdn", - StandardPlus955BandWidthChinaCdn = "StandardPlus_955BandWidth_ChinaCdn", - StandardPlusAvgBandWidthChinaCdn = "StandardPlus_AvgBandWidth_ChinaCdn" +/** Known values of {@link UsageUnit} that the service accepts. */ +export enum KnownUsageUnit { + Count = "Count" } /** - * Defines values for SkuName. \ - * {@link KnownSkuName} can be used interchangeably with SkuName, + * Defines values for UsageUnit. \ + * {@link KnownUsageUnit} can be used interchangeably with UsageUnit, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Standard_Verizon** \ - * **Premium_Verizon** \ - * **Custom_Verizon** \ - * **Standard_Akamai** \ - * **Standard_ChinaCdn** \ - * **Standard_Microsoft** \ - * **Premium_ChinaCdn** \ - * **Standard_AzureFrontDoor** \ - * **Premium_AzureFrontDoor** \ - * **Standard_955BandWidth_ChinaCdn** \ - * **Standard_AvgBandWidth_ChinaCdn** \ - * **StandardPlus_ChinaCdn** \ - * **StandardPlus_955BandWidth_ChinaCdn** \ - * **StandardPlus_AvgBandWidth_ChinaCdn** + * **Count** */ -export type SkuName = string; +export type UsageUnit = string; -/** Known values of {@link ProfileResourceState} that the service accepts. */ -export enum KnownProfileResourceState { - Creating = "Creating", - Active = "Active", +/** Known values of {@link DomainValidationState} that the service accepts. */ +export enum KnownDomainValidationState { + Unknown = "Unknown", + Submitting = "Submitting", + Pending = "Pending", + Rejected = "Rejected", + TimedOut = "TimedOut", + PendingRevalidation = "PendingRevalidation", + Approved = "Approved" +} + +/** + * Defines values for DomainValidationState. \ + * {@link KnownDomainValidationState} can be used interchangeably with DomainValidationState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Unknown** \ + * **Submitting** \ + * **Pending** \ + * **Rejected** \ + * **TimedOut** \ + * **PendingRevalidation** \ + * **Approved** + */ +export type DomainValidationState = string; + +/** Known values of {@link AfdCertificateType} that the service accepts. */ +export enum KnownAfdCertificateType { + CustomerCertificate = "CustomerCertificate", + ManagedCertificate = "ManagedCertificate", + AzureFirstPartyManagedCertificate = "AzureFirstPartyManagedCertificate" +} + +/** + * Defines values for AfdCertificateType. \ + * {@link KnownAfdCertificateType} can be used interchangeably with AfdCertificateType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **CustomerCertificate** \ + * **ManagedCertificate** \ + * **AzureFirstPartyManagedCertificate** + */ +export type AfdCertificateType = string; + +/** Known values of {@link AfdProvisioningState} that the service accepts. */ +export enum KnownAfdProvisioningState { + Succeeded = "Succeeded", + Failed = "Failed", + Updating = "Updating", Deleting = "Deleting", - Disabled = "Disabled" + Creating = "Creating" } /** - * Defines values for ProfileResourceState. \ - * {@link KnownProfileResourceState} can be used interchangeably with ProfileResourceState, + * Defines values for AfdProvisioningState. \ + * {@link KnownAfdProvisioningState} can be used interchangeably with AfdProvisioningState, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Creating** \ - * **Active** \ + * **Succeeded** \ + * **Failed** \ + * **Updating** \ * **Deleting** \ - * **Disabled** + * **Creating** */ -export type ProfileResourceState = string; +export type AfdProvisioningState = string; + +/** Known values of {@link DeploymentStatus} that the service accepts. */ +export enum KnownDeploymentStatus { + NotStarted = "NotStarted", + InProgress = "InProgress", + Succeeded = "Succeeded", + Failed = "Failed" +} + +/** + * Defines values for DeploymentStatus. \ + * {@link KnownDeploymentStatus} can be used interchangeably with DeploymentStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **NotStarted** \ + * **InProgress** \ + * **Succeeded** \ + * **Failed** + */ +export type DeploymentStatus = string; /** Known values of {@link IdentityType} that the service accepts. */ export enum KnownIdentityType { @@ -2626,51 +3193,107 @@ export enum KnownIdentityType { */ export type IdentityType = string; -/** Known values of {@link OptimizationType} that the service accepts. */ -export enum KnownOptimizationType { - GeneralWebDelivery = "GeneralWebDelivery", - GeneralMediaStreaming = "GeneralMediaStreaming", - VideoOnDemandMediaStreaming = "VideoOnDemandMediaStreaming", - LargeFileDownload = "LargeFileDownload", - DynamicSiteAcceleration = "DynamicSiteAcceleration" +/** Known values of {@link EnabledState} that the service accepts. */ +export enum KnownEnabledState { + Enabled = "Enabled", + Disabled = "Disabled" } /** - * Defines values for OptimizationType. \ - * {@link KnownOptimizationType} can be used interchangeably with OptimizationType, + * Defines values for EnabledState. \ + * {@link KnownEnabledState} can be used interchangeably with EnabledState, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **GeneralWebDelivery** \ - * **GeneralMediaStreaming** \ - * **VideoOnDemandMediaStreaming** \ - * **LargeFileDownload** \ - * **DynamicSiteAcceleration** + * **Enabled** \ + * **Disabled** */ -export type OptimizationType = string; +export type EnabledState = string; -/** Known values of {@link EndpointResourceState} that the service accepts. */ -export enum KnownEndpointResourceState { - Creating = "Creating", - Deleting = "Deleting", - Running = "Running", - Starting = "Starting", - Stopped = "Stopped", - Stopping = "Stopping" +/** Known values of {@link AFDEndpointProtocols} that the service accepts. */ +export enum KnownAFDEndpointProtocols { + Http = "Http", + Https = "Https" } /** - * Defines values for EndpointResourceState. \ - * {@link KnownEndpointResourceState} can be used interchangeably with EndpointResourceState, + * Defines values for AFDEndpointProtocols. \ + * {@link KnownAFDEndpointProtocols} can be used interchangeably with AFDEndpointProtocols, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Creating** \ - * **Deleting** \ - * **Running** \ - * **Starting** \ - * **Stopped** \ - * **Stopping** + * **Http** \ + * **Https** */ -export type EndpointResourceState = string; +export type AFDEndpointProtocols = string; + +/** Known values of {@link AfdQueryStringCachingBehavior} that the service accepts. */ +export enum KnownAfdQueryStringCachingBehavior { + IgnoreQueryString = "IgnoreQueryString", + UseQueryString = "UseQueryString", + IgnoreSpecifiedQueryStrings = "IgnoreSpecifiedQueryStrings", + IncludeSpecifiedQueryStrings = "IncludeSpecifiedQueryStrings" +} + +/** + * Defines values for AfdQueryStringCachingBehavior. \ + * {@link KnownAfdQueryStringCachingBehavior} can be used interchangeably with AfdQueryStringCachingBehavior, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **IgnoreQueryString** \ + * **UseQueryString** \ + * **IgnoreSpecifiedQueryStrings** \ + * **IncludeSpecifiedQueryStrings** + */ +export type AfdQueryStringCachingBehavior = string; + +/** Known values of {@link ForwardingProtocol} that the service accepts. */ +export enum KnownForwardingProtocol { + HttpOnly = "HttpOnly", + HttpsOnly = "HttpsOnly", + MatchRequest = "MatchRequest" +} + +/** + * Defines values for ForwardingProtocol. \ + * {@link KnownForwardingProtocol} can be used interchangeably with ForwardingProtocol, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **HttpOnly** \ + * **HttpsOnly** \ + * **MatchRequest** + */ +export type ForwardingProtocol = string; + +/** Known values of {@link LinkToDefaultDomain} that the service accepts. */ +export enum KnownLinkToDefaultDomain { + Enabled = "Enabled", + Disabled = "Disabled" +} + +/** + * Defines values for LinkToDefaultDomain. \ + * {@link KnownLinkToDefaultDomain} can be used interchangeably with LinkToDefaultDomain, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Enabled** \ + * **Disabled** + */ +export type LinkToDefaultDomain = string; + +/** Known values of {@link HttpsRedirect} that the service accepts. */ +export enum KnownHttpsRedirect { + Enabled = "Enabled", + Disabled = "Disabled" +} + +/** + * Defines values for HttpsRedirect. \ + * {@link KnownHttpsRedirect} can be used interchangeably with HttpsRedirect, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Enabled** \ + * **Disabled** + */ +export type HttpsRedirect = string; /** Known values of {@link MatchVariable} that the service accepts. */ export enum KnownMatchVariable { @@ -2688,8 +3311,11 @@ export enum KnownMatchVariable { HttpVersion = "HttpVersion", Cookies = "Cookies", IsDevice = "IsDevice", - RemoteAddr = "RemoteAddr", - SocketAddr = "SocketAddr" + SocketAddr = "SocketAddr", + ClientPort = "ClientPort", + ServerPort = "ServerPort", + HostName = "HostName", + SslProtocol = "SslProtocol" } /** @@ -2711,8 +3337,11 @@ export enum KnownMatchVariable { * **HttpVersion** \ * **Cookies** \ * **IsDevice** \ - * **RemoteAddr** \ - * **SocketAddr** + * **SocketAddr** \ + * **ClientPort** \ + * **ServerPort** \ + * **HostName** \ + * **SslProtocol** */ export type MatchVariable = string; @@ -2723,730 +3352,660 @@ export enum KnownDeliveryRuleAction { ModifyRequestHeader = "ModifyRequestHeader", ModifyResponseHeader = "ModifyResponseHeader", UrlRedirect = "UrlRedirect", - UrlRewrite = "UrlRewrite", - UrlSigning = "UrlSigning", - OriginGroupOverride = "OriginGroupOverride" -} - -/** - * Defines values for DeliveryRuleAction. \ - * {@link KnownDeliveryRuleAction} can be used interchangeably with DeliveryRuleAction, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **CacheExpiration** \ - * **CacheKeyQueryString** \ - * **ModifyRequestHeader** \ - * **ModifyResponseHeader** \ - * **UrlRedirect** \ - * **UrlRewrite** \ - * **UrlSigning** \ - * **OriginGroupOverride** - */ -export type DeliveryRuleAction = string; - -/** Known values of {@link OriginResourceState} that the service accepts. */ -export enum KnownOriginResourceState { - Creating = "Creating", - Active = "Active", - Deleting = "Deleting" -} - -/** - * Defines values for OriginResourceState. \ - * {@link KnownOriginResourceState} can be used interchangeably with OriginResourceState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Creating** \ - * **Active** \ - * **Deleting** - */ -export type OriginResourceState = string; - -/** Known values of {@link PrivateEndpointStatus} that the service accepts. */ -export enum KnownPrivateEndpointStatus { - Pending = "Pending", - Approved = "Approved", - Rejected = "Rejected", - Disconnected = "Disconnected", - Timeout = "Timeout" -} - -/** - * Defines values for PrivateEndpointStatus. \ - * {@link KnownPrivateEndpointStatus} can be used interchangeably with PrivateEndpointStatus, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Pending** \ - * **Approved** \ - * **Rejected** \ - * **Disconnected** \ - * **Timeout** - */ -export type PrivateEndpointStatus = string; - -/** Known values of {@link OriginGroupResourceState} that the service accepts. */ -export enum KnownOriginGroupResourceState { - Creating = "Creating", - Active = "Active", - Deleting = "Deleting" -} - -/** - * Defines values for OriginGroupResourceState. \ - * {@link KnownOriginGroupResourceState} can be used interchangeably with OriginGroupResourceState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Creating** \ - * **Active** \ - * **Deleting** - */ -export type OriginGroupResourceState = string; - -/** Known values of {@link CustomDomainResourceState} that the service accepts. */ -export enum KnownCustomDomainResourceState { - Creating = "Creating", - Active = "Active", - Deleting = "Deleting" -} - -/** - * Defines values for CustomDomainResourceState. \ - * {@link KnownCustomDomainResourceState} can be used interchangeably with CustomDomainResourceState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Creating** \ - * **Active** \ - * **Deleting** - */ -export type CustomDomainResourceState = string; - -/** Known values of {@link CustomHttpsProvisioningState} that the service accepts. */ -export enum KnownCustomHttpsProvisioningState { - Enabling = "Enabling", - Enabled = "Enabled", - Disabling = "Disabling", - Disabled = "Disabled", - Failed = "Failed" -} - -/** - * Defines values for CustomHttpsProvisioningState. \ - * {@link KnownCustomHttpsProvisioningState} can be used interchangeably with CustomHttpsProvisioningState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Enabling** \ - * **Enabled** \ - * **Disabling** \ - * **Disabled** \ - * **Failed** - */ -export type CustomHttpsProvisioningState = string; - -/** Known values of {@link CustomHttpsProvisioningSubstate} that the service accepts. */ -export enum KnownCustomHttpsProvisioningSubstate { - SubmittingDomainControlValidationRequest = "SubmittingDomainControlValidationRequest", - PendingDomainControlValidationREquestApproval = "PendingDomainControlValidationREquestApproval", - DomainControlValidationRequestApproved = "DomainControlValidationRequestApproved", - DomainControlValidationRequestRejected = "DomainControlValidationRequestRejected", - DomainControlValidationRequestTimedOut = "DomainControlValidationRequestTimedOut", - IssuingCertificate = "IssuingCertificate", - DeployingCertificate = "DeployingCertificate", - CertificateDeployed = "CertificateDeployed", - DeletingCertificate = "DeletingCertificate", - CertificateDeleted = "CertificateDeleted" -} - -/** - * Defines values for CustomHttpsProvisioningSubstate. \ - * {@link KnownCustomHttpsProvisioningSubstate} can be used interchangeably with CustomHttpsProvisioningSubstate, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **SubmittingDomainControlValidationRequest** \ - * **PendingDomainControlValidationREquestApproval** \ - * **DomainControlValidationRequestApproved** \ - * **DomainControlValidationRequestRejected** \ - * **DomainControlValidationRequestTimedOut** \ - * **IssuingCertificate** \ - * **DeployingCertificate** \ - * **CertificateDeployed** \ - * **DeletingCertificate** \ - * **CertificateDeleted** + UrlRewrite = "UrlRewrite", + UrlSigning = "UrlSigning", + OriginGroupOverride = "OriginGroupOverride", + RouteConfigurationOverride = "RouteConfigurationOverride" +} + +/** + * Defines values for DeliveryRuleAction. \ + * {@link KnownDeliveryRuleAction} can be used interchangeably with DeliveryRuleAction, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **CacheExpiration** \ + * **CacheKeyQueryString** \ + * **ModifyRequestHeader** \ + * **ModifyResponseHeader** \ + * **UrlRedirect** \ + * **UrlRewrite** \ + * **UrlSigning** \ + * **OriginGroupOverride** \ + * **RouteConfigurationOverride** */ -export type CustomHttpsProvisioningSubstate = string; +export type DeliveryRuleAction = string; -/** Known values of {@link CertificateSource} that the service accepts. */ -export enum KnownCertificateSource { - AzureKeyVault = "AzureKeyVault", - Cdn = "Cdn" +/** Known values of {@link MatchProcessingBehavior} that the service accepts. */ +export enum KnownMatchProcessingBehavior { + Continue = "Continue", + Stop = "Stop" } /** - * Defines values for CertificateSource. \ - * {@link KnownCertificateSource} can be used interchangeably with CertificateSource, + * Defines values for MatchProcessingBehavior. \ + * {@link KnownMatchProcessingBehavior} can be used interchangeably with MatchProcessingBehavior, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **AzureKeyVault** \ - * **Cdn** + * **Continue** \ + * **Stop** */ -export type CertificateSource = string; +export type MatchProcessingBehavior = string; -/** Known values of {@link ProtocolType} that the service accepts. */ -export enum KnownProtocolType { - ServerNameIndication = "ServerNameIndication", - IPBased = "IPBased" +/** Known values of {@link SecurityPolicyType} that the service accepts. */ +export enum KnownSecurityPolicyType { + WebApplicationFirewall = "WebApplicationFirewall" } /** - * Defines values for ProtocolType. \ - * {@link KnownProtocolType} can be used interchangeably with ProtocolType, + * Defines values for SecurityPolicyType. \ + * {@link KnownSecurityPolicyType} can be used interchangeably with SecurityPolicyType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **ServerNameIndication** \ - * **IPBased** + * **WebApplicationFirewall** */ -export type ProtocolType = string; +export type SecurityPolicyType = string; -/** Known values of {@link UsageUnit} that the service accepts. */ -export enum KnownUsageUnit { - Count = "Count" +/** Known values of {@link SecretType} that the service accepts. */ +export enum KnownSecretType { + UrlSigningKey = "UrlSigningKey", + CustomerCertificate = "CustomerCertificate", + ManagedCertificate = "ManagedCertificate", + AzureFirstPartyManagedCertificate = "AzureFirstPartyManagedCertificate" } /** - * Defines values for UsageUnit. \ - * {@link KnownUsageUnit} can be used interchangeably with UsageUnit, + * Defines values for SecretType. \ + * {@link KnownSecretType} can be used interchangeably with SecretType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Count** + * **UrlSigningKey** \ + * **CustomerCertificate** \ + * **ManagedCertificate** \ + * **AzureFirstPartyManagedCertificate** */ -export type UsageUnit = string; +export type SecretType = string; -/** Known values of {@link DomainValidationState} that the service accepts. */ -export enum KnownDomainValidationState { - Unknown = "Unknown", - Submitting = "Submitting", - Pending = "Pending", - TimedOut = "TimedOut", - PendingRevalidation = "PendingRevalidation", - Approved = "Approved" +/** Known values of {@link Status} that the service accepts. */ +export enum KnownStatus { + Valid = "Valid", + Invalid = "Invalid", + AccessDenied = "AccessDenied", + CertificateExpired = "CertificateExpired" } /** - * Defines values for DomainValidationState. \ - * {@link KnownDomainValidationState} can be used interchangeably with DomainValidationState, + * Defines values for Status. \ + * {@link KnownStatus} can be used interchangeably with Status, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Unknown** \ - * **Submitting** \ - * **Pending** \ - * **TimedOut** \ - * **PendingRevalidation** \ - * **Approved** + * **Valid** \ + * **Invalid** \ + * **AccessDenied** \ + * **CertificateExpired** */ -export type DomainValidationState = string; +export type Status = string; -/** Known values of {@link AfdCertificateType} that the service accepts. */ -export enum KnownAfdCertificateType { - CustomerCertificate = "CustomerCertificate", - ManagedCertificate = "ManagedCertificate" +/** Known values of {@link LogMetric} that the service accepts. */ +export enum KnownLogMetric { + ClientRequestCount = "clientRequestCount", + ClientRequestTraffic = "clientRequestTraffic", + ClientRequestBandwidth = "clientRequestBandwidth", + OriginRequestTraffic = "originRequestTraffic", + OriginRequestBandwidth = "originRequestBandwidth", + TotalLatency = "totalLatency" } /** - * Defines values for AfdCertificateType. \ - * {@link KnownAfdCertificateType} can be used interchangeably with AfdCertificateType, + * Defines values for LogMetric. \ + * {@link KnownLogMetric} can be used interchangeably with LogMetric, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **CustomerCertificate** \ - * **ManagedCertificate** + * **clientRequestCount** \ + * **clientRequestTraffic** \ + * **clientRequestBandwidth** \ + * **originRequestTraffic** \ + * **originRequestBandwidth** \ + * **totalLatency** */ -export type AfdCertificateType = string; +export type LogMetric = string; -/** Known values of {@link AfdProvisioningState} that the service accepts. */ -export enum KnownAfdProvisioningState { - Succeeded = "Succeeded", - Failed = "Failed", - Updating = "Updating", - Deleting = "Deleting", - Creating = "Creating" +/** Known values of {@link LogMetricsGranularity} that the service accepts. */ +export enum KnownLogMetricsGranularity { + PT5M = "PT5M", + PT1H = "PT1H", + P1D = "P1D" } /** - * Defines values for AfdProvisioningState. \ - * {@link KnownAfdProvisioningState} can be used interchangeably with AfdProvisioningState, + * Defines values for LogMetricsGranularity. \ + * {@link KnownLogMetricsGranularity} can be used interchangeably with LogMetricsGranularity, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Succeeded** \ - * **Failed** \ - * **Updating** \ - * **Deleting** \ - * **Creating** + * **PT5M** \ + * **PT1H** \ + * **P1D** */ -export type AfdProvisioningState = string; +export type LogMetricsGranularity = string; -/** Known values of {@link DeploymentStatus} that the service accepts. */ -export enum KnownDeploymentStatus { - NotStarted = "NotStarted", - InProgress = "InProgress", - Succeeded = "Succeeded", - Failed = "Failed" +/** Known values of {@link LogMetricsGroupBy} that the service accepts. */ +export enum KnownLogMetricsGroupBy { + HttpStatusCode = "httpStatusCode", + Protocol = "protocol", + CacheStatus = "cacheStatus", + CountryOrRegion = "countryOrRegion", + CustomDomain = "customDomain" } /** - * Defines values for DeploymentStatus. \ - * {@link KnownDeploymentStatus} can be used interchangeably with DeploymentStatus, + * Defines values for LogMetricsGroupBy. \ + * {@link KnownLogMetricsGroupBy} can be used interchangeably with LogMetricsGroupBy, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **NotStarted** \ - * **InProgress** \ - * **Succeeded** \ - * **Failed** + * **httpStatusCode** \ + * **protocol** \ + * **cacheStatus** \ + * **countryOrRegion** \ + * **customDomain** */ -export type DeploymentStatus = string; +export type LogMetricsGroupBy = string; -/** Known values of {@link EnabledState} that the service accepts. */ -export enum KnownEnabledState { - Enabled = "Enabled", - Disabled = "Disabled" +/** Known values of {@link MetricsResponseGranularity} that the service accepts. */ +export enum KnownMetricsResponseGranularity { + PT5M = "PT5M", + PT1H = "PT1H", + P1D = "P1D" } /** - * Defines values for EnabledState. \ - * {@link KnownEnabledState} can be used interchangeably with EnabledState, + * Defines values for MetricsResponseGranularity. \ + * {@link KnownMetricsResponseGranularity} can be used interchangeably with MetricsResponseGranularity, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Enabled** \ - * **Disabled** + * **PT5M** \ + * **PT1H** \ + * **P1D** */ -export type EnabledState = string; +export type MetricsResponseGranularity = string; -/** Known values of {@link AFDEndpointProtocols} that the service accepts. */ -export enum KnownAFDEndpointProtocols { - Http = "Http", - Https = "Https" +/** Known values of {@link MetricsResponseSeriesItemUnit} that the service accepts. */ +export enum KnownMetricsResponseSeriesItemUnit { + Count = "count", + Bytes = "bytes", + BitsPerSecond = "bitsPerSecond", + MilliSeconds = "milliSeconds" } /** - * Defines values for AFDEndpointProtocols. \ - * {@link KnownAFDEndpointProtocols} can be used interchangeably with AFDEndpointProtocols, + * Defines values for MetricsResponseSeriesItemUnit. \ + * {@link KnownMetricsResponseSeriesItemUnit} can be used interchangeably with MetricsResponseSeriesItemUnit, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Http** \ - * **Https** + * **count** \ + * **bytes** \ + * **bitsPerSecond** \ + * **milliSeconds** */ -export type AFDEndpointProtocols = string; +export type MetricsResponseSeriesItemUnit = string; -/** Known values of {@link ForwardingProtocol} that the service accepts. */ -export enum KnownForwardingProtocol { - HttpOnly = "HttpOnly", - HttpsOnly = "HttpsOnly", - MatchRequest = "MatchRequest" +/** Known values of {@link LogRanking} that the service accepts. */ +export enum KnownLogRanking { + Url = "url", + Referrer = "referrer", + Browser = "browser", + UserAgent = "userAgent", + CountryOrRegion = "countryOrRegion" } /** - * Defines values for ForwardingProtocol. \ - * {@link KnownForwardingProtocol} can be used interchangeably with ForwardingProtocol, + * Defines values for LogRanking. \ + * {@link KnownLogRanking} can be used interchangeably with LogRanking, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **HttpOnly** \ - * **HttpsOnly** \ - * **MatchRequest** + * **url** \ + * **referrer** \ + * **browser** \ + * **userAgent** \ + * **countryOrRegion** */ -export type ForwardingProtocol = string; +export type LogRanking = string; -/** Known values of {@link LinkToDefaultDomain} that the service accepts. */ -export enum KnownLinkToDefaultDomain { - Enabled = "Enabled", - Disabled = "Disabled" +/** Known values of {@link LogRankingMetric} that the service accepts. */ +export enum KnownLogRankingMetric { + ClientRequestCount = "clientRequestCount", + ClientRequestTraffic = "clientRequestTraffic", + HitCount = "hitCount", + MissCount = "missCount", + UserErrorCount = "userErrorCount", + ErrorCount = "errorCount" } /** - * Defines values for LinkToDefaultDomain. \ - * {@link KnownLinkToDefaultDomain} can be used interchangeably with LinkToDefaultDomain, + * Defines values for LogRankingMetric. \ + * {@link KnownLogRankingMetric} can be used interchangeably with LogRankingMetric, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Enabled** \ - * **Disabled** + * **clientRequestCount** \ + * **clientRequestTraffic** \ + * **hitCount** \ + * **missCount** \ + * **userErrorCount** \ + * **errorCount** */ -export type LinkToDefaultDomain = string; +export type LogRankingMetric = string; -/** Known values of {@link HttpsRedirect} that the service accepts. */ -export enum KnownHttpsRedirect { - Enabled = "Enabled", - Disabled = "Disabled" +/** Known values of {@link WafMetric} that the service accepts. */ +export enum KnownWafMetric { + ClientRequestCount = "clientRequestCount" } /** - * Defines values for HttpsRedirect. \ - * {@link KnownHttpsRedirect} can be used interchangeably with HttpsRedirect, + * Defines values for WafMetric. \ + * {@link KnownWafMetric} can be used interchangeably with WafMetric, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Enabled** \ - * **Disabled** + * **clientRequestCount** */ -export type HttpsRedirect = string; +export type WafMetric = string; -/** Known values of {@link MatchProcessingBehavior} that the service accepts. */ -export enum KnownMatchProcessingBehavior { - Continue = "Continue", - Stop = "Stop" +/** Known values of {@link WafGranularity} that the service accepts. */ +export enum KnownWafGranularity { + PT5M = "PT5M", + PT1H = "PT1H", + P1D = "P1D" } /** - * Defines values for MatchProcessingBehavior. \ - * {@link KnownMatchProcessingBehavior} can be used interchangeably with MatchProcessingBehavior, + * Defines values for WafGranularity. \ + * {@link KnownWafGranularity} can be used interchangeably with WafGranularity, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Continue** \ - * **Stop** + * **PT5M** \ + * **PT1H** \ + * **P1D** */ -export type MatchProcessingBehavior = string; +export type WafGranularity = string; -/** Known values of {@link SecurityPolicyType} that the service accepts. */ -export enum KnownSecurityPolicyType { - WebApplicationFirewall = "WebApplicationFirewall" +/** Known values of {@link WafAction} that the service accepts. */ +export enum KnownWafAction { + Allow = "allow", + Block = "block", + Log = "log", + Redirect = "redirect" } /** - * Defines values for SecurityPolicyType. \ - * {@link KnownSecurityPolicyType} can be used interchangeably with SecurityPolicyType, + * Defines values for WafAction. \ + * {@link KnownWafAction} can be used interchangeably with WafAction, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **WebApplicationFirewall** + * **allow** \ + * **block** \ + * **log** \ + * **redirect** */ -export type SecurityPolicyType = string; +export type WafAction = string; -/** Known values of {@link SecretType} that the service accepts. */ -export enum KnownSecretType { - UrlSigningKey = "UrlSigningKey", - CustomerCertificate = "CustomerCertificate", - ManagedCertificate = "ManagedCertificate" +/** Known values of {@link WafRankingGroupBy} that the service accepts. */ +export enum KnownWafRankingGroupBy { + HttpStatusCode = "httpStatusCode", + CustomDomain = "customDomain" } /** - * Defines values for SecretType. \ - * {@link KnownSecretType} can be used interchangeably with SecretType, + * Defines values for WafRankingGroupBy. \ + * {@link KnownWafRankingGroupBy} can be used interchangeably with WafRankingGroupBy, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **UrlSigningKey** \ - * **CustomerCertificate** \ - * **ManagedCertificate** + * **httpStatusCode** \ + * **customDomain** */ -export type SecretType = string; +export type WafRankingGroupBy = string; -/** Known values of {@link ValidateSecretType} that the service accepts. */ -export enum KnownValidateSecretType { - UrlSigningKey = "UrlSigningKey", - ManagedCertificate = "ManagedCertificate", - CustomerCertificate = "CustomerCertificate" +/** Known values of {@link WafRuleType} that the service accepts. */ +export enum KnownWafRuleType { + Managed = "managed", + Custom = "custom", + Bot = "bot" } /** - * Defines values for ValidateSecretType. \ - * {@link KnownValidateSecretType} can be used interchangeably with ValidateSecretType, + * Defines values for WafRuleType. \ + * {@link KnownWafRuleType} can be used interchangeably with WafRuleType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **UrlSigningKey** \ - * **ManagedCertificate** \ - * **CustomerCertificate** + * **managed** \ + * **custom** \ + * **bot** */ -export type ValidateSecretType = string; +export type WafRuleType = string; -/** Known values of {@link Status} that the service accepts. */ -export enum KnownStatus { - Valid = "Valid", - Invalid = "Invalid", - AccessDenied = "AccessDenied", - CertificateExpired = "CertificateExpired" +/** Known values of {@link WafMetricsResponseGranularity} that the service accepts. */ +export enum KnownWafMetricsResponseGranularity { + PT5M = "PT5M", + PT1H = "PT1H", + P1D = "P1D" } /** - * Defines values for Status. \ - * {@link KnownStatus} can be used interchangeably with Status, + * Defines values for WafMetricsResponseGranularity. \ + * {@link KnownWafMetricsResponseGranularity} can be used interchangeably with WafMetricsResponseGranularity, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Valid** \ - * **Invalid** \ - * **AccessDenied** \ - * **CertificateExpired** + * **PT5M** \ + * **PT1H** \ + * **P1D** */ -export type Status = string; +export type WafMetricsResponseGranularity = string; -/** Known values of {@link LogMetric} that the service accepts. */ -export enum KnownLogMetric { - ClientRequestCount = "clientRequestCount", - ClientRequestTraffic = "clientRequestTraffic", - ClientRequestBandwidth = "clientRequestBandwidth", - OriginRequestTraffic = "originRequestTraffic", - OriginRequestBandwidth = "originRequestBandwidth", - TotalLatency = "totalLatency" +/** Known values of {@link WafRankingType} that the service accepts. */ +export enum KnownWafRankingType { + Action = "action", + RuleGroup = "ruleGroup", + RuleId = "ruleId", + UserAgent = "userAgent", + ClientIp = "clientIp", + Url = "url", + CountryOrRegion = "countryOrRegion", + RuleType = "ruleType" } /** - * Defines values for LogMetric. \ - * {@link KnownLogMetric} can be used interchangeably with LogMetric, + * Defines values for WafRankingType. \ + * {@link KnownWafRankingType} can be used interchangeably with WafRankingType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **clientRequestCount** \ - * **clientRequestTraffic** \ - * **clientRequestBandwidth** \ - * **originRequestTraffic** \ - * **originRequestBandwidth** \ - * **totalLatency** + * **action** \ + * **ruleGroup** \ + * **ruleId** \ + * **userAgent** \ + * **clientIp** \ + * **url** \ + * **countryOrRegion** \ + * **ruleType** */ -export type LogMetric = string; +export type WafRankingType = string; -/** Known values of {@link LogMetricsGranularity} that the service accepts. */ -export enum KnownLogMetricsGranularity { - PT5M = "PT5M", - PT1H = "PT1H", - P1D = "P1D" +/** Known values of {@link SkuName} that the service accepts. */ +export enum KnownSkuName { + StandardVerizon = "Standard_Verizon", + PremiumVerizon = "Premium_Verizon", + CustomVerizon = "Custom_Verizon", + StandardAkamai = "Standard_Akamai", + StandardChinaCdn = "Standard_ChinaCdn", + StandardMicrosoft = "Standard_Microsoft", + StandardAzureFrontDoor = "Standard_AzureFrontDoor", + PremiumAzureFrontDoor = "Premium_AzureFrontDoor", + Standard955BandWidthChinaCdn = "Standard_955BandWidth_ChinaCdn", + StandardAvgBandWidthChinaCdn = "Standard_AvgBandWidth_ChinaCdn", + StandardPlusChinaCdn = "StandardPlus_ChinaCdn", + StandardPlus955BandWidthChinaCdn = "StandardPlus_955BandWidth_ChinaCdn", + StandardPlusAvgBandWidthChinaCdn = "StandardPlus_AvgBandWidth_ChinaCdn" } /** - * Defines values for LogMetricsGranularity. \ - * {@link KnownLogMetricsGranularity} can be used interchangeably with LogMetricsGranularity, + * Defines values for SkuName. \ + * {@link KnownSkuName} can be used interchangeably with SkuName, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **PT5M** \ - * **PT1H** \ - * **P1D** + * **Standard_Verizon** \ + * **Premium_Verizon** \ + * **Custom_Verizon** \ + * **Standard_Akamai** \ + * **Standard_ChinaCdn** \ + * **Standard_Microsoft** \ + * **Standard_AzureFrontDoor** \ + * **Premium_AzureFrontDoor** \ + * **Standard_955BandWidth_ChinaCdn** \ + * **Standard_AvgBandWidth_ChinaCdn** \ + * **StandardPlus_ChinaCdn** \ + * **StandardPlus_955BandWidth_ChinaCdn** \ + * **StandardPlus_AvgBandWidth_ChinaCdn** */ -export type LogMetricsGranularity = string; +export type SkuName = string; -/** Known values of {@link LogMetricsGroupBy} that the service accepts. */ -export enum KnownLogMetricsGroupBy { - HttpStatusCode = "httpStatusCode", - Protocol = "protocol", - CacheStatus = "cacheStatus", - Country = "country", - CustomDomain = "customDomain" +/** Known values of {@link ProfileResourceState} that the service accepts. */ +export enum KnownProfileResourceState { + Creating = "Creating", + Active = "Active", + Deleting = "Deleting", + Disabled = "Disabled" } /** - * Defines values for LogMetricsGroupBy. \ - * {@link KnownLogMetricsGroupBy} can be used interchangeably with LogMetricsGroupBy, + * Defines values for ProfileResourceState. \ + * {@link KnownProfileResourceState} can be used interchangeably with ProfileResourceState, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **httpStatusCode** \ - * **protocol** \ - * **cacheStatus** \ - * **country** \ - * **customDomain** + * **Creating** \ + * **Active** \ + * **Deleting** \ + * **Disabled** */ -export type LogMetricsGroupBy = string; +export type ProfileResourceState = string; -/** Known values of {@link MetricsResponseGranularity} that the service accepts. */ -export enum KnownMetricsResponseGranularity { - PT5M = "PT5M", - PT1H = "PT1H", - P1D = "P1D" +/** Known values of {@link ManagedServiceIdentityType} that the service accepts. */ +export enum KnownManagedServiceIdentityType { + SystemAssigned = "SystemAssigned", + None = "None" } /** - * Defines values for MetricsResponseGranularity. \ - * {@link KnownMetricsResponseGranularity} can be used interchangeably with MetricsResponseGranularity, + * Defines values for ManagedServiceIdentityType. \ + * {@link KnownManagedServiceIdentityType} can be used interchangeably with ManagedServiceIdentityType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **PT5M** \ - * **PT1H** \ - * **P1D** + * **SystemAssigned** \ + * **None** */ -export type MetricsResponseGranularity = string; +export type ManagedServiceIdentityType = string; -/** Known values of {@link MetricsResponseSeriesItemUnit} that the service accepts. */ -export enum KnownMetricsResponseSeriesItemUnit { - Count = "count", - Bytes = "bytes", - BitsPerSecond = "bitsPerSecond" +/** Known values of {@link OptimizationType} that the service accepts. */ +export enum KnownOptimizationType { + GeneralWebDelivery = "GeneralWebDelivery", + GeneralMediaStreaming = "GeneralMediaStreaming", + VideoOnDemandMediaStreaming = "VideoOnDemandMediaStreaming", + LargeFileDownload = "LargeFileDownload", + DynamicSiteAcceleration = "DynamicSiteAcceleration" } /** - * Defines values for MetricsResponseSeriesItemUnit. \ - * {@link KnownMetricsResponseSeriesItemUnit} can be used interchangeably with MetricsResponseSeriesItemUnit, + * Defines values for OptimizationType. \ + * {@link KnownOptimizationType} can be used interchangeably with OptimizationType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **count** \ - * **bytes** \ - * **bitsPerSecond** + * **GeneralWebDelivery** \ + * **GeneralMediaStreaming** \ + * **VideoOnDemandMediaStreaming** \ + * **LargeFileDownload** \ + * **DynamicSiteAcceleration** */ -export type MetricsResponseSeriesItemUnit = string; +export type OptimizationType = string; -/** Known values of {@link LogRanking} that the service accepts. */ -export enum KnownLogRanking { - Url = "url", - Referrer = "referrer", - Browser = "browser", - UserAgent = "userAgent", - CountryOrRegion = "countryOrRegion" +/** Known values of {@link PrivateEndpointStatus} that the service accepts. */ +export enum KnownPrivateEndpointStatus { + Pending = "Pending", + Approved = "Approved", + Rejected = "Rejected", + Disconnected = "Disconnected", + Timeout = "Timeout" } /** - * Defines values for LogRanking. \ - * {@link KnownLogRanking} can be used interchangeably with LogRanking, + * Defines values for PrivateEndpointStatus. \ + * {@link KnownPrivateEndpointStatus} can be used interchangeably with PrivateEndpointStatus, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **url** \ - * **referrer** \ - * **browser** \ - * **userAgent** \ - * **countryOrRegion** + * **Pending** \ + * **Approved** \ + * **Rejected** \ + * **Disconnected** \ + * **Timeout** */ -export type LogRanking = string; +export type PrivateEndpointStatus = string; -/** Known values of {@link LogRankingMetric} that the service accepts. */ -export enum KnownLogRankingMetric { - ClientRequestCount = "clientRequestCount", - ClientRequestTraffic = "clientRequestTraffic", - HitCount = "hitCount", - MissCount = "missCount", - UserErrorCount = "userErrorCount", - ErrorCount = "errorCount" +/** Known values of {@link CustomDomainResourceState} that the service accepts. */ +export enum KnownCustomDomainResourceState { + Creating = "Creating", + Active = "Active", + Deleting = "Deleting" } /** - * Defines values for LogRankingMetric. \ - * {@link KnownLogRankingMetric} can be used interchangeably with LogRankingMetric, + * Defines values for CustomDomainResourceState. \ + * {@link KnownCustomDomainResourceState} can be used interchangeably with CustomDomainResourceState, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **clientRequestCount** \ - * **clientRequestTraffic** \ - * **hitCount** \ - * **missCount** \ - * **userErrorCount** \ - * **errorCount** + * **Creating** \ + * **Active** \ + * **Deleting** */ -export type LogRankingMetric = string; +export type CustomDomainResourceState = string; -/** Known values of {@link WafMetric} that the service accepts. */ -export enum KnownWafMetric { - ClientRequestCount = "clientRequestCount" +/** Known values of {@link CustomHttpsProvisioningState} that the service accepts. */ +export enum KnownCustomHttpsProvisioningState { + Enabling = "Enabling", + Enabled = "Enabled", + Disabling = "Disabling", + Disabled = "Disabled", + Failed = "Failed" } /** - * Defines values for WafMetric. \ - * {@link KnownWafMetric} can be used interchangeably with WafMetric, + * Defines values for CustomHttpsProvisioningState. \ + * {@link KnownCustomHttpsProvisioningState} can be used interchangeably with CustomHttpsProvisioningState, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **clientRequestCount** + * **Enabling** \ + * **Enabled** \ + * **Disabling** \ + * **Disabled** \ + * **Failed** */ -export type WafMetric = string; +export type CustomHttpsProvisioningState = string; -/** Known values of {@link WafGranularity} that the service accepts. */ -export enum KnownWafGranularity { - PT5M = "PT5M", - PT1H = "PT1H", - P1D = "P1D" +/** Known values of {@link CustomHttpsProvisioningSubstate} that the service accepts. */ +export enum KnownCustomHttpsProvisioningSubstate { + SubmittingDomainControlValidationRequest = "SubmittingDomainControlValidationRequest", + PendingDomainControlValidationREquestApproval = "PendingDomainControlValidationREquestApproval", + DomainControlValidationRequestApproved = "DomainControlValidationRequestApproved", + DomainControlValidationRequestRejected = "DomainControlValidationRequestRejected", + DomainControlValidationRequestTimedOut = "DomainControlValidationRequestTimedOut", + IssuingCertificate = "IssuingCertificate", + DeployingCertificate = "DeployingCertificate", + CertificateDeployed = "CertificateDeployed", + DeletingCertificate = "DeletingCertificate", + CertificateDeleted = "CertificateDeleted" } /** - * Defines values for WafGranularity. \ - * {@link KnownWafGranularity} can be used interchangeably with WafGranularity, + * Defines values for CustomHttpsProvisioningSubstate. \ + * {@link KnownCustomHttpsProvisioningSubstate} can be used interchangeably with CustomHttpsProvisioningSubstate, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **PT5M** \ - * **PT1H** \ - * **P1D** + * **SubmittingDomainControlValidationRequest** \ + * **PendingDomainControlValidationREquestApproval** \ + * **DomainControlValidationRequestApproved** \ + * **DomainControlValidationRequestRejected** \ + * **DomainControlValidationRequestTimedOut** \ + * **IssuingCertificate** \ + * **DeployingCertificate** \ + * **CertificateDeployed** \ + * **DeletingCertificate** \ + * **CertificateDeleted** */ -export type WafGranularity = string; +export type CustomHttpsProvisioningSubstate = string; -/** Known values of {@link WafAction} that the service accepts. */ -export enum KnownWafAction { - Allow = "allow", - Block = "block", - Log = "log", - Redirect = "redirect" +/** Known values of {@link CertificateSource} that the service accepts. */ +export enum KnownCertificateSource { + AzureKeyVault = "AzureKeyVault", + Cdn = "Cdn" } /** - * Defines values for WafAction. \ - * {@link KnownWafAction} can be used interchangeably with WafAction, + * Defines values for CertificateSource. \ + * {@link KnownCertificateSource} can be used interchangeably with CertificateSource, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **allow** \ - * **block** \ - * **log** \ - * **redirect** + * **AzureKeyVault** \ + * **Cdn** */ -export type WafAction = string; +export type CertificateSource = string; -/** Known values of {@link WafRankingGroupBy} that the service accepts. */ -export enum KnownWafRankingGroupBy { - HttpStatusCode = "httpStatusCode", - CustomDomain = "customDomain" +/** Known values of {@link ProtocolType} that the service accepts. */ +export enum KnownProtocolType { + ServerNameIndication = "ServerNameIndication", + IPBased = "IPBased" } /** - * Defines values for WafRankingGroupBy. \ - * {@link KnownWafRankingGroupBy} can be used interchangeably with WafRankingGroupBy, + * Defines values for ProtocolType. \ + * {@link KnownProtocolType} can be used interchangeably with ProtocolType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **httpStatusCode** \ - * **customDomain** + * **ServerNameIndication** \ + * **IPBased** */ -export type WafRankingGroupBy = string; +export type ProtocolType = string; -/** Known values of {@link WafRuleType} that the service accepts. */ -export enum KnownWafRuleType { - Managed = "managed", - Custom = "custom", - Bot = "bot" +/** Known values of {@link EndpointResourceState} that the service accepts. */ +export enum KnownEndpointResourceState { + Creating = "Creating", + Deleting = "Deleting", + Running = "Running", + Starting = "Starting", + Stopped = "Stopped", + Stopping = "Stopping" } /** - * Defines values for WafRuleType. \ - * {@link KnownWafRuleType} can be used interchangeably with WafRuleType, + * Defines values for EndpointResourceState. \ + * {@link KnownEndpointResourceState} can be used interchangeably with EndpointResourceState, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **managed** \ - * **custom** \ - * **bot** + * **Creating** \ + * **Deleting** \ + * **Running** \ + * **Starting** \ + * **Stopped** \ + * **Stopping** */ -export type WafRuleType = string; +export type EndpointResourceState = string; -/** Known values of {@link WafMetricsResponseGranularity} that the service accepts. */ -export enum KnownWafMetricsResponseGranularity { - PT5M = "PT5M", - PT1H = "PT1H", - P1D = "P1D" +/** Known values of {@link OriginResourceState} that the service accepts. */ +export enum KnownOriginResourceState { + Creating = "Creating", + Active = "Active", + Deleting = "Deleting" } /** - * Defines values for WafMetricsResponseGranularity. \ - * {@link KnownWafMetricsResponseGranularity} can be used interchangeably with WafMetricsResponseGranularity, + * Defines values for OriginResourceState. \ + * {@link KnownOriginResourceState} can be used interchangeably with OriginResourceState, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **PT5M** \ - * **PT1H** \ - * **P1D** + * **Creating** \ + * **Active** \ + * **Deleting** */ -export type WafMetricsResponseGranularity = string; +export type OriginResourceState = string; -/** Known values of {@link WafRankingType} that the service accepts. */ -export enum KnownWafRankingType { - Action = "action", - RuleGroup = "ruleGroup", - RuleId = "ruleId", - UserAgent = "userAgent", - ClientIp = "clientIp", - Url = "url", - Country = "country", - RuleType = "ruleType" +/** Known values of {@link OriginGroupResourceState} that the service accepts. */ +export enum KnownOriginGroupResourceState { + Creating = "Creating", + Active = "Active", + Deleting = "Deleting" } /** - * Defines values for WafRankingType. \ - * {@link KnownWafRankingType} can be used interchangeably with WafRankingType, + * Defines values for OriginGroupResourceState. \ + * {@link KnownOriginGroupResourceState} can be used interchangeably with OriginGroupResourceState, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **action** \ - * **ruleGroup** \ - * **ruleId** \ - * **userAgent** \ - * **clientIp** \ - * **url** \ - * **country** \ - * **ruleType** + * **Creating** \ + * **Active** \ + * **Deleting** */ -export type WafRankingType = string; +export type OriginGroupResourceState = string; /** Known values of {@link PolicyEnabledState} that the service accepts. */ export enum KnownPolicyEnabledState { @@ -3480,8 +4039,8 @@ export enum KnownPolicyMode { */ export type PolicyMode = string; -/** Known values of {@link Enum46} that the service accepts. */ -export enum KnownEnum46 { +/** Known values of {@link Enum47} that the service accepts. */ +export enum KnownEnum47 { TwoHundred = 200, FourHundredThree = 403, FourHundredFive = 405, @@ -3490,8 +4049,8 @@ export enum KnownEnum46 { } /** - * Defines values for Enum46. \ - * {@link KnownEnum46} can be used interchangeably with Enum46, + * Defines values for Enum47. \ + * {@link KnownEnum47} can be used interchangeably with Enum47, * this enum contains the known values that the service supports. * ### Known values supported by the service * **200** \ @@ -3500,7 +4059,7 @@ export enum KnownEnum46 { * **406** \ * **429** */ -export type Enum46 = number; +export type Enum47 = number; /** Known values of {@link CustomRuleEnabledState} that the service accepts. */ export enum KnownCustomRuleEnabledState { @@ -3516,7 +4075,37 @@ export enum KnownCustomRuleEnabledState { * **Disabled** \ * **Enabled** */ -export type CustomRuleEnabledState = string; +export type CustomRuleEnabledState = string; + +/** Known values of {@link WafMatchVariable} that the service accepts. */ +export enum KnownWafMatchVariable { + RemoteAddr = "RemoteAddr", + SocketAddr = "SocketAddr", + RequestMethod = "RequestMethod", + RequestHeader = "RequestHeader", + RequestUri = "RequestUri", + QueryString = "QueryString", + RequestBody = "RequestBody", + Cookies = "Cookies", + PostArgs = "PostArgs" +} + +/** + * Defines values for WafMatchVariable. \ + * {@link KnownWafMatchVariable} can be used interchangeably with WafMatchVariable, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **RemoteAddr** \ + * **SocketAddr** \ + * **RequestMethod** \ + * **RequestHeader** \ + * **RequestUri** \ + * **QueryString** \ + * **RequestBody** \ + * **Cookies** \ + * **PostArgs** + */ +export type WafMatchVariable = string; /** Known values of {@link Operator} that the service accepts. */ export enum KnownOperator { @@ -3677,7 +4266,11 @@ export type RemoteAddressOperator = string; /** Known values of {@link Transform} that the service accepts. */ export enum KnownTransform { Lowercase = "Lowercase", - Uppercase = "Uppercase" + Uppercase = "Uppercase", + Trim = "Trim", + UrlDecode = "UrlDecode", + UrlEncode = "UrlEncode", + RemoveNulls = "RemoveNulls" } /** @@ -3686,7 +4279,11 @@ export enum KnownTransform { * this enum contains the known values that the service supports. * ### Known values supported by the service * **Lowercase** \ - * **Uppercase** + * **Uppercase** \ + * **Trim** \ + * **UrlDecode** \ + * **UrlEncode** \ + * **RemoveNulls** */ export type Transform = string; @@ -4080,6 +4677,150 @@ export enum KnownIsDeviceMatchConditionParametersMatchValuesItem { */ export type IsDeviceMatchConditionParametersMatchValuesItem = string; +/** Known values of {@link SocketAddrOperator} that the service accepts. */ +export enum KnownSocketAddrOperator { + Any = "Any", + IPMatch = "IPMatch" +} + +/** + * Defines values for SocketAddrOperator. \ + * {@link KnownSocketAddrOperator} can be used interchangeably with SocketAddrOperator, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Any** \ + * **IPMatch** + */ +export type SocketAddrOperator = string; + +/** Known values of {@link ClientPortOperator} that the service accepts. */ +export enum KnownClientPortOperator { + Any = "Any", + Equal = "Equal", + Contains = "Contains", + BeginsWith = "BeginsWith", + EndsWith = "EndsWith", + LessThan = "LessThan", + LessThanOrEqual = "LessThanOrEqual", + GreaterThan = "GreaterThan", + GreaterThanOrEqual = "GreaterThanOrEqual", + RegEx = "RegEx" +} + +/** + * Defines values for ClientPortOperator. \ + * {@link KnownClientPortOperator} can be used interchangeably with ClientPortOperator, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Any** \ + * **Equal** \ + * **Contains** \ + * **BeginsWith** \ + * **EndsWith** \ + * **LessThan** \ + * **LessThanOrEqual** \ + * **GreaterThan** \ + * **GreaterThanOrEqual** \ + * **RegEx** + */ +export type ClientPortOperator = string; + +/** Known values of {@link ServerPortOperator} that the service accepts. */ +export enum KnownServerPortOperator { + Any = "Any", + Equal = "Equal", + Contains = "Contains", + BeginsWith = "BeginsWith", + EndsWith = "EndsWith", + LessThan = "LessThan", + LessThanOrEqual = "LessThanOrEqual", + GreaterThan = "GreaterThan", + GreaterThanOrEqual = "GreaterThanOrEqual", + RegEx = "RegEx" +} + +/** + * Defines values for ServerPortOperator. \ + * {@link KnownServerPortOperator} can be used interchangeably with ServerPortOperator, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Any** \ + * **Equal** \ + * **Contains** \ + * **BeginsWith** \ + * **EndsWith** \ + * **LessThan** \ + * **LessThanOrEqual** \ + * **GreaterThan** \ + * **GreaterThanOrEqual** \ + * **RegEx** + */ +export type ServerPortOperator = string; + +/** Known values of {@link HostNameOperator} that the service accepts. */ +export enum KnownHostNameOperator { + Any = "Any", + Equal = "Equal", + Contains = "Contains", + BeginsWith = "BeginsWith", + EndsWith = "EndsWith", + LessThan = "LessThan", + LessThanOrEqual = "LessThanOrEqual", + GreaterThan = "GreaterThan", + GreaterThanOrEqual = "GreaterThanOrEqual", + RegEx = "RegEx" +} + +/** + * Defines values for HostNameOperator. \ + * {@link KnownHostNameOperator} can be used interchangeably with HostNameOperator, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Any** \ + * **Equal** \ + * **Contains** \ + * **BeginsWith** \ + * **EndsWith** \ + * **LessThan** \ + * **LessThanOrEqual** \ + * **GreaterThan** \ + * **GreaterThanOrEqual** \ + * **RegEx** + */ +export type HostNameOperator = string; + +/** Known values of {@link SslProtocolOperator} that the service accepts. */ +export enum KnownSslProtocolOperator { + Equal = "Equal" +} + +/** + * Defines values for SslProtocolOperator. \ + * {@link KnownSslProtocolOperator} can be used interchangeably with SslProtocolOperator, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Equal** + */ +export type SslProtocolOperator = string; + +/** Known values of {@link SslProtocol} that the service accepts. */ +export enum KnownSslProtocol { + TLSv1 = "TLSv1", + TLSv11 = "TLSv1.1", + TLSv12 = "TLSv1.2" +} + +/** + * Defines values for SslProtocol. \ + * {@link KnownSslProtocol} can be used interchangeably with SslProtocol, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **TLSv1** \ + * **TLSv1.1** \ + * **TLSv1.2** + */ +export type SslProtocol = string; + /** Known values of {@link RedirectType} that the service accepts. */ export enum KnownRedirectType { Moved = "Moved", @@ -4220,6 +4961,60 @@ export enum KnownQueryStringBehavior { */ export type QueryStringBehavior = string; +/** Known values of {@link RuleQueryStringCachingBehavior} that the service accepts. */ +export enum KnownRuleQueryStringCachingBehavior { + IgnoreQueryString = "IgnoreQueryString", + UseQueryString = "UseQueryString", + IgnoreSpecifiedQueryStrings = "IgnoreSpecifiedQueryStrings", + IncludeSpecifiedQueryStrings = "IncludeSpecifiedQueryStrings" +} + +/** + * Defines values for RuleQueryStringCachingBehavior. \ + * {@link KnownRuleQueryStringCachingBehavior} can be used interchangeably with RuleQueryStringCachingBehavior, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **IgnoreQueryString** \ + * **UseQueryString** \ + * **IgnoreSpecifiedQueryStrings** \ + * **IncludeSpecifiedQueryStrings** + */ +export type RuleQueryStringCachingBehavior = string; + +/** Known values of {@link RuleIsCompressionEnabled} that the service accepts. */ +export enum KnownRuleIsCompressionEnabled { + Enabled = "Enabled", + Disabled = "Disabled" +} + +/** + * Defines values for RuleIsCompressionEnabled. \ + * {@link KnownRuleIsCompressionEnabled} can be used interchangeably with RuleIsCompressionEnabled, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Enabled** \ + * **Disabled** + */ +export type RuleIsCompressionEnabled = string; + +/** Known values of {@link RuleCacheBehavior} that the service accepts. */ +export enum KnownRuleCacheBehavior { + HonorOrigin = "HonorOrigin", + OverrideAlways = "OverrideAlways", + OverrideIfOriginMissing = "OverrideIfOriginMissing" +} + +/** + * Defines values for RuleCacheBehavior. \ + * {@link KnownRuleCacheBehavior} can be used interchangeably with RuleCacheBehavior, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **HonorOrigin** \ + * **OverrideAlways** \ + * **OverrideIfOriginMissing** + */ +export type RuleCacheBehavior = string; + /** Known values of {@link CertificateType} that the service accepts. */ export enum KnownCertificateType { Shared = "Shared", @@ -4263,6 +5058,8 @@ export enum KnownDeleteRule { * **NoAction** */ export type DeleteRule = string; +/** Defines values for AfdMinimumTlsVersion. */ +export type AfdMinimumTlsVersion = "TLS10" | "TLS12"; /** Defines values for HealthProbeRequestType. */ export type HealthProbeRequestType = "NotSet" | "GET" | "HEAD"; /** Defines values for ProbeProtocol. */ @@ -4272,6 +5069,8 @@ export type ResponseBasedDetectedErrorTypes = | "None" | "TcpErrorsOnly" | "TcpAndHttpErrors"; +/** Defines values for MinimumTlsVersion. */ +export type MinimumTlsVersion = "None" | "TLS10" | "TLS12"; /** Defines values for QueryStringCachingBehavior. */ export type QueryStringCachingBehavior = | "IgnoreQueryString" @@ -4280,15 +5079,6 @@ export type QueryStringCachingBehavior = | "NotSet"; /** Defines values for GeoFilterActions. */ export type GeoFilterActions = "Block" | "Allow"; -/** Defines values for MinimumTlsVersion. */ -export type MinimumTlsVersion = "None" | "TLS10" | "TLS12"; -/** Defines values for AfdMinimumTlsVersion. */ -export type AfdMinimumTlsVersion = "TLS10" | "TLS12"; -/** Defines values for AfdQueryStringCachingBehavior. */ -export type AfdQueryStringCachingBehavior = - | "IgnoreQueryString" - | "UseQueryString" - | "NotSet"; /** Defines values for SharedPrivateLinkResourceStatus. */ export type SharedPrivateLinkResourceStatus = | "Pending" @@ -4298,117 +5088,42 @@ export type SharedPrivateLinkResourceStatus = | "Timeout"; /** Optional parameters. */ -export interface ProfilesListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type ProfilesListResponse = ProfileListResult; - -/** Optional parameters. */ -export interface ProfilesListByResourceGroupOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByResourceGroup operation. */ -export type ProfilesListByResourceGroupResponse = ProfileListResult; - -/** Optional parameters. */ -export interface ProfilesGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type ProfilesGetResponse = Profile; - -/** Optional parameters. */ -export interface ProfilesCreateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the create operation. */ -export type ProfilesCreateResponse = Profile; - -/** Optional parameters. */ -export interface ProfilesUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the update operation. */ -export type ProfilesUpdateResponse = Profile; - -/** Optional parameters. */ -export interface ProfilesDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Optional parameters. */ -export interface ProfilesGenerateSsoUriOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the generateSsoUri operation. */ -export type ProfilesGenerateSsoUriResponse = SsoUri; - -/** Optional parameters. */ -export interface ProfilesListSupportedOptimizationTypesOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listSupportedOptimizationTypes operation. */ -export type ProfilesListSupportedOptimizationTypesResponse = SupportedOptimizationTypesListResult; - -/** Optional parameters. */ -export interface ProfilesListResourceUsageOptionalParams +export interface AFDProfilesListResourceUsageOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listResourceUsage operation. */ -export type ProfilesListResourceUsageResponse = ResourceUsageListResult; - -/** Optional parameters. */ -export interface ProfilesListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type ProfilesListNextResponse = ProfileListResult; +export type AFDProfilesListResourceUsageResponse = UsagesListResult; /** Optional parameters. */ -export interface ProfilesListByResourceGroupNextOptionalParams +export interface AFDProfilesCheckHostNameAvailabilityOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupNext operation. */ -export type ProfilesListByResourceGroupNextResponse = ProfileListResult; +/** Contains response data for the checkHostNameAvailability operation. */ +export type AFDProfilesCheckHostNameAvailabilityResponse = CheckNameAvailabilityOutput; /** Optional parameters. */ -export interface ProfilesListResourceUsageNextOptionalParams +export interface AFDProfilesListResourceUsageNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listResourceUsageNext operation. */ -export type ProfilesListResourceUsageNextResponse = ResourceUsageListResult; +export type AFDProfilesListResourceUsageNextResponse = UsagesListResult; /** Optional parameters. */ -export interface EndpointsListByProfileOptionalParams +export interface AFDCustomDomainsListByProfileOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByProfile operation. */ -export type EndpointsListByProfileResponse = EndpointListResult; +export type AFDCustomDomainsListByProfileResponse = AFDDomainListResult; /** Optional parameters. */ -export interface EndpointsGetOptionalParams +export interface AFDCustomDomainsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type EndpointsGetResponse = Endpoint; +export type AFDCustomDomainsGetResponse = AFDDomain; /** Optional parameters. */ -export interface EndpointsCreateOptionalParams +export interface AFDCustomDomainsCreateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -4417,10 +5132,10 @@ export interface EndpointsCreateOptionalParams } /** Contains response data for the create operation. */ -export type EndpointsCreateResponse = Endpoint; +export type AFDCustomDomainsCreateResponse = AFDDomain; /** Optional parameters. */ -export interface EndpointsUpdateOptionalParams +export interface AFDCustomDomainsUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -4429,10 +5144,10 @@ export interface EndpointsUpdateOptionalParams } /** Contains response data for the update operation. */ -export type EndpointsUpdateResponse = Endpoint; +export type AFDCustomDomainsUpdateResponse = AFDDomain; /** Optional parameters. */ -export interface EndpointsDeleteOptionalParams +export interface AFDCustomDomainsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -4441,7 +5156,7 @@ export interface EndpointsDeleteOptionalParams } /** Optional parameters. */ -export interface EndpointsStartOptionalParams +export interface AFDCustomDomainsRefreshValidationTokenOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -4449,11 +5164,29 @@ export interface EndpointsStartOptionalParams resumeFrom?: string; } -/** Contains response data for the start operation. */ -export type EndpointsStartResponse = Endpoint; +/** Optional parameters. */ +export interface AFDCustomDomainsListByProfileNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByProfileNext operation. */ +export type AFDCustomDomainsListByProfileNextResponse = AFDDomainListResult; /** Optional parameters. */ -export interface EndpointsStopOptionalParams +export interface AFDEndpointsListByProfileOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByProfile operation. */ +export type AFDEndpointsListByProfileResponse = AFDEndpointListResult; + +/** Optional parameters. */ +export interface AFDEndpointsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type AFDEndpointsGetResponse = AFDEndpoint; + +/** Optional parameters. */ +export interface AFDEndpointsCreateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -4461,11 +5194,11 @@ export interface EndpointsStopOptionalParams resumeFrom?: string; } -/** Contains response data for the stop operation. */ -export type EndpointsStopResponse = Endpoint; +/** Contains response data for the create operation. */ +export type AFDEndpointsCreateResponse = AFDEndpoint; /** Optional parameters. */ -export interface EndpointsPurgeContentOptionalParams +export interface AFDEndpointsUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -4473,8 +5206,11 @@ export interface EndpointsPurgeContentOptionalParams resumeFrom?: string; } +/** Contains response data for the update operation. */ +export type AFDEndpointsUpdateResponse = AFDEndpoint; + /** Optional parameters. */ -export interface EndpointsLoadContentOptionalParams +export interface AFDEndpointsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -4483,48 +5219,58 @@ export interface EndpointsLoadContentOptionalParams } /** Optional parameters. */ -export interface EndpointsValidateCustomDomainOptionalParams +export interface AFDEndpointsPurgeContentOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface AFDEndpointsListResourceUsageOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the validateCustomDomain operation. */ -export type EndpointsValidateCustomDomainResponse = ValidateCustomDomainOutput; +/** Contains response data for the listResourceUsage operation. */ +export type AFDEndpointsListResourceUsageResponse = UsagesListResult; /** Optional parameters. */ -export interface EndpointsListResourceUsageOptionalParams +export interface AFDEndpointsValidateCustomDomainOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listResourceUsage operation. */ -export type EndpointsListResourceUsageResponse = ResourceUsageListResult; +/** Contains response data for the validateCustomDomain operation. */ +export type AFDEndpointsValidateCustomDomainResponse = ValidateCustomDomainOutput; /** Optional parameters. */ -export interface EndpointsListByProfileNextOptionalParams +export interface AFDEndpointsListByProfileNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByProfileNext operation. */ -export type EndpointsListByProfileNextResponse = EndpointListResult; +export type AFDEndpointsListByProfileNextResponse = AFDEndpointListResult; /** Optional parameters. */ -export interface EndpointsListResourceUsageNextOptionalParams +export interface AFDEndpointsListResourceUsageNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listResourceUsageNext operation. */ -export type EndpointsListResourceUsageNextResponse = ResourceUsageListResult; +export type AFDEndpointsListResourceUsageNextResponse = UsagesListResult; /** Optional parameters. */ -export interface OriginsListByEndpointOptionalParams +export interface AFDOriginGroupsListByProfileOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByEndpoint operation. */ -export type OriginsListByEndpointResponse = OriginListResult; +/** Contains response data for the listByProfile operation. */ +export type AFDOriginGroupsListByProfileResponse = AFDOriginGroupListResult; /** Optional parameters. */ -export interface OriginsGetOptionalParams extends coreClient.OperationOptions {} +export interface AFDOriginGroupsGetOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type OriginsGetResponse = Origin; +export type AFDOriginGroupsGetResponse = AFDOriginGroup; /** Optional parameters. */ -export interface OriginsCreateOptionalParams +export interface AFDOriginGroupsCreateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -4533,10 +5279,10 @@ export interface OriginsCreateOptionalParams } /** Contains response data for the create operation. */ -export type OriginsCreateResponse = Origin; +export type AFDOriginGroupsCreateResponse = AFDOriginGroup; /** Optional parameters. */ -export interface OriginsUpdateOptionalParams +export interface AFDOriginGroupsUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -4545,10 +5291,10 @@ export interface OriginsUpdateOptionalParams } /** Contains response data for the update operation. */ -export type OriginsUpdateResponse = Origin; +export type AFDOriginGroupsUpdateResponse = AFDOriginGroup; /** Optional parameters. */ -export interface OriginsDeleteOptionalParams +export interface AFDOriginGroupsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -4557,28 +5303,42 @@ export interface OriginsDeleteOptionalParams } /** Optional parameters. */ -export interface OriginsListByEndpointNextOptionalParams +export interface AFDOriginGroupsListResourceUsageOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByEndpointNext operation. */ -export type OriginsListByEndpointNextResponse = OriginListResult; +/** Contains response data for the listResourceUsage operation. */ +export type AFDOriginGroupsListResourceUsageResponse = UsagesListResult; /** Optional parameters. */ -export interface OriginGroupsListByEndpointOptionalParams +export interface AFDOriginGroupsListByProfileNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByEndpoint operation. */ -export type OriginGroupsListByEndpointResponse = OriginGroupListResult; +/** Contains response data for the listByProfileNext operation. */ +export type AFDOriginGroupsListByProfileNextResponse = AFDOriginGroupListResult; /** Optional parameters. */ -export interface OriginGroupsGetOptionalParams +export interface AFDOriginGroupsListResourceUsageNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listResourceUsageNext operation. */ +export type AFDOriginGroupsListResourceUsageNextResponse = UsagesListResult; + +/** Optional parameters. */ +export interface AFDOriginsListByOriginGroupOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByOriginGroup operation. */ +export type AFDOriginsListByOriginGroupResponse = AFDOriginListResult; + +/** Optional parameters. */ +export interface AFDOriginsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type OriginGroupsGetResponse = OriginGroup; +export type AFDOriginsGetResponse = AFDOrigin; /** Optional parameters. */ -export interface OriginGroupsCreateOptionalParams +export interface AFDOriginsCreateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -4587,10 +5347,10 @@ export interface OriginGroupsCreateOptionalParams } /** Contains response data for the create operation. */ -export type OriginGroupsCreateResponse = OriginGroup; +export type AFDOriginsCreateResponse = AFDOrigin; /** Optional parameters. */ -export interface OriginGroupsUpdateOptionalParams +export interface AFDOriginsUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -4599,10 +5359,10 @@ export interface OriginGroupsUpdateOptionalParams } /** Contains response data for the update operation. */ -export type OriginGroupsUpdateResponse = OriginGroup; +export type AFDOriginsUpdateResponse = AFDOrigin; /** Optional parameters. */ -export interface OriginGroupsDeleteOptionalParams +export interface AFDOriginsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -4611,28 +5371,27 @@ export interface OriginGroupsDeleteOptionalParams } /** Optional parameters. */ -export interface OriginGroupsListByEndpointNextOptionalParams +export interface AFDOriginsListByOriginGroupNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByEndpointNext operation. */ -export type OriginGroupsListByEndpointNextResponse = OriginGroupListResult; +/** Contains response data for the listByOriginGroupNext operation. */ +export type AFDOriginsListByOriginGroupNextResponse = AFDOriginListResult; /** Optional parameters. */ -export interface CustomDomainsListByEndpointOptionalParams +export interface RoutesListByEndpointOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByEndpoint operation. */ -export type CustomDomainsListByEndpointResponse = CustomDomainListResult; +export type RoutesListByEndpointResponse = RouteListResult; /** Optional parameters. */ -export interface CustomDomainsGetOptionalParams - extends coreClient.OperationOptions {} +export interface RoutesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type CustomDomainsGetResponse = CustomDomain; +export type RoutesGetResponse = Route; /** Optional parameters. */ -export interface CustomDomainsCreateOptionalParams +export interface RoutesCreateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -4641,10 +5400,10 @@ export interface CustomDomainsCreateOptionalParams } /** Contains response data for the create operation. */ -export type CustomDomainsCreateResponse = CustomDomain; +export type RoutesCreateResponse = Route; /** Optional parameters. */ -export interface CustomDomainsDeleteOptionalParams +export interface RoutesUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -4652,20 +5411,12 @@ export interface CustomDomainsDeleteOptionalParams resumeFrom?: string; } -/** Optional parameters. */ -export interface CustomDomainsDisableCustomHttpsOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +/** Contains response data for the update operation. */ +export type RoutesUpdateResponse = Route; /** Optional parameters. */ -export interface CustomDomainsEnableCustomHttpsOptionalParams +export interface RoutesDeleteOptionalParams extends coreClient.OperationOptions { - /** The configuration specifying how to enable HTTPS for the custom domain - using CDN managed certificate or user's own certificate. If not specified, enabling ssl uses CDN managed certificate by default. */ - customDomainHttpsParameters?: CustomDomainHttpsParametersUnion; /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -4673,113 +5424,78 @@ export interface CustomDomainsEnableCustomHttpsOptionalParams } /** Optional parameters. */ -export interface CustomDomainsListByEndpointNextOptionalParams +export interface RoutesListByEndpointNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByEndpointNext operation. */ -export type CustomDomainsListByEndpointNextResponse = CustomDomainListResult; - -/** Optional parameters. */ -export interface CheckNameAvailabilityOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the checkNameAvailability operation. */ -export type CheckNameAvailabilityResponse = CheckNameAvailabilityOutput; - -/** Optional parameters. */ -export interface CheckNameAvailabilityWithSubscriptionOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the checkNameAvailabilityWithSubscription operation. */ -export type CheckNameAvailabilityWithSubscriptionResponse = CheckNameAvailabilityOutput; - -/** Optional parameters. */ -export interface ValidateProbeOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the validateProbe operation. */ -export type ValidateProbeResponse = ValidateProbeOutput; - -/** Optional parameters. */ -export interface ResourceUsageListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type ResourceUsageListResponse = ResourceUsageListResult; - -/** Optional parameters. */ -export interface ResourceUsageListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type ResourceUsageListNextResponse = ResourceUsageListResult; +export type RoutesListByEndpointNextResponse = RouteListResult; /** Optional parameters. */ -export interface OperationsListOptionalParams +export interface RuleSetsListByProfileOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type OperationsListResponse = OperationsListResult; +/** Contains response data for the listByProfile operation. */ +export type RuleSetsListByProfileResponse = RuleSetListResult; /** Optional parameters. */ -export interface OperationsListNextOptionalParams +export interface RuleSetsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type OperationsListNextResponse = OperationsListResult; +/** Contains response data for the get operation. */ +export type RuleSetsGetResponse = RuleSet; /** Optional parameters. */ -export interface EdgeNodesListOptionalParams +export interface RuleSetsCreateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type EdgeNodesListResponse = EdgenodeResult; +/** Contains response data for the create operation. */ +export type RuleSetsCreateResponse = RuleSet; /** Optional parameters. */ -export interface EdgeNodesListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type EdgeNodesListNextResponse = EdgenodeResult; +export interface RuleSetsDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} /** Optional parameters. */ -export interface AFDProfilesListResourceUsageOptionalParams +export interface RuleSetsListResourceUsageOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listResourceUsage operation. */ -export type AFDProfilesListResourceUsageResponse = UsagesListResult; +export type RuleSetsListResourceUsageResponse = UsagesListResult; /** Optional parameters. */ -export interface AFDProfilesCheckHostNameAvailabilityOptionalParams +export interface RuleSetsListByProfileNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the checkHostNameAvailability operation. */ -export type AFDProfilesCheckHostNameAvailabilityResponse = ValidateCustomDomainOutput; +/** Contains response data for the listByProfileNext operation. */ +export type RuleSetsListByProfileNextResponse = RuleSetListResult; /** Optional parameters. */ -export interface AFDProfilesListResourceUsageNextOptionalParams +export interface RuleSetsListResourceUsageNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listResourceUsageNext operation. */ -export type AFDProfilesListResourceUsageNextResponse = UsagesListResult; +export type RuleSetsListResourceUsageNextResponse = UsagesListResult; /** Optional parameters. */ -export interface AFDCustomDomainsListByProfileOptionalParams +export interface RulesListByRuleSetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByProfile operation. */ -export type AFDCustomDomainsListByProfileResponse = AFDDomainListResult; +/** Contains response data for the listByRuleSet operation. */ +export type RulesListByRuleSetResponse = RuleListResult; /** Optional parameters. */ -export interface AFDCustomDomainsGetOptionalParams - extends coreClient.OperationOptions {} +export interface RulesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type AFDCustomDomainsGetResponse = AFDDomain; +export type RulesGetResponse = Rule; /** Optional parameters. */ -export interface AFDCustomDomainsCreateOptionalParams - extends coreClient.OperationOptions { +export interface RulesCreateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -4787,11 +5503,10 @@ export interface AFDCustomDomainsCreateOptionalParams } /** Contains response data for the create operation. */ -export type AFDCustomDomainsCreateResponse = AFDDomain; +export type RulesCreateResponse = Rule; /** Optional parameters. */ -export interface AFDCustomDomainsUpdateOptionalParams - extends coreClient.OperationOptions { +export interface RulesUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -4799,52 +5514,39 @@ export interface AFDCustomDomainsUpdateOptionalParams } /** Contains response data for the update operation. */ -export type AFDCustomDomainsUpdateResponse = AFDDomain; - -/** Optional parameters. */ -export interface AFDCustomDomainsDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export type RulesUpdateResponse = Rule; /** Optional parameters. */ -export interface AFDCustomDomainsRefreshValidationTokenOptionalParams - extends coreClient.OperationOptions { +export interface RulesDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } -/** Contains response data for the refreshValidationToken operation. */ -export type AFDCustomDomainsRefreshValidationTokenResponse = ValidationToken; - /** Optional parameters. */ -export interface AFDCustomDomainsListByProfileNextOptionalParams +export interface RulesListByRuleSetNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByProfileNext operation. */ -export type AFDCustomDomainsListByProfileNextResponse = AFDDomainListResult; +/** Contains response data for the listByRuleSetNext operation. */ +export type RulesListByRuleSetNextResponse = RuleListResult; /** Optional parameters. */ -export interface AFDEndpointsListByProfileOptionalParams +export interface SecurityPoliciesListByProfileOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByProfile operation. */ -export type AFDEndpointsListByProfileResponse = AFDEndpointListResult; +export type SecurityPoliciesListByProfileResponse = SecurityPolicyListResult; /** Optional parameters. */ -export interface AFDEndpointsGetOptionalParams +export interface SecurityPoliciesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type AFDEndpointsGetResponse = AFDEndpoint; +export type SecurityPoliciesGetResponse = SecurityPolicy; /** Optional parameters. */ -export interface AFDEndpointsCreateOptionalParams +export interface SecurityPoliciesCreateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -4853,10 +5555,10 @@ export interface AFDEndpointsCreateOptionalParams } /** Contains response data for the create operation. */ -export type AFDEndpointsCreateResponse = AFDEndpoint; +export type SecurityPoliciesCreateResponse = SecurityPolicy; /** Optional parameters. */ -export interface AFDEndpointsUpdateOptionalParams +export interface SecurityPoliciesPatchOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -4864,20 +5566,11 @@ export interface AFDEndpointsUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the update operation. */ -export type AFDEndpointsUpdateResponse = AFDEndpoint; - -/** Optional parameters. */ -export interface AFDEndpointsDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +/** Contains response data for the patch operation. */ +export type SecurityPoliciesPatchResponse = SecurityPolicy; /** Optional parameters. */ -export interface AFDEndpointsPurgeContentOptionalParams +export interface SecurityPoliciesDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -4886,49 +5579,27 @@ export interface AFDEndpointsPurgeContentOptionalParams } /** Optional parameters. */ -export interface AFDEndpointsListResourceUsageOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listResourceUsage operation. */ -export type AFDEndpointsListResourceUsageResponse = UsagesListResult; - -/** Optional parameters. */ -export interface AFDEndpointsValidateCustomDomainOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the validateCustomDomain operation. */ -export type AFDEndpointsValidateCustomDomainResponse = ValidateCustomDomainOutput; - -/** Optional parameters. */ -export interface AFDEndpointsListByProfileNextOptionalParams +export interface SecurityPoliciesListByProfileNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByProfileNext operation. */ -export type AFDEndpointsListByProfileNextResponse = AFDEndpointListResult; - -/** Optional parameters. */ -export interface AFDEndpointsListResourceUsageNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listResourceUsageNext operation. */ -export type AFDEndpointsListResourceUsageNextResponse = UsagesListResult; +export type SecurityPoliciesListByProfileNextResponse = SecurityPolicyListResult; /** Optional parameters. */ -export interface AFDOriginGroupsListByProfileOptionalParams +export interface SecretsListByProfileOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByProfile operation. */ -export type AFDOriginGroupsListByProfileResponse = AFDOriginGroupListResult; +export type SecretsListByProfileResponse = SecretListResult; /** Optional parameters. */ -export interface AFDOriginGroupsGetOptionalParams - extends coreClient.OperationOptions {} +export interface SecretsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type AFDOriginGroupsGetResponse = AFDOriginGroup; +export type SecretsGetResponse = Secret; /** Optional parameters. */ -export interface AFDOriginGroupsCreateOptionalParams +export interface SecretsCreateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -4937,10 +5608,10 @@ export interface AFDOriginGroupsCreateOptionalParams } /** Contains response data for the create operation. */ -export type AFDOriginGroupsCreateResponse = AFDOriginGroup; +export type SecretsCreateResponse = Secret; /** Optional parameters. */ -export interface AFDOriginGroupsUpdateOptionalParams +export interface SecretsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -4948,55 +5619,107 @@ export interface AFDOriginGroupsUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the update operation. */ -export type AFDOriginGroupsUpdateResponse = AFDOriginGroup; +/** Optional parameters. */ +export interface SecretsListByProfileNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByProfileNext operation. */ +export type SecretsListByProfileNextResponse = SecretListResult; /** Optional parameters. */ -export interface AFDOriginGroupsDeleteOptionalParams +export interface ValidateSecretOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the secret operation. */ +export type ValidateSecretResponse = ValidateSecretOutput; + +/** Optional parameters. */ +export interface LogAnalyticsGetLogAnalyticsMetricsOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + /** Array of LogMetricsGroupBy */ + groupBy?: LogMetricsGroupBy[]; + /** Array of Get9ItemsItem */ + continents?: string[]; + /** Array of Get10ItemsItem */ + countryOrRegions?: string[]; } +/** Contains response data for the getLogAnalyticsMetrics operation. */ +export type LogAnalyticsGetLogAnalyticsMetricsResponse = MetricsResponse; + /** Optional parameters. */ -export interface AFDOriginGroupsListResourceUsageOptionalParams +export interface LogAnalyticsGetLogAnalyticsRankingsOptionalParams + extends coreClient.OperationOptions { + /** Array of String */ + customDomains?: string[]; +} + +/** Contains response data for the getLogAnalyticsRankings operation. */ +export type LogAnalyticsGetLogAnalyticsRankingsResponse = RankingsResponse; + +/** Optional parameters. */ +export interface LogAnalyticsGetLogAnalyticsLocationsOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listResourceUsage operation. */ -export type AFDOriginGroupsListResourceUsageResponse = UsagesListResult; +/** Contains response data for the getLogAnalyticsLocations operation. */ +export type LogAnalyticsGetLogAnalyticsLocationsResponse = ContinentsResponse; /** Optional parameters. */ -export interface AFDOriginGroupsListByProfileNextOptionalParams +export interface LogAnalyticsGetLogAnalyticsResourcesOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByProfileNext operation. */ -export type AFDOriginGroupsListByProfileNextResponse = AFDOriginGroupListResult; +/** Contains response data for the getLogAnalyticsResources operation. */ +export type LogAnalyticsGetLogAnalyticsResourcesResponse = ResourcesResponse; /** Optional parameters. */ -export interface AFDOriginGroupsListResourceUsageNextOptionalParams +export interface LogAnalyticsGetWafLogAnalyticsMetricsOptionalParams + extends coreClient.OperationOptions { + /** Array of WafAction */ + actions?: WafAction[]; + /** Array of WafRankingGroupBy */ + groupBy?: WafRankingGroupBy[]; + /** Array of WafRuleType */ + ruleTypes?: WafRuleType[]; +} + +/** Contains response data for the getWafLogAnalyticsMetrics operation. */ +export type LogAnalyticsGetWafLogAnalyticsMetricsResponse = WafMetricsResponse; + +/** Optional parameters. */ +export interface LogAnalyticsGetWafLogAnalyticsRankingsOptionalParams + extends coreClient.OperationOptions { + /** Array of WafAction */ + actions?: WafAction[]; + /** Array of WafRuleType */ + ruleTypes?: WafRuleType[]; +} + +/** Contains response data for the getWafLogAnalyticsRankings operation. */ +export type LogAnalyticsGetWafLogAnalyticsRankingsResponse = WafRankingsResponse; + +/** Optional parameters. */ +export interface ProfilesListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listResourceUsageNext operation. */ -export type AFDOriginGroupsListResourceUsageNextResponse = UsagesListResult; +/** Contains response data for the list operation. */ +export type ProfilesListResponse = ProfileListResult; /** Optional parameters. */ -export interface AFDOriginsListByOriginGroupOptionalParams +export interface ProfilesListByResourceGroupOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByOriginGroup operation. */ -export type AFDOriginsListByOriginGroupResponse = AFDOriginListResult; +/** Contains response data for the listByResourceGroup operation. */ +export type ProfilesListByResourceGroupResponse = ProfileListResult; /** Optional parameters. */ -export interface AFDOriginsGetOptionalParams +export interface ProfilesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type AFDOriginsGetResponse = AFDOrigin; +export type ProfilesGetResponse = Profile; /** Optional parameters. */ -export interface AFDOriginsCreateOptionalParams +export interface ProfilesCreateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -5005,10 +5728,10 @@ export interface AFDOriginsCreateOptionalParams } /** Contains response data for the create operation. */ -export type AFDOriginsCreateResponse = AFDOrigin; +export type ProfilesCreateResponse = Profile; /** Optional parameters. */ -export interface AFDOriginsUpdateOptionalParams +export interface ProfilesUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -5017,10 +5740,10 @@ export interface AFDOriginsUpdateOptionalParams } /** Contains response data for the update operation. */ -export type AFDOriginsUpdateResponse = AFDOrigin; +export type ProfilesUpdateResponse = Profile; /** Optional parameters. */ -export interface AFDOriginsDeleteOptionalParams +export interface ProfilesDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -5029,27 +5752,63 @@ export interface AFDOriginsDeleteOptionalParams } /** Optional parameters. */ -export interface AFDOriginsListByOriginGroupNextOptionalParams +export interface ProfilesGenerateSsoUriOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByOriginGroupNext operation. */ -export type AFDOriginsListByOriginGroupNextResponse = AFDOriginListResult; +/** Contains response data for the generateSsoUri operation. */ +export type ProfilesGenerateSsoUriResponse = SsoUri; /** Optional parameters. */ -export interface RoutesListByEndpointOptionalParams +export interface ProfilesListSupportedOptimizationTypesOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByEndpoint operation. */ -export type RoutesListByEndpointResponse = RouteListResult; +/** Contains response data for the listSupportedOptimizationTypes operation. */ +export type ProfilesListSupportedOptimizationTypesResponse = SupportedOptimizationTypesListResult; + +/** Optional parameters. */ +export interface ProfilesListResourceUsageOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listResourceUsage operation. */ +export type ProfilesListResourceUsageResponse = ResourceUsageListResult; + +/** Optional parameters. */ +export interface ProfilesListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type ProfilesListNextResponse = ProfileListResult; + +/** Optional parameters. */ +export interface ProfilesListByResourceGroupNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResourceGroupNext operation. */ +export type ProfilesListByResourceGroupNextResponse = ProfileListResult; + +/** Optional parameters. */ +export interface ProfilesListResourceUsageNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listResourceUsageNext operation. */ +export type ProfilesListResourceUsageNextResponse = ResourceUsageListResult; + +/** Optional parameters. */ +export interface EndpointsListByProfileOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByProfile operation. */ +export type EndpointsListByProfileResponse = EndpointListResult; /** Optional parameters. */ -export interface RoutesGetOptionalParams extends coreClient.OperationOptions {} +export interface EndpointsGetOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type RoutesGetResponse = Route; +export type EndpointsGetResponse = Endpoint; /** Optional parameters. */ -export interface RoutesCreateOptionalParams +export interface EndpointsCreateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -5058,10 +5817,10 @@ export interface RoutesCreateOptionalParams } /** Contains response data for the create operation. */ -export type RoutesCreateResponse = Route; +export type EndpointsCreateResponse = Endpoint; /** Optional parameters. */ -export interface RoutesUpdateOptionalParams +export interface EndpointsUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -5070,10 +5829,10 @@ export interface RoutesUpdateOptionalParams } /** Contains response data for the update operation. */ -export type RoutesUpdateResponse = Route; +export type EndpointsUpdateResponse = Endpoint; /** Optional parameters. */ -export interface RoutesDeleteOptionalParams +export interface EndpointsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -5082,28 +5841,31 @@ export interface RoutesDeleteOptionalParams } /** Optional parameters. */ -export interface RoutesListByEndpointNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByEndpointNext operation. */ -export type RoutesListByEndpointNextResponse = RouteListResult; - -/** Optional parameters. */ -export interface RuleSetsListByProfileOptionalParams - extends coreClient.OperationOptions {} +export interface EndpointsStartOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** Contains response data for the listByProfile operation. */ -export type RuleSetsListByProfileResponse = RuleSetListResult; +/** Contains response data for the start operation. */ +export type EndpointsStartResponse = Endpoint; /** Optional parameters. */ -export interface RuleSetsGetOptionalParams - extends coreClient.OperationOptions {} +export interface EndpointsStopOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** Contains response data for the get operation. */ -export type RuleSetsGetResponse = RuleSet; +/** Contains response data for the stop operation. */ +export type EndpointsStopResponse = Endpoint; /** Optional parameters. */ -export interface RuleSetsCreateOptionalParams +export interface EndpointsPurgeContentOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -5111,11 +5873,8 @@ export interface RuleSetsCreateOptionalParams resumeFrom?: string; } -/** Contains response data for the create operation. */ -export type RuleSetsCreateResponse = RuleSet; - /** Optional parameters. */ -export interface RuleSetsDeleteOptionalParams +export interface EndpointsLoadContentOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -5124,41 +5883,49 @@ export interface RuleSetsDeleteOptionalParams } /** Optional parameters. */ -export interface RuleSetsListResourceUsageOptionalParams +export interface EndpointsValidateCustomDomainOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the validateCustomDomain operation. */ +export type EndpointsValidateCustomDomainResponse = ValidateCustomDomainOutput; + +/** Optional parameters. */ +export interface EndpointsListResourceUsageOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listResourceUsage operation. */ -export type RuleSetsListResourceUsageResponse = UsagesListResult; +export type EndpointsListResourceUsageResponse = ResourceUsageListResult; /** Optional parameters. */ -export interface RuleSetsListByProfileNextOptionalParams +export interface EndpointsListByProfileNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByProfileNext operation. */ -export type RuleSetsListByProfileNextResponse = RuleSetListResult; +export type EndpointsListByProfileNextResponse = EndpointListResult; /** Optional parameters. */ -export interface RuleSetsListResourceUsageNextOptionalParams +export interface EndpointsListResourceUsageNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listResourceUsageNext operation. */ -export type RuleSetsListResourceUsageNextResponse = UsagesListResult; +export type EndpointsListResourceUsageNextResponse = ResourceUsageListResult; /** Optional parameters. */ -export interface RulesListByRuleSetOptionalParams +export interface OriginsListByEndpointOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByRuleSet operation. */ -export type RulesListByRuleSetResponse = RuleListResult; +/** Contains response data for the listByEndpoint operation. */ +export type OriginsListByEndpointResponse = OriginListResult; /** Optional parameters. */ -export interface RulesGetOptionalParams extends coreClient.OperationOptions {} +export interface OriginsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type RulesGetResponse = Rule; +export type OriginsGetResponse = Origin; /** Optional parameters. */ -export interface RulesCreateOptionalParams extends coreClient.OperationOptions { +export interface OriginsCreateOptionalParams + extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -5166,10 +5933,11 @@ export interface RulesCreateOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the create operation. */ -export type RulesCreateResponse = Rule; +export type OriginsCreateResponse = Origin; /** Optional parameters. */ -export interface RulesUpdateOptionalParams extends coreClient.OperationOptions { +export interface OriginsUpdateOptionalParams + extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -5177,10 +5945,11 @@ export interface RulesUpdateOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the update operation. */ -export type RulesUpdateResponse = Rule; +export type OriginsUpdateResponse = Origin; /** Optional parameters. */ -export interface RulesDeleteOptionalParams extends coreClient.OperationOptions { +export interface OriginsDeleteOptionalParams + extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -5188,28 +5957,28 @@ export interface RulesDeleteOptionalParams extends coreClient.OperationOptions { } /** Optional parameters. */ -export interface RulesListByRuleSetNextOptionalParams +export interface OriginsListByEndpointNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByRuleSetNext operation. */ -export type RulesListByRuleSetNextResponse = RuleListResult; +/** Contains response data for the listByEndpointNext operation. */ +export type OriginsListByEndpointNextResponse = OriginListResult; /** Optional parameters. */ -export interface SecurityPoliciesListByProfileOptionalParams +export interface OriginGroupsListByEndpointOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByProfile operation. */ -export type SecurityPoliciesListByProfileResponse = SecurityPolicyListResult; +/** Contains response data for the listByEndpoint operation. */ +export type OriginGroupsListByEndpointResponse = OriginGroupListResult; /** Optional parameters. */ -export interface SecurityPoliciesGetOptionalParams +export interface OriginGroupsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type SecurityPoliciesGetResponse = SecurityPolicy; +export type OriginGroupsGetResponse = OriginGroup; /** Optional parameters. */ -export interface SecurityPoliciesCreateOptionalParams +export interface OriginGroupsCreateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -5218,10 +5987,10 @@ export interface SecurityPoliciesCreateOptionalParams } /** Contains response data for the create operation. */ -export type SecurityPoliciesCreateResponse = SecurityPolicy; +export type OriginGroupsCreateResponse = OriginGroup; /** Optional parameters. */ -export interface SecurityPoliciesPatchOptionalParams +export interface OriginGroupsUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -5229,11 +5998,11 @@ export interface SecurityPoliciesPatchOptionalParams resumeFrom?: string; } -/** Contains response data for the patch operation. */ -export type SecurityPoliciesPatchResponse = SecurityPolicy; +/** Contains response data for the update operation. */ +export type OriginGroupsUpdateResponse = OriginGroup; /** Optional parameters. */ -export interface SecurityPoliciesDeleteOptionalParams +export interface OriginGroupsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -5242,27 +6011,28 @@ export interface SecurityPoliciesDeleteOptionalParams } /** Optional parameters. */ -export interface SecurityPoliciesListByProfileNextOptionalParams +export interface OriginGroupsListByEndpointNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByProfileNext operation. */ -export type SecurityPoliciesListByProfileNextResponse = SecurityPolicyListResult; +/** Contains response data for the listByEndpointNext operation. */ +export type OriginGroupsListByEndpointNextResponse = OriginGroupListResult; /** Optional parameters. */ -export interface SecretsListByProfileOptionalParams +export interface CustomDomainsListByEndpointOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByProfile operation. */ -export type SecretsListByProfileResponse = SecretListResult; +/** Contains response data for the listByEndpoint operation. */ +export type CustomDomainsListByEndpointResponse = CustomDomainListResult; /** Optional parameters. */ -export interface SecretsGetOptionalParams extends coreClient.OperationOptions {} +export interface CustomDomainsGetOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type SecretsGetResponse = Secret; +export type CustomDomainsGetResponse = CustomDomain; /** Optional parameters. */ -export interface SecretsCreateOptionalParams +export interface CustomDomainsCreateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -5271,10 +6041,10 @@ export interface SecretsCreateOptionalParams } /** Contains response data for the create operation. */ -export type SecretsCreateResponse = Secret; +export type CustomDomainsCreateResponse = CustomDomain; /** Optional parameters. */ -export interface SecretsUpdateOptionalParams +export interface CustomDomainsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -5282,95 +6052,92 @@ export interface SecretsUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the update operation. */ -export type SecretsUpdateResponse = Secret; +/** Optional parameters. */ +export interface CustomDomainsDisableCustomHttpsOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the disableCustomHttps operation. */ +export type CustomDomainsDisableCustomHttpsResponse = CustomDomain; /** Optional parameters. */ -export interface SecretsDeleteOptionalParams +export interface CustomDomainsEnableCustomHttpsOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + /** The configuration specifying how to enable HTTPS for the custom domain - using CDN managed certificate or user's own certificate. If not specified, enabling ssl uses CDN managed certificate by default. */ + customDomainHttpsParameters?: CustomDomainHttpsParametersUnion; } +/** Contains response data for the enableCustomHttps operation. */ +export type CustomDomainsEnableCustomHttpsResponse = CustomDomain; + /** Optional parameters. */ -export interface SecretsListByProfileNextOptionalParams +export interface CustomDomainsListByEndpointNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByProfileNext operation. */ -export type SecretsListByProfileNextResponse = SecretListResult; +/** Contains response data for the listByEndpointNext operation. */ +export type CustomDomainsListByEndpointNextResponse = CustomDomainListResult; /** Optional parameters. */ -export interface ValidateSecretOptionalParams +export interface CheckNameAvailabilityOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the secret operation. */ -export type ValidateSecretResponse = ValidateSecretOutput; +/** Contains response data for the checkNameAvailability operation. */ +export type CheckNameAvailabilityResponse = CheckNameAvailabilityOutput; /** Optional parameters. */ -export interface LogAnalyticsGetLogAnalyticsMetricsOptionalParams - extends coreClient.OperationOptions { - /** Array of LogMetricsGroupBy */ - groupBy?: LogMetricsGroupBy[]; - /** Array of Get9ItemsItem */ - continents?: string[]; - /** Array of Get10ItemsItem */ - countryOrRegions?: string[]; -} +export interface CheckNameAvailabilityWithSubscriptionOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the getLogAnalyticsMetrics operation. */ -export type LogAnalyticsGetLogAnalyticsMetricsResponse = MetricsResponse; +/** Contains response data for the checkNameAvailabilityWithSubscription operation. */ +export type CheckNameAvailabilityWithSubscriptionResponse = CheckNameAvailabilityOutput; /** Optional parameters. */ -export interface LogAnalyticsGetLogAnalyticsRankingsOptionalParams - extends coreClient.OperationOptions { - /** Array of String */ - customDomains?: string[]; -} +export interface ValidateProbeOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the getLogAnalyticsRankings operation. */ -export type LogAnalyticsGetLogAnalyticsRankingsResponse = RankingsResponse; +/** Contains response data for the validateProbe operation. */ +export type ValidateProbeResponse = ValidateProbeOutput; /** Optional parameters. */ -export interface LogAnalyticsGetLogAnalyticsLocationsOptionalParams +export interface ResourceUsageListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getLogAnalyticsLocations operation. */ -export type LogAnalyticsGetLogAnalyticsLocationsResponse = ContinentsResponse; +/** Contains response data for the list operation. */ +export type ResourceUsageListResponse = ResourceUsageListResult; /** Optional parameters. */ -export interface LogAnalyticsGetLogAnalyticsResourcesOptionalParams +export interface ResourceUsageListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getLogAnalyticsResources operation. */ -export type LogAnalyticsGetLogAnalyticsResourcesResponse = ResourcesResponse; +/** Contains response data for the listNext operation. */ +export type ResourceUsageListNextResponse = ResourceUsageListResult; /** Optional parameters. */ -export interface LogAnalyticsGetWafLogAnalyticsMetricsOptionalParams - extends coreClient.OperationOptions { - /** Array of WafAction */ - actions?: WafAction[]; - /** Array of WafRankingGroupBy */ - groupBy?: WafRankingGroupBy[]; - /** Array of WafRuleType */ - ruleTypes?: WafRuleType[]; -} +export interface OperationsListOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the getWafLogAnalyticsMetrics operation. */ -export type LogAnalyticsGetWafLogAnalyticsMetricsResponse = WafMetricsResponse; +/** Contains response data for the list operation. */ +export type OperationsListResponse = OperationsListResult; /** Optional parameters. */ -export interface LogAnalyticsGetWafLogAnalyticsRankingsOptionalParams - extends coreClient.OperationOptions { - /** Array of WafAction */ - actions?: WafAction[]; - /** Array of WafRuleType */ - ruleTypes?: WafRuleType[]; -} +export interface OperationsListNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the getWafLogAnalyticsRankings operation. */ -export type LogAnalyticsGetWafLogAnalyticsRankingsResponse = WafRankingsResponse; +/** Contains response data for the listNext operation. */ +export type OperationsListNextResponse = OperationsListResult; + +/** Optional parameters. */ +export interface EdgeNodesListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type EdgeNodesListResponse = EdgenodeResult; + +/** Optional parameters. */ +export interface EdgeNodesListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type EdgeNodesListNextResponse = EdgenodeResult; /** Optional parameters. */ export interface PoliciesListOptionalParams diff --git a/sdk/cdn/arm-cdn/src/models/mappers.ts b/sdk/cdn/arm-cdn/src/models/mappers.ts index 9bac922dff64..17f4ee384419 100644 --- a/sdk/cdn/arm-cdn/src/models/mappers.ts +++ b/sdk/cdn/arm-cdn/src/models/mappers.ts @@ -8,20 +8,19 @@ import * as coreClient from "@azure/core-client"; -export const ProfileListResult: coreClient.CompositeMapper = { +export const UsagesListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ProfileListResult", + className: "UsagesListResult", modelProperties: { value: { serializedName: "value", - readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "Profile" + className: "Usage" } } } @@ -36,25 +35,10 @@ export const ProfileListResult: coreClient.CompositeMapper = { } }; -export const Sku: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Sku", - modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - } - } - } -}; - -export const Resource: coreClient.CompositeMapper = { +export const Usage: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Resource", + className: "Usage", modelProperties: { id: { serializedName: "id", @@ -63,80 +47,79 @@ export const Resource: coreClient.CompositeMapper = { name: "String" } }, - name: { - serializedName: "name", - readOnly: true, + unit: { + serializedName: "unit", + required: true, type: { name: "String" } }, - type: { - serializedName: "type", - readOnly: true, + currentValue: { + serializedName: "currentValue", + required: true, type: { - name: "String" + name: "Number" } }, - systemData: { - serializedName: "systemData", + limit: { + serializedName: "limit", + required: true, + type: { + name: "Number" + } + }, + name: { + serializedName: "name", type: { name: "Composite", - className: "SystemData" + className: "UsageName" } } } } }; -export const SystemData: coreClient.CompositeMapper = { +export const UsageName: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SystemData", + className: "UsageName", modelProperties: { - createdBy: { - serializedName: "createdBy", - type: { - name: "String" - } - }, - createdByType: { - serializedName: "createdByType", - type: { - name: "String" - } - }, - createdAt: { - serializedName: "createdAt", - type: { - name: "DateTime" - } - }, - lastModifiedBy: { - serializedName: "lastModifiedBy", + value: { + serializedName: "value", type: { name: "String" } }, - lastModifiedByType: { - serializedName: "lastModifiedByType", + localizedValue: { + serializedName: "localizedValue", type: { name: "String" } - }, - lastModifiedAt: { - serializedName: "lastModifiedAt", + } + } + } +}; + +export const AfdErrorResponse: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AfdErrorResponse", + modelProperties: { + error: { + serializedName: "error", type: { - name: "DateTime" + name: "Composite", + className: "ErrorDetail" } } } } }; -export const ErrorResponse: coreClient.CompositeMapper = { +export const ErrorDetail: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ErrorResponse", + className: "ErrorDetail", modelProperties: { code: { serializedName: "code", @@ -151,35 +134,76 @@ export const ErrorResponse: coreClient.CompositeMapper = { type: { name: "String" } + }, + target: { + serializedName: "target", + readOnly: true, + type: { + name: "String" + } + }, + details: { + serializedName: "details", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorDetail" + } + } + } + }, + additionalInfo: { + serializedName: "additionalInfo", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorAdditionalInfo" + } + } + } } } } }; -export const ProfileUpdateParameters: coreClient.CompositeMapper = { +export const ErrorAdditionalInfo: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ProfileUpdateParameters", + className: "ErrorAdditionalInfo", modelProperties: { - tags: { - serializedName: "tags", + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String" + } + }, + info: { + serializedName: "info", + readOnly: true, type: { name: "Dictionary", - value: { type: { name: "String" } } + value: { type: { name: "any" } } } } } } }; -export const SsoUri: coreClient.CompositeMapper = { +export const CheckHostNameAvailabilityInput: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SsoUri", + className: "CheckHostNameAvailabilityInput", modelProperties: { - ssoUriValue: { - serializedName: "ssoUriValue", - readOnly: true, + hostName: { + serializedName: "hostName", + required: true, type: { name: "String" } @@ -188,31 +212,40 @@ export const SsoUri: coreClient.CompositeMapper = { } }; -export const SupportedOptimizationTypesListResult: coreClient.CompositeMapper = { +export const CheckNameAvailabilityOutput: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SupportedOptimizationTypesListResult", + className: "CheckNameAvailabilityOutput", modelProperties: { - supportedOptimizationTypes: { - serializedName: "supportedOptimizationTypes", + nameAvailable: { + serializedName: "nameAvailable", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Boolean" + } + }, + reason: { + serializedName: "reason", + readOnly: true, + type: { + name: "String" + } + }, + message: { + serializedName: "message", + readOnly: true, + type: { + name: "String" } } } } }; -export const ResourceUsageListResult: coreClient.CompositeMapper = { +export const AFDDomainListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceUsageListResult", + className: "AFDDomainListResult", modelProperties: { value: { serializedName: "value", @@ -222,7 +255,7 @@ export const ResourceUsageListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ResourceUsage" + className: "AFDDomain" } } } @@ -237,268 +270,273 @@ export const ResourceUsageListResult: coreClient.CompositeMapper = { } }; -export const ResourceUsage: coreClient.CompositeMapper = { +export const DomainValidationProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceUsage", + className: "DomainValidationProperties", modelProperties: { - resourceType: { - serializedName: "resourceType", + validationToken: { + serializedName: "validationToken", readOnly: true, type: { name: "String" } }, - unit: { - serializedName: "unit", + expirationDate: { + serializedName: "expirationDate", readOnly: true, type: { name: "String" } - }, - currentValue: { - serializedName: "currentValue", - readOnly: true, - type: { - name: "Number" - } - }, - limit: { - serializedName: "limit", - readOnly: true, - type: { - name: "Number" - } } } } }; -export const EndpointListResult: coreClient.CompositeMapper = { +export const AFDDomainUpdatePropertiesParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EndpointListResult", + className: "AFDDomainUpdatePropertiesParameters", modelProperties: { - value: { - serializedName: "value", + profileName: { + serializedName: "profileName", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Endpoint" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + tlsSettings: { + serializedName: "tlsSettings", type: { - name: "String" + name: "Composite", + className: "AFDDomainHttpsParameters" + } + }, + azureDnsZone: { + serializedName: "azureDnsZone", + type: { + name: "Composite", + className: "ResourceReference" + } + }, + preValidatedCustomDomainResourceId: { + serializedName: "preValidatedCustomDomainResourceId", + type: { + name: "Composite", + className: "ResourceReference" } } } } }; -export const DeepCreatedOrigin: coreClient.CompositeMapper = { +export const AFDDomainHttpsParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DeepCreatedOrigin", + className: "AFDDomainHttpsParameters", modelProperties: { - name: { - serializedName: "name", + certificateType: { + serializedName: "certificateType", required: true, type: { name: "String" } }, - hostName: { - serializedName: "properties.hostName", + minimumTlsVersion: { + serializedName: "minimumTlsVersion", type: { - name: "String" - } - }, - httpPort: { - constraints: { - InclusiveMaximum: 65535, - InclusiveMinimum: 1 - }, - serializedName: "properties.httpPort", - type: { - name: "Number" + name: "Enum", + allowedValues: ["TLS10", "TLS12"] } }, - httpsPort: { - constraints: { - InclusiveMaximum: 65535, - InclusiveMinimum: 1 - }, - serializedName: "properties.httpsPort", + secret: { + serializedName: "secret", type: { - name: "Number" + name: "Composite", + className: "ResourceReference" } - }, - originHostHeader: { - serializedName: "properties.originHostHeader", + } + } + } +}; + +export const ResourceReference: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ResourceReference", + modelProperties: { + id: { + serializedName: "id", type: { name: "String" } - }, - priority: { - constraints: { - InclusiveMaximum: 5, - InclusiveMinimum: 1 - }, - serializedName: "properties.priority", - type: { - name: "Number" - } - }, - weight: { - constraints: { - InclusiveMaximum: 1000, - InclusiveMinimum: 1 - }, - serializedName: "properties.weight", + } + } + } +}; + +export const AFDStateProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AFDStateProperties", + modelProperties: { + provisioningState: { + serializedName: "provisioningState", + readOnly: true, type: { - name: "Number" + name: "String" } }, - enabled: { - serializedName: "properties.enabled", + deploymentStatus: { + serializedName: "deploymentStatus", + readOnly: true, type: { - name: "Boolean" + name: "String" } - }, - privateLinkAlias: { - serializedName: "properties.privateLinkAlias", + } + } + } +}; + +export const Resource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Resource", + modelProperties: { + id: { + serializedName: "id", + readOnly: true, type: { name: "String" } }, - privateLinkResourceId: { - serializedName: "properties.privateLinkResourceId", + name: { + serializedName: "name", + readOnly: true, type: { name: "String" } }, - privateLinkLocation: { - serializedName: "properties.privateLinkLocation", + type: { + serializedName: "type", + readOnly: true, type: { name: "String" } }, - privateLinkApprovalMessage: { - serializedName: "properties.privateLinkApprovalMessage", + systemData: { + serializedName: "systemData", type: { - name: "String" + name: "Composite", + className: "SystemData" } } } } }; -export const DeepCreatedOriginGroup: coreClient.CompositeMapper = { +export const SystemData: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DeepCreatedOriginGroup", + className: "SystemData", modelProperties: { - name: { - serializedName: "name", - required: true, + createdBy: { + serializedName: "createdBy", type: { name: "String" } }, - healthProbeSettings: { - serializedName: "properties.healthProbeSettings", + createdByType: { + serializedName: "createdByType", type: { - name: "Composite", - className: "HealthProbeParameters" + name: "String" } }, - origins: { - serializedName: "properties.origins", + createdAt: { + serializedName: "createdAt", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ResourceReference" - } - } + name: "DateTime" } }, - trafficRestorationTimeToHealedOrNewEndpointsInMinutes: { - constraints: { - InclusiveMaximum: 50, - InclusiveMinimum: 0 - }, - serializedName: - "properties.trafficRestorationTimeToHealedOrNewEndpointsInMinutes", + lastModifiedBy: { + serializedName: "lastModifiedBy", type: { - name: "Number" + name: "String" } }, - responseBasedOriginErrorDetectionSettings: { - serializedName: "properties.responseBasedOriginErrorDetectionSettings", + lastModifiedByType: { + serializedName: "lastModifiedByType", type: { - name: "Composite", - className: "ResponseBasedOriginErrorDetectionParameters" + name: "String" + } + }, + lastModifiedAt: { + serializedName: "lastModifiedAt", + type: { + name: "DateTime" } } } } }; -export const HealthProbeParameters: coreClient.CompositeMapper = { +export const AFDDomainUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "HealthProbeParameters", + className: "AFDDomainUpdateParameters", modelProperties: { - probePath: { - serializedName: "probePath", + profileName: { + serializedName: "properties.profileName", + readOnly: true, type: { name: "String" } }, - probeRequestType: { - serializedName: "probeRequestType", + tlsSettings: { + serializedName: "properties.tlsSettings", type: { - name: "Enum", - allowedValues: ["NotSet", "GET", "HEAD"] + name: "Composite", + className: "AFDDomainHttpsParameters" } }, - probeProtocol: { - serializedName: "probeProtocol", + azureDnsZone: { + serializedName: "properties.azureDnsZone", type: { - name: "Enum", - allowedValues: ["NotSet", "Http", "Https"] + name: "Composite", + className: "ResourceReference" } }, - probeIntervalInSeconds: { - constraints: { - InclusiveMaximum: 255, - InclusiveMinimum: 1 - }, - serializedName: "probeIntervalInSeconds", + preValidatedCustomDomainResourceId: { + serializedName: "properties.preValidatedCustomDomainResourceId", type: { - name: "Number" + name: "Composite", + className: "ResourceReference" } } } } }; -export const ResourceReference: coreClient.CompositeMapper = { +export const AFDEndpointListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceReference", + className: "AFDEndpointListResult", modelProperties: { - id: { - serializedName: "id", + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AFDEndpoint" + } + } + } + }, + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -507,65 +545,69 @@ export const ResourceReference: coreClient.CompositeMapper = { } }; -export const ResponseBasedOriginErrorDetectionParameters: coreClient.CompositeMapper = { +export const AFDEndpointPropertiesUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResponseBasedOriginErrorDetectionParameters", + className: "AFDEndpointPropertiesUpdateParameters", modelProperties: { - responseBasedDetectedErrorTypes: { - serializedName: "responseBasedDetectedErrorTypes", + profileName: { + serializedName: "profileName", + readOnly: true, type: { - name: "Enum", - allowedValues: ["None", "TcpErrorsOnly", "TcpAndHttpErrors"] + name: "String" } }, - responseBasedFailoverThresholdPercentage: { - constraints: { - InclusiveMaximum: 100, - InclusiveMinimum: 0 - }, - serializedName: "responseBasedFailoverThresholdPercentage", + enabledState: { + serializedName: "enabledState", type: { - name: "Number" + name: "String" } }, - httpErrorRanges: { - serializedName: "httpErrorRanges", + originResponseTimeoutSeconds: { + constraints: { + InclusiveMaximum: 240, + InclusiveMinimum: 16 + }, + serializedName: "originResponseTimeoutSeconds", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "HttpErrorRangeParameters" - } - } + name: "Number" } } } } }; -export const HttpErrorRangeParameters: coreClient.CompositeMapper = { +export const AFDEndpointUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "HttpErrorRangeParameters", + className: "AFDEndpointUpdateParameters", modelProperties: { - begin: { - constraints: { - InclusiveMaximum: 999, - InclusiveMinimum: 100 - }, - serializedName: "begin", + tags: { + serializedName: "tags", type: { - name: "Number" + name: "Dictionary", + value: { type: { name: "String" } } } }, - end: { + profileName: { + serializedName: "properties.profileName", + readOnly: true, + type: { + name: "String" + } + }, + enabledState: { + serializedName: "properties.enabledState", + type: { + name: "String" + } + }, + originResponseTimeoutSeconds: { constraints: { - InclusiveMaximum: 999, - InclusiveMinimum: 100 + InclusiveMaximum: 240, + InclusiveMinimum: 16 }, - serializedName: "end", + serializedName: "properties.originResponseTimeoutSeconds", type: { name: "Number" } @@ -574,19 +616,25 @@ export const HttpErrorRangeParameters: coreClient.CompositeMapper = { } }; -export const EndpointPropertiesUpdateParameters: coreClient.CompositeMapper = { +export const AfdPurgeParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EndpointPropertiesUpdateParameters", + className: "AfdPurgeParameters", modelProperties: { - originPath: { - serializedName: "originPath", + contentPaths: { + serializedName: "contentPaths", + required: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - contentTypesToCompress: { - serializedName: "contentTypesToCompress", + domains: { + serializedName: "domains", type: { name: "Sequence", element: { @@ -595,326 +643,318 @@ export const EndpointPropertiesUpdateParameters: coreClient.CompositeMapper = { } } } - }, - originHostHeader: { - serializedName: "originHostHeader", + } + } + } +}; + +export const ValidateCustomDomainInput: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ValidateCustomDomainInput", + modelProperties: { + hostName: { + serializedName: "hostName", + required: true, type: { name: "String" } - }, - isCompressionEnabled: { - serializedName: "isCompressionEnabled", + } + } + } +}; + +export const ValidateCustomDomainOutput: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ValidateCustomDomainOutput", + modelProperties: { + customDomainValidated: { + serializedName: "customDomainValidated", + readOnly: true, type: { name: "Boolean" } }, - isHttpAllowed: { - serializedName: "isHttpAllowed", + reason: { + serializedName: "reason", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - isHttpsAllowed: { - serializedName: "isHttpsAllowed", + message: { + serializedName: "message", + readOnly: true, type: { - name: "Boolean" + name: "String" } - }, - queryStringCachingBehavior: { - serializedName: "queryStringCachingBehavior", + } + } + } +}; + +export const AFDOriginGroupListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AFDOriginGroupListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, type: { - name: "Enum", - allowedValues: [ - "IgnoreQueryString", - "BypassCaching", - "UseQueryString", - "NotSet" - ] + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AFDOriginGroup" + } + } } }, - optimizationType: { - serializedName: "optimizationType", + nextLink: { + serializedName: "nextLink", type: { name: "String" } - }, - probePath: { - serializedName: "probePath", + } + } + } +}; + +export const AFDOriginGroupUpdatePropertiesParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AFDOriginGroupUpdatePropertiesParameters", + modelProperties: { + profileName: { + serializedName: "profileName", + readOnly: true, type: { name: "String" } }, - geoFilters: { - serializedName: "geoFilters", + loadBalancingSettings: { + serializedName: "loadBalancingSettings", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "GeoFilter" - } - } + name: "Composite", + className: "LoadBalancingSettingsParameters" } }, - defaultOriginGroup: { - serializedName: "defaultOriginGroup", + healthProbeSettings: { + serializedName: "healthProbeSettings", type: { name: "Composite", - className: "ResourceReference" + className: "HealthProbeParameters" } }, - urlSigningKeys: { - serializedName: "urlSigningKeys", + trafficRestorationTimeToHealedOrNewEndpointsInMinutes: { + constraints: { + InclusiveMaximum: 50, + InclusiveMinimum: 0 + }, + serializedName: "trafficRestorationTimeToHealedOrNewEndpointsInMinutes", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "UrlSigningKey" - } - } + name: "Number" } }, - deliveryPolicy: { - serializedName: "deliveryPolicy", + responseBasedAfdOriginErrorDetectionSettings: { + serializedName: "responseBasedAfdOriginErrorDetectionSettings", type: { name: "Composite", - className: "EndpointPropertiesUpdateParametersDeliveryPolicy" + className: "ResponseBasedOriginErrorDetectionParameters" } }, - webApplicationFirewallPolicyLink: { - serializedName: "webApplicationFirewallPolicyLink", + sessionAffinityState: { + serializedName: "sessionAffinityState", type: { - name: "Composite", - className: - "EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink" + name: "String" } } } } }; -export const GeoFilter: coreClient.CompositeMapper = { +export const LoadBalancingSettingsParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GeoFilter", + className: "LoadBalancingSettingsParameters", modelProperties: { - relativePath: { - serializedName: "relativePath", - required: true, + sampleSize: { + serializedName: "sampleSize", type: { - name: "String" + name: "Number" } }, - action: { - serializedName: "action", - required: true, + successfulSamplesRequired: { + serializedName: "successfulSamplesRequired", type: { - name: "Enum", - allowedValues: ["Block", "Allow"] + name: "Number" } }, - countryCodes: { - serializedName: "countryCodes", - required: true, + additionalLatencyInMilliseconds: { + serializedName: "additionalLatencyInMilliseconds", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Number" } } } } }; -export const UrlSigningKey: coreClient.CompositeMapper = { +export const HealthProbeParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UrlSigningKey", + className: "HealthProbeParameters", modelProperties: { - keyId: { - serializedName: "keyId", - required: true, + probePath: { + serializedName: "probePath", type: { name: "String" } }, - keySourceParameters: { - serializedName: "keySourceParameters", + probeRequestType: { + serializedName: "probeRequestType", type: { - name: "Composite", - className: "KeyVaultSigningKeyParameters" + name: "Enum", + allowedValues: ["NotSet", "GET", "HEAD"] + } + }, + probeProtocol: { + serializedName: "probeProtocol", + type: { + name: "Enum", + allowedValues: ["NotSet", "Http", "Https"] + } + }, + probeIntervalInSeconds: { + constraints: { + InclusiveMaximum: 255, + InclusiveMinimum: 1 + }, + serializedName: "probeIntervalInSeconds", + type: { + name: "Number" } } } } }; -export const KeyVaultSigningKeyParameters: coreClient.CompositeMapper = { +export const ResponseBasedOriginErrorDetectionParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "KeyVaultSigningKeyParameters", + className: "ResponseBasedOriginErrorDetectionParameters", modelProperties: { - odataType: { - defaultValue: - "#Microsoft.Azure.Cdn.Models.KeyVaultSigningKeyParameters", - isConstant: true, - serializedName: "@odata\\.type", - type: { - name: "String" - } - }, - subscriptionId: { - serializedName: "subscriptionId", - required: true, - type: { - name: "String" - } - }, - resourceGroupName: { - serializedName: "resourceGroupName", - required: true, - type: { - name: "String" - } - }, - vaultName: { - serializedName: "vaultName", - required: true, + responseBasedDetectedErrorTypes: { + serializedName: "responseBasedDetectedErrorTypes", type: { - name: "String" + name: "Enum", + allowedValues: ["None", "TcpErrorsOnly", "TcpAndHttpErrors"] } }, - secretName: { - serializedName: "secretName", - required: true, + responseBasedFailoverThresholdPercentage: { + constraints: { + InclusiveMaximum: 100, + InclusiveMinimum: 0 + }, + serializedName: "responseBasedFailoverThresholdPercentage", type: { - name: "String" + name: "Number" } }, - secretVersion: { - serializedName: "secretVersion", - required: true, + httpErrorRanges: { + serializedName: "httpErrorRanges", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "HttpErrorRangeParameters" + } + } } } } } }; -export const EndpointPropertiesUpdateParametersDeliveryPolicy: coreClient.CompositeMapper = { +export const HttpErrorRangeParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EndpointPropertiesUpdateParametersDeliveryPolicy", + className: "HttpErrorRangeParameters", modelProperties: { - description: { - serializedName: "description", + begin: { + constraints: { + InclusiveMaximum: 999, + InclusiveMinimum: 100 + }, + serializedName: "begin", type: { - name: "String" + name: "Number" } }, - rules: { - serializedName: "rules", - required: true, + end: { + constraints: { + InclusiveMaximum: 999, + InclusiveMinimum: 100 + }, + serializedName: "end", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DeliveryRule" - } - } + name: "Number" } } } } }; -export const DeliveryRule: coreClient.CompositeMapper = { +export const AFDOriginGroupUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DeliveryRule", + className: "AFDOriginGroupUpdateParameters", modelProperties: { - name: { - serializedName: "name", + profileName: { + serializedName: "properties.profileName", + readOnly: true, type: { name: "String" } }, - order: { - serializedName: "order", - required: true, + loadBalancingSettings: { + serializedName: "properties.loadBalancingSettings", type: { - name: "Number" + name: "Composite", + className: "LoadBalancingSettingsParameters" } }, - conditions: { - serializedName: "conditions", + healthProbeSettings: { + serializedName: "properties.healthProbeSettings", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DeliveryRuleCondition" - } - } + name: "Composite", + className: "HealthProbeParameters" } }, - actions: { - serializedName: "actions", - required: true, + trafficRestorationTimeToHealedOrNewEndpointsInMinutes: { + constraints: { + InclusiveMaximum: 50, + InclusiveMinimum: 0 + }, + serializedName: + "properties.trafficRestorationTimeToHealedOrNewEndpointsInMinutes", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DeliveryRuleActionAutoGenerated" - } - } + name: "Number" } - } - } - } -}; - -export const DeliveryRuleCondition: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DeliveryRuleCondition", - uberParent: "DeliveryRuleCondition", - polymorphicDiscriminator: { - serializedName: "name", - clientName: "name" - }, - modelProperties: { - name: { - serializedName: "name", - required: true, + }, + responseBasedAfdOriginErrorDetectionSettings: { + serializedName: + "properties.responseBasedAfdOriginErrorDetectionSettings", type: { - name: "String" + name: "Composite", + className: "ResponseBasedOriginErrorDetectionParameters" } - } - } - } -}; - -export const DeliveryRuleActionAutoGenerated: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DeliveryRuleActionAutoGenerated", - uberParent: "DeliveryRuleActionAutoGenerated", - polymorphicDiscriminator: { - serializedName: "name", - clientName: "name" - }, - modelProperties: { - name: { - serializedName: "name", - required: true, + }, + sessionAffinityState: { + serializedName: "properties.sessionAffinityState", type: { name: "String" } @@ -923,14 +963,26 @@ export const DeliveryRuleActionAutoGenerated: coreClient.CompositeMapper = { } }; -export const EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink: coreClient.CompositeMapper = { +export const AFDOriginListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: - "EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink", + className: "AFDOriginListResult", modelProperties: { - id: { - serializedName: "id", + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AFDOrigin" + } + } + } + }, + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -939,256 +991,121 @@ export const EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink: } }; -export const EndpointUpdateParameters: coreClient.CompositeMapper = { +export const AFDOriginUpdatePropertiesParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EndpointUpdateParameters", + className: "AFDOriginUpdatePropertiesParameters", modelProperties: { - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - originPath: { - serializedName: "properties.originPath", + originGroupName: { + serializedName: "originGroupName", + readOnly: true, type: { name: "String" } }, - contentTypesToCompress: { - serializedName: "properties.contentTypesToCompress", + azureOrigin: { + serializedName: "azureOrigin", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "ResourceReference" } }, - originHostHeader: { - serializedName: "properties.originHostHeader", + hostName: { + serializedName: "hostName", type: { name: "String" } }, - isCompressionEnabled: { - serializedName: "properties.isCompressionEnabled", + httpPort: { + constraints: { + InclusiveMaximum: 65535, + InclusiveMinimum: 1 + }, + serializedName: "httpPort", type: { - name: "Boolean" + name: "Number" } }, - isHttpAllowed: { - serializedName: "properties.isHttpAllowed", + httpsPort: { + constraints: { + InclusiveMaximum: 65535, + InclusiveMinimum: 1 + }, + serializedName: "httpsPort", type: { - name: "Boolean" + name: "Number" } }, - isHttpsAllowed: { - serializedName: "properties.isHttpsAllowed", + originHostHeader: { + serializedName: "originHostHeader", type: { - name: "Boolean" + name: "String" } }, - queryStringCachingBehavior: { - serializedName: "properties.queryStringCachingBehavior", - type: { - name: "Enum", - allowedValues: [ - "IgnoreQueryString", - "BypassCaching", - "UseQueryString", - "NotSet" - ] - } - }, - optimizationType: { - serializedName: "properties.optimizationType", - type: { - name: "String" - } - }, - probePath: { - serializedName: "properties.probePath", - type: { - name: "String" - } - }, - geoFilters: { - serializedName: "properties.geoFilters", + priority: { + constraints: { + InclusiveMaximum: 5, + InclusiveMinimum: 1 + }, + serializedName: "priority", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "GeoFilter" - } - } + name: "Number" } }, - defaultOriginGroup: { - serializedName: "properties.defaultOriginGroup", + weight: { + constraints: { + InclusiveMaximum: 1000, + InclusiveMinimum: 1 + }, + serializedName: "weight", type: { - name: "Composite", - className: "ResourceReference" + name: "Number" } }, - urlSigningKeys: { - serializedName: "properties.urlSigningKeys", + sharedPrivateLinkResource: { + serializedName: "sharedPrivateLinkResource", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "UrlSigningKey" - } - } + name: "Dictionary", + value: { type: { name: "any" } } } }, - deliveryPolicy: { - serializedName: "properties.deliveryPolicy", + enabledState: { + serializedName: "enabledState", type: { - name: "Composite", - className: "EndpointPropertiesUpdateParametersDeliveryPolicy" + name: "String" } }, - webApplicationFirewallPolicyLink: { - serializedName: "properties.webApplicationFirewallPolicyLink", - type: { - name: "Composite", - className: - "EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink" - } - } - } - } -}; - -export const PurgeParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PurgeParameters", - modelProperties: { - contentPaths: { - serializedName: "contentPaths", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const LoadParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "LoadParameters", - modelProperties: { - contentPaths: { - serializedName: "contentPaths", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const ValidateCustomDomainInput: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ValidateCustomDomainInput", - modelProperties: { - hostName: { - serializedName: "hostName", - required: true, + enforceCertificateNameCheck: { + serializedName: "enforceCertificateNameCheck", type: { - name: "String" + name: "Boolean" } } } } }; -export const ValidateCustomDomainOutput: coreClient.CompositeMapper = { +export const AFDOriginUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ValidateCustomDomainOutput", + className: "AFDOriginUpdateParameters", modelProperties: { - customDomainValidated: { - serializedName: "customDomainValidated", - readOnly: true, - type: { - name: "Boolean" - } - }, - reason: { - serializedName: "reason", + originGroupName: { + serializedName: "properties.originGroupName", readOnly: true, type: { name: "String" } }, - message: { - serializedName: "message", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const OriginListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OriginListResult", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, + azureOrigin: { + serializedName: "properties.azureOrigin", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Origin" - } - } + name: "Composite", + className: "ResourceReference" } }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const OriginUpdatePropertiesParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OriginUpdatePropertiesParameters", - modelProperties: { hostName: { - serializedName: "hostName", + serializedName: "properties.hostName", type: { name: "String" } @@ -1198,7 +1115,7 @@ export const OriginUpdatePropertiesParameters: coreClient.CompositeMapper = { InclusiveMaximum: 65535, InclusiveMinimum: 1 }, - serializedName: "httpPort", + serializedName: "properties.httpPort", type: { name: "Number" } @@ -1208,13 +1125,13 @@ export const OriginUpdatePropertiesParameters: coreClient.CompositeMapper = { InclusiveMaximum: 65535, InclusiveMinimum: 1 }, - serializedName: "httpsPort", + serializedName: "properties.httpsPort", type: { name: "Number" } }, originHostHeader: { - serializedName: "originHostHeader", + serializedName: "properties.originHostHeader", type: { name: "String" } @@ -1224,7 +1141,7 @@ export const OriginUpdatePropertiesParameters: coreClient.CompositeMapper = { InclusiveMaximum: 5, InclusiveMinimum: 1 }, - serializedName: "priority", + serializedName: "properties.priority", type: { name: "Number" } @@ -1234,37 +1151,54 @@ export const OriginUpdatePropertiesParameters: coreClient.CompositeMapper = { InclusiveMaximum: 1000, InclusiveMinimum: 1 }, - serializedName: "weight", + serializedName: "properties.weight", type: { name: "Number" } }, - enabled: { - serializedName: "enabled", + sharedPrivateLinkResource: { + serializedName: "properties.sharedPrivateLinkResource", type: { - name: "Boolean" + name: "Dictionary", + value: { type: { name: "any" } } } }, - privateLinkAlias: { - serializedName: "privateLinkAlias", + enabledState: { + serializedName: "properties.enabledState", type: { name: "String" } }, - privateLinkResourceId: { - serializedName: "privateLinkResourceId", + enforceCertificateNameCheck: { + serializedName: "properties.enforceCertificateNameCheck", type: { - name: "String" + name: "Boolean" } - }, - privateLinkLocation: { - serializedName: "privateLinkLocation", + } + } + } +}; + +export const RouteListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RouteListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Route" + } + } } }, - privateLinkApprovalMessage: { - serializedName: "privateLinkApprovalMessage", + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -1273,89 +1207,104 @@ export const OriginUpdatePropertiesParameters: coreClient.CompositeMapper = { } }; -export const OriginUpdateParameters: coreClient.CompositeMapper = { +export const RouteUpdatePropertiesParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OriginUpdateParameters", + className: "RouteUpdatePropertiesParameters", modelProperties: { - hostName: { - serializedName: "properties.hostName", + endpointName: { + serializedName: "endpointName", + readOnly: true, type: { name: "String" } }, - httpPort: { - constraints: { - InclusiveMaximum: 65535, - InclusiveMinimum: 1 - }, - serializedName: "properties.httpPort", + customDomains: { + serializedName: "customDomains", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ActivatedResourceReference" + } + } } }, - httpsPort: { - constraints: { - InclusiveMaximum: 65535, - InclusiveMinimum: 1 - }, - serializedName: "properties.httpsPort", + originGroup: { + serializedName: "originGroup", type: { - name: "Number" + name: "Composite", + className: "ResourceReference" } }, - originHostHeader: { - serializedName: "properties.originHostHeader", + originPath: { + serializedName: "originPath", type: { name: "String" } }, - priority: { - constraints: { - InclusiveMaximum: 5, - InclusiveMinimum: 1 - }, - serializedName: "properties.priority", + ruleSets: { + serializedName: "ruleSets", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceReference" + } + } } }, - weight: { - constraints: { - InclusiveMaximum: 1000, - InclusiveMinimum: 1 - }, - serializedName: "properties.weight", + supportedProtocols: { + serializedName: "supportedProtocols", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - enabled: { - serializedName: "properties.enabled", + patternsToMatch: { + serializedName: "patternsToMatch", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - privateLinkAlias: { - serializedName: "properties.privateLinkAlias", + cacheConfiguration: { + serializedName: "cacheConfiguration", + type: { + name: "Composite", + className: "AfdRouteCacheConfiguration" + } + }, + forwardingProtocol: { + serializedName: "forwardingProtocol", type: { name: "String" } }, - privateLinkResourceId: { - serializedName: "properties.privateLinkResourceId", + linkToDefaultDomain: { + serializedName: "linkToDefaultDomain", type: { name: "String" } }, - privateLinkLocation: { - serializedName: "properties.privateLinkLocation", + httpsRedirect: { + serializedName: "httpsRedirect", type: { name: "String" } }, - privateLinkApprovalMessage: { - serializedName: "properties.privateLinkApprovalMessage", + enabledState: { + serializedName: "enabledState", type: { name: "String" } @@ -1364,93 +1313,95 @@ export const OriginUpdateParameters: coreClient.CompositeMapper = { } }; -export const OriginGroupListResult: coreClient.CompositeMapper = { +export const ActivatedResourceReference: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OriginGroupListResult", + className: "ActivatedResourceReference", modelProperties: { - value: { - serializedName: "value", - readOnly: true, + id: { + serializedName: "id", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "OriginGroup" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + isActive: { + serializedName: "isActive", + readOnly: true, type: { - name: "String" + name: "Boolean" } } } } }; -export const OriginGroupUpdatePropertiesParameters: coreClient.CompositeMapper = { +export const AfdRouteCacheConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OriginGroupUpdatePropertiesParameters", + className: "AfdRouteCacheConfiguration", modelProperties: { - healthProbeSettings: { - serializedName: "healthProbeSettings", - type: { - name: "Composite", - className: "HealthProbeParameters" - } - }, - origins: { - serializedName: "origins", + queryStringCachingBehavior: { + serializedName: "queryStringCachingBehavior", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ResourceReference" - } - } + name: "String" } }, - trafficRestorationTimeToHealedOrNewEndpointsInMinutes: { - constraints: { - InclusiveMaximum: 50, - InclusiveMinimum: 0 - }, - serializedName: "trafficRestorationTimeToHealedOrNewEndpointsInMinutes", + queryParameters: { + serializedName: "queryParameters", type: { - name: "Number" + name: "String" } }, - responseBasedOriginErrorDetectionSettings: { - serializedName: "responseBasedOriginErrorDetectionSettings", + compressionSettings: { + serializedName: "compressionSettings", type: { - name: "Composite", - className: "ResponseBasedOriginErrorDetectionParameters" + name: "Dictionary", + value: { type: { name: "any" } } } } } } }; -export const OriginGroupUpdateParameters: coreClient.CompositeMapper = { +export const RouteUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OriginGroupUpdateParameters", + className: "RouteUpdateParameters", modelProperties: { - healthProbeSettings: { - serializedName: "properties.healthProbeSettings", + endpointName: { + serializedName: "properties.endpointName", + readOnly: true, + type: { + name: "String" + } + }, + customDomains: { + serializedName: "properties.customDomains", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ActivatedResourceReference" + } + } + } + }, + originGroup: { + serializedName: "properties.originGroup", type: { name: "Composite", - className: "HealthProbeParameters" + className: "ResourceReference" } }, - origins: { - serializedName: "properties.origins", + originPath: { + serializedName: "properties.originPath", + type: { + name: "String" + } + }, + ruleSets: { + serializedName: "properties.ruleSets", type: { name: "Sequence", element: { @@ -1461,32 +1412,67 @@ export const OriginGroupUpdateParameters: coreClient.CompositeMapper = { } } }, - trafficRestorationTimeToHealedOrNewEndpointsInMinutes: { - constraints: { - InclusiveMaximum: 50, - InclusiveMinimum: 0 - }, - serializedName: - "properties.trafficRestorationTimeToHealedOrNewEndpointsInMinutes", + supportedProtocols: { + serializedName: "properties.supportedProtocols", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - responseBasedOriginErrorDetectionSettings: { - serializedName: "properties.responseBasedOriginErrorDetectionSettings", + patternsToMatch: { + serializedName: "properties.patternsToMatch", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + cacheConfiguration: { + serializedName: "properties.cacheConfiguration", type: { name: "Composite", - className: "ResponseBasedOriginErrorDetectionParameters" + className: "AfdRouteCacheConfiguration" + } + }, + forwardingProtocol: { + serializedName: "properties.forwardingProtocol", + type: { + name: "String" + } + }, + linkToDefaultDomain: { + serializedName: "properties.linkToDefaultDomain", + type: { + name: "String" + } + }, + httpsRedirect: { + serializedName: "properties.httpsRedirect", + type: { + name: "String" + } + }, + enabledState: { + serializedName: "properties.enabledState", + type: { + name: "String" } } } } }; -export const CustomDomainListResult: coreClient.CompositeMapper = { +export const RuleSetListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CustomDomainListResult", + className: "RuleSetListResult", modelProperties: { value: { serializedName: "value", @@ -1496,7 +1482,7 @@ export const CustomDomainListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "CustomDomain" + className: "RuleSet" } } } @@ -1511,48 +1497,78 @@ export const CustomDomainListResult: coreClient.CompositeMapper = { } }; -export const CustomDomainHttpsParameters: coreClient.CompositeMapper = { +export const RuleListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CustomDomainHttpsParameters", - uberParent: "CustomDomainHttpsParameters", - polymorphicDiscriminator: { - serializedName: "certificateSource", - clientName: "certificateSource" - }, + className: "RuleListResult", modelProperties: { - certificateSource: { - serializedName: "certificateSource", - required: true, + value: { + serializedName: "value", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Rule" + } + } } }, - protocolType: { - serializedName: "protocolType", - required: true, + nextLink: { + serializedName: "nextLink", type: { name: "String" } - }, - minimumTlsVersion: { - serializedName: "minimumTlsVersion", - type: { - name: "Enum", - allowedValues: ["None", "TLS10", "TLS12"] - } } } } }; -export const CustomDomainParameters: coreClient.CompositeMapper = { +export const RuleUpdatePropertiesParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CustomDomainParameters", + className: "RuleUpdatePropertiesParameters", modelProperties: { - hostName: { - serializedName: "properties.hostName", + ruleSetName: { + serializedName: "ruleSetName", + readOnly: true, + type: { + name: "String" + } + }, + order: { + serializedName: "order", + type: { + name: "Number" + } + }, + conditions: { + serializedName: "conditions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DeliveryRuleCondition" + } + } + } + }, + actions: { + serializedName: "actions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DeliveryRuleActionAutoGenerated" + } + } + } + }, + matchProcessingBehavior: { + serializedName: "matchProcessingBehavior", type: { name: "String" } @@ -1561,10 +1577,15 @@ export const CustomDomainParameters: coreClient.CompositeMapper = { } }; -export const CheckNameAvailabilityInput: coreClient.CompositeMapper = { +export const DeliveryRuleCondition: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CheckNameAvailabilityInput", + className: "DeliveryRuleCondition", + uberParent: "DeliveryRuleCondition", + polymorphicDiscriminator: { + serializedName: "name", + clientName: "name" + }, modelProperties: { name: { serializedName: "name", @@ -1572,11 +1593,24 @@ export const CheckNameAvailabilityInput: coreClient.CompositeMapper = { type: { name: "String" } - }, - type: { - defaultValue: "Microsoft.Cdn/Profiles/Endpoints", - isConstant: true, - serializedName: "type", + } + } + } +}; + +export const DeliveryRuleActionAutoGenerated: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DeliveryRuleActionAutoGenerated", + uberParent: "DeliveryRuleActionAutoGenerated", + polymorphicDiscriminator: { + serializedName: "name", + clientName: "name" + }, + modelProperties: { + name: { + serializedName: "name", + required: true, type: { name: "String" } @@ -1585,28 +1619,50 @@ export const CheckNameAvailabilityInput: coreClient.CompositeMapper = { } }; -export const CheckNameAvailabilityOutput: coreClient.CompositeMapper = { +export const RuleUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CheckNameAvailabilityOutput", + className: "RuleUpdateParameters", modelProperties: { - nameAvailable: { - serializedName: "nameAvailable", + ruleSetName: { + serializedName: "properties.ruleSetName", readOnly: true, type: { - name: "Boolean" + name: "String" } }, - reason: { - serializedName: "reason", - readOnly: true, + order: { + serializedName: "properties.order", type: { - name: "String" + name: "Number" } }, - message: { - serializedName: "message", - readOnly: true, + conditions: { + serializedName: "properties.conditions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DeliveryRuleCondition" + } + } + } + }, + actions: { + serializedName: "properties.actions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DeliveryRuleActionAutoGenerated" + } + } + } + }, + matchProcessingBehavior: { + serializedName: "properties.matchProcessingBehavior", type: { name: "String" } @@ -1615,14 +1671,26 @@ export const CheckNameAvailabilityOutput: coreClient.CompositeMapper = { } }; -export const ValidateProbeInput: coreClient.CompositeMapper = { +export const SecurityPolicyListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ValidateProbeInput", + className: "SecurityPolicyListResult", modelProperties: { - probeURL: { - serializedName: "probeURL", - required: true, + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SecurityPolicy" + } + } + } + }, + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -1631,28 +1699,19 @@ export const ValidateProbeInput: coreClient.CompositeMapper = { } }; -export const ValidateProbeOutput: coreClient.CompositeMapper = { +export const SecurityPolicyParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ValidateProbeOutput", + className: "SecurityPolicyParameters", + uberParent: "SecurityPolicyParameters", + polymorphicDiscriminator: { + serializedName: "type", + clientName: "type" + }, modelProperties: { - isValid: { - serializedName: "isValid", - readOnly: true, - type: { - name: "Boolean" - } - }, - errorCode: { - serializedName: "errorCode", - readOnly: true, - type: { - name: "String" - } - }, - message: { - serializedName: "message", - readOnly: true, + type: { + serializedName: "type", + required: true, type: { name: "String" } @@ -1661,10 +1720,10 @@ export const ValidateProbeOutput: coreClient.CompositeMapper = { } }; -export const OperationsListResult: coreClient.CompositeMapper = { +export const SecretListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OperationsListResult", + className: "SecretListResult", modelProperties: { value: { serializedName: "value", @@ -1674,7 +1733,7 @@ export const OperationsListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Operation" + className: "Secret" } } } @@ -1689,51 +1748,48 @@ export const OperationsListResult: coreClient.CompositeMapper = { } }; -export const Operation: coreClient.CompositeMapper = { +export const SecretParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Operation", + className: "SecretParameters", + uberParent: "SecretParameters", + polymorphicDiscriminator: { + serializedName: "type", + clientName: "type" + }, modelProperties: { - name: { - serializedName: "name", - readOnly: true, + type: { + serializedName: "type", + required: true, type: { name: "String" } - }, - display: { - serializedName: "display", - type: { - name: "Composite", - className: "OperationDisplay" - } } } } }; -export const OperationDisplay: coreClient.CompositeMapper = { +export const ValidateSecretInput: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OperationDisplay", + className: "ValidateSecretInput", modelProperties: { - provider: { - serializedName: "provider", - readOnly: true, + secretType: { + serializedName: "secretType", + required: true, type: { name: "String" } }, - resource: { - serializedName: "resource", - readOnly: true, + secretSource: { + serializedName: "secretSource", type: { - name: "String" + name: "Composite", + className: "ResourceReference" } }, - operation: { - serializedName: "operation", - readOnly: true, + secretVersion: { + serializedName: "secretVersion", type: { name: "String" } @@ -1742,26 +1798,19 @@ export const OperationDisplay: coreClient.CompositeMapper = { } }; -export const EdgenodeResult: coreClient.CompositeMapper = { +export const ValidateSecretOutput: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EdgenodeResult", + className: "ValidateSecretOutput", modelProperties: { - value: { - serializedName: "value", - readOnly: true, + status: { + serializedName: "status", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "EdgeNode" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + message: { + serializedName: "message", type: { name: "String" } @@ -1770,37 +1819,37 @@ export const EdgenodeResult: coreClient.CompositeMapper = { } }; -export const IpAddressGroup: coreClient.CompositeMapper = { +export const MetricsResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "IpAddressGroup", + className: "MetricsResponse", modelProperties: { - deliveryRegion: { - serializedName: "deliveryRegion", + dateTimeBegin: { + serializedName: "dateTimeBegin", type: { - name: "String" + name: "DateTime" } }, - ipv4Addresses: { - serializedName: "ipv4Addresses", + dateTimeEnd: { + serializedName: "dateTimeEnd", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "CidrIpAddress" - } - } + name: "DateTime" } }, - ipv6Addresses: { - serializedName: "ipv6Addresses", + granularity: { + serializedName: "granularity", + type: { + name: "String" + } + }, + series: { + serializedName: "series", type: { name: "Sequence", element: { type: { name: "Composite", - className: "CidrIpAddress" + className: "MetricsResponseSeriesItem" } } } @@ -1809,293 +1858,270 @@ export const IpAddressGroup: coreClient.CompositeMapper = { } }; -export const CidrIpAddress: coreClient.CompositeMapper = { +export const MetricsResponseSeriesItem: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CidrIpAddress", + className: "MetricsResponseSeriesItem", modelProperties: { - baseIpAddress: { - serializedName: "baseIpAddress", + metric: { + serializedName: "metric", type: { name: "String" } }, - prefixLength: { - serializedName: "prefixLength", + unit: { + serializedName: "unit", type: { - name: "Number" + name: "String" } - } - } - } -}; - -export const UsagesListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "UsagesListResult", - modelProperties: { - value: { - serializedName: "value", + }, + groups: { + serializedName: "groups", type: { name: "Sequence", element: { type: { name: "Composite", - className: "Usage" + className: "MetricsResponseSeriesPropertiesItemsItem" } } } }, - nextLink: { - serializedName: "nextLink", + data: { + serializedName: "data", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: + "Components1Gs0LlpSchemasMetricsresponsePropertiesSeriesItemsPropertiesDataItems" + } + } } } } } }; -export const Usage: coreClient.CompositeMapper = { +export const MetricsResponseSeriesPropertiesItemsItem: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Usage", + className: "MetricsResponseSeriesPropertiesItemsItem", modelProperties: { - id: { - serializedName: "id", - readOnly: true, + name: { + serializedName: "name", type: { name: "String" } }, - unit: { - serializedName: "unit", - required: true, + value: { + serializedName: "value", type: { name: "String" } - }, - currentValue: { - serializedName: "currentValue", - required: true, - type: { - name: "Number" - } - }, - limit: { - serializedName: "limit", - required: true, - type: { - name: "Number" - } - }, - name: { - serializedName: "name", - type: { - name: "Composite", - className: "UsageName" - } } } } }; -export const UsageName: coreClient.CompositeMapper = { +export const Components1Gs0LlpSchemasMetricsresponsePropertiesSeriesItemsPropertiesDataItems: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UsageName", + className: + "Components1Gs0LlpSchemasMetricsresponsePropertiesSeriesItemsPropertiesDataItems", modelProperties: { - value: { - serializedName: "value", + dateTime: { + serializedName: "dateTime", type: { - name: "String" + name: "DateTime" } }, - localizedValue: { - serializedName: "localizedValue", + value: { + serializedName: "value", type: { - name: "String" + name: "Number" } } } } }; -export const AfdErrorResponse: coreClient.CompositeMapper = { +export const RankingsResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AfdErrorResponse", + className: "RankingsResponse", modelProperties: { - error: { - serializedName: "error", + dateTimeBegin: { + serializedName: "dateTimeBegin", type: { - name: "Composite", - className: "ErrorResponse" + name: "DateTime" } - } - } - } -}; - -export const AFDDomainListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AFDDomainListResult", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, + }, + dateTimeEnd: { + serializedName: "dateTimeEnd", + type: { + name: "DateTime" + } + }, + tables: { + serializedName: "tables", type: { name: "Sequence", element: { type: { name: "Composite", - className: "AFDDomain" + className: "RankingsResponseTablesItem" } } } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } } } } }; -export const DomainValidationProperties: coreClient.CompositeMapper = { +export const RankingsResponseTablesItem: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DomainValidationProperties", + className: "RankingsResponseTablesItem", modelProperties: { - validationToken: { - serializedName: "validationToken", - readOnly: true, + ranking: { + serializedName: "ranking", type: { name: "String" } }, - expirationDate: { - serializedName: "expirationDate", - readOnly: true, + data: { + serializedName: "data", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RankingsResponseTablesPropertiesItemsItem" + } + } } } } } }; -export const AFDDomainUpdatePropertiesParameters: coreClient.CompositeMapper = { +export const RankingsResponseTablesPropertiesItemsItem: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AFDDomainUpdatePropertiesParameters", + className: "RankingsResponseTablesPropertiesItemsItem", modelProperties: { - tlsSettings: { - serializedName: "tlsSettings", + name: { + serializedName: "name", type: { - name: "Composite", - className: "AFDDomainHttpsParameters" + name: "String" } }, - azureDnsZone: { - serializedName: "azureDnsZone", + metrics: { + serializedName: "metrics", type: { - name: "Composite", - className: "ResourceReference" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RankingsResponseTablesPropertiesItemsMetricsItem" + } + } } } } } }; -export const AFDDomainHttpsParameters: coreClient.CompositeMapper = { +export const RankingsResponseTablesPropertiesItemsMetricsItem: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AFDDomainHttpsParameters", + className: "RankingsResponseTablesPropertiesItemsMetricsItem", modelProperties: { - certificateType: { - serializedName: "certificateType", - required: true, + metric: { + serializedName: "metric", type: { name: "String" } }, - minimumTlsVersion: { - serializedName: "minimumTlsVersion", + value: { + serializedName: "value", type: { - name: "Enum", - allowedValues: ["TLS10", "TLS12"] + name: "Number" } }, - secret: { - serializedName: "secret", + percentage: { + serializedName: "percentage", type: { - name: "Composite", - className: "ResourceReference" + name: "Number" } } } } }; -export const AFDStateProperties: coreClient.CompositeMapper = { +export const ContinentsResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AFDStateProperties", + className: "ContinentsResponse", modelProperties: { - provisioningState: { - serializedName: "provisioningState", - readOnly: true, + continents: { + serializedName: "continents", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ContinentsResponseContinentsItem" + } + } } }, - deploymentStatus: { - serializedName: "deploymentStatus", - readOnly: true, + countryOrRegions: { + serializedName: "countryOrRegions", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ContinentsResponseCountryOrRegionsItem" + } + } } } } } }; -export const AFDDomainUpdateParameters: coreClient.CompositeMapper = { +export const ContinentsResponseContinentsItem: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AFDDomainUpdateParameters", + className: "ContinentsResponseContinentsItem", modelProperties: { - tlsSettings: { - serializedName: "properties.tlsSettings", - type: { - name: "Composite", - className: "AFDDomainHttpsParameters" - } - }, - azureDnsZone: { - serializedName: "properties.azureDnsZone", + id: { + serializedName: "id", type: { - name: "Composite", - className: "ResourceReference" + name: "String" } } } } }; -export const ValidationToken: coreClient.CompositeMapper = { +export const ContinentsResponseCountryOrRegionsItem: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ValidationToken", + className: "ContinentsResponseCountryOrRegionsItem", modelProperties: { - token: { - serializedName: "token", - readOnly: true, + id: { + serializedName: "id", + type: { + name: "String" + } + }, + continentId: { + serializedName: "continentId", type: { name: "String" } @@ -2104,113 +2130,175 @@ export const ValidationToken: coreClient.CompositeMapper = { } }; -export const AFDEndpointListResult: coreClient.CompositeMapper = { +export const ResourcesResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AFDEndpointListResult", + className: "ResourcesResponse", modelProperties: { - value: { - serializedName: "value", - readOnly: true, + endpoints: { + serializedName: "endpoints", type: { name: "Sequence", element: { type: { name: "Composite", - className: "AFDEndpoint" + className: "ResourcesResponseEndpointsItem" } } } }, - nextLink: { - serializedName: "nextLink", + customDomains: { + serializedName: "customDomains", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourcesResponseCustomDomainsItem" + } + } + } + } + } + } +}; + +export const ResourcesResponseEndpointsItem: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ResourcesResponseEndpointsItem", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String" + } + }, + name: { + serializedName: "name", type: { name: "String" } + }, + history: { + serializedName: "history", + type: { + name: "Boolean" + } + }, + customDomains: { + serializedName: "customDomains", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourcesResponseEndpointsPropertiesItemsItem" + } + } + } } } } }; -export const AFDEndpointPropertiesUpdateParameters: coreClient.CompositeMapper = { +export const ResourcesResponseEndpointsPropertiesItemsItem: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AFDEndpointPropertiesUpdateParameters", + className: "ResourcesResponseEndpointsPropertiesItemsItem", modelProperties: { - originResponseTimeoutSeconds: { - constraints: { - InclusiveMinimum: 16 - }, - serializedName: "originResponseTimeoutSeconds", + id: { + serializedName: "id", type: { - name: "Number" + name: "String" } }, - enabledState: { - serializedName: "enabledState", + name: { + serializedName: "name", + type: { + name: "String" + } + }, + endpointId: { + serializedName: "endpointId", type: { name: "String" } + }, + history: { + serializedName: "history", + type: { + name: "Boolean" + } } } } }; -export const AFDEndpointUpdateParameters: coreClient.CompositeMapper = { +export const ResourcesResponseCustomDomainsItem: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AFDEndpointUpdateParameters", + className: "ResourcesResponseCustomDomainsItem", modelProperties: { - tags: { - serializedName: "tags", + id: { + serializedName: "id", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "String" } }, - originResponseTimeoutSeconds: { - constraints: { - InclusiveMinimum: 16 - }, - serializedName: "properties.originResponseTimeoutSeconds", + name: { + serializedName: "name", type: { - name: "Number" + name: "String" } }, - enabledState: { - serializedName: "properties.enabledState", + endpointId: { + serializedName: "endpointId", type: { name: "String" } + }, + history: { + serializedName: "history", + type: { + name: "Boolean" + } } } } }; -export const AfdPurgeParameters: coreClient.CompositeMapper = { +export const WafMetricsResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AfdPurgeParameters", + className: "WafMetricsResponse", modelProperties: { - contentPaths: { - serializedName: "contentPaths", - required: true, + dateTimeBegin: { + serializedName: "dateTimeBegin", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "DateTime" } }, - domains: { - serializedName: "domains", + dateTimeEnd: { + serializedName: "dateTimeEnd", + type: { + name: "DateTime" + } + }, + granularity: { + serializedName: "granularity", + type: { + name: "String" + } + }, + series: { + serializedName: "series", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "WafMetricsResponseSeriesItem" } } } @@ -2219,159 +2307,206 @@ export const AfdPurgeParameters: coreClient.CompositeMapper = { } }; -export const AFDOriginGroupListResult: coreClient.CompositeMapper = { +export const WafMetricsResponseSeriesItem: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AFDOriginGroupListResult", + className: "WafMetricsResponseSeriesItem", modelProperties: { - value: { - serializedName: "value", - readOnly: true, + metric: { + serializedName: "metric", + type: { + name: "String" + } + }, + unit: { + defaultValue: "count", + isConstant: true, + serializedName: "unit", + type: { + name: "String" + } + }, + groups: { + serializedName: "groups", type: { name: "Sequence", element: { type: { name: "Composite", - className: "AFDOriginGroup" + className: "WafMetricsResponseSeriesPropertiesItemsItem" } } } }, - nextLink: { - serializedName: "nextLink", + data: { + serializedName: "data", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: + "Components18OrqelSchemasWafmetricsresponsePropertiesSeriesItemsPropertiesDataItems" + } + } } } } } }; -export const AFDOriginGroupUpdatePropertiesParameters: coreClient.CompositeMapper = { +export const WafMetricsResponseSeriesPropertiesItemsItem: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AFDOriginGroupUpdatePropertiesParameters", + className: "WafMetricsResponseSeriesPropertiesItemsItem", modelProperties: { - loadBalancingSettings: { - serializedName: "loadBalancingSettings", + name: { + serializedName: "name", type: { - name: "Composite", - className: "LoadBalancingSettingsParameters" - } - }, - healthProbeSettings: { - serializedName: "healthProbeSettings", - type: { - name: "Composite", - className: "HealthProbeParameters" + name: "String" } }, - trafficRestorationTimeToHealedOrNewEndpointsInMinutes: { - constraints: { - InclusiveMaximum: 50, - InclusiveMinimum: 0 - }, - serializedName: "trafficRestorationTimeToHealedOrNewEndpointsInMinutes", + value: { + serializedName: "value", type: { - name: "Number" + name: "String" } - }, - responseBasedAfdOriginErrorDetectionSettings: { - serializedName: "responseBasedAfdOriginErrorDetectionSettings", + } + } + } +}; + +export const Components18OrqelSchemasWafmetricsresponsePropertiesSeriesItemsPropertiesDataItems: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: + "Components18OrqelSchemasWafmetricsresponsePropertiesSeriesItemsPropertiesDataItems", + modelProperties: { + dateTime: { + serializedName: "dateTime", type: { - name: "Composite", - className: "ResponseBasedOriginErrorDetectionParameters" + name: "DateTime" } }, - sessionAffinityState: { - serializedName: "sessionAffinityState", + value: { + serializedName: "value", type: { - name: "String" + name: "Number" } } } } }; -export const LoadBalancingSettingsParameters: coreClient.CompositeMapper = { +export const WafRankingsResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LoadBalancingSettingsParameters", + className: "WafRankingsResponse", modelProperties: { - sampleSize: { - serializedName: "sampleSize", + dateTimeBegin: { + serializedName: "dateTimeBegin", type: { - name: "Number" + name: "DateTime" } }, - successfulSamplesRequired: { - serializedName: "successfulSamplesRequired", + dateTimeEnd: { + serializedName: "dateTimeEnd", type: { - name: "Number" + name: "DateTime" } }, - additionalLatencyInMilliseconds: { - serializedName: "additionalLatencyInMilliseconds", + groups: { + serializedName: "groups", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + data: { + serializedName: "data", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "WafRankingsResponseDataItem" + } + } } } } } }; -export const AFDOriginGroupUpdateParameters: coreClient.CompositeMapper = { +export const WafRankingsResponseDataItem: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AFDOriginGroupUpdateParameters", + className: "WafRankingsResponseDataItem", modelProperties: { - loadBalancingSettings: { - serializedName: "properties.loadBalancingSettings", + groupValues: { + serializedName: "groupValues", type: { - name: "Composite", - className: "LoadBalancingSettingsParameters" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - healthProbeSettings: { - serializedName: "properties.healthProbeSettings", + metrics: { + serializedName: "metrics", type: { - name: "Composite", - className: "HealthProbeParameters" + name: "Sequence", + element: { + type: { + name: "Composite", + className: + "ComponentsKpo1PjSchemasWafrankingsresponsePropertiesDataItemsPropertiesMetricsItems" + } + } } - }, - trafficRestorationTimeToHealedOrNewEndpointsInMinutes: { - constraints: { - InclusiveMaximum: 50, - InclusiveMinimum: 0 - }, - serializedName: - "properties.trafficRestorationTimeToHealedOrNewEndpointsInMinutes", + } + } + } +}; + +export const ComponentsKpo1PjSchemasWafrankingsresponsePropertiesDataItemsPropertiesMetricsItems: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: + "ComponentsKpo1PjSchemasWafrankingsresponsePropertiesDataItemsPropertiesMetricsItems", + modelProperties: { + metric: { + serializedName: "metric", type: { - name: "Number" + name: "String" } }, - responseBasedAfdOriginErrorDetectionSettings: { - serializedName: - "properties.responseBasedAfdOriginErrorDetectionSettings", + value: { + serializedName: "value", type: { - name: "Composite", - className: "ResponseBasedOriginErrorDetectionParameters" + name: "Number" } }, - sessionAffinityState: { - serializedName: "properties.sessionAffinityState", + percentage: { + serializedName: "percentage", type: { - name: "String" + name: "Number" } } } } }; -export const AFDOriginListResult: coreClient.CompositeMapper = { +export const ProfileListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AFDOriginListResult", + className: "ProfileListResult", modelProperties: { value: { serializedName: "value", @@ -2381,7 +2516,7 @@ export const AFDOriginListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "AFDOrigin" + className: "Profile" } } } @@ -2396,79 +2531,42 @@ export const AFDOriginListResult: coreClient.CompositeMapper = { } }; -export const AFDOriginUpdatePropertiesParameters: coreClient.CompositeMapper = { +export const Sku: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AFDOriginUpdatePropertiesParameters", + className: "Sku", modelProperties: { - azureOrigin: { - serializedName: "azureOrigin", - type: { - name: "Composite", - className: "ResourceReference" - } - }, - hostName: { - serializedName: "hostName", + name: { + serializedName: "name", type: { name: "String" } - }, - httpPort: { - constraints: { - InclusiveMaximum: 65535, - InclusiveMinimum: 1 - }, - serializedName: "httpPort", - type: { - name: "Number" - } - }, - httpsPort: { - constraints: { - InclusiveMaximum: 65535, - InclusiveMinimum: 1 - }, - serializedName: "httpsPort", - type: { - name: "Number" - } - }, - originHostHeader: { - serializedName: "originHostHeader", + } + } + } +}; + +export const ManagedServiceIdentity: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedServiceIdentity", + modelProperties: { + type: { + serializedName: "type", type: { name: "String" } }, - priority: { - constraints: { - InclusiveMaximum: 5, - InclusiveMinimum: 1 - }, - serializedName: "priority", - type: { - name: "Number" - } - }, - weight: { - constraints: { - InclusiveMaximum: 1000, - InclusiveMinimum: 1 - }, - serializedName: "weight", - type: { - name: "Number" - } - }, - sharedPrivateLinkResource: { - serializedName: "sharedPrivateLinkResource", + tenantId: { + serializedName: "tenantId", + readOnly: true, type: { - name: "Dictionary", - value: { type: { name: "any" } } + name: "String" } }, - enabledState: { - serializedName: "enabledState", + principalId: { + serializedName: "principalId", + readOnly: true, type: { name: "String" } @@ -2477,91 +2575,144 @@ export const AFDOriginUpdatePropertiesParameters: coreClient.CompositeMapper = { } }; -export const AFDOriginUpdateParameters: coreClient.CompositeMapper = { +export const ErrorResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AFDOriginUpdateParameters", + className: "ErrorResponse", modelProperties: { - azureOrigin: { - serializedName: "properties.azureOrigin", + error: { + serializedName: "error", type: { name: "Composite", - className: "ResourceReference" - } - }, - hostName: { - serializedName: "properties.hostName", - type: { - name: "String" + className: "ErrorDetail" } - }, - httpPort: { - constraints: { - InclusiveMaximum: 65535, - InclusiveMinimum: 1 - }, - serializedName: "properties.httpPort", + } + } + } +}; + +export const ProfileUpdateParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ProfileUpdateParameters", + modelProperties: { + tags: { + serializedName: "tags", type: { - name: "Number" + name: "Dictionary", + value: { type: { name: "String" } } } - }, - httpsPort: { - constraints: { - InclusiveMaximum: 65535, - InclusiveMinimum: 1 - }, - serializedName: "properties.httpsPort", + } + } + } +}; + +export const SsoUri: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SsoUri", + modelProperties: { + ssoUriValue: { + serializedName: "ssoUriValue", + readOnly: true, type: { - name: "Number" + name: "String" + } + } + } + } +}; + +export const SupportedOptimizationTypesListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SupportedOptimizationTypesListResult", + modelProperties: { + supportedOptimizationTypes: { + serializedName: "supportedOptimizationTypes", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const ResourceUsageListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ResourceUsageListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceUsage" + } + } } }, - originHostHeader: { - serializedName: "properties.originHostHeader", + nextLink: { + serializedName: "nextLink", type: { name: "String" } - }, - priority: { - constraints: { - InclusiveMaximum: 5, - InclusiveMinimum: 1 - }, - serializedName: "properties.priority", + } + } + } +}; + +export const ResourceUsage: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ResourceUsage", + modelProperties: { + resourceType: { + serializedName: "resourceType", + readOnly: true, type: { - name: "Number" + name: "String" } }, - weight: { - constraints: { - InclusiveMaximum: 1000, - InclusiveMinimum: 1 - }, - serializedName: "properties.weight", + unit: { + serializedName: "unit", + readOnly: true, type: { - name: "Number" + name: "String" } }, - sharedPrivateLinkResource: { - serializedName: "properties.sharedPrivateLinkResource", + currentValue: { + serializedName: "currentValue", + readOnly: true, type: { - name: "Dictionary", - value: { type: { name: "any" } } + name: "Number" } }, - enabledState: { - serializedName: "properties.enabledState", + limit: { + serializedName: "limit", + readOnly: true, type: { - name: "String" + name: "Number" } } } } }; -export const RouteListResult: coreClient.CompositeMapper = { +export const EndpointListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RouteListResult", + className: "EndpointListResult", modelProperties: { value: { serializedName: "value", @@ -2571,7 +2722,7 @@ export const RouteListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Route" + className: "Endpoint" } } } @@ -2586,104 +2737,103 @@ export const RouteListResult: coreClient.CompositeMapper = { } }; -export const RouteUpdatePropertiesParameters: coreClient.CompositeMapper = { +export const DeepCreatedOrigin: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RouteUpdatePropertiesParameters", + className: "DeepCreatedOrigin", modelProperties: { - customDomains: { - serializedName: "customDomains", + name: { + serializedName: "name", + required: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ResourceReference" - } - } + name: "String" } }, - originGroup: { - serializedName: "originGroup", + hostName: { + serializedName: "properties.hostName", type: { - name: "Composite", - className: "ResourceReference" + name: "String" } }, - originPath: { - serializedName: "originPath", + httpPort: { + constraints: { + InclusiveMaximum: 65535, + InclusiveMinimum: 1 + }, + serializedName: "properties.httpPort", type: { - name: "String" + name: "Number" } }, - ruleSets: { - serializedName: "ruleSets", + httpsPort: { + constraints: { + InclusiveMaximum: 65535, + InclusiveMinimum: 1 + }, + serializedName: "properties.httpsPort", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ResourceReference" - } - } + name: "Number" } }, - supportedProtocols: { - serializedName: "supportedProtocols", + originHostHeader: { + serializedName: "properties.originHostHeader", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - patternsToMatch: { - serializedName: "patternsToMatch", + priority: { + constraints: { + InclusiveMaximum: 5, + InclusiveMinimum: 1 + }, + serializedName: "properties.priority", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Number" } }, - compressionSettings: { - serializedName: "compressionSettings", + weight: { + constraints: { + InclusiveMaximum: 1000, + InclusiveMinimum: 1 + }, + serializedName: "properties.weight", type: { - name: "Dictionary", - value: { type: { name: "any" } } + name: "Number" } }, - queryStringCachingBehavior: { - serializedName: "queryStringCachingBehavior", + enabled: { + serializedName: "properties.enabled", type: { - name: "Enum", - allowedValues: ["IgnoreQueryString", "UseQueryString", "NotSet"] + name: "Boolean" } }, - forwardingProtocol: { - serializedName: "forwardingProtocol", + privateLinkAlias: { + serializedName: "properties.privateLinkAlias", type: { name: "String" } }, - linkToDefaultDomain: { - serializedName: "linkToDefaultDomain", + privateLinkResourceId: { + serializedName: "properties.privateLinkResourceId", type: { name: "String" } }, - httpsRedirect: { - serializedName: "httpsRedirect", + privateLinkLocation: { + serializedName: "properties.privateLinkLocation", type: { name: "String" } }, - enabledState: { - serializedName: "enabledState", + privateLinkApprovalMessage: { + serializedName: "properties.privateLinkApprovalMessage", + type: { + name: "String" + } + }, + privateEndpointStatus: { + serializedName: "properties.privateEndpointStatus", + readOnly: true, type: { name: "String" } @@ -2692,13 +2842,27 @@ export const RouteUpdatePropertiesParameters: coreClient.CompositeMapper = { } }; -export const RouteUpdateParameters: coreClient.CompositeMapper = { +export const DeepCreatedOriginGroup: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RouteUpdateParameters", + className: "DeepCreatedOriginGroup", modelProperties: { - customDomains: { - serializedName: "properties.customDomains", + name: { + serializedName: "name", + required: true, + type: { + name: "String" + } + }, + healthProbeSettings: { + serializedName: "properties.healthProbeSettings", + type: { + name: "Composite", + className: "HealthProbeParameters" + } + }, + origins: { + serializedName: "properties.origins", type: { name: "Sequence", element: { @@ -2709,33 +2873,76 @@ export const RouteUpdateParameters: coreClient.CompositeMapper = { } } }, - originGroup: { - serializedName: "properties.originGroup", + trafficRestorationTimeToHealedOrNewEndpointsInMinutes: { + constraints: { + InclusiveMaximum: 50, + InclusiveMinimum: 0 + }, + serializedName: + "properties.trafficRestorationTimeToHealedOrNewEndpointsInMinutes", + type: { + name: "Number" + } + }, + responseBasedOriginErrorDetectionSettings: { + serializedName: "properties.responseBasedOriginErrorDetectionSettings", type: { name: "Composite", - className: "ResourceReference" + className: "ResponseBasedOriginErrorDetectionParameters" + } + } + } + } +}; + +export const CustomDomainHttpsParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CustomDomainHttpsParameters", + uberParent: "CustomDomainHttpsParameters", + polymorphicDiscriminator: { + serializedName: "certificateSource", + clientName: "certificateSource" + }, + modelProperties: { + certificateSource: { + serializedName: "certificateSource", + required: true, + type: { + name: "String" } }, - originPath: { - serializedName: "properties.originPath", + protocolType: { + serializedName: "protocolType", + required: true, type: { name: "String" } }, - ruleSets: { - serializedName: "properties.ruleSets", + minimumTlsVersion: { + serializedName: "minimumTlsVersion", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ResourceReference" - } - } + name: "Enum", + allowedValues: ["None", "TLS10", "TLS12"] + } + } + } + } +}; + +export const EndpointPropertiesUpdateParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EndpointPropertiesUpdateParameters", + modelProperties: { + originPath: { + serializedName: "originPath", + type: { + name: "String" } }, - supportedProtocols: { - serializedName: "properties.supportedProtocols", + contentTypesToCompress: { + serializedName: "contentTypesToCompress", type: { name: "Sequence", element: { @@ -2745,339 +2952,207 @@ export const RouteUpdateParameters: coreClient.CompositeMapper = { } } }, - patternsToMatch: { - serializedName: "properties.patternsToMatch", + originHostHeader: { + serializedName: "originHostHeader", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - compressionSettings: { - serializedName: "properties.compressionSettings", + isCompressionEnabled: { + serializedName: "isCompressionEnabled", type: { - name: "Dictionary", - value: { type: { name: "any" } } + name: "Boolean" } }, - queryStringCachingBehavior: { - serializedName: "properties.queryStringCachingBehavior", + isHttpAllowed: { + serializedName: "isHttpAllowed", type: { - name: "Enum", - allowedValues: ["IgnoreQueryString", "UseQueryString", "NotSet"] + name: "Boolean" } }, - forwardingProtocol: { - serializedName: "properties.forwardingProtocol", + isHttpsAllowed: { + serializedName: "isHttpsAllowed", type: { - name: "String" + name: "Boolean" } }, - linkToDefaultDomain: { - serializedName: "properties.linkToDefaultDomain", + queryStringCachingBehavior: { + serializedName: "queryStringCachingBehavior", type: { - name: "String" + name: "Enum", + allowedValues: [ + "IgnoreQueryString", + "BypassCaching", + "UseQueryString", + "NotSet" + ] } }, - httpsRedirect: { - serializedName: "properties.httpsRedirect", + optimizationType: { + serializedName: "optimizationType", type: { name: "String" } }, - enabledState: { - serializedName: "properties.enabledState", + probePath: { + serializedName: "probePath", type: { name: "String" } - } - } - } -}; - -export const RuleSetListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RuleSetListResult", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, + }, + geoFilters: { + serializedName: "geoFilters", type: { name: "Sequence", element: { type: { name: "Composite", - className: "RuleSet" + className: "GeoFilter" } } } }, - nextLink: { - serializedName: "nextLink", + defaultOriginGroup: { + serializedName: "defaultOriginGroup", type: { - name: "String" + name: "Composite", + className: "ResourceReference" } - } - } - } -}; - -export const RuleListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RuleListResult", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, + }, + urlSigningKeys: { + serializedName: "urlSigningKeys", type: { name: "Sequence", element: { type: { name: "Composite", - className: "Rule" + className: "UrlSigningKey" } } } }, - nextLink: { - serializedName: "nextLink", + deliveryPolicy: { + serializedName: "deliveryPolicy", type: { - name: "String" + name: "Composite", + className: "EndpointPropertiesUpdateParametersDeliveryPolicy" + } + }, + webApplicationFirewallPolicyLink: { + serializedName: "webApplicationFirewallPolicyLink", + type: { + name: "Composite", + className: + "EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink" } } } } }; -export const RuleUpdatePropertiesParameters: coreClient.CompositeMapper = { +export const GeoFilter: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RuleUpdatePropertiesParameters", + className: "GeoFilter", modelProperties: { - order: { - serializedName: "order", + relativePath: { + serializedName: "relativePath", + required: true, type: { - name: "Number" + name: "String" } }, - conditions: { - serializedName: "conditions", + action: { + serializedName: "action", + required: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DeliveryRuleCondition" - } - } + name: "Enum", + allowedValues: ["Block", "Allow"] } }, - actions: { - serializedName: "actions", + countryCodes: { + serializedName: "countryCodes", + required: true, type: { name: "Sequence", element: { type: { - name: "Composite", - className: "DeliveryRuleActionAutoGenerated" + name: "String" } } } - }, - matchProcessingBehavior: { - serializedName: "matchProcessingBehavior", - type: { - name: "String" - } } } } }; -export const RuleUpdateParameters: coreClient.CompositeMapper = { +export const UrlSigningKey: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RuleUpdateParameters", + className: "UrlSigningKey", modelProperties: { - order: { - serializedName: "properties.order", + keyId: { + serializedName: "keyId", + required: true, type: { - name: "Number" + name: "String" } }, - conditions: { - serializedName: "properties.conditions", + keySourceParameters: { + serializedName: "keySourceParameters", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DeliveryRuleCondition" - } - } - } - }, - actions: { - serializedName: "properties.actions", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DeliveryRuleActionAutoGenerated" - } - } - } - }, - matchProcessingBehavior: { - serializedName: "properties.matchProcessingBehavior", - type: { - name: "String" + name: "Composite", + className: "KeyVaultSigningKeyParameters" } } } } }; -export const SecurityPolicyListResult: coreClient.CompositeMapper = { +export const KeyVaultSigningKeyParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecurityPolicyListResult", + className: "KeyVaultSigningKeyParameters", modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SecurityPolicy" - } - } - } - }, - nextLink: { - serializedName: "nextLink", + typeName: { + defaultValue: "KeyVaultSigningKeyParameters", + isConstant: true, + serializedName: "typeName", type: { name: "String" } - } - } - } -}; - -export const SecurityPolicyParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SecurityPolicyParameters", - uberParent: "SecurityPolicyParameters", - polymorphicDiscriminator: { - serializedName: "type", - clientName: "type" - }, - modelProperties: { - type: { - serializedName: "type", + }, + subscriptionId: { + serializedName: "subscriptionId", required: true, type: { name: "String" } - } - } - } -}; - -export const SecretListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SecretListResult", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Secret" - } - } - } }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const SecretParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SecretParameters", - uberParent: "SecretParameters", - polymorphicDiscriminator: { - serializedName: "type", - clientName: "type" - }, - modelProperties: { - type: { - serializedName: "type", + resourceGroupName: { + serializedName: "resourceGroupName", required: true, type: { name: "String" } - } - } - } -}; - -export const ValidateSecretInput: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ValidateSecretInput", - modelProperties: { - secretSource: { - serializedName: "secretSource", - type: { - name: "Composite", - className: "ResourceReference" - } }, - secretType: { - serializedName: "secretType", + vaultName: { + serializedName: "vaultName", required: true, type: { name: "String" } - } - } - } -}; - -export const ValidateSecretOutput: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ValidateSecretOutput", - modelProperties: { - status: { - serializedName: "status", + }, + secretName: { + serializedName: "secretName", + required: true, type: { name: "String" } }, - message: { - serializedName: "message", + secretVersion: { + serializedName: "secretVersion", + required: true, type: { name: "String" } @@ -3086,37 +3161,26 @@ export const ValidateSecretOutput: coreClient.CompositeMapper = { } }; -export const MetricsResponse: coreClient.CompositeMapper = { +export const EndpointPropertiesUpdateParametersDeliveryPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MetricsResponse", + className: "EndpointPropertiesUpdateParametersDeliveryPolicy", modelProperties: { - dateTimeBegin: { - serializedName: "dateTimeBegin", - type: { - name: "DateTime" - } - }, - dateTimeEnd: { - serializedName: "dateTimeEnd", - type: { - name: "DateTime" - } - }, - granularity: { - serializedName: "granularity", + description: { + serializedName: "description", type: { name: "String" } }, - series: { - serializedName: "series", + rules: { + serializedName: "rules", + required: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "MetricsResponseSeriesItem" + className: "DeliveryRule" } } } @@ -3125,44 +3189,45 @@ export const MetricsResponse: coreClient.CompositeMapper = { } }; -export const MetricsResponseSeriesItem: coreClient.CompositeMapper = { +export const DeliveryRule: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MetricsResponseSeriesItem", + className: "DeliveryRule", modelProperties: { - metric: { - serializedName: "metric", + name: { + serializedName: "name", type: { name: "String" } }, - unit: { - serializedName: "unit", + order: { + serializedName: "order", + required: true, type: { - name: "String" + name: "Number" } }, - groups: { - serializedName: "groups", + conditions: { + serializedName: "conditions", type: { name: "Sequence", element: { type: { name: "Composite", - className: "MetricsResponseSeriesPropertiesItemsItem" + className: "DeliveryRuleCondition" } } } }, - data: { - serializedName: "data", + actions: { + serializedName: "actions", + required: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: - "Components1Gs0LlpSchemasMetricsresponsePropertiesSeriesItemsPropertiesDataItems" + className: "DeliveryRuleActionAutoGenerated" } } } @@ -3171,19 +3236,14 @@ export const MetricsResponseSeriesItem: coreClient.CompositeMapper = { } }; -export const MetricsResponseSeriesPropertiesItemsItem: coreClient.CompositeMapper = { +export const EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MetricsResponseSeriesPropertiesItemsItem", + className: + "EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink", modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - value: { - serializedName: "value", + id: { + serializedName: "id", type: { name: "String" } @@ -3192,449 +3252,405 @@ export const MetricsResponseSeriesPropertiesItemsItem: coreClient.CompositeMappe } }; -export const Components1Gs0LlpSchemasMetricsresponsePropertiesSeriesItemsPropertiesDataItems: coreClient.CompositeMapper = { +export const EndpointUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: - "Components1Gs0LlpSchemasMetricsresponsePropertiesSeriesItemsPropertiesDataItems", + className: "EndpointUpdateParameters", modelProperties: { - dateTime: { - serializedName: "dateTime", + tags: { + serializedName: "tags", type: { - name: "DateTime" + name: "Dictionary", + value: { type: { name: "String" } } } }, - value: { - serializedName: "value", + originPath: { + serializedName: "properties.originPath", type: { - name: "Number" - } - } - } - } -}; - -export const RankingsResponse: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RankingsResponse", - modelProperties: { - dateTimeBegin: { - serializedName: "dateTimeBegin", - type: { - name: "DateTime" - } - }, - dateTimeEnd: { - serializedName: "dateTimeEnd", - type: { - name: "DateTime" + name: "String" } }, - tables: { - serializedName: "tables", + contentTypesToCompress: { + serializedName: "properties.contentTypesToCompress", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "RankingsResponseTablesItem" + name: "String" } } } - } - } - } -}; - -export const RankingsResponseTablesItem: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RankingsResponseTablesItem", - modelProperties: { - ranking: { - serializedName: "ranking", + }, + originHostHeader: { + serializedName: "properties.originHostHeader", type: { name: "String" } }, - data: { - serializedName: "data", + isCompressionEnabled: { + serializedName: "properties.isCompressionEnabled", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RankingsResponseTablesPropertiesItemsItem" - } - } + name: "Boolean" } - } - } - } -}; - -export const RankingsResponseTablesPropertiesItemsItem: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RankingsResponseTablesPropertiesItemsItem", - modelProperties: { - name: { - serializedName: "name", + }, + isHttpAllowed: { + serializedName: "properties.isHttpAllowed", type: { - name: "String" + name: "Boolean" } }, - metrics: { - serializedName: "metrics", + isHttpsAllowed: { + serializedName: "properties.isHttpsAllowed", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RankingsResponseTablesPropertiesItemsMetricsItem" - } - } + name: "Boolean" } - } - } - } -}; - -export const RankingsResponseTablesPropertiesItemsMetricsItem: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RankingsResponseTablesPropertiesItemsMetricsItem", - modelProperties: { - metric: { - serializedName: "metric", + }, + queryStringCachingBehavior: { + serializedName: "properties.queryStringCachingBehavior", type: { - name: "String" + name: "Enum", + allowedValues: [ + "IgnoreQueryString", + "BypassCaching", + "UseQueryString", + "NotSet" + ] } }, - value: { - serializedName: "value", + optimizationType: { + serializedName: "properties.optimizationType", type: { - name: "Number" + name: "String" } }, - percentage: { - serializedName: "percentage", + probePath: { + serializedName: "properties.probePath", type: { - name: "Number" + name: "String" } - } - } - } -}; - -export const ContinentsResponse: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ContinentsResponse", - modelProperties: { - continents: { - serializedName: "continents", + }, + geoFilters: { + serializedName: "properties.geoFilters", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ContinentsResponseContinentsItem" + className: "GeoFilter" } } } }, - countryOrRegions: { - serializedName: "countryOrRegions", + defaultOriginGroup: { + serializedName: "properties.defaultOriginGroup", + type: { + name: "Composite", + className: "ResourceReference" + } + }, + urlSigningKeys: { + serializedName: "properties.urlSigningKeys", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ContinentsResponseCountryOrRegionsItem" + className: "UrlSigningKey" } } } + }, + deliveryPolicy: { + serializedName: "properties.deliveryPolicy", + type: { + name: "Composite", + className: "EndpointPropertiesUpdateParametersDeliveryPolicy" + } + }, + webApplicationFirewallPolicyLink: { + serializedName: "properties.webApplicationFirewallPolicyLink", + type: { + name: "Composite", + className: + "EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink" + } } } } }; -export const ContinentsResponseContinentsItem: coreClient.CompositeMapper = { +export const PurgeParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ContinentsResponseContinentsItem", + className: "PurgeParameters", modelProperties: { - id: { - serializedName: "id", + contentPaths: { + serializedName: "contentPaths", + required: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const ContinentsResponseCountryOrRegionsItem: coreClient.CompositeMapper = { +export const LoadParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ContinentsResponseCountryOrRegionsItem", + className: "LoadParameters", modelProperties: { - id: { - serializedName: "id", - type: { - name: "String" - } - }, - continentId: { - serializedName: "continentId", + contentPaths: { + serializedName: "contentPaths", + required: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const ResourcesResponse: coreClient.CompositeMapper = { +export const OriginListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourcesResponse", + className: "OriginListResult", modelProperties: { - endpoints: { - serializedName: "endpoints", + value: { + serializedName: "value", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ResourcesResponseEndpointsItem" + className: "Origin" } } } }, - customDomains: { - serializedName: "customDomains", + nextLink: { + serializedName: "nextLink", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ResourcesResponseCustomDomainsItem" - } - } + name: "String" } } } } }; -export const ResourcesResponseEndpointsItem: coreClient.CompositeMapper = { +export const OriginUpdatePropertiesParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourcesResponseEndpointsItem", + className: "OriginUpdatePropertiesParameters", modelProperties: { - id: { - serializedName: "id", + hostName: { + serializedName: "hostName", type: { name: "String" } }, - name: { - serializedName: "name", + httpPort: { + constraints: { + InclusiveMaximum: 65535, + InclusiveMinimum: 1 + }, + serializedName: "httpPort", type: { - name: "String" + name: "Number" } }, - history: { - serializedName: "history", + httpsPort: { + constraints: { + InclusiveMaximum: 65535, + InclusiveMinimum: 1 + }, + serializedName: "httpsPort", type: { - name: "Boolean" + name: "Number" } }, - customDomains: { - serializedName: "customDomains", + originHostHeader: { + serializedName: "originHostHeader", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ResourcesResponseEndpointsPropertiesItemsItem" - } - } - } - } - } - } -}; - -export const ResourcesResponseEndpointsPropertiesItemsItem: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ResourcesResponseEndpointsPropertiesItemsItem", - modelProperties: { - id: { - serializedName: "id", - type: { - name: "String" + name: "String" } }, - name: { - serializedName: "name", + priority: { + constraints: { + InclusiveMaximum: 5, + InclusiveMinimum: 1 + }, + serializedName: "priority", type: { - name: "String" + name: "Number" } }, - endpointId: { - serializedName: "endpointId", + weight: { + constraints: { + InclusiveMaximum: 1000, + InclusiveMinimum: 1 + }, + serializedName: "weight", type: { - name: "String" + name: "Number" } }, - history: { - serializedName: "history", + enabled: { + serializedName: "enabled", type: { name: "Boolean" } - } - } - } -}; - -export const ResourcesResponseCustomDomainsItem: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ResourcesResponseCustomDomainsItem", - modelProperties: { - id: { - serializedName: "id", + }, + privateLinkAlias: { + serializedName: "privateLinkAlias", type: { name: "String" } }, - name: { - serializedName: "name", + privateLinkResourceId: { + serializedName: "privateLinkResourceId", type: { name: "String" } }, - endpointId: { - serializedName: "endpointId", + privateLinkLocation: { + serializedName: "privateLinkLocation", type: { name: "String" } }, - history: { - serializedName: "history", + privateLinkApprovalMessage: { + serializedName: "privateLinkApprovalMessage", type: { - name: "Boolean" + name: "String" } } } } }; -export const WafMetricsResponse: coreClient.CompositeMapper = { +export const OriginUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WafMetricsResponse", + className: "OriginUpdateParameters", modelProperties: { - dateTimeBegin: { - serializedName: "dateTimeBegin", + hostName: { + serializedName: "properties.hostName", type: { - name: "DateTime" + name: "String" } }, - dateTimeEnd: { - serializedName: "dateTimeEnd", + httpPort: { + constraints: { + InclusiveMaximum: 65535, + InclusiveMinimum: 1 + }, + serializedName: "properties.httpPort", type: { - name: "DateTime" + name: "Number" } }, - granularity: { - serializedName: "granularity", + httpsPort: { + constraints: { + InclusiveMaximum: 65535, + InclusiveMinimum: 1 + }, + serializedName: "properties.httpsPort", + type: { + name: "Number" + } + }, + originHostHeader: { + serializedName: "properties.originHostHeader", type: { name: "String" } }, - series: { - serializedName: "series", + priority: { + constraints: { + InclusiveMaximum: 5, + InclusiveMinimum: 1 + }, + serializedName: "properties.priority", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "WafMetricsResponseSeriesItem" - } - } + name: "Number" } - } - } - } -}; - -export const WafMetricsResponseSeriesItem: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "WafMetricsResponseSeriesItem", - modelProperties: { - metric: { - serializedName: "metric", + }, + weight: { + constraints: { + InclusiveMaximum: 1000, + InclusiveMinimum: 1 + }, + serializedName: "properties.weight", + type: { + name: "Number" + } + }, + enabled: { + serializedName: "properties.enabled", + type: { + name: "Boolean" + } + }, + privateLinkAlias: { + serializedName: "properties.privateLinkAlias", type: { name: "String" } }, - unit: { - defaultValue: "count", - isConstant: true, - serializedName: "unit", + privateLinkResourceId: { + serializedName: "properties.privateLinkResourceId", type: { name: "String" } }, - groups: { - serializedName: "groups", + privateLinkLocation: { + serializedName: "properties.privateLinkLocation", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "WafMetricsResponseSeriesPropertiesItemsItem" - } - } + name: "String" } }, - data: { - serializedName: "data", + privateLinkApprovalMessage: { + serializedName: "properties.privateLinkApprovalMessage", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: - "Components18OrqelSchemasWafmetricsresponsePropertiesSeriesItemsPropertiesDataItems" - } - } + name: "String" } } } } }; -export const WafMetricsResponseSeriesPropertiesItemsItem: coreClient.CompositeMapper = { +export const OriginGroupListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WafMetricsResponseSeriesPropertiesItemsItem", + className: "OriginGroupListResult", modelProperties: { - name: { - serializedName: "name", + value: { + serializedName: "value", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OriginGroup" + } + } } }, - value: { - serializedName: "value", + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -3643,153 +3659,156 @@ export const WafMetricsResponseSeriesPropertiesItemsItem: coreClient.CompositeMa } }; -export const Components18OrqelSchemasWafmetricsresponsePropertiesSeriesItemsPropertiesDataItems: coreClient.CompositeMapper = { +export const OriginGroupUpdatePropertiesParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: - "Components18OrqelSchemasWafmetricsresponsePropertiesSeriesItemsPropertiesDataItems", + className: "OriginGroupUpdatePropertiesParameters", modelProperties: { - dateTime: { - serializedName: "dateTime", + healthProbeSettings: { + serializedName: "healthProbeSettings", type: { - name: "DateTime" + name: "Composite", + className: "HealthProbeParameters" } }, - value: { - serializedName: "value", + origins: { + serializedName: "origins", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceReference" + } + } + } + }, + trafficRestorationTimeToHealedOrNewEndpointsInMinutes: { + constraints: { + InclusiveMaximum: 50, + InclusiveMinimum: 0 + }, + serializedName: "trafficRestorationTimeToHealedOrNewEndpointsInMinutes", type: { name: "Number" } + }, + responseBasedOriginErrorDetectionSettings: { + serializedName: "responseBasedOriginErrorDetectionSettings", + type: { + name: "Composite", + className: "ResponseBasedOriginErrorDetectionParameters" + } } } } }; -export const WafRankingsResponse: coreClient.CompositeMapper = { +export const OriginGroupUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WafRankingsResponse", + className: "OriginGroupUpdateParameters", modelProperties: { - dateTimeBegin: { - serializedName: "dateTimeBegin", + healthProbeSettings: { + serializedName: "properties.healthProbeSettings", type: { - name: "DateTime" + name: "Composite", + className: "HealthProbeParameters" } }, - dateTimeEnd: { - serializedName: "dateTimeEnd", - type: { - name: "DateTime" - } - }, - groups: { - serializedName: "groups", + origins: { + serializedName: "properties.origins", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "ResourceReference" } } } }, - data: { - serializedName: "data", + trafficRestorationTimeToHealedOrNewEndpointsInMinutes: { + constraints: { + InclusiveMaximum: 50, + InclusiveMinimum: 0 + }, + serializedName: + "properties.trafficRestorationTimeToHealedOrNewEndpointsInMinutes", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "WafRankingsResponseDataItem" - } - } + name: "Number" + } + }, + responseBasedOriginErrorDetectionSettings: { + serializedName: "properties.responseBasedOriginErrorDetectionSettings", + type: { + name: "Composite", + className: "ResponseBasedOriginErrorDetectionParameters" } } } } }; -export const WafRankingsResponseDataItem: coreClient.CompositeMapper = { +export const CustomDomainListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WafRankingsResponseDataItem", + className: "CustomDomainListResult", modelProperties: { - groupValues: { - serializedName: "groupValues", + value: { + serializedName: "value", + readOnly: true, type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "CustomDomain" } } } }, - metrics: { - serializedName: "metrics", + nextLink: { + serializedName: "nextLink", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: - "ComponentsKpo1PjSchemasWafrankingsresponsePropertiesDataItemsPropertiesMetricsItems" - } - } + name: "String" } } } } }; -export const ComponentsKpo1PjSchemasWafrankingsresponsePropertiesDataItemsPropertiesMetricsItems: coreClient.CompositeMapper = { +export const CustomDomainParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: - "ComponentsKpo1PjSchemasWafrankingsresponsePropertiesDataItemsPropertiesMetricsItems", + className: "CustomDomainParameters", modelProperties: { - metric: { - serializedName: "metric", + hostName: { + serializedName: "properties.hostName", type: { name: "String" } - }, - value: { - serializedName: "value", - type: { - name: "Number" - } - }, - percentage: { - serializedName: "percentage", - type: { - name: "Number" - } } } } }; -export const CdnWebApplicationFirewallPolicyList: coreClient.CompositeMapper = { +export const CheckNameAvailabilityInput: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CdnWebApplicationFirewallPolicyList", + className: "CheckNameAvailabilityInput", modelProperties: { - value: { - serializedName: "value", - readOnly: true, + name: { + serializedName: "name", + required: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "CdnWebApplicationFirewallPolicy" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + type: { + defaultValue: "Microsoft.Cdn/Profiles/Endpoints", + isConstant: true, + serializedName: "type", type: { name: "String" } @@ -3798,42 +3817,44 @@ export const CdnWebApplicationFirewallPolicyList: coreClient.CompositeMapper = { } }; -export const PolicySettings: coreClient.CompositeMapper = { +export const ValidateProbeInput: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PolicySettings", + className: "ValidateProbeInput", modelProperties: { - enabledState: { - serializedName: "enabledState", + probeURL: { + serializedName: "probeURL", + required: true, type: { name: "String" } - }, - mode: { - serializedName: "mode", + } + } + } +}; + +export const ValidateProbeOutput: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ValidateProbeOutput", + modelProperties: { + isValid: { + serializedName: "isValid", + readOnly: true, type: { - name: "String" + name: "Boolean" } }, - defaultRedirectUrl: { - serializedName: "defaultRedirectUrl", + errorCode: { + serializedName: "errorCode", + readOnly: true, type: { name: "String" } }, - defaultCustomBlockResponseStatusCode: { - serializedName: "defaultCustomBlockResponseStatusCode", - type: { - name: "Number" - } - }, - defaultCustomBlockResponseBody: { - constraints: { - Pattern: new RegExp( - "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$" - ) - }, - serializedName: "defaultCustomBlockResponseBody", + message: { + serializedName: "message", + readOnly: true, type: { name: "String" } @@ -3842,130 +3863,138 @@ export const PolicySettings: coreClient.CompositeMapper = { } }; -export const RateLimitRuleList: coreClient.CompositeMapper = { +export const OperationsListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RateLimitRuleList", + className: "OperationsListResult", modelProperties: { - rules: { - serializedName: "rules", + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "RateLimitRule" + className: "Operation" } } } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } } } } }; -export const CustomRule: coreClient.CompositeMapper = { +export const Operation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CustomRule", + className: "Operation", modelProperties: { name: { serializedName: "name", - required: true, + readOnly: true, type: { name: "String" } }, - enabledState: { - serializedName: "enabledState", + isDataAction: { + serializedName: "isDataAction", type: { - name: "String" + name: "Boolean" } }, - priority: { - constraints: { - InclusiveMaximum: 1000, - InclusiveMinimum: 0 - }, - serializedName: "priority", - required: true, + display: { + serializedName: "display", type: { - name: "Number" + name: "Composite", + className: "OperationDisplay" } }, - matchConditions: { - serializedName: "matchConditions", - required: true, + origin: { + serializedName: "origin", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MatchCondition" - } - } + name: "String" } }, - action: { - serializedName: "action", - required: true, + serviceSpecification: { + serializedName: "properties.serviceSpecification", type: { - name: "String" + name: "Composite", + className: "ServiceSpecification" } } } } }; -export const MatchCondition: coreClient.CompositeMapper = { +export const OperationDisplay: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MatchCondition", + className: "OperationDisplay", modelProperties: { - matchVariable: { - serializedName: "matchVariable", - required: true, + provider: { + serializedName: "provider", + readOnly: true, type: { name: "String" } }, - selector: { - serializedName: "selector", + resource: { + serializedName: "resource", + readOnly: true, type: { name: "String" } }, - operator: { - serializedName: "operator", - required: true, + operation: { + serializedName: "operation", + readOnly: true, type: { name: "String" } }, - negateCondition: { - serializedName: "negateCondition", + description: { + serializedName: "description", + readOnly: true, type: { - name: "Boolean" + name: "String" } - }, - matchValue: { - serializedName: "matchValue", - required: true, + } + } + } +}; + +export const ServiceSpecification: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServiceSpecification", + modelProperties: { + logSpecifications: { + serializedName: "logSpecifications", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "LogSpecification" } } } }, - transforms: { - serializedName: "transforms", + metricSpecifications: { + serializedName: "metricSpecifications", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "MetricSpecification" } } } @@ -3974,156 +4003,144 @@ export const MatchCondition: coreClient.CompositeMapper = { } }; -export const CustomRuleList: coreClient.CompositeMapper = { +export const LogSpecification: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CustomRuleList", + className: "LogSpecification", modelProperties: { - rules: { - serializedName: "rules", + name: { + serializedName: "name", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "CustomRule" - } - } + name: "String" } - } - } - } -}; - -export const ManagedRuleSetList: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedRuleSetList", - modelProperties: { - managedRuleSets: { - serializedName: "managedRuleSets", + }, + displayName: { + serializedName: "displayName", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ManagedRuleSet" - } - } + name: "String" + } + }, + blobDuration: { + serializedName: "blobDuration", + type: { + name: "String" + } + }, + logFilterPattern: { + serializedName: "logFilterPattern", + type: { + name: "String" } } } } }; -export const ManagedRuleSet: coreClient.CompositeMapper = { +export const MetricSpecification: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedRuleSet", + className: "MetricSpecification", modelProperties: { - ruleSetType: { - serializedName: "ruleSetType", - required: true, + name: { + serializedName: "name", type: { name: "String" } }, - ruleSetVersion: { - serializedName: "ruleSetVersion", - required: true, + displayName: { + serializedName: "displayName", type: { name: "String" } }, - anomalyScore: { - constraints: { - InclusiveMaximum: 20, - InclusiveMinimum: 0 - }, - serializedName: "anomalyScore", + displayDescription: { + serializedName: "displayDescription", type: { - name: "Number" + name: "String" } }, - ruleGroupOverrides: { - serializedName: "ruleGroupOverrides", + unit: { + serializedName: "unit", + type: { + name: "String" + } + }, + aggregationType: { + serializedName: "aggregationType", + type: { + name: "String" + } + }, + availabilities: { + serializedName: "availabilities", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ManagedRuleGroupOverride" + className: "MetricAvailability" } } } - } - } - } -}; - -export const ManagedRuleGroupOverride: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedRuleGroupOverride", - modelProperties: { - ruleGroupName: { - serializedName: "ruleGroupName", - required: true, + }, + supportedTimeGrainTypes: { + serializedName: "supportedTimeGrainTypes", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - rules: { - serializedName: "rules", + dimensions: { + serializedName: "dimensions", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ManagedRuleOverride" + className: "DimensionProperties" } } } - } - } - } -}; - -export const ManagedRuleOverride: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedRuleOverride", - modelProperties: { - ruleId: { - serializedName: "ruleId", - required: true, + }, + fillGapWithZero: { + serializedName: "fillGapWithZero", type: { - name: "String" + name: "Boolean" } }, - enabledState: { - serializedName: "enabledState", + metricFilterPattern: { + serializedName: "metricFilterPattern", type: { name: "String" } }, - action: { - serializedName: "action", + isInternal: { + serializedName: "isInternal", type: { - name: "String" + name: "Boolean" } } } } }; -export const CdnEndpoint: coreClient.CompositeMapper = { +export const MetricAvailability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CdnEndpoint", + className: "MetricAvailability", modelProperties: { - id: { - serializedName: "id", + timeGrain: { + serializedName: "timeGrain", + type: { + name: "String" + } + }, + blobDuration: { + serializedName: "blobDuration", type: { name: "String" } @@ -4132,26 +4149,37 @@ export const CdnEndpoint: coreClient.CompositeMapper = { } }; -export const CdnWebApplicationFirewallPolicyPatchParameters: coreClient.CompositeMapper = { +export const DimensionProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CdnWebApplicationFirewallPolicyPatchParameters", + className: "DimensionProperties", modelProperties: { - tags: { - serializedName: "tags", + name: { + serializedName: "name", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "String" + } + }, + displayName: { + serializedName: "displayName", + type: { + name: "String" + } + }, + internalName: { + serializedName: "internalName", + type: { + name: "String" } } } } }; -export const ManagedRuleSetDefinitionList: coreClient.CompositeMapper = { +export const EdgenodeResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedRuleSetDefinitionList", + className: "EdgenodeResult", modelProperties: { value: { serializedName: "value", @@ -4161,7 +4189,7 @@ export const ManagedRuleSetDefinitionList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ManagedRuleSetDefinition" + className: "EdgeNode" } } } @@ -4176,34 +4204,37 @@ export const ManagedRuleSetDefinitionList: coreClient.CompositeMapper = { } }; -export const ManagedRuleGroupDefinition: coreClient.CompositeMapper = { +export const IpAddressGroup: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedRuleGroupDefinition", + className: "IpAddressGroup", modelProperties: { - ruleGroupName: { - serializedName: "ruleGroupName", - readOnly: true, + deliveryRegion: { + serializedName: "deliveryRegion", type: { name: "String" } }, - description: { - serializedName: "description", - readOnly: true, + ipv4Addresses: { + serializedName: "ipv4Addresses", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CidrIpAddress" + } + } } }, - rules: { - serializedName: "rules", - readOnly: true, + ipv6Addresses: { + serializedName: "ipv6Addresses", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ManagedRuleDefinition" + className: "CidrIpAddress" } } } @@ -4212,187 +4243,181 @@ export const ManagedRuleGroupDefinition: coreClient.CompositeMapper = { } }; -export const ManagedRuleDefinition: coreClient.CompositeMapper = { +export const CidrIpAddress: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedRuleDefinition", + className: "CidrIpAddress", modelProperties: { - ruleId: { - serializedName: "ruleId", - readOnly: true, + baseIpAddress: { + serializedName: "baseIpAddress", type: { name: "String" } }, - description: { - serializedName: "description", - readOnly: true, + prefixLength: { + serializedName: "prefixLength", type: { - name: "String" + name: "Number" } } } } }; -export const RemoteAddressMatchConditionParameters: coreClient.CompositeMapper = { +export const CdnWebApplicationFirewallPolicyList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RemoteAddressMatchConditionParameters", + className: "CdnWebApplicationFirewallPolicyList", modelProperties: { - odataType: { - defaultValue: - "#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters", - isConstant: true, - serializedName: "@odata\\.type", - type: { - name: "String" - } - }, - operator: { - serializedName: "operator", - required: true, - type: { - name: "String" - } - }, - negateCondition: { - serializedName: "negateCondition", - type: { - name: "Boolean" - } - }, - matchValues: { - serializedName: "matchValues", + value: { + serializedName: "value", + readOnly: true, type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "CdnWebApplicationFirewallPolicy" } } } }, - transforms: { - serializedName: "transforms", + nextLink: { + serializedName: "nextLink", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } } } } }; -export const RequestMethodMatchConditionParameters: coreClient.CompositeMapper = { +export const PolicySettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RequestMethodMatchConditionParameters", + className: "PolicySettings", modelProperties: { - odataType: { - defaultValue: - "#Microsoft.Azure.Cdn.Models.DeliveryRuleRequestMethodConditionParameters", - isConstant: true, - serializedName: "@odata\\.type", + enabledState: { + serializedName: "enabledState", type: { name: "String" } }, - operator: { - serializedName: "operator", - required: true, + mode: { + serializedName: "mode", type: { name: "String" } }, - negateCondition: { - serializedName: "negateCondition", + defaultRedirectUrl: { + serializedName: "defaultRedirectUrl", type: { - name: "Boolean" + name: "String" } }, - matchValues: { - serializedName: "matchValues", + defaultCustomBlockResponseStatusCode: { + serializedName: "defaultCustomBlockResponseStatusCode", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Number" + } + }, + defaultCustomBlockResponseBody: { + constraints: { + Pattern: new RegExp( + "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$" + ) + }, + serializedName: "defaultCustomBlockResponseBody", + type: { + name: "String" } } } } }; -export const QueryStringMatchConditionParameters: coreClient.CompositeMapper = { +export const RateLimitRuleList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "QueryStringMatchConditionParameters", + className: "RateLimitRuleList", modelProperties: { - odataType: { - defaultValue: - "#Microsoft.Azure.Cdn.Models.DeliveryRuleQueryStringConditionParameters", - isConstant: true, - serializedName: "@odata\\.type", + rules: { + serializedName: "rules", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RateLimitRule" + } + } + } + } + } + } +}; + +export const CustomRule: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CustomRule", + modelProperties: { + name: { + serializedName: "name", + required: true, type: { name: "String" } }, - operator: { - serializedName: "operator", - required: true, + enabledState: { + serializedName: "enabledState", type: { name: "String" } }, - negateCondition: { - serializedName: "negateCondition", + priority: { + constraints: { + InclusiveMaximum: 1000, + InclusiveMinimum: 0 + }, + serializedName: "priority", + required: true, type: { - name: "Boolean" + name: "Number" } }, - matchValues: { - serializedName: "matchValues", + matchConditions: { + serializedName: "matchConditions", + required: true, type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "MatchCondition" } } } }, - transforms: { - serializedName: "transforms", + action: { + serializedName: "action", + required: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } } } } }; -export const PostArgsMatchConditionParameters: coreClient.CompositeMapper = { +export const MatchCondition: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PostArgsMatchConditionParameters", + className: "MatchCondition", modelProperties: { - odataType: { - defaultValue: - "#Microsoft.Azure.Cdn.Models.DeliveryRulePostArgsConditionParameters", - isConstant: true, - serializedName: "@odata\\.type", + matchVariable: { + serializedName: "matchVariable", + required: true, type: { name: "String" } @@ -4416,8 +4441,9 @@ export const PostArgsMatchConditionParameters: coreClient.CompositeMapper = { name: "Boolean" } }, - matchValues: { - serializedName: "matchValues", + matchValue: { + serializedName: "matchValue", + required: true, type: { name: "Sequence", element: { @@ -4442,51 +4468,40 @@ export const PostArgsMatchConditionParameters: coreClient.CompositeMapper = { } }; -export const RequestUriMatchConditionParameters: coreClient.CompositeMapper = { +export const CustomRuleList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RequestUriMatchConditionParameters", + className: "CustomRuleList", modelProperties: { - odataType: { - defaultValue: - "#Microsoft.Azure.Cdn.Models.DeliveryRuleRequestUriConditionParameters", - isConstant: true, - serializedName: "@odata\\.type", - type: { - name: "String" - } - }, - operator: { - serializedName: "operator", - required: true, - type: { - name: "String" - } - }, - negateCondition: { - serializedName: "negateCondition", - type: { - name: "Boolean" - } - }, - matchValues: { - serializedName: "matchValues", + rules: { + serializedName: "rules", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "CustomRule" } } } - }, - transforms: { - serializedName: "transforms", + } + } + } +}; + +export const ManagedRuleSetList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedRuleSetList", + modelProperties: { + managedRuleSets: { + serializedName: "managedRuleSets", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "ManagedRuleSet" } } } @@ -4495,57 +4510,43 @@ export const RequestUriMatchConditionParameters: coreClient.CompositeMapper = { } }; -export const RequestHeaderMatchConditionParameters: coreClient.CompositeMapper = { +export const ManagedRuleSet: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RequestHeaderMatchConditionParameters", + className: "ManagedRuleSet", modelProperties: { - odataType: { - defaultValue: - "#Microsoft.Azure.Cdn.Models.DeliveryRuleRequestHeaderConditionParameters", - isConstant: true, - serializedName: "@odata\\.type", - type: { - name: "String" - } - }, - selector: { - serializedName: "selector", + ruleSetType: { + serializedName: "ruleSetType", + required: true, type: { name: "String" } }, - operator: { - serializedName: "operator", + ruleSetVersion: { + serializedName: "ruleSetVersion", required: true, type: { name: "String" } }, - negateCondition: { - serializedName: "negateCondition", - type: { - name: "Boolean" - } - }, - matchValues: { - serializedName: "matchValues", + anomalyScore: { + constraints: { + InclusiveMaximum: 20, + InclusiveMinimum: 0 + }, + serializedName: "anomalyScore", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Number" } }, - transforms: { - serializedName: "transforms", + ruleGroupOverrides: { + serializedName: "ruleGroupOverrides", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "ManagedRuleGroupOverride" } } } @@ -4554,51 +4555,26 @@ export const RequestHeaderMatchConditionParameters: coreClient.CompositeMapper = } }; -export const RequestBodyMatchConditionParameters: coreClient.CompositeMapper = { +export const ManagedRuleGroupOverride: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RequestBodyMatchConditionParameters", + className: "ManagedRuleGroupOverride", modelProperties: { - odataType: { - defaultValue: - "#Microsoft.Azure.Cdn.Models.DeliveryRuleRequestBodyConditionParameters", - isConstant: true, - serializedName: "@odata\\.type", - type: { - name: "String" - } - }, - operator: { - serializedName: "operator", + ruleGroupName: { + serializedName: "ruleGroupName", required: true, type: { name: "String" } }, - negateCondition: { - serializedName: "negateCondition", - type: { - name: "Boolean" - } - }, - matchValues: { - serializedName: "matchValues", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - transforms: { - serializedName: "transforms", + rules: { + serializedName: "rules", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "ManagedRuleOverride" } } } @@ -4607,184 +4583,200 @@ export const RequestBodyMatchConditionParameters: coreClient.CompositeMapper = { } }; -export const RequestSchemeMatchConditionParameters: coreClient.CompositeMapper = { +export const ManagedRuleOverride: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RequestSchemeMatchConditionParameters", + className: "ManagedRuleOverride", modelProperties: { - odataType: { - defaultValue: - "#Microsoft.Azure.Cdn.Models.DeliveryRuleRequestSchemeConditionParameters", - isConstant: true, - serializedName: "@odata\\.type", + ruleId: { + serializedName: "ruleId", + required: true, type: { name: "String" } }, - operator: { - defaultValue: "Equal", - isConstant: true, - serializedName: "operator", + enabledState: { + serializedName: "enabledState", type: { name: "String" } }, - negateCondition: { - serializedName: "negateCondition", - type: { - name: "Boolean" - } - }, - matchValues: { - serializedName: "matchValues", + action: { + serializedName: "action", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } } } } }; -export const UrlPathMatchConditionParameters: coreClient.CompositeMapper = { +export const CdnEndpoint: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UrlPathMatchConditionParameters", + className: "CdnEndpoint", modelProperties: { - odataType: { - defaultValue: - "#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlPathMatchConditionParameters", - isConstant: true, - serializedName: "@odata\\.type", - type: { - name: "String" - } - }, - operator: { - serializedName: "operator", - required: true, + id: { + serializedName: "id", type: { name: "String" } - }, - negateCondition: { - serializedName: "negateCondition", + } + } + } +}; + +export const CdnWebApplicationFirewallPolicyPatchParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CdnWebApplicationFirewallPolicyPatchParameters", + modelProperties: { + tags: { + serializedName: "tags", type: { - name: "Boolean" + name: "Dictionary", + value: { type: { name: "String" } } } - }, - matchValues: { - serializedName: "matchValues", + } + } + } +}; + +export const ManagedRuleSetDefinitionList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedRuleSetDefinitionList", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "ManagedRuleSetDefinition" } } } }, - transforms: { - serializedName: "transforms", + nextLink: { + serializedName: "nextLink", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } } } } }; -export const UrlFileExtensionMatchConditionParameters: coreClient.CompositeMapper = { +export const ManagedRuleGroupDefinition: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UrlFileExtensionMatchConditionParameters", + className: "ManagedRuleGroupDefinition", modelProperties: { - odataType: { - defaultValue: - "#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlFileExtensionMatchConditionParameters", - isConstant: true, - serializedName: "@odata\\.type", + ruleGroupName: { + serializedName: "ruleGroupName", + readOnly: true, type: { name: "String" } }, - operator: { - serializedName: "operator", - required: true, + description: { + serializedName: "description", + readOnly: true, type: { name: "String" } }, - negateCondition: { - serializedName: "negateCondition", - type: { - name: "Boolean" - } - }, - matchValues: { - serializedName: "matchValues", + rules: { + serializedName: "rules", + readOnly: true, type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "ManagedRuleDefinition" } } } + } + } + } +}; + +export const ManagedRuleDefinition: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedRuleDefinition", + modelProperties: { + ruleId: { + serializedName: "ruleId", + readOnly: true, + type: { + name: "String" + } }, - transforms: { - serializedName: "transforms", + description: { + serializedName: "description", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } } } } }; -export const UrlFileNameMatchConditionParameters: coreClient.CompositeMapper = { +export const Certificate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UrlFileNameMatchConditionParameters", + className: "Certificate", modelProperties: { - odataType: { - defaultValue: - "#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlFilenameConditionParameters", - isConstant: true, - serializedName: "@odata\\.type", + type: { + serializedName: "type", type: { name: "String" } }, - operator: { - serializedName: "operator", - required: true, + subject: { + serializedName: "subject", + readOnly: true, type: { name: "String" } }, - negateCondition: { - serializedName: "negateCondition", + expirationDate: { + serializedName: "expirationDate", + readOnly: true, type: { - name: "Boolean" + name: "String" + } + } + } + } +}; + +export const SecurityPolicyWebApplicationFirewallAssociation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SecurityPolicyWebApplicationFirewallAssociation", + modelProperties: { + domains: { + serializedName: "domains", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ActivatedResourceReference" + } + } } }, - matchValues: { - serializedName: "matchValues", + patternsToMatch: { + serializedName: "patternsToMatch", type: { name: "Sequence", element: { @@ -4793,9 +4785,18 @@ export const UrlFileNameMatchConditionParameters: coreClient.CompositeMapper = { } } } - }, - transforms: { - serializedName: "transforms", + } + } + } +}; + +export const CompressionSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CompressionSettings", + modelProperties: { + contentTypesToCompress: { + serializedName: "contentTypesToCompress", type: { name: "Sequence", element: { @@ -4804,69 +4805,89 @@ export const UrlFileNameMatchConditionParameters: coreClient.CompositeMapper = { } } } + }, + isCompressionEnabled: { + serializedName: "isCompressionEnabled", + type: { + name: "Boolean" + } } } } }; -export const HttpVersionMatchConditionParameters: coreClient.CompositeMapper = { +export const SharedPrivateLinkResourceProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "HttpVersionMatchConditionParameters", + className: "SharedPrivateLinkResourceProperties", modelProperties: { - odataType: { - defaultValue: - "#Microsoft.Azure.Cdn.Models.DeliveryRuleHttpVersionConditionParameters", - isConstant: true, - serializedName: "@odata\\.type", + privateLink: { + serializedName: "privateLink", + type: { + name: "Composite", + className: "ResourceReference" + } + }, + privateLinkLocation: { + serializedName: "privateLinkLocation", type: { name: "String" } }, - operator: { - serializedName: "operator", - required: true, + groupId: { + serializedName: "groupId", type: { name: "String" } }, - negateCondition: { - serializedName: "negateCondition", + requestMessage: { + serializedName: "requestMessage", type: { - name: "Boolean" + name: "String" } }, - matchValues: { - serializedName: "matchValues", + status: { + serializedName: "status", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Enum", + allowedValues: [ + "Pending", + "Approved", + "Rejected", + "Disconnected", + "Timeout" + ] } } } } }; -export const CookiesMatchConditionParameters: coreClient.CompositeMapper = { +export const ValidationToken: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CookiesMatchConditionParameters", + className: "ValidationToken", modelProperties: { - odataType: { - defaultValue: - "#Microsoft.Azure.Cdn.Models.DeliveryRuleCookiesConditionParameters", - isConstant: true, - serializedName: "@odata\\.type", + token: { + serializedName: "token", + readOnly: true, type: { name: "String" } - }, - selector: { - serializedName: "selector", + } + } + } +}; + +export const RemoteAddressMatchConditionParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RemoteAddressMatchConditionParameters", + modelProperties: { + typeName: { + defaultValue: "DeliveryRuleRemoteAddressConditionParameters", + isConstant: true, + serializedName: "typeName", type: { name: "String" } @@ -4910,16 +4931,15 @@ export const CookiesMatchConditionParameters: coreClient.CompositeMapper = { } }; -export const IsDeviceMatchConditionParameters: coreClient.CompositeMapper = { +export const RequestMethodMatchConditionParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "IsDeviceMatchConditionParameters", + className: "RequestMethodMatchConditionParameters", modelProperties: { - odataType: { - defaultValue: - "#Microsoft.Azure.Cdn.Models.DeliveryRuleIsDeviceConditionParameters", + typeName: { + defaultValue: "DeliveryRuleRequestMethodConditionParameters", isConstant: true, - serializedName: "@odata\\.type", + serializedName: "typeName", type: { name: "String" } @@ -4937,8 +4957,8 @@ export const IsDeviceMatchConditionParameters: coreClient.CompositeMapper = { name: "Boolean" } }, - matchValues: { - serializedName: "matchValues", + transforms: { + serializedName: "transforms", type: { name: "Sequence", element: { @@ -4948,8 +4968,8 @@ export const IsDeviceMatchConditionParameters: coreClient.CompositeMapper = { } } }, - transforms: { - serializedName: "transforms", + matchValues: { + serializedName: "matchValues", type: { name: "Sequence", element: { @@ -4963,89 +4983,108 @@ export const IsDeviceMatchConditionParameters: coreClient.CompositeMapper = { } }; -export const UrlRedirectActionParameters: coreClient.CompositeMapper = { +export const QueryStringMatchConditionParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UrlRedirectActionParameters", + className: "QueryStringMatchConditionParameters", modelProperties: { - odataType: { - defaultValue: - "#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlRedirectActionParameters", + typeName: { + defaultValue: "DeliveryRuleQueryStringConditionParameters", isConstant: true, - serializedName: "@odata\\.type", + serializedName: "typeName", type: { name: "String" } }, - redirectType: { - serializedName: "redirectType", + operator: { + serializedName: "operator", required: true, type: { name: "String" } }, - destinationProtocol: { - serializedName: "destinationProtocol", - type: { - name: "String" - } - }, - customPath: { - serializedName: "customPath", - type: { - name: "String" - } - }, - customHostname: { - serializedName: "customHostname", + negateCondition: { + serializedName: "negateCondition", type: { - name: "String" + name: "Boolean" } }, - customQueryString: { - serializedName: "customQueryString", + matchValues: { + serializedName: "matchValues", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - customFragment: { - serializedName: "customFragment", + transforms: { + serializedName: "transforms", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const UrlSigningActionParameters: coreClient.CompositeMapper = { +export const PostArgsMatchConditionParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UrlSigningActionParameters", + className: "PostArgsMatchConditionParameters", modelProperties: { - odataType: { - defaultValue: - "#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlSigningActionParameters", + typeName: { + defaultValue: "DeliveryRulePostArgsConditionParameters", isConstant: true, - serializedName: "@odata\\.type", + serializedName: "typeName", type: { name: "String" } }, - algorithm: { - serializedName: "algorithm", + selector: { + serializedName: "selector", type: { name: "String" } }, - parameterNameOverride: { - serializedName: "parameterNameOverride", + operator: { + serializedName: "operator", + required: true, + type: { + name: "String" + } + }, + negateCondition: { + serializedName: "negateCondition", + type: { + name: "Boolean" + } + }, + matchValues: { + serializedName: "matchValues", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "UrlSigningParamIdentifier" + name: "String" + } + } + } + }, + transforms: { + serializedName: "transforms", + type: { + name: "Sequence", + element: { + type: { + name: "String" } } } @@ -5054,338 +5093,474 @@ export const UrlSigningActionParameters: coreClient.CompositeMapper = { } }; -export const UrlSigningParamIdentifier: coreClient.CompositeMapper = { +export const RequestUriMatchConditionParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UrlSigningParamIdentifier", + className: "RequestUriMatchConditionParameters", modelProperties: { - paramIndicator: { - serializedName: "paramIndicator", - required: true, + typeName: { + defaultValue: "DeliveryRuleRequestUriConditionParameters", + isConstant: true, + serializedName: "typeName", type: { name: "String" } }, - paramName: { - serializedName: "paramName", + operator: { + serializedName: "operator", required: true, type: { name: "String" } - } - } - } -}; - -export const OriginGroupOverrideActionParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OriginGroupOverrideActionParameters", - modelProperties: { - odataType: { - defaultValue: - "#Microsoft.Azure.Cdn.Models.DeliveryRuleOriginGroupOverrideActionParameters", - isConstant: true, - serializedName: "@odata\\.type", + }, + negateCondition: { + serializedName: "negateCondition", type: { - name: "String" + name: "Boolean" } }, - originGroup: { - serializedName: "originGroup", + matchValues: { + serializedName: "matchValues", type: { - name: "Composite", - className: "ResourceReference" + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + transforms: { + serializedName: "transforms", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const UrlRewriteActionParameters: coreClient.CompositeMapper = { +export const RequestHeaderMatchConditionParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UrlRewriteActionParameters", + className: "RequestHeaderMatchConditionParameters", modelProperties: { - odataType: { - defaultValue: - "#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlRewriteActionParameters", + typeName: { + defaultValue: "DeliveryRuleRequestHeaderConditionParameters", isConstant: true, - serializedName: "@odata\\.type", + serializedName: "typeName", type: { name: "String" } }, - sourcePattern: { - serializedName: "sourcePattern", - required: true, + selector: { + serializedName: "selector", type: { name: "String" } }, - destination: { - serializedName: "destination", + operator: { + serializedName: "operator", required: true, type: { name: "String" } }, - preserveUnmatchedPath: { - serializedName: "preserveUnmatchedPath", + negateCondition: { + serializedName: "negateCondition", type: { name: "Boolean" } + }, + matchValues: { + serializedName: "matchValues", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + transforms: { + serializedName: "transforms", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } } } } }; -export const HeaderActionParameters: coreClient.CompositeMapper = { +export const RequestBodyMatchConditionParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "HeaderActionParameters", + className: "RequestBodyMatchConditionParameters", modelProperties: { - odataType: { - defaultValue: - "#Microsoft.Azure.Cdn.Models.DeliveryRuleHeaderActionParameters", + typeName: { + defaultValue: "DeliveryRuleRequestBodyConditionParameters", isConstant: true, - serializedName: "@odata\\.type", + serializedName: "typeName", type: { name: "String" } }, - headerAction: { - serializedName: "headerAction", + operator: { + serializedName: "operator", required: true, type: { name: "String" } }, - headerName: { - serializedName: "headerName", - required: true, + negateCondition: { + serializedName: "negateCondition", type: { - name: "String" + name: "Boolean" } }, - value: { - serializedName: "value", + matchValues: { + serializedName: "matchValues", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + transforms: { + serializedName: "transforms", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const CacheExpirationActionParameters: coreClient.CompositeMapper = { +export const RequestSchemeMatchConditionParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CacheExpirationActionParameters", + className: "RequestSchemeMatchConditionParameters", modelProperties: { - odataType: { - defaultValue: - "#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters", + typeName: { + defaultValue: "DeliveryRuleRequestSchemeConditionParameters", isConstant: true, - serializedName: "@odata\\.type", + serializedName: "typeName", type: { name: "String" } }, - cacheBehavior: { - serializedName: "cacheBehavior", - required: true, + operator: { + defaultValue: "Equal", + isConstant: true, + serializedName: "operator", type: { name: "String" } }, - cacheType: { - serializedName: "cacheType", - required: true, + negateCondition: { + serializedName: "negateCondition", type: { - name: "String" + name: "Boolean" } }, - cacheDuration: { - serializedName: "cacheDuration", - nullable: true, + transforms: { + serializedName: "transforms", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + matchValues: { + serializedName: "matchValues", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const CacheKeyQueryStringActionParameters: coreClient.CompositeMapper = { +export const UrlPathMatchConditionParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CacheKeyQueryStringActionParameters", + className: "UrlPathMatchConditionParameters", modelProperties: { - odataType: { - defaultValue: - "#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheKeyQueryStringBehaviorActionParameters", + typeName: { + defaultValue: "DeliveryRuleUrlPathMatchConditionParameters", isConstant: true, - serializedName: "@odata\\.type", + serializedName: "typeName", type: { name: "String" } }, - queryStringBehavior: { - serializedName: "queryStringBehavior", + operator: { + serializedName: "operator", required: true, type: { name: "String" } }, - queryParameters: { - serializedName: "queryParameters", - nullable: true, + negateCondition: { + serializedName: "negateCondition", type: { - name: "String" + name: "Boolean" + } + }, + matchValues: { + serializedName: "matchValues", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + transforms: { + serializedName: "transforms", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const CdnCertificateSourceParameters: coreClient.CompositeMapper = { +export const UrlFileExtensionMatchConditionParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CdnCertificateSourceParameters", + className: "UrlFileExtensionMatchConditionParameters", modelProperties: { - odataType: { - defaultValue: - "#Microsoft.Azure.Cdn.Models.CdnCertificateSourceParameters", + typeName: { + defaultValue: "DeliveryRuleUrlFileExtensionMatchConditionParameters", isConstant: true, - serializedName: "@odata\\.type", + serializedName: "typeName", type: { name: "String" } }, - certificateType: { - serializedName: "certificateType", + operator: { + serializedName: "operator", required: true, type: { name: "String" } + }, + negateCondition: { + serializedName: "negateCondition", + type: { + name: "Boolean" + } + }, + matchValues: { + serializedName: "matchValues", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + transforms: { + serializedName: "transforms", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } } } } }; -export const KeyVaultCertificateSourceParameters: coreClient.CompositeMapper = { +export const UrlFileNameMatchConditionParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "KeyVaultCertificateSourceParameters", + className: "UrlFileNameMatchConditionParameters", modelProperties: { - odataType: { - defaultValue: - "#Microsoft.Azure.Cdn.Models.KeyVaultCertificateSourceParameters", + typeName: { + defaultValue: "DeliveryRuleUrlFilenameConditionParameters", isConstant: true, - serializedName: "@odata\\.type", + serializedName: "typeName", type: { name: "String" } }, - subscriptionId: { - serializedName: "subscriptionId", + operator: { + serializedName: "operator", required: true, type: { name: "String" } }, - resourceGroupName: { - serializedName: "resourceGroupName", - required: true, + negateCondition: { + serializedName: "negateCondition", type: { - name: "String" + name: "Boolean" } }, - vaultName: { - serializedName: "vaultName", - required: true, + matchValues: { + serializedName: "matchValues", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + transforms: { + serializedName: "transforms", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const HttpVersionMatchConditionParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "HttpVersionMatchConditionParameters", + modelProperties: { + typeName: { + defaultValue: "DeliveryRuleHttpVersionConditionParameters", + isConstant: true, + serializedName: "typeName", type: { name: "String" } }, - secretName: { - serializedName: "secretName", + operator: { + serializedName: "operator", required: true, type: { name: "String" } }, - secretVersion: { - serializedName: "secretVersion", + negateCondition: { + serializedName: "negateCondition", type: { - name: "String" + name: "Boolean" } }, - updateRule: { - serializedName: "updateRule", - required: true, + matchValues: { + serializedName: "matchValues", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - deleteRule: { - serializedName: "deleteRule", - required: true, + transforms: { + serializedName: "transforms", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const Certificate: coreClient.CompositeMapper = { +export const CookiesMatchConditionParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Certificate", + className: "CookiesMatchConditionParameters", modelProperties: { - subject: { - serializedName: "subject", + typeName: { + defaultValue: "DeliveryRuleCookiesConditionParameters", + isConstant: true, + serializedName: "typeName", type: { name: "String" } }, - expirationDate: { - serializedName: "expirationDate", + selector: { + serializedName: "selector", type: { name: "String" } }, - thumbprint: { - serializedName: "thumbprint", + operator: { + serializedName: "operator", + required: true, type: { name: "String" } - } - } - } -}; - -export const SecurityPolicyWebApplicationFirewallAssociation: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SecurityPolicyWebApplicationFirewallAssociation", - modelProperties: { - domains: { - serializedName: "domains", + }, + negateCondition: { + serializedName: "negateCondition", + type: { + name: "Boolean" + } + }, + matchValues: { + serializedName: "matchValues", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "ResourceReference" + name: "String" } } } }, - patternsToMatch: { - serializedName: "patternsToMatch", + transforms: { + serializedName: "transforms", type: { name: "Sequence", element: { @@ -5399,13 +5574,34 @@ export const SecurityPolicyWebApplicationFirewallAssociation: coreClient.Composi } }; -export const CompressionSettings: coreClient.CompositeMapper = { +export const IsDeviceMatchConditionParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CompressionSettings", + className: "IsDeviceMatchConditionParameters", modelProperties: { - contentTypesToCompress: { - serializedName: "contentTypesToCompress", + typeName: { + defaultValue: "DeliveryRuleIsDeviceConditionParameters", + isConstant: true, + serializedName: "typeName", + type: { + name: "String" + } + }, + operator: { + serializedName: "operator", + required: true, + type: { + name: "String" + } + }, + negateCondition: { + serializedName: "negateCondition", + type: { + name: "Boolean" + } + }, + matchValues: { + serializedName: "matchValues", type: { name: "Sequence", element: { @@ -5414,141 +5610,126 @@ export const CompressionSettings: coreClient.CompositeMapper = { } } } - }, - isCompressionEnabled: { - serializedName: "isCompressionEnabled", - type: { - name: "Boolean" - } } } } }; -export const SharedPrivateLinkResourceProperties: coreClient.CompositeMapper = { +export const SocketAddrMatchConditionParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SharedPrivateLinkResourceProperties", + className: "SocketAddrMatchConditionParameters", modelProperties: { - privateLink: { - serializedName: "privateLink", - type: { - name: "Composite", - className: "ResourceReference" - } - }, - privateLinkLocation: { - serializedName: "privateLinkLocation", + typeName: { + defaultValue: "DeliveryRuleSocketAddrConditionParameters", + isConstant: true, + serializedName: "typeName", type: { name: "String" } }, - groupId: { - serializedName: "groupId", + operator: { + serializedName: "operator", + required: true, type: { name: "String" } }, - requestMessage: { - serializedName: "requestMessage", + negateCondition: { + serializedName: "negateCondition", type: { - name: "String" + name: "Boolean" } }, - status: { - serializedName: "status", + matchValues: { + serializedName: "matchValues", type: { - name: "Enum", - allowedValues: [ - "Pending", - "Approved", - "Rejected", - "Disconnected", - "Timeout" - ] + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const TrackedResource: coreClient.CompositeMapper = { +export const ClientPortMatchConditionParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TrackedResource", + className: "ClientPortMatchConditionParameters", modelProperties: { - ...Resource.type.modelProperties, - location: { - serializedName: "location", + typeName: { + defaultValue: "DeliveryRuleClientPortConditionParameters", + isConstant: true, + serializedName: "typeName", + type: { + name: "String" + } + }, + operator: { + serializedName: "operator", required: true, type: { name: "String" } }, - tags: { - serializedName: "tags", + negateCondition: { + serializedName: "negateCondition", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Boolean" + } + }, + matchValues: { + serializedName: "matchValues", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const ProxyResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ProxyResource", - modelProperties: { - ...Resource.type.modelProperties - } - } -}; - -export const ManagedRuleSetDefinition: coreClient.CompositeMapper = { +export const ServerPortMatchConditionParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedRuleSetDefinition", + className: "ServerPortMatchConditionParameters", modelProperties: { - ...Resource.type.modelProperties, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "Sku" - } - }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + typeName: { + defaultValue: "DeliveryRuleServerPortConditionParameters", + isConstant: true, + serializedName: "typeName", type: { name: "String" } }, - ruleSetType: { - serializedName: "properties.ruleSetType", - readOnly: true, + operator: { + serializedName: "operator", + required: true, type: { name: "String" } }, - ruleSetVersion: { - serializedName: "properties.ruleSetVersion", - readOnly: true, + negateCondition: { + serializedName: "negateCondition", type: { - name: "String" + name: "Boolean" } }, - ruleGroups: { - serializedName: "properties.ruleGroups", - readOnly: true, + matchValues: { + serializedName: "matchValues", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "ManagedRuleGroupDefinition" + name: "String" } } } @@ -5557,1163 +5738,2287 @@ export const ManagedRuleSetDefinition: coreClient.CompositeMapper = { } }; -export const EndpointProperties: coreClient.CompositeMapper = { +export const HostNameMatchConditionParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EndpointProperties", + className: "HostNameMatchConditionParameters", modelProperties: { - ...EndpointPropertiesUpdateParameters.type.modelProperties, - hostName: { - serializedName: "hostName", - readOnly: true, + typeName: { + defaultValue: "DeliveryRuleHostNameConditionParameters", + isConstant: true, + serializedName: "typeName", type: { name: "String" } }, - origins: { - serializedName: "origins", + operator: { + serializedName: "operator", required: true, + type: { + name: "String" + } + }, + negateCondition: { + serializedName: "negateCondition", + type: { + name: "Boolean" + } + }, + matchValues: { + serializedName: "matchValues", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "DeepCreatedOrigin" + name: "String" } } } }, - originGroups: { - serializedName: "originGroups", + transforms: { + serializedName: "transforms", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "DeepCreatedOriginGroup" + name: "String" } } } - }, - resourceState: { - serializedName: "resourceState", - readOnly: true, + } + } + } +}; + +export const SslProtocolMatchConditionParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SslProtocolMatchConditionParameters", + modelProperties: { + typeName: { + defaultValue: "DeliveryRuleSslProtocolConditionParameters", + isConstant: true, + serializedName: "typeName", type: { name: "String" } }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, + operator: { + serializedName: "operator", + required: true, type: { name: "String" } + }, + negateCondition: { + serializedName: "negateCondition", + type: { + name: "Boolean" + } + }, + matchValues: { + serializedName: "matchValues", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } } } } }; -export const DeliveryRuleRemoteAddressCondition: coreClient.CompositeMapper = { - serializedName: "RemoteAddress", +export const UrlRedirectActionParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DeliveryRuleRemoteAddressCondition", - uberParent: "DeliveryRuleCondition", - polymorphicDiscriminator: - DeliveryRuleCondition.type.polymorphicDiscriminator, + className: "UrlRedirectActionParameters", modelProperties: { - ...DeliveryRuleCondition.type.modelProperties, - parameters: { - serializedName: "parameters", + typeName: { + defaultValue: "DeliveryRuleUrlRedirectActionParameters", + isConstant: true, + serializedName: "typeName", type: { - name: "Composite", - className: "RemoteAddressMatchConditionParameters" + name: "String" + } + }, + redirectType: { + serializedName: "redirectType", + required: true, + type: { + name: "String" + } + }, + destinationProtocol: { + serializedName: "destinationProtocol", + type: { + name: "String" + } + }, + customPath: { + serializedName: "customPath", + type: { + name: "String" + } + }, + customHostname: { + serializedName: "customHostname", + type: { + name: "String" + } + }, + customQueryString: { + serializedName: "customQueryString", + type: { + name: "String" + } + }, + customFragment: { + serializedName: "customFragment", + type: { + name: "String" } } } } }; -export const DeliveryRuleRequestMethodCondition: coreClient.CompositeMapper = { - serializedName: "RequestMethod", +export const UrlSigningActionParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DeliveryRuleRequestMethodCondition", - uberParent: "DeliveryRuleCondition", - polymorphicDiscriminator: - DeliveryRuleCondition.type.polymorphicDiscriminator, + className: "UrlSigningActionParameters", modelProperties: { - ...DeliveryRuleCondition.type.modelProperties, - parameters: { - serializedName: "parameters", + typeName: { + defaultValue: "DeliveryRuleUrlSigningActionParameters", + isConstant: true, + serializedName: "typeName", type: { - name: "Composite", - className: "RequestMethodMatchConditionParameters" + name: "String" + } + }, + algorithm: { + serializedName: "algorithm", + type: { + name: "String" + } + }, + parameterNameOverride: { + serializedName: "parameterNameOverride", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "UrlSigningParamIdentifier" + } + } } } } } }; -export const DeliveryRuleQueryStringCondition: coreClient.CompositeMapper = { - serializedName: "QueryString", +export const UrlSigningParamIdentifier: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DeliveryRuleQueryStringCondition", - uberParent: "DeliveryRuleCondition", - polymorphicDiscriminator: - DeliveryRuleCondition.type.polymorphicDiscriminator, + className: "UrlSigningParamIdentifier", modelProperties: { - ...DeliveryRuleCondition.type.modelProperties, - parameters: { - serializedName: "parameters", + paramIndicator: { + serializedName: "paramIndicator", + required: true, type: { - name: "Composite", - className: "QueryStringMatchConditionParameters" + name: "String" + } + }, + paramName: { + serializedName: "paramName", + required: true, + type: { + name: "String" } } } } }; -export const DeliveryRulePostArgsCondition: coreClient.CompositeMapper = { - serializedName: "PostArgs", +export const OriginGroupOverrideActionParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DeliveryRulePostArgsCondition", - uberParent: "DeliveryRuleCondition", - polymorphicDiscriminator: - DeliveryRuleCondition.type.polymorphicDiscriminator, + className: "OriginGroupOverrideActionParameters", modelProperties: { - ...DeliveryRuleCondition.type.modelProperties, - parameters: { - serializedName: "parameters", + typeName: { + defaultValue: "DeliveryRuleOriginGroupOverrideActionParameters", + isConstant: true, + serializedName: "typeName", + type: { + name: "String" + } + }, + originGroup: { + serializedName: "originGroup", type: { name: "Composite", - className: "PostArgsMatchConditionParameters" + className: "ResourceReference" } } } } }; -export const DeliveryRuleRequestUriCondition: coreClient.CompositeMapper = { - serializedName: "RequestUri", +export const UrlRewriteActionParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DeliveryRuleRequestUriCondition", - uberParent: "DeliveryRuleCondition", - polymorphicDiscriminator: - DeliveryRuleCondition.type.polymorphicDiscriminator, + className: "UrlRewriteActionParameters", modelProperties: { - ...DeliveryRuleCondition.type.modelProperties, - parameters: { - serializedName: "parameters", + typeName: { + defaultValue: "DeliveryRuleUrlRewriteActionParameters", + isConstant: true, + serializedName: "typeName", type: { - name: "Composite", - className: "RequestUriMatchConditionParameters" + name: "String" + } + }, + sourcePattern: { + serializedName: "sourcePattern", + required: true, + type: { + name: "String" + } + }, + destination: { + serializedName: "destination", + required: true, + type: { + name: "String" + } + }, + preserveUnmatchedPath: { + serializedName: "preserveUnmatchedPath", + type: { + name: "Boolean" } } } } }; -export const DeliveryRuleRequestHeaderCondition: coreClient.CompositeMapper = { - serializedName: "RequestHeader", +export const HeaderActionParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DeliveryRuleRequestHeaderCondition", - uberParent: "DeliveryRuleCondition", - polymorphicDiscriminator: - DeliveryRuleCondition.type.polymorphicDiscriminator, + className: "HeaderActionParameters", modelProperties: { - ...DeliveryRuleCondition.type.modelProperties, - parameters: { - serializedName: "parameters", + typeName: { + defaultValue: "DeliveryRuleHeaderActionParameters", + isConstant: true, + serializedName: "typeName", type: { - name: "Composite", - className: "RequestHeaderMatchConditionParameters" + name: "String" + } + }, + headerAction: { + serializedName: "headerAction", + required: true, + type: { + name: "String" + } + }, + headerName: { + serializedName: "headerName", + required: true, + type: { + name: "String" + } + }, + value: { + serializedName: "value", + type: { + name: "String" } } } } }; -export const DeliveryRuleRequestBodyCondition: coreClient.CompositeMapper = { - serializedName: "RequestBody", +export const CacheExpirationActionParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DeliveryRuleRequestBodyCondition", - uberParent: "DeliveryRuleCondition", - polymorphicDiscriminator: - DeliveryRuleCondition.type.polymorphicDiscriminator, + className: "CacheExpirationActionParameters", modelProperties: { - ...DeliveryRuleCondition.type.modelProperties, - parameters: { - serializedName: "parameters", + typeName: { + defaultValue: "DeliveryRuleCacheExpirationActionParameters", + isConstant: true, + serializedName: "typeName", type: { - name: "Composite", - className: "RequestBodyMatchConditionParameters" + name: "String" + } + }, + cacheBehavior: { + serializedName: "cacheBehavior", + required: true, + type: { + name: "String" + } + }, + cacheType: { + serializedName: "cacheType", + required: true, + type: { + name: "String" + } + }, + cacheDuration: { + serializedName: "cacheDuration", + nullable: true, + type: { + name: "String" } } } } }; -export const DeliveryRuleRequestSchemeCondition: coreClient.CompositeMapper = { - serializedName: "RequestScheme", +export const CacheKeyQueryStringActionParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DeliveryRuleRequestSchemeCondition", - uberParent: "DeliveryRuleCondition", - polymorphicDiscriminator: - DeliveryRuleCondition.type.polymorphicDiscriminator, + className: "CacheKeyQueryStringActionParameters", modelProperties: { - ...DeliveryRuleCondition.type.modelProperties, - parameters: { - serializedName: "parameters", + typeName: { + defaultValue: "DeliveryRuleCacheKeyQueryStringBehaviorActionParameters", + isConstant: true, + serializedName: "typeName", type: { - name: "Composite", - className: "RequestSchemeMatchConditionParameters" + name: "String" + } + }, + queryStringBehavior: { + serializedName: "queryStringBehavior", + required: true, + type: { + name: "String" + } + }, + queryParameters: { + serializedName: "queryParameters", + nullable: true, + type: { + name: "String" } } } } }; -export const DeliveryRuleUrlPathCondition: coreClient.CompositeMapper = { - serializedName: "UrlPath", +export const RouteConfigurationOverrideActionParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DeliveryRuleUrlPathCondition", - uberParent: "DeliveryRuleCondition", - polymorphicDiscriminator: - DeliveryRuleCondition.type.polymorphicDiscriminator, + className: "RouteConfigurationOverrideActionParameters", modelProperties: { - ...DeliveryRuleCondition.type.modelProperties, - parameters: { - serializedName: "parameters", + typeName: { + defaultValue: "DeliveryRuleRouteConfigurationOverrideActionParameters", + isConstant: true, + serializedName: "typeName", + type: { + name: "String" + } + }, + originGroupOverride: { + serializedName: "originGroupOverride", type: { name: "Composite", - className: "UrlPathMatchConditionParameters" + className: "OriginGroupOverride" + } + }, + cacheConfiguration: { + serializedName: "cacheConfiguration", + type: { + name: "Composite", + className: "CacheConfiguration" } } } } }; -export const DeliveryRuleUrlFileExtensionCondition: coreClient.CompositeMapper = { - serializedName: "UrlFileExtension", +export const OriginGroupOverride: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DeliveryRuleUrlFileExtensionCondition", - uberParent: "DeliveryRuleCondition", - polymorphicDiscriminator: - DeliveryRuleCondition.type.polymorphicDiscriminator, + className: "OriginGroupOverride", modelProperties: { - ...DeliveryRuleCondition.type.modelProperties, - parameters: { - serializedName: "parameters", + originGroup: { + serializedName: "originGroup", type: { name: "Composite", - className: "UrlFileExtensionMatchConditionParameters" + className: "ResourceReference" + } + }, + forwardingProtocol: { + serializedName: "forwardingProtocol", + type: { + name: "String" } } } } }; -export const DeliveryRuleUrlFileNameCondition: coreClient.CompositeMapper = { - serializedName: "UrlFileName", +export const CacheConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DeliveryRuleUrlFileNameCondition", - uberParent: "DeliveryRuleCondition", - polymorphicDiscriminator: - DeliveryRuleCondition.type.polymorphicDiscriminator, + className: "CacheConfiguration", modelProperties: { - ...DeliveryRuleCondition.type.modelProperties, - parameters: { - serializedName: "parameters", + queryStringCachingBehavior: { + serializedName: "queryStringCachingBehavior", type: { - name: "Composite", - className: "UrlFileNameMatchConditionParameters" + name: "String" + } + }, + queryParameters: { + serializedName: "queryParameters", + type: { + name: "String" + } + }, + isCompressionEnabled: { + serializedName: "isCompressionEnabled", + type: { + name: "String" + } + }, + cacheBehavior: { + serializedName: "cacheBehavior", + type: { + name: "String" + } + }, + cacheDuration: { + serializedName: "cacheDuration", + type: { + name: "TimeSpan" } } } } }; -export const DeliveryRuleHttpVersionCondition: coreClient.CompositeMapper = { - serializedName: "HttpVersion", +export const CdnCertificateSourceParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DeliveryRuleHttpVersionCondition", - uberParent: "DeliveryRuleCondition", - polymorphicDiscriminator: - DeliveryRuleCondition.type.polymorphicDiscriminator, + className: "CdnCertificateSourceParameters", modelProperties: { - ...DeliveryRuleCondition.type.modelProperties, - parameters: { - serializedName: "parameters", + typeName: { + defaultValue: "CdnCertificateSourceParameters", + isConstant: true, + serializedName: "typeName", type: { - name: "Composite", - className: "HttpVersionMatchConditionParameters" + name: "String" + } + }, + certificateType: { + serializedName: "certificateType", + required: true, + type: { + name: "String" } } } } }; -export const DeliveryRuleCookiesCondition: coreClient.CompositeMapper = { - serializedName: "Cookies", +export const KeyVaultCertificateSourceParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DeliveryRuleCookiesCondition", - uberParent: "DeliveryRuleCondition", - polymorphicDiscriminator: - DeliveryRuleCondition.type.polymorphicDiscriminator, + className: "KeyVaultCertificateSourceParameters", modelProperties: { - ...DeliveryRuleCondition.type.modelProperties, - parameters: { - serializedName: "parameters", + typeName: { + defaultValue: "KeyVaultCertificateSourceParameters", + isConstant: true, + serializedName: "typeName", type: { - name: "Composite", - className: "CookiesMatchConditionParameters" + name: "String" + } + }, + subscriptionId: { + serializedName: "subscriptionId", + required: true, + type: { + name: "String" + } + }, + resourceGroupName: { + serializedName: "resourceGroupName", + required: true, + type: { + name: "String" + } + }, + vaultName: { + serializedName: "vaultName", + required: true, + type: { + name: "String" + } + }, + secretName: { + serializedName: "secretName", + required: true, + type: { + name: "String" + } + }, + secretVersion: { + serializedName: "secretVersion", + type: { + name: "String" + } + }, + updateRule: { + serializedName: "updateRule", + required: true, + type: { + name: "String" + } + }, + deleteRule: { + serializedName: "deleteRule", + required: true, + type: { + name: "String" } } } } }; -export const DeliveryRuleIsDeviceCondition: coreClient.CompositeMapper = { - serializedName: "IsDevice", +export const AFDDomainProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DeliveryRuleIsDeviceCondition", - uberParent: "DeliveryRuleCondition", - polymorphicDiscriminator: - DeliveryRuleCondition.type.polymorphicDiscriminator, + className: "AFDDomainProperties", modelProperties: { - ...DeliveryRuleCondition.type.modelProperties, - parameters: { - serializedName: "parameters", + ...AFDDomainUpdatePropertiesParameters.type.modelProperties, + ...AFDStateProperties.type.modelProperties, + domainValidationState: { + serializedName: "domainValidationState", + readOnly: true, + type: { + name: "String" + } + }, + hostName: { + serializedName: "hostName", + required: true, + type: { + name: "String" + } + }, + validationProperties: { + serializedName: "validationProperties", type: { name: "Composite", - className: "IsDeviceMatchConditionParameters" + className: "DomainValidationProperties" } } } } }; -export const UrlRedirectAction: coreClient.CompositeMapper = { - serializedName: "UrlRedirect", +export const AFDEndpointProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UrlRedirectAction", - uberParent: "DeliveryRuleActionAutoGenerated", - polymorphicDiscriminator: - DeliveryRuleActionAutoGenerated.type.polymorphicDiscriminator, + className: "AFDEndpointProperties", modelProperties: { - ...DeliveryRuleActionAutoGenerated.type.modelProperties, - parameters: { - serializedName: "parameters", + ...AFDEndpointPropertiesUpdateParameters.type.modelProperties, + ...AFDStateProperties.type.modelProperties, + hostName: { + serializedName: "hostName", + readOnly: true, type: { - name: "Composite", - className: "UrlRedirectActionParameters" + name: "String" } } } } }; -export const UrlSigningAction: coreClient.CompositeMapper = { - serializedName: "UrlSigning", +export const AFDOriginGroupProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UrlSigningAction", - uberParent: "DeliveryRuleActionAutoGenerated", - polymorphicDiscriminator: - DeliveryRuleActionAutoGenerated.type.polymorphicDiscriminator, + className: "AFDOriginGroupProperties", modelProperties: { - ...DeliveryRuleActionAutoGenerated.type.modelProperties, - parameters: { - serializedName: "parameters", - type: { - name: "Composite", - className: "UrlSigningActionParameters" - } - } + ...AFDOriginGroupUpdatePropertiesParameters.type.modelProperties, + ...AFDStateProperties.type.modelProperties } } }; -export const OriginGroupOverrideAction: coreClient.CompositeMapper = { - serializedName: "OriginGroupOverride", +export const AFDOriginProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OriginGroupOverrideAction", - uberParent: "DeliveryRuleActionAutoGenerated", - polymorphicDiscriminator: - DeliveryRuleActionAutoGenerated.type.polymorphicDiscriminator, + className: "AFDOriginProperties", modelProperties: { - ...DeliveryRuleActionAutoGenerated.type.modelProperties, - parameters: { - serializedName: "parameters", - type: { - name: "Composite", - className: "OriginGroupOverrideActionParameters" - } - } + ...AFDOriginUpdatePropertiesParameters.type.modelProperties, + ...AFDStateProperties.type.modelProperties } } }; -export const UrlRewriteAction: coreClient.CompositeMapper = { - serializedName: "UrlRewrite", +export const RouteProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UrlRewriteAction", - uberParent: "DeliveryRuleActionAutoGenerated", - polymorphicDiscriminator: - DeliveryRuleActionAutoGenerated.type.polymorphicDiscriminator, + className: "RouteProperties", modelProperties: { - ...DeliveryRuleActionAutoGenerated.type.modelProperties, - parameters: { - serializedName: "parameters", - type: { - name: "Composite", - className: "UrlRewriteActionParameters" - } - } + ...RouteUpdatePropertiesParameters.type.modelProperties, + ...AFDStateProperties.type.modelProperties } } }; -export const DeliveryRuleRequestHeaderAction: coreClient.CompositeMapper = { - serializedName: "ModifyRequestHeader", +export const RuleSetProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DeliveryRuleRequestHeaderAction", - uberParent: "DeliveryRuleActionAutoGenerated", - polymorphicDiscriminator: - DeliveryRuleActionAutoGenerated.type.polymorphicDiscriminator, + className: "RuleSetProperties", modelProperties: { - ...DeliveryRuleActionAutoGenerated.type.modelProperties, - parameters: { - serializedName: "parameters", + ...AFDStateProperties.type.modelProperties, + profileName: { + serializedName: "profileName", + readOnly: true, type: { - name: "Composite", - className: "HeaderActionParameters" + name: "String" } } } } }; -export const DeliveryRuleResponseHeaderAction: coreClient.CompositeMapper = { - serializedName: "ModifyResponseHeader", +export const RuleProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DeliveryRuleResponseHeaderAction", - uberParent: "DeliveryRuleActionAutoGenerated", - polymorphicDiscriminator: - DeliveryRuleActionAutoGenerated.type.polymorphicDiscriminator, + className: "RuleProperties", modelProperties: { - ...DeliveryRuleActionAutoGenerated.type.modelProperties, - parameters: { - serializedName: "parameters", - type: { - name: "Composite", - className: "HeaderActionParameters" - } - } + ...RuleUpdatePropertiesParameters.type.modelProperties, + ...AFDStateProperties.type.modelProperties } } }; -export const DeliveryRuleCacheExpirationAction: coreClient.CompositeMapper = { - serializedName: "CacheExpiration", +export const SecurityPolicyProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DeliveryRuleCacheExpirationAction", - uberParent: "DeliveryRuleActionAutoGenerated", - polymorphicDiscriminator: - DeliveryRuleActionAutoGenerated.type.polymorphicDiscriminator, + className: "SecurityPolicyProperties", modelProperties: { - ...DeliveryRuleActionAutoGenerated.type.modelProperties, + ...AFDStateProperties.type.modelProperties, + profileName: { + serializedName: "profileName", + readOnly: true, + type: { + name: "String" + } + }, parameters: { serializedName: "parameters", type: { name: "Composite", - className: "CacheExpirationActionParameters" + className: "SecurityPolicyParameters" } } } } }; -export const DeliveryRuleCacheKeyQueryStringAction: coreClient.CompositeMapper = { - serializedName: "CacheKeyQueryString", +export const SecretProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DeliveryRuleCacheKeyQueryStringAction", - uberParent: "DeliveryRuleActionAutoGenerated", - polymorphicDiscriminator: - DeliveryRuleActionAutoGenerated.type.polymorphicDiscriminator, + className: "SecretProperties", modelProperties: { - ...DeliveryRuleActionAutoGenerated.type.modelProperties, + ...AFDStateProperties.type.modelProperties, + profileName: { + serializedName: "profileName", + readOnly: true, + type: { + name: "String" + } + }, parameters: { serializedName: "parameters", type: { name: "Composite", - className: "CacheKeyQueryStringActionParameters" + className: "SecretParameters" } } } } }; -export const OriginProperties: coreClient.CompositeMapper = { +export const ProxyResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OriginProperties", + className: "ProxyResource", modelProperties: { - ...OriginUpdatePropertiesParameters.type.modelProperties, - resourceState: { - serializedName: "resourceState", - readOnly: true, - type: { - name: "String" - } - }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, + ...Resource.type.modelProperties + } + } +}; + +export const TrackedResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TrackedResource", + modelProperties: { + ...Resource.type.modelProperties, + location: { + serializedName: "location", + required: true, type: { name: "String" } }, - privateEndpointStatus: { - serializedName: "privateEndpointStatus", - readOnly: true, + tags: { + serializedName: "tags", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } } } } }; -export const OriginGroupProperties: coreClient.CompositeMapper = { +export const ManagedRuleSetDefinition: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OriginGroupProperties", + className: "ManagedRuleSetDefinition", modelProperties: { - ...OriginGroupUpdatePropertiesParameters.type.modelProperties, - resourceState: { - serializedName: "resourceState", + ...Resource.type.modelProperties, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, type: { name: "String" } }, - provisioningState: { - serializedName: "provisioningState", + ruleSetType: { + serializedName: "properties.ruleSetType", + readOnly: true, + type: { + name: "String" + } + }, + ruleSetVersion: { + serializedName: "properties.ruleSetVersion", readOnly: true, type: { name: "String" } + }, + ruleGroups: { + serializedName: "properties.ruleGroups", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedRuleGroupDefinition" + } + } + } } } } }; -export const CdnManagedHttpsParameters: coreClient.CompositeMapper = { - serializedName: "Cdn", +export const DeliveryRuleRemoteAddressCondition: coreClient.CompositeMapper = { + serializedName: "RemoteAddress", type: { name: "Composite", - className: "CdnManagedHttpsParameters", - uberParent: "CustomDomainHttpsParameters", + className: "DeliveryRuleRemoteAddressCondition", + uberParent: "DeliveryRuleCondition", polymorphicDiscriminator: - CustomDomainHttpsParameters.type.polymorphicDiscriminator, + DeliveryRuleCondition.type.polymorphicDiscriminator, modelProperties: { - ...CustomDomainHttpsParameters.type.modelProperties, - certificateSourceParameters: { - serializedName: "certificateSourceParameters", + ...DeliveryRuleCondition.type.modelProperties, + parameters: { + serializedName: "parameters", type: { name: "Composite", - className: "CdnCertificateSourceParameters" + className: "RemoteAddressMatchConditionParameters" } } } } }; -export const UserManagedHttpsParameters: coreClient.CompositeMapper = { - serializedName: "AzureKeyVault", +export const DeliveryRuleRequestMethodCondition: coreClient.CompositeMapper = { + serializedName: "RequestMethod", type: { name: "Composite", - className: "UserManagedHttpsParameters", - uberParent: "CustomDomainHttpsParameters", + className: "DeliveryRuleRequestMethodCondition", + uberParent: "DeliveryRuleCondition", polymorphicDiscriminator: - CustomDomainHttpsParameters.type.polymorphicDiscriminator, + DeliveryRuleCondition.type.polymorphicDiscriminator, modelProperties: { - ...CustomDomainHttpsParameters.type.modelProperties, - certificateSourceParameters: { - serializedName: "certificateSourceParameters", + ...DeliveryRuleCondition.type.modelProperties, + parameters: { + serializedName: "parameters", type: { name: "Composite", - className: "KeyVaultCertificateSourceParameters" + className: "RequestMethodMatchConditionParameters" } } } } }; -export const AFDDomainProperties: coreClient.CompositeMapper = { +export const DeliveryRuleQueryStringCondition: coreClient.CompositeMapper = { + serializedName: "QueryString", type: { name: "Composite", - className: "AFDDomainProperties", + className: "DeliveryRuleQueryStringCondition", + uberParent: "DeliveryRuleCondition", + polymorphicDiscriminator: + DeliveryRuleCondition.type.polymorphicDiscriminator, modelProperties: { - ...AFDDomainUpdatePropertiesParameters.type.modelProperties, - ...AFDStateProperties.type.modelProperties, - domainValidationState: { - serializedName: "domainValidationState", - readOnly: true, - type: { - name: "String" - } - }, - hostName: { - serializedName: "hostName", - required: true, - type: { - name: "String" - } - }, - validationProperties: { - serializedName: "validationProperties", + ...DeliveryRuleCondition.type.modelProperties, + parameters: { + serializedName: "parameters", type: { name: "Composite", - className: "DomainValidationProperties" + className: "QueryStringMatchConditionParameters" } } } } }; -export const AFDEndpointProperties: coreClient.CompositeMapper = { +export const DeliveryRulePostArgsCondition: coreClient.CompositeMapper = { + serializedName: "PostArgs", type: { name: "Composite", - className: "AFDEndpointProperties", + className: "DeliveryRulePostArgsCondition", + uberParent: "DeliveryRuleCondition", + polymorphicDiscriminator: + DeliveryRuleCondition.type.polymorphicDiscriminator, modelProperties: { - ...AFDEndpointPropertiesUpdateParameters.type.modelProperties, - ...AFDStateProperties.type.modelProperties, - hostName: { - serializedName: "hostName", - readOnly: true, + ...DeliveryRuleCondition.type.modelProperties, + parameters: { + serializedName: "parameters", type: { - name: "String" + name: "Composite", + className: "PostArgsMatchConditionParameters" } } } } }; -export const AFDOriginGroupProperties: coreClient.CompositeMapper = { +export const DeliveryRuleRequestUriCondition: coreClient.CompositeMapper = { + serializedName: "RequestUri", type: { name: "Composite", - className: "AFDOriginGroupProperties", + className: "DeliveryRuleRequestUriCondition", + uberParent: "DeliveryRuleCondition", + polymorphicDiscriminator: + DeliveryRuleCondition.type.polymorphicDiscriminator, modelProperties: { - ...AFDOriginGroupUpdatePropertiesParameters.type.modelProperties, - ...AFDStateProperties.type.modelProperties + ...DeliveryRuleCondition.type.modelProperties, + parameters: { + serializedName: "parameters", + type: { + name: "Composite", + className: "RequestUriMatchConditionParameters" + } + } } } }; -export const AFDOriginProperties: coreClient.CompositeMapper = { +export const DeliveryRuleRequestHeaderCondition: coreClient.CompositeMapper = { + serializedName: "RequestHeader", type: { name: "Composite", - className: "AFDOriginProperties", + className: "DeliveryRuleRequestHeaderCondition", + uberParent: "DeliveryRuleCondition", + polymorphicDiscriminator: + DeliveryRuleCondition.type.polymorphicDiscriminator, modelProperties: { - ...AFDOriginUpdatePropertiesParameters.type.modelProperties, - ...AFDStateProperties.type.modelProperties + ...DeliveryRuleCondition.type.modelProperties, + parameters: { + serializedName: "parameters", + type: { + name: "Composite", + className: "RequestHeaderMatchConditionParameters" + } + } } } }; -export const RouteProperties: coreClient.CompositeMapper = { +export const DeliveryRuleRequestBodyCondition: coreClient.CompositeMapper = { + serializedName: "RequestBody", type: { name: "Composite", - className: "RouteProperties", + className: "DeliveryRuleRequestBodyCondition", + uberParent: "DeliveryRuleCondition", + polymorphicDiscriminator: + DeliveryRuleCondition.type.polymorphicDiscriminator, modelProperties: { - ...RouteUpdatePropertiesParameters.type.modelProperties, - ...AFDStateProperties.type.modelProperties + ...DeliveryRuleCondition.type.modelProperties, + parameters: { + serializedName: "parameters", + type: { + name: "Composite", + className: "RequestBodyMatchConditionParameters" + } + } } } }; -export const RuleSetProperties: coreClient.CompositeMapper = { +export const DeliveryRuleRequestSchemeCondition: coreClient.CompositeMapper = { + serializedName: "RequestScheme", type: { name: "Composite", - className: "RuleSetProperties", + className: "DeliveryRuleRequestSchemeCondition", + uberParent: "DeliveryRuleCondition", + polymorphicDiscriminator: + DeliveryRuleCondition.type.polymorphicDiscriminator, modelProperties: { - ...AFDStateProperties.type.modelProperties + ...DeliveryRuleCondition.type.modelProperties, + parameters: { + serializedName: "parameters", + type: { + name: "Composite", + className: "RequestSchemeMatchConditionParameters" + } + } } } }; -export const RuleProperties: coreClient.CompositeMapper = { +export const DeliveryRuleUrlPathCondition: coreClient.CompositeMapper = { + serializedName: "UrlPath", type: { name: "Composite", - className: "RuleProperties", + className: "DeliveryRuleUrlPathCondition", + uberParent: "DeliveryRuleCondition", + polymorphicDiscriminator: + DeliveryRuleCondition.type.polymorphicDiscriminator, modelProperties: { - ...RuleUpdatePropertiesParameters.type.modelProperties, - ...AFDStateProperties.type.modelProperties + ...DeliveryRuleCondition.type.modelProperties, + parameters: { + serializedName: "parameters", + type: { + name: "Composite", + className: "UrlPathMatchConditionParameters" + } + } } } }; -export const SecurityPolicyProperties: coreClient.CompositeMapper = { +export const DeliveryRuleUrlFileExtensionCondition: coreClient.CompositeMapper = { + serializedName: "UrlFileExtension", type: { name: "Composite", - className: "SecurityPolicyProperties", + className: "DeliveryRuleUrlFileExtensionCondition", + uberParent: "DeliveryRuleCondition", + polymorphicDiscriminator: + DeliveryRuleCondition.type.polymorphicDiscriminator, modelProperties: { - ...AFDStateProperties.type.modelProperties, + ...DeliveryRuleCondition.type.modelProperties, parameters: { serializedName: "parameters", type: { name: "Composite", - className: "SecurityPolicyParameters" + className: "UrlFileExtensionMatchConditionParameters" } } } } }; -export const SecretProperties: coreClient.CompositeMapper = { +export const DeliveryRuleUrlFileNameCondition: coreClient.CompositeMapper = { + serializedName: "UrlFileName", type: { name: "Composite", - className: "SecretProperties", + className: "DeliveryRuleUrlFileNameCondition", + uberParent: "DeliveryRuleCondition", + polymorphicDiscriminator: + DeliveryRuleCondition.type.polymorphicDiscriminator, + modelProperties: { + ...DeliveryRuleCondition.type.modelProperties, + parameters: { + serializedName: "parameters", + type: { + name: "Composite", + className: "UrlFileNameMatchConditionParameters" + } + } + } + } +}; + +export const DeliveryRuleHttpVersionCondition: coreClient.CompositeMapper = { + serializedName: "HttpVersion", + type: { + name: "Composite", + className: "DeliveryRuleHttpVersionCondition", + uberParent: "DeliveryRuleCondition", + polymorphicDiscriminator: + DeliveryRuleCondition.type.polymorphicDiscriminator, + modelProperties: { + ...DeliveryRuleCondition.type.modelProperties, + parameters: { + serializedName: "parameters", + type: { + name: "Composite", + className: "HttpVersionMatchConditionParameters" + } + } + } + } +}; + +export const DeliveryRuleCookiesCondition: coreClient.CompositeMapper = { + serializedName: "Cookies", + type: { + name: "Composite", + className: "DeliveryRuleCookiesCondition", + uberParent: "DeliveryRuleCondition", + polymorphicDiscriminator: + DeliveryRuleCondition.type.polymorphicDiscriminator, + modelProperties: { + ...DeliveryRuleCondition.type.modelProperties, + parameters: { + serializedName: "parameters", + type: { + name: "Composite", + className: "CookiesMatchConditionParameters" + } + } + } + } +}; + +export const DeliveryRuleIsDeviceCondition: coreClient.CompositeMapper = { + serializedName: "IsDevice", + type: { + name: "Composite", + className: "DeliveryRuleIsDeviceCondition", + uberParent: "DeliveryRuleCondition", + polymorphicDiscriminator: + DeliveryRuleCondition.type.polymorphicDiscriminator, + modelProperties: { + ...DeliveryRuleCondition.type.modelProperties, + parameters: { + serializedName: "parameters", + type: { + name: "Composite", + className: "IsDeviceMatchConditionParameters" + } + } + } + } +}; + +export const DeliveryRuleSocketAddrCondition: coreClient.CompositeMapper = { + serializedName: "SocketAddr", + type: { + name: "Composite", + className: "DeliveryRuleSocketAddrCondition", + uberParent: "DeliveryRuleCondition", + polymorphicDiscriminator: + DeliveryRuleCondition.type.polymorphicDiscriminator, + modelProperties: { + ...DeliveryRuleCondition.type.modelProperties, + parameters: { + serializedName: "parameters", + type: { + name: "Composite", + className: "SocketAddrMatchConditionParameters" + } + } + } + } +}; + +export const DeliveryRuleClientPortCondition: coreClient.CompositeMapper = { + serializedName: "ClientPort", + type: { + name: "Composite", + className: "DeliveryRuleClientPortCondition", + uberParent: "DeliveryRuleCondition", + polymorphicDiscriminator: + DeliveryRuleCondition.type.polymorphicDiscriminator, + modelProperties: { + ...DeliveryRuleCondition.type.modelProperties, + parameters: { + serializedName: "parameters", + type: { + name: "Composite", + className: "ClientPortMatchConditionParameters" + } + } + } + } +}; + +export const DeliveryRuleServerPortCondition: coreClient.CompositeMapper = { + serializedName: "ServerPort", + type: { + name: "Composite", + className: "DeliveryRuleServerPortCondition", + uberParent: "DeliveryRuleCondition", + polymorphicDiscriminator: + DeliveryRuleCondition.type.polymorphicDiscriminator, + modelProperties: { + ...DeliveryRuleCondition.type.modelProperties, + parameters: { + serializedName: "parameters", + type: { + name: "Composite", + className: "ServerPortMatchConditionParameters" + } + } + } + } +}; + +export const DeliveryRuleHostNameCondition: coreClient.CompositeMapper = { + serializedName: "HostName", + type: { + name: "Composite", + className: "DeliveryRuleHostNameCondition", + uberParent: "DeliveryRuleCondition", + polymorphicDiscriminator: + DeliveryRuleCondition.type.polymorphicDiscriminator, + modelProperties: { + ...DeliveryRuleCondition.type.modelProperties, + parameters: { + serializedName: "parameters", + type: { + name: "Composite", + className: "HostNameMatchConditionParameters" + } + } + } + } +}; + +export const DeliveryRuleSslProtocolCondition: coreClient.CompositeMapper = { + serializedName: "SslProtocol", + type: { + name: "Composite", + className: "DeliveryRuleSslProtocolCondition", + uberParent: "DeliveryRuleCondition", + polymorphicDiscriminator: + DeliveryRuleCondition.type.polymorphicDiscriminator, + modelProperties: { + ...DeliveryRuleCondition.type.modelProperties, + parameters: { + serializedName: "parameters", + type: { + name: "Composite", + className: "SslProtocolMatchConditionParameters" + } + } + } + } +}; + +export const UrlRedirectAction: coreClient.CompositeMapper = { + serializedName: "UrlRedirect", + type: { + name: "Composite", + className: "UrlRedirectAction", + uberParent: "DeliveryRuleActionAutoGenerated", + polymorphicDiscriminator: + DeliveryRuleActionAutoGenerated.type.polymorphicDiscriminator, + modelProperties: { + ...DeliveryRuleActionAutoGenerated.type.modelProperties, + parameters: { + serializedName: "parameters", + type: { + name: "Composite", + className: "UrlRedirectActionParameters" + } + } + } + } +}; + +export const UrlSigningAction: coreClient.CompositeMapper = { + serializedName: "UrlSigning", + type: { + name: "Composite", + className: "UrlSigningAction", + uberParent: "DeliveryRuleActionAutoGenerated", + polymorphicDiscriminator: + DeliveryRuleActionAutoGenerated.type.polymorphicDiscriminator, + modelProperties: { + ...DeliveryRuleActionAutoGenerated.type.modelProperties, + parameters: { + serializedName: "parameters", + type: { + name: "Composite", + className: "UrlSigningActionParameters" + } + } + } + } +}; + +export const OriginGroupOverrideAction: coreClient.CompositeMapper = { + serializedName: "OriginGroupOverride", + type: { + name: "Composite", + className: "OriginGroupOverrideAction", + uberParent: "DeliveryRuleActionAutoGenerated", + polymorphicDiscriminator: + DeliveryRuleActionAutoGenerated.type.polymorphicDiscriminator, + modelProperties: { + ...DeliveryRuleActionAutoGenerated.type.modelProperties, + parameters: { + serializedName: "parameters", + type: { + name: "Composite", + className: "OriginGroupOverrideActionParameters" + } + } + } + } +}; + +export const UrlRewriteAction: coreClient.CompositeMapper = { + serializedName: "UrlRewrite", + type: { + name: "Composite", + className: "UrlRewriteAction", + uberParent: "DeliveryRuleActionAutoGenerated", + polymorphicDiscriminator: + DeliveryRuleActionAutoGenerated.type.polymorphicDiscriminator, + modelProperties: { + ...DeliveryRuleActionAutoGenerated.type.modelProperties, + parameters: { + serializedName: "parameters", + type: { + name: "Composite", + className: "UrlRewriteActionParameters" + } + } + } + } +}; + +export const DeliveryRuleRequestHeaderAction: coreClient.CompositeMapper = { + serializedName: "ModifyRequestHeader", + type: { + name: "Composite", + className: "DeliveryRuleRequestHeaderAction", + uberParent: "DeliveryRuleActionAutoGenerated", + polymorphicDiscriminator: + DeliveryRuleActionAutoGenerated.type.polymorphicDiscriminator, + modelProperties: { + ...DeliveryRuleActionAutoGenerated.type.modelProperties, + parameters: { + serializedName: "parameters", + type: { + name: "Composite", + className: "HeaderActionParameters" + } + } + } + } +}; + +export const DeliveryRuleResponseHeaderAction: coreClient.CompositeMapper = { + serializedName: "ModifyResponseHeader", + type: { + name: "Composite", + className: "DeliveryRuleResponseHeaderAction", + uberParent: "DeliveryRuleActionAutoGenerated", + polymorphicDiscriminator: + DeliveryRuleActionAutoGenerated.type.polymorphicDiscriminator, + modelProperties: { + ...DeliveryRuleActionAutoGenerated.type.modelProperties, + parameters: { + serializedName: "parameters", + type: { + name: "Composite", + className: "HeaderActionParameters" + } + } + } + } +}; + +export const DeliveryRuleCacheExpirationAction: coreClient.CompositeMapper = { + serializedName: "CacheExpiration", + type: { + name: "Composite", + className: "DeliveryRuleCacheExpirationAction", + uberParent: "DeliveryRuleActionAutoGenerated", + polymorphicDiscriminator: + DeliveryRuleActionAutoGenerated.type.polymorphicDiscriminator, + modelProperties: { + ...DeliveryRuleActionAutoGenerated.type.modelProperties, + parameters: { + serializedName: "parameters", + type: { + name: "Composite", + className: "CacheExpirationActionParameters" + } + } + } + } +}; + +export const DeliveryRuleCacheKeyQueryStringAction: coreClient.CompositeMapper = { + serializedName: "CacheKeyQueryString", + type: { + name: "Composite", + className: "DeliveryRuleCacheKeyQueryStringAction", + uberParent: "DeliveryRuleActionAutoGenerated", + polymorphicDiscriminator: + DeliveryRuleActionAutoGenerated.type.polymorphicDiscriminator, + modelProperties: { + ...DeliveryRuleActionAutoGenerated.type.modelProperties, + parameters: { + serializedName: "parameters", + type: { + name: "Composite", + className: "CacheKeyQueryStringActionParameters" + } + } + } + } +}; + +export const DeliveryRuleRouteConfigurationOverrideAction: coreClient.CompositeMapper = { + serializedName: "RouteConfigurationOverride", + type: { + name: "Composite", + className: "DeliveryRuleRouteConfigurationOverrideAction", + uberParent: "DeliveryRuleActionAutoGenerated", + polymorphicDiscriminator: + DeliveryRuleActionAutoGenerated.type.polymorphicDiscriminator, + modelProperties: { + ...DeliveryRuleActionAutoGenerated.type.modelProperties, + parameters: { + serializedName: "parameters", + type: { + name: "Composite", + className: "RouteConfigurationOverrideActionParameters" + } + } + } + } +}; + +export const SecurityPolicyWebApplicationFirewallParameters: coreClient.CompositeMapper = { + serializedName: "WebApplicationFirewall", + type: { + name: "Composite", + className: "SecurityPolicyWebApplicationFirewallParameters", + uberParent: "SecurityPolicyParameters", + polymorphicDiscriminator: + SecurityPolicyParameters.type.polymorphicDiscriminator, + modelProperties: { + ...SecurityPolicyParameters.type.modelProperties, + wafPolicy: { + serializedName: "wafPolicy", + type: { + name: "Composite", + className: "ResourceReference" + } + }, + associations: { + serializedName: "associations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SecurityPolicyWebApplicationFirewallAssociation" + } + } + } + } + } + } +}; + +export const UrlSigningKeyParameters: coreClient.CompositeMapper = { + serializedName: "UrlSigningKey", + type: { + name: "Composite", + className: "UrlSigningKeyParameters", + uberParent: "SecretParameters", + polymorphicDiscriminator: SecretParameters.type.polymorphicDiscriminator, + modelProperties: { + ...SecretParameters.type.modelProperties, + keyId: { + serializedName: "keyId", + required: true, + type: { + name: "String" + } + }, + secretSource: { + serializedName: "secretSource", + type: { + name: "Composite", + className: "ResourceReference" + } + }, + secretVersion: { + serializedName: "secretVersion", + type: { + name: "String" + } + } + } + } +}; + +export const ManagedCertificateParameters: coreClient.CompositeMapper = { + serializedName: "ManagedCertificate", + type: { + name: "Composite", + className: "ManagedCertificateParameters", + uberParent: "SecretParameters", + polymorphicDiscriminator: SecretParameters.type.polymorphicDiscriminator, + modelProperties: { + ...SecretParameters.type.modelProperties, + subject: { + serializedName: "subject", + readOnly: true, + type: { + name: "String" + } + }, + expirationDate: { + serializedName: "expirationDate", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const CustomerCertificateParameters: coreClient.CompositeMapper = { + serializedName: "CustomerCertificate", + type: { + name: "Composite", + className: "CustomerCertificateParameters", + uberParent: "SecretParameters", + polymorphicDiscriminator: SecretParameters.type.polymorphicDiscriminator, + modelProperties: { + ...SecretParameters.type.modelProperties, + secretSource: { + serializedName: "secretSource", + type: { + name: "Composite", + className: "ResourceReference" + } + }, + secretVersion: { + serializedName: "secretVersion", + type: { + name: "String" + } + }, + useLatestVersion: { + serializedName: "useLatestVersion", + type: { + name: "Boolean" + } + }, + subject: { + serializedName: "subject", + readOnly: true, + type: { + name: "String" + } + }, + expirationDate: { + serializedName: "expirationDate", + readOnly: true, + type: { + name: "String" + } + }, + certificateAuthority: { + serializedName: "certificateAuthority", + readOnly: true, + type: { + name: "String" + } + }, + subjectAlternativeNames: { + serializedName: "subjectAlternativeNames", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + thumbprint: { + serializedName: "thumbprint", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const AzureFirstPartyManagedCertificateParameters: coreClient.CompositeMapper = { + serializedName: "AzureFirstPartyManagedCertificate", + type: { + name: "Composite", + className: "AzureFirstPartyManagedCertificateParameters", + uberParent: "SecretParameters", + polymorphicDiscriminator: SecretParameters.type.polymorphicDiscriminator, + modelProperties: { + ...SecretParameters.type.modelProperties + } + } +}; + +export const CdnManagedHttpsParameters: coreClient.CompositeMapper = { + serializedName: "Cdn", + type: { + name: "Composite", + className: "CdnManagedHttpsParameters", + uberParent: "CustomDomainHttpsParameters", + polymorphicDiscriminator: + CustomDomainHttpsParameters.type.polymorphicDiscriminator, + modelProperties: { + ...CustomDomainHttpsParameters.type.modelProperties, + certificateSourceParameters: { + serializedName: "certificateSourceParameters", + type: { + name: "Composite", + className: "CdnCertificateSourceParameters" + } + } + } + } +}; + +export const UserManagedHttpsParameters: coreClient.CompositeMapper = { + serializedName: "AzureKeyVault", + type: { + name: "Composite", + className: "UserManagedHttpsParameters", + uberParent: "CustomDomainHttpsParameters", + polymorphicDiscriminator: + CustomDomainHttpsParameters.type.polymorphicDiscriminator, + modelProperties: { + ...CustomDomainHttpsParameters.type.modelProperties, + certificateSourceParameters: { + serializedName: "certificateSourceParameters", + type: { + name: "Composite", + className: "KeyVaultCertificateSourceParameters" + } + } + } + } +}; + +export const EndpointProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EndpointProperties", + modelProperties: { + ...EndpointPropertiesUpdateParameters.type.modelProperties, + hostName: { + serializedName: "hostName", + readOnly: true, + type: { + name: "String" + } + }, + origins: { + serializedName: "origins", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DeepCreatedOrigin" + } + } + } + }, + originGroups: { + serializedName: "originGroups", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DeepCreatedOriginGroup" + } + } + } + }, + customDomains: { + serializedName: "customDomains", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CustomDomain" + } + } + } + }, + resourceState: { + serializedName: "resourceState", + readOnly: true, + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const OriginProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OriginProperties", + modelProperties: { + ...OriginUpdatePropertiesParameters.type.modelProperties, + resourceState: { + serializedName: "resourceState", + readOnly: true, + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + privateEndpointStatus: { + serializedName: "privateEndpointStatus", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const OriginGroupProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OriginGroupProperties", + modelProperties: { + ...OriginGroupUpdatePropertiesParameters.type.modelProperties, + resourceState: { + serializedName: "resourceState", + readOnly: true, + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const RateLimitRule: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RateLimitRule", modelProperties: { - ...AFDStateProperties.type.modelProperties, - parameters: { - serializedName: "parameters", + ...CustomRule.type.modelProperties, + rateLimitThreshold: { + constraints: { + InclusiveMinimum: 0 + }, + serializedName: "rateLimitThreshold", + required: true, type: { - name: "Composite", - className: "SecretParameters" + name: "Number" + } + }, + rateLimitDurationInMinutes: { + constraints: { + InclusiveMaximum: 60, + InclusiveMinimum: 0 + }, + serializedName: "rateLimitDurationInMinutes", + required: true, + type: { + name: "Number" } } } } }; -export const SecurityPolicyWebApplicationFirewallParameters: coreClient.CompositeMapper = { - serializedName: "WebApplicationFirewall", +export const ManagedCertificate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecurityPolicyWebApplicationFirewallParameters", - uberParent: "SecurityPolicyParameters", - polymorphicDiscriminator: - SecurityPolicyParameters.type.polymorphicDiscriminator, + className: "ManagedCertificate", modelProperties: { - ...SecurityPolicyParameters.type.modelProperties, - wafPolicy: { - serializedName: "wafPolicy", + ...Certificate.type.modelProperties + } + } +}; + +export const CustomerCertificate: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CustomerCertificate", + modelProperties: { + ...Certificate.type.modelProperties, + secretSource: { + serializedName: "secretSource", type: { name: "Composite", className: "ResourceReference" } }, - associations: { - serializedName: "associations", + secretVersion: { + serializedName: "secretVersion", + type: { + name: "String" + } + }, + certificateAuthority: { + serializedName: "certificateAuthority", + readOnly: true, + type: { + name: "String" + } + }, + useLatestVersion: { + serializedName: "useLatestVersion", + type: { + name: "Boolean" + } + }, + subjectAlternativeNames: { + serializedName: "subjectAlternativeNames", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "SecurityPolicyWebApplicationFirewallAssociation" + name: "String" } } } + }, + thumbprint: { + serializedName: "thumbprint", + readOnly: true, + type: { + name: "String" + } } } } }; -export const UrlSigningKeyParameters: coreClient.CompositeMapper = { - serializedName: "UrlSigningKey", +export const AzureFirstPartyManagedCertificate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UrlSigningKeyParameters", - uberParent: "SecretParameters", - polymorphicDiscriminator: SecretParameters.type.polymorphicDiscriminator, + className: "AzureFirstPartyManagedCertificate", modelProperties: { - ...SecretParameters.type.modelProperties, - keyId: { - serializedName: "keyId", - required: true, + ...Certificate.type.modelProperties + } + } +}; + +export const AFDDomain: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AFDDomain", + modelProperties: { + ...ProxyResource.type.modelProperties, + profileName: { + serializedName: "properties.profileName", + readOnly: true, type: { name: "String" } }, - secretSource: { - serializedName: "secretSource", + tlsSettings: { + serializedName: "properties.tlsSettings", + type: { + name: "Composite", + className: "AFDDomainHttpsParameters" + } + }, + azureDnsZone: { + serializedName: "properties.azureDnsZone", type: { name: "Composite", className: "ResourceReference" } }, - secretVersion: { - serializedName: "secretVersion", + preValidatedCustomDomainResourceId: { + serializedName: "properties.preValidatedCustomDomainResourceId", + type: { + name: "Composite", + className: "ResourceReference" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + deploymentStatus: { + serializedName: "properties.deploymentStatus", + readOnly: true, + type: { + name: "String" + } + }, + domainValidationState: { + serializedName: "properties.domainValidationState", + readOnly: true, type: { name: "String" } + }, + hostName: { + serializedName: "properties.hostName", + type: { + name: "String" + } + }, + validationProperties: { + serializedName: "properties.validationProperties", + type: { + name: "Composite", + className: "DomainValidationProperties" + } } } } }; -export const ManagedCertificateParameters: coreClient.CompositeMapper = { - serializedName: "ManagedCertificate", +export const AFDOriginGroup: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedCertificateParameters", - uberParent: "SecretParameters", - polymorphicDiscriminator: SecretParameters.type.polymorphicDiscriminator, + className: "AFDOriginGroup", modelProperties: { - ...SecretParameters.type.modelProperties + ...ProxyResource.type.modelProperties, + profileName: { + serializedName: "properties.profileName", + readOnly: true, + type: { + name: "String" + } + }, + loadBalancingSettings: { + serializedName: "properties.loadBalancingSettings", + type: { + name: "Composite", + className: "LoadBalancingSettingsParameters" + } + }, + healthProbeSettings: { + serializedName: "properties.healthProbeSettings", + type: { + name: "Composite", + className: "HealthProbeParameters" + } + }, + trafficRestorationTimeToHealedOrNewEndpointsInMinutes: { + constraints: { + InclusiveMaximum: 50, + InclusiveMinimum: 0 + }, + serializedName: + "properties.trafficRestorationTimeToHealedOrNewEndpointsInMinutes", + type: { + name: "Number" + } + }, + responseBasedAfdOriginErrorDetectionSettings: { + serializedName: + "properties.responseBasedAfdOriginErrorDetectionSettings", + type: { + name: "Composite", + className: "ResponseBasedOriginErrorDetectionParameters" + } + }, + sessionAffinityState: { + serializedName: "properties.sessionAffinityState", + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + deploymentStatus: { + serializedName: "properties.deploymentStatus", + readOnly: true, + type: { + name: "String" + } + } } } }; -export const CustomerCertificateParameters: coreClient.CompositeMapper = { - serializedName: "CustomerCertificate", +export const AFDOrigin: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CustomerCertificateParameters", - uberParent: "SecretParameters", - polymorphicDiscriminator: SecretParameters.type.polymorphicDiscriminator, + className: "AFDOrigin", modelProperties: { - ...SecretParameters.type.modelProperties, - secretSource: { - serializedName: "secretSource", + ...ProxyResource.type.modelProperties, + originGroupName: { + serializedName: "properties.originGroupName", + readOnly: true, + type: { + name: "String" + } + }, + azureOrigin: { + serializedName: "properties.azureOrigin", type: { name: "Composite", className: "ResourceReference" } }, - secretVersion: { - serializedName: "secretVersion", + hostName: { + serializedName: "properties.hostName", type: { name: "String" } }, - certificateAuthority: { - serializedName: "certificateAuthority", + httpPort: { + constraints: { + InclusiveMaximum: 65535, + InclusiveMinimum: 1 + }, + serializedName: "properties.httpPort", type: { - name: "String" + name: "Number" } }, - useLatestVersion: { - serializedName: "useLatestVersion", + httpsPort: { + constraints: { + InclusiveMaximum: 65535, + InclusiveMinimum: 1 + }, + serializedName: "properties.httpsPort", type: { - name: "Boolean" + name: "Number" } }, - subjectAlternativeNames: { - serializedName: "subjectAlternativeNames", + originHostHeader: { + serializedName: "properties.originHostHeader", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } - } - } - } -}; - -export const RateLimitRule: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RateLimitRule", - modelProperties: { - ...CustomRule.type.modelProperties, - rateLimitThreshold: { + }, + priority: { constraints: { - InclusiveMinimum: 0 + InclusiveMaximum: 5, + InclusiveMinimum: 1 }, - serializedName: "rateLimitThreshold", - required: true, + serializedName: "properties.priority", type: { name: "Number" } }, - rateLimitDurationInMinutes: { + weight: { constraints: { - InclusiveMaximum: 60, - InclusiveMinimum: 0 + InclusiveMaximum: 1000, + InclusiveMinimum: 1 }, - serializedName: "rateLimitDurationInMinutes", - required: true, + serializedName: "properties.weight", type: { name: "Number" } - } - } - } -}; - -export const ManagedCertificate: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedCertificate", - modelProperties: { - ...Certificate.type.modelProperties - } - } -}; - -export const CustomerCertificate: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CustomerCertificate", - modelProperties: { - ...Certificate.type.modelProperties, - version: { - serializedName: "version", + }, + sharedPrivateLinkResource: { + serializedName: "properties.sharedPrivateLinkResource", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "any" } } } }, - certificateAuthority: { - serializedName: "certificateAuthority", + enabledState: { + serializedName: "properties.enabledState", type: { name: "String" } }, - certificateUrl: { - serializedName: "certificateUrl", - required: true, + enforceCertificateNameCheck: { + serializedName: "properties.enforceCertificateNameCheck", type: { - name: "String" + name: "Boolean" } }, - useLatestVersion: { - serializedName: "useLatestVersion", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - subjectAlternativeNames: { - serializedName: "subjectAlternativeNames", + deploymentStatus: { + serializedName: "properties.deploymentStatus", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } } } } }; -export const Profile: coreClient.CompositeMapper = { +export const Route: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Profile", + className: "Route", modelProperties: { - ...TrackedResource.type.modelProperties, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "Sku" - } - }, - resourceState: { - serializedName: "properties.resourceState", + ...ProxyResource.type.modelProperties, + endpointName: { + serializedName: "properties.endpointName", readOnly: true, type: { name: "String" } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + customDomains: { + serializedName: "properties.customDomains", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ActivatedResourceReference" + } + } } }, - frontdoorId: { - serializedName: "properties.frontdoorId", - readOnly: true, + originGroup: { + serializedName: "properties.originGroup", type: { - name: "String" + name: "Composite", + className: "ResourceReference" } - } - } - } -}; - -export const Endpoint: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Endpoint", - modelProperties: { - ...TrackedResource.type.modelProperties, + }, originPath: { serializedName: "properties.originPath", type: { name: "String" } }, - contentTypesToCompress: { - serializedName: "properties.contentTypesToCompress", + ruleSets: { + serializedName: "properties.ruleSets", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "ResourceReference" } } } }, - originHostHeader: { - serializedName: "properties.originHostHeader", + supportedProtocols: { + serializedName: "properties.supportedProtocols", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - isCompressionEnabled: { - serializedName: "properties.isCompressionEnabled", + patternsToMatch: { + serializedName: "properties.patternsToMatch", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - isHttpAllowed: { - serializedName: "properties.isHttpAllowed", + cacheConfiguration: { + serializedName: "properties.cacheConfiguration", type: { - name: "Boolean" + name: "Composite", + className: "AfdRouteCacheConfiguration" } }, - isHttpsAllowed: { - serializedName: "properties.isHttpsAllowed", + forwardingProtocol: { + serializedName: "properties.forwardingProtocol", type: { - name: "Boolean" + name: "String" } }, - queryStringCachingBehavior: { - serializedName: "properties.queryStringCachingBehavior", + linkToDefaultDomain: { + serializedName: "properties.linkToDefaultDomain", type: { - name: "Enum", - allowedValues: [ - "IgnoreQueryString", - "BypassCaching", - "UseQueryString", - "NotSet" - ] + name: "String" } }, - optimizationType: { - serializedName: "properties.optimizationType", + httpsRedirect: { + serializedName: "properties.httpsRedirect", type: { name: "String" } }, - probePath: { - serializedName: "properties.probePath", + enabledState: { + serializedName: "properties.enabledState", type: { name: "String" } }, - geoFilters: { - serializedName: "properties.geoFilters", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "GeoFilter" - } - } + name: "String" } }, - defaultOriginGroup: { - serializedName: "properties.defaultOriginGroup", + deploymentStatus: { + serializedName: "properties.deploymentStatus", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const RuleSet: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RuleSet", + modelProperties: { + ...ProxyResource.type.modelProperties, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { - name: "Composite", - className: "ResourceReference" + name: "String" } }, - urlSigningKeys: { - serializedName: "properties.urlSigningKeys", + deploymentStatus: { + serializedName: "properties.deploymentStatus", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "UrlSigningKey" - } - } + name: "String" } }, - deliveryPolicy: { - serializedName: "properties.deliveryPolicy", + profileName: { + serializedName: "properties.profileName", + readOnly: true, type: { - name: "Composite", - className: "EndpointPropertiesUpdateParametersDeliveryPolicy" + name: "String" } - }, - webApplicationFirewallPolicyLink: { - serializedName: "properties.webApplicationFirewallPolicyLink", + } + } + } +}; + +export const Rule: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Rule", + modelProperties: { + ...ProxyResource.type.modelProperties, + ruleSetName: { + serializedName: "properties.ruleSetName", + readOnly: true, type: { - name: "Composite", - className: - "EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink" + name: "String" } }, - hostName: { - serializedName: "properties.hostName", - readOnly: true, + order: { + serializedName: "properties.order", type: { - name: "String" + name: "Number" } }, - origins: { - serializedName: "properties.origins", + conditions: { + serializedName: "properties.conditions", type: { name: "Sequence", element: { type: { name: "Composite", - className: "DeepCreatedOrigin" + className: "DeliveryRuleCondition" } } } }, - originGroups: { - serializedName: "properties.originGroups", + actions: { + serializedName: "properties.actions", type: { name: "Sequence", element: { type: { name: "Composite", - className: "DeepCreatedOriginGroup" + className: "DeliveryRuleActionAutoGenerated" } } } }, - resourceState: { - serializedName: "properties.resourceState", - readOnly: true, + matchProcessingBehavior: { + serializedName: "properties.matchProcessingBehavior", type: { name: "String" } @@ -6724,32 +8029,62 @@ export const Endpoint: coreClient.CompositeMapper = { type: { name: "String" } + }, + deploymentStatus: { + serializedName: "properties.deploymentStatus", + readOnly: true, + type: { + name: "String" + } } } } }; -export const AFDEndpoint: coreClient.CompositeMapper = { +export const SecurityPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AFDEndpoint", + className: "SecurityPolicy", modelProperties: { - ...TrackedResource.type.modelProperties, - originResponseTimeoutSeconds: { - constraints: { - InclusiveMinimum: 16 - }, - serializedName: "properties.originResponseTimeoutSeconds", + ...ProxyResource.type.modelProperties, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { - name: "Number" + name: "String" } }, - enabledState: { - serializedName: "properties.enabledState", + deploymentStatus: { + serializedName: "properties.deploymentStatus", + readOnly: true, + type: { + name: "String" + } + }, + profileName: { + serializedName: "properties.profileName", + readOnly: true, type: { name: "String" } }, + parameters: { + serializedName: "properties.parameters", + type: { + name: "Composite", + className: "SecurityPolicyParameters" + } + } + } + } +}; + +export const Secret: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Secret", + modelProperties: { + ...ProxyResource.type.modelProperties, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, @@ -6764,75 +8099,68 @@ export const AFDEndpoint: coreClient.CompositeMapper = { name: "String" } }, - hostName: { - serializedName: "properties.hostName", + profileName: { + serializedName: "properties.profileName", readOnly: true, type: { name: "String" } + }, + parameters: { + serializedName: "properties.parameters", + type: { + name: "Composite", + className: "SecretParameters" + } } } } }; -export const CdnWebApplicationFirewallPolicy: coreClient.CompositeMapper = { +export const CustomDomain: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CdnWebApplicationFirewallPolicy", + className: "CustomDomain", modelProperties: { - ...TrackedResource.type.modelProperties, - etag: { - serializedName: "etag", + ...ProxyResource.type.modelProperties, + hostName: { + serializedName: "properties.hostName", type: { name: "String" } }, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "Sku" - } - }, - policySettings: { - serializedName: "properties.policySettings", + resourceState: { + serializedName: "properties.resourceState", + readOnly: true, type: { - name: "Composite", - className: "PolicySettings" + name: "String" } }, - rateLimitRules: { - serializedName: "properties.rateLimitRules", + customHttpsProvisioningState: { + serializedName: "properties.customHttpsProvisioningState", + readOnly: true, type: { - name: "Composite", - className: "RateLimitRuleList" + name: "String" } }, - customRules: { - serializedName: "properties.customRules", + customHttpsProvisioningSubstate: { + serializedName: "properties.customHttpsProvisioningSubstate", + readOnly: true, type: { - name: "Composite", - className: "CustomRuleList" + name: "String" } }, - managedRules: { - serializedName: "properties.managedRules", + customHttpsParameters: { + serializedName: "properties.customHttpsParameters", type: { name: "Composite", - className: "ManagedRuleSetList" + className: "CustomDomainHttpsParameters" } }, - endpointLinks: { - serializedName: "properties.endpointLinks", - readOnly: true, + validationData: { + serializedName: "properties.validationData", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "CdnEndpoint" - } - } + name: "String" } }, provisioningState: { @@ -6841,13 +8169,6 @@ export const CdnWebApplicationFirewallPolicy: coreClient.CompositeMapper = { type: { name: "String" } - }, - resourceState: { - serializedName: "properties.resourceState", - readOnly: true, - type: { - name: "String" - } } } } @@ -6955,69 +8276,8 @@ export const Origin: coreClient.CompositeMapper = { name: "String" } }, - privateEndpointStatus: { - serializedName: "properties.privateEndpointStatus", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const OriginGroup: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OriginGroup", - modelProperties: { - ...ProxyResource.type.modelProperties, - healthProbeSettings: { - serializedName: "properties.healthProbeSettings", - type: { - name: "Composite", - className: "HealthProbeParameters" - } - }, - origins: { - serializedName: "properties.origins", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ResourceReference" - } - } - } - }, - trafficRestorationTimeToHealedOrNewEndpointsInMinutes: { - constraints: { - InclusiveMaximum: 50, - InclusiveMinimum: 0 - }, - serializedName: - "properties.trafficRestorationTimeToHealedOrNewEndpointsInMinutes", - type: { - name: "Number" - } - }, - responseBasedOriginErrorDetectionSettings: { - serializedName: "properties.responseBasedOriginErrorDetectionSettings", - type: { - name: "Composite", - className: "ResponseBasedOriginErrorDetectionParameters" - } - }, - resourceState: { - serializedName: "properties.resourceState", - readOnly: true, - type: { - name: "String" - } - }, - provisioningState: { - serializedName: "properties.provisioningState", + privateEndpointStatus: { + serializedName: "properties.privateEndpointStatus", readOnly: true, type: { name: "String" @@ -7027,48 +8287,52 @@ export const OriginGroup: coreClient.CompositeMapper = { } }; -export const CustomDomain: coreClient.CompositeMapper = { +export const OriginGroup: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CustomDomain", + className: "OriginGroup", modelProperties: { ...ProxyResource.type.modelProperties, - hostName: { - serializedName: "properties.hostName", - type: { - name: "String" - } - }, - resourceState: { - serializedName: "properties.resourceState", - readOnly: true, + healthProbeSettings: { + serializedName: "properties.healthProbeSettings", type: { - name: "String" + name: "Composite", + className: "HealthProbeParameters" } }, - customHttpsProvisioningState: { - serializedName: "properties.customHttpsProvisioningState", - readOnly: true, + origins: { + serializedName: "properties.origins", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceReference" + } + } } }, - customHttpsProvisioningSubstate: { - serializedName: "properties.customHttpsProvisioningSubstate", - readOnly: true, + trafficRestorationTimeToHealedOrNewEndpointsInMinutes: { + constraints: { + InclusiveMaximum: 50, + InclusiveMinimum: 0 + }, + serializedName: + "properties.trafficRestorationTimeToHealedOrNewEndpointsInMinutes", type: { - name: "String" + name: "Number" } }, - customHttpsParameters: { - serializedName: "properties.customHttpsParameters", + responseBasedOriginErrorDetectionSettings: { + serializedName: "properties.responseBasedOriginErrorDetectionSettings", type: { name: "Composite", - className: "CustomDomainHttpsParameters" + className: "ResponseBasedOriginErrorDetectionParameters" } }, - validationData: { - serializedName: "properties.validationData", + resourceState: { + serializedName: "properties.resourceState", + readOnly: true, type: { name: "String" } @@ -7106,24 +8370,33 @@ export const EdgeNode: coreClient.CompositeMapper = { } }; -export const AFDDomain: coreClient.CompositeMapper = { +export const AFDEndpoint: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AFDDomain", + className: "AFDEndpoint", modelProperties: { - ...ProxyResource.type.modelProperties, - tlsSettings: { - serializedName: "properties.tlsSettings", + ...TrackedResource.type.modelProperties, + profileName: { + serializedName: "properties.profileName", + readOnly: true, type: { - name: "Composite", - className: "AFDDomainHttpsParameters" + name: "String" } }, - azureDnsZone: { - serializedName: "properties.azureDnsZone", + enabledState: { + serializedName: "properties.enabledState", type: { - name: "Composite", - className: "ResourceReference" + name: "String" + } + }, + originResponseTimeoutSeconds: { + constraints: { + InclusiveMaximum: 240, + InclusiveMinimum: 16 + }, + serializedName: "properties.originResponseTimeoutSeconds", + type: { + name: "Number" } }, provisioningState: { @@ -7140,73 +8413,42 @@ export const AFDDomain: coreClient.CompositeMapper = { name: "String" } }, - domainValidationState: { - serializedName: "properties.domainValidationState", - readOnly: true, - type: { - name: "String" - } - }, hostName: { serializedName: "properties.hostName", + readOnly: true, type: { name: "String" } - }, - validationProperties: { - serializedName: "properties.validationProperties", - type: { - name: "Composite", - className: "DomainValidationProperties" - } } } } }; -export const AFDOriginGroup: coreClient.CompositeMapper = { +export const Profile: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AFDOriginGroup", + className: "Profile", modelProperties: { - ...ProxyResource.type.modelProperties, - loadBalancingSettings: { - serializedName: "properties.loadBalancingSettings", - type: { - name: "Composite", - className: "LoadBalancingSettingsParameters" - } - }, - healthProbeSettings: { - serializedName: "properties.healthProbeSettings", + ...TrackedResource.type.modelProperties, + sku: { + serializedName: "sku", type: { name: "Composite", - className: "HealthProbeParameters" + className: "Sku" } }, - trafficRestorationTimeToHealedOrNewEndpointsInMinutes: { - constraints: { - InclusiveMaximum: 50, - InclusiveMinimum: 0 - }, - serializedName: - "properties.trafficRestorationTimeToHealedOrNewEndpointsInMinutes", + resourceState: { + serializedName: "properties.resourceState", + readOnly: true, type: { - name: "Number" + name: "String" } }, - responseBasedAfdOriginErrorDetectionSettings: { - serializedName: - "properties.responseBasedAfdOriginErrorDetectionSettings", + identity: { + serializedName: "properties.identity", type: { name: "Composite", - className: "ResponseBasedOriginErrorDetectionParameters" - } - }, - sessionAffinityState: { - serializedName: "properties.sessionAffinityState", - type: { - name: "String" + className: "ManagedServiceIdentity" } }, provisioningState: { @@ -7216,309 +8458,203 @@ export const AFDOriginGroup: coreClient.CompositeMapper = { name: "String" } }, - deploymentStatus: { - serializedName: "properties.deploymentStatus", + frontDoorId: { + serializedName: "properties.frontDoorId", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const AFDOrigin: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AFDOrigin", - modelProperties: { - ...ProxyResource.type.modelProperties, - azureOrigin: { - serializedName: "properties.azureOrigin", - type: { - name: "Composite", - className: "ResourceReference" - } - }, - hostName: { - serializedName: "properties.hostName", - type: { - name: "String" - } - }, - httpPort: { - constraints: { - InclusiveMaximum: 65535, - InclusiveMinimum: 1 - }, - serializedName: "properties.httpPort", - type: { - name: "Number" - } - }, - httpsPort: { - constraints: { - InclusiveMaximum: 65535, - InclusiveMinimum: 1 - }, - serializedName: "properties.httpsPort", - type: { - name: "Number" - } }, - originHostHeader: { - serializedName: "properties.originHostHeader", + kind: { + serializedName: "properties.kind", + readOnly: true, type: { name: "String" } }, - priority: { - constraints: { - InclusiveMaximum: 5, - InclusiveMinimum: 1 - }, - serializedName: "properties.priority", - type: { - name: "Number" - } - }, - weight: { + originResponseTimeoutSeconds: { constraints: { - InclusiveMaximum: 1000, - InclusiveMinimum: 1 + InclusiveMinimum: 16 }, - serializedName: "properties.weight", + serializedName: "properties.originResponseTimeoutSeconds", type: { name: "Number" } - }, - sharedPrivateLinkResource: { - serializedName: "properties.sharedPrivateLinkResource", - type: { - name: "Dictionary", - value: { type: { name: "any" } } - } - }, - enabledState: { - serializedName: "properties.enabledState", - type: { - name: "String" - } - }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - type: { - name: "String" - } - }, - deploymentStatus: { - serializedName: "properties.deploymentStatus", - readOnly: true, - type: { - name: "String" - } } } } }; -export const Route: coreClient.CompositeMapper = { +export const Endpoint: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Route", + className: "Endpoint", modelProperties: { - ...ProxyResource.type.modelProperties, - customDomains: { - serializedName: "properties.customDomains", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ResourceReference" - } - } - } - }, - originGroup: { - serializedName: "properties.originGroup", - type: { - name: "Composite", - className: "ResourceReference" - } - }, + ...TrackedResource.type.modelProperties, originPath: { serializedName: "properties.originPath", type: { name: "String" } }, - ruleSets: { - serializedName: "properties.ruleSets", + contentTypesToCompress: { + serializedName: "properties.contentTypesToCompress", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "ResourceReference" + name: "String" } } } }, - supportedProtocols: { - serializedName: "properties.supportedProtocols", + originHostHeader: { + serializedName: "properties.originHostHeader", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - patternsToMatch: { - serializedName: "properties.patternsToMatch", + isCompressionEnabled: { + serializedName: "properties.isCompressionEnabled", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Boolean" } }, - compressionSettings: { - serializedName: "properties.compressionSettings", + isHttpAllowed: { + serializedName: "properties.isHttpAllowed", type: { - name: "Dictionary", - value: { type: { name: "any" } } + name: "Boolean" + } + }, + isHttpsAllowed: { + serializedName: "properties.isHttpsAllowed", + type: { + name: "Boolean" } }, queryStringCachingBehavior: { serializedName: "properties.queryStringCachingBehavior", type: { name: "Enum", - allowedValues: ["IgnoreQueryString", "UseQueryString", "NotSet"] + allowedValues: [ + "IgnoreQueryString", + "BypassCaching", + "UseQueryString", + "NotSet" + ] } }, - forwardingProtocol: { - serializedName: "properties.forwardingProtocol", + optimizationType: { + serializedName: "properties.optimizationType", type: { name: "String" } }, - linkToDefaultDomain: { - serializedName: "properties.linkToDefaultDomain", + probePath: { + serializedName: "properties.probePath", type: { name: "String" } }, - httpsRedirect: { - serializedName: "properties.httpsRedirect", + geoFilters: { + serializedName: "properties.geoFilters", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GeoFilter" + } + } } }, - enabledState: { - serializedName: "properties.enabledState", + defaultOriginGroup: { + serializedName: "properties.defaultOriginGroup", type: { - name: "String" + name: "Composite", + className: "ResourceReference" } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + urlSigningKeys: { + serializedName: "properties.urlSigningKeys", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "UrlSigningKey" + } + } } }, - deploymentStatus: { - serializedName: "properties.deploymentStatus", - readOnly: true, + deliveryPolicy: { + serializedName: "properties.deliveryPolicy", type: { - name: "String" + name: "Composite", + className: "EndpointPropertiesUpdateParametersDeliveryPolicy" } - } - } - } -}; - -export const RuleSet: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RuleSet", - modelProperties: { - ...ProxyResource.type.modelProperties, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + }, + webApplicationFirewallPolicyLink: { + serializedName: "properties.webApplicationFirewallPolicyLink", type: { - name: "String" + name: "Composite", + className: + "EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink" } }, - deploymentStatus: { - serializedName: "properties.deploymentStatus", + hostName: { + serializedName: "properties.hostName", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const Rule: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Rule", - modelProperties: { - ...ProxyResource.type.modelProperties, - order: { - serializedName: "properties.order", - type: { - name: "Number" - } }, - conditions: { - serializedName: "properties.conditions", + origins: { + serializedName: "properties.origins", type: { name: "Sequence", element: { type: { name: "Composite", - className: "DeliveryRuleCondition" + className: "DeepCreatedOrigin" } } } }, - actions: { - serializedName: "properties.actions", + originGroups: { + serializedName: "properties.originGroups", type: { name: "Sequence", element: { type: { name: "Composite", - className: "DeliveryRuleActionAutoGenerated" + className: "DeepCreatedOriginGroup" } } } }, - matchProcessingBehavior: { - serializedName: "properties.matchProcessingBehavior", + customDomains: { + serializedName: "properties.customDomains", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CustomDomain" + } + } } }, - provisioningState: { - serializedName: "properties.provisioningState", + resourceState: { + serializedName: "properties.resourceState", readOnly: true, type: { name: "String" } }, - deploymentStatus: { - serializedName: "properties.deploymentStatus", + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, type: { name: "String" @@ -7528,62 +8664,78 @@ export const Rule: coreClient.CompositeMapper = { } }; -export const SecurityPolicy: coreClient.CompositeMapper = { +export const CdnWebApplicationFirewallPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecurityPolicy", + className: "CdnWebApplicationFirewallPolicy", modelProperties: { - ...ProxyResource.type.modelProperties, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + ...TrackedResource.type.modelProperties, + etag: { + serializedName: "etag", type: { name: "String" } }, - deploymentStatus: { - serializedName: "properties.deploymentStatus", - readOnly: true, + sku: { + serializedName: "sku", type: { - name: "String" + name: "Composite", + className: "Sku" } }, - parameters: { - serializedName: "properties.parameters", + policySettings: { + serializedName: "properties.policySettings", type: { name: "Composite", - className: "SecurityPolicyParameters" + className: "PolicySettings" } - } - } - } -}; - -export const Secret: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Secret", - modelProperties: { - ...ProxyResource.type.modelProperties, - provisioningState: { - serializedName: "properties.provisioningState", + }, + rateLimitRules: { + serializedName: "properties.rateLimitRules", + type: { + name: "Composite", + className: "RateLimitRuleList" + } + }, + customRules: { + serializedName: "properties.customRules", + type: { + name: "Composite", + className: "CustomRuleList" + } + }, + managedRules: { + serializedName: "properties.managedRules", + type: { + name: "Composite", + className: "ManagedRuleSetList" + } + }, + endpointLinks: { + serializedName: "properties.endpointLinks", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CdnEndpoint" + } + } } }, - deploymentStatus: { - serializedName: "properties.deploymentStatus", + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, type: { name: "String" } }, - parameters: { - serializedName: "properties.parameters", + resourceState: { + serializedName: "properties.resourceState", + readOnly: true, type: { - name: "Composite", - className: "SecretParameters" + name: "String" } } } @@ -7593,9 +8745,9 @@ export const Secret: coreClient.CompositeMapper = { export let discriminators = { DeliveryRuleCondition: DeliveryRuleCondition, DeliveryRuleActionAutoGenerated: DeliveryRuleActionAutoGenerated, - CustomDomainHttpsParameters: CustomDomainHttpsParameters, SecurityPolicyParameters: SecurityPolicyParameters, SecretParameters: SecretParameters, + CustomDomainHttpsParameters: CustomDomainHttpsParameters, "DeliveryRuleCondition.RemoteAddress": DeliveryRuleRemoteAddressCondition, "DeliveryRuleCondition.RequestMethod": DeliveryRuleRequestMethodCondition, "DeliveryRuleCondition.QueryString": DeliveryRuleQueryStringCondition, @@ -7610,6 +8762,11 @@ export let discriminators = { "DeliveryRuleCondition.HttpVersion": DeliveryRuleHttpVersionCondition, "DeliveryRuleCondition.Cookies": DeliveryRuleCookiesCondition, "DeliveryRuleCondition.IsDevice": DeliveryRuleIsDeviceCondition, + "DeliveryRuleCondition.SocketAddr": DeliveryRuleSocketAddrCondition, + "DeliveryRuleCondition.ClientPort": DeliveryRuleClientPortCondition, + "DeliveryRuleCondition.ServerPort": DeliveryRuleServerPortCondition, + "DeliveryRuleCondition.HostName": DeliveryRuleHostNameCondition, + "DeliveryRuleCondition.SslProtocol": DeliveryRuleSslProtocolCondition, "DeliveryRuleActionAutoGenerated.UrlRedirect": UrlRedirectAction, "DeliveryRuleActionAutoGenerated.UrlSigning": UrlSigningAction, "DeliveryRuleActionAutoGenerated.OriginGroupOverride": OriginGroupOverrideAction, @@ -7618,10 +8775,12 @@ export let discriminators = { "DeliveryRuleActionAutoGenerated.ModifyResponseHeader": DeliveryRuleResponseHeaderAction, "DeliveryRuleActionAutoGenerated.CacheExpiration": DeliveryRuleCacheExpirationAction, "DeliveryRuleActionAutoGenerated.CacheKeyQueryString": DeliveryRuleCacheKeyQueryStringAction, - "CustomDomainHttpsParameters.Cdn": CdnManagedHttpsParameters, - "CustomDomainHttpsParameters.AzureKeyVault": UserManagedHttpsParameters, + "DeliveryRuleActionAutoGenerated.RouteConfigurationOverride": DeliveryRuleRouteConfigurationOverrideAction, "SecurityPolicyParameters.WebApplicationFirewall": SecurityPolicyWebApplicationFirewallParameters, "SecretParameters.UrlSigningKey": UrlSigningKeyParameters, "SecretParameters.ManagedCertificate": ManagedCertificateParameters, - "SecretParameters.CustomerCertificate": CustomerCertificateParameters + "SecretParameters.CustomerCertificate": CustomerCertificateParameters, + "SecretParameters.AzureFirstPartyManagedCertificate": AzureFirstPartyManagedCertificateParameters, + "CustomDomainHttpsParameters.Cdn": CdnManagedHttpsParameters, + "CustomDomainHttpsParameters.AzureKeyVault": UserManagedHttpsParameters }; diff --git a/sdk/cdn/arm-cdn/src/models/parameters.ts b/sdk/cdn/arm-cdn/src/models/parameters.ts index 7cad3c163497..c9117f1003db 100644 --- a/sdk/cdn/arm-cdn/src/models/parameters.ts +++ b/sdk/cdn/arm-cdn/src/models/parameters.ts @@ -12,26 +12,13 @@ import { OperationQueryParameter } from "@azure/core-client"; import { - Profile as ProfileMapper, - ProfileUpdateParameters as ProfileUpdateParametersMapper, - Endpoint as EndpointMapper, - EndpointUpdateParameters as EndpointUpdateParametersMapper, - PurgeParameters as PurgeParametersMapper, - LoadParameters as LoadParametersMapper, - ValidateCustomDomainInput as ValidateCustomDomainInputMapper, - Origin as OriginMapper, - OriginUpdateParameters as OriginUpdateParametersMapper, - OriginGroup as OriginGroupMapper, - OriginGroupUpdateParameters as OriginGroupUpdateParametersMapper, - CustomDomainParameters as CustomDomainParametersMapper, - CustomDomainHttpsParameters as CustomDomainHttpsParametersMapper, - CheckNameAvailabilityInput as CheckNameAvailabilityInputMapper, - ValidateProbeInput as ValidateProbeInputMapper, + CheckHostNameAvailabilityInput as CheckHostNameAvailabilityInputMapper, AFDDomain as AFDDomainMapper, AFDDomainUpdateParameters as AFDDomainUpdateParametersMapper, AFDEndpoint as AFDEndpointMapper, AFDEndpointUpdateParameters as AFDEndpointUpdateParametersMapper, AfdPurgeParameters as AfdPurgeParametersMapper, + ValidateCustomDomainInput as ValidateCustomDomainInputMapper, AFDOriginGroup as AFDOriginGroupMapper, AFDOriginGroupUpdateParameters as AFDOriginGroupUpdateParametersMapper, AFDOrigin as AFDOriginMapper, @@ -43,8 +30,21 @@ import { SecurityPolicy as SecurityPolicyMapper, SecurityPolicyProperties as SecurityPolicyPropertiesMapper, Secret as SecretMapper, - SecretProperties as SecretPropertiesMapper, ValidateSecretInput as ValidateSecretInputMapper, + Profile as ProfileMapper, + ProfileUpdateParameters as ProfileUpdateParametersMapper, + Endpoint as EndpointMapper, + EndpointUpdateParameters as EndpointUpdateParametersMapper, + PurgeParameters as PurgeParametersMapper, + LoadParameters as LoadParametersMapper, + Origin as OriginMapper, + OriginUpdateParameters as OriginUpdateParametersMapper, + OriginGroup as OriginGroupMapper, + OriginGroupUpdateParameters as OriginGroupUpdateParametersMapper, + CustomDomainParameters as CustomDomainParametersMapper, + CustomDomainHttpsParameters as CustomDomainHttpsParametersMapper, + CheckNameAvailabilityInput as CheckNameAvailabilityInputMapper, + ValidateProbeInput as ValidateProbeInputMapper, CdnWebApplicationFirewallPolicy as CdnWebApplicationFirewallPolicyMapper, CdnWebApplicationFirewallPolicyPatchParameters as CdnWebApplicationFirewallPolicyPatchParametersMapper } from "../models/mappers"; @@ -73,10 +73,15 @@ export const $host: OperationURLParameter = { skipEncoding: true }; -export const subscriptionId: OperationURLParameter = { - parameterPath: "subscriptionId", +export const resourceGroupName: OperationURLParameter = { + parameterPath: "resourceGroupName", mapper: { - serializedName: "subscriptionId", + constraints: { + Pattern: new RegExp("^[-\\w\\._\\(\\)]+$"), + MaxLength: 90, + MinLength: 1 + }, + serializedName: "resourceGroupName", required: true, type: { name: "String" @@ -84,27 +89,21 @@ export const subscriptionId: OperationURLParameter = { } }; -export const apiVersion: OperationQueryParameter = { - parameterPath: "apiVersion", +export const profileName: OperationURLParameter = { + parameterPath: "profileName", mapper: { - defaultValue: "2020-09-01", - isConstant: true, - serializedName: "api-version", + serializedName: "profileName", + required: true, type: { name: "String" } } }; -export const resourceGroupName: OperationURLParameter = { - parameterPath: "resourceGroupName", +export const subscriptionId: OperationURLParameter = { + parameterPath: "subscriptionId", mapper: { - constraints: { - Pattern: new RegExp("^[-\\w\\._\\(\\)]+$"), - MaxLength: 90, - MinLength: 1 - }, - serializedName: "resourceGroupName", + serializedName: "subscriptionId", required: true, type: { name: "String" @@ -112,11 +111,12 @@ export const resourceGroupName: OperationURLParameter = { } }; -export const profileName: OperationURLParameter = { - parameterPath: "profileName", +export const apiVersion: OperationQueryParameter = { + parameterPath: "apiVersion", mapper: { - serializedName: "profileName", - required: true, + defaultValue: "2021-06-01", + isConstant: true, + serializedName: "api-version", type: { name: "String" } @@ -135,14 +135,9 @@ export const contentType: OperationParameter = { } }; -export const profile: OperationParameter = { - parameterPath: "profile", - mapper: ProfileMapper -}; - -export const profileUpdateParameters: OperationParameter = { - parameterPath: "profileUpdateParameters", - mapper: ProfileUpdateParametersMapper +export const checkHostNameAvailabilityInput: OperationParameter = { + parameterPath: "checkHostNameAvailabilityInput", + mapper: CheckHostNameAvailabilityInputMapper }; export const nextLink: OperationURLParameter = { @@ -157,6 +152,27 @@ export const nextLink: OperationURLParameter = { skipEncoding: true }; +export const customDomainName: OperationURLParameter = { + parameterPath: "customDomainName", + mapper: { + serializedName: "customDomainName", + required: true, + type: { + name: "String" + } + } +}; + +export const customDomain: OperationParameter = { + parameterPath: "customDomain", + mapper: AFDDomainMapper +}; + +export const customDomainUpdateProperties: OperationParameter = { + parameterPath: "customDomainUpdateProperties", + mapper: AFDDomainUpdateParametersMapper +}; + export const endpointName: OperationURLParameter = { parameterPath: "endpointName", mapper: { @@ -170,22 +186,17 @@ export const endpointName: OperationURLParameter = { export const endpoint: OperationParameter = { parameterPath: "endpoint", - mapper: EndpointMapper + mapper: AFDEndpointMapper }; export const endpointUpdateProperties: OperationParameter = { parameterPath: "endpointUpdateProperties", - mapper: EndpointUpdateParametersMapper -}; - -export const contentFilePaths: OperationParameter = { - parameterPath: "contentFilePaths", - mapper: PurgeParametersMapper + mapper: AFDEndpointUpdateParametersMapper }; -export const contentFilePaths1: OperationParameter = { - parameterPath: "contentFilePaths", - mapper: LoadParametersMapper +export const contents: OperationParameter = { + parameterPath: "contents", + mapper: AfdPurgeParametersMapper }; export const customDomainProperties: OperationParameter = { @@ -193,27 +204,6 @@ export const customDomainProperties: OperationParameter = { mapper: ValidateCustomDomainInputMapper }; -export const originName: OperationURLParameter = { - parameterPath: "originName", - mapper: { - serializedName: "originName", - required: true, - type: { - name: "String" - } - } -}; - -export const origin: OperationParameter = { - parameterPath: "origin", - mapper: OriginMapper -}; - -export const originUpdateProperties: OperationParameter = { - parameterPath: "originUpdateProperties", - mapper: OriginUpdateParametersMapper -}; - export const originGroupName: OperationURLParameter = { parameterPath: "originGroupName", mapper: { @@ -227,18 +217,18 @@ export const originGroupName: OperationURLParameter = { export const originGroup: OperationParameter = { parameterPath: "originGroup", - mapper: OriginGroupMapper + mapper: AFDOriginGroupMapper }; export const originGroupUpdateProperties: OperationParameter = { parameterPath: "originGroupUpdateProperties", - mapper: OriginGroupUpdateParametersMapper + mapper: AFDOriginGroupUpdateParametersMapper }; -export const customDomainName: OperationURLParameter = { - parameterPath: "customDomainName", +export const originName: OperationURLParameter = { + parameterPath: "originName", mapper: { - serializedName: "customDomainName", + serializedName: "originName", required: true, type: { name: "String" @@ -246,72 +236,12 @@ export const customDomainName: OperationURLParameter = { } }; -export const customDomainProperties1: OperationParameter = { - parameterPath: "customDomainProperties", - mapper: CustomDomainParametersMapper -}; - -export const customDomainHttpsParameters: OperationParameter = { - parameterPath: ["options", "customDomainHttpsParameters"], - mapper: CustomDomainHttpsParametersMapper -}; - -export const checkNameAvailabilityInput: OperationParameter = { - parameterPath: "checkNameAvailabilityInput", - mapper: CheckNameAvailabilityInputMapper -}; - -export const validateProbeInput: OperationParameter = { - parameterPath: "validateProbeInput", - mapper: ValidateProbeInputMapper -}; - -export const checkHostNameAvailabilityInput: OperationParameter = { - parameterPath: "checkHostNameAvailabilityInput", - mapper: ValidateCustomDomainInputMapper -}; - -export const customDomain: OperationParameter = { - parameterPath: "customDomain", - mapper: AFDDomainMapper -}; - -export const customDomainUpdateProperties: OperationParameter = { - parameterPath: "customDomainUpdateProperties", - mapper: AFDDomainUpdateParametersMapper -}; - -export const endpoint1: OperationParameter = { - parameterPath: "endpoint", - mapper: AFDEndpointMapper -}; - -export const endpointUpdateProperties1: OperationParameter = { - parameterPath: "endpointUpdateProperties", - mapper: AFDEndpointUpdateParametersMapper -}; - -export const contents: OperationParameter = { - parameterPath: "contents", - mapper: AfdPurgeParametersMapper -}; - -export const originGroup1: OperationParameter = { - parameterPath: "originGroup", - mapper: AFDOriginGroupMapper -}; - -export const originGroupUpdateProperties1: OperationParameter = { - parameterPath: "originGroupUpdateProperties", - mapper: AFDOriginGroupUpdateParametersMapper -}; - -export const origin1: OperationParameter = { +export const origin: OperationParameter = { parameterPath: "origin", mapper: AFDOriginMapper }; -export const originUpdateProperties1: OperationParameter = { +export const originUpdateProperties: OperationParameter = { parameterPath: "originUpdateProperties", mapper: AFDOriginUpdateParametersMapper }; @@ -406,11 +336,6 @@ export const secret: OperationParameter = { mapper: SecretMapper }; -export const secretProperties: OperationParameter = { - parameterPath: "secretProperties", - mapper: SecretPropertiesMapper -}; - export const validateSecretInput: OperationParameter = { parameterPath: "validateSecretInput", mapper: ValidateSecretInputMapper @@ -702,6 +627,76 @@ export const rankings1: OperationQueryParameter = { collectionFormat: "Multi" }; +export const profile: OperationParameter = { + parameterPath: "profile", + mapper: ProfileMapper +}; + +export const profileUpdateParameters: OperationParameter = { + parameterPath: "profileUpdateParameters", + mapper: ProfileUpdateParametersMapper +}; + +export const endpoint1: OperationParameter = { + parameterPath: "endpoint", + mapper: EndpointMapper +}; + +export const endpointUpdateProperties1: OperationParameter = { + parameterPath: "endpointUpdateProperties", + mapper: EndpointUpdateParametersMapper +}; + +export const contentFilePaths: OperationParameter = { + parameterPath: "contentFilePaths", + mapper: PurgeParametersMapper +}; + +export const contentFilePaths1: OperationParameter = { + parameterPath: "contentFilePaths", + mapper: LoadParametersMapper +}; + +export const origin1: OperationParameter = { + parameterPath: "origin", + mapper: OriginMapper +}; + +export const originUpdateProperties1: OperationParameter = { + parameterPath: "originUpdateProperties", + mapper: OriginUpdateParametersMapper +}; + +export const originGroup1: OperationParameter = { + parameterPath: "originGroup", + mapper: OriginGroupMapper +}; + +export const originGroupUpdateProperties1: OperationParameter = { + parameterPath: "originGroupUpdateProperties", + mapper: OriginGroupUpdateParametersMapper +}; + +export const customDomainProperties1: OperationParameter = { + parameterPath: "customDomainProperties", + mapper: CustomDomainParametersMapper +}; + +export const customDomainHttpsParameters: OperationParameter = { + parameterPath: ["options", "customDomainHttpsParameters"], + mapper: CustomDomainHttpsParametersMapper +}; + +export const checkNameAvailabilityInput: OperationParameter = { + parameterPath: "checkNameAvailabilityInput", + mapper: CheckNameAvailabilityInputMapper +}; + +export const validateProbeInput: OperationParameter = { + parameterPath: "validateProbeInput", + mapper: ValidateProbeInputMapper +}; + export const resourceGroupName1: OperationURLParameter = { parameterPath: "resourceGroupName", mapper: { diff --git a/sdk/cdn/arm-cdn/src/operations/aFDCustomDomains.ts b/sdk/cdn/arm-cdn/src/operations/aFDCustomDomains.ts index 7d865e8f7788..b9917d1f4ec1 100644 --- a/sdk/cdn/arm-cdn/src/operations/aFDCustomDomains.ts +++ b/sdk/cdn/arm-cdn/src/operations/aFDCustomDomains.ts @@ -28,7 +28,6 @@ import { AFDCustomDomainsUpdateResponse, AFDCustomDomainsDeleteOptionalParams, AFDCustomDomainsRefreshValidationTokenOptionalParams, - AFDCustomDomainsRefreshValidationTokenResponse, AFDCustomDomainsListByProfileNextResponse } from "../models"; @@ -48,7 +47,8 @@ export class AFDCustomDomainsImpl implements AFDCustomDomains { /** * Lists existing AzureFrontDoor domains. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile or CDN + * profile which is unique within the resource group. * @param options The options parameters. */ public listByProfile( @@ -119,7 +119,8 @@ export class AFDCustomDomainsImpl implements AFDCustomDomains { /** * Lists existing AzureFrontDoor domains. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile or CDN + * profile which is unique within the resource group. * @param options The options parameters. */ private _listByProfile( @@ -137,7 +138,8 @@ export class AFDCustomDomainsImpl implements AFDCustomDomains { * Gets an existing AzureFrontDoor domain with the specified domain name under the specified * subscription, resource group and profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param customDomainName Name of the domain under the profile which is unique globally. * @param options The options parameters. */ @@ -156,7 +158,8 @@ export class AFDCustomDomainsImpl implements AFDCustomDomains { /** * Creates a new domain within the specified profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param customDomainName Name of the domain under the profile which is unique globally * @param customDomain Domain properties * @param options The options parameters. @@ -233,7 +236,8 @@ export class AFDCustomDomainsImpl implements AFDCustomDomains { /** * Creates a new domain within the specified profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param customDomainName Name of the domain under the profile which is unique globally * @param customDomain Domain properties * @param options The options parameters. @@ -258,7 +262,8 @@ export class AFDCustomDomainsImpl implements AFDCustomDomains { /** * Updates an existing domain within a profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param customDomainName Name of the domain under the profile which is unique globally * @param customDomainUpdateProperties Domain properties * @param options The options parameters. @@ -335,7 +340,8 @@ export class AFDCustomDomainsImpl implements AFDCustomDomains { /** * Updates an existing domain within a profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param customDomainName Name of the domain under the profile which is unique globally * @param customDomainUpdateProperties Domain properties * @param options The options parameters. @@ -361,7 +367,8 @@ export class AFDCustomDomainsImpl implements AFDCustomDomains { * Deletes an existing AzureFrontDoor domain with the specified domain name under the specified * subscription, resource group and profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param customDomainName Name of the domain under the profile which is unique globally. * @param options The options parameters. */ @@ -426,7 +433,8 @@ export class AFDCustomDomainsImpl implements AFDCustomDomains { * Deletes an existing AzureFrontDoor domain with the specified domain name under the specified * subscription, resource group and profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param customDomainName Name of the domain under the profile which is unique globally. * @param options The options parameters. */ @@ -448,7 +456,8 @@ export class AFDCustomDomainsImpl implements AFDCustomDomains { /** * Updates the domain validation token. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param customDomainName Name of the domain under the profile which is unique globally. * @param options The options parameters. */ @@ -457,16 +466,11 @@ export class AFDCustomDomainsImpl implements AFDCustomDomains { profileName: string, customDomainName: string, options?: AFDCustomDomainsRefreshValidationTokenOptionalParams - ): Promise< - PollerLike< - PollOperationState, - AFDCustomDomainsRefreshValidationTokenResponse - > - > { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperation = async ( @@ -517,7 +521,8 @@ export class AFDCustomDomainsImpl implements AFDCustomDomains { /** * Updates the domain validation token. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param customDomainName Name of the domain under the profile which is unique globally. * @param options The options parameters. */ @@ -526,7 +531,7 @@ export class AFDCustomDomainsImpl implements AFDCustomDomains { profileName: string, customDomainName: string, options?: AFDCustomDomainsRefreshValidationTokenOptionalParams - ): Promise { + ): Promise { const poller = await this.beginRefreshValidationToken( resourceGroupName, profileName, @@ -539,7 +544,8 @@ export class AFDCustomDomainsImpl implements AFDCustomDomains { /** * ListByProfileNext * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile or CDN + * profile which is unique within the resource group. * @param nextLink The nextLink from the previous successful call to the ListByProfile method. * @param options The options parameters. */ @@ -573,9 +579,9 @@ const listByProfileOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.profileName + Parameters.profileName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -595,9 +601,9 @@ const getOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, + Parameters.subscriptionId, Parameters.customDomainName ], headerParameters: [Parameters.accept], @@ -628,9 +634,9 @@ const createOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, + Parameters.subscriptionId, Parameters.customDomainName ], headerParameters: [Parameters.accept, Parameters.contentType], @@ -662,9 +668,9 @@ const updateOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, + Parameters.subscriptionId, Parameters.customDomainName ], headerParameters: [Parameters.accept, Parameters.contentType], @@ -687,9 +693,9 @@ const deleteOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, + Parameters.subscriptionId, Parameters.customDomainName ], headerParameters: [Parameters.accept], @@ -700,18 +706,10 @@ const refreshValidationTokenOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/customDomains/{customDomainName}/refreshValidationToken", httpMethod: "POST", responses: { - 200: { - bodyMapper: Mappers.ValidationToken - }, - 201: { - bodyMapper: Mappers.ValidationToken - }, - 202: { - bodyMapper: Mappers.ValidationToken - }, - 204: { - bodyMapper: Mappers.ValidationToken - }, + 200: {}, + 201: {}, + 202: {}, + 204: {}, default: { bodyMapper: Mappers.AfdErrorResponse } @@ -719,9 +717,9 @@ const refreshValidationTokenOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, + Parameters.subscriptionId, Parameters.customDomainName ], headerParameters: [Parameters.accept], @@ -741,9 +739,9 @@ const listByProfileNextOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/cdn/arm-cdn/src/operations/aFDEndpoints.ts b/sdk/cdn/arm-cdn/src/operations/aFDEndpoints.ts index 6b447da3f3e7..07a59900f701 100644 --- a/sdk/cdn/arm-cdn/src/operations/aFDEndpoints.ts +++ b/sdk/cdn/arm-cdn/src/operations/aFDEndpoints.ts @@ -56,7 +56,8 @@ export class AFDEndpointsImpl implements AFDEndpoints { /** * Lists existing AzureFrontDoor endpoints. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param options The options parameters. */ public listByProfile( @@ -127,7 +128,8 @@ export class AFDEndpointsImpl implements AFDEndpoints { /** * Checks the quota and actual usage of endpoints under the given CDN profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @param options The options parameters. */ @@ -207,7 +209,8 @@ export class AFDEndpointsImpl implements AFDEndpoints { /** * Lists existing AzureFrontDoor endpoints. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param options The options parameters. */ private _listByProfile( @@ -225,7 +228,8 @@ export class AFDEndpointsImpl implements AFDEndpoints { * Gets an existing AzureFrontDoor endpoint with the specified endpoint name under the specified * subscription, resource group and profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @param options The options parameters. */ @@ -245,7 +249,8 @@ export class AFDEndpointsImpl implements AFDEndpoints { * Creates a new AzureFrontDoor endpoint with the specified endpoint name under the specified * subscription, resource group and profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @param endpoint Endpoint properties * @param options The options parameters. @@ -317,7 +322,8 @@ export class AFDEndpointsImpl implements AFDEndpoints { * Creates a new AzureFrontDoor endpoint with the specified endpoint name under the specified * subscription, resource group and profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @param endpoint Endpoint properties * @param options The options parameters. @@ -345,7 +351,8 @@ export class AFDEndpointsImpl implements AFDEndpoints { * update origins, use the Update Origin operation. To update origin groups, use the Update Origin * group operation. To update domains, use the Update Custom Domain operation. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @param endpointUpdateProperties Endpoint update properties * @param options The options parameters. @@ -425,7 +432,8 @@ export class AFDEndpointsImpl implements AFDEndpoints { * update origins, use the Update Origin operation. To update origin groups, use the Update Origin * group operation. To update domains, use the Update Custom Domain operation. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @param endpointUpdateProperties Endpoint update properties * @param options The options parameters. @@ -451,7 +459,8 @@ export class AFDEndpointsImpl implements AFDEndpoints { * Deletes an existing AzureFrontDoor endpoint with the specified endpoint name under the specified * subscription, resource group and profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @param options The options parameters. */ @@ -516,7 +525,8 @@ export class AFDEndpointsImpl implements AFDEndpoints { * Deletes an existing AzureFrontDoor endpoint with the specified endpoint name under the specified * subscription, resource group and profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @param options The options parameters. */ @@ -538,7 +548,8 @@ export class AFDEndpointsImpl implements AFDEndpoints { /** * Removes a content from AzureFrontDoor. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @param contents The list of paths to the content and the list of linked domains to be purged. Path * can be a full URL, e.g. '/pictures/city.png' which removes a single file, or a directory with a @@ -606,7 +617,8 @@ export class AFDEndpointsImpl implements AFDEndpoints { /** * Removes a content from AzureFrontDoor. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @param contents The list of paths to the content and the list of linked domains to be purged. Path * can be a full URL, e.g. '/pictures/city.png' which removes a single file, or a directory with a @@ -633,7 +645,8 @@ export class AFDEndpointsImpl implements AFDEndpoints { /** * Checks the quota and actual usage of endpoints under the given CDN profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @param options The options parameters. */ @@ -652,7 +665,8 @@ export class AFDEndpointsImpl implements AFDEndpoints { /** * Validates the custom domain mapping to ensure it maps to the correct CDN endpoint in DNS. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @param customDomainProperties Custom domain to be validated. * @param options The options parameters. @@ -679,7 +693,8 @@ export class AFDEndpointsImpl implements AFDEndpoints { /** * ListByProfileNext * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param nextLink The nextLink from the previous successful call to the ListByProfile method. * @param options The options parameters. */ @@ -698,7 +713,8 @@ export class AFDEndpointsImpl implements AFDEndpoints { /** * ListResourceUsageNext * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @param nextLink The nextLink from the previous successful call to the ListResourceUsage method. * @param options The options parameters. @@ -734,9 +750,9 @@ const listByProfileOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.profileName + Parameters.profileName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -756,9 +772,9 @@ const getOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, + Parameters.subscriptionId, Parameters.endpointName ], headerParameters: [Parameters.accept], @@ -785,13 +801,13 @@ const createOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.AfdErrorResponse } }, - requestBody: Parameters.endpoint1, + requestBody: Parameters.endpoint, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, + Parameters.subscriptionId, Parameters.endpointName ], headerParameters: [Parameters.accept, Parameters.contentType], @@ -819,13 +835,13 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.AfdErrorResponse } }, - requestBody: Parameters.endpointUpdateProperties1, + requestBody: Parameters.endpointUpdateProperties, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, + Parameters.subscriptionId, Parameters.endpointName ], headerParameters: [Parameters.accept, Parameters.contentType], @@ -848,9 +864,9 @@ const deleteOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, + Parameters.subscriptionId, Parameters.endpointName ], headerParameters: [Parameters.accept], @@ -873,9 +889,9 @@ const purgeContentOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, + Parameters.subscriptionId, Parameters.endpointName ], headerParameters: [Parameters.accept, Parameters.contentType], @@ -897,9 +913,9 @@ const listResourceUsageOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, + Parameters.subscriptionId, Parameters.endpointName ], headerParameters: [Parameters.accept], @@ -921,9 +937,9 @@ const validateCustomDomainOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, + Parameters.subscriptionId, Parameters.endpointName ], headerParameters: [Parameters.accept, Parameters.contentType], @@ -944,9 +960,9 @@ const listByProfileNextOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], @@ -966,9 +982,9 @@ const listResourceUsageNextOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.endpointName ], diff --git a/sdk/cdn/arm-cdn/src/operations/aFDOriginGroups.ts b/sdk/cdn/arm-cdn/src/operations/aFDOriginGroups.ts index d113cd17a55e..9bdf76744f77 100644 --- a/sdk/cdn/arm-cdn/src/operations/aFDOriginGroups.ts +++ b/sdk/cdn/arm-cdn/src/operations/aFDOriginGroups.ts @@ -51,7 +51,8 @@ export class AFDOriginGroupsImpl implements AFDOriginGroups { /** * Lists all of the existing origin groups within a profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param options The options parameters. */ public listByProfile( @@ -122,7 +123,8 @@ export class AFDOriginGroupsImpl implements AFDOriginGroups { /** * Checks the quota and actual usage of endpoints under the given CDN profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param originGroupName Name of the origin group which is unique within the endpoint. * @param options The options parameters. */ @@ -202,7 +204,8 @@ export class AFDOriginGroupsImpl implements AFDOriginGroups { /** * Lists all of the existing origin groups within a profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param options The options parameters. */ private _listByProfile( @@ -219,7 +222,8 @@ export class AFDOriginGroupsImpl implements AFDOriginGroups { /** * Gets an existing origin group within a profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param originGroupName Name of the origin group which is unique within the endpoint. * @param options The options parameters. */ @@ -238,7 +242,8 @@ export class AFDOriginGroupsImpl implements AFDOriginGroups { /** * Creates a new origin group within the specified profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param originGroupName Name of the origin group which is unique within the endpoint. * @param originGroup Origin group properties * @param options The options parameters. @@ -309,7 +314,8 @@ export class AFDOriginGroupsImpl implements AFDOriginGroups { /** * Creates a new origin group within the specified profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param originGroupName Name of the origin group which is unique within the endpoint. * @param originGroup Origin group properties * @param options The options parameters. @@ -334,7 +340,8 @@ export class AFDOriginGroupsImpl implements AFDOriginGroups { /** * Updates an existing origin group within a profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param originGroupName Name of the origin group which is unique within the profile. * @param originGroupUpdateProperties Origin group properties * @param options The options parameters. @@ -411,7 +418,8 @@ export class AFDOriginGroupsImpl implements AFDOriginGroups { /** * Updates an existing origin group within a profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param originGroupName Name of the origin group which is unique within the profile. * @param originGroupUpdateProperties Origin group properties * @param options The options parameters. @@ -436,7 +444,8 @@ export class AFDOriginGroupsImpl implements AFDOriginGroups { /** * Deletes an existing origin group within a profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param originGroupName Name of the origin group which is unique within the profile. * @param options The options parameters. */ @@ -500,7 +509,8 @@ export class AFDOriginGroupsImpl implements AFDOriginGroups { /** * Deletes an existing origin group within a profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param originGroupName Name of the origin group which is unique within the profile. * @param options The options parameters. */ @@ -522,7 +532,8 @@ export class AFDOriginGroupsImpl implements AFDOriginGroups { /** * Checks the quota and actual usage of endpoints under the given CDN profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param originGroupName Name of the origin group which is unique within the endpoint. * @param options The options parameters. */ @@ -541,7 +552,8 @@ export class AFDOriginGroupsImpl implements AFDOriginGroups { /** * ListByProfileNext * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param nextLink The nextLink from the previous successful call to the ListByProfile method. * @param options The options parameters. */ @@ -560,7 +572,8 @@ export class AFDOriginGroupsImpl implements AFDOriginGroups { /** * ListResourceUsageNext * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param originGroupName Name of the origin group which is unique within the endpoint. * @param nextLink The nextLink from the previous successful call to the ListResourceUsage method. * @param options The options parameters. @@ -596,9 +609,9 @@ const listByProfileOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.profileName + Parameters.profileName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -618,9 +631,9 @@ const getOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, + Parameters.subscriptionId, Parameters.originGroupName ], headerParameters: [Parameters.accept], @@ -647,13 +660,13 @@ const createOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.AfdErrorResponse } }, - requestBody: Parameters.originGroup1, + requestBody: Parameters.originGroup, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, + Parameters.subscriptionId, Parameters.originGroupName ], headerParameters: [Parameters.accept, Parameters.contentType], @@ -681,13 +694,13 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.AfdErrorResponse } }, - requestBody: Parameters.originGroupUpdateProperties1, + requestBody: Parameters.originGroupUpdateProperties, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, + Parameters.subscriptionId, Parameters.originGroupName ], headerParameters: [Parameters.accept, Parameters.contentType], @@ -710,9 +723,9 @@ const deleteOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, + Parameters.subscriptionId, Parameters.originGroupName ], headerParameters: [Parameters.accept], @@ -733,9 +746,9 @@ const listResourceUsageOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, + Parameters.subscriptionId, Parameters.originGroupName ], headerParameters: [Parameters.accept], @@ -755,9 +768,9 @@ const listByProfileNextOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], @@ -777,9 +790,9 @@ const listResourceUsageNextOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.originGroupName ], diff --git a/sdk/cdn/arm-cdn/src/operations/aFDOrigins.ts b/sdk/cdn/arm-cdn/src/operations/aFDOrigins.ts index 17ab6522f86e..4c0f80e2749f 100644 --- a/sdk/cdn/arm-cdn/src/operations/aFDOrigins.ts +++ b/sdk/cdn/arm-cdn/src/operations/aFDOrigins.ts @@ -46,7 +46,8 @@ export class AFDOriginsImpl implements AFDOrigins { /** * Lists all of the existing origins within an origin group. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param originGroupName Name of the origin group which is unique within the profile. * @param options The options parameters. */ @@ -126,7 +127,8 @@ export class AFDOriginsImpl implements AFDOrigins { /** * Lists all of the existing origins within an origin group. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param originGroupName Name of the origin group which is unique within the profile. * @param options The options parameters. */ @@ -145,7 +147,8 @@ export class AFDOriginsImpl implements AFDOrigins { /** * Gets an existing origin within an origin group. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param originGroupName Name of the origin group which is unique within the profile. * @param originName Name of the origin which is unique within the profile. * @param options The options parameters. @@ -166,7 +169,8 @@ export class AFDOriginsImpl implements AFDOrigins { /** * Creates a new origin within the specified origin group. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param originGroupName Name of the origin group which is unique within the profile. * @param originName Name of the origin that is unique within the profile. * @param origin Origin properties @@ -246,7 +250,8 @@ export class AFDOriginsImpl implements AFDOrigins { /** * Creates a new origin within the specified origin group. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param originGroupName Name of the origin group which is unique within the profile. * @param originName Name of the origin that is unique within the profile. * @param origin Origin properties @@ -274,7 +279,8 @@ export class AFDOriginsImpl implements AFDOrigins { /** * Updates an existing origin within an origin group. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param originGroupName Name of the origin group which is unique within the profile. * @param originName Name of the origin which is unique within the profile. * @param originUpdateProperties Origin properties @@ -354,7 +360,8 @@ export class AFDOriginsImpl implements AFDOrigins { /** * Updates an existing origin within an origin group. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param originGroupName Name of the origin group which is unique within the profile. * @param originName Name of the origin which is unique within the profile. * @param originUpdateProperties Origin properties @@ -382,7 +389,8 @@ export class AFDOriginsImpl implements AFDOrigins { /** * Deletes an existing origin within an origin group. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param originGroupName Name of the origin group which is unique within the profile. * @param originName Name of the origin which is unique within the profile. * @param options The options parameters. @@ -448,7 +456,8 @@ export class AFDOriginsImpl implements AFDOrigins { /** * Deletes an existing origin within an origin group. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param originGroupName Name of the origin group which is unique within the profile. * @param originName Name of the origin which is unique within the profile. * @param options The options parameters. @@ -473,7 +482,8 @@ export class AFDOriginsImpl implements AFDOrigins { /** * ListByOriginGroupNext * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param originGroupName Name of the origin group which is unique within the profile. * @param nextLink The nextLink from the previous successful call to the ListByOriginGroup method. * @param options The options parameters. @@ -509,9 +519,9 @@ const listByOriginGroupOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, + Parameters.subscriptionId, Parameters.originGroupName ], headerParameters: [Parameters.accept], @@ -532,11 +542,11 @@ const getOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, - Parameters.originName, - Parameters.originGroupName + Parameters.subscriptionId, + Parameters.originGroupName, + Parameters.originName ], headerParameters: [Parameters.accept], serializer @@ -562,15 +572,15 @@ const createOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.AfdErrorResponse } }, - requestBody: Parameters.origin1, + requestBody: Parameters.origin, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, - Parameters.originName, - Parameters.originGroupName + Parameters.subscriptionId, + Parameters.originGroupName, + Parameters.originName ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", @@ -597,15 +607,15 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.AfdErrorResponse } }, - requestBody: Parameters.originUpdateProperties1, + requestBody: Parameters.originUpdateProperties, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, - Parameters.originName, - Parameters.originGroupName + Parameters.subscriptionId, + Parameters.originGroupName, + Parameters.originName ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", @@ -627,11 +637,11 @@ const deleteOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, - Parameters.originName, - Parameters.originGroupName + Parameters.subscriptionId, + Parameters.originGroupName, + Parameters.originName ], headerParameters: [Parameters.accept], serializer @@ -650,9 +660,9 @@ const listByOriginGroupNextOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.originGroupName ], diff --git a/sdk/cdn/arm-cdn/src/operations/aFDProfiles.ts b/sdk/cdn/arm-cdn/src/operations/aFDProfiles.ts index 1e9b1319e500..142e9f118e28 100644 --- a/sdk/cdn/arm-cdn/src/operations/aFDProfiles.ts +++ b/sdk/cdn/arm-cdn/src/operations/aFDProfiles.ts @@ -17,7 +17,7 @@ import { AFDProfilesListResourceUsageNextOptionalParams, AFDProfilesListResourceUsageOptionalParams, AFDProfilesListResourceUsageResponse, - ValidateCustomDomainInput, + CheckHostNameAvailabilityInput, AFDProfilesCheckHostNameAvailabilityOptionalParams, AFDProfilesCheckHostNameAvailabilityResponse, AFDProfilesListResourceUsageNextResponse @@ -39,7 +39,8 @@ export class AFDProfilesImpl implements AFDProfiles { /** * Checks the quota and actual usage of endpoints under the given CDN profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile + * which is unique within the resource group. * @param options The options parameters. */ public listResourceUsage( @@ -110,7 +111,8 @@ export class AFDProfilesImpl implements AFDProfiles { /** * Checks the quota and actual usage of endpoints under the given CDN profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile + * which is unique within the resource group. * @param options The options parameters. */ private _listResourceUsage( @@ -127,14 +129,15 @@ export class AFDProfilesImpl implements AFDProfiles { /** * Validates the custom domain mapping to ensure it maps to the correct CDN endpoint in DNS. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile + * which is unique within the resource group. * @param checkHostNameAvailabilityInput Custom domain to be validated. * @param options The options parameters. */ checkHostNameAvailability( resourceGroupName: string, profileName: string, - checkHostNameAvailabilityInput: ValidateCustomDomainInput, + checkHostNameAvailabilityInput: CheckHostNameAvailabilityInput, options?: AFDProfilesCheckHostNameAvailabilityOptionalParams ): Promise { return this.client.sendOperationRequest( @@ -151,7 +154,8 @@ export class AFDProfilesImpl implements AFDProfiles { /** * ListResourceUsageNext * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile + * which is unique within the resource group. * @param nextLink The nextLink from the previous successful call to the ListResourceUsage method. * @param options The options parameters. */ @@ -185,9 +189,9 @@ const listResourceUsageOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.profileName + Parameters.profileName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -198,7 +202,7 @@ const checkHostNameAvailabilityOperationSpec: coreClient.OperationSpec = { httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.ValidateCustomDomainOutput + bodyMapper: Mappers.CheckNameAvailabilityOutput }, default: { bodyMapper: Mappers.AfdErrorResponse @@ -208,9 +212,9 @@ const checkHostNameAvailabilityOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.profileName + Parameters.profileName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", @@ -230,9 +234,9 @@ const listResourceUsageNextOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/cdn/arm-cdn/src/operations/customDomains.ts b/sdk/cdn/arm-cdn/src/operations/customDomains.ts index e187e73fa431..d4554099f42b 100644 --- a/sdk/cdn/arm-cdn/src/operations/customDomains.ts +++ b/sdk/cdn/arm-cdn/src/operations/customDomains.ts @@ -26,7 +26,9 @@ import { CustomDomainsCreateResponse, CustomDomainsDeleteOptionalParams, CustomDomainsDisableCustomHttpsOptionalParams, + CustomDomainsDisableCustomHttpsResponse, CustomDomainsEnableCustomHttpsOptionalParams, + CustomDomainsEnableCustomHttpsResponse, CustomDomainsListByEndpointNextResponse } from "../models"; @@ -380,54 +382,14 @@ export class CustomDomainsImpl implements CustomDomains { * @param customDomainName Name of the custom domain within an endpoint. * @param options The options parameters. */ - async beginDisableCustomHttps( + disableCustomHttps( resourceGroupName: string, profileName: string, endpointName: string, customDomainName: string, options?: CustomDomainsDisableCustomHttpsOptionalParams - ): Promise, void>> { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = new LroImpl( - sendOperation, + ): Promise { + return this.client.sendOperationRequest( { resourceGroupName, profileName, @@ -437,35 +399,6 @@ export class CustomDomainsImpl implements CustomDomains { }, disableCustomHttpsOperationSpec ); - return new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs - }); - } - - /** - * Disable https delivery of the custom domain. - * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. - * @param endpointName Name of the endpoint under the profile which is unique globally. - * @param customDomainName Name of the custom domain within an endpoint. - * @param options The options parameters. - */ - async beginDisableCustomHttpsAndWait( - resourceGroupName: string, - profileName: string, - endpointName: string, - customDomainName: string, - options?: CustomDomainsDisableCustomHttpsOptionalParams - ): Promise { - const poller = await this.beginDisableCustomHttps( - resourceGroupName, - profileName, - endpointName, - customDomainName, - options - ); - return poller.pollUntilDone(); } /** @@ -476,54 +409,14 @@ export class CustomDomainsImpl implements CustomDomains { * @param customDomainName Name of the custom domain within an endpoint. * @param options The options parameters. */ - async beginEnableCustomHttps( + enableCustomHttps( resourceGroupName: string, profileName: string, endpointName: string, customDomainName: string, options?: CustomDomainsEnableCustomHttpsOptionalParams - ): Promise, void>> { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = new LroImpl( - sendOperation, + ): Promise { + return this.client.sendOperationRequest( { resourceGroupName, profileName, @@ -533,35 +426,6 @@ export class CustomDomainsImpl implements CustomDomains { }, enableCustomHttpsOperationSpec ); - return new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs - }); - } - - /** - * Enable https delivery of the custom domain. - * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. - * @param endpointName Name of the endpoint under the profile which is unique globally. - * @param customDomainName Name of the custom domain within an endpoint. - * @param options The options parameters. - */ - async beginEnableCustomHttpsAndWait( - resourceGroupName: string, - profileName: string, - endpointName: string, - customDomainName: string, - options?: CustomDomainsEnableCustomHttpsOptionalParams - ): Promise { - const poller = await this.beginEnableCustomHttps( - resourceGroupName, - profileName, - endpointName, - customDomainName, - options - ); - return poller.pollUntilDone(); } /** @@ -603,9 +467,9 @@ const listByEndpointOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, + Parameters.subscriptionId, Parameters.endpointName ], headerParameters: [Parameters.accept], @@ -626,11 +490,11 @@ const getOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, - Parameters.endpointName, - Parameters.customDomainName + Parameters.subscriptionId, + Parameters.customDomainName, + Parameters.endpointName ], headerParameters: [Parameters.accept], serializer @@ -660,11 +524,11 @@ const createOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, - Parameters.endpointName, - Parameters.customDomainName + Parameters.subscriptionId, + Parameters.customDomainName, + Parameters.endpointName ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", @@ -686,11 +550,11 @@ const deleteOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, - Parameters.endpointName, - Parameters.customDomainName + Parameters.subscriptionId, + Parameters.customDomainName, + Parameters.endpointName ], headerParameters: [Parameters.accept], serializer @@ -701,9 +565,9 @@ const disableCustomHttpsOperationSpec: coreClient.OperationSpec = { httpMethod: "POST", responses: { 200: {}, - 201: {}, - 202: {}, - 204: {}, + 202: { + bodyMapper: Mappers.CustomDomain + }, default: { bodyMapper: Mappers.ErrorResponse } @@ -711,11 +575,11 @@ const disableCustomHttpsOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, - Parameters.endpointName, - Parameters.customDomainName + Parameters.subscriptionId, + Parameters.customDomainName, + Parameters.endpointName ], headerParameters: [Parameters.accept], serializer @@ -726,9 +590,9 @@ const enableCustomHttpsOperationSpec: coreClient.OperationSpec = { httpMethod: "POST", responses: { 200: {}, - 201: {}, - 202: {}, - 204: {}, + 202: { + bodyMapper: Mappers.CustomDomain + }, default: { bodyMapper: Mappers.ErrorResponse } @@ -737,11 +601,11 @@ const enableCustomHttpsOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, - Parameters.endpointName, - Parameters.customDomainName + Parameters.subscriptionId, + Parameters.customDomainName, + Parameters.endpointName ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", @@ -761,9 +625,9 @@ const listByEndpointNextOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.endpointName ], diff --git a/sdk/cdn/arm-cdn/src/operations/endpoints.ts b/sdk/cdn/arm-cdn/src/operations/endpoints.ts index f2a181e163c8..1a3ae624206f 100644 --- a/sdk/cdn/arm-cdn/src/operations/endpoints.ts +++ b/sdk/cdn/arm-cdn/src/operations/endpoints.ts @@ -1017,9 +1017,9 @@ const listByProfileOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.profileName + Parameters.profileName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -1039,9 +1039,9 @@ const getOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, + Parameters.subscriptionId, Parameters.endpointName ], headerParameters: [Parameters.accept], @@ -1068,13 +1068,13 @@ const createOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.endpoint, + requestBody: Parameters.endpoint1, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, + Parameters.subscriptionId, Parameters.endpointName ], headerParameters: [Parameters.accept, Parameters.contentType], @@ -1102,13 +1102,13 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.endpointUpdateProperties, + requestBody: Parameters.endpointUpdateProperties1, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, + Parameters.subscriptionId, Parameters.endpointName ], headerParameters: [Parameters.accept, Parameters.contentType], @@ -1131,9 +1131,9 @@ const deleteOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, + Parameters.subscriptionId, Parameters.endpointName ], headerParameters: [Parameters.accept], @@ -1163,9 +1163,9 @@ const startOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, + Parameters.subscriptionId, Parameters.endpointName ], headerParameters: [Parameters.accept], @@ -1195,9 +1195,9 @@ const stopOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, + Parameters.subscriptionId, Parameters.endpointName ], headerParameters: [Parameters.accept], @@ -1220,9 +1220,9 @@ const purgeContentOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, + Parameters.subscriptionId, Parameters.endpointName ], headerParameters: [Parameters.accept, Parameters.contentType], @@ -1246,9 +1246,9 @@ const loadContentOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, + Parameters.subscriptionId, Parameters.endpointName ], headerParameters: [Parameters.accept, Parameters.contentType], @@ -1271,9 +1271,9 @@ const validateCustomDomainOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, + Parameters.subscriptionId, Parameters.endpointName ], headerParameters: [Parameters.accept, Parameters.contentType], @@ -1295,9 +1295,9 @@ const listResourceUsageOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, + Parameters.subscriptionId, Parameters.endpointName ], headerParameters: [Parameters.accept], @@ -1317,9 +1317,9 @@ const listByProfileNextOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], @@ -1339,9 +1339,9 @@ const listResourceUsageNextOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.endpointName ], diff --git a/sdk/cdn/arm-cdn/src/operations/index.ts b/sdk/cdn/arm-cdn/src/operations/index.ts index 9fc6a1125747..6f1601b688cb 100644 --- a/sdk/cdn/arm-cdn/src/operations/index.ts +++ b/sdk/cdn/arm-cdn/src/operations/index.ts @@ -6,14 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./profiles"; -export * from "./endpoints"; -export * from "./origins"; -export * from "./originGroups"; -export * from "./customDomains"; -export * from "./resourceUsageOperations"; -export * from "./operations"; -export * from "./edgeNodes"; export * from "./aFDProfiles"; export * from "./aFDCustomDomains"; export * from "./aFDEndpoints"; @@ -26,5 +18,13 @@ export * from "./securityPolicies"; export * from "./secrets"; export * from "./validate"; export * from "./logAnalytics"; +export * from "./profiles"; +export * from "./endpoints"; +export * from "./origins"; +export * from "./originGroups"; +export * from "./customDomains"; +export * from "./resourceUsageOperations"; +export * from "./operations"; +export * from "./edgeNodes"; export * from "./policies"; export * from "./managedRuleSets"; diff --git a/sdk/cdn/arm-cdn/src/operations/logAnalytics.ts b/sdk/cdn/arm-cdn/src/operations/logAnalytics.ts index 522cc3e38b56..cfdff761e1b6 100644 --- a/sdk/cdn/arm-cdn/src/operations/logAnalytics.ts +++ b/sdk/cdn/arm-cdn/src/operations/logAnalytics.ts @@ -48,7 +48,8 @@ export class LogAnalyticsImpl implements LogAnalytics { /** * Get log report for AFD profile * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. which is unique within the resource group. * @param metrics Array of LogMetric * @param dateTimeBegin * @param dateTimeEnd @@ -87,7 +88,8 @@ export class LogAnalyticsImpl implements LogAnalytics { /** * Get log analytics ranking report for AFD profile * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. which is unique within the resource group. * @param rankings Array of LogRanking * @param metrics Array of LogRankingMetric * @param maxRanking @@ -123,7 +125,8 @@ export class LogAnalyticsImpl implements LogAnalytics { /** * Get all available location names for AFD log analytics report. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. which is unique within the resource group. * @param options The options parameters. */ getLogAnalyticsLocations( @@ -140,7 +143,8 @@ export class LogAnalyticsImpl implements LogAnalytics { /** * Get all endpoints and custom domains available for AFD log report * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. which is unique within the resource group. * @param options The options parameters. */ getLogAnalyticsResources( @@ -157,7 +161,8 @@ export class LogAnalyticsImpl implements LogAnalytics { /** * Get Waf related log analytics report for AFD profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. which is unique within the resource group. * @param metrics Array of WafMetric * @param dateTimeBegin * @param dateTimeEnd @@ -190,7 +195,8 @@ export class LogAnalyticsImpl implements LogAnalytics { /** * Get WAF log analytics charts for AFD profile * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. which is unique within the resource group. * @param metrics Array of WafMetric * @param dateTimeBegin * @param dateTimeEnd @@ -252,9 +258,9 @@ const getLogAnalyticsMetricsOperationSpec: coreClient.OperationSpec = { ], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.profileName + Parameters.profileName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -282,9 +288,9 @@ const getLogAnalyticsRankingsOperationSpec: coreClient.OperationSpec = { ], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.profileName + Parameters.profileName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -304,9 +310,9 @@ const getLogAnalyticsLocationsOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.profileName + Parameters.profileName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -326,9 +332,9 @@ const getLogAnalyticsResourcesOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.profileName + Parameters.profileName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -357,9 +363,9 @@ const getWafLogAnalyticsMetricsOperationSpec: coreClient.OperationSpec = { ], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.profileName + Parameters.profileName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -388,9 +394,9 @@ const getWafLogAnalyticsRankingsOperationSpec: coreClient.OperationSpec = { ], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.profileName + Parameters.profileName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/cdn/arm-cdn/src/operations/managedRuleSets.ts b/sdk/cdn/arm-cdn/src/operations/managedRuleSets.ts index 6e98dd89b007..45ada4479ba3 100644 --- a/sdk/cdn/arm-cdn/src/operations/managedRuleSets.ts +++ b/sdk/cdn/arm-cdn/src/operations/managedRuleSets.ts @@ -105,7 +105,7 @@ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Cdn/CdnWebApplicationFirewallManagedRuleSets", + "/subscriptions/{subscriptionId}/providers/Microsoft.Cdn/cdnWebApplicationFirewallManagedRuleSets", httpMethod: "GET", responses: { 200: { diff --git a/sdk/cdn/arm-cdn/src/operations/originGroups.ts b/sdk/cdn/arm-cdn/src/operations/originGroups.ts index e4f8844ab48c..1c66f22fcf9d 100644 --- a/sdk/cdn/arm-cdn/src/operations/originGroups.ts +++ b/sdk/cdn/arm-cdn/src/operations/originGroups.ts @@ -518,9 +518,9 @@ const listByEndpointOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, + Parameters.subscriptionId, Parameters.endpointName ], headerParameters: [Parameters.accept], @@ -541,9 +541,9 @@ const getOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, + Parameters.subscriptionId, Parameters.endpointName, Parameters.originGroupName ], @@ -571,13 +571,13 @@ const createOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.originGroup, + requestBody: Parameters.originGroup1, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, + Parameters.subscriptionId, Parameters.endpointName, Parameters.originGroupName ], @@ -606,13 +606,13 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.originGroupUpdateProperties, + requestBody: Parameters.originGroupUpdateProperties1, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, + Parameters.subscriptionId, Parameters.endpointName, Parameters.originGroupName ], @@ -636,9 +636,9 @@ const deleteOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, + Parameters.subscriptionId, Parameters.endpointName, Parameters.originGroupName ], @@ -659,9 +659,9 @@ const listByEndpointNextOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.endpointName ], diff --git a/sdk/cdn/arm-cdn/src/operations/origins.ts b/sdk/cdn/arm-cdn/src/operations/origins.ts index bc4ee3fe1bd2..c0cd1d7b8728 100644 --- a/sdk/cdn/arm-cdn/src/operations/origins.ts +++ b/sdk/cdn/arm-cdn/src/operations/origins.ts @@ -500,9 +500,9 @@ const listByEndpointOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, + Parameters.subscriptionId, Parameters.endpointName ], headerParameters: [Parameters.accept], @@ -523,9 +523,9 @@ const getOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, + Parameters.subscriptionId, Parameters.endpointName, Parameters.originName ], @@ -553,13 +553,13 @@ const createOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.origin, + requestBody: Parameters.origin1, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, + Parameters.subscriptionId, Parameters.endpointName, Parameters.originName ], @@ -588,13 +588,13 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.originUpdateProperties, + requestBody: Parameters.originUpdateProperties1, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, + Parameters.subscriptionId, Parameters.endpointName, Parameters.originName ], @@ -618,9 +618,9 @@ const deleteOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, + Parameters.subscriptionId, Parameters.endpointName, Parameters.originName ], @@ -641,9 +641,9 @@ const listByEndpointNextOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.endpointName ], diff --git a/sdk/cdn/arm-cdn/src/operations/policies.ts b/sdk/cdn/arm-cdn/src/operations/policies.ts index 905014b0fb6a..8732ca593175 100644 --- a/sdk/cdn/arm-cdn/src/operations/policies.ts +++ b/sdk/cdn/arm-cdn/src/operations/policies.ts @@ -358,7 +358,7 @@ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/cdnWebApplicationFirewallPolicies", httpMethod: "GET", responses: { 200: { @@ -379,7 +379,7 @@ const listOperationSpec: coreClient.OperationSpec = { }; const getOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/{policyName}", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/cdnWebApplicationFirewallPolicies/{policyName}", httpMethod: "GET", responses: { 200: { @@ -401,7 +401,7 @@ const getOperationSpec: coreClient.OperationSpec = { }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/{policyName}", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/cdnWebApplicationFirewallPolicies/{policyName}", httpMethod: "PUT", responses: { 200: { @@ -434,7 +434,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }; const updateOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/{policyName}", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/cdnWebApplicationFirewallPolicies/{policyName}", httpMethod: "PATCH", responses: { 200: { @@ -467,9 +467,15 @@ const updateOperationSpec: coreClient.OperationSpec = { }; const deleteOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/{policyName}", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/cdnWebApplicationFirewallPolicies/{policyName}", httpMethod: "DELETE", - responses: { 200: {}, 204: {} }, + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -477,6 +483,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName1, Parameters.policyName ], + headerParameters: [Parameters.accept], serializer }; const listNextOperationSpec: coreClient.OperationSpec = { diff --git a/sdk/cdn/arm-cdn/src/operations/profiles.ts b/sdk/cdn/arm-cdn/src/operations/profiles.ts index 9e06d894c38b..fa0b9a260f2e 100644 --- a/sdk/cdn/arm-cdn/src/operations/profiles.ts +++ b/sdk/cdn/arm-cdn/src/operations/profiles.ts @@ -57,7 +57,8 @@ export class ProfilesImpl implements Profiles { } /** - * Lists all of the CDN profiles within an Azure subscription. + * Lists all of the Azure Front Door Standard, Azure Front Door Premium, and CDN profiles within an + * Azure subscription. * @param options The options parameters. */ public list( @@ -99,7 +100,8 @@ export class ProfilesImpl implements Profiles { } /** - * Lists all of the CDN profiles within a resource group. + * Lists all of the Azure Front Door Standard, Azure Front Door Premium, and CDN profiles within a + * resource group. * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param options The options parameters. */ @@ -152,9 +154,11 @@ export class ProfilesImpl implements Profiles { } /** - * Checks the quota and actual usage of endpoints under the given CDN profile. + * Checks the quota and actual usage of endpoints under the given Azure Front Door Standard or Azure + * Front Door Premium or CDN profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile + * which is unique within the resource group. * @param options The options parameters. */ public listResourceUsage( @@ -223,7 +227,8 @@ export class ProfilesImpl implements Profiles { } /** - * Lists all of the CDN profiles within an Azure subscription. + * Lists all of the Azure Front Door Standard, Azure Front Door Premium, and CDN profiles within an + * Azure subscription. * @param options The options parameters. */ private _list( @@ -233,7 +238,8 @@ export class ProfilesImpl implements Profiles { } /** - * Lists all of the CDN profiles within a resource group. + * Lists all of the Azure Front Door Standard, Azure Front Door Premium, and CDN profiles within a + * resource group. * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param options The options parameters. */ @@ -248,10 +254,11 @@ export class ProfilesImpl implements Profiles { } /** - * Gets a CDN profile with the specified profile name under the specified subscription and resource - * group. + * Gets an Azure Front Door Standard or Azure Front Door Premium or CDN profile with the specified + * profile name under the specified subscription and resource group. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile + * which is unique within the resource group. * @param options The options parameters. */ get( @@ -266,9 +273,11 @@ export class ProfilesImpl implements Profiles { } /** - * Creates a new CDN profile with a profile name under the specified subscription and resource group. + * Creates a new Azure Front Door Standard or Azure Front Door Premium or CDN profile with a profile + * name under the specified subscription and resource group. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile + * which is unique within the resource group. * @param profile Profile properties needed to create a new profile. * @param options The options parameters. */ @@ -334,9 +343,11 @@ export class ProfilesImpl implements Profiles { } /** - * Creates a new CDN profile with a profile name under the specified subscription and resource group. + * Creates a new Azure Front Door Standard or Azure Front Door Premium or CDN profile with a profile + * name under the specified subscription and resource group. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile + * which is unique within the resource group. * @param profile Profile properties needed to create a new profile. * @param options The options parameters. */ @@ -356,10 +367,11 @@ export class ProfilesImpl implements Profiles { } /** - * Updates an existing CDN profile with the specified profile name under the specified subscription and - * resource group. + * Updates an existing Azure Front Door Standard or Azure Front Door Premium or CDN profile with the + * specified profile name under the specified subscription and resource group. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile + * which is unique within the resource group. * @param profileUpdateParameters Profile properties needed to update an existing profile. * @param options The options parameters. */ @@ -425,10 +437,11 @@ export class ProfilesImpl implements Profiles { } /** - * Updates an existing CDN profile with the specified profile name under the specified subscription and - * resource group. + * Updates an existing Azure Front Door Standard or Azure Front Door Premium or CDN profile with the + * specified profile name under the specified subscription and resource group. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile + * which is unique within the resource group. * @param profileUpdateParameters Profile properties needed to update an existing profile. * @param options The options parameters. */ @@ -448,10 +461,12 @@ export class ProfilesImpl implements Profiles { } /** - * Deletes an existing CDN profile with the specified parameters. Deleting a profile will result in the - * deletion of all of the sub-resources including endpoints, origins and custom domains. + * Deletes an existing Azure Front Door Standard or Azure Front Door Premium or CDN profile with the + * specified parameters. Deleting a profile will result in the deletion of all of the sub-resources + * including endpoints, origins and custom domains. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile + * which is unique within the resource group. * @param options The options parameters. */ async beginDelete( @@ -510,10 +525,12 @@ export class ProfilesImpl implements Profiles { } /** - * Deletes an existing CDN profile with the specified parameters. Deleting a profile will result in the - * deletion of all of the sub-resources including endpoints, origins and custom domains. + * Deletes an existing Azure Front Door Standard or Azure Front Door Premium or CDN profile with the + * specified parameters. Deleting a profile will result in the deletion of all of the sub-resources + * including endpoints, origins and custom domains. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile + * which is unique within the resource group. * @param options The options parameters. */ async beginDeleteAndWait( @@ -553,7 +570,8 @@ export class ProfilesImpl implements Profiles { * Gets the supported optimization types for the current profile. A user can create an endpoint with an * optimization type from the listed values. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile + * which is unique within the resource group. * @param options The options parameters. */ listSupportedOptimizationTypes( @@ -568,9 +586,11 @@ export class ProfilesImpl implements Profiles { } /** - * Checks the quota and actual usage of endpoints under the given CDN profile. + * Checks the quota and actual usage of endpoints under the given Azure Front Door Standard or Azure + * Front Door Premium or CDN profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile + * which is unique within the resource group. * @param options The options parameters. */ private _listResourceUsage( @@ -619,7 +639,8 @@ export class ProfilesImpl implements Profiles { /** * ListResourceUsageNext * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile + * which is unique within the resource group. * @param nextLink The nextLink from the previous successful call to the ListResourceUsage method. * @param options The options parameters. */ @@ -669,8 +690,8 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -690,9 +711,9 @@ const getOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.profileName + Parameters.profileName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -722,9 +743,9 @@ const createOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.profileName + Parameters.profileName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", @@ -755,9 +776,9 @@ const updateOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.profileName + Parameters.profileName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", @@ -779,9 +800,9 @@ const deleteOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.profileName + Parameters.profileName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -801,9 +822,9 @@ const generateSsoUriOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.profileName + Parameters.profileName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -823,9 +844,9 @@ const listSupportedOptimizationTypesOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.profileName + Parameters.profileName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -845,9 +866,9 @@ const listResourceUsageOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.profileName + Parameters.profileName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -886,8 +907,8 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], @@ -907,9 +928,9 @@ const listResourceUsageNextOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/cdn/arm-cdn/src/operations/routes.ts b/sdk/cdn/arm-cdn/src/operations/routes.ts index 6c6c788be8d0..9c595a026bc8 100644 --- a/sdk/cdn/arm-cdn/src/operations/routes.ts +++ b/sdk/cdn/arm-cdn/src/operations/routes.ts @@ -46,7 +46,8 @@ export class RoutesImpl implements Routes { /** * Lists all of the existing origins within a profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @param options The options parameters. */ @@ -126,7 +127,8 @@ export class RoutesImpl implements Routes { /** * Lists all of the existing origins within a profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @param options The options parameters. */ @@ -146,7 +148,8 @@ export class RoutesImpl implements Routes { * Gets an existing route with the specified route name under the specified subscription, resource * group, profile, and AzureFrontDoor endpoint. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @param routeName Name of the routing rule. * @param options The options parameters. @@ -168,7 +171,8 @@ export class RoutesImpl implements Routes { * Creates a new route with the specified route name under the specified subscription, resource group, * profile, and AzureFrontDoor endpoint. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @param routeName Name of the routing rule. * @param route Route properties @@ -246,7 +250,8 @@ export class RoutesImpl implements Routes { * Creates a new route with the specified route name under the specified subscription, resource group, * profile, and AzureFrontDoor endpoint. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @param routeName Name of the routing rule. * @param route Route properties @@ -275,7 +280,8 @@ export class RoutesImpl implements Routes { * Updates an existing route with the specified route name under the specified subscription, resource * group, profile, and AzureFrontDoor endpoint. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @param routeName Name of the routing rule. * @param routeUpdateProperties Route update properties @@ -353,7 +359,8 @@ export class RoutesImpl implements Routes { * Updates an existing route with the specified route name under the specified subscription, resource * group, profile, and AzureFrontDoor endpoint. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @param routeName Name of the routing rule. * @param routeUpdateProperties Route update properties @@ -382,7 +389,8 @@ export class RoutesImpl implements Routes { * Deletes an existing route with the specified route name under the specified subscription, resource * group, profile, and AzureFrontDoor endpoint. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @param routeName Name of the routing rule. * @param options The options parameters. @@ -449,7 +457,8 @@ export class RoutesImpl implements Routes { * Deletes an existing route with the specified route name under the specified subscription, resource * group, profile, and AzureFrontDoor endpoint. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @param routeName Name of the routing rule. * @param options The options parameters. @@ -474,7 +483,8 @@ export class RoutesImpl implements Routes { /** * ListByEndpointNext * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @param nextLink The nextLink from the previous successful call to the ListByEndpoint method. * @param options The options parameters. @@ -510,9 +520,9 @@ const listByEndpointOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, + Parameters.subscriptionId, Parameters.endpointName ], headerParameters: [Parameters.accept], @@ -533,9 +543,9 @@ const getOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, + Parameters.subscriptionId, Parameters.endpointName, Parameters.routeName ], @@ -567,9 +577,9 @@ const createOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, + Parameters.subscriptionId, Parameters.endpointName, Parameters.routeName ], @@ -602,9 +612,9 @@ const updateOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, + Parameters.subscriptionId, Parameters.endpointName, Parameters.routeName ], @@ -628,9 +638,9 @@ const deleteOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, + Parameters.subscriptionId, Parameters.endpointName, Parameters.routeName ], @@ -651,9 +661,9 @@ const listByEndpointNextOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.endpointName ], diff --git a/sdk/cdn/arm-cdn/src/operations/ruleSets.ts b/sdk/cdn/arm-cdn/src/operations/ruleSets.ts index 8f429120204a..7440a214f01a 100644 --- a/sdk/cdn/arm-cdn/src/operations/ruleSets.ts +++ b/sdk/cdn/arm-cdn/src/operations/ruleSets.ts @@ -48,7 +48,8 @@ export class RuleSetsImpl implements RuleSets { /** * Lists existing AzureFrontDoor rule sets within a profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param options The options parameters. */ public listByProfile( @@ -119,7 +120,8 @@ export class RuleSetsImpl implements RuleSets { /** * Checks the quota and actual usage of endpoints under the given CDN profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param ruleSetName Name of the rule set under the profile which is unique globally. * @param options The options parameters. */ @@ -199,7 +201,8 @@ export class RuleSetsImpl implements RuleSets { /** * Lists existing AzureFrontDoor rule sets within a profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param options The options parameters. */ private _listByProfile( @@ -217,7 +220,8 @@ export class RuleSetsImpl implements RuleSets { * Gets an existing AzureFrontDoor rule set with the specified rule set name under the specified * subscription, resource group and profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param ruleSetName Name of the rule set under the profile which is unique globally. * @param options The options parameters. */ @@ -236,99 +240,29 @@ export class RuleSetsImpl implements RuleSets { /** * Creates a new rule set within the specified profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param ruleSetName Name of the rule set under the profile which is unique globally * @param options The options parameters. */ - async beginCreate( + create( resourceGroupName: string, profileName: string, ruleSetName: string, options?: RuleSetsCreateOptionalParams - ): Promise< - PollerLike< - PollOperationState, - RuleSetsCreateResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = new LroImpl( - sendOperation, + ): Promise { + return this.client.sendOperationRequest( { resourceGroupName, profileName, ruleSetName, options }, createOperationSpec ); - return new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "azure-async-operation" - }); - } - - /** - * Creates a new rule set within the specified profile. - * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. - * @param ruleSetName Name of the rule set under the profile which is unique globally - * @param options The options parameters. - */ - async beginCreateAndWait( - resourceGroupName: string, - profileName: string, - ruleSetName: string, - options?: RuleSetsCreateOptionalParams - ): Promise { - const poller = await this.beginCreate( - resourceGroupName, - profileName, - ruleSetName, - options - ); - return poller.pollUntilDone(); } /** * Deletes an existing AzureFrontDoor rule set with the specified rule set name under the specified * subscription, resource group and profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param ruleSetName Name of the rule set under the profile which is unique globally. * @param options The options parameters. */ @@ -393,7 +327,8 @@ export class RuleSetsImpl implements RuleSets { * Deletes an existing AzureFrontDoor rule set with the specified rule set name under the specified * subscription, resource group and profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param ruleSetName Name of the rule set under the profile which is unique globally. * @param options The options parameters. */ @@ -415,7 +350,8 @@ export class RuleSetsImpl implements RuleSets { /** * Checks the quota and actual usage of endpoints under the given CDN profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param ruleSetName Name of the rule set under the profile which is unique globally. * @param options The options parameters. */ @@ -434,7 +370,8 @@ export class RuleSetsImpl implements RuleSets { /** * ListByProfileNext * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param nextLink The nextLink from the previous successful call to the ListByProfile method. * @param options The options parameters. */ @@ -453,7 +390,8 @@ export class RuleSetsImpl implements RuleSets { /** * ListResourceUsageNext * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param ruleSetName Name of the rule set under the profile which is unique globally. * @param nextLink The nextLink from the previous successful call to the ListResourceUsage method. * @param options The options parameters. @@ -489,9 +427,9 @@ const listByProfileOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.profileName + Parameters.profileName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -511,9 +449,9 @@ const getOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, + Parameters.subscriptionId, Parameters.ruleSetName ], headerParameters: [Parameters.accept], @@ -530,12 +468,6 @@ const createOperationSpec: coreClient.OperationSpec = { 201: { bodyMapper: Mappers.RuleSet }, - 202: { - bodyMapper: Mappers.RuleSet - }, - 204: { - bodyMapper: Mappers.RuleSet - }, default: { bodyMapper: Mappers.AfdErrorResponse } @@ -543,9 +475,9 @@ const createOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, + Parameters.subscriptionId, Parameters.ruleSetName ], headerParameters: [Parameters.accept], @@ -567,9 +499,9 @@ const deleteOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, + Parameters.subscriptionId, Parameters.ruleSetName ], headerParameters: [Parameters.accept], @@ -590,9 +522,9 @@ const listResourceUsageOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, + Parameters.subscriptionId, Parameters.ruleSetName ], headerParameters: [Parameters.accept], @@ -612,9 +544,9 @@ const listByProfileNextOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], @@ -634,9 +566,9 @@ const listResourceUsageNextOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.ruleSetName ], diff --git a/sdk/cdn/arm-cdn/src/operations/rules.ts b/sdk/cdn/arm-cdn/src/operations/rules.ts index 48df23f042e8..1868ac110201 100644 --- a/sdk/cdn/arm-cdn/src/operations/rules.ts +++ b/sdk/cdn/arm-cdn/src/operations/rules.ts @@ -46,7 +46,8 @@ export class RulesImpl implements Rules { /** * Lists all of the existing delivery rules within a rule set. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param ruleSetName Name of the rule set under the profile. * @param options The options parameters. */ @@ -126,7 +127,8 @@ export class RulesImpl implements Rules { /** * Lists all of the existing delivery rules within a rule set. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param ruleSetName Name of the rule set under the profile. * @param options The options parameters. */ @@ -145,7 +147,8 @@ export class RulesImpl implements Rules { /** * Gets an existing delivery rule within a rule set. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param ruleSetName Name of the rule set under the profile. * @param ruleName Name of the delivery rule which is unique within the endpoint. * @param options The options parameters. @@ -166,7 +169,8 @@ export class RulesImpl implements Rules { /** * Creates a new delivery rule within the specified rule set. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param ruleSetName Name of the rule set under the profile. * @param ruleName Name of the delivery rule which is unique within the endpoint. * @param rule The delivery rule properties. @@ -236,7 +240,8 @@ export class RulesImpl implements Rules { /** * Creates a new delivery rule within the specified rule set. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param ruleSetName Name of the rule set under the profile. * @param ruleName Name of the delivery rule which is unique within the endpoint. * @param rule The delivery rule properties. @@ -264,7 +269,8 @@ export class RulesImpl implements Rules { /** * Updates an existing delivery rule within a rule set. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param ruleSetName Name of the rule set under the profile. * @param ruleName Name of the delivery rule which is unique within the endpoint. * @param ruleUpdateProperties Delivery rule properties @@ -341,7 +347,8 @@ export class RulesImpl implements Rules { /** * Updates an existing delivery rule within a rule set. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param ruleSetName Name of the rule set under the profile. * @param ruleName Name of the delivery rule which is unique within the endpoint. * @param ruleUpdateProperties Delivery rule properties @@ -369,7 +376,8 @@ export class RulesImpl implements Rules { /** * Deletes an existing delivery rule within a rule set. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param ruleSetName Name of the rule set under the profile. * @param ruleName Name of the delivery rule which is unique within the endpoint. * @param options The options parameters. @@ -435,7 +443,8 @@ export class RulesImpl implements Rules { /** * Deletes an existing delivery rule within a rule set. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param ruleSetName Name of the rule set under the profile. * @param ruleName Name of the delivery rule which is unique within the endpoint. * @param options The options parameters. @@ -460,7 +469,8 @@ export class RulesImpl implements Rules { /** * ListByRuleSetNext * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param ruleSetName Name of the rule set under the profile. * @param nextLink The nextLink from the previous successful call to the ListByRuleSet method. * @param options The options parameters. @@ -496,9 +506,9 @@ const listByRuleSetOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, + Parameters.subscriptionId, Parameters.ruleSetName ], headerParameters: [Parameters.accept], @@ -519,9 +529,9 @@ const getOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, + Parameters.subscriptionId, Parameters.ruleSetName, Parameters.ruleName ], @@ -553,9 +563,9 @@ const createOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, + Parameters.subscriptionId, Parameters.ruleSetName, Parameters.ruleName ], @@ -588,9 +598,9 @@ const updateOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, + Parameters.subscriptionId, Parameters.ruleSetName, Parameters.ruleName ], @@ -614,9 +624,9 @@ const deleteOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, + Parameters.subscriptionId, Parameters.ruleSetName, Parameters.ruleName ], @@ -637,9 +647,9 @@ const listByRuleSetNextOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.ruleSetName ], diff --git a/sdk/cdn/arm-cdn/src/operations/secrets.ts b/sdk/cdn/arm-cdn/src/operations/secrets.ts index ab817869452b..bfcaadaae532 100644 --- a/sdk/cdn/arm-cdn/src/operations/secrets.ts +++ b/sdk/cdn/arm-cdn/src/operations/secrets.ts @@ -23,9 +23,6 @@ import { SecretsGetResponse, SecretsCreateOptionalParams, SecretsCreateResponse, - SecretProperties, - SecretsUpdateOptionalParams, - SecretsUpdateResponse, SecretsDeleteOptionalParams, SecretsListByProfileNextResponse } from "../models"; @@ -46,7 +43,8 @@ export class SecretsImpl implements Secrets { /** * Lists existing AzureFrontDoor secrets. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param options The options parameters. */ public listByProfile( @@ -117,7 +115,8 @@ export class SecretsImpl implements Secrets { /** * Lists existing AzureFrontDoor secrets. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param options The options parameters. */ private _listByProfile( @@ -134,7 +133,8 @@ export class SecretsImpl implements Secrets { /** * Gets an existing Secret within a profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param secretName Name of the Secret under the profile. * @param options The options parameters. */ @@ -153,7 +153,8 @@ export class SecretsImpl implements Secrets { /** * Creates a new Secret within the specified profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param secretName Name of the Secret under the profile. * @param secret The Secret properties. * @param options The options parameters. @@ -221,7 +222,8 @@ export class SecretsImpl implements Secrets { /** * Creates a new Secret within the specified profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param secretName Name of the Secret under the profile. * @param secret The Secret properties. * @param options The options parameters. @@ -243,103 +245,11 @@ export class SecretsImpl implements Secrets { return poller.pollUntilDone(); } - /** - * Updates an existing Secret within a profile. - * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. - * @param secretName Name of the Secret under the profile. - * @param secretProperties Secret properties - * @param options The options parameters. - */ - async beginUpdate( - resourceGroupName: string, - profileName: string, - secretName: string, - secretProperties: SecretProperties, - options?: SecretsUpdateOptionalParams - ): Promise< - PollerLike, SecretsUpdateResponse> - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = new LroImpl( - sendOperation, - { resourceGroupName, profileName, secretName, secretProperties, options }, - updateOperationSpec - ); - return new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "azure-async-operation" - }); - } - - /** - * Updates an existing Secret within a profile. - * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. - * @param secretName Name of the Secret under the profile. - * @param secretProperties Secret properties - * @param options The options parameters. - */ - async beginUpdateAndWait( - resourceGroupName: string, - profileName: string, - secretName: string, - secretProperties: SecretProperties, - options?: SecretsUpdateOptionalParams - ): Promise { - const poller = await this.beginUpdate( - resourceGroupName, - profileName, - secretName, - secretProperties, - options - ); - return poller.pollUntilDone(); - } - /** * Deletes an existing Secret within profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param secretName Name of the Secret under the profile. * @param options The options parameters. */ @@ -403,7 +313,8 @@ export class SecretsImpl implements Secrets { /** * Deletes an existing Secret within profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param secretName Name of the Secret under the profile. * @param options The options parameters. */ @@ -425,7 +336,8 @@ export class SecretsImpl implements Secrets { /** * ListByProfileNext * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param nextLink The nextLink from the previous successful call to the ListByProfile method. * @param options The options parameters. */ @@ -459,9 +371,9 @@ const listByProfileOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.profileName + Parameters.profileName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -481,9 +393,9 @@ const getOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, + Parameters.subscriptionId, Parameters.secretName ], headerParameters: [Parameters.accept], @@ -514,43 +426,9 @@ const createOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, - Parameters.secretName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/secrets/{secretName}", - httpMethod: "PATCH", - responses: { - 200: { - bodyMapper: Mappers.Secret - }, - 201: { - bodyMapper: Mappers.Secret - }, - 202: { - bodyMapper: Mappers.Secret - }, - 204: { - bodyMapper: Mappers.Secret - }, - default: { - bodyMapper: Mappers.AfdErrorResponse - } - }, - requestBody: Parameters.secretProperties, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.profileName, Parameters.secretName ], headerParameters: [Parameters.accept, Parameters.contentType], @@ -573,9 +451,9 @@ const deleteOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, + Parameters.subscriptionId, Parameters.secretName ], headerParameters: [Parameters.accept], @@ -595,9 +473,9 @@ const listByProfileNextOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/cdn/arm-cdn/src/operations/securityPolicies.ts b/sdk/cdn/arm-cdn/src/operations/securityPolicies.ts index b43c233a020e..e1fca2285429 100644 --- a/sdk/cdn/arm-cdn/src/operations/securityPolicies.ts +++ b/sdk/cdn/arm-cdn/src/operations/securityPolicies.ts @@ -46,7 +46,8 @@ export class SecurityPoliciesImpl implements SecurityPolicies { /** * Lists security policies associated with the profile * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param options The options parameters. */ public listByProfile( @@ -117,7 +118,8 @@ export class SecurityPoliciesImpl implements SecurityPolicies { /** * Lists security policies associated with the profile * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param options The options parameters. */ private _listByProfile( @@ -134,7 +136,8 @@ export class SecurityPoliciesImpl implements SecurityPolicies { /** * Gets an existing security policy within a profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param securityPolicyName Name of the security policy under the profile. * @param options The options parameters. */ @@ -153,7 +156,8 @@ export class SecurityPoliciesImpl implements SecurityPolicies { /** * Creates a new security policy within the specified profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param securityPolicyName Name of the security policy under the profile. * @param securityPolicy The security policy properties. * @param options The options parameters. @@ -230,7 +234,8 @@ export class SecurityPoliciesImpl implements SecurityPolicies { /** * Creates a new security policy within the specified profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param securityPolicyName Name of the security policy under the profile. * @param securityPolicy The security policy properties. * @param options The options parameters. @@ -253,9 +258,10 @@ export class SecurityPoliciesImpl implements SecurityPolicies { } /** - * Updates an existing Secret within a profile. + * Updates an existing security policy within a profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param securityPolicyName Name of the security policy under the profile. * @param securityPolicyProperties Security policy update properties * @param options The options parameters. @@ -330,9 +336,10 @@ export class SecurityPoliciesImpl implements SecurityPolicies { } /** - * Updates an existing Secret within a profile. + * Updates an existing security policy within a profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param securityPolicyName Name of the security policy under the profile. * @param securityPolicyProperties Security policy update properties * @param options The options parameters. @@ -357,8 +364,9 @@ export class SecurityPoliciesImpl implements SecurityPolicies { /** * Deletes an existing security policy within profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. - * @param securityPolicyName Name of the Secret under the profile. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. + * @param securityPolicyName Name of the security policy under the profile. * @param options The options parameters. */ async beginDelete( @@ -421,8 +429,9 @@ export class SecurityPoliciesImpl implements SecurityPolicies { /** * Deletes an existing security policy within profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. - * @param securityPolicyName Name of the Secret under the profile. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. + * @param securityPolicyName Name of the security policy under the profile. * @param options The options parameters. */ async beginDeleteAndWait( @@ -443,7 +452,8 @@ export class SecurityPoliciesImpl implements SecurityPolicies { /** * ListByProfileNext * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param nextLink The nextLink from the previous successful call to the ListByProfile method. * @param options The options parameters. */ @@ -477,9 +487,9 @@ const listByProfileOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.profileName + Parameters.profileName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -499,9 +509,9 @@ const getOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, + Parameters.subscriptionId, Parameters.securityPolicyName ], headerParameters: [Parameters.accept], @@ -532,9 +542,9 @@ const createOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, + Parameters.subscriptionId, Parameters.securityPolicyName ], headerParameters: [Parameters.accept, Parameters.contentType], @@ -566,9 +576,9 @@ const patchOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, + Parameters.subscriptionId, Parameters.securityPolicyName ], headerParameters: [Parameters.accept, Parameters.contentType], @@ -591,9 +601,9 @@ const deleteOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, + Parameters.subscriptionId, Parameters.securityPolicyName ], headerParameters: [Parameters.accept], @@ -613,9 +623,9 @@ const listByProfileNextOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/cdn/arm-cdn/src/operationsInterfaces/aFDCustomDomains.ts b/sdk/cdn/arm-cdn/src/operationsInterfaces/aFDCustomDomains.ts index 31c43e41a240..87313f556646 100644 --- a/sdk/cdn/arm-cdn/src/operationsInterfaces/aFDCustomDomains.ts +++ b/sdk/cdn/arm-cdn/src/operationsInterfaces/aFDCustomDomains.ts @@ -19,8 +19,7 @@ import { AFDCustomDomainsUpdateOptionalParams, AFDCustomDomainsUpdateResponse, AFDCustomDomainsDeleteOptionalParams, - AFDCustomDomainsRefreshValidationTokenOptionalParams, - AFDCustomDomainsRefreshValidationTokenResponse + AFDCustomDomainsRefreshValidationTokenOptionalParams } from "../models"; /// @@ -29,7 +28,8 @@ export interface AFDCustomDomains { /** * Lists existing AzureFrontDoor domains. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile or CDN + * profile which is unique within the resource group. * @param options The options parameters. */ listByProfile( @@ -41,7 +41,8 @@ export interface AFDCustomDomains { * Gets an existing AzureFrontDoor domain with the specified domain name under the specified * subscription, resource group and profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param customDomainName Name of the domain under the profile which is unique globally. * @param options The options parameters. */ @@ -54,7 +55,8 @@ export interface AFDCustomDomains { /** * Creates a new domain within the specified profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param customDomainName Name of the domain under the profile which is unique globally * @param customDomain Domain properties * @param options The options parameters. @@ -74,7 +76,8 @@ export interface AFDCustomDomains { /** * Creates a new domain within the specified profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param customDomainName Name of the domain under the profile which is unique globally * @param customDomain Domain properties * @param options The options parameters. @@ -89,7 +92,8 @@ export interface AFDCustomDomains { /** * Updates an existing domain within a profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param customDomainName Name of the domain under the profile which is unique globally * @param customDomainUpdateProperties Domain properties * @param options The options parameters. @@ -109,7 +113,8 @@ export interface AFDCustomDomains { /** * Updates an existing domain within a profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param customDomainName Name of the domain under the profile which is unique globally * @param customDomainUpdateProperties Domain properties * @param options The options parameters. @@ -125,7 +130,8 @@ export interface AFDCustomDomains { * Deletes an existing AzureFrontDoor domain with the specified domain name under the specified * subscription, resource group and profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param customDomainName Name of the domain under the profile which is unique globally. * @param options The options parameters. */ @@ -139,7 +145,8 @@ export interface AFDCustomDomains { * Deletes an existing AzureFrontDoor domain with the specified domain name under the specified * subscription, resource group and profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param customDomainName Name of the domain under the profile which is unique globally. * @param options The options parameters. */ @@ -152,7 +159,8 @@ export interface AFDCustomDomains { /** * Updates the domain validation token. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param customDomainName Name of the domain under the profile which is unique globally. * @param options The options parameters. */ @@ -161,16 +169,12 @@ export interface AFDCustomDomains { profileName: string, customDomainName: string, options?: AFDCustomDomainsRefreshValidationTokenOptionalParams - ): Promise< - PollerLike< - PollOperationState, - AFDCustomDomainsRefreshValidationTokenResponse - > - >; + ): Promise, void>>; /** * Updates the domain validation token. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param customDomainName Name of the domain under the profile which is unique globally. * @param options The options parameters. */ @@ -179,5 +183,5 @@ export interface AFDCustomDomains { profileName: string, customDomainName: string, options?: AFDCustomDomainsRefreshValidationTokenOptionalParams - ): Promise; + ): Promise; } diff --git a/sdk/cdn/arm-cdn/src/operationsInterfaces/aFDEndpoints.ts b/sdk/cdn/arm-cdn/src/operationsInterfaces/aFDEndpoints.ts index 60198961e5fc..c4ba50346836 100644 --- a/sdk/cdn/arm-cdn/src/operationsInterfaces/aFDEndpoints.ts +++ b/sdk/cdn/arm-cdn/src/operationsInterfaces/aFDEndpoints.ts @@ -34,7 +34,8 @@ export interface AFDEndpoints { /** * Lists existing AzureFrontDoor endpoints. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param options The options parameters. */ listByProfile( @@ -45,7 +46,8 @@ export interface AFDEndpoints { /** * Checks the quota and actual usage of endpoints under the given CDN profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @param options The options parameters. */ @@ -59,7 +61,8 @@ export interface AFDEndpoints { * Gets an existing AzureFrontDoor endpoint with the specified endpoint name under the specified * subscription, resource group and profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @param options The options parameters. */ @@ -73,7 +76,8 @@ export interface AFDEndpoints { * Creates a new AzureFrontDoor endpoint with the specified endpoint name under the specified * subscription, resource group and profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @param endpoint Endpoint properties * @param options The options parameters. @@ -94,7 +98,8 @@ export interface AFDEndpoints { * Creates a new AzureFrontDoor endpoint with the specified endpoint name under the specified * subscription, resource group and profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @param endpoint Endpoint properties * @param options The options parameters. @@ -112,7 +117,8 @@ export interface AFDEndpoints { * update origins, use the Update Origin operation. To update origin groups, use the Update Origin * group operation. To update domains, use the Update Custom Domain operation. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @param endpointUpdateProperties Endpoint update properties * @param options The options parameters. @@ -135,7 +141,8 @@ export interface AFDEndpoints { * update origins, use the Update Origin operation. To update origin groups, use the Update Origin * group operation. To update domains, use the Update Custom Domain operation. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @param endpointUpdateProperties Endpoint update properties * @param options The options parameters. @@ -151,7 +158,8 @@ export interface AFDEndpoints { * Deletes an existing AzureFrontDoor endpoint with the specified endpoint name under the specified * subscription, resource group and profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @param options The options parameters. */ @@ -165,7 +173,8 @@ export interface AFDEndpoints { * Deletes an existing AzureFrontDoor endpoint with the specified endpoint name under the specified * subscription, resource group and profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @param options The options parameters. */ @@ -178,7 +187,8 @@ export interface AFDEndpoints { /** * Removes a content from AzureFrontDoor. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @param contents The list of paths to the content and the list of linked domains to be purged. Path * can be a full URL, e.g. '/pictures/city.png' which removes a single file, or a directory with a @@ -195,7 +205,8 @@ export interface AFDEndpoints { /** * Removes a content from AzureFrontDoor. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @param contents The list of paths to the content and the list of linked domains to be purged. Path * can be a full URL, e.g. '/pictures/city.png' which removes a single file, or a directory with a @@ -212,7 +223,8 @@ export interface AFDEndpoints { /** * Validates the custom domain mapping to ensure it maps to the correct CDN endpoint in DNS. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @param customDomainProperties Custom domain to be validated. * @param options The options parameters. diff --git a/sdk/cdn/arm-cdn/src/operationsInterfaces/aFDOriginGroups.ts b/sdk/cdn/arm-cdn/src/operationsInterfaces/aFDOriginGroups.ts index d7e6cb7be92e..886c1c658661 100644 --- a/sdk/cdn/arm-cdn/src/operationsInterfaces/aFDOriginGroups.ts +++ b/sdk/cdn/arm-cdn/src/operationsInterfaces/aFDOriginGroups.ts @@ -29,7 +29,8 @@ export interface AFDOriginGroups { /** * Lists all of the existing origin groups within a profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param options The options parameters. */ listByProfile( @@ -40,7 +41,8 @@ export interface AFDOriginGroups { /** * Checks the quota and actual usage of endpoints under the given CDN profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param originGroupName Name of the origin group which is unique within the endpoint. * @param options The options parameters. */ @@ -53,7 +55,8 @@ export interface AFDOriginGroups { /** * Gets an existing origin group within a profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param originGroupName Name of the origin group which is unique within the endpoint. * @param options The options parameters. */ @@ -66,7 +69,8 @@ export interface AFDOriginGroups { /** * Creates a new origin group within the specified profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param originGroupName Name of the origin group which is unique within the endpoint. * @param originGroup Origin group properties * @param options The options parameters. @@ -86,7 +90,8 @@ export interface AFDOriginGroups { /** * Creates a new origin group within the specified profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param originGroupName Name of the origin group which is unique within the endpoint. * @param originGroup Origin group properties * @param options The options parameters. @@ -101,7 +106,8 @@ export interface AFDOriginGroups { /** * Updates an existing origin group within a profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param originGroupName Name of the origin group which is unique within the profile. * @param originGroupUpdateProperties Origin group properties * @param options The options parameters. @@ -121,7 +127,8 @@ export interface AFDOriginGroups { /** * Updates an existing origin group within a profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param originGroupName Name of the origin group which is unique within the profile. * @param originGroupUpdateProperties Origin group properties * @param options The options parameters. @@ -136,7 +143,8 @@ export interface AFDOriginGroups { /** * Deletes an existing origin group within a profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param originGroupName Name of the origin group which is unique within the profile. * @param options The options parameters. */ @@ -149,7 +157,8 @@ export interface AFDOriginGroups { /** * Deletes an existing origin group within a profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param originGroupName Name of the origin group which is unique within the profile. * @param options The options parameters. */ diff --git a/sdk/cdn/arm-cdn/src/operationsInterfaces/aFDOrigins.ts b/sdk/cdn/arm-cdn/src/operationsInterfaces/aFDOrigins.ts index 8d01028f9758..9b7c06383e87 100644 --- a/sdk/cdn/arm-cdn/src/operationsInterfaces/aFDOrigins.ts +++ b/sdk/cdn/arm-cdn/src/operationsInterfaces/aFDOrigins.ts @@ -27,7 +27,8 @@ export interface AFDOrigins { /** * Lists all of the existing origins within an origin group. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param originGroupName Name of the origin group which is unique within the profile. * @param options The options parameters. */ @@ -40,7 +41,8 @@ export interface AFDOrigins { /** * Gets an existing origin within an origin group. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param originGroupName Name of the origin group which is unique within the profile. * @param originName Name of the origin which is unique within the profile. * @param options The options parameters. @@ -55,7 +57,8 @@ export interface AFDOrigins { /** * Creates a new origin within the specified origin group. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param originGroupName Name of the origin group which is unique within the profile. * @param originName Name of the origin that is unique within the profile. * @param origin Origin properties @@ -77,7 +80,8 @@ export interface AFDOrigins { /** * Creates a new origin within the specified origin group. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param originGroupName Name of the origin group which is unique within the profile. * @param originName Name of the origin that is unique within the profile. * @param origin Origin properties @@ -94,7 +98,8 @@ export interface AFDOrigins { /** * Updates an existing origin within an origin group. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param originGroupName Name of the origin group which is unique within the profile. * @param originName Name of the origin which is unique within the profile. * @param originUpdateProperties Origin properties @@ -116,7 +121,8 @@ export interface AFDOrigins { /** * Updates an existing origin within an origin group. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param originGroupName Name of the origin group which is unique within the profile. * @param originName Name of the origin which is unique within the profile. * @param originUpdateProperties Origin properties @@ -133,7 +139,8 @@ export interface AFDOrigins { /** * Deletes an existing origin within an origin group. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param originGroupName Name of the origin group which is unique within the profile. * @param originName Name of the origin which is unique within the profile. * @param options The options parameters. @@ -148,7 +155,8 @@ export interface AFDOrigins { /** * Deletes an existing origin within an origin group. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param originGroupName Name of the origin group which is unique within the profile. * @param originName Name of the origin which is unique within the profile. * @param options The options parameters. diff --git a/sdk/cdn/arm-cdn/src/operationsInterfaces/aFDProfiles.ts b/sdk/cdn/arm-cdn/src/operationsInterfaces/aFDProfiles.ts index 3313663879fa..b016108de44f 100644 --- a/sdk/cdn/arm-cdn/src/operationsInterfaces/aFDProfiles.ts +++ b/sdk/cdn/arm-cdn/src/operationsInterfaces/aFDProfiles.ts @@ -10,7 +10,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { Usage, AFDProfilesListResourceUsageOptionalParams, - ValidateCustomDomainInput, + CheckHostNameAvailabilityInput, AFDProfilesCheckHostNameAvailabilityOptionalParams, AFDProfilesCheckHostNameAvailabilityResponse } from "../models"; @@ -21,7 +21,8 @@ export interface AFDProfiles { /** * Checks the quota and actual usage of endpoints under the given CDN profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile + * which is unique within the resource group. * @param options The options parameters. */ listResourceUsage( @@ -32,14 +33,15 @@ export interface AFDProfiles { /** * Validates the custom domain mapping to ensure it maps to the correct CDN endpoint in DNS. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile + * which is unique within the resource group. * @param checkHostNameAvailabilityInput Custom domain to be validated. * @param options The options parameters. */ checkHostNameAvailability( resourceGroupName: string, profileName: string, - checkHostNameAvailabilityInput: ValidateCustomDomainInput, + checkHostNameAvailabilityInput: CheckHostNameAvailabilityInput, options?: AFDProfilesCheckHostNameAvailabilityOptionalParams ): Promise; } diff --git a/sdk/cdn/arm-cdn/src/operationsInterfaces/customDomains.ts b/sdk/cdn/arm-cdn/src/operationsInterfaces/customDomains.ts index 7bca39216ff9..cf0939fdfda8 100644 --- a/sdk/cdn/arm-cdn/src/operationsInterfaces/customDomains.ts +++ b/sdk/cdn/arm-cdn/src/operationsInterfaces/customDomains.ts @@ -18,7 +18,9 @@ import { CustomDomainsCreateResponse, CustomDomainsDeleteOptionalParams, CustomDomainsDisableCustomHttpsOptionalParams, - CustomDomainsEnableCustomHttpsOptionalParams + CustomDomainsDisableCustomHttpsResponse, + CustomDomainsEnableCustomHttpsOptionalParams, + CustomDomainsEnableCustomHttpsResponse } from "../models"; /// @@ -129,28 +131,13 @@ export interface CustomDomains { * @param customDomainName Name of the custom domain within an endpoint. * @param options The options parameters. */ - beginDisableCustomHttps( + disableCustomHttps( resourceGroupName: string, profileName: string, endpointName: string, customDomainName: string, options?: CustomDomainsDisableCustomHttpsOptionalParams - ): Promise, void>>; - /** - * Disable https delivery of the custom domain. - * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. - * @param endpointName Name of the endpoint under the profile which is unique globally. - * @param customDomainName Name of the custom domain within an endpoint. - * @param options The options parameters. - */ - beginDisableCustomHttpsAndWait( - resourceGroupName: string, - profileName: string, - endpointName: string, - customDomainName: string, - options?: CustomDomainsDisableCustomHttpsOptionalParams - ): Promise; + ): Promise; /** * Enable https delivery of the custom domain. * @param resourceGroupName Name of the Resource group within the Azure subscription. @@ -159,26 +146,11 @@ export interface CustomDomains { * @param customDomainName Name of the custom domain within an endpoint. * @param options The options parameters. */ - beginEnableCustomHttps( + enableCustomHttps( resourceGroupName: string, profileName: string, endpointName: string, customDomainName: string, options?: CustomDomainsEnableCustomHttpsOptionalParams - ): Promise, void>>; - /** - * Enable https delivery of the custom domain. - * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. - * @param endpointName Name of the endpoint under the profile which is unique globally. - * @param customDomainName Name of the custom domain within an endpoint. - * @param options The options parameters. - */ - beginEnableCustomHttpsAndWait( - resourceGroupName: string, - profileName: string, - endpointName: string, - customDomainName: string, - options?: CustomDomainsEnableCustomHttpsOptionalParams - ): Promise; + ): Promise; } diff --git a/sdk/cdn/arm-cdn/src/operationsInterfaces/index.ts b/sdk/cdn/arm-cdn/src/operationsInterfaces/index.ts index 9fc6a1125747..6f1601b688cb 100644 --- a/sdk/cdn/arm-cdn/src/operationsInterfaces/index.ts +++ b/sdk/cdn/arm-cdn/src/operationsInterfaces/index.ts @@ -6,14 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./profiles"; -export * from "./endpoints"; -export * from "./origins"; -export * from "./originGroups"; -export * from "./customDomains"; -export * from "./resourceUsageOperations"; -export * from "./operations"; -export * from "./edgeNodes"; export * from "./aFDProfiles"; export * from "./aFDCustomDomains"; export * from "./aFDEndpoints"; @@ -26,5 +18,13 @@ export * from "./securityPolicies"; export * from "./secrets"; export * from "./validate"; export * from "./logAnalytics"; +export * from "./profiles"; +export * from "./endpoints"; +export * from "./origins"; +export * from "./originGroups"; +export * from "./customDomains"; +export * from "./resourceUsageOperations"; +export * from "./operations"; +export * from "./edgeNodes"; export * from "./policies"; export * from "./managedRuleSets"; diff --git a/sdk/cdn/arm-cdn/src/operationsInterfaces/logAnalytics.ts b/sdk/cdn/arm-cdn/src/operationsInterfaces/logAnalytics.ts index b02dc0395df3..2e039440ede5 100644 --- a/sdk/cdn/arm-cdn/src/operationsInterfaces/logAnalytics.ts +++ b/sdk/cdn/arm-cdn/src/operationsInterfaces/logAnalytics.ts @@ -33,7 +33,8 @@ export interface LogAnalytics { /** * Get log report for AFD profile * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. which is unique within the resource group. * @param metrics Array of LogMetric * @param dateTimeBegin * @param dateTimeEnd @@ -56,7 +57,8 @@ export interface LogAnalytics { /** * Get log analytics ranking report for AFD profile * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. which is unique within the resource group. * @param rankings Array of LogRanking * @param metrics Array of LogRankingMetric * @param maxRanking @@ -77,7 +79,8 @@ export interface LogAnalytics { /** * Get all available location names for AFD log analytics report. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. which is unique within the resource group. * @param options The options parameters. */ getLogAnalyticsLocations( @@ -88,7 +91,8 @@ export interface LogAnalytics { /** * Get all endpoints and custom domains available for AFD log report * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. which is unique within the resource group. * @param options The options parameters. */ getLogAnalyticsResources( @@ -99,7 +103,8 @@ export interface LogAnalytics { /** * Get Waf related log analytics report for AFD profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. which is unique within the resource group. * @param metrics Array of WafMetric * @param dateTimeBegin * @param dateTimeEnd @@ -118,7 +123,8 @@ export interface LogAnalytics { /** * Get WAF log analytics charts for AFD profile * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. which is unique within the resource group. * @param metrics Array of WafMetric * @param dateTimeBegin * @param dateTimeEnd diff --git a/sdk/cdn/arm-cdn/src/operationsInterfaces/profiles.ts b/sdk/cdn/arm-cdn/src/operationsInterfaces/profiles.ts index 1e37f3afc2e8..2d98c56b5f75 100644 --- a/sdk/cdn/arm-cdn/src/operationsInterfaces/profiles.ts +++ b/sdk/cdn/arm-cdn/src/operationsInterfaces/profiles.ts @@ -32,14 +32,16 @@ import { /** Interface representing a Profiles. */ export interface Profiles { /** - * Lists all of the CDN profiles within an Azure subscription. + * Lists all of the Azure Front Door Standard, Azure Front Door Premium, and CDN profiles within an + * Azure subscription. * @param options The options parameters. */ list( options?: ProfilesListOptionalParams ): PagedAsyncIterableIterator; /** - * Lists all of the CDN profiles within a resource group. + * Lists all of the Azure Front Door Standard, Azure Front Door Premium, and CDN profiles within a + * resource group. * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param options The options parameters. */ @@ -48,9 +50,11 @@ export interface Profiles { options?: ProfilesListByResourceGroupOptionalParams ): PagedAsyncIterableIterator; /** - * Checks the quota and actual usage of endpoints under the given CDN profile. + * Checks the quota and actual usage of endpoints under the given Azure Front Door Standard or Azure + * Front Door Premium or CDN profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile + * which is unique within the resource group. * @param options The options parameters. */ listResourceUsage( @@ -59,10 +63,11 @@ export interface Profiles { options?: ProfilesListResourceUsageOptionalParams ): PagedAsyncIterableIterator; /** - * Gets a CDN profile with the specified profile name under the specified subscription and resource - * group. + * Gets an Azure Front Door Standard or Azure Front Door Premium or CDN profile with the specified + * profile name under the specified subscription and resource group. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile + * which is unique within the resource group. * @param options The options parameters. */ get( @@ -71,9 +76,11 @@ export interface Profiles { options?: ProfilesGetOptionalParams ): Promise; /** - * Creates a new CDN profile with a profile name under the specified subscription and resource group. + * Creates a new Azure Front Door Standard or Azure Front Door Premium or CDN profile with a profile + * name under the specified subscription and resource group. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile + * which is unique within the resource group. * @param profile Profile properties needed to create a new profile. * @param options The options parameters. */ @@ -89,9 +96,11 @@ export interface Profiles { > >; /** - * Creates a new CDN profile with a profile name under the specified subscription and resource group. + * Creates a new Azure Front Door Standard or Azure Front Door Premium or CDN profile with a profile + * name under the specified subscription and resource group. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile + * which is unique within the resource group. * @param profile Profile properties needed to create a new profile. * @param options The options parameters. */ @@ -102,10 +111,11 @@ export interface Profiles { options?: ProfilesCreateOptionalParams ): Promise; /** - * Updates an existing CDN profile with the specified profile name under the specified subscription and - * resource group. + * Updates an existing Azure Front Door Standard or Azure Front Door Premium or CDN profile with the + * specified profile name under the specified subscription and resource group. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile + * which is unique within the resource group. * @param profileUpdateParameters Profile properties needed to update an existing profile. * @param options The options parameters. */ @@ -121,10 +131,11 @@ export interface Profiles { > >; /** - * Updates an existing CDN profile with the specified profile name under the specified subscription and - * resource group. + * Updates an existing Azure Front Door Standard or Azure Front Door Premium or CDN profile with the + * specified profile name under the specified subscription and resource group. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile + * which is unique within the resource group. * @param profileUpdateParameters Profile properties needed to update an existing profile. * @param options The options parameters. */ @@ -135,10 +146,12 @@ export interface Profiles { options?: ProfilesUpdateOptionalParams ): Promise; /** - * Deletes an existing CDN profile with the specified parameters. Deleting a profile will result in the - * deletion of all of the sub-resources including endpoints, origins and custom domains. + * Deletes an existing Azure Front Door Standard or Azure Front Door Premium or CDN profile with the + * specified parameters. Deleting a profile will result in the deletion of all of the sub-resources + * including endpoints, origins and custom domains. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile + * which is unique within the resource group. * @param options The options parameters. */ beginDelete( @@ -147,10 +160,12 @@ export interface Profiles { options?: ProfilesDeleteOptionalParams ): Promise, void>>; /** - * Deletes an existing CDN profile with the specified parameters. Deleting a profile will result in the - * deletion of all of the sub-resources including endpoints, origins and custom domains. + * Deletes an existing Azure Front Door Standard or Azure Front Door Premium or CDN profile with the + * specified parameters. Deleting a profile will result in the deletion of all of the sub-resources + * including endpoints, origins and custom domains. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile + * which is unique within the resource group. * @param options The options parameters. */ beginDeleteAndWait( @@ -176,7 +191,8 @@ export interface Profiles { * Gets the supported optimization types for the current profile. A user can create an endpoint with an * optimization type from the listed values. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile + * which is unique within the resource group. * @param options The options parameters. */ listSupportedOptimizationTypes( diff --git a/sdk/cdn/arm-cdn/src/operationsInterfaces/routes.ts b/sdk/cdn/arm-cdn/src/operationsInterfaces/routes.ts index 52bbd55e906a..2fcf1f3df8e5 100644 --- a/sdk/cdn/arm-cdn/src/operationsInterfaces/routes.ts +++ b/sdk/cdn/arm-cdn/src/operationsInterfaces/routes.ts @@ -27,7 +27,8 @@ export interface Routes { /** * Lists all of the existing origins within a profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @param options The options parameters. */ @@ -41,7 +42,8 @@ export interface Routes { * Gets an existing route with the specified route name under the specified subscription, resource * group, profile, and AzureFrontDoor endpoint. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @param routeName Name of the routing rule. * @param options The options parameters. @@ -57,7 +59,8 @@ export interface Routes { * Creates a new route with the specified route name under the specified subscription, resource group, * profile, and AzureFrontDoor endpoint. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @param routeName Name of the routing rule. * @param route Route properties @@ -77,7 +80,8 @@ export interface Routes { * Creates a new route with the specified route name under the specified subscription, resource group, * profile, and AzureFrontDoor endpoint. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @param routeName Name of the routing rule. * @param route Route properties @@ -95,7 +99,8 @@ export interface Routes { * Updates an existing route with the specified route name under the specified subscription, resource * group, profile, and AzureFrontDoor endpoint. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @param routeName Name of the routing rule. * @param routeUpdateProperties Route update properties @@ -115,7 +120,8 @@ export interface Routes { * Updates an existing route with the specified route name under the specified subscription, resource * group, profile, and AzureFrontDoor endpoint. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @param routeName Name of the routing rule. * @param routeUpdateProperties Route update properties @@ -133,7 +139,8 @@ export interface Routes { * Deletes an existing route with the specified route name under the specified subscription, resource * group, profile, and AzureFrontDoor endpoint. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @param routeName Name of the routing rule. * @param options The options parameters. @@ -149,7 +156,8 @@ export interface Routes { * Deletes an existing route with the specified route name under the specified subscription, resource * group, profile, and AzureFrontDoor endpoint. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @param routeName Name of the routing rule. * @param options The options parameters. diff --git a/sdk/cdn/arm-cdn/src/operationsInterfaces/ruleSets.ts b/sdk/cdn/arm-cdn/src/operationsInterfaces/ruleSets.ts index f216cfc1b1e3..2adec0bcc7c1 100644 --- a/sdk/cdn/arm-cdn/src/operationsInterfaces/ruleSets.ts +++ b/sdk/cdn/arm-cdn/src/operationsInterfaces/ruleSets.ts @@ -26,7 +26,8 @@ export interface RuleSets { /** * Lists existing AzureFrontDoor rule sets within a profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param options The options parameters. */ listByProfile( @@ -37,7 +38,8 @@ export interface RuleSets { /** * Checks the quota and actual usage of endpoints under the given CDN profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param ruleSetName Name of the rule set under the profile which is unique globally. * @param options The options parameters. */ @@ -51,7 +53,8 @@ export interface RuleSets { * Gets an existing AzureFrontDoor rule set with the specified rule set name under the specified * subscription, resource group and profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param ruleSetName Name of the rule set under the profile which is unique globally. * @param options The options parameters. */ @@ -64,29 +67,12 @@ export interface RuleSets { /** * Creates a new rule set within the specified profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param ruleSetName Name of the rule set under the profile which is unique globally * @param options The options parameters. */ - beginCreate( - resourceGroupName: string, - profileName: string, - ruleSetName: string, - options?: RuleSetsCreateOptionalParams - ): Promise< - PollerLike< - PollOperationState, - RuleSetsCreateResponse - > - >; - /** - * Creates a new rule set within the specified profile. - * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. - * @param ruleSetName Name of the rule set under the profile which is unique globally - * @param options The options parameters. - */ - beginCreateAndWait( + create( resourceGroupName: string, profileName: string, ruleSetName: string, @@ -96,7 +82,8 @@ export interface RuleSets { * Deletes an existing AzureFrontDoor rule set with the specified rule set name under the specified * subscription, resource group and profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param ruleSetName Name of the rule set under the profile which is unique globally. * @param options The options parameters. */ @@ -110,7 +97,8 @@ export interface RuleSets { * Deletes an existing AzureFrontDoor rule set with the specified rule set name under the specified * subscription, resource group and profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param ruleSetName Name of the rule set under the profile which is unique globally. * @param options The options parameters. */ diff --git a/sdk/cdn/arm-cdn/src/operationsInterfaces/rules.ts b/sdk/cdn/arm-cdn/src/operationsInterfaces/rules.ts index 133d23e98533..56895a2c6a59 100644 --- a/sdk/cdn/arm-cdn/src/operationsInterfaces/rules.ts +++ b/sdk/cdn/arm-cdn/src/operationsInterfaces/rules.ts @@ -27,7 +27,8 @@ export interface Rules { /** * Lists all of the existing delivery rules within a rule set. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param ruleSetName Name of the rule set under the profile. * @param options The options parameters. */ @@ -40,7 +41,8 @@ export interface Rules { /** * Gets an existing delivery rule within a rule set. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param ruleSetName Name of the rule set under the profile. * @param ruleName Name of the delivery rule which is unique within the endpoint. * @param options The options parameters. @@ -55,7 +57,8 @@ export interface Rules { /** * Creates a new delivery rule within the specified rule set. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param ruleSetName Name of the rule set under the profile. * @param ruleName Name of the delivery rule which is unique within the endpoint. * @param rule The delivery rule properties. @@ -74,7 +77,8 @@ export interface Rules { /** * Creates a new delivery rule within the specified rule set. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param ruleSetName Name of the rule set under the profile. * @param ruleName Name of the delivery rule which is unique within the endpoint. * @param rule The delivery rule properties. @@ -91,7 +95,8 @@ export interface Rules { /** * Updates an existing delivery rule within a rule set. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param ruleSetName Name of the rule set under the profile. * @param ruleName Name of the delivery rule which is unique within the endpoint. * @param ruleUpdateProperties Delivery rule properties @@ -110,7 +115,8 @@ export interface Rules { /** * Updates an existing delivery rule within a rule set. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param ruleSetName Name of the rule set under the profile. * @param ruleName Name of the delivery rule which is unique within the endpoint. * @param ruleUpdateProperties Delivery rule properties @@ -127,7 +133,8 @@ export interface Rules { /** * Deletes an existing delivery rule within a rule set. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param ruleSetName Name of the rule set under the profile. * @param ruleName Name of the delivery rule which is unique within the endpoint. * @param options The options parameters. @@ -142,7 +149,8 @@ export interface Rules { /** * Deletes an existing delivery rule within a rule set. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param ruleSetName Name of the rule set under the profile. * @param ruleName Name of the delivery rule which is unique within the endpoint. * @param options The options parameters. diff --git a/sdk/cdn/arm-cdn/src/operationsInterfaces/secrets.ts b/sdk/cdn/arm-cdn/src/operationsInterfaces/secrets.ts index 6f14b40adcf2..2553bec552f0 100644 --- a/sdk/cdn/arm-cdn/src/operationsInterfaces/secrets.ts +++ b/sdk/cdn/arm-cdn/src/operationsInterfaces/secrets.ts @@ -15,9 +15,6 @@ import { SecretsGetResponse, SecretsCreateOptionalParams, SecretsCreateResponse, - SecretProperties, - SecretsUpdateOptionalParams, - SecretsUpdateResponse, SecretsDeleteOptionalParams } from "../models"; @@ -27,7 +24,8 @@ export interface Secrets { /** * Lists existing AzureFrontDoor secrets. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param options The options parameters. */ listByProfile( @@ -38,7 +36,8 @@ export interface Secrets { /** * Gets an existing Secret within a profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param secretName Name of the Secret under the profile. * @param options The options parameters. */ @@ -51,7 +50,8 @@ export interface Secrets { /** * Creates a new Secret within the specified profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param secretName Name of the Secret under the profile. * @param secret The Secret properties. * @param options The options parameters. @@ -68,7 +68,8 @@ export interface Secrets { /** * Creates a new Secret within the specified profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param secretName Name of the Secret under the profile. * @param secret The Secret properties. * @param options The options parameters. @@ -80,42 +81,11 @@ export interface Secrets { secret: Secret, options?: SecretsCreateOptionalParams ): Promise; - /** - * Updates an existing Secret within a profile. - * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. - * @param secretName Name of the Secret under the profile. - * @param secretProperties Secret properties - * @param options The options parameters. - */ - beginUpdate( - resourceGroupName: string, - profileName: string, - secretName: string, - secretProperties: SecretProperties, - options?: SecretsUpdateOptionalParams - ): Promise< - PollerLike, SecretsUpdateResponse> - >; - /** - * Updates an existing Secret within a profile. - * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. - * @param secretName Name of the Secret under the profile. - * @param secretProperties Secret properties - * @param options The options parameters. - */ - beginUpdateAndWait( - resourceGroupName: string, - profileName: string, - secretName: string, - secretProperties: SecretProperties, - options?: SecretsUpdateOptionalParams - ): Promise; /** * Deletes an existing Secret within profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param secretName Name of the Secret under the profile. * @param options The options parameters. */ @@ -128,7 +98,8 @@ export interface Secrets { /** * Deletes an existing Secret within profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param secretName Name of the Secret under the profile. * @param options The options parameters. */ diff --git a/sdk/cdn/arm-cdn/src/operationsInterfaces/securityPolicies.ts b/sdk/cdn/arm-cdn/src/operationsInterfaces/securityPolicies.ts index a2a532110ef6..17745967fea8 100644 --- a/sdk/cdn/arm-cdn/src/operationsInterfaces/securityPolicies.ts +++ b/sdk/cdn/arm-cdn/src/operationsInterfaces/securityPolicies.ts @@ -27,7 +27,8 @@ export interface SecurityPolicies { /** * Lists security policies associated with the profile * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param options The options parameters. */ listByProfile( @@ -38,7 +39,8 @@ export interface SecurityPolicies { /** * Gets an existing security policy within a profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param securityPolicyName Name of the security policy under the profile. * @param options The options parameters. */ @@ -51,7 +53,8 @@ export interface SecurityPolicies { /** * Creates a new security policy within the specified profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param securityPolicyName Name of the security policy under the profile. * @param securityPolicy The security policy properties. * @param options The options parameters. @@ -71,7 +74,8 @@ export interface SecurityPolicies { /** * Creates a new security policy within the specified profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param securityPolicyName Name of the security policy under the profile. * @param securityPolicy The security policy properties. * @param options The options parameters. @@ -84,9 +88,10 @@ export interface SecurityPolicies { options?: SecurityPoliciesCreateOptionalParams ): Promise; /** - * Updates an existing Secret within a profile. + * Updates an existing security policy within a profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param securityPolicyName Name of the security policy under the profile. * @param securityPolicyProperties Security policy update properties * @param options The options parameters. @@ -104,9 +109,10 @@ export interface SecurityPolicies { > >; /** - * Updates an existing Secret within a profile. + * Updates an existing security policy within a profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. * @param securityPolicyName Name of the security policy under the profile. * @param securityPolicyProperties Security policy update properties * @param options The options parameters. @@ -121,8 +127,9 @@ export interface SecurityPolicies { /** * Deletes an existing security policy within profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. - * @param securityPolicyName Name of the Secret under the profile. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. + * @param securityPolicyName Name of the security policy under the profile. * @param options The options parameters. */ beginDelete( @@ -134,8 +141,9 @@ export interface SecurityPolicies { /** * Deletes an existing security policy within profile. * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param profileName Name of the CDN profile which is unique within the resource group. - * @param securityPolicyName Name of the Secret under the profile. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which + * is unique within the resource group. + * @param securityPolicyName Name of the security policy under the profile. * @param options The options parameters. */ beginDeleteAndWait( diff --git a/sdk/cdn/arm-cdn/test/sampleTest.ts b/sdk/cdn/arm-cdn/test/sampleTest.ts new file mode 100644 index 000000000000..7ed89b043e1b --- /dev/null +++ b/sdk/cdn/arm-cdn/test/sampleTest.ts @@ -0,0 +1,48 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + env, + record, + RecorderEnvironmentSetup, + Recorder +} from "@azure-tools/test-recorder"; +import * as assert from "assert"; + +const recorderEnvSetup: RecorderEnvironmentSetup = { + replaceableVariables: { + AZURE_CLIENT_ID: "azure_client_id", + AZURE_CLIENT_SECRET: "azure_client_secret", + AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", + SUBSCRIPTION_ID: "azure_subscription_id" + }, + customizationsOnRecordings: [ + (recording: any): any => + recording.replace( + /"access_token":"[^"]*"/g, + `"access_token":"access_token"` + ) + ], + queryParametersToSkip: [] +}; + +describe("My test", () => { + let recorder: Recorder; + + beforeEach(async function() { + recorder = record(this, recorderEnvSetup); + }); + + afterEach(async function() { + await recorder.stop(); + }); + + it("sample test", async function() { + console.log("Hi, I'm a test!"); + }); +});