From 4ce36a5062579a631b240950b6c6fbbb9660f307 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Thu, 17 Mar 2022 08:08:14 +0000 Subject: [PATCH] CodeGen from PR 18304 in Azure/azure-rest-api-specs Merge 94b8920a2d2efa72e5b0cfd099fd00c46ca00c9e into 19a632e2a2061888ce87446948e6b497dc835f5b --- common/config/rush/pnpm-lock.yaml | 14 +- sdk/cdn/arm-cdn/CHANGELOG.md | 248 +- sdk/cdn/arm-cdn/LICENSE | 2 +- sdk/cdn/arm-cdn/_meta.json | 7 +- sdk/cdn/arm-cdn/api-extractor.json | 25 +- sdk/cdn/arm-cdn/package.json | 8 +- sdk/cdn/arm-cdn/review/arm-cdn.api.md | 803 +- sdk/cdn/arm-cdn/src/cdnManagementClient.ts | 118 +- sdk/cdn/arm-cdn/src/models/index.ts | 6540 +++++++------- sdk/cdn/arm-cdn/src/models/mappers.ts | 7498 ++++++++++------- sdk/cdn/arm-cdn/src/models/parameters.ts | 301 +- .../src/operations/aFDCustomDomains.ts | 68 +- .../arm-cdn/src/operations/aFDEndpoints.ts | 60 +- .../arm-cdn/src/operations/aFDOriginGroups.ts | 47 +- sdk/cdn/arm-cdn/src/operations/aFDOrigins.ts | 54 +- sdk/cdn/arm-cdn/src/operations/aFDProfiles.ts | 20 +- .../arm-cdn/src/operations/customDomains.ts | 188 +- sdk/cdn/arm-cdn/src/operations/endpoints.ts | 14 +- sdk/cdn/arm-cdn/src/operations/index.ts | 16 +- .../arm-cdn/src/operations/logAnalytics.ts | 18 +- .../arm-cdn/src/operations/managedRuleSets.ts | 2 +- .../arm-cdn/src/operations/originGroups.ts | 8 +- sdk/cdn/arm-cdn/src/operations/origins.ts | 8 +- sdk/cdn/arm-cdn/src/operations/policies.ts | 23 +- sdk/cdn/arm-cdn/src/operations/profiles.ts | 83 +- sdk/cdn/arm-cdn/src/operations/routes.ts | 34 +- sdk/cdn/arm-cdn/src/operations/ruleSets.ts | 114 +- sdk/cdn/arm-cdn/src/operations/rules.ts | 34 +- sdk/cdn/arm-cdn/src/operations/secrets.ts | 156 +- .../src/operations/securityPolicies.ts | 58 +- sdk/cdn/arm-cdn/src/operations/validate.ts | 2 +- .../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 | 42 +- sdk/cdn/arm-cdn/test/sampleTest.ts | 48 + sdk/cdn/arm-cdn/tsconfig.json | 16 +- sdk/cdn/ci.mgmt.yml | 7 +- 48 files changed, 9886 insertions(+), 7216 deletions(-) create mode 100644 sdk/cdn/arm-cdn/test/sampleTest.ts diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 167e07d1e000..910168dc23ad 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -9706,23 +9706,23 @@ packages: dev: false file:projects/arm-cdn.tgz: - resolution: {integrity: sha512-xtk9Kcax4AfY40e+xAPkPwAnAFFwLYjdjZw+M2hbBN9YjB01UKmy9vNFU9Si509sBN2/XRu7tWgWiR1kZoMTtw==, tarball: file:projects/arm-cdn.tgz} + resolution: {integrity: sha512-7flkZDb1ZsSBUOiHM/Wg/gd7zOLT0jqBMTbDF5qzbzy4K8LGg1CkPVyTy6vHaaushI82DjrSQSk/m/lkaP5DDg==, tarball: file:projects/arm-cdn.tgz} name: '@rush-temp/arm-cdn' version: 0.0.0 dependencies: '@azure-tools/test-recorder': 1.0.2 '@azure/identity': 2.0.4 '@microsoft/api-extractor': 7.19.4 - '@rollup/plugin-commonjs': 21.0.1_rollup@2.67.1 - '@rollup/plugin-json': 4.1.0_rollup@2.67.1 - '@rollup/plugin-multi-entry': 3.0.1_rollup@2.67.1 - '@rollup/plugin-node-resolve': 8.4.0_rollup@2.67.1 + '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 + '@rollup/plugin-json': 4.1.0_rollup@1.32.1 + '@rollup/plugin-multi-entry': 3.0.1_rollup@1.32.1 + '@rollup/plugin-node-resolve': 8.4.0_rollup@1.32.1 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 7.2.0 rimraf: 3.0.2 - rollup: 2.67.1 - rollup-plugin-sourcemaps: 0.4.2_rollup@2.67.1 + rollup: 1.32.1 + rollup-plugin-sourcemaps: 0.4.2_rollup@1.32.1 tslib: 2.3.1 typescript: 4.2.4 uglify-js: 3.15.1 diff --git a/sdk/cdn/arm-cdn/CHANGELOG.md b/sdk/cdn/arm-cdn/CHANGELOG.md index e5bbced080e1..7df1e98c95c6 100644 --- a/sdk/cdn/arm-cdn/CHANGELOG.md +++ b/sdk/cdn/arm-cdn/CHANGELOG.md @@ -1,15 +1,247 @@ # Release History + +## 7.0.0 (2022-03-17) + +**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 CheckEndpointNameAvailabilityInput + - Added Interface CheckEndpointNameAvailabilityOptionalParams + - Added Interface CheckEndpointNameAvailabilityOutput + - Added Interface CheckHostNameAvailabilityInput + - Added Interface ClientPortMatchConditionParameters + - Added Interface DimensionProperties + - Added Interface ErrorAdditionalInfo + - Added Interface ErrorDetail + - Added Interface HostNameMatchConditionParameters + - Added Interface LogSpecification + - Added Interface MetricAvailability + - Added Interface MetricSpecification + - Added Interface OriginGroupOverride + - Added Interface RouteConfigurationOverrideActionParameters + - Added Interface SecurityPolicyPropertiesParameters + - Added Interface SecurityPolicyUpdateParameters + - Added Interface ServerPortMatchConditionParameters + - Added Interface ServiceSpecification + - Added Interface SocketAddrMatchConditionParameters + - Added Interface SslProtocolMatchConditionParameters + - Added Type Alias AutoGeneratedDomainNameLabelScope + - Added Type Alias AzureFirstPartyManagedCertificate + - Added Type Alias AzureFirstPartyManagedCertificateParameters + - Added Type Alias CheckEndpointNameAvailabilityResponse + - 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 HostNameOperator + - Added Type Alias PolicySettingsDefaultCustomBlockResponseStatusCode + - Added Type Alias ResourceType + - Added Type Alias RuleCacheBehavior + - Added Type Alias RuleIsCompressionEnabled + - Added Type Alias RuleQueryStringCachingBehavior + - Added Type Alias SecurityPolicyPropertiesParametersUnion + - 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 ProfileUpdateParameters has a new optional parameter originResponseTimeoutSeconds + - 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 + - Add parameters of SecurityPolicyPropertiesParameters to TypeAlias SecurityPolicyWebApplicationFirewallParameters + - 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 AFDEndpoint has a new parameter autoGeneratedDomainNameLabelScope + - Type Alias AFDEndpointProperties has a new parameter autoGeneratedDomainNameLabelScope + - 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 kind + - Type Alias Profile has a new parameter frontDoorId + - 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 KnownAutoGeneratedDomainNameLabelScope + - Added Enum KnownClientPortOperator + - Added Enum KnownHostNameOperator + - Added Enum KnownPolicySettingsDefaultCustomBlockResponseStatusCode + - Added Enum KnownResourceType + - 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 InternalError + - Enum KnownDomainValidationState has a new value RefreshingValidationToken + - 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 + - Operation SecurityPolicies.beginPatch has a new signature + - Operation SecurityPolicies.beginPatchAndWait has a new signature + - Interface AFDEndpointPropertiesUpdateParameters no longer has parameter originResponseTimeoutSeconds + - Interface AFDEndpointUpdateParameters no longer has parameter originResponseTimeoutSeconds + - Interface AFDOriginGroupUpdateParameters no longer has parameter responseBasedAfdOriginErrorDetectionSettings + - Interface AFDOriginGroupUpdatePropertiesParameters no longer has parameter responseBasedAfdOriginErrorDetectionSettings + - 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 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 + - Delete parameters of SecurityPolicyParameters in TypeAlias SecurityPolicyWebApplicationFirewallParameters + - Type Alias AFDEndpoint no longer has parameter originResponseTimeoutSeconds + - Type Alias AFDOriginGroup no longer has parameter responseBasedAfdOriginErrorDetectionSettings + - 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..363304d8d9d9 100644 --- a/sdk/cdn/arm-cdn/_meta.json +++ b/sdk/cdn/arm-cdn/_meta.json @@ -1,7 +1,8 @@ { - "commit": "ea0f7b072ad3aaff203ea9003246b9e584b819ff", + "commit": "f62e24abdf1eda35411e63e20c919360c907c87a", "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.7.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" + "release_tool": "@azure-tools/js-sdk-release-tools@2.1.3", + "use": "@autorest/typescript@6.0.0-alpha.16.20220105.1" } \ No newline at end of file diff --git a/sdk/cdn/arm-cdn/api-extractor.json b/sdk/cdn/arm-cdn/api-extractor.json index a2402bef83ba..4e06829a9405 100644 --- a/sdk/cdn/arm-cdn/api-extractor.json +++ b/sdk/cdn/arm-cdn/api-extractor.json @@ -1,18 +1,31 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", "mainEntryPointFilePath": "./dist-esm/src/index.d.ts", - "docModel": { "enabled": true }, - "apiReport": { "enabled": true, "reportFolder": "./review" }, + "docModel": { + "enabled": true + }, + "apiReport": { + "enabled": true, + "reportFolder": "./review" + }, "dtsRollup": { "enabled": true, "untrimmedFilePath": "", "publicTrimmedFilePath": "./types/arm-cdn.d.ts" }, "messages": { - "tsdocMessageReporting": { "default": { "logLevel": "none" } }, + "tsdocMessageReporting": { + "default": { + "logLevel": "none" + } + }, "extractorMessageReporting": { - "ae-missing-release-tag": { "logLevel": "none" }, - "ae-unresolved-link": { "logLevel": "none" } + "ae-missing-release-tag": { + "logLevel": "none" + }, + "ae-unresolved-link": { + "logLevel": "none" + } } } -} +} \ No newline at end of file diff --git a/sdk/cdn/arm-cdn/package.json b/sdk/cdn/arm-cdn/package.json index 199fbc41b19a..d9fde7ea5a0a 100644 --- a/sdk/cdn/arm-cdn/package.json +++ b/sdk/cdn/arm-cdn/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for CdnManagementClient.", - "version": "6.0.1", + "version": "7.0.0", "engines": { "node": ">=12.0.0" }, @@ -29,12 +29,12 @@ "types": "./types/arm-cdn.d.ts", "devDependencies": { "@microsoft/api-extractor": "^7.18.11", - "@rollup/plugin-commonjs": "^21.0.1", + "@rollup/plugin-commonjs": "11.0.2", "@rollup/plugin-json": "^4.0.0", "@rollup/plugin-multi-entry": "^3.0.0", "@rollup/plugin-node-resolve": "^8.0.0", "mkdirp": "^1.0.4", - "rollup": "^2.0.0", + "rollup": "^1.16.3", "rollup-plugin-sourcemaps": "^0.4.2", "typescript": "~4.2.0", "uglify-js": "^3.4.9", @@ -99,4 +99,4 @@ }, "sideEffects": false, "autoPublish": true -} +} \ No newline at end of file diff --git a/sdk/cdn/arm-cdn/review/arm-cdn.api.md b/sdk/cdn/arm-cdn/review/arm-cdn.api.md index 1cc7630d5ccb..065d3a165efd 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,22 +123,27 @@ 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; readonly provisioningState?: AfdProvisioningState; readonly deploymentStatus?: DeploymentStatus; readonly hostName?: string; + autoGeneratedDomainNameLabelScope?: AutoGeneratedDomainNameLabelScope; }; // @public @@ -145,12 +155,13 @@ export interface AFDEndpointListResult { // @public export type AFDEndpointProperties = AFDEndpointPropertiesUpdateParameters & AFDStateProperties & { readonly hostName?: string; + autoGeneratedDomainNameLabelScope?: AutoGeneratedDomainNameLabelScope; }; // @public export interface AFDEndpointPropertiesUpdateParameters { enabledState?: EnabledState; - originResponseTimeoutSeconds?: number; + readonly profileName?: string; } // @public @@ -247,7 +258,7 @@ export type AFDEndpointsValidateCustomDomainResponse = ValidateCustomDomainOutpu // @public export interface AFDEndpointUpdateParameters { enabledState?: EnabledState; - originResponseTimeoutSeconds?: number; + readonly profileName?: string; tags?: { [propertyName: string]: string; }; @@ -255,7 +266,7 @@ export interface AFDEndpointUpdateParameters { // @public export interface AfdErrorResponse { - error?: ErrorResponse; + error?: ErrorDetail; } // @public @@ -263,6 +274,7 @@ export type AfdMinimumTlsVersion = "TLS10" | "TLS12"; // @public export type AFDOrigin = ProxyResource & { + readonly originGroupName?: string; azureOrigin?: ResourceReference; hostName?: string; httpPort?: number; @@ -270,18 +282,19 @@ export type AFDOrigin = ProxyResource & { originHostHeader?: string; priority?: number; weight?: number; - sharedPrivateLinkResource?: Record; + sharedPrivateLinkResource?: SharedPrivateLinkResourceProperties; enabledState?: EnabledState; + enforceCertificateNameCheck?: boolean; readonly provisioningState?: AfdProvisioningState; readonly deploymentStatus?: DeploymentStatus; }; // @public export type AFDOriginGroup = ProxyResource & { + readonly profileName?: string; loadBalancingSettings?: LoadBalancingSettingsParameters; healthProbeSettings?: HealthProbeParameters; trafficRestorationTimeToHealedOrNewEndpointsInMinutes?: number; - responseBasedAfdOriginErrorDetectionSettings?: ResponseBasedOriginErrorDetectionParameters; sessionAffinityState?: EnabledState; readonly provisioningState?: AfdProvisioningState; readonly deploymentStatus?: DeploymentStatus; @@ -372,7 +385,7 @@ export type AFDOriginGroupsUpdateResponse = AFDOriginGroup; export interface AFDOriginGroupUpdateParameters { healthProbeSettings?: HealthProbeParameters; loadBalancingSettings?: LoadBalancingSettingsParameters; - responseBasedAfdOriginErrorDetectionSettings?: ResponseBasedOriginErrorDetectionParameters; + readonly profileName?: string; sessionAffinityState?: EnabledState; trafficRestorationTimeToHealedOrNewEndpointsInMinutes?: number; } @@ -381,7 +394,7 @@ export interface AFDOriginGroupUpdateParameters { export interface AFDOriginGroupUpdatePropertiesParameters { healthProbeSettings?: HealthProbeParameters; loadBalancingSettings?: LoadBalancingSettingsParameters; - responseBasedAfdOriginErrorDetectionSettings?: ResponseBasedOriginErrorDetectionParameters; + readonly profileName?: string; sessionAffinityState?: EnabledState; trafficRestorationTimeToHealedOrNewEndpointsInMinutes?: number; } @@ -456,12 +469,14 @@ 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; + sharedPrivateLinkResource?: SharedPrivateLinkResourceProperties; weight?: number; } @@ -469,18 +484,20 @@ 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; + sharedPrivateLinkResource?: SharedPrivateLinkResourceProperties; weight?: number; } // @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 +506,7 @@ export interface AFDProfilesCheckHostNameAvailabilityOptionalParams extends core } // @public -export type AFDProfilesCheckHostNameAvailabilityResponse = ValidateCustomDomainOutput; +export type AFDProfilesCheckHostNameAvailabilityResponse = CheckNameAvailabilityOutput; // @public export interface AFDProfilesListResourceUsageNextOptionalParams extends coreClient.OperationOptions { @@ -515,7 +532,14 @@ export interface AfdPurgeParameters { } // @public -export type AfdQueryStringCachingBehavior = "IgnoreQueryString" | "UseQueryString" | "NotSet"; +export type AfdQueryStringCachingBehavior = string; + +// @public +export interface AfdRouteCacheConfiguration { + compressionSettings?: CompressionSettings; + queryParameters?: string; + queryStringCachingBehavior?: AfdQueryStringCachingBehavior; +} // @public export interface AFDStateProperties { @@ -527,24 +551,44 @@ export interface AFDStateProperties { type Algorithm_2 = string; export { Algorithm_2 as Algorithm } +// @public +export type AutoGeneratedDomainNameLabelScope = string; + +// @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 +598,7 @@ export type CacheType = string; export interface CdnCertificateSourceParameters { certificateType: CertificateType; // (undocumented) - odataType: "#Microsoft.Azure.Cdn.Models.CdnCertificateSourceParameters"; + typeName: "CdnCertificateSourceParameters"; } // @public @@ -585,6 +629,7 @@ export class CdnManagementClient extends coreClient.ServiceClient { aFDProfiles: AFDProfiles; // (undocumented) apiVersion: string; + checkEndpointNameAvailability(resourceGroupName: string, checkEndpointNameAvailabilityInput: CheckEndpointNameAvailabilityInput, options?: CheckEndpointNameAvailabilityOptionalParams): Promise; checkNameAvailability(checkNameAvailabilityInput: CheckNameAvailabilityInput, options?: CheckNameAvailabilityOptionalParams): Promise; checkNameAvailabilityWithSubscription(checkNameAvailabilityInput: CheckNameAvailabilityInput, options?: CheckNameAvailabilityWithSubscriptionOptionalParams): Promise; // (undocumented) @@ -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,10 +717,37 @@ export type CertificateSource = string; // @public export type CertificateType = string; +// @public +export interface CheckEndpointNameAvailabilityInput { + autoGeneratedDomainNameLabelScope?: AutoGeneratedDomainNameLabelScope; + name: string; + type: ResourceType; +} + +// @public +export interface CheckEndpointNameAvailabilityOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface CheckEndpointNameAvailabilityOutput { + readonly availableHostname?: string; + readonly message?: string; + readonly nameAvailable?: boolean; + readonly reason?: string; +} + +// @public +export type CheckEndpointNameAvailabilityResponse = CheckEndpointNameAvailabilityOutput; + +// @public +export interface CheckHostNameAvailabilityInput { + hostName: string; +} + // @public export interface CheckNameAvailabilityInput { name: string; - type: "Microsoft.Cdn/Profiles/Endpoints"; + type: ResourceType; } // @public @@ -705,6 +777,19 @@ export interface CidrIpAddress { prefixLength?: number; } +// @public +export interface ClientPortMatchConditionParameters { + matchValues?: string[]; + negateCondition?: boolean; + operator: ClientPortOperator; + transforms?: Transform[]; + // (undocumented) + typeName: "DeliveryRuleClientPortConditionParameters"; +} + +// @public +export type ClientPortOperator = string; + // @public (undocumented) export interface Components18OrqelSchemasWafmetricsresponsePropertiesSeriesItemsPropertiesDataItems { // (undocumented) @@ -763,11 +848,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 +899,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 +922,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 +958,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 +971,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 +1011,7 @@ export interface DeepCreatedOrigin { name: string; originHostHeader?: string; priority?: number; + readonly privateEndpointStatus?: PrivateEndpointStatus; privateLinkAlias?: string; privateLinkApprovalMessage?: string; privateLinkLocation?: string; @@ -954,11 +1044,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 +1062,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 +1082,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 +1160,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 +1208,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 +1276,7 @@ export type Endpoint = TrackedResource & { readonly hostName?: string; origins?: DeepCreatedOrigin[]; originGroups?: DeepCreatedOriginGroup[]; + readonly customDomains?: CustomDomain[]; readonly resourceState?: EndpointResourceState; readonly provisioningState?: string; }; @@ -1158,6 +1292,7 @@ export type EndpointProperties = EndpointPropertiesUpdateParameters & { readonly hostName?: string; origins: DeepCreatedOrigin[]; originGroups?: DeepCreatedOriginGroup[]; + readonly customDomains?: CustomDomain[]; readonly resourceState?: EndpointResourceState; readonly provisioningState?: string; }; @@ -1334,12 +1469,23 @@ export interface EndpointUpdateParameters { } // @public -export type Enum46 = number; +export interface ErrorAdditionalInfo { + readonly info?: Record; + readonly type?: string; +} // @public -export interface ErrorResponse { +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 +1509,7 @@ export interface HeaderActionParameters { headerAction: HeaderAction; headerName: string; // (undocumented) - odataType: "#Microsoft.Azure.Cdn.Models.DeliveryRuleHeaderActionParameters"; + typeName: "DeliveryRuleHeaderActionParameters"; value?: string; } @@ -1378,6 +1524,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 +1550,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 +1573,10 @@ 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 +1588,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 +1623,8 @@ export enum KnownActionType { // @public export enum KnownAfdCertificateType { + // (undocumented) + AzureFirstPartyManagedCertificate = "AzureFirstPartyManagedCertificate", // (undocumented) CustomerCertificate = "CustomerCertificate", // (undocumented) @@ -1491,12 +1653,36 @@ 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) SHA256 = "SHA256" } +// @public +export enum KnownAutoGeneratedDomainNameLabelScope { + // (undocumented) + NoReuse = "NoReuse", + // (undocumented) + ResourceGroupReuse = "ResourceGroupReuse", + // (undocumented) + SubscriptionReuse = "SubscriptionReuse", + // (undocumented) + TenantReuse = "TenantReuse" +} + // @public export enum KnownCacheBehavior { // (undocumented) @@ -1529,6 +1715,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 +1838,8 @@ export enum KnownDeliveryRuleAction { // (undocumented) OriginGroupOverride = "OriginGroupOverride", // (undocumented) + RouteConfigurationOverride = "RouteConfigurationOverride", + // (undocumented) UrlRedirect = "UrlRedirect", // (undocumented) UrlRewrite = "UrlRewrite", @@ -1662,10 +1874,16 @@ export enum KnownDomainValidationState { // (undocumented) Approved = "Approved", // (undocumented) + InternalError = "InternalError", + // (undocumented) Pending = "Pending", // (undocumented) PendingRevalidation = "PendingRevalidation", // (undocumented) + RefreshingValidationToken = "RefreshingValidationToken", + // (undocumented) + Rejected = "Rejected", + // (undocumented) Submitting = "Submitting", // (undocumented) TimedOut = "TimedOut", @@ -1697,20 +1915,6 @@ export enum KnownEndpointResourceState { Stopping = "Stopping" } -// @public -export enum KnownEnum46 { - // (undocumented) - FourHundredFive = 405, - // (undocumented) - FourHundredSix = 406, - // (undocumented) - FourHundredThree = 403, - // (undocumented) - FourHundredTwentyNine = 429, - // (undocumented) - TwoHundred = 200 -} - // @public export enum KnownForwardingProtocol { // (undocumented) @@ -1731,6 +1935,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 +2038,7 @@ export enum KnownLogMetricsGroupBy { // (undocumented) CacheStatus = "cacheStatus", // (undocumented) - Country = "country", + CountryOrRegion = "countryOrRegion", // (undocumented) CustomDomain = "customDomain", // (undocumented) @@ -1867,9 +2095,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 +2110,6 @@ export enum KnownMatchVariable { // (undocumented) QueryString = "QueryString", // (undocumented) - RemoteAddr = "RemoteAddr", - // (undocumented) RemoteAddress = "RemoteAddress", // (undocumented) RequestBody = "RequestBody", @@ -1892,8 +2122,12 @@ export enum KnownMatchVariable { // (undocumented) RequestUri = "RequestUri", // (undocumented) + ServerPort = "ServerPort", + // (undocumented) SocketAddr = "SocketAddr", // (undocumented) + SslProtocol = "SslProtocol", + // (undocumented) UrlFileExtension = "UrlFileExtension", // (undocumented) UrlFileName = "UrlFileName", @@ -1918,7 +2152,9 @@ export enum KnownMetricsResponseSeriesItemUnit { // (undocumented) Bytes = "bytes", // (undocumented) - Count = "count" + Count = "count", + // (undocumented) + MilliSeconds = "milliSeconds" } // @public @@ -2025,6 +2261,20 @@ export enum KnownPolicyResourceState { Enabling = "Enabling" } +// @public +export enum KnownPolicySettingsDefaultCustomBlockResponseStatusCode { + // (undocumented) + FourHundredFive = 405, + // (undocumented) + FourHundredSix = 406, + // (undocumented) + FourHundredThree = 403, + // (undocumented) + FourHundredTwentyNine = 429, + // (undocumented) + TwoHundred = 200 +} + // @public export enum KnownPostArgsOperator { // (undocumented) @@ -2255,8 +2505,48 @@ export enum KnownRequestUriOperator { RegEx = "RegEx" } +// @public +export enum KnownResourceType { + // (undocumented) + MicrosoftCdnProfilesAfdEndpoints = "Microsoft.Cdn/Profiles/AfdEndpoints", + // (undocumented) + MicrosoftCdnProfilesEndpoints = "Microsoft.Cdn/Profiles/Endpoints" +} + +// @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 +2561,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 +2592,6 @@ export enum KnownSkuName { // (undocumented) PremiumAzureFrontDoor = "Premium_AzureFrontDoor", // (undocumented) - PremiumChinaCdn = "Premium_ChinaCdn", - // (undocumented) PremiumVerizon = "Premium_Verizon", // (undocumented) Standard955BandWidthChinaCdn = "Standard_955BandWidth_ChinaCdn", @@ -2303,6 +2615,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 +2656,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 +2769,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 +2791,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 +2844,7 @@ export enum KnownWafRankingType { // (undocumented) ClientIp = "clientIp", // (undocumented) - Country = "country", + CountryOrRegion = "countryOrRegion", // (undocumented) RuleGroup = "ruleGroup", // (undocumented) @@ -2602,12 +2958,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 @@ -2689,7 +3055,7 @@ export type ManagedRuleSetsListResponse = ManagedRuleSetDefinitionList; // @public export interface MatchCondition { matchValue: string[]; - matchVariable: MatchVariable; + matchVariable: WafMatchVariable; negateCondition?: boolean; operator: Operator; selector?: string; @@ -2702,6 +3068,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 +3135,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 +3171,7 @@ export type OperationsListResponse = OperationsListResult; // @public export interface OperationsListResult { nextLink?: string; - readonly value?: Operation[]; + value?: Operation[]; } // @public @@ -2821,6 +3214,12 @@ export interface OriginGroupListResult { readonly value?: OriginGroup[]; } +// @public +export interface OriginGroupOverride { + forwardingProtocol?: ForwardingProtocol; + originGroup?: ResourceReference; +} + // @public export type OriginGroupOverrideAction = DeliveryRuleActionAutoGenerated & { name: "OriginGroupOverride"; @@ -2829,9 +3228,9 @@ export type OriginGroupOverrideAction = DeliveryRuleActionAutoGenerated & { // @public export interface OriginGroupOverrideActionParameters { - // (undocumented) - odataType: "#Microsoft.Azure.Cdn.Models.DeliveryRuleOriginGroupOverrideActionParameters"; originGroup: ResourceReference; + // (undocumented) + typeName: "DeliveryRuleOriginGroupOverrideActionParameters"; } // @public @@ -3088,21 +3487,24 @@ export type PolicyResourceState = string; // @public export interface PolicySettings { defaultCustomBlockResponseBody?: string; - defaultCustomBlockResponseStatusCode?: Enum46; + defaultCustomBlockResponseStatusCode?: PolicySettingsDefaultCustomBlockResponseStatusCode; defaultRedirectUrl?: string; enabledState?: PolicyEnabledState; mode?: PolicyMode; } +// @public +export type PolicySettingsDefaultCustomBlockResponseStatusCode = number; + // @public export interface PostArgsMatchConditionParameters { matchValues?: string[]; negateCondition?: boolean; - // (undocumented) - odataType: "#Microsoft.Azure.Cdn.Models.DeliveryRulePostArgsConditionParameters"; operator: PostArgsOperator; selector?: string; transforms?: Transform[]; + // (undocumented) + typeName: "DeliveryRulePostArgsConditionParameters"; } // @public @@ -3117,9 +3519,11 @@ export type ProbeProtocol = "NotSet" | "Http" | "Https"; // @public export type Profile = TrackedResource & { sku: Sku; + readonly kind?: string; readonly resourceState?: ProfileResourceState; readonly provisioningState?: string; - readonly frontdoorId?: string; + readonly frontDoorId?: string; + originResponseTimeoutSeconds?: number; }; // @public @@ -3236,6 +3640,7 @@ export type ProfilesUpdateResponse = Profile; // @public export interface ProfileUpdateParameters { + originResponseTimeoutSeconds?: number; tags?: { [propertyName: string]: string; }; @@ -3265,10 +3670,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 +3733,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 +3746,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 +3759,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 +3773,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 +3789,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 +3802,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 @@ -3461,6 +3868,9 @@ export interface ResourcesResponseEndpointsPropertiesItemsItem { name?: string; } +// @public +export type ResourceType = string; + // @public export interface ResourceUsage { readonly currentValue?: number; @@ -3506,14 +3916,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 +3932,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 +4008,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 +4049,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 +4064,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 +4098,7 @@ export interface RulesDeleteOptionalParams extends coreClient.OperationOptions { export type RuleSet = ProxyResource & { readonly provisioningState?: AfdProvisioningState; readonly deploymentStatus?: DeploymentStatus; + readonly profileName?: string; }; // @public @@ -3679,14 +4108,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 +4124,6 @@ export interface RuleSets { // @public export interface RuleSetsCreateOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; } // @public @@ -3778,6 +4206,7 @@ export interface RuleUpdateParameters { conditions?: DeliveryRuleConditionUnion[]; matchProcessingBehavior?: MatchProcessingBehavior; order?: number; + readonly ruleSetName?: string; } // @public @@ -3786,12 +4215,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 +4234,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 +4252,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 +4292,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; @@ -3880,8 +4301,8 @@ export interface SecurityPolicies { beginCreateAndWait(resourceGroupName: string, profileName: string, securityPolicyName: string, securityPolicy: SecurityPolicy, options?: SecurityPoliciesCreateOptionalParams): Promise; beginDelete(resourceGroupName: string, profileName: string, securityPolicyName: string, options?: SecurityPoliciesDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, profileName: string, securityPolicyName: string, options?: SecurityPoliciesDeleteOptionalParams): Promise; - beginPatch(resourceGroupName: string, profileName: string, securityPolicyName: string, securityPolicyProperties: SecurityPolicyProperties, options?: SecurityPoliciesPatchOptionalParams): Promise, SecurityPoliciesPatchResponse>>; - beginPatchAndWait(resourceGroupName: string, profileName: string, securityPolicyName: string, securityPolicyProperties: SecurityPolicyProperties, options?: SecurityPoliciesPatchOptionalParams): Promise; + beginPatch(resourceGroupName: string, profileName: string, securityPolicyName: string, securityPolicyUpdateProperties: SecurityPolicyUpdateParameters, options?: SecurityPoliciesPatchOptionalParams): Promise, SecurityPoliciesPatchResponse>>; + beginPatchAndWait(resourceGroupName: string, profileName: string, securityPolicyName: string, securityPolicyUpdateProperties: SecurityPolicyUpdateParameters, options?: SecurityPoliciesPatchOptionalParams): Promise; get(resourceGroupName: string, profileName: string, securityPolicyName: string, options?: SecurityPoliciesGetOptionalParams): Promise; listByProfile(resourceGroupName: string, profileName: string, options?: SecurityPoliciesListByProfileOptionalParams): PagedAsyncIterableIterator; } @@ -3935,7 +4356,8 @@ export type SecurityPoliciesPatchResponse = SecurityPolicy; export type SecurityPolicy = ProxyResource & { readonly provisioningState?: AfdProvisioningState; readonly deploymentStatus?: DeploymentStatus; - parameters?: SecurityPolicyParametersUnion; + readonly profileName?: string; + parameters?: SecurityPolicyPropertiesParametersUnion; }; // @public @@ -3945,34 +4367,59 @@ export interface SecurityPolicyListResult { } // @public -export interface SecurityPolicyParameters { +export type SecurityPolicyProperties = AFDStateProperties & { + readonly profileName?: string; + parameters?: SecurityPolicyPropertiesParametersUnion; +}; + +// @public +export interface SecurityPolicyPropertiesParameters { type: "WebApplicationFirewall"; } // @public (undocumented) -export type SecurityPolicyParametersUnion = SecurityPolicyParameters | SecurityPolicyWebApplicationFirewallParameters; +export type SecurityPolicyPropertiesParametersUnion = SecurityPolicyPropertiesParameters | SecurityPolicyWebApplicationFirewallParameters; // @public -export type SecurityPolicyProperties = AFDStateProperties & { - parameters?: SecurityPolicyParametersUnion; -}; +export type SecurityPolicyType = string; // @public -export type SecurityPolicyType = string; +export interface SecurityPolicyUpdateParameters { + parameters?: SecurityPolicyPropertiesParametersUnion; +} // @public export interface SecurityPolicyWebApplicationFirewallAssociation { - domains?: ResourceReference[]; + domains?: ActivatedResourceReference[]; patternsToMatch?: string[]; } // @public -export type SecurityPolicyWebApplicationFirewallParameters = SecurityPolicyParameters & { +export type SecurityPolicyWebApplicationFirewallParameters = SecurityPolicyPropertiesParameters & { type: "WebApplicationFirewall"; wafPolicy?: ResourceReference; associations?: SecurityPolicyWebApplicationFirewallAssociation[]; }; +// @public +export interface ServerPortMatchConditionParameters { + matchValues?: string[]; + negateCondition?: boolean; + operator: ServerPortOperator; + transforms?: Transform[]; + // (undocumented) + typeName: "DeliveryRuleServerPortConditionParameters"; +} + +// @public +export type ServerPortOperator = string; + +// @public +export interface ServiceSpecification { + logSpecifications?: LogSpecification[]; + metricSpecifications?: MetricSpecification[]; +} + // @public export interface SharedPrivateLinkResourceProperties { groupId?: string; @@ -3993,6 +4440,35 @@ export interface Sku { // @public export type SkuName = string; +// @public +export interface SocketAddrMatchConditionParameters { + matchValues?: string[]; + negateCondition?: boolean; + operator: SocketAddrOperator; + transforms?: Transform[]; + // (undocumented) + typeName: "DeliveryRuleSocketAddrConditionParameters"; +} + +// @public +export type SocketAddrOperator = string; + +// @public +export type SslProtocol = string; + +// @public +export interface SslProtocolMatchConditionParameters { + matchValues?: SslProtocol[]; + negateCondition?: boolean; + operator: SslProtocolOperator; + transforms?: Transform[]; + // (undocumented) + typeName: "DeliveryRuleSslProtocolConditionParameters"; +} + +// @public +export type SslProtocolOperator = string; + // @public export interface SsoUri { readonly ssoUriValue?: string; @@ -4037,10 +4513,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 +4526,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 +4539,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 +4561,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 +4575,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 +4590,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 +4684,8 @@ export type ValidateProbeResponse = ValidateProbeOutput; // @public export interface ValidateSecretInput { secretSource: ResourceReference; - secretType: ValidateSecretType; + secretType: SecretType; + secretVersion?: string; } // @public @@ -4224,9 +4701,6 @@ export interface ValidateSecretOutput { // @public export type ValidateSecretResponse = ValidateSecretOutput; -// @public -export type ValidateSecretType = string; - // @public export interface ValidationToken { readonly token?: string; @@ -4238,6 +4712,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..8cbaec3caea5 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"; @@ -60,6 +60,9 @@ import * as Parameters from "./models/parameters"; import * as Mappers from "./models/mappers"; import { CdnManagementClientOptionalParams, + CheckEndpointNameAvailabilityInput, + CheckEndpointNameAvailabilityOptionalParams, + CheckEndpointNameAvailabilityResponse, CheckNameAvailabilityInput, CheckNameAvailabilityOptionalParams, CheckNameAvailabilityResponse, @@ -102,7 +105,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 +128,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,10 +141,36 @@ 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); } + /** + * Check the availability of a resource name. This is needed for resources where name is globally + * unique, such as a afdx endpoint. + * @param resourceGroupName Name of the Resource group within the Azure subscription. + * @param checkEndpointNameAvailabilityInput Input to check. + * @param options The options parameters. + */ + checkEndpointNameAvailability( + resourceGroupName: string, + checkEndpointNameAvailabilityInput: CheckEndpointNameAvailabilityInput, + options?: CheckEndpointNameAvailabilityOptionalParams + ): Promise { + return this.sendOperationRequest( + { resourceGroupName, checkEndpointNameAvailabilityInput, options }, + checkEndpointNameAvailabilityOperationSpec + ); + } + /** * Check the availability of a resource name. This is needed for resources where name is globally * unique, such as a CDN endpoint. @@ -199,14 +220,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,12 +232,43 @@ 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; } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const checkEndpointNameAvailabilityOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/checkEndpointNameAvailability", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.CheckEndpointNameAvailabilityOutput + }, + default: { + bodyMapper: Mappers.AfdErrorResponse + } + }, + requestBody: Parameters.checkEndpointNameAvailabilityInput, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + headerParameters: [Parameters.contentType, Parameters.accept], + mediaType: "json", + serializer +}; const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = { path: "/providers/Microsoft.Cdn/checkNameAvailability", httpMethod: "POST", @@ -239,7 +283,7 @@ const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = { requestBody: Parameters.checkNameAvailabilityInput, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host], - headerParameters: [Parameters.accept, Parameters.contentType], + headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", serializer }; @@ -258,7 +302,7 @@ const checkNameAvailabilityWithSubscriptionOperationSpec: coreClient.OperationSp requestBody: Parameters.checkNameAvailabilityInput, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], - headerParameters: [Parameters.accept, Parameters.contentType], + headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", serializer }; @@ -276,7 +320,7 @@ const validateProbeOperationSpec: coreClient.OperationSpec = { requestBody: Parameters.validateProbeInput, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], - headerParameters: [Parameters.accept, Parameters.contentType], + headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", serializer }; diff --git a/sdk/cdn/arm-cdn/src/models/index.ts b/sdk/cdn/arm-cdn/src/models/index.ts index 42508ba9ceae..07f577433548 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,213 +38,211 @@ export type DeliveryRuleActionAutoGeneratedUnion = | DeliveryRuleRequestHeaderAction | DeliveryRuleResponseHeaderAction | DeliveryRuleCacheExpirationAction - | DeliveryRuleCacheKeyQueryStringAction; -export type CustomDomainHttpsParametersUnion = - | CustomDomainHttpsParameters - | CdnManagedHttpsParameters - | UserManagedHttpsParameters; -export type SecurityPolicyParametersUnion = - | SecurityPolicyParameters + | DeliveryRuleCacheKeyQueryStringAction + | DeliveryRuleRouteConfigurationOverrideAction; +export type SecurityPolicyPropertiesParametersUnion = + | SecurityPolicyPropertiesParameters | SecurityPolicyWebApplicationFirewallParameters; export type SecretParametersUnion = | SecretParameters | UrlSigningKeyParameters | ManagedCertificateParameters - | CustomerCertificateParameters; - -/** 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 { - /** - * List of CDN profiles within a resource group. - * 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. */ - nextLink?: string; -} + | CustomerCertificateParameters + | AzureFirstPartyManagedCertificateParameters; +export type CustomDomainHttpsParametersUnion = + | CustomDomainHttpsParameters + | CdnManagedHttpsParameters + | UserManagedHttpsParameters; -/** 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; +/** Input of CheckNameAvailability API. */ +export interface CheckEndpointNameAvailabilityInput { + /** The resource name to validate. */ + name: string; + /** The type of the resource whose name is to be validated. */ + type: ResourceType; + /** Indicates the endpoint name reuse scope. The default value is TenantReuse. */ + autoGeneratedDomainNameLabelScope?: AutoGeneratedDomainNameLabelScope; } -/** The core properties of ARM resources */ -export interface Resource { +/** Output of check name availability API. */ +export interface CheckEndpointNameAvailabilityOutput { /** - * Resource ID. + * Indicates whether the name is available. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly id?: string; + readonly nameAvailable?: boolean; /** - * Resource name. + * Returns the available hostname generated based on the AutoGeneratedDomainNameLabelScope when the name is available, otherwise it returns empty string * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: string; + readonly availableHostname?: string; /** - * Resource type. + * The reason why the name is not available. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly type?: string; + readonly reason?: string; /** - * Read only system data + * 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 systemData?: SystemData; + readonly message?: string; } -/** Read only system data */ -export interface SystemData { - /** An identifier for the identity that created the resource */ - createdBy?: string; - /** The type of identity that created the resource */ - createdByType?: IdentityType; - /** The timestamp of resource creation (UTC) */ - createdAt?: Date; - /** An identifier for the identity that last modified the resource */ - lastModifiedBy?: string; - /** The type of identity that last modified the resource */ - lastModifiedByType?: IdentityType; - /** The timestamp of resource last modification (UTC) */ - lastModifiedAt?: Date; +/** 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; } -/** Error response indicates CDN service is not able to process the incoming request. The reason is provided in the error message. */ -export interface ErrorResponse { +/** The error detail. */ +export interface ErrorDetail { /** - * Error code. + * The error code. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly code?: string; /** - * Error message indicating why the operation failed. + * The error message. * 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 }; -} - -/** The URI required to login to the supplemental portal from the Azure portal. */ -export interface SsoUri { /** - * The URI used to login to the supplemental portal. + * The error target. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly ssoUriValue?: string; -} - -/** The result of the GetSupportedOptimizationTypes API */ -export interface SupportedOptimizationTypesListResult { + readonly target?: string; /** - * Supported optimization types for a profile. + * The error details. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedOptimizationTypes?: OptimizationType[]; + 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[]; } -/** Output of check resource usage API. */ -export interface ResourceUsageListResult { +/** The resource management error additional info. */ +export interface ErrorAdditionalInfo { /** - * List of resource usages. + * The additional info type. * 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. */ + readonly type?: string; + /** + * The additional info. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly info?: Record; +} + +/** 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; } -/** Output of check resource usage API. */ -export interface ResourceUsage { +/** Describes resource usage. */ +export interface Usage { /** - * Resource type for which the usage is provided. + * Resource identifier. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly resourceType?: string; + 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; +} + +/** Input of CheckHostNameAvailability API. */ +export interface CheckHostNameAvailabilityInput { + /** The host name to validate. */ + hostName: string; +} + +/** Output of check name availability API. */ +export interface CheckNameAvailabilityOutput { /** - * Unit of the usage. e.g. Count. + * Indicates whether the name is available. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly unit?: string; + readonly nameAvailable?: boolean; /** - * Actual value of usage on the specified resource type. + * The reason why the name is not available. * 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. + * 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 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 domains. It contains a list of domain objects and a URL link to get the next set of results. */ +export interface AFDDomainListResult { /** - * List of CDN endpoints within a profile + * List of AzureFrontDoor domains within a profile. * 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?: AFDDomain[]; + /** URL to get the next set of domain 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 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 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 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 send health probes to origin. */ -export interface HealthProbeParameters { - /** The path relative to the origin that is used to determine the health of the origin. */ - probePath?: string; - /** The type of health probe request that is made. */ - probeRequestType?: HealthProbeRequestType; - /** Protocol to use for health probe. */ - probeProtocol?: ProbeProtocol; - /** The number of seconds between health probes.Default is 240sec. */ - probeIntervalInSeconds?: number; +/** 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. */ @@ -248,193 +251,113 @@ export interface ResourceReference { 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 */ - responseBasedDetectedErrorTypes?: ResponseBasedDetectedErrorTypes; - /** The percentage of failed requests in the sample where failover should trigger. */ - responseBasedFailoverThresholdPercentage?: number; - /** The list of Http status code ranges that are considered as server errors for origin and it is marked as unhealthy. */ - httpErrorRanges?: HttpErrorRangeParameters[]; -} - -/** The JSON object that represents the range for http status codes */ -export interface HttpErrorRangeParameters { - /** The inclusive start of the http status code range. */ - begin?: number; - /** The inclusive end of the http status code range. */ - end?: number; +/** 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 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; -} - -/** 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[]; -} - -/** 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; -} - -/** 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; -} - -/** 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[]; +/** The core properties of ARM resources */ +export interface Resource { + /** + * Resource ID. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; + /** + * Resource name. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** + * Resource type. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; + /** + * Read only system data + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; } -/** 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[]; +/** Read only system data */ +export interface SystemData { + /** An identifier for the identity that created the resource */ + createdBy?: string; + /** The type of identity that created the resource */ + createdByType?: IdentityType; + /** The timestamp of resource creation (UTC) */ + createdAt?: Date; + /** An identifier for the identity that last modified the resource */ + lastModifiedBy?: string; + /** The type of identity that last modified the resource */ + lastModifiedByType?: IdentityType; + /** The timestamp of resource last modification (UTC) */ + lastModifiedAt?: Date; } -/** 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" - | "RequestBody" - | "RequestScheme" - | "UrlPath" - | "UrlFileExtension" - | "UrlFileName" - | "HttpVersion" - | "Cookies" - | "IsDevice"; +/** The domain JSON object required for domain creation or update. */ +export interface AFDDomainUpdateParameters { + /** + * 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; } -/** An action for the delivery rule. */ -export interface DeliveryRuleActionAutoGenerated { - /** Polymorphic discriminator, which specifies the different types this object can be */ - name: - | "UrlRedirect" - | "UrlSigning" - | "OriginGroupOverride" - | "UrlRewrite" - | "ModifyRequestHeader" - | "ModifyResponseHeader" - | "CacheExpiration" - | "CacheKeyQueryString"; +/** 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[]; + /** URL to get the next set of endpoint objects if there is any. */ + nextLink?: string; } -/** Defines the Web Application Firewall policy for the endpoint (if applicable) */ -export interface EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink { - /** Resource ID. */ - id?: string; +/** The JSON object containing endpoint update parameters. */ +export interface AFDEndpointPropertiesUpdateParameters { + /** + * 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; } /** Properties required to create or update an endpoint. */ -export interface EndpointUpdateParameters { +export interface AFDEndpointUpdateParameters { /** 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; + /** + * 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; } /** Parameters required for content purge. */ -export interface PurgeParameters { +export interface AfdPurgeParameters { /** 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[]; + /** List of domains. */ + domains?: string[]; } /** Input of the custom domain to be validated for DNS mapping. */ @@ -462,654 +385,406 @@ export interface ValidateCustomDomainOutput { readonly message?: string; } -/** 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 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 origins within an endpoint + * 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?: Origin[]; + 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. */ -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; -} - -/** 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 { +/** The JSON object that contains the properties of the origin group. */ +export interface AFDOriginGroupUpdatePropertiesParameters { /** - * List of CDN origin groups within an endpoint + * 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 value?: OriginGroup[]; - /** 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 OriginGroupUpdatePropertiesParameters { + 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; + /** Whether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled' */ + sessionAffinityState?: EnabledState; } -/** Origin group properties needed for origin group creation or update. */ -export interface OriginGroupUpdateParameters { +/** 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. */ +export interface HealthProbeParameters { + /** The path relative to the origin that is used to determine the health of the origin. */ + probePath?: string; + /** The type of health probe request that is made. */ + probeRequestType?: HealthProbeRequestType; + /** Protocol to use for health probe. */ + probeProtocol?: ProbeProtocol; + /** The number of seconds between health probes.Default is 240sec. */ + probeIntervalInSeconds?: number; +} + +/** 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; - /** 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; + /** Whether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled' */ + sessionAffinityState?: EnabledState; } -/** 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 { +/** 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 CustomDomains within an endpoint. + * List of CDN origins 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. */ + 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 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 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; -} - -/** 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"; -} - -/** 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 JSON object that contains the properties of the origin. */ +export interface AFDOriginUpdatePropertiesParameters { /** - * The detailed error message describing why the name is not available. + * 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 message?: string; + 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?: SharedPrivateLinkResourceProperties; + /** 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; } -/** Input of the validate probe API. */ -export interface ValidateProbeInput { - /** The probe URL to validate. */ - probeURL: string; +/** 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; } -/** 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; +/** AFDOrigin properties needed for origin update. */ +export interface AFDOriginUpdateParameters { /** - * The detailed error message describing why the probe URL is not accepted. + * 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 message?: string; + 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?: SharedPrivateLinkResourceProperties; + /** 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; } -/** 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 { +/** 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 CDN operations supported by the CDN resource provider. + * List of AzureFrontDoor routes within a profile. * 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?: Route[]; + /** URL to get the next set of route objects if there are any. */ nextLink?: string; } -/** CDN REST API operation */ -export interface Operation { +/** The JSON object that contains the properties of the domain to create. */ +export interface RouteUpdatePropertiesParameters { /** - * Operation name: {provider}/{resource}/{operation} + * 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 name?: string; - /** The object that represents the operation. */ - display?: OperationDisplay; + 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; } -/** 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; +/** Reference to another resource along with its state. */ +export interface ActivatedResourceReference { + /** Resource ID. */ + id?: string; /** - * Operation type: Read, write, delete, etc. + * Whether the resource is active or inactive * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly operation?: string; + readonly isActive?: boolean; } -/** 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; +/** 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?: CompressionSettings; } -/** 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; +/** 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 resource usage. */ -export interface Usage { +/** The domain JSON object required for domain creation or update. */ +export interface RouteUpdateParameters { /** - * Resource identifier. + * 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 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; + 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 domains. It contains a list of domain objects and a URL link to get the next set of results. */ -export interface AFDDomainListResult { +/** 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 domains within a profile. + * 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?: AFDDomain[]; - /** URL to get the next set of domain objects if there are any. */ + readonly value?: RuleSet[]; + /** URL to get the next set of rule set objects if there are any. */ nextLink?: string; } -/** The JSON object that contains the properties to validate a domain. */ -export interface DomainValidationProperties { +/** 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 { /** - * Challenge used for DNS TXT record or file based validation + * List of AzureFrontDoor rules within a rule set. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly validationToken?: string; + 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 date time that the token expires + * 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 expirationDate?: 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; } -/** 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; +/** 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" + | "RequestBody" + | "RequestScheme" + | "UrlPath" + | "UrlFileExtension" + | "UrlFileName" + | "HttpVersion" + | "Cookies" + | "IsDevice" + | "SocketAddr" + | "ClientPort" + | "ServerPort" + | "HostName" + | "SslProtocol"; } -/** 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; +/** An action for the delivery rule. */ +export interface DeliveryRuleActionAutoGenerated { + /** Polymorphic discriminator, which specifies the different types this object can be */ + name: + | "UrlRedirect" + | "UrlSigning" + | "OriginGroupOverride" + | "UrlRewrite" + | "ModifyRequestHeader" + | "ModifyResponseHeader" + | "CacheExpiration" + | "CacheKeyQueryString" + | "RouteConfigurationOverride"; } -/** The tracking states for afd resources. */ -export interface AFDStateProperties { +/** The domain JSON object required for domain creation or update. */ +export interface RuleUpdateParameters { /** - * Provisioning status + * 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 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; + 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 endpoints. It contains a list of endpoint objects and a URL link to get the next set of results. */ -export interface AFDEndpointListResult { +/** 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 AzureFrontDoor endpoints within a profile + * List of Security policies within a profile * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: AFDEndpoint[]; - /** URL to get the next set of endpoint objects if there is any. */ + readonly value?: SecurityPolicy[]; + /** URL to get the next set of security policy 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; +/** The json object containing security policy parameters */ +export interface SecurityPolicyPropertiesParameters { + /** Polymorphic discriminator, which specifies the different types this object can be */ + type: "WebApplicationFirewall"; } -/** 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[]; +/** The JSON object containing security policy update parameters. */ +export interface SecurityPolicyUpdateParameters { + /** object which contains security policy parameters */ + parameters?: SecurityPolicyPropertiesParametersUnion; } -/** 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 { +/** 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?: AFDOriginGroup[]; - /** 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 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; +/** 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"; } -/** 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. */ - 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; -} - -/** 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 { - /** - * 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 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 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; -} - -/** 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; -} - -/** 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 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; -} - -/** The json object containing secret parameters */ -export interface SecretParameters { - /** Polymorphic discriminator, which specifies the different types this object can be */ - type: "UrlSigningKey" | "ManagedCertificate" | "CustomerCertificate"; -} - -/** Input of the secret to be validated. */ -export interface ValidateSecretInput { - /** The secret source. */ - secretSource: ResourceReference; - /** The secret type. */ - secretType: ValidateSecretType; +/** 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; } /** Output of the validated secret. */ @@ -1254,1657 +929,2211 @@ export interface ComponentsKpo1PjSchemasWafrankingsresponsePropertiesDataItemsPr percentage?: 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. */ -export interface CdnWebApplicationFirewallPolicyList { +/** 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 { /** - * List of Azure CDN WebApplicationFirewallPolicies within a resource group. + * List of CDN profiles within a resource group. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: CdnWebApplicationFirewallPolicy[]; - /** URL to get the next set of WebApplicationFirewallPolicy objects if there are any. */ + readonly value?: Profile[]; + /** URL to get the next set of profile objects if there are any. */ nextLink?: string; } -/** Defines contents of a web application firewall global configuration */ -export interface PolicySettings { - /** describes if the policy is in enabled state or disabled state */ - enabledState?: PolicyEnabledState; - /** Describes if it is in detection mode or prevention mode at policy level. */ - mode?: PolicyMode; - /** 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; - /** If the action type is block, customer can override the response body. The body must be specified in base64 encoding. */ - defaultCustomBlockResponseBody?: string; -} - -/** Defines contents of rate limit rules */ -export interface RateLimitRuleList { - /** List of rules */ - rules?: RateLimitRule[]; +/** + * 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; } -/** Defines the common attributes for a custom rule that can be included in a waf policy */ -export interface CustomRule { - /** Defines the name of the custom rule */ - name: string; - /** Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified. */ - enabledState?: CustomRuleEnabledState; - /** Defines in what order this rule be evaluated in the overall list of custom rules */ - priority: number; - /** List of match conditions. */ - matchConditions: MatchCondition[]; - /** Describes what action to be applied when rule matches */ - action: ActionType; +/** 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; } -/** Define match conditions */ -export interface MatchCondition { - /** Match variable to compare against. */ - matchVariable: MatchVariable; - /** Selector can used to match a specific key for QueryString, Cookies, RequestHeader or PostArgs. */ - selector?: string; - /** Describes operator to be matched */ - operator: Operator; - /** Describes if the result of this condition should be negated. */ - negateCondition?: boolean; - /** List of possible match values. */ - matchValue: string[]; - /** List of transforms. */ - transforms?: TransformType[]; -} - -/** Defines contents of custom rules */ -export interface CustomRuleList { - /** List of rules */ - rules?: CustomRule[]; -} - -/** Defines the list of managed rule sets for the policy. */ -export interface ManagedRuleSetList { - /** List of rule sets. */ - managedRuleSets?: ManagedRuleSet[]; -} - -/** Defines a managed rule set. */ -export interface ManagedRuleSet { - /** Defines the rule set type to use. */ - ruleSetType: string; - /** Defines the version of the rule set to use. */ - ruleSetVersion: string; - /** Verizon only : If the rule set supports anomaly detection mode, this describes the threshold for blocking requests. */ - anomalyScore?: number; - /** Defines the rule overrides to apply to the rule set. */ - ruleGroupOverrides?: ManagedRuleGroupOverride[]; -} - -/** Defines a managed rule group override setting. */ -export interface ManagedRuleGroupOverride { - /** Describes the managed rule group within the rule set to override */ - ruleGroupName: string; - /** List of rules that will be disabled. If none specified, all rules in the group will be disabled. */ - rules?: ManagedRuleOverride[]; -} - -/** Defines a managed rule group override setting. */ -export interface ManagedRuleOverride { - /** Identifier for the managed rule. */ - ruleId: string; - /** Describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified. */ - enabledState?: ManagedRuleEnabledState; - /** Describes the override action to be applied when rule matches. */ - action?: ActionType; +/** Properties required to update a profile. */ +export interface ProfileUpdateParameters { + /** Profile 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; } -/** Defines the ARM Resource ID for the linked endpoints */ -export interface CdnEndpoint { - /** ARM Resource ID string. */ - id?: string; +/** The URI required to login to the supplemental portal from the Azure portal. */ +export interface SsoUri { + /** + * 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 ssoUriValue?: string; } -/** Properties required to update a CdnWebApplicationFirewallPolicy. */ -export interface CdnWebApplicationFirewallPolicyPatchParameters { - /** CdnWebApplicationFirewallPolicy tags */ - tags?: { [propertyName: string]: string }; +/** The result of the GetSupportedOptimizationTypes API */ +export interface SupportedOptimizationTypesListResult { + /** + * Supported optimization types for a profile. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly supportedOptimizationTypes?: OptimizationType[]; } -/** List of managed rule set definitions available for use in a policy. */ -export interface ManagedRuleSetDefinitionList { +/** Output of check resource usage API. */ +export interface ResourceUsageListResult { /** - * List of managed rule set definitions. + * List of resource usages. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ManagedRuleSetDefinition[]; - /** URL to retrieve next set of managed rule set definitions. */ + readonly value?: ResourceUsage[]; + /** URL to get the next set of custom domain objects if there are any. */ nextLink?: string; } -/** Describes a managed rule group. */ -export interface ManagedRuleGroupDefinition { +/** Output of check resource usage API. */ +export interface ResourceUsage { /** - * Name of the managed rule group. + * Resource type for which the usage is provided. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly ruleGroupName?: string; + readonly resourceType?: string; /** - * Description of the managed rule group. + * Unit of the usage. e.g. Count. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly description?: string; + readonly unit?: string; /** - * List of rules within the managed rule group. + * 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 rules?: ManagedRuleDefinition[]; -} - -/** Describes a managed rule definition. */ -export interface ManagedRuleDefinition { + readonly currentValue?: number; /** - * Identifier for the managed rule. + * Quota of the specified resource type. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly ruleId?: string; + readonly limit?: number; +} + +/** 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 { /** - * Describes the functionality of the managed rule. + * List of CDN endpoints within a profile * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly description?: string; -} - -/** Defines the parameters for RemoteAddress match conditions */ -export interface RemoteAddressMatchConditionParameters { - odataType: "#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters"; - /** Describes operator to be matched */ - operator: RemoteAddressOperator; - /** Describes if this is negate condition or not */ - negateCondition?: boolean; - /** Match values to match against. The operator will apply to each value in here with OR semantics. If any of them match the variable with the given operator this match condition is considered a match. */ - matchValues?: string[]; - /** List of transforms */ - transforms?: Transform[]; + readonly value?: Endpoint[]; + /** URL to get the next set of endpoint objects if there is any. */ + nextLink?: string; } -/** Defines the parameters for RequestMethod match conditions */ -export interface RequestMethodMatchConditionParameters { - odataType: "#Microsoft.Azure.Cdn.Models.DeliveryRuleRequestMethodConditionParameters"; - /** Describes operator to be matched */ - operator: RequestMethodOperator; - /** Describes if this is negate condition or not */ - negateCondition?: boolean; - /** The match value for the condition of the delivery rule */ - matchValues?: RequestMethodMatchConditionParametersMatchValuesItem[]; +/** 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 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; } -/** Defines the parameters for QueryString match conditions */ -export interface QueryStringMatchConditionParameters { - odataType: "#Microsoft.Azure.Cdn.Models.DeliveryRuleQueryStringConditionParameters"; - /** Describes operator to be matched */ - operator: QueryStringOperator; - /** 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[]; +/** 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; } -/** Defines the parameters for PostArgs match conditions */ -export interface PostArgsMatchConditionParameters { - odataType: "#Microsoft.Azure.Cdn.Models.DeliveryRulePostArgsConditionParameters"; - /** Name of PostArg to be matched */ - selector?: string; - /** Describes operator to be matched */ - operator: PostArgsOperator; - /** 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[]; +/** 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 */ + responseBasedDetectedErrorTypes?: ResponseBasedDetectedErrorTypes; + /** The percentage of failed requests in the sample where failover should trigger. */ + responseBasedFailoverThresholdPercentage?: number; + /** The list of Http status code ranges that are considered as server errors for origin and it is marked as unhealthy. */ + httpErrorRanges?: HttpErrorRangeParameters[]; } -/** Defines the parameters for RequestUri match conditions */ -export interface RequestUriMatchConditionParameters { - odataType: "#Microsoft.Azure.Cdn.Models.DeliveryRuleRequestUriConditionParameters"; - /** Describes operator to be matched */ - operator: RequestUriOperator; - /** 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[]; +/** The JSON object that represents the range for http status codes */ +export interface HttpErrorRangeParameters { + /** The inclusive start of the http status code range. */ + begin?: number; + /** The inclusive end of the http status code range. */ + end?: number; } -/** Defines the parameters for RequestHeader match conditions */ -export interface RequestHeaderMatchConditionParameters { - odataType: "#Microsoft.Azure.Cdn.Models.DeliveryRuleRequestHeaderConditionParameters"; - /** Name of Header to be matched */ - selector?: string; - /** Describes operator to be matched */ - operator: RequestHeaderOperator; - /** 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[]; +/** 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; } -/** Defines the parameters for RequestBody match conditions */ -export interface RequestBodyMatchConditionParameters { - odataType: "#Microsoft.Azure.Cdn.Models.DeliveryRuleRequestBodyConditionParameters"; - /** Describes operator to be matched */ - operator: RequestBodyOperator; - /** 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[]; +/** 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; } -/** Defines the parameters for RequestScheme match conditions */ -export interface RequestSchemeMatchConditionParameters { - odataType: "#Microsoft.Azure.Cdn.Models.DeliveryRuleRequestSchemeConditionParameters"; - /** Describes operator to be matched */ - operator: "Equal"; - /** Describes if this is negate condition or not */ - negateCondition?: boolean; - /** The match value for the condition of the delivery rule */ - matchValues?: RequestSchemeMatchConditionParametersMatchValuesItem[]; +/** 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[]; } -/** Defines the parameters for UrlPath match conditions */ -export interface UrlPathMatchConditionParameters { - odataType: "#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlPathMatchConditionParameters"; - /** Describes operator to be matched */ - operator: UrlPathOperator; - /** 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[]; +/** 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; } -/** Defines the parameters for UrlFileExtension match conditions */ -export interface UrlFileExtensionMatchConditionParameters { - odataType: "#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlFileExtensionMatchConditionParameters"; - /** Describes operator to be matched */ - operator: UrlFileExtensionOperator; - /** 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[]; +/** 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; } -/** Defines the parameters for UrlFilename match conditions */ -export interface UrlFileNameMatchConditionParameters { - odataType: "#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlFilenameConditionParameters"; - /** Describes operator to be matched */ - operator: UrlFileNameOperator; - /** 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[]; +/** 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[]; } -/** Defines the parameters for HttpVersion match conditions */ -export interface HttpVersionMatchConditionParameters { - odataType: "#Microsoft.Azure.Cdn.Models.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[]; +/** 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[]; } -/** Defines the parameters for Cookies match conditions */ -export interface CookiesMatchConditionParameters { - odataType: "#Microsoft.Azure.Cdn.Models.DeliveryRuleCookiesConditionParameters"; - /** Name of Cookies to be matched */ - selector?: string; - /** Describes operator to be matched */ - operator: CookiesOperator; - /** 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 Web Application Firewall policy for the endpoint (if applicable) */ +export interface EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink { + /** Resource ID. */ + id?: string; } -/** Defines the parameters for IsDevice match conditions */ -export interface IsDeviceMatchConditionParameters { - odataType: "#Microsoft.Azure.Cdn.Models.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[]; - /** List of transforms */ - transforms?: Transform[]; +/** 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; } -/** Defines the parameters for the url redirect action. */ -export interface UrlRedirectActionParameters { - odataType: "#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlRedirectActionParameters"; - /** The redirect type the rule will use when redirecting traffic. */ - redirectType: RedirectType; - /** Protocol to use for the redirect. The default value is MatchRequest */ - destinationProtocol?: DestinationProtocol; - /** The full path to redirect. Path cannot be empty and must start with /. Leave empty to use the incoming path as destination path. */ - customPath?: string; - /** Host to redirect. Leave empty to use the incoming host as the destination host. */ - customHostname?: string; - /** The set of query strings to be placed in the redirect URL. Setting this value would replace any existing query string; leave empty to preserve the incoming query string. Query string must be in = format. ? and & will be added automatically so do not include them. */ - customQueryString?: string; - /** Fragment to add to the redirect URL. Fragment is the part of the URL that comes after #. Do not include the #. */ - customFragment?: string; +/** 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[]; } -/** Defines the parameters for the Url Signing action. */ -export interface UrlSigningActionParameters { - odataType: "#Microsoft.Azure.Cdn.Models.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. */ - parameterNameOverride?: UrlSigningParamIdentifier[]; +/** 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[]; } -/** Defines how to identify a parameter for a specific purpose e.g. expires */ -export interface UrlSigningParamIdentifier { - /** Indicates the purpose of the parameter */ - paramIndicator: ParamIndicator; - /** Parameter name */ - paramName: string; +/** 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; } -/** Defines the parameters for the origin group override action. */ -export interface OriginGroupOverrideActionParameters { - odataType: "#Microsoft.Azure.Cdn.Models.DeliveryRuleOriginGroupOverrideActionParameters"; - /** defines the OriginGroup that would override the DefaultOriginGroup. */ - originGroup: ResourceReference; +/** 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; } -/** Defines the parameters for the url rewrite action. */ -export interface UrlRewriteActionParameters { - odataType: "#Microsoft.Azure.Cdn.Models.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. */ - destination: string; - /** Whether to preserve unmatched path. Default value is true. */ - preserveUnmatchedPath?: boolean; +/** 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; } -/** Defines the parameters for the request header action. */ -export interface HeaderActionParameters { - odataType: "#Microsoft.Azure.Cdn.Models.DeliveryRuleHeaderActionParameters"; - /** Action to perform */ - headerAction: HeaderAction; - /** Name of the header to modify */ - headerName: string; - /** Value for the specified action */ - value?: 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 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; } -/** Defines the parameters for the cache expiration action. */ -export interface CacheExpirationActionParameters { - odataType: "#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters"; - /** Caching behavior for the requests */ - cacheBehavior: CacheBehavior; - /** The level at which the content needs to be cached. */ - cacheType: CacheType; - /** The duration for which the content needs to be cached. Allowed format is [d.]hh:mm:ss */ - cacheDuration?: 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; } -/** Defines the parameters for the cache-key query string action. */ -export interface CacheKeyQueryStringActionParameters { - odataType: "#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheKeyQueryStringBehaviorActionParameters"; - /** Caching behavior for the requests */ - queryStringBehavior: QueryStringBehavior; - /** query parameters to include or exclude (comma separated). */ - queryParameters?: string; +/** 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; } -/** Defines the parameters for using CDN managed certificate for securing custom domain. */ -export interface CdnCertificateSourceParameters { - odataType: "#Microsoft.Azure.Cdn.Models.CdnCertificateSourceParameters"; - /** Type of certificate used */ - certificateType: CertificateType; +/** 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; } -/** Describes the parameters for using a user's KeyVault certificate for securing custom domain. */ -export interface KeyVaultCertificateSourceParameters { - odataType: "#Microsoft.Azure.Cdn.Models.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 */ - resourceGroupName: string; - /** The name of the user's Key Vault containing the SSL certificate */ - vaultName: string; - /** The name of Key Vault Secret (representing the full certificate PFX) in Key Vault. */ - secretName: string; - /** The version(GUID) of Key Vault Secret in Key Vault. */ - secretVersion?: string; - /** Describes the action that shall be taken when the certificate is updated in Key Vault. */ - updateRule: UpdateRule; - /** Describes the action that shall be taken when the certificate is removed from Key Vault. */ - deleteRule: DeleteRule; +/** 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; } -/** Certificate used for https */ -export interface Certificate { - /** Subject name in the certificate. */ - subject?: string; - /** Certificate expiration date. */ - expirationDate?: string; - /** Certificate thumbprint. */ - thumbprint?: string; +/** 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: ResourceType; } -/** settings for security policy patterns to match */ -export interface SecurityPolicyWebApplicationFirewallAssociation { - /** List of domains. */ - domains?: ResourceReference[]; - /** List of paths */ - patternsToMatch?: string[]; +/** Input of the validate probe API. */ +export interface ValidateProbeInput { + /** The probe URL to validate. */ + probeURL: 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; +/** 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; } -/** 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; +/** 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; } -/** The resource model definition for a ARM tracked top level resource. */ -export type TrackedResource = Resource & { - /** Resource location. */ - location: string; - /** Resource tags. */ - 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. */ - sku?: Sku; +/** CDN REST API operation */ +export interface Operation { /** - * Provisioning state of the managed rule set. + * Operation name: {provider}/{resource}/{operation} * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: string; + readonly name?: string; + /** Indicates whether the operation is a data action */ + isDataAction?: boolean; + /** The object that represents the operation. */ + display?: OperationDisplay; /** - * Type of the managed rule set. + * The origin of operations. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly ruleSetType?: string; + readonly origin?: string; + /** One property of operation, include metric specifications. */ + serviceSpecification?: ServiceSpecification; +} + +/** The object that represents the operation. */ +export interface OperationDisplay { /** - * Version of the managed rule set type. + * Service provider: Microsoft.Cdn * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly ruleSetVersion?: string; + readonly provider?: string; /** - * Rule groups of the managed rule set. + * 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 ruleGroups?: ManagedRuleGroupDefinition[]; -}; - -/** The JSON object that contains the properties required to create an endpoint. */ -export type EndpointProperties = EndpointPropertiesUpdateParameters & { + readonly resource?: string; /** - * The host name of the endpoint structured as {endpointName}.{DNSZone}, e.g. contoso.azureedge.net + * Operation type: Read, write, delete, etc. * 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[]; + readonly operation?: string; /** - * Resource status of the endpoint. + * Description of operation. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly resourceState?: EndpointResourceState; + readonly description?: string; +} + +/** 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; + /** Display name of log specification. */ + displayName?: string; + /** Blob duration of specification. */ + blobDuration?: string; + /** Pattern to filter based on name */ + logFilterPattern?: string; +} + +/** 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; +} + +/** 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 { /** - * Provisioning status of the endpoint. + * Edge node of CDN service. * 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 */ - name: "RemoteAddress"; - /** Defines the parameters for the condition. */ - parameters: RemoteAddressMatchConditionParameters; -}; + readonly value?: EdgeNode[]; + /** URL to get the next set of edgenode list results if there are any. */ + nextLink?: string; +} -/** Defines the RequestMethod condition for the delivery rule. */ -export type DeliveryRuleRequestMethodCondition = DeliveryRuleCondition & { - /** Polymorphic discriminator, which specifies the different types this object can be */ - name: "RequestMethod"; - /** Defines the parameters for the condition. */ - parameters: RequestMethodMatchConditionParameters; -}; +/** 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[]; +} -/** Defines the QueryString condition for the delivery rule. */ -export type DeliveryRuleQueryStringCondition = DeliveryRuleCondition & { - /** Polymorphic discriminator, which specifies the different types this object can be */ - name: "QueryString"; - /** Defines the parameters for the condition. */ - parameters: QueryStringMatchConditionParameters; -}; +/** CIDR Ip address */ +export interface CidrIpAddress { + /** Ip address itself. */ + baseIpAddress?: string; + /** The length of the prefix of the ip address. */ + prefixLength?: number; +} -/** Defines the PostArgs condition for the delivery rule. */ -export type DeliveryRulePostArgsCondition = DeliveryRuleCondition & { - /** Polymorphic discriminator, which specifies the different types this object can be */ - name: "PostArgs"; - /** Defines the parameters for the condition. */ - parameters: PostArgsMatchConditionParameters; -}; +/** 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. */ +export interface CdnWebApplicationFirewallPolicyList { + /** + * List of Azure CDN WebApplicationFirewallPolicies within a resource group. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: CdnWebApplicationFirewallPolicy[]; + /** URL to get the next set of WebApplicationFirewallPolicy objects if there are any. */ + nextLink?: string; +} -/** Defines the RequestUri condition for the delivery rule. */ -export type DeliveryRuleRequestUriCondition = DeliveryRuleCondition & { - /** Polymorphic discriminator, which specifies the different types this object can be */ - name: "RequestUri"; - /** Defines the parameters for the condition. */ - parameters: RequestUriMatchConditionParameters; -}; +/** Defines contents of a web application firewall global configuration */ +export interface PolicySettings { + /** describes if the policy is in enabled state or disabled state */ + enabledState?: PolicyEnabledState; + /** Describes if it is in detection mode or prevention mode at policy level. */ + mode?: PolicyMode; + /** 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?: PolicySettingsDefaultCustomBlockResponseStatusCode; + /** If the action type is block, customer can override the response body. The body must be specified in base64 encoding. */ + defaultCustomBlockResponseBody?: string; +} -/** Defines the RequestHeader condition for the delivery rule. */ -export type DeliveryRuleRequestHeaderCondition = DeliveryRuleCondition & { - /** Polymorphic discriminator, which specifies the different types this object can be */ - name: "RequestHeader"; - /** Defines the parameters for the condition. */ - parameters: RequestHeaderMatchConditionParameters; -}; +/** Defines contents of rate limit rules */ +export interface RateLimitRuleList { + /** List of rules */ + rules?: RateLimitRule[]; +} -/** Defines the RequestBody condition for the delivery rule. */ -export type DeliveryRuleRequestBodyCondition = DeliveryRuleCondition & { - /** Polymorphic discriminator, which specifies the different types this object can be */ - name: "RequestBody"; - /** Defines the parameters for the condition. */ - parameters: RequestBodyMatchConditionParameters; -}; +/** Defines the common attributes for a custom rule that can be included in a waf policy */ +export interface CustomRule { + /** Defines the name of the custom rule */ + name: string; + /** Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified. */ + enabledState?: CustomRuleEnabledState; + /** Defines in what order this rule be evaluated in the overall list of custom rules */ + priority: number; + /** List of match conditions. */ + matchConditions: MatchCondition[]; + /** Describes what action to be applied when rule matches */ + action: ActionType; +} -/** Defines the RequestScheme condition for the delivery rule. */ -export type DeliveryRuleRequestSchemeCondition = DeliveryRuleCondition & { - /** Polymorphic discriminator, which specifies the different types this object can be */ - name: "RequestScheme"; - /** Defines the parameters for the condition. */ - parameters: RequestSchemeMatchConditionParameters; -}; +/** Define match conditions */ +export interface MatchCondition { + /** Match variable to compare against. */ + matchVariable: WafMatchVariable; + /** Selector can used to match a specific key for QueryString, Cookies, RequestHeader or PostArgs. */ + selector?: string; + /** Describes operator to be matched */ + operator: Operator; + /** Describes if the result of this condition should be negated. */ + negateCondition?: boolean; + /** List of possible match values. */ + matchValue: string[]; + /** List of transforms. */ + transforms?: TransformType[]; +} -/** Defines the UrlPath condition for the delivery rule. */ -export type DeliveryRuleUrlPathCondition = DeliveryRuleCondition & { - /** Polymorphic discriminator, which specifies the different types this object can be */ - name: "UrlPath"; - /** Defines the parameters for the condition. */ - parameters: UrlPathMatchConditionParameters; -}; +/** Defines contents of custom rules */ +export interface CustomRuleList { + /** List of rules */ + rules?: CustomRule[]; +} -/** Defines the UrlFileExtension condition for the delivery rule. */ -export type DeliveryRuleUrlFileExtensionCondition = DeliveryRuleCondition & { - /** Polymorphic discriminator, which specifies the different types this object can be */ - name: "UrlFileExtension"; - /** Defines the parameters for the condition. */ - parameters: UrlFileExtensionMatchConditionParameters; -}; +/** Defines the list of managed rule sets for the policy. */ +export interface ManagedRuleSetList { + /** List of rule sets. */ + managedRuleSets?: ManagedRuleSet[]; +} -/** Defines the UrlFileName condition for the delivery rule. */ -export type DeliveryRuleUrlFileNameCondition = DeliveryRuleCondition & { - /** Polymorphic discriminator, which specifies the different types this object can be */ - name: "UrlFileName"; - /** Defines the parameters for the condition. */ - parameters: UrlFileNameMatchConditionParameters; -}; +/** Defines a managed rule set. */ +export interface ManagedRuleSet { + /** Defines the rule set type to use. */ + ruleSetType: string; + /** Defines the version of the rule set to use. */ + ruleSetVersion: string; + /** Verizon only : If the rule set supports anomaly detection mode, this describes the threshold for blocking requests. */ + anomalyScore?: number; + /** Defines the rule overrides to apply to the rule set. */ + ruleGroupOverrides?: ManagedRuleGroupOverride[]; +} -/** Defines the HttpVersion condition for the delivery rule. */ -export type DeliveryRuleHttpVersionCondition = DeliveryRuleCondition & { - /** Polymorphic discriminator, which specifies the different types this object can be */ - name: "HttpVersion"; - /** Defines the parameters for the condition. */ - parameters: HttpVersionMatchConditionParameters; -}; +/** Defines a managed rule group override setting. */ +export interface ManagedRuleGroupOverride { + /** Describes the managed rule group within the rule set to override */ + ruleGroupName: string; + /** List of rules that will be disabled. If none specified, all rules in the group will be disabled. */ + rules?: ManagedRuleOverride[]; +} -/** Defines the Cookies condition for the delivery rule. */ -export type DeliveryRuleCookiesCondition = DeliveryRuleCondition & { - /** Polymorphic discriminator, which specifies the different types this object can be */ - name: "Cookies"; - /** Defines the parameters for the condition. */ - parameters: CookiesMatchConditionParameters; -}; +/** Defines a managed rule group override setting. */ +export interface ManagedRuleOverride { + /** Identifier for the managed rule. */ + ruleId: string; + /** Describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified. */ + enabledState?: ManagedRuleEnabledState; + /** Describes the override action to be applied when rule matches. */ + action?: ActionType; +} -/** Defines the IsDevice condition for the delivery rule. */ -export type DeliveryRuleIsDeviceCondition = DeliveryRuleCondition & { - /** Polymorphic discriminator, which specifies the different types this object can be */ - name: "IsDevice"; - /** Defines the parameters for the condition. */ - parameters: IsDeviceMatchConditionParameters; -}; +/** Defines the ARM Resource ID for the linked endpoints */ +export interface CdnEndpoint { + /** ARM Resource ID string. */ + id?: string; +} -/** 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: "UrlRedirect"; - /** Defines the parameters for the action. */ - parameters: UrlRedirectActionParameters; -}; +/** Properties required to update a CdnWebApplicationFirewallPolicy. */ +export interface CdnWebApplicationFirewallPolicyPatchParameters { + /** CdnWebApplicationFirewallPolicy tags */ + tags?: { [propertyName: string]: string }; +} -/** 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: "UrlSigning"; - /** Defines the parameters for the action. */ - parameters: UrlSigningActionParameters; -}; +/** List of managed rule set definitions available for use in a policy. */ +export interface ManagedRuleSetDefinitionList { + /** + * List of managed rule set definitions. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: ManagedRuleSetDefinition[]; + /** URL to retrieve next set of managed rule set definitions. */ + nextLink?: string; +} -/** 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: "OriginGroupOverride"; - /** Defines the parameters for the action. */ - parameters: OriginGroupOverrideActionParameters; -}; +/** Describes a managed rule group. */ +export interface ManagedRuleGroupDefinition { + /** + * Name of the managed rule group. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly ruleGroupName?: string; + /** + * Description of the managed rule group. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly description?: string; + /** + * List of rules within the managed rule group. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly rules?: ManagedRuleDefinition[]; +} -/** 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; -}; - -/** 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; -}; - -/** 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; -}; - -/** 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; -}; - -/** 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 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; +/** Describes a managed rule definition. */ +export interface ManagedRuleDefinition { /** - * Provisioning status of the origin. + * Identifier for the managed rule. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: string; + readonly ruleId?: string; /** - * The approval status for the connection to the Private Link + * Describes the functionality of the managed rule. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly privateEndpointStatus?: PrivateEndpointStatus; -}; + readonly description?: string; +} -/** The JSON object that contains the properties of the origin group. */ -export type OriginGroupProperties = OriginGroupUpdatePropertiesParameters & { +/** Certificate used for https */ +export interface Certificate { + /** The type of the secret resource. */ + type?: SecretType; /** - * Resource status of the origin group. + * Subject name in the certificate. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly resourceState?: OriginGroupResourceState; + readonly subject?: string; /** - * Provisioning status of the origin group. + * Certificate expiration date. * 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; -}; + readonly expirationDate?: string; +} -/** 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; -}; +/** settings for security policy patterns to match */ +export interface SecurityPolicyWebApplicationFirewallAssociation { + /** List of domains. */ + domains?: ActivatedResourceReference[]; + /** List of paths */ + patternsToMatch?: 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; - }; +/** The validation token. */ +export interface ValidationToken { + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly token?: 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; - }; +/** Defines the parameters for RemoteAddress match conditions */ +export interface RemoteAddressMatchConditionParameters { + typeName: "DeliveryRuleRemoteAddressConditionParameters"; + /** Describes operator to be matched */ + operator: RemoteAddressOperator; + /** Describes if this is negate condition or not */ + negateCondition?: boolean; + /** Match values to match against. The operator will apply to each value in here with OR semantics. If any of them match the variable with the given operator this match condition is considered a match. */ + matchValues?: string[]; + /** List of transforms */ + transforms?: Transform[]; +} -/** The JSON object that contains the properties of the origin group. */ -export type AFDOriginGroupProperties = AFDOriginGroupUpdatePropertiesParameters & - AFDStateProperties & {}; +/** Defines the parameters for RequestMethod match conditions */ +export interface RequestMethodMatchConditionParameters { + 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[]; +} -/** The JSON object that contains the properties of the origin. */ -export type AFDOriginProperties = AFDOriginUpdatePropertiesParameters & - AFDStateProperties & {}; +/** Defines the parameters for QueryString match conditions */ +export interface QueryStringMatchConditionParameters { + typeName: "DeliveryRuleQueryStringConditionParameters"; + /** Describes operator to be matched */ + operator: QueryStringOperator; + /** 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[]; +} -/** The JSON object that contains the properties of the Routes to create. */ -export type RouteProperties = RouteUpdatePropertiesParameters & - AFDStateProperties & {}; +/** Defines the parameters for PostArgs match conditions */ +export interface PostArgsMatchConditionParameters { + typeName: "DeliveryRulePostArgsConditionParameters"; + /** Name of PostArg to be matched */ + selector?: string; + /** Describes operator to be matched */ + operator: PostArgsOperator; + /** 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[]; +} -/** The JSON object that contains the properties of the Rule Set to create. */ -export type RuleSetProperties = AFDStateProperties & {}; +/** Defines the parameters for RequestUri match conditions */ +export interface RequestUriMatchConditionParameters { + typeName: "DeliveryRuleRequestUriConditionParameters"; + /** Describes operator to be matched */ + operator: RequestUriOperator; + /** 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[]; +} -/** The JSON object that contains the properties of the Rules to create. */ -export type RuleProperties = RuleUpdatePropertiesParameters & - AFDStateProperties & {}; +/** Defines the parameters for RequestHeader match conditions */ +export interface RequestHeaderMatchConditionParameters { + typeName: "DeliveryRuleRequestHeaderConditionParameters"; + /** Name of Header to be matched */ + selector?: string; + /** Describes operator to be matched */ + operator: RequestHeaderOperator; + /** 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[]; +} -/** 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 parameters for RequestBody match conditions */ +export interface RequestBodyMatchConditionParameters { + typeName: "DeliveryRuleRequestBodyConditionParameters"; + /** Describes operator to be matched */ + operator: RequestBodyOperator; + /** 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[]; +} -/** 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 parameters for RequestScheme match conditions */ +export interface RequestSchemeMatchConditionParameters { + 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[]; +} -/** The json object containing security policy waf parameters */ -export type SecurityPolicyWebApplicationFirewallParameters = SecurityPolicyParameters & { - /** Polymorphic discriminator, which specifies the different types this object can be */ - type: "WebApplicationFirewall"; - /** Resource ID. */ - wafPolicy?: ResourceReference; - /** Waf associations */ - associations?: SecurityPolicyWebApplicationFirewallAssociation[]; -}; +/** Defines the parameters for UrlPath match conditions */ +export interface UrlPathMatchConditionParameters { + typeName: "DeliveryRuleUrlPathMatchConditionParameters"; + /** Describes operator to be matched */ + operator: UrlPathOperator; + /** 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[]; +} -/** Url signing key parameters */ -export type UrlSigningKeyParameters = SecretParameters & { - /** Polymorphic discriminator, which specifies the different types this object can be */ - 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 */ - secretSource: ResourceReference; - /** Version of the secret to be used */ - secretVersion?: string; -}; +/** Defines the parameters for UrlFileExtension match conditions */ +export interface UrlFileExtensionMatchConditionParameters { + typeName: "DeliveryRuleUrlFileExtensionMatchConditionParameters"; + /** Describes operator to be matched */ + operator: UrlFileExtensionOperator; + /** 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[]; +} -/** Managed Certificate used for https */ -export type ManagedCertificateParameters = SecretParameters & { - /** Polymorphic discriminator, which specifies the different types this object can be */ - type: "ManagedCertificate"; -}; +/** Defines the parameters for UrlFilename match conditions */ +export interface UrlFileNameMatchConditionParameters { + typeName: "DeliveryRuleUrlFilenameConditionParameters"; + /** Describes operator to be matched */ + operator: UrlFileNameOperator; + /** 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[]; +} -/** 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 */ - 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 the parameters for HttpVersion match conditions */ +export interface HttpVersionMatchConditionParameters { + 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 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; -}; +/** Defines the parameters for Cookies match conditions */ +export interface CookiesMatchConditionParameters { + typeName: "DeliveryRuleCookiesConditionParameters"; + /** Name of Cookies to be matched */ + selector?: string; + /** Describes operator to be matched */ + operator: CookiesOperator; + /** 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[]; +} -/** Managed Certificate used for https */ -export type ManagedCertificate = Certificate & {}; +/** Defines the parameters for IsDevice match conditions */ +export interface IsDeviceMatchConditionParameters { + 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[]; + /** List of transforms */ + transforms?: Transform[]; +} -/** 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[]; -}; +/** 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[]; + /** List of transforms */ + transforms?: Transform[]; +} -/** 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. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly resourceState?: ProfileResourceState; - /** - * 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; -}; +/** 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[]; + /** List of transforms */ + transforms?: Transform[]; +} -/** 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; - /** - * 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 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[]; + /** List of transforms */ + transforms?: Transform[]; +} -/** 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 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 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; -}; +/** 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[]; + /** List of transforms */ + transforms?: Transform[]; +} -/** 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; +/** Defines the parameters for the url redirect action. */ +export interface UrlRedirectActionParameters { + 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 */ + destinationProtocol?: DestinationProtocol; + /** The full path to redirect. Path cannot be empty and must start with /. Leave empty to use the incoming path as destination path. */ + customPath?: string; + /** Host to redirect. Leave empty to use the incoming host as the destination host. */ + customHostname?: string; + /** The set of query strings to be placed in the redirect URL. Setting this value would replace any existing query string; leave empty to preserve the incoming query string. Query string must be in = format. ? and & will be added automatically so do not include them. */ + customQueryString?: string; + /** Fragment to add to the redirect URL. Fragment is the part of the URL that comes after #. Do not include the #. */ + customFragment?: string; +} + +/** Defines the parameters for the Url Signing action. */ +export interface UrlSigningActionParameters { + 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. */ + parameterNameOverride?: UrlSigningParamIdentifier[]; +} + +/** Defines how to identify a parameter for a specific purpose e.g. expires */ +export interface UrlSigningParamIdentifier { + /** Indicates the purpose of the parameter */ + paramIndicator: ParamIndicator; + /** Parameter name */ + paramName: string; +} + +/** Defines the parameters for the origin group override action. */ +export interface OriginGroupOverrideActionParameters { + typeName: "DeliveryRuleOriginGroupOverrideActionParameters"; + /** defines the OriginGroup that would override the DefaultOriginGroup. */ + originGroup: ResourceReference; +} + +/** Defines the parameters for the url rewrite action. */ +export interface UrlRewriteActionParameters { + 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. */ + destination: string; + /** Whether to preserve unmatched path. Default value is true. */ + preserveUnmatchedPath?: boolean; +} + +/** Defines the parameters for the request header action. */ +export interface HeaderActionParameters { + typeName: "DeliveryRuleHeaderActionParameters"; + /** Action to perform */ + headerAction: HeaderAction; + /** Name of the header to modify */ + headerName: string; + /** Value for the specified action */ + value?: string; +} + +/** Defines the parameters for the cache expiration action. */ +export interface CacheExpirationActionParameters { + typeName: "DeliveryRuleCacheExpirationActionParameters"; + /** Caching behavior for the requests */ + cacheBehavior: CacheBehavior; + /** The level at which the content needs to be cached. */ + cacheType: CacheType; + /** The duration for which the content needs to be cached. Allowed format is [d.]hh:mm:ss */ + cacheDuration?: string; +} + +/** Defines the parameters for the cache-key query string action. */ +export interface CacheKeyQueryStringActionParameters { + 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 { + 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 { + 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 */ + resourceGroupName: string; + /** The name of the user's Key Vault containing the SSL certificate */ + vaultName: string; + /** The name of Key Vault Secret (representing the full certificate PFX) in Key Vault. */ + secretName: string; + /** The version(GUID) of Key Vault Secret in Key Vault. */ + secretVersion?: string; + /** Describes the action that shall be taken when the certificate is updated in Key Vault. */ + updateRule: UpdateRule; + /** Describes the action that shall be taken when the certificate is removed from Key Vault. */ + deleteRule: DeleteRule; +} + +/** 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; + /** Indicates the endpoint name reuse scope. The default value is TenantReuse. */ + autoGeneratedDomainNameLabelScope?: AutoGeneratedDomainNameLabelScope; + }; + +/** The JSON object that contains the properties of the origin group. */ +export type AFDOriginGroupProperties = AFDOriginGroupUpdatePropertiesParameters & + AFDStateProperties & {}; + +/** 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 approval status for the connection to the Private Link + * 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 privateEndpointStatus?: PrivateEndpointStatus; + readonly profileName?: string; }; -/** 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; +/** 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 & { /** - * Resource status of the origin group. + * 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 resourceState?: OriginGroupResourceState; + readonly profileName?: string; + /** object which contains security policy parameters */ + parameters?: SecurityPolicyPropertiesParametersUnion; +}; + +/** The JSON object that contains the properties of the Secret to create. */ +export type SecretProperties = AFDStateProperties & { /** - * Provisioning status of the origin group. + * 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 provisioningState?: string; + 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; +/** 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 & { + /** Resource location. */ + location: string; + /** Resource tags. */ + tags?: { [propertyName: string]: string }; +}; + +/** Describes a managed rule set definition. */ +export type ManagedRuleSetDefinition = Resource & { + /** The pricing tier (defines a CDN provider, feature list and rate) of the CdnWebApplicationFirewallPolicy. */ + sku?: Sku; /** - * Resource status of the custom domain. + * Provisioning state of the managed rule set. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly resourceState?: CustomDomainResourceState; + readonly provisioningState?: string; /** - * Provisioning status of Custom Https of the custom domain. + * Type of the managed rule set. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly customHttpsProvisioningState?: CustomHttpsProvisioningState; + readonly ruleSetType?: string; /** - * Provisioning substate shows the progress of custom HTTPS enabling/disabling process step by step. + * Version of the managed rule set type. * 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 ruleSetVersion?: string; /** - * Provisioning status of the custom domain. + * Rule groups of the managed rule set. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: string; + readonly ruleGroups?: ManagedRuleGroupDefinition[]; }; -/** 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[]; -}; +/** Defines the RemoteAddress condition for the delivery rule. */ +export type DeliveryRuleRemoteAddressCondition = DeliveryRuleCondition & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + name: "RemoteAddress"; + /** Defines the parameters for the condition. */ + parameters: RemoteAddressMatchConditionParameters; +}; -/** 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 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; - /** - * 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 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; +/** Defines the RequestMethod condition for the delivery rule. */ +export type DeliveryRuleRequestMethodCondition = DeliveryRuleCondition & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + name: "RequestMethod"; + /** Defines the parameters for the condition. */ + parameters: RequestMethodMatchConditionParameters; }; -/** AFDOrigin group comprising of origins is used for load balancing to origins when the content cannot be served from CDN. */ -export type AFDOriginGroup = ProxyResource & { - /** 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; - /** - * 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; +/** Defines the QueryString condition for the delivery rule. */ +export type DeliveryRuleQueryStringCondition = DeliveryRuleCondition & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + name: "QueryString"; + /** Defines the parameters for the condition. */ + parameters: QueryStringMatchConditionParameters; }; -/** 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 & { - /** 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; - /** - * 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; +/** Defines the PostArgs condition for the delivery rule. */ +export type DeliveryRulePostArgsCondition = DeliveryRuleCondition & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + name: "PostArgs"; + /** Defines the parameters for the condition. */ + parameters: PostArgsMatchConditionParameters; }; -/** Friendly Routes name mapping to the any Routes or secret related information. */ -export type Route = ProxyResource & { - /** 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; - /** - * 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; +/** Defines the RequestUri condition for the delivery rule. */ +export type DeliveryRuleRequestUriCondition = DeliveryRuleCondition & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + name: "RequestUri"; + /** Defines the parameters for the condition. */ + parameters: RequestUriMatchConditionParameters; }; -/** 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; +/** Defines the RequestHeader condition for the delivery rule. */ +export type DeliveryRuleRequestHeaderCondition = DeliveryRuleCondition & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + name: "RequestHeader"; + /** Defines the parameters for the condition. */ + parameters: RequestHeaderMatchConditionParameters; }; -/** 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; - /** - * 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; +/** Defines the RequestBody condition for the delivery rule. */ +export type DeliveryRuleRequestBodyCondition = DeliveryRuleCondition & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + name: "RequestBody"; + /** Defines the parameters for the condition. */ + parameters: RequestBodyMatchConditionParameters; }; -/** 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; - /** object which contains security policy parameters */ - parameters?: SecurityPolicyParametersUnion; +/** Defines the RequestScheme condition for the delivery rule. */ +export type DeliveryRuleRequestSchemeCondition = DeliveryRuleCondition & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + name: "RequestScheme"; + /** Defines the parameters for the condition. */ + parameters: RequestSchemeMatchConditionParameters; }; -/** 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; - /** object which contains secret parameters */ - parameters?: SecretParametersUnion; +/** Defines the UrlPath condition for the delivery rule. */ +export type DeliveryRuleUrlPathCondition = DeliveryRuleCondition & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + name: "UrlPath"; + /** Defines the parameters for the condition. */ + parameters: UrlPathMatchConditionParameters; }; -/** 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" -} +/** Defines the UrlFileExtension condition for the delivery rule. */ +export type DeliveryRuleUrlFileExtensionCondition = DeliveryRuleCondition & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + name: "UrlFileExtension"; + /** Defines the parameters for the condition. */ + parameters: UrlFileExtensionMatchConditionParameters; +}; -/** - * 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 - * **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** - */ -export type SkuName = string; +/** Defines the UrlFileName condition for the delivery rule. */ +export type DeliveryRuleUrlFileNameCondition = DeliveryRuleCondition & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + name: "UrlFileName"; + /** Defines the parameters for the condition. */ + parameters: UrlFileNameMatchConditionParameters; +}; -/** Known values of {@link ProfileResourceState} that the service accepts. */ -export enum KnownProfileResourceState { - Creating = "Creating", - Active = "Active", - Deleting = "Deleting", - Disabled = "Disabled" -} +/** Defines the HttpVersion condition for the delivery rule. */ +export type DeliveryRuleHttpVersionCondition = DeliveryRuleCondition & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + name: "HttpVersion"; + /** Defines the parameters for the condition. */ + parameters: HttpVersionMatchConditionParameters; +}; -/** - * 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 - * **Creating** \ - * **Active** \ - * **Deleting** \ - * **Disabled** - */ -export type ProfileResourceState = string; +/** Defines the Cookies condition for the delivery rule. */ +export type DeliveryRuleCookiesCondition = DeliveryRuleCondition & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + name: "Cookies"; + /** Defines the parameters for the condition. */ + parameters: CookiesMatchConditionParameters; +}; -/** Known values of {@link IdentityType} that the service accepts. */ -export enum KnownIdentityType { - User = "user", - Application = "application", - ManagedIdentity = "managedIdentity", - Key = "key" -} +/** Defines the IsDevice condition for the delivery rule. */ +export type DeliveryRuleIsDeviceCondition = DeliveryRuleCondition & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + name: "IsDevice"; + /** Defines the parameters for the condition. */ + parameters: IsDeviceMatchConditionParameters; +}; -/** - * Defines values for IdentityType. \ - * {@link KnownIdentityType} can be used interchangeably with IdentityType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **user** \ - * **application** \ - * **managedIdentity** \ - * **key** - */ -export type IdentityType = string; +/** Defines the SocketAddress condition for the delivery rule. */ +export type DeliveryRuleSocketAddrCondition = DeliveryRuleCondition & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + name: "SocketAddr"; + /** Defines the parameters for the condition. */ + parameters: SocketAddrMatchConditionParameters; +}; -/** Known values of {@link OptimizationType} that the service accepts. */ -export enum KnownOptimizationType { - GeneralWebDelivery = "GeneralWebDelivery", - GeneralMediaStreaming = "GeneralMediaStreaming", - VideoOnDemandMediaStreaming = "VideoOnDemandMediaStreaming", - LargeFileDownload = "LargeFileDownload", - DynamicSiteAcceleration = "DynamicSiteAcceleration" -} +/** Defines the ClientPort condition for the delivery rule. */ +export type DeliveryRuleClientPortCondition = DeliveryRuleCondition & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + name: "ClientPort"; + /** Defines the parameters for the condition. */ + parameters: ClientPortMatchConditionParameters; +}; -/** - * 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 - * **GeneralWebDelivery** \ - * **GeneralMediaStreaming** \ - * **VideoOnDemandMediaStreaming** \ - * **LargeFileDownload** \ - * **DynamicSiteAcceleration** - */ -export type OptimizationType = string; +/** Defines the ServerPort condition for the delivery rule. */ +export type DeliveryRuleServerPortCondition = DeliveryRuleCondition & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + name: "ServerPort"; + /** Defines the parameters for the condition. */ + parameters: ServerPortMatchConditionParameters; +}; -/** 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 the HostName condition for the delivery rule. */ +export type DeliveryRuleHostNameCondition = DeliveryRuleCondition & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + name: "HostName"; + /** Defines the parameters for the condition. */ + parameters: HostNameMatchConditionParameters; +}; -/** - * 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 - * **Creating** \ - * **Deleting** \ - * **Running** \ - * **Starting** \ - * **Stopped** \ - * **Stopping** - */ -export type EndpointResourceState = string; +/** Defines the SslProtocol condition for the delivery rule. */ +export type DeliveryRuleSslProtocolCondition = DeliveryRuleCondition & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + name: "SslProtocol"; + /** Defines the parameters for the condition. */ + parameters: SslProtocolMatchConditionParameters; +}; -/** Known values of {@link MatchVariable} that the service accepts. */ -export enum KnownMatchVariable { - RemoteAddress = "RemoteAddress", - RequestMethod = "RequestMethod", - QueryString = "QueryString", - PostArgs = "PostArgs", - RequestUri = "RequestUri", - RequestHeader = "RequestHeader", - RequestBody = "RequestBody", - RequestScheme = "RequestScheme", - UrlPath = "UrlPath", - UrlFileExtension = "UrlFileExtension", - UrlFileName = "UrlFileName", - HttpVersion = "HttpVersion", - Cookies = "Cookies", - IsDevice = "IsDevice", - RemoteAddr = "RemoteAddr", - SocketAddr = "SocketAddr" -} +/** 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: "UrlRedirect"; + /** Defines the parameters for the action. */ + parameters: UrlRedirectActionParameters; +}; -/** - * Defines values for MatchVariable. \ - * {@link KnownMatchVariable} can be used interchangeably with MatchVariable, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **RemoteAddress** \ - * **RequestMethod** \ - * **QueryString** \ - * **PostArgs** \ - * **RequestUri** \ - * **RequestHeader** \ - * **RequestBody** \ - * **RequestScheme** \ - * **UrlPath** \ - * **UrlFileExtension** \ - * **UrlFileName** \ - * **HttpVersion** \ - * **Cookies** \ - * **IsDevice** \ - * **RemoteAddr** \ - * **SocketAddr** - */ -export type MatchVariable = string; +/** 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: "UrlSigning"; + /** Defines the parameters for the action. */ + parameters: UrlSigningActionParameters; +}; -/** Known values of {@link DeliveryRuleAction} that the service accepts. */ -export enum KnownDeliveryRuleAction { - CacheExpiration = "CacheExpiration", - CacheKeyQueryString = "CacheKeyQueryString", - ModifyRequestHeader = "ModifyRequestHeader", - ModifyResponseHeader = "ModifyResponseHeader", - UrlRedirect = "UrlRedirect", - UrlRewrite = "UrlRewrite", - UrlSigning = "UrlSigning", - OriginGroupOverride = "OriginGroupOverride" -} +/** 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: "OriginGroupOverride"; + /** Defines the parameters for the action. */ + parameters: OriginGroupOverrideActionParameters; +}; -/** - * 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; +/** 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; +}; -/** Known values of {@link OriginResourceState} that the service accepts. */ -export enum KnownOriginResourceState { - Creating = "Creating", - Active = "Active", - Deleting = "Deleting" -} +/** 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; +}; -/** - * 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; +/** 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; +}; -/** Known values of {@link PrivateEndpointStatus} that the service accepts. */ -export enum KnownPrivateEndpointStatus { - Pending = "Pending", - Approved = "Approved", - Rejected = "Rejected", - Disconnected = "Disconnected", - Timeout = "Timeout" -} +/** 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; +}; -/** - * 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; +/** 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; +}; + +/** 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 */ +export type SecurityPolicyWebApplicationFirewallParameters = SecurityPolicyPropertiesParameters & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + type: "WebApplicationFirewall"; + /** Resource ID. */ + wafPolicy?: ResourceReference; + /** Waf associations */ + associations?: SecurityPolicyWebApplicationFirewallAssociation[]; +}; + +/** Url signing key parameters */ +export type UrlSigningKeyParameters = SecretParameters & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + 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 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; +}; + +/** Managed Certificate used for https */ +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 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; + /** Whether to use the latest version for the certificate */ + useLatestVersion?: boolean; + /** + * 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; + /** + * 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 thumbprint?: string; +}; + +/** 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[]; + /** 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; +}; + +/** 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 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; + /** + * Certificate issuing authority. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly certificateAuthority?: string; + /** Whether to use the latest version for the certificate */ + useLatestVersion?: boolean; + /** The list of SANs. */ + subjectAlternativeNames?: string[]; + /** + * Certificate thumbprint. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly thumbprint?: string; +}; + +/** 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. + */ + readonly provisioningState?: AfdProvisioningState; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly deploymentStatus?: DeploymentStatus; + /** + * 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; +}; + +/** 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. */ + 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; + /** Whether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled' */ + sessionAffinityState?: 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; +}; + +/** 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. */ + 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?: SharedPrivateLinkResourceProperties; + /** 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. + */ + readonly provisioningState?: AfdProvisioningState; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly deploymentStatus?: DeploymentStatus; +}; + +/** 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?: 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; + /** + * 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; +}; -/** Known values of {@link OriginGroupResourceState} that the service accepts. */ -export enum KnownOriginGroupResourceState { - Creating = "Creating", - Active = "Active", - Deleting = "Deleting" -} +/** 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; +}; -/** - * 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; +/** 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; +}; -/** Known values of {@link CustomDomainResourceState} that the service accepts. */ -export enum KnownCustomDomainResourceState { - Creating = "Creating", - Active = "Active", - Deleting = "Deleting" -} +/** 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?: SecurityPolicyPropertiesParametersUnion; +}; -/** - * 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; +/** 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; +}; -/** Known values of {@link CustomHttpsProvisioningState} that the service accepts. */ -export enum KnownCustomHttpsProvisioningState { - Enabling = "Enabling", - Enabled = "Enabled", - Disabling = "Disabling", - Disabled = "Disabled", - Failed = "Failed" -} +/** 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; +}; -/** - * 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; +/** 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; + /** + * 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; + /** Indicates the endpoint name reuse scope. The default value is TenantReuse. */ + autoGeneratedDomainNameLabelScope?: AutoGeneratedDomainNameLabelScope; +}; + +/** 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; + /** + * 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; + /** + * Resource status of the profile. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly resourceState?: ProfileResourceState; + /** + * 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; + /** Send and receive timeout on forwarding request to the origin. When timeout is reached, the request fails and returns. */ + originResponseTimeoutSeconds?: number; +}; -/** 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" -} +/** 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; + /** + * 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[]; + /** + * 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; +}; -/** - * 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** - */ -export type CustomHttpsProvisioningSubstate = 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; +}; -/** Known values of {@link CertificateSource} that the service accepts. */ -export enum KnownCertificateSource { - AzureKeyVault = "AzureKeyVault", - Cdn = "Cdn" +/** Known values of {@link ResourceType} that the service accepts. */ +export enum KnownResourceType { + MicrosoftCdnProfilesEndpoints = "Microsoft.Cdn/Profiles/Endpoints", + MicrosoftCdnProfilesAfdEndpoints = "Microsoft.Cdn/Profiles/AfdEndpoints" } /** - * Defines values for CertificateSource. \ - * {@link KnownCertificateSource} can be used interchangeably with CertificateSource, + * Defines values for ResourceType. \ + * {@link KnownResourceType} can be used interchangeably with ResourceType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **AzureKeyVault** \ - * **Cdn** + * **Microsoft.Cdn\/Profiles\/Endpoints** \ + * **Microsoft.Cdn\/Profiles\/AfdEndpoints** */ -export type CertificateSource = string; +export type ResourceType = string; -/** Known values of {@link ProtocolType} that the service accepts. */ -export enum KnownProtocolType { - ServerNameIndication = "ServerNameIndication", - IPBased = "IPBased" +/** Known values of {@link AutoGeneratedDomainNameLabelScope} that the service accepts. */ +export enum KnownAutoGeneratedDomainNameLabelScope { + TenantReuse = "TenantReuse", + SubscriptionReuse = "SubscriptionReuse", + ResourceGroupReuse = "ResourceGroupReuse", + NoReuse = "NoReuse" } /** - * Defines values for ProtocolType. \ - * {@link KnownProtocolType} can be used interchangeably with ProtocolType, + * Defines values for AutoGeneratedDomainNameLabelScope. \ + * {@link KnownAutoGeneratedDomainNameLabelScope} can be used interchangeably with AutoGeneratedDomainNameLabelScope, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **ServerNameIndication** \ - * **IPBased** + * **TenantReuse** \ + * **SubscriptionReuse** \ + * **ResourceGroupReuse** \ + * **NoReuse** */ -export type ProtocolType = string; +export type AutoGeneratedDomainNameLabelScope = string; /** Known values of {@link UsageUnit} that the service accepts. */ export enum KnownUsageUnit { @@ -2925,9 +3154,12 @@ export enum KnownDomainValidationState { Unknown = "Unknown", Submitting = "Submitting", Pending = "Pending", + Rejected = "Rejected", TimedOut = "TimedOut", PendingRevalidation = "PendingRevalidation", - Approved = "Approved" + Approved = "Approved", + RefreshingValidationToken = "RefreshingValidationToken", + InternalError = "InternalError" } /** @@ -2938,16 +3170,20 @@ export enum KnownDomainValidationState { * **Unknown** \ * **Submitting** \ * **Pending** \ + * **Rejected** \ * **TimedOut** \ * **PendingRevalidation** \ - * **Approved** + * **Approved** \ + * **RefreshingValidationToken** \ + * **InternalError** */ export type DomainValidationState = string; /** Known values of {@link AfdCertificateType} that the service accepts. */ export enum KnownAfdCertificateType { CustomerCertificate = "CustomerCertificate", - ManagedCertificate = "ManagedCertificate" + ManagedCertificate = "ManagedCertificate", + AzureFirstPartyManagedCertificate = "AzureFirstPartyManagedCertificate" } /** @@ -2956,7 +3192,8 @@ export enum KnownAfdCertificateType { * this enum contains the known values that the service supports. * ### Known values supported by the service * **CustomerCertificate** \ - * **ManagedCertificate** + * **ManagedCertificate** \ + * **AzureFirstPartyManagedCertificate** */ export type AfdCertificateType = string; @@ -3002,6 +3239,26 @@ export enum KnownDeploymentStatus { */ export type DeploymentStatus = string; +/** Known values of {@link IdentityType} that the service accepts. */ +export enum KnownIdentityType { + User = "user", + Application = "application", + ManagedIdentity = "managedIdentity", + Key = "key" +} + +/** + * Defines values for IdentityType. \ + * {@link KnownIdentityType} can be used interchangeably with IdentityType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **user** \ + * **application** \ + * **managedIdentity** \ + * **key** + */ +export type IdentityType = string; + /** Known values of {@link EnabledState} that the service accepts. */ export enum KnownEnabledState { Enabled = "Enabled", @@ -3034,6 +3291,26 @@ export enum KnownAFDEndpointProtocols { */ 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", @@ -3084,6 +3361,86 @@ export enum KnownHttpsRedirect { */ export type HttpsRedirect = string; +/** Known values of {@link MatchVariable} that the service accepts. */ +export enum KnownMatchVariable { + RemoteAddress = "RemoteAddress", + RequestMethod = "RequestMethod", + QueryString = "QueryString", + PostArgs = "PostArgs", + RequestUri = "RequestUri", + RequestHeader = "RequestHeader", + RequestBody = "RequestBody", + RequestScheme = "RequestScheme", + UrlPath = "UrlPath", + UrlFileExtension = "UrlFileExtension", + UrlFileName = "UrlFileName", + HttpVersion = "HttpVersion", + Cookies = "Cookies", + IsDevice = "IsDevice", + SocketAddr = "SocketAddr", + ClientPort = "ClientPort", + ServerPort = "ServerPort", + HostName = "HostName", + SslProtocol = "SslProtocol" +} + +/** + * Defines values for MatchVariable. \ + * {@link KnownMatchVariable} can be used interchangeably with MatchVariable, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **RemoteAddress** \ + * **RequestMethod** \ + * **QueryString** \ + * **PostArgs** \ + * **RequestUri** \ + * **RequestHeader** \ + * **RequestBody** \ + * **RequestScheme** \ + * **UrlPath** \ + * **UrlFileExtension** \ + * **UrlFileName** \ + * **HttpVersion** \ + * **Cookies** \ + * **IsDevice** \ + * **SocketAddr** \ + * **ClientPort** \ + * **ServerPort** \ + * **HostName** \ + * **SslProtocol** + */ +export type MatchVariable = string; + +/** Known values of {@link DeliveryRuleAction} that the service accepts. */ +export enum KnownDeliveryRuleAction { + CacheExpiration = "CacheExpiration", + CacheKeyQueryString = "CacheKeyQueryString", + ModifyRequestHeader = "ModifyRequestHeader", + ModifyResponseHeader = "ModifyResponseHeader", + UrlRedirect = "UrlRedirect", + 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 DeliveryRuleAction = string; + /** Known values of {@link MatchProcessingBehavior} that the service accepts. */ export enum KnownMatchProcessingBehavior { Continue = "Continue", @@ -3118,37 +3475,21 @@ export type SecurityPolicyType = string; export enum KnownSecretType { UrlSigningKey = "UrlSigningKey", CustomerCertificate = "CustomerCertificate", - ManagedCertificate = "ManagedCertificate" -} - -/** - * 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 - * **UrlSigningKey** \ - * **CustomerCertificate** \ - * **ManagedCertificate** - */ -export type SecretType = string; - -/** Known values of {@link ValidateSecretType} that the service accepts. */ -export enum KnownValidateSecretType { - UrlSigningKey = "UrlSigningKey", ManagedCertificate = "ManagedCertificate", - CustomerCertificate = "CustomerCertificate" + AzureFirstPartyManagedCertificate = "AzureFirstPartyManagedCertificate" } /** - * Defines values for ValidateSecretType. \ - * {@link KnownValidateSecretType} can be used interchangeably with ValidateSecretType, + * 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 * **UrlSigningKey** \ + * **CustomerCertificate** \ * **ManagedCertificate** \ - * **CustomerCertificate** + * **AzureFirstPartyManagedCertificate** */ -export type ValidateSecretType = string; +export type SecretType = string; /** Known values of {@link Status} that the service accepts. */ export enum KnownStatus { @@ -3217,7 +3558,7 @@ export enum KnownLogMetricsGroupBy { HttpStatusCode = "httpStatusCode", Protocol = "protocol", CacheStatus = "cacheStatus", - Country = "country", + CountryOrRegion = "countryOrRegion", CustomDomain = "customDomain" } @@ -3229,7 +3570,7 @@ export enum KnownLogMetricsGroupBy { * **httpStatusCode** \ * **protocol** \ * **cacheStatus** \ - * **country** \ + * **countryOrRegion** \ * **customDomain** */ export type LogMetricsGroupBy = string; @@ -3256,7 +3597,8 @@ export type MetricsResponseGranularity = string; export enum KnownMetricsResponseSeriesItemUnit { Count = "count", Bytes = "bytes", - BitsPerSecond = "bitsPerSecond" + BitsPerSecond = "bitsPerSecond", + MilliSeconds = "milliSeconds" } /** @@ -3266,187 +3608,454 @@ export enum KnownMetricsResponseSeriesItemUnit { * ### Known values supported by the service * **count** \ * **bytes** \ - * **bitsPerSecond** + * **bitsPerSecond** \ + * **milliSeconds** + */ +export type MetricsResponseSeriesItemUnit = string; + +/** 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 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 + * **url** \ + * **referrer** \ + * **browser** \ + * **userAgent** \ + * **countryOrRegion** + */ +export type LogRanking = 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" +} + +/** + * 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 + * **clientRequestCount** \ + * **clientRequestTraffic** \ + * **hitCount** \ + * **missCount** \ + * **userErrorCount** \ + * **errorCount** + */ +export type LogRankingMetric = string; + +/** Known values of {@link WafMetric} that the service accepts. */ +export enum KnownWafMetric { + ClientRequestCount = "clientRequestCount" +} + +/** + * 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 + * **clientRequestCount** + */ +export type WafMetric = string; + +/** Known values of {@link WafGranularity} that the service accepts. */ +export enum KnownWafGranularity { + PT5M = "PT5M", + PT1H = "PT1H", + P1D = "P1D" +} + +/** + * 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 + * **PT5M** \ + * **PT1H** \ + * **P1D** + */ +export type WafGranularity = string; + +/** Known values of {@link WafAction} that the service accepts. */ +export enum KnownWafAction { + Allow = "allow", + Block = "block", + Log = "log", + Redirect = "redirect" +} + +/** + * 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 + * **allow** \ + * **block** \ + * **log** \ + * **redirect** + */ +export type WafAction = string; + +/** Known values of {@link WafRankingGroupBy} that the service accepts. */ +export enum KnownWafRankingGroupBy { + HttpStatusCode = "httpStatusCode", + CustomDomain = "customDomain" +} + +/** + * 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 + * **httpStatusCode** \ + * **customDomain** + */ +export type WafRankingGroupBy = string; + +/** Known values of {@link WafRuleType} that the service accepts. */ +export enum KnownWafRuleType { + Managed = "managed", + Custom = "custom", + Bot = "bot" +} + +/** + * 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 + * **managed** \ + * **custom** \ + * **bot** + */ +export type WafRuleType = string; + +/** Known values of {@link WafMetricsResponseGranularity} that the service accepts. */ +export enum KnownWafMetricsResponseGranularity { + PT5M = "PT5M", + PT1H = "PT1H", + P1D = "P1D" +} + +/** + * 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 + * **PT5M** \ + * **PT1H** \ + * **P1D** + */ +export type WafMetricsResponseGranularity = 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", + CountryOrRegion = "countryOrRegion", + RuleType = "ruleType" +} + +/** + * 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 + * **action** \ + * **ruleGroup** \ + * **ruleId** \ + * **userAgent** \ + * **clientIp** \ + * **url** \ + * **countryOrRegion** \ + * **ruleType** + */ +export type WafRankingType = string; + +/** 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 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 + * **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 SkuName = string; + +/** Known values of {@link ProfileResourceState} that the service accepts. */ +export enum KnownProfileResourceState { + Creating = "Creating", + Active = "Active", + Deleting = "Deleting", + Disabled = "Disabled" +} + +/** + * 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 + * **Creating** \ + * **Active** \ + * **Deleting** \ + * **Disabled** + */ +export type ProfileResourceState = string; + +/** 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 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 + * **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 +4089,8 @@ export enum KnownPolicyMode { */ export type PolicyMode = string; -/** Known values of {@link Enum46} that the service accepts. */ -export enum KnownEnum46 { +/** Known values of {@link PolicySettingsDefaultCustomBlockResponseStatusCode} that the service accepts. */ +export enum KnownPolicySettingsDefaultCustomBlockResponseStatusCode { TwoHundred = 200, FourHundredThree = 403, FourHundredFive = 405, @@ -3490,8 +4099,8 @@ export enum KnownEnum46 { } /** - * Defines values for Enum46. \ - * {@link KnownEnum46} can be used interchangeably with Enum46, + * Defines values for PolicySettingsDefaultCustomBlockResponseStatusCode. \ + * {@link KnownPolicySettingsDefaultCustomBlockResponseStatusCode} can be used interchangeably with PolicySettingsDefaultCustomBlockResponseStatusCode, * this enum contains the known values that the service supports. * ### Known values supported by the service * **200** \ @@ -3500,7 +4109,7 @@ export enum KnownEnum46 { * **406** \ * **429** */ -export type Enum46 = number; +export type PolicySettingsDefaultCustomBlockResponseStatusCode = number; /** Known values of {@link CustomRuleEnabledState} that the service accepts. */ export enum KnownCustomRuleEnabledState { @@ -3509,14 +4118,44 @@ export enum KnownCustomRuleEnabledState { } /** - * Defines values for CustomRuleEnabledState. \ - * {@link KnownCustomRuleEnabledState} can be used interchangeably with CustomRuleEnabledState, + * Defines values for CustomRuleEnabledState. \ + * {@link KnownCustomRuleEnabledState} can be used interchangeably with CustomRuleEnabledState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Disabled** \ + * **Enabled** + */ +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 - * **Disabled** \ - * **Enabled** + * **RemoteAddr** \ + * **SocketAddr** \ + * **RequestMethod** \ + * **RequestHeader** \ + * **RequestUri** \ + * **QueryString** \ + * **RequestBody** \ + * **Cookies** \ + * **PostArgs** */ -export type CustomRuleEnabledState = string; +export type WafMatchVariable = string; /** Known values of {@link Operator} that the service accepts. */ export enum KnownOperator { @@ -3677,7 +4316,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 +4329,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 +4727,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 +5011,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,15 +5108,26 @@ 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. */ export type ProbeProtocol = "NotSet" | "Http" | "Https"; +/** Defines values for SharedPrivateLinkResourceStatus. */ +export type SharedPrivateLinkResourceStatus = + | "Pending" + | "Approved" + | "Rejected" + | "Disconnected" + | "Timeout"; /** Defines values for ResponseBasedDetectedErrorTypes. */ 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,135 +5136,72 @@ 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" - | "Approved" - | "Rejected" - | "Disconnected" - | "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 +export interface CheckEndpointNameAvailabilityOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroup operation. */ -export type ProfilesListByResourceGroupResponse = ProfileListResult; +/** Contains response data for the checkEndpointNameAvailability operation. */ +export type CheckEndpointNameAvailabilityResponse = CheckEndpointNameAvailabilityOutput; /** Optional parameters. */ -export interface ProfilesGetOptionalParams +export interface CheckNameAvailabilityOptionalParams 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; -} +/** Contains response data for the checkNameAvailability operation. */ +export type CheckNameAvailabilityResponse = CheckNameAvailabilityOutput; /** Optional parameters. */ -export interface ProfilesGenerateSsoUriOptionalParams +export interface CheckNameAvailabilityWithSubscriptionOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the generateSsoUri operation. */ -export type ProfilesGenerateSsoUriResponse = SsoUri; +/** Contains response data for the checkNameAvailabilityWithSubscription operation. */ +export type CheckNameAvailabilityWithSubscriptionResponse = CheckNameAvailabilityOutput; /** Optional parameters. */ -export interface ProfilesListSupportedOptimizationTypesOptionalParams +export interface ValidateProbeOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listSupportedOptimizationTypes operation. */ -export type ProfilesListSupportedOptimizationTypesResponse = SupportedOptimizationTypesListResult; +/** Contains response data for the validateProbe operation. */ +export type ValidateProbeResponse = ValidateProbeOutput; /** 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 +5210,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 +5222,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 +5234,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 +5242,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 +5272,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 +5284,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 +5297,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 +5357,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 +5369,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 +5381,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 +5425,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 +5437,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 +5449,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 +5478,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 +5489,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 +5502,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 +5581,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 +5592,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 +5633,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 +5644,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 +5657,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 +5686,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 +5697,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 +5806,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 +5818,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 +5830,63 @@ export interface AFDOriginsDeleteOptionalParams } /** Optional parameters. */ -export interface AFDOriginsListByOriginGroupNextOptionalParams +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 + 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 listByOriginGroupNext operation. */ -export type AFDOriginsListByOriginGroupNextResponse = AFDOriginListResult; +/** Contains response data for the listResourceUsageNext operation. */ +export type ProfilesListResourceUsageNextResponse = ResourceUsageListResult; /** Optional parameters. */ -export interface RoutesListByEndpointOptionalParams +export interface EndpointsListByProfileOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByEndpoint operation. */ -export type RoutesListByEndpointResponse = RouteListResult; +/** 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 +5895,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 +5907,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 +5919,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 +5951,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 +5961,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 +6011,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 +6023,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 +6035,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 +6065,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 +6076,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 +6089,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 +6119,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 +6130,71 @@ 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; } -/** Optional parameters. */ -export interface SecretsListByProfileNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByProfileNext operation. */ -export type SecretsListByProfileNextResponse = SecretListResult; +/** Contains response data for the enableCustomHttps operation. */ +export type CustomDomainsEnableCustomHttpsResponse = CustomDomain; /** Optional parameters. */ -export interface ValidateSecretOptionalParams +export interface CustomDomainsListByEndpointNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the secret operation. */ -export type ValidateSecretResponse = ValidateSecretOutput; +/** Contains response data for the listByEndpointNext operation. */ +export type CustomDomainsListByEndpointNextResponse = CustomDomainListResult; /** 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 ResourceUsageListOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the getLogAnalyticsMetrics operation. */ -export type LogAnalyticsGetLogAnalyticsMetricsResponse = MetricsResponse; +/** Contains response data for the list operation. */ +export type ResourceUsageListResponse = ResourceUsageListResult; /** Optional parameters. */ -export interface LogAnalyticsGetLogAnalyticsRankingsOptionalParams - extends coreClient.OperationOptions { - /** Array of String */ - customDomains?: string[]; -} +export interface ResourceUsageListNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the getLogAnalyticsRankings operation. */ -export type LogAnalyticsGetLogAnalyticsRankingsResponse = RankingsResponse; +/** Contains response data for the listNext operation. */ +export type ResourceUsageListNextResponse = ResourceUsageListResult; /** Optional parameters. */ -export interface LogAnalyticsGetLogAnalyticsLocationsOptionalParams +export interface OperationsListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getLogAnalyticsLocations operation. */ -export type LogAnalyticsGetLogAnalyticsLocationsResponse = ContinentsResponse; +/** Contains response data for the list operation. */ +export type OperationsListResponse = OperationsListResult; /** Optional parameters. */ -export interface LogAnalyticsGetLogAnalyticsResourcesOptionalParams +export interface OperationsListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getLogAnalyticsResources operation. */ -export type LogAnalyticsGetLogAnalyticsResourcesResponse = ResourcesResponse; +/** Contains response data for the listNext operation. */ +export type OperationsListNextResponse = OperationsListResult; /** 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 EdgeNodesListOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the getWafLogAnalyticsMetrics operation. */ -export type LogAnalyticsGetWafLogAnalyticsMetricsResponse = WafMetricsResponse; +/** Contains response data for the list operation. */ +export type EdgeNodesListResponse = EdgenodeResult; /** Optional parameters. */ -export interface LogAnalyticsGetWafLogAnalyticsRankingsOptionalParams - extends coreClient.OperationOptions { - /** Array of WafAction */ - actions?: WafAction[]; - /** Array of WafRuleType */ - ruleTypes?: WafRuleType[]; -} +export interface EdgeNodesListNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the getWafLogAnalyticsRankings operation. */ -export type LogAnalyticsGetWafLogAnalyticsRankingsResponse = WafRankingsResponse; +/** 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..21fa23dc17fe 100644 --- a/sdk/cdn/arm-cdn/src/models/mappers.ts +++ b/sdk/cdn/arm-cdn/src/models/mappers.ts @@ -8,41 +8,27 @@ import * as coreClient from "@azure/core-client"; -export const ProfileListResult: coreClient.CompositeMapper = { +export const CheckEndpointNameAvailabilityInput: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ProfileListResult", + className: "CheckEndpointNameAvailabilityInput", modelProperties: { - value: { - serializedName: "value", - readOnly: true, + name: { + serializedName: "name", + required: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Profile" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + type: { + serializedName: "type", + required: true, type: { name: "String" } - } - } - } -}; - -export const Sku: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Sku", - modelProperties: { - name: { - serializedName: "name", + }, + autoGeneratedDomainNameLabelScope: { + serializedName: "autoGeneratedDomainNameLabelScope", type: { name: "String" } @@ -51,92 +37,63 @@ export const Sku: coreClient.CompositeMapper = { } }; -export const Resource: coreClient.CompositeMapper = { +export const CheckEndpointNameAvailabilityOutput: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Resource", + className: "CheckEndpointNameAvailabilityOutput", modelProperties: { - id: { - serializedName: "id", + nameAvailable: { + serializedName: "nameAvailable", readOnly: true, type: { - name: "String" + name: "Boolean" } }, - name: { - serializedName: "name", + availableHostname: { + serializedName: "availableHostname", readOnly: true, type: { name: "String" } }, - type: { - serializedName: "type", + reason: { + serializedName: "reason", readOnly: true, type: { name: "String" } }, - systemData: { - serializedName: "systemData", + message: { + serializedName: "message", + readOnly: true, type: { - name: "Composite", - className: "SystemData" + name: "String" } } } } }; -export const SystemData: coreClient.CompositeMapper = { +export const AfdErrorResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SystemData", + className: "AfdErrorResponse", modelProperties: { - createdBy: { - serializedName: "createdBy", - type: { - name: "String" - } - }, - createdByType: { - serializedName: "createdByType", - type: { - name: "String" - } - }, - createdAt: { - serializedName: "createdAt", - type: { - name: "DateTime" - } - }, - lastModifiedBy: { - serializedName: "lastModifiedBy", - type: { - name: "String" - } - }, - lastModifiedByType: { - serializedName: "lastModifiedByType", - type: { - name: "String" - } - }, - lastModifiedAt: { - serializedName: "lastModifiedAt", + 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,78 +108,81 @@ export const ErrorResponse: coreClient.CompositeMapper = { type: { name: "String" } - } - } - } -}; - -export const ProfileUpdateParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ProfileUpdateParameters", - modelProperties: { - tags: { - serializedName: "tags", + }, + target: { + serializedName: "target", + readOnly: true, type: { - name: "Dictionary", - value: { type: { name: "String" } } + 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 SsoUri: coreClient.CompositeMapper = { +export const ErrorAdditionalInfo: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SsoUri", + className: "ErrorAdditionalInfo", modelProperties: { - ssoUriValue: { - serializedName: "ssoUriValue", + type: { + serializedName: "type", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const SupportedOptimizationTypesListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SupportedOptimizationTypesListResult", - modelProperties: { - supportedOptimizationTypes: { - serializedName: "supportedOptimizationTypes", + }, + info: { + serializedName: "info", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Dictionary", + value: { type: { name: "any" } } } } } } }; -export const ResourceUsageListResult: coreClient.CompositeMapper = { +export const UsagesListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceUsageListResult", + className: "UsagesListResult", modelProperties: { value: { serializedName: "value", - readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ResourceUsage" + className: "Usage" } } } @@ -237,13 +197,13 @@ export const ResourceUsageListResult: coreClient.CompositeMapper = { } }; -export const ResourceUsage: coreClient.CompositeMapper = { +export const Usage: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceUsage", + className: "Usage", modelProperties: { - resourceType: { - serializedName: "resourceType", + id: { + serializedName: "id", readOnly: true, type: { name: "String" @@ -251,49 +211,49 @@ export const ResourceUsage: coreClient.CompositeMapper = { }, unit: { serializedName: "unit", - readOnly: true, + required: true, type: { name: "String" } }, currentValue: { serializedName: "currentValue", - readOnly: true, + required: true, type: { name: "Number" } }, limit: { serializedName: "limit", - readOnly: true, + required: true, type: { name: "Number" } + }, + name: { + serializedName: "name", + type: { + name: "Composite", + className: "UsageName" + } } } } }; -export const EndpointListResult: coreClient.CompositeMapper = { +export const UsageName: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EndpointListResult", + className: "UsageName", modelProperties: { value: { serializedName: "value", - readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Endpoint" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + localizedValue: { + serializedName: "localizedValue", type: { name: "String" } @@ -302,96 +262,95 @@ export const EndpointListResult: coreClient.CompositeMapper = { } }; -export const DeepCreatedOrigin: coreClient.CompositeMapper = { +export const CheckHostNameAvailabilityInput: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DeepCreatedOrigin", + className: "CheckHostNameAvailabilityInput", modelProperties: { - name: { - serializedName: "name", + hostName: { + serializedName: "hostName", required: true, type: { name: "String" } - }, - hostName: { - serializedName: "properties.hostName", + } + } + } +}; + +export const CheckNameAvailabilityOutput: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CheckNameAvailabilityOutput", + modelProperties: { + nameAvailable: { + serializedName: "nameAvailable", + readOnly: true, type: { - name: "String" + name: "Boolean" } }, - httpPort: { - constraints: { - InclusiveMaximum: 65535, - InclusiveMinimum: 1 - }, - serializedName: "properties.httpPort", + reason: { + serializedName: "reason", + readOnly: true, type: { - name: "Number" + name: "String" } }, - httpsPort: { - constraints: { - InclusiveMaximum: 65535, - InclusiveMinimum: 1 - }, - serializedName: "properties.httpsPort", + message: { + serializedName: "message", + readOnly: true, type: { - name: "Number" + name: "String" } - }, - originHostHeader: { - serializedName: "properties.originHostHeader", - type: { - name: "String" - } - }, - priority: { - constraints: { - InclusiveMaximum: 5, - InclusiveMinimum: 1 - }, - serializedName: "properties.priority", - type: { - name: "Number" - } - }, - weight: { - constraints: { - InclusiveMaximum: 1000, - InclusiveMinimum: 1 - }, - serializedName: "properties.weight", - type: { - name: "Number" - } - }, - enabled: { - serializedName: "properties.enabled", - type: { - name: "Boolean" - } - }, - privateLinkAlias: { - serializedName: "properties.privateLinkAlias", + } + } + } +}; + +export const AFDDomainListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AFDDomainListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AFDDomain" + } + } } }, - privateLinkResourceId: { - serializedName: "properties.privateLinkResourceId", + nextLink: { + serializedName: "nextLink", type: { name: "String" } - }, - privateLinkLocation: { - serializedName: "properties.privateLinkLocation", + } + } + } +}; + +export const DomainValidationProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DomainValidationProperties", + modelProperties: { + validationToken: { + serializedName: "validationToken", + readOnly: true, type: { name: "String" } }, - privateLinkApprovalMessage: { - serializedName: "properties.privateLinkApprovalMessage", + expirationDate: { + serializedName: "expirationDate", + readOnly: true, type: { name: "String" } @@ -400,92 +359,67 @@ export const DeepCreatedOrigin: coreClient.CompositeMapper = { } }; -export const DeepCreatedOriginGroup: coreClient.CompositeMapper = { +export const AFDDomainUpdatePropertiesParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DeepCreatedOriginGroup", + className: "AFDDomainUpdatePropertiesParameters", modelProperties: { - name: { - serializedName: "name", - required: true, + profileName: { + serializedName: "profileName", + readOnly: true, type: { name: "String" } }, - healthProbeSettings: { - serializedName: "properties.healthProbeSettings", + tlsSettings: { + serializedName: "tlsSettings", type: { name: "Composite", - className: "HealthProbeParameters" - } - }, - origins: { - serializedName: "properties.origins", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ResourceReference" - } - } + className: "AFDDomainHttpsParameters" } }, - trafficRestorationTimeToHealedOrNewEndpointsInMinutes: { - constraints: { - InclusiveMaximum: 50, - InclusiveMinimum: 0 - }, - serializedName: - "properties.trafficRestorationTimeToHealedOrNewEndpointsInMinutes", + azureDnsZone: { + serializedName: "azureDnsZone", type: { - name: "Number" + name: "Composite", + className: "ResourceReference" } }, - responseBasedOriginErrorDetectionSettings: { - serializedName: "properties.responseBasedOriginErrorDetectionSettings", + preValidatedCustomDomainResourceId: { + serializedName: "preValidatedCustomDomainResourceId", type: { name: "Composite", - className: "ResponseBasedOriginErrorDetectionParameters" + className: "ResourceReference" } } } } }; -export const HealthProbeParameters: coreClient.CompositeMapper = { +export const AFDDomainHttpsParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "HealthProbeParameters", + className: "AFDDomainHttpsParameters", modelProperties: { - probePath: { - serializedName: "probePath", + certificateType: { + serializedName: "certificateType", + required: true, type: { name: "String" } }, - probeRequestType: { - serializedName: "probeRequestType", - type: { - name: "Enum", - allowedValues: ["NotSet", "GET", "HEAD"] - } - }, - probeProtocol: { - serializedName: "probeProtocol", + minimumTlsVersion: { + serializedName: "minimumTlsVersion", type: { name: "Enum", - allowedValues: ["NotSet", "Http", "Https"] + allowedValues: ["TLS10", "TLS12"] } }, - probeIntervalInSeconds: { - constraints: { - InclusiveMaximum: 255, - InclusiveMinimum: 1 - }, - serializedName: "probeIntervalInSeconds", + secret: { + serializedName: "secret", type: { - name: "Number" + name: "Composite", + className: "ResourceReference" } } } @@ -507,216 +441,246 @@ export const ResourceReference: coreClient.CompositeMapper = { } }; -export const ResponseBasedOriginErrorDetectionParameters: coreClient.CompositeMapper = { +export const AFDStateProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResponseBasedOriginErrorDetectionParameters", + className: "AFDStateProperties", modelProperties: { - responseBasedDetectedErrorTypes: { - serializedName: "responseBasedDetectedErrorTypes", - type: { - name: "Enum", - allowedValues: ["None", "TcpErrorsOnly", "TcpAndHttpErrors"] - } - }, - responseBasedFailoverThresholdPercentage: { - constraints: { - InclusiveMaximum: 100, - InclusiveMinimum: 0 - }, - serializedName: "responseBasedFailoverThresholdPercentage", + provisioningState: { + serializedName: "provisioningState", + readOnly: true, type: { - name: "Number" + name: "String" } }, - httpErrorRanges: { - serializedName: "httpErrorRanges", + deploymentStatus: { + serializedName: "deploymentStatus", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "HttpErrorRangeParameters" - } - } + name: "String" } } } } }; -export const HttpErrorRangeParameters: coreClient.CompositeMapper = { +export const Resource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "HttpErrorRangeParameters", + className: "Resource", modelProperties: { - begin: { - constraints: { - InclusiveMaximum: 999, - InclusiveMinimum: 100 - }, - serializedName: "begin", + id: { + serializedName: "id", + readOnly: true, type: { - name: "Number" + name: "String" } }, - end: { - constraints: { - InclusiveMaximum: 999, - InclusiveMinimum: 100 - }, - serializedName: "end", + name: { + serializedName: "name", + readOnly: true, type: { - name: "Number" + name: "String" + } + }, + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String" + } + }, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" } } } } }; -export const EndpointPropertiesUpdateParameters: coreClient.CompositeMapper = { +export const SystemData: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EndpointPropertiesUpdateParameters", + className: "SystemData", modelProperties: { - originPath: { - serializedName: "originPath", + createdBy: { + serializedName: "createdBy", type: { name: "String" } }, - contentTypesToCompress: { - serializedName: "contentTypesToCompress", + createdByType: { + serializedName: "createdByType", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - originHostHeader: { - serializedName: "originHostHeader", + createdAt: { + serializedName: "createdAt", type: { - name: "String" + name: "DateTime" } }, - isCompressionEnabled: { - serializedName: "isCompressionEnabled", - type: { - name: "Boolean" - } - }, - isHttpAllowed: { - serializedName: "isHttpAllowed", + lastModifiedBy: { + serializedName: "lastModifiedBy", type: { - name: "Boolean" + name: "String" } }, - isHttpsAllowed: { - serializedName: "isHttpsAllowed", + lastModifiedByType: { + serializedName: "lastModifiedByType", type: { - name: "Boolean" + name: "String" } }, - queryStringCachingBehavior: { - serializedName: "queryStringCachingBehavior", + lastModifiedAt: { + serializedName: "lastModifiedAt", type: { - name: "Enum", - allowedValues: [ - "IgnoreQueryString", - "BypassCaching", - "UseQueryString", - "NotSet" - ] + name: "DateTime" } - }, - optimizationType: { - serializedName: "optimizationType", + } + } + } +}; + +export const AFDDomainUpdateParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AFDDomainUpdateParameters", + modelProperties: { + profileName: { + serializedName: "properties.profileName", + readOnly: true, type: { name: "String" } }, - probePath: { - serializedName: "probePath", + tlsSettings: { + serializedName: "properties.tlsSettings", type: { - name: "String" + name: "Composite", + className: "AFDDomainHttpsParameters" } }, - geoFilters: { - serializedName: "geoFilters", + azureDnsZone: { + serializedName: "properties.azureDnsZone", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "GeoFilter" - } - } + name: "Composite", + className: "ResourceReference" } }, - defaultOriginGroup: { - serializedName: "defaultOriginGroup", + preValidatedCustomDomainResourceId: { + serializedName: "properties.preValidatedCustomDomainResourceId", type: { name: "Composite", className: "ResourceReference" } - }, - urlSigningKeys: { - serializedName: "urlSigningKeys", + } + } + } +}; + +export const AFDEndpointListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AFDEndpointListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "UrlSigningKey" + className: "AFDEndpoint" } } } }, - deliveryPolicy: { - serializedName: "deliveryPolicy", + nextLink: { + serializedName: "nextLink", type: { - name: "Composite", - className: "EndpointPropertiesUpdateParametersDeliveryPolicy" + name: "String" + } + } + } + } +}; + +export const AFDEndpointPropertiesUpdateParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AFDEndpointPropertiesUpdateParameters", + modelProperties: { + profileName: { + serializedName: "profileName", + readOnly: true, + type: { + name: "String" } }, - webApplicationFirewallPolicyLink: { - serializedName: "webApplicationFirewallPolicyLink", + enabledState: { + serializedName: "enabledState", type: { - name: "Composite", - className: - "EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink" + name: "String" } } } } }; -export const GeoFilter: coreClient.CompositeMapper = { +export const AFDEndpointUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GeoFilter", + className: "AFDEndpointUpdateParameters", modelProperties: { - relativePath: { - serializedName: "relativePath", - required: true, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + profileName: { + serializedName: "properties.profileName", + readOnly: true, type: { name: "String" } }, - action: { - serializedName: "action", + enabledState: { + serializedName: "properties.enabledState", + type: { + name: "String" + } + } + } + } +}; + +export const AfdPurgeParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AfdPurgeParameters", + modelProperties: { + contentPaths: { + serializedName: "contentPaths", required: true, type: { - name: "Enum", - allowedValues: ["Block", "Allow"] + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - countryCodes: { - serializedName: "countryCodes", - required: true, + domains: { + serializedName: "domains", type: { name: "Sequence", element: { @@ -730,74 +694,44 @@ export const GeoFilter: coreClient.CompositeMapper = { } }; -export const UrlSigningKey: coreClient.CompositeMapper = { +export const ValidateCustomDomainInput: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UrlSigningKey", + className: "ValidateCustomDomainInput", modelProperties: { - keyId: { - serializedName: "keyId", + hostName: { + serializedName: "hostName", required: true, type: { name: "String" } - }, - keySourceParameters: { - serializedName: "keySourceParameters", - type: { - name: "Composite", - className: "KeyVaultSigningKeyParameters" - } } } } }; -export const KeyVaultSigningKeyParameters: coreClient.CompositeMapper = { +export const ValidateCustomDomainOutput: coreClient.CompositeMapper = { type: { name: "Composite", - className: "KeyVaultSigningKeyParameters", + className: "ValidateCustomDomainOutput", 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, + customDomainValidated: { + serializedName: "customDomainValidated", + readOnly: true, type: { - name: "String" + name: "Boolean" } }, - secretName: { - serializedName: "secretName", - required: true, + reason: { + serializedName: "reason", + readOnly: true, type: { name: "String" } }, - secretVersion: { - serializedName: "secretVersion", - required: true, + message: { + serializedName: "message", + readOnly: true, type: { name: "String" } @@ -806,131 +740,185 @@ export const KeyVaultSigningKeyParameters: coreClient.CompositeMapper = { } }; -export const EndpointPropertiesUpdateParametersDeliveryPolicy: coreClient.CompositeMapper = { +export const AFDOriginGroupListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EndpointPropertiesUpdateParametersDeliveryPolicy", + className: "AFDOriginGroupListResult", modelProperties: { - description: { - serializedName: "description", - type: { - name: "String" - } - }, - rules: { - serializedName: "rules", - required: true, + value: { + serializedName: "value", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "DeliveryRule" + className: "AFDOriginGroup" } } } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } } } } }; -export const DeliveryRule: coreClient.CompositeMapper = { +export const AFDOriginGroupUpdatePropertiesParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DeliveryRule", + className: "AFDOriginGroupUpdatePropertiesParameters", modelProperties: { - name: { - serializedName: "name", + profileName: { + serializedName: "profileName", + readOnly: true, type: { name: "String" } }, - order: { - serializedName: "order", - required: true, + loadBalancingSettings: { + serializedName: "loadBalancingSettings", type: { - name: "Number" + name: "Composite", + className: "LoadBalancingSettingsParameters" } }, - conditions: { - serializedName: "conditions", + healthProbeSettings: { + serializedName: "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: "trafficRestorationTimeToHealedOrNewEndpointsInMinutes", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DeliveryRuleActionAutoGenerated" - } - } + name: "Number" + } + }, + sessionAffinityState: { + serializedName: "sessionAffinityState", + type: { + name: "String" } } } } }; -export const DeliveryRuleCondition: coreClient.CompositeMapper = { +export const LoadBalancingSettingsParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DeliveryRuleCondition", - uberParent: "DeliveryRuleCondition", - polymorphicDiscriminator: { - serializedName: "name", - clientName: "name" - }, + className: "LoadBalancingSettingsParameters", modelProperties: { - name: { - serializedName: "name", - required: true, + sampleSize: { + serializedName: "sampleSize", type: { - name: "String" + name: "Number" + } + }, + successfulSamplesRequired: { + serializedName: "successfulSamplesRequired", + type: { + name: "Number" + } + }, + additionalLatencyInMilliseconds: { + serializedName: "additionalLatencyInMilliseconds", + type: { + name: "Number" } } } } }; -export const DeliveryRuleActionAutoGenerated: coreClient.CompositeMapper = { +export const HealthProbeParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DeliveryRuleActionAutoGenerated", - uberParent: "DeliveryRuleActionAutoGenerated", - polymorphicDiscriminator: { - serializedName: "name", - clientName: "name" - }, + className: "HealthProbeParameters", modelProperties: { - name: { - serializedName: "name", - required: true, + probePath: { + serializedName: "probePath", type: { name: "String" } + }, + probeRequestType: { + serializedName: "probeRequestType", + type: { + 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 EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink: coreClient.CompositeMapper = { +export const AFDOriginGroupUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: - "EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink", + className: "AFDOriginGroupUpdateParameters", modelProperties: { - id: { - serializedName: "id", + 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" + } + }, + sessionAffinityState: { + serializedName: "properties.sessionAffinityState", type: { name: "String" } @@ -939,256 +927,197 @@ export const EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink: } }; -export const EndpointUpdateParameters: coreClient.CompositeMapper = { +export const AFDOriginListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EndpointUpdateParameters", + className: "AFDOriginListResult", modelProperties: { - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - originPath: { - serializedName: "properties.originPath", - type: { - name: "String" - } - }, - contentTypesToCompress: { - serializedName: "properties.contentTypesToCompress", + value: { + serializedName: "value", + readOnly: true, type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "AFDOrigin" } } } }, - originHostHeader: { - serializedName: "properties.originHostHeader", + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const AFDOriginUpdatePropertiesParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AFDOriginUpdatePropertiesParameters", + modelProperties: { + originGroupName: { + serializedName: "originGroupName", + readOnly: true, type: { name: "String" } }, - isCompressionEnabled: { - serializedName: "properties.isCompressionEnabled", + azureOrigin: { + serializedName: "azureOrigin", type: { - name: "Boolean" + name: "Composite", + className: "ResourceReference" } }, - isHttpAllowed: { - serializedName: "properties.isHttpAllowed", + hostName: { + serializedName: "hostName", type: { - name: "Boolean" + name: "String" } }, - isHttpsAllowed: { - serializedName: "properties.isHttpsAllowed", + httpPort: { + constraints: { + InclusiveMaximum: 65535, + InclusiveMinimum: 1 + }, + serializedName: "httpPort", type: { - name: "Boolean" + name: "Number" } }, - queryStringCachingBehavior: { - serializedName: "properties.queryStringCachingBehavior", + httpsPort: { + constraints: { + InclusiveMaximum: 65535, + InclusiveMinimum: 1 + }, + serializedName: "httpsPort", type: { - name: "Enum", - allowedValues: [ - "IgnoreQueryString", - "BypassCaching", - "UseQueryString", - "NotSet" - ] + name: "Number" } }, - optimizationType: { - serializedName: "properties.optimizationType", + originHostHeader: { + serializedName: "originHostHeader", type: { name: "String" } }, - probePath: { - serializedName: "properties.probePath", + priority: { + constraints: { + InclusiveMaximum: 5, + InclusiveMinimum: 1 + }, + serializedName: "priority", type: { - name: "String" + name: "Number" } }, - geoFilters: { - serializedName: "properties.geoFilters", + weight: { + constraints: { + InclusiveMaximum: 1000, + InclusiveMinimum: 1 + }, + serializedName: "weight", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "GeoFilter" - } - } + name: "Number" } }, - defaultOriginGroup: { - serializedName: "properties.defaultOriginGroup", + sharedPrivateLinkResource: { + serializedName: "sharedPrivateLinkResource", type: { name: "Composite", - className: "ResourceReference" + className: "SharedPrivateLinkResourceProperties" } }, - urlSigningKeys: { - serializedName: "properties.urlSigningKeys", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "UrlSigningKey" - } - } - } - }, - 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, + enforceCertificateNameCheck: { + defaultValue: true, + serializedName: "enforceCertificateNameCheck", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Boolean" } } } } }; -export const LoadParameters: coreClient.CompositeMapper = { +export const SharedPrivateLinkResourceProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LoadParameters", + className: "SharedPrivateLinkResourceProperties", modelProperties: { - contentPaths: { - serializedName: "contentPaths", - required: true, + privateLink: { + serializedName: "privateLink", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "ResourceReference" } - } - } - } -}; - -export const ValidateCustomDomainInput: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ValidateCustomDomainInput", - modelProperties: { - hostName: { - serializedName: "hostName", - required: true, + }, + privateLinkLocation: { + serializedName: "privateLinkLocation", type: { name: "String" } - } - } - } -}; - -export const ValidateCustomDomainOutput: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ValidateCustomDomainOutput", - modelProperties: { - customDomainValidated: { - serializedName: "customDomainValidated", - readOnly: true, + }, + groupId: { + serializedName: "groupId", type: { - name: "Boolean" + name: "String" } }, - reason: { - serializedName: "reason", - readOnly: true, + requestMessage: { + serializedName: "requestMessage", type: { name: "String" } }, - message: { - serializedName: "message", - readOnly: true, + status: { + serializedName: "status", type: { - name: "String" + name: "Enum", + allowedValues: [ + "Pending", + "Approved", + "Rejected", + "Disconnected", + "Timeout" + ] } } } } }; -export const OriginListResult: coreClient.CompositeMapper = { +export const AFDOriginUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OriginListResult", + className: "AFDOriginUpdateParameters", modelProperties: { - value: { - serializedName: "value", + originGroupName: { + serializedName: "properties.originGroupName", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Origin" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + azureOrigin: { + serializedName: "properties.azureOrigin", type: { - name: "String" + name: "Composite", + className: "ResourceReference" } - } - } - } -}; - -export const OriginUpdatePropertiesParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OriginUpdatePropertiesParameters", - modelProperties: { + }, hostName: { - serializedName: "hostName", + serializedName: "properties.hostName", type: { name: "String" } @@ -1198,7 +1127,7 @@ export const OriginUpdatePropertiesParameters: coreClient.CompositeMapper = { InclusiveMaximum: 65535, InclusiveMinimum: 1 }, - serializedName: "httpPort", + serializedName: "properties.httpPort", type: { name: "Number" } @@ -1208,13 +1137,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 +1153,7 @@ export const OriginUpdatePropertiesParameters: coreClient.CompositeMapper = { InclusiveMaximum: 5, InclusiveMinimum: 1 }, - serializedName: "priority", + serializedName: "properties.priority", type: { name: "Number" } @@ -1234,37 +1163,55 @@ 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: "Composite", + className: "SharedPrivateLinkResourceProperties" } }, - privateLinkAlias: { - serializedName: "privateLinkAlias", + enabledState: { + serializedName: "properties.enabledState", type: { name: "String" } }, - privateLinkResourceId: { - serializedName: "privateLinkResourceId", + enforceCertificateNameCheck: { + defaultValue: true, + 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 +1220,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 +1326,121 @@ 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", + queryStringCachingBehavior: { + serializedName: "queryStringCachingBehavior", type: { - name: "Composite", - className: "HealthProbeParameters" + name: "String" } }, - origins: { - serializedName: "origins", + queryParameters: { + serializedName: "queryParameters", + type: { + name: "String" + } + }, + compressionSettings: { + serializedName: "compressionSettings", + type: { + name: "Composite", + className: "CompressionSettings" + } + } + } + } +}; + +export const CompressionSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CompressionSettings", + modelProperties: { + contentTypesToCompress: { + serializedName: "contentTypesToCompress", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "ResourceReference" + name: "String" } } } }, - trafficRestorationTimeToHealedOrNewEndpointsInMinutes: { - constraints: { - InclusiveMaximum: 50, - InclusiveMinimum: 0 - }, - serializedName: "trafficRestorationTimeToHealedOrNewEndpointsInMinutes", - type: { - name: "Number" - } - }, - responseBasedOriginErrorDetectionSettings: { - serializedName: "responseBasedOriginErrorDetectionSettings", + isCompressionEnabled: { + serializedName: "isCompressionEnabled", type: { - name: "Composite", - className: "ResponseBasedOriginErrorDetectionParameters" + name: "Boolean" } } } } }; -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 +1451,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 +1521,7 @@ export const CustomDomainListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "CustomDomain" + className: "RuleSet" } } } @@ -1511,72 +1536,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" } - } - } - } -}; - -export const CheckNameAvailabilityInput: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CheckNameAvailabilityInput", - modelProperties: { - name: { - serializedName: "name", - required: true, + }, + order: { + serializedName: "order", type: { - name: "String" + name: "Number" } }, - type: { - defaultValue: "Microsoft.Cdn/Profiles/Endpoints", - isConstant: true, - serializedName: "type", + 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" } @@ -1585,28 +1616,19 @@ export const CheckNameAvailabilityInput: coreClient.CompositeMapper = { } }; -export const CheckNameAvailabilityOutput: coreClient.CompositeMapper = { +export const DeliveryRuleCondition: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CheckNameAvailabilityOutput", + className: "DeliveryRuleCondition", + uberParent: "DeliveryRuleCondition", + polymorphicDiscriminator: { + serializedName: "name", + clientName: "name" + }, modelProperties: { - nameAvailable: { - serializedName: "nameAvailable", - readOnly: true, - type: { - name: "Boolean" - } - }, - reason: { - serializedName: "reason", - readOnly: true, - type: { - name: "String" - } - }, - message: { - serializedName: "message", - readOnly: true, + name: { + serializedName: "name", + required: true, type: { name: "String" } @@ -1615,13 +1637,18 @@ export const CheckNameAvailabilityOutput: coreClient.CompositeMapper = { } }; -export const ValidateProbeInput: coreClient.CompositeMapper = { +export const DeliveryRuleActionAutoGenerated: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ValidateProbeInput", + className: "DeliveryRuleActionAutoGenerated", + uberParent: "DeliveryRuleActionAutoGenerated", + polymorphicDiscriminator: { + serializedName: "name", + clientName: "name" + }, modelProperties: { - probeURL: { - serializedName: "probeURL", + name: { + serializedName: "name", required: true, type: { name: "String" @@ -1631,28 +1658,50 @@ export const ValidateProbeInput: coreClient.CompositeMapper = { } }; -export const ValidateProbeOutput: coreClient.CompositeMapper = { +export const RuleUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ValidateProbeOutput", + className: "RuleUpdateParameters", modelProperties: { - isValid: { - serializedName: "isValid", + ruleSetName: { + serializedName: "properties.ruleSetName", readOnly: true, type: { - name: "Boolean" + name: "String" } }, - errorCode: { - serializedName: "errorCode", - 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" } @@ -1661,10 +1710,10 @@ export const ValidateProbeOutput: coreClient.CompositeMapper = { } }; -export const OperationsListResult: coreClient.CompositeMapper = { +export const SecurityPolicyListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OperationsListResult", + className: "SecurityPolicyListResult", modelProperties: { value: { serializedName: "value", @@ -1674,7 +1723,7 @@ export const OperationsListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Operation" + className: "SecurityPolicy" } } } @@ -1689,63 +1738,47 @@ export const OperationsListResult: coreClient.CompositeMapper = { } }; -export const Operation: coreClient.CompositeMapper = { +export const SecurityPolicyPropertiesParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Operation", + className: "SecurityPolicyPropertiesParameters", + uberParent: "SecurityPolicyPropertiesParameters", + 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 SecurityPolicyUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OperationDisplay", + className: "SecurityPolicyUpdateParameters", modelProperties: { - provider: { - serializedName: "provider", - readOnly: true, - type: { - name: "String" - } - }, - resource: { - serializedName: "resource", - readOnly: true, - type: { - name: "String" - } - }, - operation: { - serializedName: "operation", - readOnly: true, + parameters: { + serializedName: "properties.parameters", type: { - name: "String" + name: "Composite", + className: "SecurityPolicyPropertiesParameters" } } } } }; -export const EdgenodeResult: coreClient.CompositeMapper = { +export const SecretListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EdgenodeResult", + className: "SecretListResult", modelProperties: { value: { serializedName: "value", @@ -1755,7 +1788,7 @@ export const EdgenodeResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "EdgeNode" + className: "Secret" } } } @@ -1770,85 +1803,69 @@ export const EdgenodeResult: coreClient.CompositeMapper = { } }; -export const IpAddressGroup: coreClient.CompositeMapper = { +export const SecretParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "IpAddressGroup", + className: "SecretParameters", + uberParent: "SecretParameters", + polymorphicDiscriminator: { + serializedName: "type", + clientName: "type" + }, modelProperties: { - deliveryRegion: { - serializedName: "deliveryRegion", + type: { + serializedName: "type", + required: true, type: { name: "String" } - }, - ipv4Addresses: { - serializedName: "ipv4Addresses", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "CidrIpAddress" - } - } - } - }, - ipv6Addresses: { - serializedName: "ipv6Addresses", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "CidrIpAddress" - } - } - } } } } }; -export const CidrIpAddress: coreClient.CompositeMapper = { +export const ValidateSecretInput: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CidrIpAddress", + className: "ValidateSecretInput", modelProperties: { - baseIpAddress: { - serializedName: "baseIpAddress", + secretType: { + serializedName: "secretType", + required: true, type: { name: "String" } }, - prefixLength: { - serializedName: "prefixLength", + secretSource: { + serializedName: "secretSource", type: { - name: "Number" + name: "Composite", + className: "ResourceReference" + } + }, + secretVersion: { + serializedName: "secretVersion", + type: { + name: "String" } } } } }; -export const UsagesListResult: coreClient.CompositeMapper = { +export const ValidateSecretOutput: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UsagesListResult", + className: "ValidateSecretOutput", modelProperties: { - value: { - serializedName: "value", + status: { + serializedName: "status", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Usage" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + message: { + serializedName: "message", type: { name: "String" } @@ -1857,130 +1874,104 @@ export const UsagesListResult: coreClient.CompositeMapper = { } }; -export const Usage: coreClient.CompositeMapper = { +export const MetricsResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Usage", + className: "MetricsResponse", modelProperties: { - id: { - serializedName: "id", - readOnly: true, - type: { - name: "String" - } - }, - unit: { - serializedName: "unit", - required: true, + dateTimeBegin: { + serializedName: "dateTimeBegin", type: { - name: "String" + name: "DateTime" } }, - currentValue: { - serializedName: "currentValue", - required: true, + dateTimeEnd: { + serializedName: "dateTimeEnd", type: { - name: "Number" + name: "DateTime" } }, - limit: { - serializedName: "limit", - required: true, + granularity: { + serializedName: "granularity", type: { - name: "Number" + name: "String" } }, - name: { - serializedName: "name", + series: { + serializedName: "series", type: { - name: "Composite", - className: "UsageName" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MetricsResponseSeriesItem" + } + } } } } } }; -export const UsageName: coreClient.CompositeMapper = { +export const MetricsResponseSeriesItem: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UsageName", + className: "MetricsResponseSeriesItem", modelProperties: { - value: { - serializedName: "value", + metric: { + serializedName: "metric", type: { name: "String" } }, - localizedValue: { - serializedName: "localizedValue", + unit: { + serializedName: "unit", type: { name: "String" } - } - } - } -}; - -export const AfdErrorResponse: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AfdErrorResponse", - modelProperties: { - error: { - serializedName: "error", - type: { - name: "Composite", - className: "ErrorResponse" - } - } - } - } -}; - -export const AFDDomainListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AFDDomainListResult", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, + }, + groups: { + serializedName: "groups", type: { name: "Sequence", element: { type: { name: "Composite", - className: "AFDDomain" + className: "MetricsResponseSeriesPropertiesItemsItem" } } } }, - nextLink: { - serializedName: "nextLink", + data: { + serializedName: "data", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: + "Components1Gs0LlpSchemasMetricsresponsePropertiesSeriesItemsPropertiesDataItems" + } + } } } } } }; -export const DomainValidationProperties: coreClient.CompositeMapper = { +export const MetricsResponseSeriesPropertiesItemsItem: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DomainValidationProperties", + className: "MetricsResponseSeriesPropertiesItemsItem", modelProperties: { - validationToken: { - serializedName: "validationToken", - readOnly: true, + name: { + serializedName: "name", type: { name: "String" } }, - expirationDate: { - serializedName: "expirationDate", - readOnly: true, + value: { + serializedName: "value", type: { name: "String" } @@ -1989,165 +1980,182 @@ export const DomainValidationProperties: coreClient.CompositeMapper = { } }; -export const AFDDomainUpdatePropertiesParameters: coreClient.CompositeMapper = { +export const Components1Gs0LlpSchemasMetricsresponsePropertiesSeriesItemsPropertiesDataItems: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AFDDomainUpdatePropertiesParameters", + className: + "Components1Gs0LlpSchemasMetricsresponsePropertiesSeriesItemsPropertiesDataItems", modelProperties: { - tlsSettings: { - serializedName: "tlsSettings", + dateTime: { + serializedName: "dateTime", type: { - name: "Composite", - className: "AFDDomainHttpsParameters" + name: "DateTime" } }, - azureDnsZone: { - serializedName: "azureDnsZone", + value: { + serializedName: "value", type: { - name: "Composite", - className: "ResourceReference" + name: "Number" } } } } }; -export const AFDDomainHttpsParameters: coreClient.CompositeMapper = { +export const RankingsResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AFDDomainHttpsParameters", + className: "RankingsResponse", modelProperties: { - certificateType: { - serializedName: "certificateType", - required: true, + dateTimeBegin: { + serializedName: "dateTimeBegin", type: { - name: "String" + name: "DateTime" } }, - minimumTlsVersion: { - serializedName: "minimumTlsVersion", + dateTimeEnd: { + serializedName: "dateTimeEnd", type: { - name: "Enum", - allowedValues: ["TLS10", "TLS12"] + name: "DateTime" } }, - secret: { - serializedName: "secret", + tables: { + serializedName: "tables", type: { - name: "Composite", - className: "ResourceReference" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RankingsResponseTablesItem" + } + } } } } } }; -export const AFDStateProperties: coreClient.CompositeMapper = { +export const RankingsResponseTablesItem: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AFDStateProperties", + className: "RankingsResponseTablesItem", modelProperties: { - provisioningState: { - serializedName: "provisioningState", - readOnly: true, + ranking: { + serializedName: "ranking", type: { name: "String" } }, - deploymentStatus: { - serializedName: "deploymentStatus", - readOnly: true, + data: { + serializedName: "data", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RankingsResponseTablesPropertiesItemsItem" + } + } } } } } }; -export const AFDDomainUpdateParameters: coreClient.CompositeMapper = { +export const RankingsResponseTablesPropertiesItemsItem: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AFDDomainUpdateParameters", + className: "RankingsResponseTablesPropertiesItemsItem", modelProperties: { - tlsSettings: { - serializedName: "properties.tlsSettings", + name: { + serializedName: "name", type: { - name: "Composite", - className: "AFDDomainHttpsParameters" + name: "String" } }, - azureDnsZone: { - serializedName: "properties.azureDnsZone", + metrics: { + serializedName: "metrics", type: { - name: "Composite", - className: "ResourceReference" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RankingsResponseTablesPropertiesItemsMetricsItem" + } + } } } } } }; -export const ValidationToken: coreClient.CompositeMapper = { +export const RankingsResponseTablesPropertiesItemsMetricsItem: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ValidationToken", + className: "RankingsResponseTablesPropertiesItemsMetricsItem", modelProperties: { - token: { - serializedName: "token", - readOnly: true, + metric: { + serializedName: "metric", type: { name: "String" } + }, + value: { + serializedName: "value", + type: { + name: "Number" + } + }, + percentage: { + serializedName: "percentage", + type: { + name: "Number" + } } } } }; -export const AFDEndpointListResult: coreClient.CompositeMapper = { +export const ContinentsResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AFDEndpointListResult", + className: "ContinentsResponse", modelProperties: { - value: { - serializedName: "value", - readOnly: true, + continents: { + serializedName: "continents", type: { name: "Sequence", element: { type: { name: "Composite", - className: "AFDEndpoint" + className: "ContinentsResponseContinentsItem" } } } }, - nextLink: { - serializedName: "nextLink", + countryOrRegions: { + serializedName: "countryOrRegions", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ContinentsResponseCountryOrRegionsItem" + } + } } } } } }; -export const AFDEndpointPropertiesUpdateParameters: coreClient.CompositeMapper = { +export const ContinentsResponseContinentsItem: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AFDEndpointPropertiesUpdateParameters", + className: "ContinentsResponseContinentsItem", modelProperties: { - originResponseTimeoutSeconds: { - constraints: { - InclusiveMinimum: 16 - }, - serializedName: "originResponseTimeoutSeconds", - type: { - name: "Number" - } - }, - enabledState: { - serializedName: "enabledState", + id: { + serializedName: "id", type: { name: "String" } @@ -2156,29 +2164,19 @@ export const AFDEndpointPropertiesUpdateParameters: coreClient.CompositeMapper = } }; -export const AFDEndpointUpdateParameters: coreClient.CompositeMapper = { +export const ContinentsResponseCountryOrRegionsItem: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AFDEndpointUpdateParameters", + className: "ContinentsResponseCountryOrRegionsItem", modelProperties: { - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - originResponseTimeoutSeconds: { - constraints: { - InclusiveMinimum: 16 - }, - serializedName: "properties.originResponseTimeoutSeconds", + id: { + serializedName: "id", type: { - name: "Number" + name: "String" } }, - enabledState: { - serializedName: "properties.enabledState", + continentId: { + serializedName: "continentId", type: { name: "String" } @@ -2187,30 +2185,31 @@ export const AFDEndpointUpdateParameters: coreClient.CompositeMapper = { } }; -export const AfdPurgeParameters: coreClient.CompositeMapper = { +export const ResourcesResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AfdPurgeParameters", + className: "ResourcesResponse", modelProperties: { - contentPaths: { - serializedName: "contentPaths", - required: true, + endpoints: { + serializedName: "endpoints", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "ResourcesResponseEndpointsItem" } } } }, - domains: { - serializedName: "domains", + customDomains: { + serializedName: "customDomains", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "ResourcesResponseCustomDomainsItem" } } } @@ -2219,256 +2218,1134 @@ export const AfdPurgeParameters: coreClient.CompositeMapper = { } }; -export const AFDOriginGroupListResult: coreClient.CompositeMapper = { +export const ResourcesResponseEndpointsItem: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AFDOriginGroupListResult", + className: "ResourcesResponseEndpointsItem", modelProperties: { - value: { - serializedName: "value", - readOnly: true, + 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: "AFDOriginGroup" + className: "ResourcesResponseEndpointsPropertiesItemsItem" } } } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } } } } }; -export const AFDOriginGroupUpdatePropertiesParameters: coreClient.CompositeMapper = { +export const ResourcesResponseEndpointsPropertiesItemsItem: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AFDOriginGroupUpdatePropertiesParameters", + className: "ResourcesResponseEndpointsPropertiesItemsItem", modelProperties: { - loadBalancingSettings: { - serializedName: "loadBalancingSettings", - type: { - name: "Composite", - className: "LoadBalancingSettingsParameters" - } - }, - healthProbeSettings: { - serializedName: "healthProbeSettings", + id: { + serializedName: "id", type: { - name: "Composite", - className: "HealthProbeParameters" + name: "String" } }, - trafficRestorationTimeToHealedOrNewEndpointsInMinutes: { - constraints: { - InclusiveMaximum: 50, - InclusiveMinimum: 0 - }, - serializedName: "trafficRestorationTimeToHealedOrNewEndpointsInMinutes", + name: { + serializedName: "name", type: { - name: "Number" + name: "String" } }, - responseBasedAfdOriginErrorDetectionSettings: { - serializedName: "responseBasedAfdOriginErrorDetectionSettings", + endpointId: { + serializedName: "endpointId", type: { - name: "Composite", - className: "ResponseBasedOriginErrorDetectionParameters" + name: "String" } }, - sessionAffinityState: { - serializedName: "sessionAffinityState", + history: { + serializedName: "history", type: { - name: "String" + name: "Boolean" } } } } }; -export const LoadBalancingSettingsParameters: coreClient.CompositeMapper = { +export const ResourcesResponseCustomDomainsItem: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LoadBalancingSettingsParameters", + className: "ResourcesResponseCustomDomainsItem", modelProperties: { - sampleSize: { - serializedName: "sampleSize", + id: { + serializedName: "id", type: { - name: "Number" + name: "String" } }, - successfulSamplesRequired: { - serializedName: "successfulSamplesRequired", + name: { + serializedName: "name", type: { - name: "Number" + name: "String" } }, - additionalLatencyInMilliseconds: { - serializedName: "additionalLatencyInMilliseconds", + endpointId: { + serializedName: "endpointId", type: { - name: "Number" + name: "String" + } + }, + history: { + serializedName: "history", + type: { + name: "Boolean" } } } } }; -export const AFDOriginGroupUpdateParameters: coreClient.CompositeMapper = { +export const WafMetricsResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AFDOriginGroupUpdateParameters", + className: "WafMetricsResponse", modelProperties: { - 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", + dateTimeBegin: { + serializedName: "dateTimeBegin", type: { - name: "Number" + name: "DateTime" } }, - responseBasedAfdOriginErrorDetectionSettings: { - serializedName: - "properties.responseBasedAfdOriginErrorDetectionSettings", + dateTimeEnd: { + serializedName: "dateTimeEnd", type: { - name: "Composite", - className: "ResponseBasedOriginErrorDetectionParameters" + name: "DateTime" } }, - sessionAffinityState: { - serializedName: "properties.sessionAffinityState", + granularity: { + serializedName: "granularity", type: { name: "String" } - } - } - } -}; - -export const AFDOriginListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AFDOriginListResult", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, + }, + series: { + serializedName: "series", type: { name: "Sequence", element: { type: { name: "Composite", - className: "AFDOrigin" + className: "WafMetricsResponseSeriesItem" } } } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } } } } }; -export const AFDOriginUpdatePropertiesParameters: coreClient.CompositeMapper = { +export const WafMetricsResponseSeriesItem: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AFDOriginUpdatePropertiesParameters", + className: "WafMetricsResponseSeriesItem", modelProperties: { - azureOrigin: { - serializedName: "azureOrigin", + metric: { + serializedName: "metric", type: { - name: "Composite", - className: "ResourceReference" + name: "String" } }, - hostName: { - serializedName: "hostName", + unit: { + defaultValue: "count", + isConstant: true, + serializedName: "unit", type: { name: "String" } }, - httpPort: { - constraints: { - InclusiveMaximum: 65535, - InclusiveMinimum: 1 + groups: { + serializedName: "groups", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "WafMetricsResponseSeriesPropertiesItemsItem" + } + } + } + }, + data: { + serializedName: "data", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: + "Components18OrqelSchemasWafmetricsresponsePropertiesSeriesItemsPropertiesDataItems" + } + } + } + } + } + } +}; + +export const WafMetricsResponseSeriesPropertiesItemsItem: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WafMetricsResponseSeriesPropertiesItemsItem", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + value: { + serializedName: "value", + type: { + name: "String" + } + } + } + } +}; + +export const Components18OrqelSchemasWafmetricsresponsePropertiesSeriesItemsPropertiesDataItems: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: + "Components18OrqelSchemasWafmetricsresponsePropertiesSeriesItemsPropertiesDataItems", + modelProperties: { + dateTime: { + serializedName: "dateTime", + type: { + name: "DateTime" + } + }, + value: { + serializedName: "value", + type: { + name: "Number" + } + } + } + } +}; + +export const WafRankingsResponse: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WafRankingsResponse", + modelProperties: { + dateTimeBegin: { + serializedName: "dateTimeBegin", + type: { + name: "DateTime" + } + }, + dateTimeEnd: { + serializedName: "dateTimeEnd", + type: { + name: "DateTime" + } + }, + groups: { + serializedName: "groups", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + data: { + serializedName: "data", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "WafRankingsResponseDataItem" + } + } + } + } + } + } +}; + +export const WafRankingsResponseDataItem: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WafRankingsResponseDataItem", + modelProperties: { + groupValues: { + serializedName: "groupValues", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + metrics: { + serializedName: "metrics", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: + "ComponentsKpo1PjSchemasWafrankingsresponsePropertiesDataItemsPropertiesMetricsItems" + } + } + } + } + } + } +}; + +export const ComponentsKpo1PjSchemasWafrankingsresponsePropertiesDataItemsPropertiesMetricsItems: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: + "ComponentsKpo1PjSchemasWafrankingsresponsePropertiesDataItemsPropertiesMetricsItems", + modelProperties: { + metric: { + serializedName: "metric", + type: { + name: "String" + } + }, + value: { + serializedName: "value", + type: { + name: "Number" + } + }, + percentage: { + serializedName: "percentage", + type: { + name: "Number" + } + } + } + } +}; + +export const ProfileListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ProfileListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Profile" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const Sku: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Sku", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + } + } + } +}; + +export const ErrorResponse: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ErrorResponse", + modelProperties: { + error: { + serializedName: "error", + type: { + name: "Composite", + className: "ErrorDetail" + } + } + } + } +}; + +export const ProfileUpdateParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ProfileUpdateParameters", + modelProperties: { + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + originResponseTimeoutSeconds: { + constraints: { + InclusiveMinimum: 16 }, - serializedName: "httpPort", + serializedName: "properties.originResponseTimeoutSeconds", type: { name: "Number" } + } + } + } +}; + +export const SsoUri: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SsoUri", + modelProperties: { + ssoUriValue: { + serializedName: "ssoUriValue", + readOnly: true, + type: { + 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" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const ResourceUsage: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ResourceUsage", + modelProperties: { + resourceType: { + serializedName: "resourceType", + readOnly: true, + type: { + name: "String" + } + }, + unit: { + serializedName: "unit", + 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 = { + type: { + name: "Composite", + className: "EndpointListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Endpoint" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const DeepCreatedOrigin: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DeepCreatedOrigin", + modelProperties: { + name: { + serializedName: "name", + required: true, + type: { + name: "String" + } + }, + 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", + type: { + name: "String" + } + }, + priority: { + constraints: { + InclusiveMaximum: 5, + InclusiveMinimum: 1 + }, + serializedName: "properties.priority", + type: { + name: "Number" + } + }, + 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" + } + }, + privateLinkResourceId: { + serializedName: "properties.privateLinkResourceId", + type: { + name: "String" + } + }, + privateLinkLocation: { + serializedName: "properties.privateLinkLocation", + type: { + name: "String" + } + }, + privateLinkApprovalMessage: { + serializedName: "properties.privateLinkApprovalMessage", + type: { + name: "String" + } + }, + privateEndpointStatus: { + serializedName: "properties.privateEndpointStatus", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const DeepCreatedOriginGroup: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DeepCreatedOriginGroup", + modelProperties: { + 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: { + 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" + } + } + } + } +}; + +export const ResponseBasedOriginErrorDetectionParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ResponseBasedOriginErrorDetectionParameters", + modelProperties: { + responseBasedDetectedErrorTypes: { + serializedName: "responseBasedDetectedErrorTypes", + type: { + name: "Enum", + allowedValues: ["None", "TcpErrorsOnly", "TcpAndHttpErrors"] + } + }, + responseBasedFailoverThresholdPercentage: { + constraints: { + InclusiveMaximum: 100, + InclusiveMinimum: 0 + }, + serializedName: "responseBasedFailoverThresholdPercentage", + type: { + name: "Number" + } + }, + httpErrorRanges: { + serializedName: "httpErrorRanges", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "HttpErrorRangeParameters" + } + } + } + } + } + } +}; + +export const HttpErrorRangeParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "HttpErrorRangeParameters", + modelProperties: { + begin: { + constraints: { + InclusiveMaximum: 999, + InclusiveMinimum: 100 + }, + serializedName: "begin", + type: { + name: "Number" + } + }, + end: { + constraints: { + InclusiveMaximum: 999, + InclusiveMinimum: 100 + }, + serializedName: "end", + type: { + name: "Number" + } + } + } + } +}; + +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" + } + }, + protocolType: { + serializedName: "protocolType", + required: true, + type: { + name: "String" + } + }, + minimumTlsVersion: { + serializedName: "minimumTlsVersion", + type: { + name: "Enum", + allowedValues: ["None", "TLS10", "TLS12"] + } + } + } + } +}; + +export const EndpointPropertiesUpdateParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EndpointPropertiesUpdateParameters", + modelProperties: { + originPath: { + serializedName: "originPath", + type: { + name: "String" + } + }, + contentTypesToCompress: { + serializedName: "contentTypesToCompress", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + originHostHeader: { + serializedName: "originHostHeader", + type: { + name: "String" + } + }, + isCompressionEnabled: { + serializedName: "isCompressionEnabled", + type: { + name: "Boolean" + } + }, + isHttpAllowed: { + serializedName: "isHttpAllowed", + type: { + name: "Boolean" + } + }, + isHttpsAllowed: { + serializedName: "isHttpsAllowed", + type: { + name: "Boolean" + } + }, + queryStringCachingBehavior: { + serializedName: "queryStringCachingBehavior", + type: { + name: "Enum", + allowedValues: [ + "IgnoreQueryString", + "BypassCaching", + "UseQueryString", + "NotSet" + ] + } + }, + optimizationType: { + serializedName: "optimizationType", + type: { + name: "String" + } + }, + probePath: { + serializedName: "probePath", + type: { + name: "String" + } + }, + geoFilters: { + serializedName: "geoFilters", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GeoFilter" + } + } + } + }, + defaultOriginGroup: { + serializedName: "defaultOriginGroup", + type: { + name: "Composite", + className: "ResourceReference" + } + }, + urlSigningKeys: { + serializedName: "urlSigningKeys", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "UrlSigningKey" + } + } + } + }, + deliveryPolicy: { + serializedName: "deliveryPolicy", + type: { + name: "Composite", + className: "EndpointPropertiesUpdateParametersDeliveryPolicy" + } + }, + webApplicationFirewallPolicyLink: { + serializedName: "webApplicationFirewallPolicyLink", + type: { + name: "Composite", + className: + "EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink" + } + } + } + } +}; + +export const GeoFilter: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GeoFilter", + modelProperties: { + relativePath: { + serializedName: "relativePath", + required: true, + type: { + name: "String" + } + }, + action: { + serializedName: "action", + required: true, + type: { + name: "Enum", + allowedValues: ["Block", "Allow"] + } + }, + countryCodes: { + serializedName: "countryCodes", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const UrlSigningKey: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "UrlSigningKey", + modelProperties: { + keyId: { + serializedName: "keyId", + required: true, + type: { + name: "String" + } + }, + keySourceParameters: { + serializedName: "keySourceParameters", + type: { + name: "Composite", + className: "KeyVaultSigningKeyParameters" + } + } + } + } +}; + +export const KeyVaultSigningKeyParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "KeyVaultSigningKeyParameters", + modelProperties: { + typeName: { + defaultValue: "KeyVaultSigningKeyParameters", + isConstant: true, + serializedName: "typeName", + type: { + 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", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const EndpointPropertiesUpdateParametersDeliveryPolicy: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EndpointPropertiesUpdateParametersDeliveryPolicy", + modelProperties: { + description: { + serializedName: "description", + type: { + name: "String" + } }, - httpsPort: { - constraints: { - InclusiveMaximum: 65535, - InclusiveMinimum: 1 - }, - serializedName: "httpsPort", + rules: { + serializedName: "rules", + required: true, type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DeliveryRule" + } + } } - }, - originHostHeader: { - serializedName: "originHostHeader", + } + } + } +}; + +export const DeliveryRule: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DeliveryRule", + modelProperties: { + name: { + serializedName: "name", type: { name: "String" } }, - priority: { - constraints: { - InclusiveMaximum: 5, - InclusiveMinimum: 1 - }, - serializedName: "priority", + order: { + serializedName: "order", + required: true, type: { name: "Number" } }, - weight: { - constraints: { - InclusiveMaximum: 1000, - InclusiveMinimum: 1 - }, - serializedName: "weight", + conditions: { + serializedName: "conditions", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DeliveryRuleCondition" + } + } } }, - sharedPrivateLinkResource: { - serializedName: "sharedPrivateLinkResource", + actions: { + serializedName: "actions", + required: true, type: { - name: "Dictionary", - value: { type: { name: "any" } } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DeliveryRuleActionAutoGenerated" + } + } } - }, - enabledState: { - serializedName: "enabledState", + } + } + } +}; + +export const EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: + "EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink", + modelProperties: { + id: { + serializedName: "id", type: { name: "String" } @@ -2477,91 +3354,179 @@ export const AFDOriginUpdatePropertiesParameters: coreClient.CompositeMapper = { } }; -export const AFDOriginUpdateParameters: coreClient.CompositeMapper = { +export const EndpointUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AFDOriginUpdateParameters", + className: "EndpointUpdateParameters", modelProperties: { - azureOrigin: { - serializedName: "properties.azureOrigin", + tags: { + serializedName: "tags", type: { - name: "Composite", - className: "ResourceReference" + name: "Dictionary", + value: { type: { name: "String" } } } }, - hostName: { - serializedName: "properties.hostName", + originPath: { + serializedName: "properties.originPath", type: { name: "String" } }, - httpPort: { - constraints: { - InclusiveMaximum: 65535, - InclusiveMinimum: 1 - }, - serializedName: "properties.httpPort", + contentTypesToCompress: { + serializedName: "properties.contentTypesToCompress", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - httpsPort: { - constraints: { - InclusiveMaximum: 65535, - InclusiveMinimum: 1 - }, - serializedName: "properties.httpsPort", + originHostHeader: { + serializedName: "properties.originHostHeader", type: { - name: "Number" + name: "String" } }, - originHostHeader: { - serializedName: "properties.originHostHeader", + isCompressionEnabled: { + serializedName: "properties.isCompressionEnabled", + type: { + name: "Boolean" + } + }, + isHttpAllowed: { + serializedName: "properties.isHttpAllowed", + type: { + name: "Boolean" + } + }, + isHttpsAllowed: { + serializedName: "properties.isHttpsAllowed", + type: { + name: "Boolean" + } + }, + queryStringCachingBehavior: { + serializedName: "properties.queryStringCachingBehavior", + type: { + name: "Enum", + allowedValues: [ + "IgnoreQueryString", + "BypassCaching", + "UseQueryString", + "NotSet" + ] + } + }, + optimizationType: { + serializedName: "properties.optimizationType", type: { name: "String" } }, - priority: { - constraints: { - InclusiveMaximum: 5, - InclusiveMinimum: 1 - }, - serializedName: "properties.priority", + probePath: { + serializedName: "properties.probePath", type: { - name: "Number" + name: "String" } }, - weight: { - constraints: { - InclusiveMaximum: 1000, - InclusiveMinimum: 1 - }, - serializedName: "properties.weight", + geoFilters: { + serializedName: "properties.geoFilters", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GeoFilter" + } + } } }, - sharedPrivateLinkResource: { - serializedName: "properties.sharedPrivateLinkResource", + defaultOriginGroup: { + serializedName: "properties.defaultOriginGroup", type: { - name: "Dictionary", - value: { type: { name: "any" } } + name: "Composite", + className: "ResourceReference" } }, - enabledState: { - serializedName: "properties.enabledState", + urlSigningKeys: { + serializedName: "properties.urlSigningKeys", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "UrlSigningKey" + } + } + } + }, + deliveryPolicy: { + serializedName: "properties.deliveryPolicy", + type: { + name: "Composite", + className: "EndpointPropertiesUpdateParametersDeliveryPolicy" + } + }, + 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: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const RouteListResult: coreClient.CompositeMapper = { +export const OriginListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RouteListResult", + className: "OriginListResult", modelProperties: { value: { serializedName: "value", @@ -2571,7 +3536,7 @@ export const RouteListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Route" + className: "Origin" } } } @@ -2586,104 +3551,89 @@ export const RouteListResult: coreClient.CompositeMapper = { } }; -export const RouteUpdatePropertiesParameters: coreClient.CompositeMapper = { +export const OriginUpdatePropertiesParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RouteUpdatePropertiesParameters", + className: "OriginUpdatePropertiesParameters", modelProperties: { - customDomains: { - serializedName: "customDomains", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ResourceReference" - } - } - } - }, - originGroup: { - serializedName: "originGroup", + hostName: { + serializedName: "hostName", type: { - name: "Composite", - className: "ResourceReference" + name: "String" } }, - originPath: { - serializedName: "originPath", + httpPort: { + constraints: { + InclusiveMaximum: 65535, + InclusiveMinimum: 1 + }, + serializedName: "httpPort", type: { - name: "String" + name: "Number" } }, - ruleSets: { - serializedName: "ruleSets", + httpsPort: { + constraints: { + InclusiveMaximum: 65535, + InclusiveMinimum: 1 + }, + serializedName: "httpsPort", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ResourceReference" - } - } + name: "Number" } }, - supportedProtocols: { - serializedName: "supportedProtocols", + originHostHeader: { + serializedName: "originHostHeader", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - patternsToMatch: { - serializedName: "patternsToMatch", + priority: { + constraints: { + InclusiveMaximum: 5, + InclusiveMinimum: 1 + }, + serializedName: "priority", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Number" } }, - compressionSettings: { - serializedName: "compressionSettings", + weight: { + constraints: { + InclusiveMaximum: 1000, + InclusiveMinimum: 1 + }, + serializedName: "weight", type: { - name: "Dictionary", - value: { type: { name: "any" } } + name: "Number" } }, - queryStringCachingBehavior: { - serializedName: "queryStringCachingBehavior", + enabled: { + serializedName: "enabled", type: { - name: "Enum", - allowedValues: ["IgnoreQueryString", "UseQueryString", "NotSet"] + name: "Boolean" } }, - forwardingProtocol: { - serializedName: "forwardingProtocol", + privateLinkAlias: { + serializedName: "privateLinkAlias", type: { name: "String" } }, - linkToDefaultDomain: { - serializedName: "linkToDefaultDomain", + privateLinkResourceId: { + serializedName: "privateLinkResourceId", type: { name: "String" } }, - httpsRedirect: { - serializedName: "httpsRedirect", + privateLinkLocation: { + serializedName: "privateLinkLocation", type: { name: "String" } }, - enabledState: { - serializedName: "enabledState", + privateLinkApprovalMessage: { + serializedName: "privateLinkApprovalMessage", type: { name: "String" } @@ -2692,132 +3642,89 @@ export const RouteUpdatePropertiesParameters: coreClient.CompositeMapper = { } }; -export const RouteUpdateParameters: coreClient.CompositeMapper = { +export const OriginUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RouteUpdateParameters", + className: "OriginUpdateParameters", modelProperties: { - customDomains: { - serializedName: "properties.customDomains", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ResourceReference" - } - } - } - }, - originGroup: { - serializedName: "properties.originGroup", - type: { - name: "Composite", - className: "ResourceReference" - } - }, - originPath: { - serializedName: "properties.originPath", + hostName: { + serializedName: "properties.hostName", type: { name: "String" } }, - ruleSets: { - serializedName: "properties.ruleSets", + httpPort: { + constraints: { + InclusiveMaximum: 65535, + InclusiveMinimum: 1 + }, + serializedName: "properties.httpPort", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ResourceReference" - } - } + name: "Number" } }, - supportedProtocols: { - serializedName: "properties.supportedProtocols", + httpsPort: { + constraints: { + InclusiveMaximum: 65535, + InclusiveMinimum: 1 + }, + serializedName: "properties.httpsPort", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Number" } }, - patternsToMatch: { - serializedName: "properties.patternsToMatch", + originHostHeader: { + serializedName: "properties.originHostHeader", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - compressionSettings: { - serializedName: "properties.compressionSettings", + priority: { + constraints: { + InclusiveMaximum: 5, + InclusiveMinimum: 1 + }, + serializedName: "properties.priority", type: { - name: "Dictionary", - value: { type: { name: "any" } } + name: "Number" } }, - queryStringCachingBehavior: { - serializedName: "properties.queryStringCachingBehavior", + weight: { + constraints: { + InclusiveMaximum: 1000, + InclusiveMinimum: 1 + }, + serializedName: "properties.weight", type: { - name: "Enum", - allowedValues: ["IgnoreQueryString", "UseQueryString", "NotSet"] + name: "Number" } }, - forwardingProtocol: { - serializedName: "properties.forwardingProtocol", + enabled: { + serializedName: "properties.enabled", type: { - name: "String" + name: "Boolean" } }, - linkToDefaultDomain: { - serializedName: "properties.linkToDefaultDomain", + privateLinkAlias: { + serializedName: "properties.privateLinkAlias", type: { name: "String" } }, - httpsRedirect: { - serializedName: "properties.httpsRedirect", + privateLinkResourceId: { + serializedName: "properties.privateLinkResourceId", type: { name: "String" } }, - enabledState: { - serializedName: "properties.enabledState", + privateLinkLocation: { + serializedName: "properties.privateLinkLocation", type: { name: "String" } - } - } - } -}; - -export const RuleSetListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RuleSetListResult", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RuleSet" - } - } - } }, - nextLink: { - serializedName: "nextLink", + privateLinkApprovalMessage: { + serializedName: "properties.privateLinkApprovalMessage", type: { name: "String" } @@ -2826,10 +3733,10 @@ export const RuleSetListResult: coreClient.CompositeMapper = { } }; -export const RuleListResult: coreClient.CompositeMapper = { +export const OriginGroupListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RuleListResult", + className: "OriginGroupListResult", modelProperties: { value: { serializedName: "value", @@ -2839,7 +3746,7 @@ export const RuleListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Rule" + className: "OriginGroup" } } } @@ -2854,100 +3761,101 @@ export const RuleListResult: coreClient.CompositeMapper = { } }; -export const RuleUpdatePropertiesParameters: coreClient.CompositeMapper = { +export const OriginGroupUpdatePropertiesParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RuleUpdatePropertiesParameters", + className: "OriginGroupUpdatePropertiesParameters", modelProperties: { - order: { - serializedName: "order", + healthProbeSettings: { + serializedName: "healthProbeSettings", type: { - name: "Number" + name: "Composite", + className: "HealthProbeParameters" } }, - conditions: { - serializedName: "conditions", + origins: { + serializedName: "origins", type: { name: "Sequence", element: { type: { name: "Composite", - className: "DeliveryRuleCondition" + className: "ResourceReference" } } } }, - actions: { - serializedName: "actions", + trafficRestorationTimeToHealedOrNewEndpointsInMinutes: { + constraints: { + InclusiveMaximum: 50, + InclusiveMinimum: 0 + }, + serializedName: "trafficRestorationTimeToHealedOrNewEndpointsInMinutes", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DeliveryRuleActionAutoGenerated" - } - } + name: "Number" } }, - matchProcessingBehavior: { - serializedName: "matchProcessingBehavior", + responseBasedOriginErrorDetectionSettings: { + serializedName: "responseBasedOriginErrorDetectionSettings", type: { - name: "String" + name: "Composite", + className: "ResponseBasedOriginErrorDetectionParameters" } } } } }; -export const RuleUpdateParameters: coreClient.CompositeMapper = { +export const OriginGroupUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RuleUpdateParameters", + className: "OriginGroupUpdateParameters", modelProperties: { - order: { - serializedName: "properties.order", + healthProbeSettings: { + serializedName: "properties.healthProbeSettings", type: { - name: "Number" + name: "Composite", + className: "HealthProbeParameters" } }, - conditions: { - serializedName: "properties.conditions", + origins: { + serializedName: "properties.origins", type: { name: "Sequence", element: { type: { name: "Composite", - className: "DeliveryRuleCondition" + className: "ResourceReference" } } } }, - actions: { - serializedName: "properties.actions", + trafficRestorationTimeToHealedOrNewEndpointsInMinutes: { + constraints: { + InclusiveMaximum: 50, + InclusiveMinimum: 0 + }, + serializedName: + "properties.trafficRestorationTimeToHealedOrNewEndpointsInMinutes", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DeliveryRuleActionAutoGenerated" - } - } + name: "Number" } }, - matchProcessingBehavior: { - serializedName: "properties.matchProcessingBehavior", + responseBasedOriginErrorDetectionSettings: { + serializedName: "properties.responseBasedOriginErrorDetectionSettings", type: { - name: "String" + name: "Composite", + className: "ResponseBasedOriginErrorDetectionParameters" } } } } }; -export const SecurityPolicyListResult: coreClient.CompositeMapper = { +export const CustomDomainListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecurityPolicyListResult", + className: "CustomDomainListResult", modelProperties: { value: { serializedName: "value", @@ -2957,7 +3865,7 @@ export const SecurityPolicyListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SecurityPolicy" + className: "CustomDomain" } } } @@ -2972,19 +3880,13 @@ export const SecurityPolicyListResult: coreClient.CompositeMapper = { } }; -export const SecurityPolicyParameters: coreClient.CompositeMapper = { +export const CustomDomainParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecurityPolicyParameters", - uberParent: "SecurityPolicyParameters", - polymorphicDiscriminator: { - serializedName: "type", - clientName: "type" - }, + className: "CustomDomainParameters", modelProperties: { - type: { - serializedName: "type", - required: true, + hostName: { + serializedName: "properties.hostName", type: { name: "String" } @@ -2993,26 +3895,21 @@ export const SecurityPolicyParameters: coreClient.CompositeMapper = { } }; -export const SecretListResult: coreClient.CompositeMapper = { +export const CheckNameAvailabilityInput: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecretListResult", + className: "CheckNameAvailabilityInput", modelProperties: { - value: { - serializedName: "value", - readOnly: true, + name: { + serializedName: "name", + required: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Secret" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + type: { + serializedName: "type", + required: true, type: { name: "String" } @@ -3021,18 +3918,13 @@ export const SecretListResult: coreClient.CompositeMapper = { } }; -export const SecretParameters: coreClient.CompositeMapper = { +export const ValidateProbeInput: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecretParameters", - uberParent: "SecretParameters", - polymorphicDiscriminator: { - serializedName: "type", - clientName: "type" - }, + className: "ValidateProbeInput", modelProperties: { - type: { - serializedName: "type", + probeURL: { + serializedName: "probeURL", required: true, type: { name: "String" @@ -3042,21 +3934,28 @@ export const SecretParameters: coreClient.CompositeMapper = { } }; -export const ValidateSecretInput: coreClient.CompositeMapper = { +export const ValidateProbeOutput: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ValidateSecretInput", + className: "ValidateProbeOutput", modelProperties: { - secretSource: { - serializedName: "secretSource", + isValid: { + serializedName: "isValid", + readOnly: true, type: { - name: "Composite", - className: "ResourceReference" + name: "Boolean" } }, - secretType: { - serializedName: "secretType", - required: true, + errorCode: { + serializedName: "errorCode", + readOnly: true, + type: { + name: "String" + } + }, + message: { + serializedName: "message", + readOnly: true, type: { name: "String" } @@ -3065,19 +3964,25 @@ export const ValidateSecretInput: coreClient.CompositeMapper = { } }; -export const ValidateSecretOutput: coreClient.CompositeMapper = { +export const OperationsListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ValidateSecretOutput", + className: "OperationsListResult", modelProperties: { - status: { - serializedName: "status", + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Operation" + } + } } }, - message: { - serializedName: "message", + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -3086,83 +3991,111 @@ export const ValidateSecretOutput: coreClient.CompositeMapper = { } }; -export const MetricsResponse: coreClient.CompositeMapper = { +export const Operation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MetricsResponse", + className: "Operation", modelProperties: { - dateTimeBegin: { - serializedName: "dateTimeBegin", + name: { + serializedName: "name", + readOnly: true, type: { - name: "DateTime" + name: "String" } }, - dateTimeEnd: { - serializedName: "dateTimeEnd", + isDataAction: { + serializedName: "isDataAction", type: { - name: "DateTime" + name: "Boolean" } }, - granularity: { - serializedName: "granularity", + display: { + serializedName: "display", + type: { + name: "Composite", + className: "OperationDisplay" + } + }, + origin: { + serializedName: "origin", + readOnly: true, type: { name: "String" } }, - series: { - serializedName: "series", + serviceSpecification: { + serializedName: "properties.serviceSpecification", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MetricsResponseSeriesItem" - } - } + name: "Composite", + className: "ServiceSpecification" } } } } }; -export const MetricsResponseSeriesItem: coreClient.CompositeMapper = { +export const OperationDisplay: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MetricsResponseSeriesItem", + className: "OperationDisplay", modelProperties: { - metric: { - serializedName: "metric", + provider: { + serializedName: "provider", + readOnly: true, type: { name: "String" } }, - unit: { - serializedName: "unit", + resource: { + serializedName: "resource", + readOnly: true, type: { name: "String" } }, - groups: { - serializedName: "groups", + operation: { + serializedName: "operation", + readOnly: true, + type: { + name: "String" + } + }, + description: { + serializedName: "description", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ServiceSpecification: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServiceSpecification", + modelProperties: { + logSpecifications: { + serializedName: "logSpecifications", type: { name: "Sequence", element: { type: { name: "Composite", - className: "MetricsResponseSeriesPropertiesItemsItem" + className: "LogSpecification" } } } }, - data: { - serializedName: "data", + metricSpecifications: { + serializedName: "metricSpecifications", type: { name: "Sequence", element: { type: { name: "Composite", - className: - "Components1Gs0LlpSchemasMetricsresponsePropertiesSeriesItemsPropertiesDataItems" + className: "MetricSpecification" } } } @@ -3171,10 +4104,10 @@ export const MetricsResponseSeriesItem: coreClient.CompositeMapper = { } }; -export const MetricsResponseSeriesPropertiesItemsItem: coreClient.CompositeMapper = { +export const LogSpecification: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MetricsResponseSeriesPropertiesItemsItem", + className: "LogSpecification", modelProperties: { name: { serializedName: "name", @@ -3182,285 +4115,341 @@ export const MetricsResponseSeriesPropertiesItemsItem: coreClient.CompositeMappe name: "String" } }, - value: { - serializedName: "value", + displayName: { + serializedName: "displayName", type: { name: "String" } - } - } - } -}; - -export const Components1Gs0LlpSchemasMetricsresponsePropertiesSeriesItemsPropertiesDataItems: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: - "Components1Gs0LlpSchemasMetricsresponsePropertiesSeriesItemsPropertiesDataItems", - modelProperties: { - dateTime: { - serializedName: "dateTime", + }, + blobDuration: { + serializedName: "blobDuration", type: { - name: "DateTime" + name: "String" } }, - value: { - serializedName: "value", + logFilterPattern: { + serializedName: "logFilterPattern", type: { - name: "Number" + name: "String" } } } } }; -export const RankingsResponse: coreClient.CompositeMapper = { +export const MetricSpecification: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RankingsResponse", + className: "MetricSpecification", modelProperties: { - dateTimeBegin: { - serializedName: "dateTimeBegin", + name: { + serializedName: "name", type: { - name: "DateTime" + name: "String" } }, - dateTimeEnd: { - serializedName: "dateTimeEnd", + displayName: { + serializedName: "displayName", type: { - name: "DateTime" + name: "String" } }, - tables: { - serializedName: "tables", + displayDescription: { + serializedName: "displayDescription", + type: { + name: "String" + } + }, + unit: { + serializedName: "unit", + type: { + name: "String" + } + }, + aggregationType: { + serializedName: "aggregationType", + type: { + name: "String" + } + }, + availabilities: { + serializedName: "availabilities", type: { name: "Sequence", element: { type: { name: "Composite", - className: "RankingsResponseTablesItem" + className: "MetricAvailability" } } } - } - } - } -}; - -export const RankingsResponseTablesItem: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RankingsResponseTablesItem", - modelProperties: { - ranking: { - serializedName: "ranking", + }, + supportedTimeGrainTypes: { + serializedName: "supportedTimeGrainTypes", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - data: { - serializedName: "data", + dimensions: { + serializedName: "dimensions", type: { name: "Sequence", element: { type: { name: "Composite", - className: "RankingsResponseTablesPropertiesItemsItem" + className: "DimensionProperties" } } } + }, + fillGapWithZero: { + serializedName: "fillGapWithZero", + type: { + name: "Boolean" + } + }, + metricFilterPattern: { + serializedName: "metricFilterPattern", + type: { + name: "String" + } + }, + isInternal: { + serializedName: "isInternal", + type: { + name: "Boolean" + } } } } }; -export const RankingsResponseTablesPropertiesItemsItem: coreClient.CompositeMapper = { +export const MetricAvailability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RankingsResponseTablesPropertiesItemsItem", + className: "MetricAvailability", modelProperties: { - name: { - serializedName: "name", + timeGrain: { + serializedName: "timeGrain", type: { name: "String" } }, - metrics: { - serializedName: "metrics", + blobDuration: { + serializedName: "blobDuration", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RankingsResponseTablesPropertiesItemsMetricsItem" - } - } + name: "String" } } } } }; -export const RankingsResponseTablesPropertiesItemsMetricsItem: coreClient.CompositeMapper = { +export const DimensionProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RankingsResponseTablesPropertiesItemsMetricsItem", + className: "DimensionProperties", modelProperties: { - metric: { - serializedName: "metric", + name: { + serializedName: "name", type: { name: "String" } }, - value: { - serializedName: "value", + displayName: { + serializedName: "displayName", type: { - name: "Number" + name: "String" } }, - percentage: { - serializedName: "percentage", + internalName: { + serializedName: "internalName", type: { - name: "Number" + name: "String" } } } } }; -export const ContinentsResponse: coreClient.CompositeMapper = { +export const EdgenodeResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ContinentsResponse", + className: "EdgenodeResult", modelProperties: { - continents: { - serializedName: "continents", + value: { + serializedName: "value", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ContinentsResponseContinentsItem" + className: "EdgeNode" } } } }, - countryOrRegions: { - serializedName: "countryOrRegions", + nextLink: { + serializedName: "nextLink", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ContinentsResponseCountryOrRegionsItem" - } - } + name: "String" } } } } }; -export const ContinentsResponseContinentsItem: coreClient.CompositeMapper = { +export const IpAddressGroup: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ContinentsResponseContinentsItem", + className: "IpAddressGroup", modelProperties: { - id: { - serializedName: "id", + deliveryRegion: { + serializedName: "deliveryRegion", type: { name: "String" } + }, + ipv4Addresses: { + serializedName: "ipv4Addresses", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CidrIpAddress" + } + } + } + }, + ipv6Addresses: { + serializedName: "ipv6Addresses", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CidrIpAddress" + } + } + } } } } }; -export const ContinentsResponseCountryOrRegionsItem: coreClient.CompositeMapper = { +export const CidrIpAddress: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ContinentsResponseCountryOrRegionsItem", + className: "CidrIpAddress", modelProperties: { - id: { - serializedName: "id", + baseIpAddress: { + serializedName: "baseIpAddress", type: { name: "String" } }, - continentId: { - serializedName: "continentId", + prefixLength: { + serializedName: "prefixLength", type: { - name: "String" + name: "Number" } } } } }; -export const ResourcesResponse: coreClient.CompositeMapper = { +export const CdnWebApplicationFirewallPolicyList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourcesResponse", + className: "CdnWebApplicationFirewallPolicyList", modelProperties: { - endpoints: { - serializedName: "endpoints", + value: { + serializedName: "value", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ResourcesResponseEndpointsItem" + className: "CdnWebApplicationFirewallPolicy" } } } }, - customDomains: { - serializedName: "customDomains", + nextLink: { + serializedName: "nextLink", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ResourcesResponseCustomDomainsItem" - } - } + name: "String" } } } } }; -export const ResourcesResponseEndpointsItem: coreClient.CompositeMapper = { +export const PolicySettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourcesResponseEndpointsItem", + className: "PolicySettings", modelProperties: { - id: { - serializedName: "id", + enabledState: { + serializedName: "enabledState", type: { name: "String" } }, - name: { - serializedName: "name", + mode: { + serializedName: "mode", type: { name: "String" } }, - history: { - serializedName: "history", + defaultRedirectUrl: { + serializedName: "defaultRedirectUrl", type: { - name: "Boolean" + name: "String" } }, - customDomains: { - serializedName: "customDomains", + 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", + type: { + name: "String" + } + } + } + } +}; + +export const RateLimitRuleList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RateLimitRuleList", + modelProperties: { + rules: { + serializedName: "rules", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ResourcesResponseEndpointsPropertiesItemsItem" + className: "RateLimitRule" } } } @@ -3469,103 +4458,109 @@ export const ResourcesResponseEndpointsItem: coreClient.CompositeMapper = { } }; -export const ResourcesResponseEndpointsPropertiesItemsItem: coreClient.CompositeMapper = { +export const CustomRule: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourcesResponseEndpointsPropertiesItemsItem", + className: "CustomRule", modelProperties: { - id: { - serializedName: "id", + name: { + serializedName: "name", + required: true, type: { name: "String" } }, - name: { - serializedName: "name", + enabledState: { + serializedName: "enabledState", type: { name: "String" } }, - endpointId: { - serializedName: "endpointId", + priority: { + constraints: { + InclusiveMaximum: 1000, + InclusiveMinimum: 0 + }, + serializedName: "priority", + required: true, type: { - name: "String" + name: "Number" } }, - history: { - serializedName: "history", + matchConditions: { + serializedName: "matchConditions", + required: true, type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MatchCondition" + } + } + } + }, + action: { + serializedName: "action", + required: true, + type: { + name: "String" } } } } }; -export const ResourcesResponseCustomDomainsItem: coreClient.CompositeMapper = { +export const MatchCondition: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourcesResponseCustomDomainsItem", + className: "MatchCondition", modelProperties: { - id: { - serializedName: "id", + matchVariable: { + serializedName: "matchVariable", + required: true, type: { name: "String" } }, - name: { - serializedName: "name", + selector: { + serializedName: "selector", type: { name: "String" } }, - endpointId: { - serializedName: "endpointId", + operator: { + serializedName: "operator", + required: true, type: { name: "String" } }, - history: { - serializedName: "history", + negateCondition: { + serializedName: "negateCondition", type: { name: "Boolean" } - } - } - } -}; - -export const WafMetricsResponse: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "WafMetricsResponse", - modelProperties: { - dateTimeBegin: { - serializedName: "dateTimeBegin", - type: { - name: "DateTime" - } - }, - dateTimeEnd: { - serializedName: "dateTimeEnd", - type: { - name: "DateTime" - } }, - granularity: { - serializedName: "granularity", + matchValue: { + serializedName: "matchValue", + required: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - series: { - serializedName: "series", + transforms: { + serializedName: "transforms", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "WafMetricsResponseSeriesItem" + name: "String" } } } @@ -3574,46 +4569,40 @@ export const WafMetricsResponse: coreClient.CompositeMapper = { } }; -export const WafMetricsResponseSeriesItem: coreClient.CompositeMapper = { +export const CustomRuleList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WafMetricsResponseSeriesItem", + className: "CustomRuleList", modelProperties: { - metric: { - serializedName: "metric", - type: { - name: "String" - } - }, - unit: { - defaultValue: "count", - isConstant: true, - serializedName: "unit", - type: { - name: "String" - } - }, - groups: { - serializedName: "groups", + rules: { + serializedName: "rules", type: { name: "Sequence", element: { type: { name: "Composite", - className: "WafMetricsResponseSeriesPropertiesItemsItem" + className: "CustomRule" } } } - }, - data: { - serializedName: "data", + } + } + } +}; + +export const ManagedRuleSetList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedRuleSetList", + modelProperties: { + managedRuleSets: { + serializedName: "managedRuleSets", type: { name: "Sequence", element: { type: { name: "Composite", - className: - "Components18OrqelSchemasWafmetricsresponsePropertiesSeriesItemsPropertiesDataItems" + className: "ManagedRuleSet" } } } @@ -3622,158 +4611,142 @@ export const WafMetricsResponseSeriesItem: coreClient.CompositeMapper = { } }; -export const WafMetricsResponseSeriesPropertiesItemsItem: coreClient.CompositeMapper = { +export const ManagedRuleSet: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WafMetricsResponseSeriesPropertiesItemsItem", + className: "ManagedRuleSet", modelProperties: { - name: { - serializedName: "name", + ruleSetType: { + serializedName: "ruleSetType", + required: true, type: { name: "String" } }, - value: { - serializedName: "value", + ruleSetVersion: { + serializedName: "ruleSetVersion", + required: true, type: { name: "String" } + }, + anomalyScore: { + constraints: { + InclusiveMaximum: 20, + InclusiveMinimum: 0 + }, + serializedName: "anomalyScore", + type: { + name: "Number" + } + }, + ruleGroupOverrides: { + serializedName: "ruleGroupOverrides", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedRuleGroupOverride" + } + } + } } } } }; -export const Components18OrqelSchemasWafmetricsresponsePropertiesSeriesItemsPropertiesDataItems: coreClient.CompositeMapper = { +export const ManagedRuleGroupOverride: coreClient.CompositeMapper = { type: { name: "Composite", - className: - "Components18OrqelSchemasWafmetricsresponsePropertiesSeriesItemsPropertiesDataItems", + className: "ManagedRuleGroupOverride", modelProperties: { - dateTime: { - serializedName: "dateTime", + ruleGroupName: { + serializedName: "ruleGroupName", + required: true, type: { - name: "DateTime" + name: "String" } }, - value: { - serializedName: "value", + rules: { + serializedName: "rules", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedRuleOverride" + } + } } } } } }; -export const WafRankingsResponse: coreClient.CompositeMapper = { +export const ManagedRuleOverride: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WafRankingsResponse", + className: "ManagedRuleOverride", modelProperties: { - dateTimeBegin: { - serializedName: "dateTimeBegin", - type: { - name: "DateTime" - } - }, - dateTimeEnd: { - serializedName: "dateTimeEnd", + ruleId: { + serializedName: "ruleId", + required: true, type: { - name: "DateTime" + name: "String" } }, - groups: { - serializedName: "groups", + enabledState: { + serializedName: "enabledState", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - data: { - serializedName: "data", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "WafRankingsResponseDataItem" - } - } + action: { + serializedName: "action", + type: { + name: "String" } } } } }; -export const WafRankingsResponseDataItem: coreClient.CompositeMapper = { +export const CdnEndpoint: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WafRankingsResponseDataItem", + className: "CdnEndpoint", modelProperties: { - groupValues: { - serializedName: "groupValues", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - metrics: { - serializedName: "metrics", + id: { + serializedName: "id", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: - "ComponentsKpo1PjSchemasWafrankingsresponsePropertiesDataItemsPropertiesMetricsItems" - } - } + name: "String" } } } } }; -export const ComponentsKpo1PjSchemasWafrankingsresponsePropertiesDataItemsPropertiesMetricsItems: coreClient.CompositeMapper = { +export const CdnWebApplicationFirewallPolicyPatchParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: - "ComponentsKpo1PjSchemasWafrankingsresponsePropertiesDataItemsPropertiesMetricsItems", + className: "CdnWebApplicationFirewallPolicyPatchParameters", modelProperties: { - metric: { - serializedName: "metric", - type: { - name: "String" - } - }, - value: { - serializedName: "value", - type: { - name: "Number" - } - }, - percentage: { - serializedName: "percentage", + tags: { + serializedName: "tags", type: { - name: "Number" + name: "Dictionary", + value: { type: { name: "String" } } } } } } }; -export const CdnWebApplicationFirewallPolicyList: coreClient.CompositeMapper = { +export const ManagedRuleSetDefinitionList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CdnWebApplicationFirewallPolicyList", + className: "ManagedRuleSetDefinitionList", modelProperties: { value: { serializedName: "value", @@ -3783,7 +4756,7 @@ export const CdnWebApplicationFirewallPolicyList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "CdnWebApplicationFirewallPolicy" + className: "ManagedRuleSetDefinition" } } } @@ -3798,63 +4771,34 @@ export const CdnWebApplicationFirewallPolicyList: coreClient.CompositeMapper = { } }; -export const PolicySettings: coreClient.CompositeMapper = { +export const ManagedRuleGroupDefinition: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PolicySettings", + className: "ManagedRuleGroupDefinition", modelProperties: { - enabledState: { - serializedName: "enabledState", - type: { - name: "String" - } - }, - mode: { - serializedName: "mode", + ruleGroupName: { + serializedName: "ruleGroupName", + readOnly: true, type: { name: "String" } }, - defaultRedirectUrl: { - serializedName: "defaultRedirectUrl", + description: { + serializedName: "description", + 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", - type: { - name: "String" - } - } - } - } -}; - -export const RateLimitRuleList: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RateLimitRuleList", - modelProperties: { rules: { serializedName: "rules", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "RateLimitRule" + className: "ManagedRuleDefinition" } } } @@ -3863,51 +4807,21 @@ export const RateLimitRuleList: coreClient.CompositeMapper = { } }; -export const CustomRule: coreClient.CompositeMapper = { +export const ManagedRuleDefinition: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CustomRule", + className: "ManagedRuleDefinition", modelProperties: { - name: { - serializedName: "name", - required: true, - type: { - name: "String" - } - }, - enabledState: { - serializedName: "enabledState", + ruleId: { + serializedName: "ruleId", + readOnly: true, type: { name: "String" } }, - priority: { - constraints: { - InclusiveMaximum: 1000, - InclusiveMinimum: 0 - }, - serializedName: "priority", - required: true, - type: { - name: "Number" - } - }, - matchConditions: { - serializedName: "matchConditions", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MatchCondition" - } - } - } - }, - action: { - serializedName: "action", - required: true, + description: { + serializedName: "description", + readOnly: true, type: { name: "String" } @@ -3916,51 +4830,54 @@ export const CustomRule: coreClient.CompositeMapper = { } }; -export const MatchCondition: coreClient.CompositeMapper = { +export const Certificate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MatchCondition", + className: "Certificate", modelProperties: { - matchVariable: { - serializedName: "matchVariable", - required: true, + type: { + serializedName: "type", type: { name: "String" } }, - selector: { - serializedName: "selector", + subject: { + serializedName: "subject", + readOnly: true, type: { name: "String" } }, - operator: { - serializedName: "operator", - required: true, + expirationDate: { + serializedName: "expirationDate", + readOnly: true, type: { name: "String" } - }, - negateCondition: { - serializedName: "negateCondition", - type: { - name: "Boolean" - } - }, - matchValue: { - serializedName: "matchValue", - required: true, + } + } + } +}; + +export const SecurityPolicyWebApplicationFirewallAssociation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SecurityPolicyWebApplicationFirewallAssociation", + modelProperties: { + domains: { + serializedName: "domains", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "ActivatedResourceReference" } } } }, - transforms: { - serializedName: "transforms", + patternsToMatch: { + serializedName: "patternsToMatch", type: { name: "Sequence", element: { @@ -3974,40 +4891,66 @@ export const MatchCondition: coreClient.CompositeMapper = { } }; -export const CustomRuleList: coreClient.CompositeMapper = { +export const ValidationToken: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CustomRuleList", + className: "ValidationToken", modelProperties: { - rules: { - serializedName: "rules", + token: { + serializedName: "token", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "CustomRule" - } - } + name: "String" } } } } }; -export const ManagedRuleSetList: coreClient.CompositeMapper = { +export const RemoteAddressMatchConditionParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedRuleSetList", + className: "RemoteAddressMatchConditionParameters", modelProperties: { - managedRuleSets: { - serializedName: "managedRuleSets", + typeName: { + defaultValue: "DeliveryRuleRemoteAddressConditionParameters", + 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: { + type: { + name: "String" + } + } + } + }, + transforms: { + serializedName: "transforms", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "ManagedRuleSet" + name: "String" } } } @@ -4016,43 +4959,50 @@ export const ManagedRuleSetList: coreClient.CompositeMapper = { } }; -export const ManagedRuleSet: coreClient.CompositeMapper = { +export const RequestMethodMatchConditionParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedRuleSet", + className: "RequestMethodMatchConditionParameters", modelProperties: { - ruleSetType: { - serializedName: "ruleSetType", - required: true, + typeName: { + defaultValue: "DeliveryRuleRequestMethodConditionParameters", + isConstant: true, + serializedName: "typeName", type: { name: "String" } }, - ruleSetVersion: { - serializedName: "ruleSetVersion", + operator: { + serializedName: "operator", required: true, type: { name: "String" } }, - anomalyScore: { - constraints: { - InclusiveMaximum: 20, - InclusiveMinimum: 0 - }, - serializedName: "anomalyScore", + negateCondition: { + serializedName: "negateCondition", type: { - name: "Number" + name: "Boolean" } }, - ruleGroupOverrides: { - serializedName: "ruleGroupOverrides", + transforms: { + serializedName: "transforms", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "ManagedRuleGroupOverride" + name: "String" + } + } + } + }, + matchValues: { + serializedName: "matchValues", + type: { + name: "Sequence", + element: { + type: { + name: "String" } } } @@ -4061,26 +5011,50 @@ export const ManagedRuleSet: coreClient.CompositeMapper = { } }; -export const ManagedRuleGroupOverride: coreClient.CompositeMapper = { +export const QueryStringMatchConditionParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedRuleGroupOverride", + className: "QueryStringMatchConditionParameters", modelProperties: { - ruleGroupName: { - serializedName: "ruleGroupName", + typeName: { + defaultValue: "DeliveryRuleQueryStringConditionParameters", + isConstant: true, + serializedName: "typeName", + type: { + name: "String" + } + }, + operator: { + serializedName: "operator", required: true, type: { name: "String" } }, - rules: { - serializedName: "rules", + negateCondition: { + serializedName: "negateCondition", + type: { + name: "Boolean" + } + }, + matchValues: { + serializedName: "matchValues", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "ManagedRuleOverride" + name: "String" + } + } + } + }, + transforms: { + serializedName: "transforms", + type: { + name: "Sequence", + element: { + type: { + name: "String" } } } @@ -4089,162 +5063,131 @@ export const ManagedRuleGroupOverride: coreClient.CompositeMapper = { } }; -export const ManagedRuleOverride: coreClient.CompositeMapper = { +export const PostArgsMatchConditionParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedRuleOverride", + className: "PostArgsMatchConditionParameters", modelProperties: { - ruleId: { - serializedName: "ruleId", - required: true, + typeName: { + defaultValue: "DeliveryRulePostArgsConditionParameters", + isConstant: true, + serializedName: "typeName", type: { name: "String" } }, - enabledState: { - serializedName: "enabledState", + selector: { + serializedName: "selector", type: { name: "String" } }, - action: { - serializedName: "action", - type: { - name: "String" - } - } - } - } -}; - -export const CdnEndpoint: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CdnEndpoint", - modelProperties: { - id: { - serializedName: "id", + operator: { + serializedName: "operator", + required: true, type: { name: "String" } - } - } - } -}; - -export const CdnWebApplicationFirewallPolicyPatchParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CdnWebApplicationFirewallPolicyPatchParameters", - modelProperties: { - tags: { - serializedName: "tags", + }, + negateCondition: { + serializedName: "negateCondition", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Boolean" } - } - } - } -}; - -export const ManagedRuleSetDefinitionList: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedRuleSetDefinitionList", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, + }, + matchValues: { + serializedName: "matchValues", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "ManagedRuleSetDefinition" + name: "String" } } } }, - nextLink: { - serializedName: "nextLink", + transforms: { + serializedName: "transforms", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const ManagedRuleGroupDefinition: coreClient.CompositeMapper = { +export const RequestUriMatchConditionParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedRuleGroupDefinition", + className: "RequestUriMatchConditionParameters", modelProperties: { - ruleGroupName: { - serializedName: "ruleGroupName", - readOnly: true, + typeName: { + defaultValue: "DeliveryRuleRequestUriConditionParameters", + isConstant: true, + serializedName: "typeName", type: { name: "String" } }, - description: { - serializedName: "description", - readOnly: true, + operator: { + serializedName: "operator", + required: true, type: { name: "String" } }, - rules: { - serializedName: "rules", - readOnly: true, + negateCondition: { + serializedName: "negateCondition", + type: { + name: "Boolean" + } + }, + matchValues: { + serializedName: "matchValues", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "ManagedRuleDefinition" + name: "String" } } } - } - } - } -}; - -export const ManagedRuleDefinition: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedRuleDefinition", - modelProperties: { - ruleId: { - serializedName: "ruleId", - readOnly: true, - type: { - name: "String" - } }, - description: { - serializedName: "description", - readOnly: true, + transforms: { + serializedName: "transforms", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const RemoteAddressMatchConditionParameters: coreClient.CompositeMapper = { +export const RequestHeaderMatchConditionParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RemoteAddressMatchConditionParameters", + className: "RequestHeaderMatchConditionParameters", modelProperties: { - odataType: { - defaultValue: - "#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters", + typeName: { + defaultValue: "DeliveryRuleRequestHeaderConditionParameters", isConstant: true, - serializedName: "@odata\\.type", + serializedName: "typeName", + type: { + name: "String" + } + }, + selector: { + serializedName: "selector", type: { name: "String" } @@ -4288,16 +5231,15 @@ export const RemoteAddressMatchConditionParameters: coreClient.CompositeMapper = } }; -export const RequestMethodMatchConditionParameters: coreClient.CompositeMapper = { +export const RequestBodyMatchConditionParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RequestMethodMatchConditionParameters", + className: "RequestBodyMatchConditionParameters", modelProperties: { - odataType: { - defaultValue: - "#Microsoft.Azure.Cdn.Models.DeliveryRuleRequestMethodConditionParameters", + typeName: { + defaultValue: "DeliveryRuleRequestBodyConditionParameters", isConstant: true, - serializedName: "@odata\\.type", + serializedName: "typeName", type: { name: "String" } @@ -4325,28 +5267,39 @@ export const RequestMethodMatchConditionParameters: coreClient.CompositeMapper = } } } + }, + transforms: { + serializedName: "transforms", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } } } } }; -export const QueryStringMatchConditionParameters: coreClient.CompositeMapper = { +export const RequestSchemeMatchConditionParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "QueryStringMatchConditionParameters", + className: "RequestSchemeMatchConditionParameters", modelProperties: { - odataType: { - defaultValue: - "#Microsoft.Azure.Cdn.Models.DeliveryRuleQueryStringConditionParameters", + typeName: { + defaultValue: "DeliveryRuleRequestSchemeConditionParameters", isConstant: true, - serializedName: "@odata\\.type", + serializedName: "typeName", type: { name: "String" } }, operator: { + defaultValue: "Equal", + isConstant: true, serializedName: "operator", - required: true, type: { name: "String" } @@ -4357,8 +5310,8 @@ export const QueryStringMatchConditionParameters: coreClient.CompositeMapper = { name: "Boolean" } }, - matchValues: { - serializedName: "matchValues", + transforms: { + serializedName: "transforms", type: { name: "Sequence", element: { @@ -4368,8 +5321,8 @@ export const QueryStringMatchConditionParameters: coreClient.CompositeMapper = { } } }, - transforms: { - serializedName: "transforms", + matchValues: { + serializedName: "matchValues", type: { name: "Sequence", element: { @@ -4383,22 +5336,15 @@ export const QueryStringMatchConditionParameters: coreClient.CompositeMapper = { } }; -export const PostArgsMatchConditionParameters: coreClient.CompositeMapper = { +export const UrlPathMatchConditionParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PostArgsMatchConditionParameters", + className: "UrlPathMatchConditionParameters", modelProperties: { - odataType: { - defaultValue: - "#Microsoft.Azure.Cdn.Models.DeliveryRulePostArgsConditionParameters", + typeName: { + defaultValue: "DeliveryRuleUrlPathMatchConditionParameters", isConstant: true, - serializedName: "@odata\\.type", - type: { - name: "String" - } - }, - selector: { - serializedName: "selector", + serializedName: "typeName", type: { name: "String" } @@ -4442,16 +5388,15 @@ export const PostArgsMatchConditionParameters: coreClient.CompositeMapper = { } }; -export const RequestUriMatchConditionParameters: coreClient.CompositeMapper = { +export const UrlFileExtensionMatchConditionParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RequestUriMatchConditionParameters", + className: "UrlFileExtensionMatchConditionParameters", modelProperties: { - odataType: { - defaultValue: - "#Microsoft.Azure.Cdn.Models.DeliveryRuleRequestUriConditionParameters", + typeName: { + defaultValue: "DeliveryRuleUrlFileExtensionMatchConditionParameters", isConstant: true, - serializedName: "@odata\\.type", + serializedName: "typeName", type: { name: "String" } @@ -4495,22 +5440,15 @@ export const RequestUriMatchConditionParameters: coreClient.CompositeMapper = { } }; -export const RequestHeaderMatchConditionParameters: coreClient.CompositeMapper = { +export const UrlFileNameMatchConditionParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RequestHeaderMatchConditionParameters", + className: "UrlFileNameMatchConditionParameters", modelProperties: { - odataType: { - defaultValue: - "#Microsoft.Azure.Cdn.Models.DeliveryRuleRequestHeaderConditionParameters", + typeName: { + defaultValue: "DeliveryRuleUrlFilenameConditionParameters", isConstant: true, - serializedName: "@odata\\.type", - type: { - name: "String" - } - }, - selector: { - serializedName: "selector", + serializedName: "typeName", type: { name: "String" } @@ -4554,16 +5492,15 @@ export const RequestHeaderMatchConditionParameters: coreClient.CompositeMapper = } }; -export const RequestBodyMatchConditionParameters: coreClient.CompositeMapper = { +export const HttpVersionMatchConditionParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RequestBodyMatchConditionParameters", + className: "HttpVersionMatchConditionParameters", modelProperties: { - odataType: { - defaultValue: - "#Microsoft.Azure.Cdn.Models.DeliveryRuleRequestBodyConditionParameters", + typeName: { + defaultValue: "DeliveryRuleHttpVersionConditionParameters", isConstant: true, - serializedName: "@odata\\.type", + serializedName: "typeName", type: { name: "String" } @@ -4607,24 +5544,28 @@ export const RequestBodyMatchConditionParameters: coreClient.CompositeMapper = { } }; -export const RequestSchemeMatchConditionParameters: coreClient.CompositeMapper = { +export const CookiesMatchConditionParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RequestSchemeMatchConditionParameters", + className: "CookiesMatchConditionParameters", modelProperties: { - odataType: { - defaultValue: - "#Microsoft.Azure.Cdn.Models.DeliveryRuleRequestSchemeConditionParameters", + typeName: { + defaultValue: "DeliveryRuleCookiesConditionParameters", isConstant: true, - serializedName: "@odata\\.type", + serializedName: "typeName", + type: { + name: "String" + } + }, + selector: { + serializedName: "selector", type: { name: "String" } }, operator: { - defaultValue: "Equal", - isConstant: true, serializedName: "operator", + required: true, type: { name: "String" } @@ -4645,21 +5586,31 @@ export const RequestSchemeMatchConditionParameters: coreClient.CompositeMapper = } } } + }, + transforms: { + serializedName: "transforms", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } } } } }; -export const UrlPathMatchConditionParameters: coreClient.CompositeMapper = { +export const IsDeviceMatchConditionParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UrlPathMatchConditionParameters", + className: "IsDeviceMatchConditionParameters", modelProperties: { - odataType: { - defaultValue: - "#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlPathMatchConditionParameters", + typeName: { + defaultValue: "DeliveryRuleIsDeviceConditionParameters", isConstant: true, - serializedName: "@odata\\.type", + serializedName: "typeName", type: { name: "String" } @@ -4703,16 +5654,15 @@ export const UrlPathMatchConditionParameters: coreClient.CompositeMapper = { } }; -export const UrlFileExtensionMatchConditionParameters: coreClient.CompositeMapper = { +export const SocketAddrMatchConditionParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UrlFileExtensionMatchConditionParameters", + className: "SocketAddrMatchConditionParameters", modelProperties: { - odataType: { - defaultValue: - "#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlFileExtensionMatchConditionParameters", + typeName: { + defaultValue: "DeliveryRuleSocketAddrConditionParameters", isConstant: true, - serializedName: "@odata\\.type", + serializedName: "typeName", type: { name: "String" } @@ -4756,16 +5706,15 @@ export const UrlFileExtensionMatchConditionParameters: coreClient.CompositeMappe } }; -export const UrlFileNameMatchConditionParameters: coreClient.CompositeMapper = { +export const ClientPortMatchConditionParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UrlFileNameMatchConditionParameters", + className: "ClientPortMatchConditionParameters", modelProperties: { - odataType: { - defaultValue: - "#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlFilenameConditionParameters", + typeName: { + defaultValue: "DeliveryRuleClientPortConditionParameters", isConstant: true, - serializedName: "@odata\\.type", + serializedName: "typeName", type: { name: "String" } @@ -4809,16 +5758,15 @@ export const UrlFileNameMatchConditionParameters: coreClient.CompositeMapper = { } }; -export const HttpVersionMatchConditionParameters: coreClient.CompositeMapper = { +export const ServerPortMatchConditionParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "HttpVersionMatchConditionParameters", + className: "ServerPortMatchConditionParameters", modelProperties: { - odataType: { - defaultValue: - "#Microsoft.Azure.Cdn.Models.DeliveryRuleHttpVersionConditionParameters", + typeName: { + defaultValue: "DeliveryRuleServerPortConditionParameters", isConstant: true, - serializedName: "@odata\\.type", + serializedName: "typeName", type: { name: "String" } @@ -4846,27 +5794,31 @@ export const HttpVersionMatchConditionParameters: coreClient.CompositeMapper = { } } } + }, + transforms: { + serializedName: "transforms", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } } } } }; -export const CookiesMatchConditionParameters: coreClient.CompositeMapper = { +export const HostNameMatchConditionParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CookiesMatchConditionParameters", + className: "HostNameMatchConditionParameters", modelProperties: { - odataType: { - defaultValue: - "#Microsoft.Azure.Cdn.Models.DeliveryRuleCookiesConditionParameters", + typeName: { + defaultValue: "DeliveryRuleHostNameConditionParameters", isConstant: true, - serializedName: "@odata\\.type", - type: { - name: "String" - } - }, - selector: { - serializedName: "selector", + serializedName: "typeName", type: { name: "String" } @@ -4910,16 +5862,15 @@ export const CookiesMatchConditionParameters: coreClient.CompositeMapper = { } }; -export const IsDeviceMatchConditionParameters: coreClient.CompositeMapper = { +export const SslProtocolMatchConditionParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "IsDeviceMatchConditionParameters", + className: "SslProtocolMatchConditionParameters", modelProperties: { - odataType: { - defaultValue: - "#Microsoft.Azure.Cdn.Models.DeliveryRuleIsDeviceConditionParameters", + typeName: { + defaultValue: "DeliveryRuleSslProtocolConditionParameters", isConstant: true, - serializedName: "@odata\\.type", + serializedName: "typeName", type: { name: "String" } @@ -4968,11 +5919,10 @@ export const UrlRedirectActionParameters: coreClient.CompositeMapper = { name: "Composite", className: "UrlRedirectActionParameters", modelProperties: { - odataType: { - defaultValue: - "#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlRedirectActionParameters", + typeName: { + defaultValue: "DeliveryRuleUrlRedirectActionParameters", isConstant: true, - serializedName: "@odata\\.type", + serializedName: "typeName", type: { name: "String" } @@ -5023,11 +5973,10 @@ export const UrlSigningActionParameters: coreClient.CompositeMapper = { name: "Composite", className: "UrlSigningActionParameters", modelProperties: { - odataType: { - defaultValue: - "#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlSigningActionParameters", + typeName: { + defaultValue: "DeliveryRuleUrlSigningActionParameters", isConstant: true, - serializedName: "@odata\\.type", + serializedName: "typeName", type: { name: "String" } @@ -5082,11 +6031,10 @@ export const OriginGroupOverrideActionParameters: coreClient.CompositeMapper = { name: "Composite", className: "OriginGroupOverrideActionParameters", modelProperties: { - odataType: { - defaultValue: - "#Microsoft.Azure.Cdn.Models.DeliveryRuleOriginGroupOverrideActionParameters", + typeName: { + defaultValue: "DeliveryRuleOriginGroupOverrideActionParameters", isConstant: true, - serializedName: "@odata\\.type", + serializedName: "typeName", type: { name: "String" } @@ -5107,11 +6055,10 @@ export const UrlRewriteActionParameters: coreClient.CompositeMapper = { name: "Composite", className: "UrlRewriteActionParameters", modelProperties: { - odataType: { - defaultValue: - "#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlRewriteActionParameters", + typeName: { + defaultValue: "DeliveryRuleUrlRewriteActionParameters", isConstant: true, - serializedName: "@odata\\.type", + serializedName: "typeName", type: { name: "String" } @@ -5145,11 +6092,10 @@ export const HeaderActionParameters: coreClient.CompositeMapper = { name: "Composite", className: "HeaderActionParameters", modelProperties: { - odataType: { - defaultValue: - "#Microsoft.Azure.Cdn.Models.DeliveryRuleHeaderActionParameters", + typeName: { + defaultValue: "DeliveryRuleHeaderActionParameters", isConstant: true, - serializedName: "@odata\\.type", + serializedName: "typeName", type: { name: "String" } @@ -5183,11 +6129,10 @@ export const CacheExpirationActionParameters: coreClient.CompositeMapper = { name: "Composite", className: "CacheExpirationActionParameters", modelProperties: { - odataType: { - defaultValue: - "#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters", + typeName: { + defaultValue: "DeliveryRuleCacheExpirationActionParameters", isConstant: true, - serializedName: "@odata\\.type", + serializedName: "typeName", type: { name: "String" } @@ -5222,11 +6167,10 @@ export const CacheKeyQueryStringActionParameters: coreClient.CompositeMapper = { name: "Composite", className: "CacheKeyQueryStringActionParameters", modelProperties: { - odataType: { - defaultValue: - "#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheKeyQueryStringBehaviorActionParameters", + typeName: { + defaultValue: "DeliveryRuleCacheKeyQueryStringBehaviorActionParameters", isConstant: true, - serializedName: "@odata\\.type", + serializedName: "typeName", type: { name: "String" } @@ -5249,16 +6193,107 @@ export const CacheKeyQueryStringActionParameters: coreClient.CompositeMapper = { } }; +export const RouteConfigurationOverrideActionParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RouteConfigurationOverrideActionParameters", + modelProperties: { + typeName: { + defaultValue: "DeliveryRuleRouteConfigurationOverrideActionParameters", + isConstant: true, + serializedName: "typeName", + type: { + name: "String" + } + }, + originGroupOverride: { + serializedName: "originGroupOverride", + type: { + name: "Composite", + className: "OriginGroupOverride" + } + }, + cacheConfiguration: { + serializedName: "cacheConfiguration", + type: { + name: "Composite", + className: "CacheConfiguration" + } + } + } + } +}; + +export const OriginGroupOverride: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OriginGroupOverride", + modelProperties: { + originGroup: { + serializedName: "originGroup", + type: { + name: "Composite", + className: "ResourceReference" + } + }, + forwardingProtocol: { + serializedName: "forwardingProtocol", + type: { + name: "String" + } + } + } + } +}; + +export const CacheConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CacheConfiguration", + modelProperties: { + queryStringCachingBehavior: { + serializedName: "queryStringCachingBehavior", + type: { + 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: "String" + } + } + } + } +}; + export const CdnCertificateSourceParameters: coreClient.CompositeMapper = { type: { name: "Composite", className: "CdnCertificateSourceParameters", modelProperties: { - odataType: { - defaultValue: - "#Microsoft.Azure.Cdn.Models.CdnCertificateSourceParameters", + typeName: { + defaultValue: "CdnCertificateSourceParameters", isConstant: true, - serializedName: "@odata\\.type", + serializedName: "typeName", type: { name: "String" } @@ -5279,11 +6314,10 @@ export const KeyVaultCertificateSourceParameters: coreClient.CompositeMapper = { name: "Composite", className: "KeyVaultCertificateSourceParameters", modelProperties: { - odataType: { - defaultValue: - "#Microsoft.Azure.Cdn.Models.KeyVaultCertificateSourceParameters", + typeName: { + defaultValue: "KeyVaultCertificateSourceParameters", isConstant: true, - serializedName: "@odata\\.type", + serializedName: "typeName", type: { name: "String" } @@ -5340,138 +6374,181 @@ export const KeyVaultCertificateSourceParameters: coreClient.CompositeMapper = { } }; -export const Certificate: coreClient.CompositeMapper = { +export const AFDDomainProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Certificate", + className: "AFDDomainProperties", modelProperties: { - subject: { - serializedName: "subject", + ...AFDDomainUpdatePropertiesParameters.type.modelProperties, + ...AFDStateProperties.type.modelProperties, + domainValidationState: { + serializedName: "domainValidationState", + readOnly: true, type: { name: "String" } }, - expirationDate: { - serializedName: "expirationDate", + hostName: { + serializedName: "hostName", + required: true, type: { name: "String" } }, - thumbprint: { - serializedName: "thumbprint", + validationProperties: { + serializedName: "validationProperties", type: { - name: "String" + name: "Composite", + className: "DomainValidationProperties" } } } } }; -export const SecurityPolicyWebApplicationFirewallAssociation: coreClient.CompositeMapper = { +export const AFDEndpointProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecurityPolicyWebApplicationFirewallAssociation", + className: "AFDEndpointProperties", modelProperties: { - domains: { - serializedName: "domains", + ...AFDEndpointPropertiesUpdateParameters.type.modelProperties, + ...AFDStateProperties.type.modelProperties, + hostName: { + serializedName: "hostName", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ResourceReference" - } - } + name: "String" } }, - patternsToMatch: { - serializedName: "patternsToMatch", + autoGeneratedDomainNameLabelScope: { + serializedName: "autoGeneratedDomainNameLabelScope", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" + } + } + } + } +}; + +export const AFDOriginGroupProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AFDOriginGroupProperties", + modelProperties: { + ...AFDOriginGroupUpdatePropertiesParameters.type.modelProperties, + ...AFDStateProperties.type.modelProperties + } + } +}; + +export const AFDOriginProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AFDOriginProperties", + modelProperties: { + ...AFDOriginUpdatePropertiesParameters.type.modelProperties, + ...AFDStateProperties.type.modelProperties + } + } +}; + +export const RouteProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RouteProperties", + modelProperties: { + ...RouteUpdatePropertiesParameters.type.modelProperties, + ...AFDStateProperties.type.modelProperties + } + } +}; + +export const RuleSetProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RuleSetProperties", + modelProperties: { + ...AFDStateProperties.type.modelProperties, + profileName: { + serializedName: "profileName", + readOnly: true, + type: { + name: "String" } } } } }; -export const CompressionSettings: coreClient.CompositeMapper = { +export const RuleProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CompressionSettings", + className: "RuleProperties", modelProperties: { - contentTypesToCompress: { - serializedName: "contentTypesToCompress", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - isCompressionEnabled: { - serializedName: "isCompressionEnabled", - type: { - name: "Boolean" - } - } + ...RuleUpdatePropertiesParameters.type.modelProperties, + ...AFDStateProperties.type.modelProperties } } }; -export const SharedPrivateLinkResourceProperties: coreClient.CompositeMapper = { +export const SecurityPolicyProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SharedPrivateLinkResourceProperties", + className: "SecurityPolicyProperties", modelProperties: { - privateLink: { - serializedName: "privateLink", - type: { - name: "Composite", - className: "ResourceReference" - } - }, - privateLinkLocation: { - serializedName: "privateLinkLocation", + ...AFDStateProperties.type.modelProperties, + profileName: { + serializedName: "profileName", + readOnly: true, type: { name: "String" } }, - groupId: { - serializedName: "groupId", + parameters: { + serializedName: "parameters", type: { - name: "String" + name: "Composite", + className: "SecurityPolicyPropertiesParameters" } - }, - requestMessage: { - serializedName: "requestMessage", + } + } + } +}; + +export const SecretProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SecretProperties", + modelProperties: { + ...AFDStateProperties.type.modelProperties, + profileName: { + serializedName: "profileName", + readOnly: true, type: { name: "String" } }, - status: { - serializedName: "status", + parameters: { + serializedName: "parameters", type: { - name: "Enum", - allowedValues: [ - "Pending", - "Approved", - "Rejected", - "Disconnected", - "Timeout" - ] + name: "Composite", + className: "SecretParameters" } } } } }; +export const ProxyResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ProxyResource", + modelProperties: { + ...Resource.type.modelProperties + } + } +}; + export const TrackedResource: coreClient.CompositeMapper = { type: { name: "Composite", @@ -5496,16 +6573,6 @@ export const TrackedResource: coreClient.CompositeMapper = { } }; -export const ProxyResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ProxyResource", - modelProperties: { - ...Resource.type.modelProperties - } - } -}; - export const ManagedRuleSetDefinition: coreClient.CompositeMapper = { type: { name: "Composite", @@ -5557,62 +6624,6 @@ export const ManagedRuleSetDefinition: coreClient.CompositeMapper = { } }; -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" - } - } - } - }, - resourceState: { - serializedName: "resourceState", - readOnly: true, - type: { - name: "String" - } - }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - export const DeliveryRuleRemoteAddressCondition: coreClient.CompositeMapper = { serializedName: "RemoteAddress", type: { @@ -5722,7 +6733,112 @@ export const DeliveryRuleRequestHeaderCondition: coreClient.CompositeMapper = { serializedName: "RequestHeader", type: { name: "Composite", - className: "DeliveryRuleRequestHeaderCondition", + className: "DeliveryRuleRequestHeaderCondition", + uberParent: "DeliveryRuleCondition", + polymorphicDiscriminator: + DeliveryRuleCondition.type.polymorphicDiscriminator, + modelProperties: { + ...DeliveryRuleCondition.type.modelProperties, + parameters: { + serializedName: "parameters", + type: { + name: "Composite", + className: "RequestHeaderMatchConditionParameters" + } + } + } + } +}; + +export const DeliveryRuleRequestBodyCondition: coreClient.CompositeMapper = { + serializedName: "RequestBody", + type: { + name: "Composite", + className: "DeliveryRuleRequestBodyCondition", + uberParent: "DeliveryRuleCondition", + polymorphicDiscriminator: + DeliveryRuleCondition.type.polymorphicDiscriminator, + modelProperties: { + ...DeliveryRuleCondition.type.modelProperties, + parameters: { + serializedName: "parameters", + type: { + name: "Composite", + className: "RequestBodyMatchConditionParameters" + } + } + } + } +}; + +export const DeliveryRuleRequestSchemeCondition: coreClient.CompositeMapper = { + serializedName: "RequestScheme", + type: { + name: "Composite", + className: "DeliveryRuleRequestSchemeCondition", + uberParent: "DeliveryRuleCondition", + polymorphicDiscriminator: + DeliveryRuleCondition.type.polymorphicDiscriminator, + modelProperties: { + ...DeliveryRuleCondition.type.modelProperties, + parameters: { + serializedName: "parameters", + type: { + name: "Composite", + className: "RequestSchemeMatchConditionParameters" + } + } + } + } +}; + +export const DeliveryRuleUrlPathCondition: coreClient.CompositeMapper = { + serializedName: "UrlPath", + type: { + name: "Composite", + className: "DeliveryRuleUrlPathCondition", + uberParent: "DeliveryRuleCondition", + polymorphicDiscriminator: + DeliveryRuleCondition.type.polymorphicDiscriminator, + modelProperties: { + ...DeliveryRuleCondition.type.modelProperties, + parameters: { + serializedName: "parameters", + type: { + name: "Composite", + className: "UrlPathMatchConditionParameters" + } + } + } + } +}; + +export const DeliveryRuleUrlFileExtensionCondition: coreClient.CompositeMapper = { + serializedName: "UrlFileExtension", + type: { + name: "Composite", + className: "DeliveryRuleUrlFileExtensionCondition", + uberParent: "DeliveryRuleCondition", + polymorphicDiscriminator: + DeliveryRuleCondition.type.polymorphicDiscriminator, + modelProperties: { + ...DeliveryRuleCondition.type.modelProperties, + parameters: { + serializedName: "parameters", + type: { + name: "Composite", + className: "UrlFileExtensionMatchConditionParameters" + } + } + } + } +}; + +export const DeliveryRuleUrlFileNameCondition: coreClient.CompositeMapper = { + serializedName: "UrlFileName", + type: { + name: "Composite", + className: "DeliveryRuleUrlFileNameCondition", uberParent: "DeliveryRuleCondition", polymorphicDiscriminator: DeliveryRuleCondition.type.polymorphicDiscriminator, @@ -5732,18 +6848,18 @@ export const DeliveryRuleRequestHeaderCondition: coreClient.CompositeMapper = { serializedName: "parameters", type: { name: "Composite", - className: "RequestHeaderMatchConditionParameters" + className: "UrlFileNameMatchConditionParameters" } } } } }; -export const DeliveryRuleRequestBodyCondition: coreClient.CompositeMapper = { - serializedName: "RequestBody", +export const DeliveryRuleHttpVersionCondition: coreClient.CompositeMapper = { + serializedName: "HttpVersion", type: { name: "Composite", - className: "DeliveryRuleRequestBodyCondition", + className: "DeliveryRuleHttpVersionCondition", uberParent: "DeliveryRuleCondition", polymorphicDiscriminator: DeliveryRuleCondition.type.polymorphicDiscriminator, @@ -5753,18 +6869,18 @@ export const DeliveryRuleRequestBodyCondition: coreClient.CompositeMapper = { serializedName: "parameters", type: { name: "Composite", - className: "RequestBodyMatchConditionParameters" + className: "HttpVersionMatchConditionParameters" } } } } }; -export const DeliveryRuleRequestSchemeCondition: coreClient.CompositeMapper = { - serializedName: "RequestScheme", +export const DeliveryRuleCookiesCondition: coreClient.CompositeMapper = { + serializedName: "Cookies", type: { name: "Composite", - className: "DeliveryRuleRequestSchemeCondition", + className: "DeliveryRuleCookiesCondition", uberParent: "DeliveryRuleCondition", polymorphicDiscriminator: DeliveryRuleCondition.type.polymorphicDiscriminator, @@ -5774,18 +6890,18 @@ export const DeliveryRuleRequestSchemeCondition: coreClient.CompositeMapper = { serializedName: "parameters", type: { name: "Composite", - className: "RequestSchemeMatchConditionParameters" + className: "CookiesMatchConditionParameters" } } } } }; -export const DeliveryRuleUrlPathCondition: coreClient.CompositeMapper = { - serializedName: "UrlPath", +export const DeliveryRuleIsDeviceCondition: coreClient.CompositeMapper = { + serializedName: "IsDevice", type: { name: "Composite", - className: "DeliveryRuleUrlPathCondition", + className: "DeliveryRuleIsDeviceCondition", uberParent: "DeliveryRuleCondition", polymorphicDiscriminator: DeliveryRuleCondition.type.polymorphicDiscriminator, @@ -5795,18 +6911,18 @@ export const DeliveryRuleUrlPathCondition: coreClient.CompositeMapper = { serializedName: "parameters", type: { name: "Composite", - className: "UrlPathMatchConditionParameters" + className: "IsDeviceMatchConditionParameters" } } } } }; -export const DeliveryRuleUrlFileExtensionCondition: coreClient.CompositeMapper = { - serializedName: "UrlFileExtension", +export const DeliveryRuleSocketAddrCondition: coreClient.CompositeMapper = { + serializedName: "SocketAddr", type: { name: "Composite", - className: "DeliveryRuleUrlFileExtensionCondition", + className: "DeliveryRuleSocketAddrCondition", uberParent: "DeliveryRuleCondition", polymorphicDiscriminator: DeliveryRuleCondition.type.polymorphicDiscriminator, @@ -5816,18 +6932,18 @@ export const DeliveryRuleUrlFileExtensionCondition: coreClient.CompositeMapper = serializedName: "parameters", type: { name: "Composite", - className: "UrlFileExtensionMatchConditionParameters" + className: "SocketAddrMatchConditionParameters" } } } } }; -export const DeliveryRuleUrlFileNameCondition: coreClient.CompositeMapper = { - serializedName: "UrlFileName", +export const DeliveryRuleClientPortCondition: coreClient.CompositeMapper = { + serializedName: "ClientPort", type: { name: "Composite", - className: "DeliveryRuleUrlFileNameCondition", + className: "DeliveryRuleClientPortCondition", uberParent: "DeliveryRuleCondition", polymorphicDiscriminator: DeliveryRuleCondition.type.polymorphicDiscriminator, @@ -5837,18 +6953,18 @@ export const DeliveryRuleUrlFileNameCondition: coreClient.CompositeMapper = { serializedName: "parameters", type: { name: "Composite", - className: "UrlFileNameMatchConditionParameters" + className: "ClientPortMatchConditionParameters" } } } } }; -export const DeliveryRuleHttpVersionCondition: coreClient.CompositeMapper = { - serializedName: "HttpVersion", +export const DeliveryRuleServerPortCondition: coreClient.CompositeMapper = { + serializedName: "ServerPort", type: { name: "Composite", - className: "DeliveryRuleHttpVersionCondition", + className: "DeliveryRuleServerPortCondition", uberParent: "DeliveryRuleCondition", polymorphicDiscriminator: DeliveryRuleCondition.type.polymorphicDiscriminator, @@ -5858,18 +6974,18 @@ export const DeliveryRuleHttpVersionCondition: coreClient.CompositeMapper = { serializedName: "parameters", type: { name: "Composite", - className: "HttpVersionMatchConditionParameters" + className: "ServerPortMatchConditionParameters" } } } } }; -export const DeliveryRuleCookiesCondition: coreClient.CompositeMapper = { - serializedName: "Cookies", +export const DeliveryRuleHostNameCondition: coreClient.CompositeMapper = { + serializedName: "HostName", type: { name: "Composite", - className: "DeliveryRuleCookiesCondition", + className: "DeliveryRuleHostNameCondition", uberParent: "DeliveryRuleCondition", polymorphicDiscriminator: DeliveryRuleCondition.type.polymorphicDiscriminator, @@ -5879,18 +6995,18 @@ export const DeliveryRuleCookiesCondition: coreClient.CompositeMapper = { serializedName: "parameters", type: { name: "Composite", - className: "CookiesMatchConditionParameters" + className: "HostNameMatchConditionParameters" } } } } }; -export const DeliveryRuleIsDeviceCondition: coreClient.CompositeMapper = { - serializedName: "IsDevice", +export const DeliveryRuleSslProtocolCondition: coreClient.CompositeMapper = { + serializedName: "SslProtocol", type: { name: "Composite", - className: "DeliveryRuleIsDeviceCondition", + className: "DeliveryRuleSslProtocolCondition", uberParent: "DeliveryRuleCondition", polymorphicDiscriminator: DeliveryRuleCondition.type.polymorphicDiscriminator, @@ -5900,7 +7016,7 @@ export const DeliveryRuleIsDeviceCondition: coreClient.CompositeMapper = { serializedName: "parameters", type: { name: "Composite", - className: "IsDeviceMatchConditionParameters" + className: "SslProtocolMatchConditionParameters" } } } @@ -6075,329 +7191,417 @@ export const DeliveryRuleCacheKeyQueryStringAction: coreClient.CompositeMapper = } }; -export const OriginProperties: coreClient.CompositeMapper = { +export const DeliveryRuleRouteConfigurationOverrideAction: coreClient.CompositeMapper = { + serializedName: "RouteConfigurationOverride", type: { name: "Composite", - className: "OriginProperties", + className: "DeliveryRuleRouteConfigurationOverrideAction", + uberParent: "DeliveryRuleActionAutoGenerated", + polymorphicDiscriminator: + DeliveryRuleActionAutoGenerated.type.polymorphicDiscriminator, 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, + ...DeliveryRuleActionAutoGenerated.type.modelProperties, + parameters: { + serializedName: "parameters", type: { - name: "String" + name: "Composite", + className: "RouteConfigurationOverrideActionParameters" } } } } }; -export const OriginGroupProperties: coreClient.CompositeMapper = { +export const SecurityPolicyWebApplicationFirewallParameters: coreClient.CompositeMapper = { + serializedName: "WebApplicationFirewall", type: { name: "Composite", - className: "OriginGroupProperties", + className: "SecurityPolicyWebApplicationFirewallParameters", + uberParent: "SecurityPolicyPropertiesParameters", + polymorphicDiscriminator: + SecurityPolicyPropertiesParameters.type.polymorphicDiscriminator, modelProperties: { - ...OriginGroupUpdatePropertiesParameters.type.modelProperties, - resourceState: { - serializedName: "resourceState", - readOnly: true, + ...SecurityPolicyPropertiesParameters.type.modelProperties, + wafPolicy: { + serializedName: "wafPolicy", type: { - name: "String" + name: "Composite", + className: "ResourceReference" } }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, + associations: { + serializedName: "associations", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SecurityPolicyWebApplicationFirewallAssociation" + } + } } } } } }; -export const CdnManagedHttpsParameters: coreClient.CompositeMapper = { - serializedName: "Cdn", +export const UrlSigningKeyParameters: coreClient.CompositeMapper = { + serializedName: "UrlSigningKey", type: { name: "Composite", - className: "CdnManagedHttpsParameters", - uberParent: "CustomDomainHttpsParameters", - polymorphicDiscriminator: - CustomDomainHttpsParameters.type.polymorphicDiscriminator, + className: "UrlSigningKeyParameters", + uberParent: "SecretParameters", + polymorphicDiscriminator: SecretParameters.type.polymorphicDiscriminator, modelProperties: { - ...CustomDomainHttpsParameters.type.modelProperties, - certificateSourceParameters: { - serializedName: "certificateSourceParameters", + ...SecretParameters.type.modelProperties, + keyId: { + serializedName: "keyId", + required: true, + type: { + name: "String" + } + }, + secretSource: { + serializedName: "secretSource", type: { name: "Composite", - className: "CdnCertificateSourceParameters" + className: "ResourceReference" + } + }, + secretVersion: { + serializedName: "secretVersion", + type: { + name: "String" } } } } }; -export const UserManagedHttpsParameters: coreClient.CompositeMapper = { - serializedName: "AzureKeyVault", +export const ManagedCertificateParameters: coreClient.CompositeMapper = { + serializedName: "ManagedCertificate", type: { name: "Composite", - className: "UserManagedHttpsParameters", - uberParent: "CustomDomainHttpsParameters", - polymorphicDiscriminator: - CustomDomainHttpsParameters.type.polymorphicDiscriminator, + className: "ManagedCertificateParameters", + uberParent: "SecretParameters", + polymorphicDiscriminator: SecretParameters.type.polymorphicDiscriminator, modelProperties: { - ...CustomDomainHttpsParameters.type.modelProperties, - certificateSourceParameters: { - serializedName: "certificateSourceParameters", + ...SecretParameters.type.modelProperties, + subject: { + serializedName: "subject", + readOnly: true, type: { - name: "Composite", - className: "KeyVaultCertificateSourceParameters" + name: "String" + } + }, + expirationDate: { + serializedName: "expirationDate", + readOnly: true, + type: { + name: "String" } } } } }; -export const AFDDomainProperties: coreClient.CompositeMapper = { +export const CustomerCertificateParameters: coreClient.CompositeMapper = { + serializedName: "CustomerCertificate", type: { name: "Composite", - className: "AFDDomainProperties", + className: "CustomerCertificateParameters", + uberParent: "SecretParameters", + polymorphicDiscriminator: SecretParameters.type.polymorphicDiscriminator, modelProperties: { - ...AFDDomainUpdatePropertiesParameters.type.modelProperties, - ...AFDStateProperties.type.modelProperties, - domainValidationState: { - serializedName: "domainValidationState", - readOnly: true, + ...SecretParameters.type.modelProperties, + secretSource: { + serializedName: "secretSource", + type: { + name: "Composite", + className: "ResourceReference" + } + }, + secretVersion: { + serializedName: "secretVersion", type: { name: "String" } }, - hostName: { - serializedName: "hostName", - required: true, + useLatestVersion: { + serializedName: "useLatestVersion", + type: { + name: "Boolean" + } + }, + subject: { + serializedName: "subject", + readOnly: true, type: { name: "String" } }, - validationProperties: { - serializedName: "validationProperties", + expirationDate: { + serializedName: "expirationDate", + readOnly: true, type: { - name: "Composite", - className: "DomainValidationProperties" + name: "String" } - } - } - } -}; - -export const AFDEndpointProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AFDEndpointProperties", - modelProperties: { - ...AFDEndpointPropertiesUpdateParameters.type.modelProperties, - ...AFDStateProperties.type.modelProperties, - hostName: { - serializedName: "hostName", + }, + certificateAuthority: { + serializedName: "certificateAuthority", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const AFDOriginGroupProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AFDOriginGroupProperties", - modelProperties: { - ...AFDOriginGroupUpdatePropertiesParameters.type.modelProperties, - ...AFDStateProperties.type.modelProperties - } - } -}; - -export const AFDOriginProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AFDOriginProperties", - modelProperties: { - ...AFDOriginUpdatePropertiesParameters.type.modelProperties, - ...AFDStateProperties.type.modelProperties + }, + subjectAlternativeNames: { + serializedName: "subjectAlternativeNames", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + thumbprint: { + serializedName: "thumbprint", + readOnly: true, + type: { + name: "String" + } + } } } }; -export const RouteProperties: coreClient.CompositeMapper = { +export const AzureFirstPartyManagedCertificateParameters: coreClient.CompositeMapper = { + serializedName: "AzureFirstPartyManagedCertificate", type: { name: "Composite", - className: "RouteProperties", + className: "AzureFirstPartyManagedCertificateParameters", + uberParent: "SecretParameters", + polymorphicDiscriminator: SecretParameters.type.polymorphicDiscriminator, modelProperties: { - ...RouteUpdatePropertiesParameters.type.modelProperties, - ...AFDStateProperties.type.modelProperties + ...SecretParameters.type.modelProperties } } }; -export const RuleSetProperties: coreClient.CompositeMapper = { +export const CdnManagedHttpsParameters: coreClient.CompositeMapper = { + serializedName: "Cdn", type: { name: "Composite", - className: "RuleSetProperties", + className: "CdnManagedHttpsParameters", + uberParent: "CustomDomainHttpsParameters", + polymorphicDiscriminator: + CustomDomainHttpsParameters.type.polymorphicDiscriminator, modelProperties: { - ...AFDStateProperties.type.modelProperties + ...CustomDomainHttpsParameters.type.modelProperties, + certificateSourceParameters: { + serializedName: "certificateSourceParameters", + type: { + name: "Composite", + className: "CdnCertificateSourceParameters" + } + } } } }; -export const RuleProperties: coreClient.CompositeMapper = { +export const UserManagedHttpsParameters: coreClient.CompositeMapper = { + serializedName: "AzureKeyVault", type: { name: "Composite", - className: "RuleProperties", + className: "UserManagedHttpsParameters", + uberParent: "CustomDomainHttpsParameters", + polymorphicDiscriminator: + CustomDomainHttpsParameters.type.polymorphicDiscriminator, modelProperties: { - ...RuleUpdatePropertiesParameters.type.modelProperties, - ...AFDStateProperties.type.modelProperties + ...CustomDomainHttpsParameters.type.modelProperties, + certificateSourceParameters: { + serializedName: "certificateSourceParameters", + type: { + name: "Composite", + className: "KeyVaultCertificateSourceParameters" + } + } } } }; -export const SecurityPolicyProperties: coreClient.CompositeMapper = { +export const EndpointProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecurityPolicyProperties", + className: "EndpointProperties", modelProperties: { - ...AFDStateProperties.type.modelProperties, - parameters: { - serializedName: "parameters", + ...EndpointPropertiesUpdateParameters.type.modelProperties, + hostName: { + serializedName: "hostName", + readOnly: true, type: { - name: "Composite", - className: "SecurityPolicyParameters" + 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 SecretProperties: coreClient.CompositeMapper = { +export const OriginProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecretProperties", + className: "OriginProperties", modelProperties: { - ...AFDStateProperties.type.modelProperties, - parameters: { - serializedName: "parameters", + ...OriginUpdatePropertiesParameters.type.modelProperties, + resourceState: { + serializedName: "resourceState", + readOnly: true, type: { - name: "Composite", - className: "SecretParameters" + name: "String" + } + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + privateEndpointStatus: { + serializedName: "privateEndpointStatus", + readOnly: true, + type: { + name: "String" } } } } }; -export const SecurityPolicyWebApplicationFirewallParameters: coreClient.CompositeMapper = { - serializedName: "WebApplicationFirewall", +export const OriginGroupProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecurityPolicyWebApplicationFirewallParameters", - uberParent: "SecurityPolicyParameters", - polymorphicDiscriminator: - SecurityPolicyParameters.type.polymorphicDiscriminator, + className: "OriginGroupProperties", modelProperties: { - ...SecurityPolicyParameters.type.modelProperties, - wafPolicy: { - serializedName: "wafPolicy", + ...OriginGroupUpdatePropertiesParameters.type.modelProperties, + resourceState: { + serializedName: "resourceState", + readOnly: true, type: { - name: "Composite", - className: "ResourceReference" + name: "String" } }, - associations: { - serializedName: "associations", + provisioningState: { + serializedName: "provisioningState", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SecurityPolicyWebApplicationFirewallAssociation" - } - } + name: "String" } } } } }; -export const UrlSigningKeyParameters: coreClient.CompositeMapper = { - serializedName: "UrlSigningKey", +export const RateLimitRule: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UrlSigningKeyParameters", - uberParent: "SecretParameters", - polymorphicDiscriminator: SecretParameters.type.polymorphicDiscriminator, + className: "RateLimitRule", modelProperties: { - ...SecretParameters.type.modelProperties, - keyId: { - serializedName: "keyId", + ...CustomRule.type.modelProperties, + rateLimitThreshold: { + constraints: { + InclusiveMinimum: 0 + }, + serializedName: "rateLimitThreshold", required: true, type: { - name: "String" - } - }, - secretSource: { - serializedName: "secretSource", - type: { - name: "Composite", - className: "ResourceReference" + name: "Number" } }, - secretVersion: { - serializedName: "secretVersion", + rateLimitDurationInMinutes: { + constraints: { + InclusiveMaximum: 60, + InclusiveMinimum: 0 + }, + serializedName: "rateLimitDurationInMinutes", + required: true, type: { - name: "String" + name: "Number" } } } } }; -export const ManagedCertificateParameters: coreClient.CompositeMapper = { - serializedName: "ManagedCertificate", +export const ManagedCertificate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedCertificateParameters", - uberParent: "SecretParameters", - polymorphicDiscriminator: SecretParameters.type.polymorphicDiscriminator, + className: "ManagedCertificate", modelProperties: { - ...SecretParameters.type.modelProperties + ...Certificate.type.modelProperties } } }; -export const CustomerCertificateParameters: coreClient.CompositeMapper = { - serializedName: "CustomerCertificate", +export const CustomerCertificate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CustomerCertificateParameters", - uberParent: "SecretParameters", - polymorphicDiscriminator: SecretParameters.type.polymorphicDiscriminator, + className: "CustomerCertificate", modelProperties: { - ...SecretParameters.type.modelProperties, + ...Certificate.type.modelProperties, secretSource: { serializedName: "secretSource", type: { @@ -6413,6 +7617,7 @@ export const CustomerCertificateParameters: coreClient.CompositeMapper = { }, certificateAuthority: { serializedName: "certificateAuthority", + readOnly: true, type: { name: "String" } @@ -6424,123 +7629,149 @@ export const CustomerCertificateParameters: coreClient.CompositeMapper = { } }, subjectAlternativeNames: { - serializedName: "subjectAlternativeNames", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const RateLimitRule: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RateLimitRule", - modelProperties: { - ...CustomRule.type.modelProperties, - rateLimitThreshold: { - constraints: { - InclusiveMinimum: 0 - }, - serializedName: "rateLimitThreshold", - required: true, + serializedName: "subjectAlternativeNames", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - rateLimitDurationInMinutes: { - constraints: { - InclusiveMaximum: 60, - InclusiveMinimum: 0 - }, - serializedName: "rateLimitDurationInMinutes", - required: true, + thumbprint: { + serializedName: "thumbprint", + readOnly: true, type: { - name: "Number" + name: "String" } } } } }; -export const ManagedCertificate: coreClient.CompositeMapper = { +export const AzureFirstPartyManagedCertificate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedCertificate", + className: "AzureFirstPartyManagedCertificate", modelProperties: { ...Certificate.type.modelProperties } } }; -export const CustomerCertificate: coreClient.CompositeMapper = { +export const AFDDomain: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CustomerCertificate", + className: "AFDDomain", modelProperties: { - ...Certificate.type.modelProperties, - version: { - serializedName: "version", + ...ProxyResource.type.modelProperties, + profileName: { + serializedName: "properties.profileName", + readOnly: true, type: { name: "String" } }, - certificateAuthority: { - serializedName: "certificateAuthority", + tlsSettings: { + serializedName: "properties.tlsSettings", + type: { + name: "Composite", + className: "AFDDomainHttpsParameters" + } + }, + azureDnsZone: { + serializedName: "properties.azureDnsZone", + type: { + name: "Composite", + className: "ResourceReference" + } + }, + preValidatedCustomDomainResourceId: { + serializedName: "properties.preValidatedCustomDomainResourceId", + type: { + name: "Composite", + className: "ResourceReference" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { name: "String" } }, - certificateUrl: { - serializedName: "certificateUrl", - required: true, + deploymentStatus: { + serializedName: "properties.deploymentStatus", + readOnly: true, type: { name: "String" } }, - useLatestVersion: { - serializedName: "useLatestVersion", + domainValidationState: { + serializedName: "properties.domainValidationState", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - subjectAlternativeNames: { - serializedName: "subjectAlternativeNames", + hostName: { + serializedName: "properties.hostName", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" + } + }, + validationProperties: { + serializedName: "properties.validationProperties", + type: { + name: "Composite", + className: "DomainValidationProperties" } } } } }; -export const Profile: coreClient.CompositeMapper = { +export const AFDOriginGroup: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Profile", + className: "AFDOriginGroup", modelProperties: { - ...TrackedResource.type.modelProperties, - sku: { - serializedName: "sku", + ...ProxyResource.type.modelProperties, + profileName: { + serializedName: "properties.profileName", + readOnly: true, + type: { + name: "String" + } + }, + loadBalancingSettings: { + serializedName: "properties.loadBalancingSettings", type: { name: "Composite", - className: "Sku" + className: "LoadBalancingSettingsParameters" } }, - resourceState: { - serializedName: "properties.resourceState", - readOnly: true, + healthProbeSettings: { + serializedName: "properties.healthProbeSettings", + type: { + name: "Composite", + className: "HealthProbeParameters" + } + }, + trafficRestorationTimeToHealedOrNewEndpointsInMinutes: { + constraints: { + InclusiveMaximum: 50, + InclusiveMinimum: 0 + }, + serializedName: + "properties.trafficRestorationTimeToHealedOrNewEndpointsInMinutes", + type: { + name: "Number" + } + }, + sessionAffinityState: { + serializedName: "properties.sessionAffinityState", type: { name: "String" } @@ -6552,8 +7783,8 @@ export const Profile: coreClient.CompositeMapper = { name: "String" } }, - frontdoorId: { - serializedName: "properties.frontdoorId", + deploymentStatus: { + serializedName: "properties.deploymentStatus", readOnly: true, type: { name: "String" @@ -6563,27 +7794,50 @@ export const Profile: coreClient.CompositeMapper = { } }; -export const Endpoint: coreClient.CompositeMapper = { +export const AFDOrigin: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Endpoint", + className: "AFDOrigin", modelProperties: { - ...TrackedResource.type.modelProperties, - originPath: { - serializedName: "properties.originPath", + ...ProxyResource.type.modelProperties, + originGroupName: { + serializedName: "properties.originGroupName", + readOnly: true, type: { name: "String" } }, - contentTypesToCompress: { - serializedName: "properties.contentTypesToCompress", + azureOrigin: { + serializedName: "properties.azureOrigin", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + 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: { @@ -6592,128 +7846,261 @@ export const Endpoint: coreClient.CompositeMapper = { name: "String" } }, - isCompressionEnabled: { - serializedName: "properties.isCompressionEnabled", + priority: { + constraints: { + InclusiveMaximum: 5, + InclusiveMinimum: 1 + }, + serializedName: "properties.priority", type: { - name: "Boolean" + name: "Number" } }, - isHttpAllowed: { - serializedName: "properties.isHttpAllowed", + weight: { + constraints: { + InclusiveMaximum: 1000, + InclusiveMinimum: 1 + }, + serializedName: "properties.weight", type: { - name: "Boolean" + name: "Number" } }, - isHttpsAllowed: { - serializedName: "properties.isHttpsAllowed", + sharedPrivateLinkResource: { + serializedName: "properties.sharedPrivateLinkResource", + type: { + name: "Composite", + className: "SharedPrivateLinkResourceProperties" + } + }, + enabledState: { + serializedName: "properties.enabledState", + type: { + name: "String" + } + }, + enforceCertificateNameCheck: { + defaultValue: true, + serializedName: "properties.enforceCertificateNameCheck", type: { name: "Boolean" } }, - queryStringCachingBehavior: { - serializedName: "properties.queryStringCachingBehavior", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { - name: "Enum", - allowedValues: [ - "IgnoreQueryString", - "BypassCaching", - "UseQueryString", - "NotSet" - ] + name: "String" } }, - optimizationType: { - serializedName: "properties.optimizationType", + deploymentStatus: { + serializedName: "properties.deploymentStatus", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const Route: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Route", + modelProperties: { + ...ProxyResource.type.modelProperties, + endpointName: { + serializedName: "properties.endpointName", + readOnly: true, type: { name: "String" } }, - probePath: { - serializedName: "properties.probePath", + customDomains: { + serializedName: "properties.customDomains", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ActivatedResourceReference" + } + } + } + }, + originGroup: { + serializedName: "properties.originGroup", + type: { + name: "Composite", + className: "ResourceReference" + } + }, + originPath: { + serializedName: "properties.originPath", type: { name: "String" } }, - geoFilters: { - serializedName: "properties.geoFilters", + ruleSets: { + serializedName: "properties.ruleSets", type: { name: "Sequence", element: { type: { name: "Composite", - className: "GeoFilter" + className: "ResourceReference" } } } }, - defaultOriginGroup: { - serializedName: "properties.defaultOriginGroup", + supportedProtocols: { + serializedName: "properties.supportedProtocols", type: { - name: "Composite", - className: "ResourceReference" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - urlSigningKeys: { - serializedName: "properties.urlSigningKeys", + patternsToMatch: { + serializedName: "properties.patternsToMatch", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "UrlSigningKey" + name: "String" } } } }, - deliveryPolicy: { - serializedName: "properties.deliveryPolicy", + cacheConfiguration: { + serializedName: "properties.cacheConfiguration", type: { name: "Composite", - className: "EndpointPropertiesUpdateParametersDeliveryPolicy" + className: "AfdRouteCacheConfiguration" } }, - webApplicationFirewallPolicyLink: { - serializedName: "properties.webApplicationFirewallPolicyLink", + forwardingProtocol: { + serializedName: "properties.forwardingProtocol", type: { - name: "Composite", - className: - "EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink" + name: "String" } }, - hostName: { - serializedName: "properties.hostName", + linkToDefaultDomain: { + serializedName: "properties.linkToDefaultDomain", + type: { + name: "String" + } + }, + httpsRedirect: { + serializedName: "properties.httpsRedirect", + type: { + name: "String" + } + }, + enabledState: { + serializedName: "properties.enabledState", + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, type: { name: "String" } }, - origins: { - serializedName: "properties.origins", + 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: "String" + } + }, + deploymentStatus: { + serializedName: "properties.deploymentStatus", + readOnly: true, + type: { + name: "String" + } + }, + profileName: { + serializedName: "properties.profileName", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const Rule: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Rule", + modelProperties: { + ...ProxyResource.type.modelProperties, + ruleSetName: { + serializedName: "properties.ruleSetName", + readOnly: true, + type: { + name: "String" + } + }, + order: { + serializedName: "properties.order", + type: { + name: "Number" + } + }, + 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 +8111,24 @@ 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", - type: { - name: "Number" - } - }, - enabledState: { - serializedName: "properties.enabledState", - type: { - name: "String" - } - }, + ...ProxyResource.type.modelProperties, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, @@ -6764,86 +8143,110 @@ 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: "SecurityPolicyPropertiesParameters" + } } } } }; -export const CdnWebApplicationFirewallPolicy: coreClient.CompositeMapper = { +export const Secret: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CdnWebApplicationFirewallPolicy", + className: "Secret", modelProperties: { - ...TrackedResource.type.modelProperties, - etag: { - serializedName: "etag", + ...ProxyResource.type.modelProperties, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { name: "String" } }, - sku: { - serializedName: "sku", + deploymentStatus: { + serializedName: "properties.deploymentStatus", + readOnly: true, type: { - name: "Composite", - className: "Sku" + name: "String" } }, - policySettings: { - serializedName: "properties.policySettings", + profileName: { + serializedName: "properties.profileName", + readOnly: true, type: { - name: "Composite", - className: "PolicySettings" + name: "String" } }, - rateLimitRules: { - serializedName: "properties.rateLimitRules", + parameters: { + serializedName: "properties.parameters", type: { name: "Composite", - className: "RateLimitRuleList" + className: "SecretParameters" } - }, - customRules: { - serializedName: "properties.customRules", + } + } + } +}; + +export const CustomDomain: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CustomDomain", + modelProperties: { + ...ProxyResource.type.modelProperties, + hostName: { + serializedName: "properties.hostName", type: { - name: "Composite", - className: "CustomRuleList" + name: "String" } }, - managedRules: { - serializedName: "properties.managedRules", + resourceState: { + serializedName: "properties.resourceState", + readOnly: true, type: { - name: "Composite", - className: "ManagedRuleSetList" + name: "String" } }, - endpointLinks: { - serializedName: "properties.endpointLinks", + customHttpsProvisioningState: { + serializedName: "properties.customHttpsProvisioningState", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "CdnEndpoint" - } - } + name: "String" } }, - provisioningState: { - serializedName: "properties.provisioningState", + customHttpsProvisioningSubstate: { + serializedName: "properties.customHttpsProvisioningSubstate", readOnly: true, type: { name: "String" } }, - resourceState: { - serializedName: "properties.resourceState", + customHttpsParameters: { + serializedName: "properties.customHttpsParameters", + type: { + name: "Composite", + className: "CustomDomainHttpsParameters" + } + }, + validationData: { + serializedName: "properties.validationData", + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, type: { name: "String" @@ -7027,63 +8430,6 @@ export const OriginGroup: coreClient.CompositeMapper = { } }; -export const CustomDomain: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CustomDomain", - modelProperties: { - ...ProxyResource.type.modelProperties, - hostName: { - serializedName: "properties.hostName", - type: { - name: "String" - } - }, - resourceState: { - serializedName: "properties.resourceState", - readOnly: true, - type: { - name: "String" - } - }, - customHttpsProvisioningState: { - serializedName: "properties.customHttpsProvisioningState", - readOnly: true, - type: { - name: "String" - } - }, - customHttpsProvisioningSubstate: { - serializedName: "properties.customHttpsProvisioningSubstate", - readOnly: true, - type: { - name: "String" - } - }, - customHttpsParameters: { - serializedName: "properties.customHttpsParameters", - type: { - name: "Composite", - className: "CustomDomainHttpsParameters" - } - }, - validationData: { - serializedName: "properties.validationData", - type: { - name: "String" - } - }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - export const EdgeNode: coreClient.CompositeMapper = { type: { name: "Composite", @@ -7106,24 +8452,23 @@ 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" } }, provisioningState: { @@ -7140,71 +8485,46 @@ 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", + autoGeneratedDomainNameLabelScope: { + serializedName: "properties.autoGeneratedDomainNameLabelScope", type: { - name: "Composite", - className: "DomainValidationProperties" + name: "String" } } } } }; -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" - } - }, - trafficRestorationTimeToHealedOrNewEndpointsInMinutes: { - constraints: { - InclusiveMaximum: 50, - InclusiveMinimum: 0 - }, - serializedName: - "properties.trafficRestorationTimeToHealedOrNewEndpointsInMinutes", - type: { - name: "Number" + className: "Sku" } }, - responseBasedAfdOriginErrorDetectionSettings: { - serializedName: - "properties.responseBasedAfdOriginErrorDetectionSettings", + kind: { + serializedName: "kind", + readOnly: true, type: { - name: "Composite", - className: "ResponseBasedOriginErrorDetectionParameters" + name: "String" } }, - sessionAffinityState: { - serializedName: "properties.sessionAffinityState", + resourceState: { + serializedName: "properties.resourceState", + readOnly: true, type: { name: "String" } @@ -7216,309 +8536,196 @@ 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", - 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", - 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" - } - }, + className: "Endpoint", + modelProperties: { + ...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 +8735,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 +8816,9 @@ export const Secret: coreClient.CompositeMapper = { export let discriminators = { DeliveryRuleCondition: DeliveryRuleCondition, DeliveryRuleActionAutoGenerated: DeliveryRuleActionAutoGenerated, - CustomDomainHttpsParameters: CustomDomainHttpsParameters, - SecurityPolicyParameters: SecurityPolicyParameters, + SecurityPolicyPropertiesParameters: SecurityPolicyPropertiesParameters, SecretParameters: SecretParameters, + CustomDomainHttpsParameters: CustomDomainHttpsParameters, "DeliveryRuleCondition.RemoteAddress": DeliveryRuleRemoteAddressCondition, "DeliveryRuleCondition.RequestMethod": DeliveryRuleRequestMethodCondition, "DeliveryRuleCondition.QueryString": DeliveryRuleQueryStringCondition, @@ -7610,6 +8833,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 +8846,12 @@ export let discriminators = { "DeliveryRuleActionAutoGenerated.ModifyResponseHeader": DeliveryRuleResponseHeaderAction, "DeliveryRuleActionAutoGenerated.CacheExpiration": DeliveryRuleCacheExpirationAction, "DeliveryRuleActionAutoGenerated.CacheKeyQueryString": DeliveryRuleCacheKeyQueryStringAction, - "CustomDomainHttpsParameters.Cdn": CdnManagedHttpsParameters, - "CustomDomainHttpsParameters.AzureKeyVault": UserManagedHttpsParameters, - "SecurityPolicyParameters.WebApplicationFirewall": SecurityPolicyWebApplicationFirewallParameters, + "DeliveryRuleActionAutoGenerated.RouteConfigurationOverride": DeliveryRuleRouteConfigurationOverrideAction, + "SecurityPolicyPropertiesParameters.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..b7436c9175b6 100644 --- a/sdk/cdn/arm-cdn/src/models/parameters.ts +++ b/sdk/cdn/arm-cdn/src/models/parameters.ts @@ -12,26 +12,16 @@ 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, + CheckEndpointNameAvailabilityInput as CheckEndpointNameAvailabilityInputMapper, 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, @@ -41,14 +31,42 @@ import { Rule as RuleMapper, RuleUpdateParameters as RuleUpdateParametersMapper, SecurityPolicy as SecurityPolicyMapper, - SecurityPolicyProperties as SecurityPolicyPropertiesMapper, + SecurityPolicyUpdateParameters as SecurityPolicyUpdateParametersMapper, 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, CdnWebApplicationFirewallPolicy as CdnWebApplicationFirewallPolicyMapper, CdnWebApplicationFirewallPolicyPatchParameters as CdnWebApplicationFirewallPolicyPatchParametersMapper } from "../models/mappers"; +export const contentType: OperationParameter = { + parameterPath: ["options", "contentType"], + mapper: { + defaultValue: "application/json", + isConstant: true, + serializedName: "Content-Type", + type: { + name: "String" + } + } +}; + +export const checkEndpointNameAvailabilityInput: OperationParameter = { + parameterPath: "checkEndpointNameAvailabilityInput", + mapper: CheckEndpointNameAvailabilityInputMapper +}; + export const accept: OperationParameter = { parameterPath: "accept", mapper: { @@ -84,18 +102,6 @@ export const subscriptionId: OperationURLParameter = { } }; -export const apiVersion: OperationQueryParameter = { - parameterPath: "apiVersion", - mapper: { - defaultValue: "2020-09-01", - isConstant: true, - serializedName: "api-version", - type: { - name: "String" - } - } -}; - export const resourceGroupName: OperationURLParameter = { parameterPath: "resourceGroupName", mapper: { @@ -112,37 +118,42 @@ 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" } } }; -export const contentType: OperationParameter = { - parameterPath: ["options", "contentType"], +export const checkNameAvailabilityInput: OperationParameter = { + parameterPath: "checkNameAvailabilityInput", + mapper: CheckNameAvailabilityInputMapper +}; + +export const validateProbeInput: OperationParameter = { + parameterPath: "validateProbeInput", + mapper: ValidateProbeInputMapper +}; + +export const profileName: OperationURLParameter = { + parameterPath: "profileName", mapper: { - defaultValue: "application/json", - isConstant: true, - serializedName: "Content-Type", + serializedName: "profileName", + required: true, type: { name: "String" } } }; -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 +168,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 +202,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 +220,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 +233,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 +252,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 }; @@ -385,9 +331,9 @@ export const securityPolicy: OperationParameter = { mapper: SecurityPolicyMapper }; -export const securityPolicyProperties: OperationParameter = { - parameterPath: "securityPolicyProperties", - mapper: SecurityPolicyPropertiesMapper +export const securityPolicyUpdateProperties: OperationParameter = { + parameterPath: "securityPolicyUpdateProperties", + mapper: SecurityPolicyUpdateParametersMapper }; export const secretName: OperationURLParameter = { @@ -406,11 +352,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 +643,66 @@ 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 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..01af6f6cda61 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. */ @@ -633,7 +639,7 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.profileName, Parameters.customDomainName ], - headerParameters: [Parameters.accept, Parameters.contentType], + headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", serializer }; @@ -667,7 +673,7 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.profileName, Parameters.customDomainName ], - headerParameters: [Parameters.accept, Parameters.contentType], + headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", serializer }; @@ -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 } diff --git a/sdk/cdn/arm-cdn/src/operations/aFDEndpoints.ts b/sdk/cdn/arm-cdn/src/operations/aFDEndpoints.ts index 6b447da3f3e7..aeb977d06682 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. @@ -785,7 +801,7 @@ const createOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.AfdErrorResponse } }, - requestBody: Parameters.endpoint1, + requestBody: Parameters.endpoint, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -794,7 +810,7 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.profileName, Parameters.endpointName ], - headerParameters: [Parameters.accept, Parameters.contentType], + headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", serializer }; @@ -819,7 +835,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.AfdErrorResponse } }, - requestBody: Parameters.endpointUpdateProperties1, + requestBody: Parameters.endpointUpdateProperties, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -828,7 +844,7 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.profileName, Parameters.endpointName ], - headerParameters: [Parameters.accept, Parameters.contentType], + headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", serializer }; @@ -878,7 +894,7 @@ const purgeContentOperationSpec: coreClient.OperationSpec = { Parameters.profileName, Parameters.endpointName ], - headerParameters: [Parameters.accept, Parameters.contentType], + headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", serializer }; @@ -926,7 +942,7 @@ const validateCustomDomainOperationSpec: coreClient.OperationSpec = { Parameters.profileName, Parameters.endpointName ], - headerParameters: [Parameters.accept, Parameters.contentType], + headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", serializer }; diff --git a/sdk/cdn/arm-cdn/src/operations/aFDOriginGroups.ts b/sdk/cdn/arm-cdn/src/operations/aFDOriginGroups.ts index d113cd17a55e..c03bb9db473f 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. @@ -647,7 +660,7 @@ const createOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.AfdErrorResponse } }, - requestBody: Parameters.originGroup1, + requestBody: Parameters.originGroup, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -656,7 +669,7 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.profileName, Parameters.originGroupName ], - headerParameters: [Parameters.accept, Parameters.contentType], + headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", serializer }; @@ -681,7 +694,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.AfdErrorResponse } }, - requestBody: Parameters.originGroupUpdateProperties1, + requestBody: Parameters.originGroupUpdateProperties, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -690,7 +703,7 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.profileName, Parameters.originGroupName ], - headerParameters: [Parameters.accept, Parameters.contentType], + headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", serializer }; diff --git a/sdk/cdn/arm-cdn/src/operations/aFDOrigins.ts b/sdk/cdn/arm-cdn/src/operations/aFDOrigins.ts index 17ab6522f86e..699c64061ac8 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. @@ -535,8 +545,8 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, - Parameters.originName, - Parameters.originGroupName + Parameters.originGroupName, + Parameters.originName ], headerParameters: [Parameters.accept], serializer @@ -562,17 +572,17 @@ 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.originGroupName, + Parameters.originName ], - headerParameters: [Parameters.accept, Parameters.contentType], + headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", serializer }; @@ -597,17 +607,17 @@ 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.originGroupName, + Parameters.originName ], - headerParameters: [Parameters.accept, Parameters.contentType], + headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", serializer }; @@ -630,8 +640,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, - Parameters.originName, - Parameters.originGroupName + Parameters.originGroupName, + Parameters.originName ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/cdn/arm-cdn/src/operations/aFDProfiles.ts b/sdk/cdn/arm-cdn/src/operations/aFDProfiles.ts index 1e9b1319e500..cbefe1b3487d 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. */ @@ -198,7 +202,7 @@ const checkHostNameAvailabilityOperationSpec: coreClient.OperationSpec = { httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.ValidateCustomDomainOutput + bodyMapper: Mappers.CheckNameAvailabilityOutput }, default: { bodyMapper: Mappers.AfdErrorResponse @@ -212,7 +216,7 @@ const checkHostNameAvailabilityOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.profileName ], - headerParameters: [Parameters.accept, Parameters.contentType], + headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", serializer }; diff --git a/sdk/cdn/arm-cdn/src/operations/customDomains.ts b/sdk/cdn/arm-cdn/src/operations/customDomains.ts index e187e73fa431..366df1bc966d 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(); } /** @@ -629,8 +493,8 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, - Parameters.endpointName, - Parameters.customDomainName + Parameters.customDomainName, + Parameters.endpointName ], headerParameters: [Parameters.accept], serializer @@ -663,10 +527,10 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, - Parameters.endpointName, - Parameters.customDomainName + Parameters.customDomainName, + Parameters.endpointName ], - headerParameters: [Parameters.accept, Parameters.contentType], + headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", serializer }; @@ -689,8 +553,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, - Parameters.endpointName, - Parameters.customDomainName + 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 } @@ -714,8 +578,8 @@ const disableCustomHttpsOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, - Parameters.endpointName, - Parameters.customDomainName + 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 } @@ -740,10 +604,10 @@ const enableCustomHttpsOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.profileName, - Parameters.endpointName, - Parameters.customDomainName + Parameters.customDomainName, + Parameters.endpointName ], - headerParameters: [Parameters.accept, Parameters.contentType], + headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", serializer }; diff --git a/sdk/cdn/arm-cdn/src/operations/endpoints.ts b/sdk/cdn/arm-cdn/src/operations/endpoints.ts index f2a181e163c8..ab5188fdf2b3 100644 --- a/sdk/cdn/arm-cdn/src/operations/endpoints.ts +++ b/sdk/cdn/arm-cdn/src/operations/endpoints.ts @@ -1068,7 +1068,7 @@ const createOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.endpoint, + requestBody: Parameters.endpoint1, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1077,7 +1077,7 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.profileName, Parameters.endpointName ], - headerParameters: [Parameters.accept, Parameters.contentType], + headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", serializer }; @@ -1102,7 +1102,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.endpointUpdateProperties, + requestBody: Parameters.endpointUpdateProperties1, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1111,7 +1111,7 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.profileName, Parameters.endpointName ], - headerParameters: [Parameters.accept, Parameters.contentType], + headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", serializer }; @@ -1225,7 +1225,7 @@ const purgeContentOperationSpec: coreClient.OperationSpec = { Parameters.profileName, Parameters.endpointName ], - headerParameters: [Parameters.accept, Parameters.contentType], + headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", serializer }; @@ -1251,7 +1251,7 @@ const loadContentOperationSpec: coreClient.OperationSpec = { Parameters.profileName, Parameters.endpointName ], - headerParameters: [Parameters.accept, Parameters.contentType], + headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", serializer }; @@ -1276,7 +1276,7 @@ const validateCustomDomainOperationSpec: coreClient.OperationSpec = { Parameters.profileName, Parameters.endpointName ], - headerParameters: [Parameters.accept, Parameters.contentType], + headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", serializer }; 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..bc75bc721b5e 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 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..59e43e579731 100644 --- a/sdk/cdn/arm-cdn/src/operations/originGroups.ts +++ b/sdk/cdn/arm-cdn/src/operations/originGroups.ts @@ -571,7 +571,7 @@ const createOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.originGroup, + requestBody: Parameters.originGroup1, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -581,7 +581,7 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.endpointName, Parameters.originGroupName ], - headerParameters: [Parameters.accept, Parameters.contentType], + headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", serializer }; @@ -606,7 +606,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.originGroupUpdateProperties, + requestBody: Parameters.originGroupUpdateProperties1, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -616,7 +616,7 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.endpointName, Parameters.originGroupName ], - headerParameters: [Parameters.accept, Parameters.contentType], + headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", serializer }; diff --git a/sdk/cdn/arm-cdn/src/operations/origins.ts b/sdk/cdn/arm-cdn/src/operations/origins.ts index bc4ee3fe1bd2..e6ba9e5579da 100644 --- a/sdk/cdn/arm-cdn/src/operations/origins.ts +++ b/sdk/cdn/arm-cdn/src/operations/origins.ts @@ -553,7 +553,7 @@ const createOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.origin, + requestBody: Parameters.origin1, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -563,7 +563,7 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.endpointName, Parameters.originName ], - headerParameters: [Parameters.accept, Parameters.contentType], + headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", serializer }; @@ -588,7 +588,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.originUpdateProperties, + requestBody: Parameters.originUpdateProperties1, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -598,7 +598,7 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.endpointName, Parameters.originName ], - headerParameters: [Parameters.accept, Parameters.contentType], + headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", serializer }; diff --git a/sdk/cdn/arm-cdn/src/operations/policies.ts b/sdk/cdn/arm-cdn/src/operations/policies.ts index 905014b0fb6a..fa295f500bec 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: { @@ -428,13 +428,13 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName1, Parameters.policyName ], - headerParameters: [Parameters.accept, Parameters.contentType], + headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", serializer }; 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: { @@ -461,15 +461,21 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName1, Parameters.policyName ], - headerParameters: [Parameters.accept, Parameters.contentType], + headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", serializer }; 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..b0346604d25f 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. */ @@ -726,7 +747,7 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.profileName ], - headerParameters: [Parameters.accept, Parameters.contentType], + headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", serializer }; @@ -759,7 +780,7 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.profileName ], - headerParameters: [Parameters.accept, Parameters.contentType], + headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", serializer }; diff --git a/sdk/cdn/arm-cdn/src/operations/routes.ts b/sdk/cdn/arm-cdn/src/operations/routes.ts index 6c6c788be8d0..681e81d955bb 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. @@ -573,7 +583,7 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.endpointName, Parameters.routeName ], - headerParameters: [Parameters.accept, Parameters.contentType], + headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", serializer }; @@ -608,7 +618,7 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.endpointName, Parameters.routeName ], - headerParameters: [Parameters.accept, Parameters.contentType], + headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", serializer }; diff --git a/sdk/cdn/arm-cdn/src/operations/ruleSets.ts b/sdk/cdn/arm-cdn/src/operations/ruleSets.ts index 8f429120204a..56bfde935a7e 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. @@ -530,12 +468,6 @@ const createOperationSpec: coreClient.OperationSpec = { 201: { bodyMapper: Mappers.RuleSet }, - 202: { - bodyMapper: Mappers.RuleSet - }, - 204: { - bodyMapper: Mappers.RuleSet - }, default: { bodyMapper: Mappers.AfdErrorResponse } diff --git a/sdk/cdn/arm-cdn/src/operations/rules.ts b/sdk/cdn/arm-cdn/src/operations/rules.ts index 48df23f042e8..b085d69d893f 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. @@ -559,7 +569,7 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.ruleSetName, Parameters.ruleName ], - headerParameters: [Parameters.accept, Parameters.contentType], + headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", serializer }; @@ -594,7 +604,7 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.ruleSetName, Parameters.ruleName ], - headerParameters: [Parameters.accept, Parameters.contentType], + headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", serializer }; diff --git a/sdk/cdn/arm-cdn/src/operations/secrets.ts b/sdk/cdn/arm-cdn/src/operations/secrets.ts index ab817869452b..c824dd506159 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. */ @@ -519,41 +431,7 @@ const createOperationSpec: coreClient.OperationSpec = { 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], + headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", serializer }; diff --git a/sdk/cdn/arm-cdn/src/operations/securityPolicies.ts b/sdk/cdn/arm-cdn/src/operations/securityPolicies.ts index b43c233a020e..ab193c811d9b 100644 --- a/sdk/cdn/arm-cdn/src/operations/securityPolicies.ts +++ b/sdk/cdn/arm-cdn/src/operations/securityPolicies.ts @@ -23,7 +23,7 @@ import { SecurityPoliciesGetResponse, SecurityPoliciesCreateOptionalParams, SecurityPoliciesCreateResponse, - SecurityPolicyProperties, + SecurityPolicyUpdateParameters, SecurityPoliciesPatchOptionalParams, SecurityPoliciesPatchResponse, SecurityPoliciesDeleteOptionalParams, @@ -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,18 +258,19 @@ 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 securityPolicyUpdateProperties Security policy update properties * @param options The options parameters. */ async beginPatch( resourceGroupName: string, profileName: string, securityPolicyName: string, - securityPolicyProperties: SecurityPolicyProperties, + securityPolicyUpdateProperties: SecurityPolicyUpdateParameters, options?: SecurityPoliciesPatchOptionalParams ): Promise< PollerLike< @@ -317,7 +323,7 @@ export class SecurityPoliciesImpl implements SecurityPolicies { resourceGroupName, profileName, securityPolicyName, - securityPolicyProperties, + securityPolicyUpdateProperties, options }, patchOperationSpec @@ -330,25 +336,26 @@ 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 securityPolicyUpdateProperties Security policy update properties * @param options The options parameters. */ async beginPatchAndWait( resourceGroupName: string, profileName: string, securityPolicyName: string, - securityPolicyProperties: SecurityPolicyProperties, + securityPolicyUpdateProperties: SecurityPolicyUpdateParameters, options?: SecurityPoliciesPatchOptionalParams ): Promise { const poller = await this.beginPatch( resourceGroupName, profileName, securityPolicyName, - securityPolicyProperties, + securityPolicyUpdateProperties, options ); return poller.pollUntilDone(); @@ -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. */ @@ -537,7 +547,7 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.profileName, Parameters.securityPolicyName ], - headerParameters: [Parameters.accept, Parameters.contentType], + headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", serializer }; @@ -562,7 +572,7 @@ const patchOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.AfdErrorResponse } }, - requestBody: Parameters.securityPolicyProperties, + requestBody: Parameters.securityPolicyUpdateProperties, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -571,7 +581,7 @@ const patchOperationSpec: coreClient.OperationSpec = { Parameters.profileName, Parameters.securityPolicyName ], - headerParameters: [Parameters.accept, Parameters.contentType], + headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", serializer }; diff --git a/sdk/cdn/arm-cdn/src/operations/validate.ts b/sdk/cdn/arm-cdn/src/operations/validate.ts index d7a47fa6aa77..ca501b2ea0d3 100644 --- a/sdk/cdn/arm-cdn/src/operations/validate.ts +++ b/sdk/cdn/arm-cdn/src/operations/validate.ts @@ -62,7 +62,7 @@ const secretOperationSpec: coreClient.OperationSpec = { requestBody: Parameters.validateSecretInput, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], - headerParameters: [Parameters.accept, Parameters.contentType], + headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", serializer }; 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..fa683ce825fd 100644 --- a/sdk/cdn/arm-cdn/src/operationsInterfaces/securityPolicies.ts +++ b/sdk/cdn/arm-cdn/src/operationsInterfaces/securityPolicies.ts @@ -15,7 +15,7 @@ import { SecurityPoliciesGetResponse, SecurityPoliciesCreateOptionalParams, SecurityPoliciesCreateResponse, - SecurityPolicyProperties, + SecurityPolicyUpdateParameters, SecurityPoliciesPatchOptionalParams, SecurityPoliciesPatchResponse, SecurityPoliciesDeleteOptionalParams @@ -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,18 +88,19 @@ 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 securityPolicyUpdateProperties Security policy update properties * @param options The options parameters. */ beginPatch( resourceGroupName: string, profileName: string, securityPolicyName: string, - securityPolicyProperties: SecurityPolicyProperties, + securityPolicyUpdateProperties: SecurityPolicyUpdateParameters, options?: SecurityPoliciesPatchOptionalParams ): Promise< PollerLike< @@ -104,25 +109,27 @@ 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 securityPolicyUpdateProperties Security policy update properties * @param options The options parameters. */ beginPatchAndWait( resourceGroupName: string, profileName: string, securityPolicyName: string, - securityPolicyProperties: SecurityPolicyProperties, + securityPolicyUpdateProperties: SecurityPolicyUpdateParameters, options?: SecurityPoliciesPatchOptionalParams ): Promise; /** * 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!"); + }); +}); diff --git a/sdk/cdn/arm-cdn/tsconfig.json b/sdk/cdn/arm-cdn/tsconfig.json index 6e3251194117..3e6ae96443f3 100644 --- a/sdk/cdn/arm-cdn/tsconfig.json +++ b/sdk/cdn/arm-cdn/tsconfig.json @@ -9,11 +9,19 @@ "esModuleInterop": true, "allowSyntheticDefaultImports": true, "forceConsistentCasingInFileNames": true, - "lib": ["es6", "dom"], + "lib": [ + "es6", + "dom" + ], "declaration": true, "outDir": "./dist-esm", "importHelpers": true }, - "include": ["./src/**/*.ts", "./test/**/*.ts"], - "exclude": ["node_modules"] -} + "include": [ + "./src/**/*.ts", + "./test/**/*.ts" + ], + "exclude": [ + "node_modules" + ] +} \ No newline at end of file diff --git a/sdk/cdn/ci.mgmt.yml b/sdk/cdn/ci.mgmt.yml index b114e07b16dd..c73a60986c07 100644 --- a/sdk/cdn/ci.mgmt.yml +++ b/sdk/cdn/ci.mgmt.yml @@ -1,5 +1,5 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. - + trigger: branches: include: @@ -10,6 +10,7 @@ trigger: include: - sdk/cdn/ci.mgmt.yml - sdk/cdn/arm-cdn/ + - sdk/cdn/arm-cdn pr: branches: include: @@ -23,11 +24,11 @@ pr: include: - sdk/cdn/ci.mgmt.yml - sdk/cdn/arm-cdn/ - + - sdk/cdn/arm-cdn extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: ServiceDirectory: cdn Artifacts: - name: azure-arm-cdn - safeName: azurearmcdn \ No newline at end of file + safeName: azurearmcdn