From c3311fa43c48a0c9a8c253f8d5f3c1b62031bf29 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Thu, 27 Feb 2025 00:48:55 +0000 Subject: [PATCH] CodeGen from PR 32875 in Azure/azure-rest-api-specs Merge 7c8d3ba9d79a5719a764866d9519ce3c69422b76 into 2d73bd7fb1c68a8b6829fac1760bd0fc84ca5554 --- common/config/rush/pnpm-lock.yaml | 20 +- sdk/cdn/arm-cdn/CHANGELOG.md | 68 +- sdk/cdn/arm-cdn/LICENSE | 8 +- sdk/cdn/arm-cdn/README.md | 38 +- sdk/cdn/arm-cdn/_meta.json | 8 +- sdk/cdn/arm-cdn/api-extractor.json | 6 +- sdk/cdn/arm-cdn/package.json | 41 +- sdk/cdn/arm-cdn/review/arm-cdn.api.md | 295 +- sdk/cdn/arm-cdn/sample.env | 5 +- .../src/afdCustomDomainsCreateSample.ts | 4 +- .../src/afdCustomDomainsDeleteSample.ts | 4 +- .../src/afdCustomDomainsGetSample.ts | 4 +- .../afdCustomDomainsListByProfileSample.ts | 4 +- ...stomDomainsRefreshValidationTokenSample.ts | 4 +- .../src/afdCustomDomainsUpdateSample.ts | 4 +- .../src/afdEndpointsCreateSample.ts | 4 +- .../src/afdEndpointsDeleteSample.ts | 4 +- .../typescript/src/afdEndpointsGetSample.ts | 4 +- .../src/afdEndpointsListByProfileSample.ts | 4 +- .../afdEndpointsListResourceUsageSample.ts | 4 +- .../src/afdEndpointsPurgeContentSample.ts | 4 +- .../src/afdEndpointsUpdateSample.ts | 4 +- .../afdEndpointsValidateCustomDomainSample.ts | 4 +- .../src/afdOriginGroupsCreateSample.ts | 4 +- .../src/afdOriginGroupsDeleteSample.ts | 4 +- .../src/afdOriginGroupsGetSample.ts | 4 +- .../src/afdOriginGroupsListByProfileSample.ts | 4 +- .../afdOriginGroupsListResourceUsageSample.ts | 4 +- .../src/afdOriginGroupsUpdateSample.ts | 4 +- .../typescript/src/afdOriginsCreateSample.ts | 4 +- .../typescript/src/afdOriginsDeleteSample.ts | 4 +- .../v9/typescript/src/afdOriginsGetSample.ts | 4 +- .../src/afdOriginsListByOriginGroupSample.ts | 4 +- .../typescript/src/afdOriginsUpdateSample.ts | 4 +- ...ilesCheckEndpointNameAvailabilitySample.ts | 4 +- ...ProfilesCheckHostNameAvailabilitySample.ts | 4 +- .../src/afdProfilesListResourceUsageSample.ts | 4 +- .../src/afdProfilesUpgradeSample.ts | 4 +- .../src/afdProfilesValidateSecretSample.ts | 4 +- .../checkEndpointNameAvailabilitySample.ts | 4 +- .../src/checkNameAvailabilitySample.ts | 4 +- ...kNameAvailabilityWithSubscriptionSample.ts | 4 +- .../src/customDomainsCreateSample.ts | 4 +- .../src/customDomainsDeleteSample.ts | 4 +- .../customDomainsDisableCustomHttpsSample.ts | 4 +- .../customDomainsEnableCustomHttpsSample.ts | 6 +- .../typescript/src/customDomainsGetSample.ts | 4 +- .../src/customDomainsListByEndpointSample.ts | 4 +- .../v9/typescript/src/edgeNodesListSample.ts | 4 +- .../typescript/src/endpointsCreateSample.ts | 4 +- .../typescript/src/endpointsDeleteSample.ts | 4 +- .../v9/typescript/src/endpointsGetSample.ts | 4 +- .../src/endpointsListByProfileSample.ts | 4 +- .../src/endpointsListResourceUsageSample.ts | 4 +- .../src/endpointsLoadContentSample.ts | 4 +- .../src/endpointsPurgeContentSample.ts | 4 +- .../v9/typescript/src/endpointsStartSample.ts | 4 +- .../v9/typescript/src/endpointsStopSample.ts | 4 +- .../typescript/src/endpointsUpdateSample.ts | 4 +- .../endpointsValidateCustomDomainSample.ts | 4 +- ...AnalyticsGetLogAnalyticsLocationsSample.ts | 4 +- ...ogAnalyticsGetLogAnalyticsMetricsSample.ts | 4 +- ...gAnalyticsGetLogAnalyticsRankingsSample.ts | 4 +- ...AnalyticsGetLogAnalyticsResourcesSample.ts | 4 +- ...nalyticsGetWafLogAnalyticsMetricsSample.ts | 4 +- ...alyticsGetWafLogAnalyticsRankingsSample.ts | 4 +- .../src/managedRuleSetsListSample.ts | 4 +- .../v9/typescript/src/operationsListSample.ts | 4 +- .../src/originGroupsCreateSample.ts | 4 +- .../src/originGroupsDeleteSample.ts | 4 +- .../typescript/src/originGroupsGetSample.ts | 4 +- .../src/originGroupsListByEndpointSample.ts | 4 +- .../src/originGroupsUpdateSample.ts | 4 +- .../v9/typescript/src/originsCreateSample.ts | 4 +- .../v9/typescript/src/originsDeleteSample.ts | 4 +- .../v9/typescript/src/originsGetSample.ts | 4 +- .../src/originsListByEndpointSample.ts | 4 +- .../v9/typescript/src/originsUpdateSample.ts | 4 +- .../src/policiesCreateOrUpdateSample.ts | 4 +- .../v9/typescript/src/policiesDeleteSample.ts | 4 +- .../v9/typescript/src/policiesGetSample.ts | 4 +- .../v9/typescript/src/policiesListSample.ts | 4 +- .../v9/typescript/src/policiesUpdateSample.ts | 4 +- .../src/profilesCanMigrateSample.ts | 4 +- .../v9/typescript/src/profilesCreateSample.ts | 4 +- .../v9/typescript/src/profilesDeleteSample.ts | 4 +- .../src/profilesGenerateSsoUriSample.ts | 4 +- .../v9/typescript/src/profilesGetSample.ts | 4 +- .../src/profilesListByResourceGroupSample.ts | 4 +- .../src/profilesListResourceUsageSample.ts | 4 +- .../v9/typescript/src/profilesListSample.ts | 4 +- ...lesListSupportedOptimizationTypesSample.ts | 4 +- .../typescript/src/profilesMigrateSample.ts | 4 +- .../src/profilesMigrationCommitSample.ts | 4 +- .../v9/typescript/src/profilesUpdateSample.ts | 4 +- .../typescript/src/resourceUsageListSample.ts | 4 +- .../v9/typescript/src/routesCreateSample.ts | 4 +- .../v9/typescript/src/routesDeleteSample.ts | 4 +- .../v9/typescript/src/routesGetSample.ts | 4 +- .../src/routesListByEndpointSample.ts | 4 +- .../v9/typescript/src/routesUpdateSample.ts | 4 +- .../v9/typescript/src/ruleSetsCreateSample.ts | 4 +- .../v9/typescript/src/ruleSetsDeleteSample.ts | 4 +- .../v9/typescript/src/ruleSetsGetSample.ts | 4 +- .../src/ruleSetsListByProfileSample.ts | 4 +- .../src/ruleSetsListResourceUsageSample.ts | 4 +- .../v9/typescript/src/rulesCreateSample.ts | 4 +- .../v9/typescript/src/rulesDeleteSample.ts | 4 +- .../v9/typescript/src/rulesGetSample.ts | 4 +- .../src/rulesListByRuleSetSample.ts | 4 +- .../v9/typescript/src/rulesUpdateSample.ts | 4 +- .../v9/typescript/src/secretsCreateSample.ts | 4 +- .../v9/typescript/src/secretsDeleteSample.ts | 4 +- .../v9/typescript/src/secretsGetSample.ts | 4 +- .../src/secretsListByProfileSample.ts | 4 +- .../src/securityPoliciesCreateSample.ts | 4 +- .../src/securityPoliciesDeleteSample.ts | 4 +- .../src/securityPoliciesGetSample.ts | 4 +- .../securityPoliciesListByProfileSample.ts | 4 +- .../src/securityPoliciesPatchSample.ts | 4 +- .../v9/typescript/src/validateProbeSample.ts | 4 +- sdk/cdn/arm-cdn/src/cdnManagementClient.ts | 4 +- sdk/cdn/arm-cdn/src/lroImpl.ts | 4 + sdk/cdn/arm-cdn/src/models/index.ts | 1952 ++++---- sdk/cdn/arm-cdn/src/models/mappers.ts | 4013 +++++++++-------- sdk/cdn/arm-cdn/src/models/parameters.ts | 25 +- sdk/cdn/arm-cdn/src/operations/policies.ts | 12 +- sdk/cdn/arm-cdn/src/operations/profiles.ts | 382 ++ .../src/operationsInterfaces/profiles.ts | 100 + sdk/cdn/arm-cdn/test/sampleTest.ts | 40 + sdk/cdn/arm-cdn/tsconfig.browser.config.json | 19 +- sdk/cdn/arm-cdn/tsconfig.json | 36 +- sdk/cdn/arm-cdn/vitest.browser.config.ts | 6 +- sdk/cdn/arm-cdn/vitest.config.ts | 3 +- 134 files changed, 4361 insertions(+), 3174 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 87cd47a1d0ac..8e66c2968180 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -2554,7 +2554,7 @@ packages: version: 0.0.0 '@rush-temp/ai-text-analytics@file:projects/ai-text-analytics.tgz': - resolution: {integrity: sha512-1jGgJPXpBnqpTnDegMjesgQibCkWWP+sIHe9EH3z+SW5Z3EJ53VljlaafiWwNz+9z+8a+P0lnsC0J07hwnVINQ==, tarball: file:projects/ai-text-analytics.tgz} + resolution: {integrity: sha512-gkyef86U6fABbjY5iPYkRyjDu+KvYLoGMbZRQ+N6rTvDM8pE8XxZ8ll54rRk0lxqMAO3wHBhuFfAuNgDhhTluw==, tarball: file:projects/ai-text-analytics.tgz} version: 0.0.0 '@rush-temp/ai-translation-document@file:projects/ai-translation-document.tgz': @@ -2698,7 +2698,7 @@ packages: version: 0.0.0 '@rush-temp/arm-cdn@file:projects/arm-cdn.tgz': - resolution: {integrity: sha512-KgUSTeDS9Uc99ZVilSDItGe6Vj95FeAYTmsZfAgSHuv6yrnSiJKJeXf24FG+Tx8Wc8BgmdmpV3aTcJ3IdosyxA==, tarball: file:projects/arm-cdn.tgz} + resolution: {integrity: sha512-fBkmCuItb2/AOFJ5058NtebQPAAKU5QduFfiWVAH2rufBUJ+cWTKX/xkCB2tMhLAozeBOYl8MhKoGfpH57psjg==, tarball: file:projects/arm-cdn.tgz} version: 0.0.0 '@rush-temp/arm-changeanalysis@file:projects/arm-changeanalysis.tgz': @@ -3762,7 +3762,7 @@ packages: version: 0.0.0 '@rush-temp/functions-authentication-events@file:projects/functions-authentication-events.tgz': - resolution: {integrity: sha512-3z+Wn2tFhy1O3WnYtoshPxE8VZmpkx/LCJCQsP1kqYPotgzBWU92XQ1vVex4akjvDMaDiqL5sbs5kfmmDT7LBQ==, tarball: file:projects/functions-authentication-events.tgz} + resolution: {integrity: sha512-SancGMuk0aVOLc2LqvEqXKdkohnaud5TIHxy1D5x/AWaDlA88RCsdWfMwAutVVz972Dpf0v5w88w3pqsTiCAMw==, tarball: file:projects/functions-authentication-events.tgz} version: 0.0.0 '@rush-temp/health-deidentification@file:projects/health-deidentification.tgz': @@ -4018,19 +4018,19 @@ packages: version: 0.0.0 '@rush-temp/quantum-jobs@file:projects/quantum-jobs.tgz': - resolution: {integrity: sha512-zHtPe9OjzXX4THRvBVecPTzBM/VsSsjguLMgSQYk0Uy4Ll4myk/LoUpZZwc9nIblkPCiePJh8270MZO5H6KOOA==, tarball: file:projects/quantum-jobs.tgz} + resolution: {integrity: sha512-x6bNUk9vu8zvYVXAVFfol08i1y10LkjNUzJZWK5219WTOFHX0YkDjmZk7ZOEOoqBl9lA+/iBWSEu5ejYUQbYAw==, tarball: file:projects/quantum-jobs.tgz} version: 0.0.0 '@rush-temp/schema-registry-avro@file:projects/schema-registry-avro.tgz': - resolution: {integrity: sha512-pXsOSqgPhJlk4sQdIe5htRBCNPm4HnaZFgtcoEq1wFBJ2rQ/2sVV9YssxvsHBZwjcl+68iRpRMzfHq0xXN7pyg==, tarball: file:projects/schema-registry-avro.tgz} + resolution: {integrity: sha512-hdHZ0SJ7TRPDoof/ywC1v5P5T4Qtz6npoA4P2yFaNlhXIHEbmpxSS8bdk9t9oBOe5+wTx1Syz1CWbPNhpoGjdQ==, tarball: file:projects/schema-registry-avro.tgz} version: 0.0.0 '@rush-temp/schema-registry-json@file:projects/schema-registry-json.tgz': - resolution: {integrity: sha512-ZwFbFtIFKLrC3h+7A7Ct8dPokgFmUaCKXsxIIFETiJCMcoBGxAvvAmP59/E5S8l4AgeE7RcQuw4FdN/ySLbwBg==, tarball: file:projects/schema-registry-json.tgz} + resolution: {integrity: sha512-d/3GcklBP2GOnxwkWrBmQJrpJsEOTZzK7cqlzXavChVF2HfOy/a+DpNfF8APLp43f7PVpXeqkToFHXSkdEG9bg==, tarball: file:projects/schema-registry-json.tgz} version: 0.0.0 '@rush-temp/schema-registry@file:projects/schema-registry.tgz': - resolution: {integrity: sha512-N8FsEoIwUNgbuQGPFtJ90JTn7qYPpk2HD7AmhgGD5SlLS6Im9t8cc+/5A74nzrSKdPiko7p8Ht2LWSGzI6WWxw==, tarball: file:projects/schema-registry.tgz} + resolution: {integrity: sha512-oI5hZC61oj/rnBpFxm7PdT9EefXIWFNZF5wQfFOjKL75XUP4TXpr7cRU5G/jLYM7CDYOrQVPgrRZN0iuNFy0VQ==, tarball: file:projects/schema-registry.tgz} version: 0.0.0 '@rush-temp/search-documents@file:projects/search-documents.tgz': @@ -11423,12 +11423,12 @@ snapshots: dependencies: '@azure/core-lro': 2.7.2 '@types/node': 18.19.76 - '@vitest/browser': 3.0.6(@types/node@18.19.76)(playwright@1.50.1)(typescript@5.7.3)(vite@6.1.1(@types/node@22.7.9)(tsx@4.19.3)(yaml@2.7.0))(vitest@3.0.6) + '@vitest/browser': 3.0.6(@types/node@18.19.76)(playwright@1.50.1)(typescript@5.6.3)(vite@6.1.1(@types/node@22.7.9)(tsx@4.19.3)(yaml@2.7.0))(vitest@3.0.6) '@vitest/coverage-istanbul': 3.0.6(vitest@3.0.6) dotenv: 16.4.7 playwright: 1.50.1 tslib: 2.8.1 - typescript: 5.7.3 + typescript: 5.6.3 vitest: 3.0.6(@types/debug@4.1.12)(@types/node@18.19.76)(@vitest/browser@3.0.6)(msw@2.7.2(@types/node@22.7.9)(typescript@5.7.3))(tsx@4.19.3)(yaml@2.7.0) transitivePeerDependencies: - '@edge-runtime/vm' @@ -23765,7 +23765,7 @@ snapshots: '@types/chai-as-promised@7.1.8': dependencies: - '@types/chai': 4.3.20 + '@types/chai': 5.0.1 '@types/chai-as-promised@8.0.1': dependencies: diff --git a/sdk/cdn/arm-cdn/CHANGELOG.md b/sdk/cdn/arm-cdn/CHANGELOG.md index 76e51df80f8a..b8c3ce7ca8e8 100644 --- a/sdk/cdn/arm-cdn/CHANGELOG.md +++ b/sdk/cdn/arm-cdn/CHANGELOG.md @@ -1,15 +1,69 @@ # Release History - -## 9.1.1 (Unreleased) - + +## 10.0.0 (2025-02-27) + ### Features Added -### Breaking Changes + - Added operation Profiles.beginCdnCanMigrateToAfd + - Added operation Profiles.beginCdnCanMigrateToAfdAndWait + - Added operation Profiles.beginCdnMigrateToAfd + - Added operation Profiles.beginCdnMigrateToAfdAndWait + - Added operation Profiles.beginMigrationAbort + - Added operation Profiles.beginMigrationAbortAndWait + - Added Interface CdnMigrationToAfdParameters + - Added Interface CertificateSourceParameters + - Added Interface DeliveryRuleAction + - Added Interface DeliveryRuleActionParameters + - Added Interface DeliveryRuleConditionParameters + - Added Interface ErrorResponseAutoGenerated + - Added Interface MigrationEndpointMapping + - Added Interface ProfilesCdnCanMigrateToAfdHeaders + - Added Interface ProfilesCdnCanMigrateToAfdOptionalParams + - Added Interface ProfilesCdnMigrateToAfdHeaders + - Added Interface ProfilesCdnMigrateToAfdOptionalParams + - Added Interface ProfilesMigrationAbortHeaders + - Added Interface ProfilesMigrationAbortOptionalParams + - Added Type Alias CertificateSourceParametersType + - Added Type Alias CertificateSourceParametersUnion + - Added Type Alias DeliveryRuleActionName + - Added Type Alias DeliveryRuleActionParametersType + - Added Type Alias DeliveryRuleActionParametersUnion + - Added Type Alias DeliveryRuleActionUnion + - Added Type Alias DeliveryRuleConditionParametersType + - Added Type Alias DeliveryRuleConditionParametersUnion + - Added Type Alias IsDeviceMatchValue + - Added Type Alias KeyVaultSigningKeyParametersType + - Added Type Alias ProfilesCdnCanMigrateToAfdResponse + - Added Type Alias ProfilesCdnMigrateToAfdResponse + - Added Type Alias ProfilesMigrationAbortResponse + - Added Type Alias RequestMethodMatchValue + - Added Type Alias RequestSchemeMatchValue + - Added Enum KnownCertificateSourceParametersType + - Added Enum KnownDeliveryRuleActionName + - Added Enum KnownDeliveryRuleActionParametersType + - Added Enum KnownDeliveryRuleConditionParametersType + - Added Enum KnownIsDeviceMatchValue + - Added Enum KnownKeyVaultSigningKeyParametersType + - Added Enum KnownRequestMethodMatchValue + - Added Enum KnownRequestSchemeMatchValue -### Bugs Fixed - -### Other Changes +### Breaking Changes + - Parameter secretVersion of interface UrlSigningKeyParameters is now required + - Type of parameter actions of interface DeliveryRule is changed from DeliveryRuleActionAutoGeneratedUnion[] to DeliveryRuleActionUnion[] + - Type of parameter matchValues of interface IsDeviceMatchConditionParameters is changed from IsDeviceMatchConditionParametersMatchValuesItem[] to IsDeviceMatchValue[] + - Type of parameter typeName of interface KeyVaultSigningKeyParameters is changed from "KeyVaultSigningKeyParameters" to KeyVaultSigningKeyParametersType + - Type of parameter matchValues of interface RequestMethodMatchConditionParameters is changed from RequestMethodMatchConditionParametersMatchValuesItem[] to RequestMethodMatchValue[] + - Type of parameter matchValues of interface RequestSchemeMatchConditionParameters is changed from RequestSchemeMatchConditionParametersMatchValuesItem[] to RequestSchemeMatchValue[] + - Type of parameter actions of interface Rule is changed from DeliveryRuleActionAutoGeneratedUnion[] to DeliveryRuleActionUnion[] + - Type of parameter actions of interface RuleUpdateParameters is changed from DeliveryRuleActionAutoGeneratedUnion[] to DeliveryRuleActionUnion[] + - Type of parameter actions of interface RuleUpdatePropertiesParameters is changed from DeliveryRuleActionAutoGeneratedUnion[] to DeliveryRuleActionUnion[] + - Removed Enum KnownDeliveryRuleAction + - Removed Enum KnownIsDeviceMatchConditionParametersMatchValuesItem + - Removed Enum KnownRequestMethodMatchConditionParametersMatchValuesItem + - Removed Enum KnownRequestSchemeMatchConditionParametersMatchValuesItem + + ## 9.1.0 (2024-04-08) ### Features Added diff --git a/sdk/cdn/arm-cdn/LICENSE b/sdk/cdn/arm-cdn/LICENSE index b2f52a2bad4e..2ad4de7b17f0 100644 --- a/sdk/cdn/arm-cdn/LICENSE +++ b/sdk/cdn/arm-cdn/LICENSE @@ -1,6 +1,6 @@ -Copyright (c) Microsoft Corporation. +The MIT License (MIT) -MIT License +Copyright (c) 2025 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 @@ -12,10 +12,10 @@ furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +SOFTWARE. \ No newline at end of file diff --git a/sdk/cdn/arm-cdn/README.md b/sdk/cdn/arm-cdn/README.md index 55ca04d6a347..866c2699c483 100644 --- a/sdk/cdn/arm-cdn/README.md +++ b/sdk/cdn/arm-cdn/README.md @@ -44,36 +44,27 @@ npm install @azure/identity ``` You will also need to **register a new AAD application and grant access to Azure CdnManagement** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions). -Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`. For more information about how to create an Azure AD Application check out [this guide](https://learn.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal). -Using Node.js and Node-like environments, you can use the `DefaultAzureCredential` class to authenticate the client. - -```ts snippet:ReadmeSampleCreateClient_Node -import { CdnManagementClient } from "@azure/arm-cdn"; -import { DefaultAzureCredential } from "@azure/identity"; +```javascript +const { CdnManagementClient } = require("@azure/arm-cdn"); +const { DefaultAzureCredential } = require("@azure/identity"); +// For client-side applications running in the browser, use InteractiveBrowserCredential instead of DefaultAzureCredential. See https://aka.ms/azsdk/js/identity/examples for more details. const subscriptionId = "00000000-0000-0000-0000-000000000000"; const client = new CdnManagementClient(new DefaultAzureCredential(), subscriptionId); -``` - -For browser environments, use the `InteractiveBrowserCredential` from the `@azure/identity` package to authenticate. -```ts snippet:ReadmeSampleCreateClient_Browser -import { InteractiveBrowserCredential } from "@azure/identity"; -import { CdnManagementClient } from "@azure/arm-cdn"; - -const subscriptionId = "00000000-0000-0000-0000-000000000000"; -const credential = new InteractiveBrowserCredential({ - tenantId: "", - clientId: "", -}); -const client = new CdnManagementClient(credential, subscriptionId); +// For client-side applications running in the browser, use this code instead: +// const credential = new InteractiveBrowserCredential({ +// tenantId: "", +// clientId: "" +// }); +// const client = new CdnManagementClient(credential, subscriptionId); ``` -### JavaScript Bundle +### JavaScript Bundle To use this client library in the browser, first you need to use a bundler. For details on how to do this, please refer to our [bundling documentation](https://aka.ms/AzureSDKBundling). ## Key concepts @@ -88,9 +79,8 @@ To use this client library in the browser, first you need to use a bundler. For Enabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`: -```ts snippet:SetLogLevel -import { setLogLevel } from "@azure/logger"; - +```javascript +const { setLogLevel } = require("@azure/logger"); setLogLevel("info"); ``` @@ -108,7 +98,7 @@ If you'd like to contribute to this library, please read the [contributing guide - [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js) - +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fcdn%2Farm-cdn%2FREADME.png) [azure_cli]: https://learn.microsoft.com/cli/azure [azure_sub]: https://azure.microsoft.com/free/ diff --git a/sdk/cdn/arm-cdn/_meta.json b/sdk/cdn/arm-cdn/_meta.json index 314e5e8111f1..8fa2356c8549 100644 --- a/sdk/cdn/arm-cdn/_meta.json +++ b/sdk/cdn/arm-cdn/_meta.json @@ -1,8 +1,8 @@ { - "commit": "835b124ff8160d23823c0e770b4989ca79e7418c", + "commit": "ba3633d80c40c8b0ace4f6e3207d337b99cdde9e", "readme": "specification/cdn/resource-manager/readme.md", - "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\cdn\\resource-manager\\readme.md --use=@autorest/typescript@6.0.20 --generate-sample=true", + "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/cdn/resource-manager/readme.md --use=@autorest/typescript@^6.0.12", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.7.4", - "use": "@autorest/typescript@6.0.20" + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.21", + "use": "@autorest/typescript@^6.0.12" } \ 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 79d4cf7e87ec..4e06829a9405 100644 --- a/sdk/cdn/arm-cdn/api-extractor.json +++ b/sdk/cdn/arm-cdn/api-extractor.json @@ -1,6 +1,6 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "dist/esm/index.d.ts", + "mainEntryPointFilePath": "./dist-esm/src/index.d.ts", "docModel": { "enabled": true }, @@ -11,7 +11,7 @@ "dtsRollup": { "enabled": true, "untrimmedFilePath": "", - "publicTrimmedFilePath": "dist/arm-cdn.d.ts" + "publicTrimmedFilePath": "./types/arm-cdn.d.ts" }, "messages": { "tsdocMessageReporting": { @@ -28,4 +28,4 @@ } } } -} +} \ No newline at end of file diff --git a/sdk/cdn/arm-cdn/package.json b/sdk/cdn/arm-cdn/package.json index 26dc82b26ce5..d7efc3b46de8 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": "9.1.1", + "version": "10.0.0", "engines": { "node": ">=18.0.0" }, @@ -11,9 +11,9 @@ "@azure/abort-controller": "^2.1.2", "@azure/core-auth": "^1.9.0", "@azure/core-client": "^1.9.2", - "@azure/core-lro": "^2.7.2", + "@azure/core-lro": "^2.5.4", "@azure/core-paging": "^1.6.2", - "@azure/core-rest-pipeline": "^1.18.2", + "@azure/core-rest-pipeline": "^1.19.0", "tslib": "^2.8.1" }, "keywords": [ @@ -21,29 +21,30 @@ "azure", "typescript", "browser", - "isomorphic", - "cloud" + "isomorphic" ], "license": "MIT", "main": "./dist/commonjs/index.js", - "module": "./dist/esm/index.js", + "module": "./dist-esm/src/index.js", "types": "./dist/commonjs/index.d.ts", "devDependencies": { "@azure-tools/test-credential": "^2.0.0", "@azure-tools/test-recorder": "^4.1.0", "@azure-tools/test-utils-vitest": "^1.0.0", "@azure/dev-tool": "^1.0.0", - "@azure/identity": "^4.5.0", - "@azure/logger": "^1.1.4", + "@azure/identity": "^4.7.0", "@types/node": "^18.0.0", - "@vitest/browser": "^3.0.3", - "@vitest/coverage-istanbul": "^3.0.3", + "@vitest/browser": "^3.0.6", + "@vitest/coverage-istanbul": "^3.0.6", "dotenv": "^16.0.0", - "playwright": "^1.49.1", - "typescript": "~5.7.2", - "vitest": "^3.0.3" + "playwright": "^1.50.1", + "typescript": "~5.6.2", + "vitest": "^3.0.6" + }, + "repository": { + "type": "git", + "url": "https://github.com/Azure/azure-sdk-for-js.git" }, - "repository": "github:Azure/azure-sdk-for-js", "bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" }, @@ -78,7 +79,7 @@ "unit-test": "npm run unit-test:node && npm run unit-test:browser", "unit-test:browser": "echo skipped", "unit-test:node": "dev-tool run test:vitest", - "update-snippets": "dev-tool run update-snippets" + "update-snippets": "echo skipped" }, "sideEffects": false, "//metadata": { @@ -91,14 +92,6 @@ }, "autoPublish": true, "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/cdn/arm-cdn", - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://learn.microsoft.com/javascript/api/@azure/arm-cdn?view=azure-node-preview" - }, "type": "module", "tshy": { "project": "./tsconfig.src.json", @@ -139,4 +132,4 @@ } } } -} +} \ 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 6e315048b60d..ea8e70ae8a14 100644 --- a/sdk/cdn/arm-cdn/review/arm-cdn.api.md +++ b/sdk/cdn/arm-cdn/review/arm-cdn.api.md @@ -707,19 +707,17 @@ export interface CacheConfiguration { } // @public -export interface CacheExpirationActionParameters { +export interface CacheExpirationActionParameters extends DeliveryRuleActionParameters { cacheBehavior: CacheBehavior; cacheDuration?: string; cacheType: CacheType; - // (undocumented) typeName: "DeliveryRuleCacheExpirationActionParameters"; } // @public -export interface CacheKeyQueryStringActionParameters { +export interface CacheKeyQueryStringActionParameters extends DeliveryRuleActionParameters { queryParameters?: string; queryStringBehavior: QueryStringBehavior; - // (undocumented) typeName: "DeliveryRuleCacheKeyQueryStringBehaviorActionParameters"; } @@ -745,9 +743,8 @@ export interface CanMigrateResult { } // @public -export interface CdnCertificateSourceParameters { +export interface CdnCertificateSourceParameters extends CertificateSourceParameters { certificateType: CertificateType; - // (undocumented) typeName: "CdnCertificateSourceParameters"; } @@ -827,6 +824,12 @@ export interface CdnManagementClientOptionalParams extends coreClient.ServiceCli endpoint?: string; } +// @public +export interface CdnMigrationToAfdParameters { + migrationEndpointMappings?: MigrationEndpointMapping[]; + sku: Sku; +} + // @public export interface CdnWebApplicationFirewallPolicy extends TrackedResource { customRules?: CustomRuleList; @@ -866,6 +869,17 @@ export interface Certificate { // @public export type CertificateSource = string; +// @public +export interface CertificateSourceParameters { + typeName: "CdnCertificateSourceParameters" | "KeyVaultCertificateSourceParameters"; +} + +// @public +export type CertificateSourceParametersType = string; + +// @public (undocumented) +export type CertificateSourceParametersUnion = CertificateSourceParameters | CdnCertificateSourceParameters | KeyVaultCertificateSourceParameters; + // @public export type CertificateType = string; @@ -930,12 +944,11 @@ export interface CidrIpAddress { } // @public -export interface ClientPortMatchConditionParameters { +export interface ClientPortMatchConditionParameters extends DeliveryRuleConditionParameters { matchValues?: string[]; negateCondition?: boolean; operator: ClientPortOperator; transforms?: Transform[]; - // (undocumented) typeName: "DeliveryRuleClientPortConditionParameters"; } @@ -997,13 +1010,12 @@ export interface ContinentsResponseCountryOrRegionsItem { } // @public -export interface CookiesMatchConditionParameters { +export interface CookiesMatchConditionParameters extends DeliveryRuleConditionParameters { matchValues?: string[]; negateCondition?: boolean; operator: CookiesOperator; selector?: string; transforms?: Transform[]; - // (undocumented) typeName: "DeliveryRuleCookiesConditionParameters"; } @@ -1222,31 +1234,42 @@ export type DeleteRule = string; // @public export interface DeliveryRule { - actions: DeliveryRuleActionAutoGeneratedUnion[]; + actions: DeliveryRuleActionUnion[]; conditions?: DeliveryRuleConditionUnion[]; name?: string; order: number; } // @public -export type DeliveryRuleAction = string; +export interface DeliveryRuleAction { + name: "UrlRedirect" | "UrlSigning" | "OriginGroupOverride" | "UrlRewrite" | "ModifyRequestHeader" | "ModifyResponseHeader" | "CacheExpiration" | "CacheKeyQueryString" | "RouteConfigurationOverride"; +} // @public -export interface DeliveryRuleActionAutoGenerated { - name: "UrlRedirect" | "UrlSigning" | "OriginGroupOverride" | "UrlRewrite" | "ModifyRequestHeader" | "ModifyResponseHeader" | "CacheExpiration" | "CacheKeyQueryString" | "RouteConfigurationOverride"; +export type DeliveryRuleActionName = string; + +// @public +export interface DeliveryRuleActionParameters { + typeName: "DeliveryRuleUrlRedirectActionParameters" | "DeliveryRuleUrlSigningActionParameters" | "DeliveryRuleOriginGroupOverrideActionParameters" | "DeliveryRuleUrlRewriteActionParameters" | "DeliveryRuleHeaderActionParameters" | "DeliveryRuleCacheExpirationActionParameters" | "DeliveryRuleCacheKeyQueryStringBehaviorActionParameters" | "DeliveryRuleRouteConfigurationOverrideActionParameters"; } +// @public +export type DeliveryRuleActionParametersType = string; + +// @public (undocumented) +export type DeliveryRuleActionParametersUnion = DeliveryRuleActionParameters | UrlRedirectActionParameters | UrlSigningActionParameters | OriginGroupOverrideActionParameters | UrlRewriteActionParameters | HeaderActionParameters | CacheExpirationActionParameters | CacheKeyQueryStringActionParameters | RouteConfigurationOverrideActionParameters; + // @public (undocumented) -export type DeliveryRuleActionAutoGeneratedUnion = DeliveryRuleActionAutoGenerated | UrlRedirectAction | UrlSigningAction | OriginGroupOverrideAction | UrlRewriteAction | DeliveryRuleRequestHeaderAction | DeliveryRuleResponseHeaderAction | DeliveryRuleCacheExpirationAction | DeliveryRuleCacheKeyQueryStringAction | DeliveryRuleRouteConfigurationOverrideAction; +export type DeliveryRuleActionUnion = DeliveryRuleAction | UrlRedirectAction | UrlSigningAction | OriginGroupOverrideAction | UrlRewriteAction | DeliveryRuleRequestHeaderAction | DeliveryRuleResponseHeaderAction | DeliveryRuleCacheExpirationAction | DeliveryRuleCacheKeyQueryStringAction | DeliveryRuleRouteConfigurationOverrideAction; // @public -export interface DeliveryRuleCacheExpirationAction extends DeliveryRuleActionAutoGenerated { +export interface DeliveryRuleCacheExpirationAction extends DeliveryRuleAction { name: "CacheExpiration"; parameters: CacheExpirationActionParameters; } // @public -export interface DeliveryRuleCacheKeyQueryStringAction extends DeliveryRuleActionAutoGenerated { +export interface DeliveryRuleCacheKeyQueryStringAction extends DeliveryRuleAction { name: "CacheKeyQueryString"; parameters: CacheKeyQueryStringActionParameters; } @@ -1262,6 +1285,17 @@ export interface DeliveryRuleCondition { name: "RemoteAddress" | "RequestMethod" | "QueryString" | "PostArgs" | "RequestUri" | "RequestHeader" | "RequestBody" | "RequestScheme" | "UrlPath" | "UrlFileExtension" | "UrlFileName" | "HttpVersion" | "Cookies" | "IsDevice" | "SocketAddr" | "ClientPort" | "ServerPort" | "HostName" | "SslProtocol"; } +// @public +export interface DeliveryRuleConditionParameters { + typeName: "DeliveryRuleRemoteAddressConditionParameters" | "DeliveryRuleRequestMethodConditionParameters" | "DeliveryRuleQueryStringConditionParameters" | "DeliveryRulePostArgsConditionParameters" | "DeliveryRuleRequestUriConditionParameters" | "DeliveryRuleRequestHeaderConditionParameters" | "DeliveryRuleRequestBodyConditionParameters" | "DeliveryRuleRequestSchemeConditionParameters" | "DeliveryRuleUrlPathMatchConditionParameters" | "DeliveryRuleUrlFileExtensionMatchConditionParameters" | "DeliveryRuleUrlFilenameConditionParameters" | "DeliveryRuleHttpVersionConditionParameters" | "DeliveryRuleCookiesConditionParameters" | "DeliveryRuleIsDeviceConditionParameters" | "DeliveryRuleSocketAddrConditionParameters" | "DeliveryRuleClientPortConditionParameters" | "DeliveryRuleServerPortConditionParameters" | "DeliveryRuleHostNameConditionParameters" | "DeliveryRuleSslProtocolConditionParameters"; +} + +// @public +export type DeliveryRuleConditionParametersType = string; + +// @public (undocumented) +export type DeliveryRuleConditionParametersUnion = DeliveryRuleConditionParameters | RemoteAddressMatchConditionParameters | RequestMethodMatchConditionParameters | QueryStringMatchConditionParameters | PostArgsMatchConditionParameters | RequestUriMatchConditionParameters | RequestHeaderMatchConditionParameters | RequestBodyMatchConditionParameters | RequestSchemeMatchConditionParameters | UrlPathMatchConditionParameters | UrlFileExtensionMatchConditionParameters | UrlFileNameMatchConditionParameters | HttpVersionMatchConditionParameters | CookiesMatchConditionParameters | IsDeviceMatchConditionParameters | SocketAddrMatchConditionParameters | ClientPortMatchConditionParameters | ServerPortMatchConditionParameters | HostNameMatchConditionParameters | SslProtocolMatchConditionParameters; + // @public (undocumented) export type DeliveryRuleConditionUnion = DeliveryRuleCondition | DeliveryRuleRemoteAddressCondition | DeliveryRuleRequestMethodCondition | DeliveryRuleQueryStringCondition | DeliveryRulePostArgsCondition | DeliveryRuleRequestUriCondition | DeliveryRuleRequestHeaderCondition | DeliveryRuleRequestBodyCondition | DeliveryRuleRequestSchemeCondition | DeliveryRuleUrlPathCondition | DeliveryRuleUrlFileExtensionCondition | DeliveryRuleUrlFileNameCondition | DeliveryRuleHttpVersionCondition | DeliveryRuleCookiesCondition | DeliveryRuleIsDeviceCondition | DeliveryRuleSocketAddrCondition | DeliveryRuleClientPortCondition | DeliveryRuleServerPortCondition | DeliveryRuleHostNameCondition | DeliveryRuleSslProtocolCondition; @@ -1314,7 +1348,7 @@ export interface DeliveryRuleRequestBodyCondition extends DeliveryRuleCondition } // @public -export interface DeliveryRuleRequestHeaderAction extends DeliveryRuleActionAutoGenerated { +export interface DeliveryRuleRequestHeaderAction extends DeliveryRuleAction { name: "ModifyRequestHeader"; parameters: HeaderActionParameters; } @@ -1344,13 +1378,13 @@ export interface DeliveryRuleRequestUriCondition extends DeliveryRuleCondition { } // @public -export interface DeliveryRuleResponseHeaderAction extends DeliveryRuleActionAutoGenerated { +export interface DeliveryRuleResponseHeaderAction extends DeliveryRuleAction { name: "ModifyResponseHeader"; parameters: HeaderActionParameters; } // @public -export interface DeliveryRuleRouteConfigurationOverrideAction extends DeliveryRuleActionAutoGenerated { +export interface DeliveryRuleRouteConfigurationOverrideAction extends DeliveryRuleAction { name: "RouteConfigurationOverride"; parameters: RouteConfigurationOverrideActionParameters; } @@ -1722,6 +1756,11 @@ export interface ErrorResponse { error?: ErrorDetail; } +// @public +export interface ErrorResponseAutoGenerated { + error?: ErrorDetail; +} + // @public export type ForwardingProtocol = string; @@ -1742,10 +1781,9 @@ export function getContinuationToken(page: unknown): string | undefined; export type HeaderAction = string; // @public -export interface HeaderActionParameters { +export interface HeaderActionParameters extends DeliveryRuleActionParameters { headerAction: HeaderAction; headerName: string; - // (undocumented) typeName: "DeliveryRuleHeaderActionParameters"; value?: string; } @@ -1762,12 +1800,11 @@ export interface HealthProbeParameters { export type HealthProbeRequestType = "NotSet" | "GET" | "HEAD"; // @public -export interface HostNameMatchConditionParameters { +export interface HostNameMatchConditionParameters extends DeliveryRuleConditionParameters { matchValues?: string[]; negateCondition?: boolean; operator: HostNameOperator; transforms?: Transform[]; - // (undocumented) typeName: "DeliveryRuleHostNameConditionParameters"; } @@ -1784,12 +1821,11 @@ export interface HttpErrorRangeParameters { export type HttpsRedirect = string; // @public -export interface HttpVersionMatchConditionParameters { +export interface HttpVersionMatchConditionParameters extends DeliveryRuleConditionParameters { matchValues?: string[]; negateCondition?: boolean; operator: HttpVersionOperator; transforms?: Transform[]; - // (undocumented) typeName: "DeliveryRuleHttpVersionConditionParameters"; } @@ -1807,29 +1843,27 @@ export interface IpAddressGroup { } // @public -export interface IsDeviceMatchConditionParameters { - matchValues?: IsDeviceMatchConditionParametersMatchValuesItem[]; +export interface IsDeviceMatchConditionParameters extends DeliveryRuleConditionParameters { + matchValues?: IsDeviceMatchValue[]; negateCondition?: boolean; operator: IsDeviceOperator; transforms?: Transform[]; - // (undocumented) typeName: "DeliveryRuleIsDeviceConditionParameters"; } // @public -export type IsDeviceMatchConditionParametersMatchValuesItem = string; +export type IsDeviceMatchValue = string; // @public export type IsDeviceOperator = string; // @public -export interface KeyVaultCertificateSourceParameters { +export interface KeyVaultCertificateSourceParameters extends CertificateSourceParameters { deleteRule: DeleteRule; resourceGroupName: string; secretName: string; secretVersion?: string; subscriptionId: string; - // (undocumented) typeName: "KeyVaultCertificateSourceParameters"; updateRule: UpdateRule; vaultName: string; @@ -1842,10 +1876,13 @@ export interface KeyVaultSigningKeyParameters { secretVersion: string; subscriptionId: string; // (undocumented) - typeName: "KeyVaultSigningKeyParameters"; + typeName: KeyVaultSigningKeyParametersType; vaultName: string; } +// @public +export type KeyVaultSigningKeyParametersType = string; + // @public export enum KnownActionType { Allow = "Allow", @@ -1921,6 +1958,12 @@ export enum KnownCertificateSource { Cdn = "Cdn" } +// @public +export enum KnownCertificateSourceParametersType { + CdnCertificateSourceParameters = "CdnCertificateSourceParameters", + KeyVaultCertificateSourceParameters = "KeyVaultCertificateSourceParameters" +} + // @public export enum KnownCertificateType { Dedicated = "Dedicated", @@ -1997,7 +2040,7 @@ export enum KnownDeleteRule { } // @public -export enum KnownDeliveryRuleAction { +export enum KnownDeliveryRuleActionName { CacheExpiration = "CacheExpiration", CacheKeyQueryString = "CacheKeyQueryString", ModifyRequestHeader = "ModifyRequestHeader", @@ -2009,6 +2052,41 @@ export enum KnownDeliveryRuleAction { UrlSigning = "UrlSigning" } +// @public +export enum KnownDeliveryRuleActionParametersType { + DeliveryRuleCacheExpirationActionParameters = "DeliveryRuleCacheExpirationActionParameters", + DeliveryRuleCacheKeyQueryStringBehaviorActionParameters = "DeliveryRuleCacheKeyQueryStringBehaviorActionParameters", + DeliveryRuleHeaderActionParameters = "DeliveryRuleHeaderActionParameters", + DeliveryRuleOriginGroupOverrideActionParameters = "DeliveryRuleOriginGroupOverrideActionParameters", + DeliveryRuleRouteConfigurationOverrideActionParameters = "DeliveryRuleRouteConfigurationOverrideActionParameters", + DeliveryRuleUrlRedirectActionParameters = "DeliveryRuleUrlRedirectActionParameters", + DeliveryRuleUrlRewriteActionParameters = "DeliveryRuleUrlRewriteActionParameters", + DeliveryRuleUrlSigningActionParameters = "DeliveryRuleUrlSigningActionParameters" +} + +// @public +export enum KnownDeliveryRuleConditionParametersType { + DeliveryRuleClientPortConditionParameters = "DeliveryRuleClientPortConditionParameters", + DeliveryRuleCookiesConditionParameters = "DeliveryRuleCookiesConditionParameters", + DeliveryRuleHostNameConditionParameters = "DeliveryRuleHostNameConditionParameters", + DeliveryRuleHttpVersionConditionParameters = "DeliveryRuleHttpVersionConditionParameters", + DeliveryRuleIsDeviceConditionParameters = "DeliveryRuleIsDeviceConditionParameters", + DeliveryRulePostArgsConditionParameters = "DeliveryRulePostArgsConditionParameters", + DeliveryRuleQueryStringConditionParameters = "DeliveryRuleQueryStringConditionParameters", + DeliveryRuleRemoteAddressConditionParameters = "DeliveryRuleRemoteAddressConditionParameters", + DeliveryRuleRequestBodyConditionParameters = "DeliveryRuleRequestBodyConditionParameters", + DeliveryRuleRequestHeaderConditionParameters = "DeliveryRuleRequestHeaderConditionParameters", + DeliveryRuleRequestMethodConditionParameters = "DeliveryRuleRequestMethodConditionParameters", + DeliveryRuleRequestSchemeConditionParameters = "DeliveryRuleRequestSchemeConditionParameters", + DeliveryRuleRequestUriConditionParameters = "DeliveryRuleRequestUriConditionParameters", + DeliveryRuleServerPortConditionParameters = "DeliveryRuleServerPortConditionParameters", + DeliveryRuleSocketAddrConditionParameters = "DeliveryRuleSocketAddrConditionParameters", + DeliveryRuleSslProtocolConditionParameters = "DeliveryRuleSslProtocolConditionParameters", + DeliveryRuleUrlFileExtensionMatchConditionParameters = "DeliveryRuleUrlFileExtensionMatchConditionParameters", + DeliveryRuleUrlFilenameConditionParameters = "DeliveryRuleUrlFilenameConditionParameters", + DeliveryRuleUrlPathMatchConditionParameters = "DeliveryRuleUrlPathMatchConditionParameters" +} + // @public export enum KnownDeploymentStatus { Failed = "Failed", @@ -2110,7 +2188,7 @@ export enum KnownIdentityType { } // @public -export enum KnownIsDeviceMatchConditionParametersMatchValuesItem { +export enum KnownIsDeviceMatchValue { Desktop = "Desktop", Mobile = "Mobile" } @@ -2120,6 +2198,11 @@ export enum KnownIsDeviceOperator { Equal = "Equal" } +// @public +export enum KnownKeyVaultSigningKeyParametersType { + KeyVaultSigningKeyParameters = "KeyVaultSigningKeyParameters" +} + // @public export enum KnownLinkToDefaultDomain { Disabled = "Disabled", @@ -2454,7 +2537,7 @@ export enum KnownRequestHeaderOperator { } // @public -export enum KnownRequestMethodMatchConditionParametersMatchValuesItem { +export enum KnownRequestMethodMatchValue { Delete = "DELETE", GET = "GET", Head = "HEAD", @@ -2470,7 +2553,7 @@ export enum KnownRequestMethodOperator { } // @public -export enum KnownRequestSchemeMatchConditionParametersMatchValuesItem { +export enum KnownRequestSchemeMatchValue { Http = "HTTP", Https = "HTTPS" } @@ -3035,6 +3118,12 @@ export interface MigrateResult { readonly type?: string; } +// @public +export interface MigrationEndpointMapping { + migratedFrom?: string; + migratedTo?: string; +} + // @public export interface MigrationErrorType { readonly code?: string; @@ -3149,15 +3238,14 @@ export interface OriginGroupOverride { } // @public -export interface OriginGroupOverrideAction extends DeliveryRuleActionAutoGenerated { +export interface OriginGroupOverrideAction extends DeliveryRuleAction { name: "OriginGroupOverride"; parameters: OriginGroupOverrideActionParameters; } // @public -export interface OriginGroupOverrideActionParameters { +export interface OriginGroupOverrideActionParameters extends DeliveryRuleActionParameters { originGroup: ResourceReference; - // (undocumented) typeName: "DeliveryRuleOriginGroupOverrideActionParameters"; } @@ -3479,13 +3567,12 @@ export interface PolicySettings { export type PolicySettingsDefaultCustomBlockResponseStatusCode = number; // @public -export interface PostArgsMatchConditionParameters { +export interface PostArgsMatchConditionParameters extends DeliveryRuleConditionParameters { matchValues?: string[]; negateCondition?: boolean; operator: PostArgsOperator; selector?: string; transforms?: Transform[]; - // (undocumented) typeName: "DeliveryRulePostArgsConditionParameters"; } @@ -3541,12 +3628,18 @@ export type ProfileResourceState = string; export interface Profiles { beginCanMigrate(resourceGroupName: string, canMigrateParameters: CanMigrateParameters, options?: ProfilesCanMigrateOptionalParams): Promise, ProfilesCanMigrateResponse>>; beginCanMigrateAndWait(resourceGroupName: string, canMigrateParameters: CanMigrateParameters, options?: ProfilesCanMigrateOptionalParams): Promise; + beginCdnCanMigrateToAfd(resourceGroupName: string, profileName: string, options?: ProfilesCdnCanMigrateToAfdOptionalParams): Promise, ProfilesCdnCanMigrateToAfdResponse>>; + beginCdnCanMigrateToAfdAndWait(resourceGroupName: string, profileName: string, options?: ProfilesCdnCanMigrateToAfdOptionalParams): Promise; + beginCdnMigrateToAfd(resourceGroupName: string, profileName: string, migrationParameters: CdnMigrationToAfdParameters, options?: ProfilesCdnMigrateToAfdOptionalParams): Promise, ProfilesCdnMigrateToAfdResponse>>; + beginCdnMigrateToAfdAndWait(resourceGroupName: string, profileName: string, migrationParameters: CdnMigrationToAfdParameters, options?: ProfilesCdnMigrateToAfdOptionalParams): Promise; beginCreate(resourceGroupName: string, profileName: string, profile: Profile, options?: ProfilesCreateOptionalParams): Promise, ProfilesCreateResponse>>; beginCreateAndWait(resourceGroupName: string, profileName: string, profile: Profile, options?: ProfilesCreateOptionalParams): Promise; beginDelete(resourceGroupName: string, profileName: string, options?: ProfilesDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, profileName: string, options?: ProfilesDeleteOptionalParams): Promise; beginMigrate(resourceGroupName: string, migrationParameters: MigrationParameters, options?: ProfilesMigrateOptionalParams): Promise, ProfilesMigrateResponse>>; beginMigrateAndWait(resourceGroupName: string, migrationParameters: MigrationParameters, options?: ProfilesMigrateOptionalParams): Promise; + beginMigrationAbort(resourceGroupName: string, profileName: string, options?: ProfilesMigrationAbortOptionalParams): Promise, ProfilesMigrationAbortResponse>>; + beginMigrationAbortAndWait(resourceGroupName: string, profileName: string, options?: ProfilesMigrationAbortOptionalParams): Promise; beginMigrationCommit(resourceGroupName: string, profileName: string, options?: ProfilesMigrationCommitOptionalParams): Promise, void>>; beginMigrationCommitAndWait(resourceGroupName: string, profileName: string, options?: ProfilesMigrationCommitOptionalParams): Promise; beginUpdate(resourceGroupName: string, profileName: string, profileUpdateParameters: ProfileUpdateParameters, options?: ProfilesUpdateOptionalParams): Promise, ProfilesUpdateResponse>>; @@ -3574,6 +3667,36 @@ export interface ProfilesCanMigrateOptionalParams extends coreClient.OperationOp // @public export type ProfilesCanMigrateResponse = CanMigrateResult; +// @public +export interface ProfilesCdnCanMigrateToAfdHeaders { + // (undocumented) + location?: string; +} + +// @public +export interface ProfilesCdnCanMigrateToAfdOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ProfilesCdnCanMigrateToAfdResponse = CanMigrateResult; + +// @public +export interface ProfilesCdnMigrateToAfdHeaders { + // (undocumented) + location?: string; +} + +// @public +export interface ProfilesCdnMigrateToAfdOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ProfilesCdnMigrateToAfdResponse = MigrateResult; + // @public export interface ProfilesCreateHeaders { // (undocumented) @@ -3690,6 +3813,21 @@ export interface ProfilesMigrateOptionalParams extends coreClient.OperationOptio // @public export type ProfilesMigrateResponse = MigrateResult; +// @public +export interface ProfilesMigrationAbortHeaders { + // (undocumented) + location?: string; +} + +// @public +export interface ProfilesMigrationAbortOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ProfilesMigrationAbortResponse = ProfilesMigrationAbortHeaders; + // @public export interface ProfilesMigrationCommitHeaders { // (undocumented) @@ -3754,12 +3892,11 @@ export type QueryStringBehavior = string; export type QueryStringCachingBehavior = "IgnoreQueryString" | "BypassCaching" | "UseQueryString" | "NotSet"; // @public -export interface QueryStringMatchConditionParameters { +export interface QueryStringMatchConditionParameters extends DeliveryRuleConditionParameters { matchValues?: string[]; negateCondition?: boolean; operator: QueryStringOperator; transforms?: Transform[]; - // (undocumented) typeName: "DeliveryRuleQueryStringConditionParameters"; } @@ -3817,12 +3954,11 @@ export interface RateLimitRuleList { export type RedirectType = string; // @public -export interface RemoteAddressMatchConditionParameters { +export interface RemoteAddressMatchConditionParameters extends DeliveryRuleConditionParameters { matchValues?: string[]; negateCondition?: boolean; operator: RemoteAddressOperator; transforms?: Transform[]; - // (undocumented) typeName: "DeliveryRuleRemoteAddressConditionParameters"; } @@ -3830,12 +3966,11 @@ export interface RemoteAddressMatchConditionParameters { export type RemoteAddressOperator = string; // @public -export interface RequestBodyMatchConditionParameters { +export interface RequestBodyMatchConditionParameters extends DeliveryRuleConditionParameters { matchValues?: string[]; negateCondition?: boolean; operator: RequestBodyOperator; transforms?: Transform[]; - // (undocumented) typeName: "DeliveryRuleRequestBodyConditionParameters"; } @@ -3843,13 +3978,12 @@ export interface RequestBodyMatchConditionParameters { export type RequestBodyOperator = string; // @public -export interface RequestHeaderMatchConditionParameters { +export interface RequestHeaderMatchConditionParameters extends DeliveryRuleConditionParameters { matchValues?: string[]; negateCondition?: boolean; operator: RequestHeaderOperator; selector?: string; transforms?: Transform[]; - // (undocumented) typeName: "DeliveryRuleRequestHeaderConditionParameters"; } @@ -3857,41 +3991,38 @@ export interface RequestHeaderMatchConditionParameters { export type RequestHeaderOperator = string; // @public -export interface RequestMethodMatchConditionParameters { - matchValues?: RequestMethodMatchConditionParametersMatchValuesItem[]; +export interface RequestMethodMatchConditionParameters extends DeliveryRuleConditionParameters { + matchValues?: RequestMethodMatchValue[]; negateCondition?: boolean; operator: RequestMethodOperator; transforms?: Transform[]; - // (undocumented) typeName: "DeliveryRuleRequestMethodConditionParameters"; } // @public -export type RequestMethodMatchConditionParametersMatchValuesItem = string; +export type RequestMethodMatchValue = string; // @public export type RequestMethodOperator = string; // @public -export interface RequestSchemeMatchConditionParameters { - matchValues?: RequestSchemeMatchConditionParametersMatchValuesItem[]; +export interface RequestSchemeMatchConditionParameters extends DeliveryRuleConditionParameters { + matchValues?: RequestSchemeMatchValue[]; negateCondition?: boolean; operator: "Equal"; transforms?: Transform[]; - // (undocumented) typeName: "DeliveryRuleRequestSchemeConditionParameters"; } // @public -export type RequestSchemeMatchConditionParametersMatchValuesItem = string; +export type RequestSchemeMatchValue = string; // @public -export interface RequestUriMatchConditionParameters { +export interface RequestUriMatchConditionParameters extends DeliveryRuleConditionParameters { matchValues?: string[]; negateCondition?: boolean; operator: RequestUriOperator; transforms?: Transform[]; - // (undocumented) typeName: "DeliveryRuleRequestUriConditionParameters"; } @@ -4023,10 +4154,9 @@ export interface Route extends ProxyResource { } // @public -export interface RouteConfigurationOverrideActionParameters { +export interface RouteConfigurationOverrideActionParameters extends DeliveryRuleActionParameters { cacheConfiguration?: CacheConfiguration; originGroupOverride?: OriginGroupOverride; - // (undocumented) typeName: "DeliveryRuleRouteConfigurationOverrideActionParameters"; } @@ -4149,7 +4279,7 @@ export interface RouteUpdatePropertiesParameters { // @public export interface Rule extends ProxyResource { - actions?: DeliveryRuleActionAutoGeneratedUnion[]; + actions?: DeliveryRuleActionUnion[]; conditions?: DeliveryRuleConditionUnion[]; readonly deploymentStatus?: DeploymentStatus; matchProcessingBehavior?: MatchProcessingBehavior; @@ -4336,7 +4466,7 @@ export type RulesUpdateResponse = Rule; // @public export interface RuleUpdateParameters { - actions?: DeliveryRuleActionAutoGeneratedUnion[]; + actions?: DeliveryRuleActionUnion[]; conditions?: DeliveryRuleConditionUnion[]; matchProcessingBehavior?: MatchProcessingBehavior; order?: number; @@ -4345,7 +4475,7 @@ export interface RuleUpdateParameters { // @public export interface RuleUpdatePropertiesParameters { - actions?: DeliveryRuleActionAutoGeneratedUnion[]; + actions?: DeliveryRuleActionUnion[]; conditions?: DeliveryRuleConditionUnion[]; matchProcessingBehavior?: MatchProcessingBehavior; order?: number; @@ -4575,12 +4705,11 @@ export interface SecurityPolicyWebApplicationFirewallParameters extends Security } // @public -export interface ServerPortMatchConditionParameters { +export interface ServerPortMatchConditionParameters extends DeliveryRuleConditionParameters { matchValues?: string[]; negateCondition?: boolean; operator: ServerPortOperator; transforms?: Transform[]; - // (undocumented) typeName: "DeliveryRuleServerPortConditionParameters"; } @@ -4614,12 +4743,11 @@ export interface Sku { export type SkuName = string; // @public -export interface SocketAddrMatchConditionParameters { +export interface SocketAddrMatchConditionParameters extends DeliveryRuleConditionParameters { matchValues?: string[]; negateCondition?: boolean; operator: SocketAddrOperator; transforms?: Transform[]; - // (undocumented) typeName: "DeliveryRuleSocketAddrConditionParameters"; } @@ -4630,12 +4758,11 @@ export type SocketAddrOperator = string; export type SslProtocol = string; // @public -export interface SslProtocolMatchConditionParameters { +export interface SslProtocolMatchConditionParameters extends DeliveryRuleConditionParameters { matchValues?: SslProtocol[]; negateCondition?: boolean; operator: SslProtocolOperator; transforms?: Transform[]; - // (undocumented) typeName: "DeliveryRuleSslProtocolConditionParameters"; } @@ -4683,12 +4810,11 @@ export type TransformType = string; export type UpdateRule = string; // @public -export interface UrlFileExtensionMatchConditionParameters { +export interface UrlFileExtensionMatchConditionParameters extends DeliveryRuleConditionParameters { matchValues?: string[]; negateCondition?: boolean; operator: UrlFileExtensionOperator; transforms?: Transform[]; - // (undocumented) typeName: "DeliveryRuleUrlFileExtensionMatchConditionParameters"; } @@ -4696,12 +4822,11 @@ export interface UrlFileExtensionMatchConditionParameters { export type UrlFileExtensionOperator = string; // @public -export interface UrlFileNameMatchConditionParameters { +export interface UrlFileNameMatchConditionParameters extends DeliveryRuleConditionParameters { matchValues?: string[]; negateCondition?: boolean; operator: UrlFileNameOperator; transforms?: Transform[]; - // (undocumented) typeName: "DeliveryRuleUrlFilenameConditionParameters"; } @@ -4709,12 +4834,11 @@ export interface UrlFileNameMatchConditionParameters { export type UrlFileNameOperator = string; // @public -export interface UrlPathMatchConditionParameters { +export interface UrlPathMatchConditionParameters extends DeliveryRuleConditionParameters { matchValues?: string[]; negateCondition?: boolean; operator: UrlPathOperator; transforms?: Transform[]; - // (undocumented) typeName: "DeliveryRuleUrlPathMatchConditionParameters"; } @@ -4722,49 +4846,46 @@ export interface UrlPathMatchConditionParameters { export type UrlPathOperator = string; // @public -export interface UrlRedirectAction extends DeliveryRuleActionAutoGenerated { +export interface UrlRedirectAction extends DeliveryRuleAction { name: "UrlRedirect"; parameters: UrlRedirectActionParameters; } // @public -export interface UrlRedirectActionParameters { +export interface UrlRedirectActionParameters extends DeliveryRuleActionParameters { customFragment?: string; customHostname?: string; customPath?: string; customQueryString?: string; destinationProtocol?: DestinationProtocol; redirectType: RedirectType; - // (undocumented) typeName: "DeliveryRuleUrlRedirectActionParameters"; } // @public -export interface UrlRewriteAction extends DeliveryRuleActionAutoGenerated { +export interface UrlRewriteAction extends DeliveryRuleAction { name: "UrlRewrite"; parameters: UrlRewriteActionParameters; } // @public -export interface UrlRewriteActionParameters { +export interface UrlRewriteActionParameters extends DeliveryRuleActionParameters { destination: string; preserveUnmatchedPath?: boolean; sourcePattern: string; - // (undocumented) typeName: "DeliveryRuleUrlRewriteActionParameters"; } // @public -export interface UrlSigningAction extends DeliveryRuleActionAutoGenerated { +export interface UrlSigningAction extends DeliveryRuleAction { name: "UrlSigning"; parameters: UrlSigningActionParameters; } // @public -export interface UrlSigningActionParameters { +export interface UrlSigningActionParameters extends DeliveryRuleActionParameters { algorithm?: Algorithm_2; parameterNameOverride?: UrlSigningParamIdentifier[]; - // (undocumented) typeName: "DeliveryRuleUrlSigningActionParameters"; } @@ -4778,7 +4899,7 @@ export interface UrlSigningKey { export interface UrlSigningKeyParameters extends SecretParameters { keyId: string; secretSource: ResourceReference; - secretVersion?: string; + secretVersion: string; type: "UrlSigningKey"; } diff --git a/sdk/cdn/arm-cdn/sample.env b/sdk/cdn/arm-cdn/sample.env index 672847a3fea0..508439fc7d62 100644 --- a/sdk/cdn/arm-cdn/sample.env +++ b/sdk/cdn/arm-cdn/sample.env @@ -1,4 +1 @@ -# App registration secret for AAD authentication -AZURE_CLIENT_SECRET= -AZURE_CLIENT_ID= -AZURE_TENANT_ID= \ No newline at end of file +# Feel free to add your own environment variables. \ No newline at end of file diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdCustomDomainsCreateSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdCustomDomainsCreateSample.ts index b32204a4072f..a3545bffc364 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdCustomDomainsCreateSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdCustomDomainsCreateSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Creates a new domain within the specified profile. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/AFDCustomDomains_Create.json */ -async function afdCustomDomainsCreate() { +async function afdCustomDomainsCreate(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -39,7 +39,7 @@ async function afdCustomDomainsCreate() { console.log(result); } -async function main() { +async function main(): Promise { afdCustomDomainsCreate(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdCustomDomainsDeleteSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdCustomDomainsDeleteSample.ts index 24fdc576575d..21b6e516c3c1 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdCustomDomainsDeleteSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdCustomDomainsDeleteSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Deletes an existing AzureFrontDoor domain with the specified domain name under the specified subscription, resource group and profile. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/AFDCustomDomains_Delete.json */ -async function afdCustomDomainsDelete() { +async function afdCustomDomainsDelete(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -30,7 +30,7 @@ async function afdCustomDomainsDelete() { console.log(result); } -async function main() { +async function main(): Promise { afdCustomDomainsDelete(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdCustomDomainsGetSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdCustomDomainsGetSample.ts index ce9af8f5b4c3..b43ca1370f07 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdCustomDomainsGetSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdCustomDomainsGetSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Gets an existing AzureFrontDoor domain with the specified domain name under the specified subscription, resource group and profile. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/AFDCustomDomains_Get.json */ -async function afdCustomDomainsGet() { +async function afdCustomDomainsGet(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -30,7 +30,7 @@ async function afdCustomDomainsGet() { console.log(result); } -async function main() { +async function main(): Promise { afdCustomDomainsGet(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdCustomDomainsListByProfileSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdCustomDomainsListByProfileSample.ts index 91ae780d8e59..6526984d5c3f 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdCustomDomainsListByProfileSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdCustomDomainsListByProfileSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Lists existing AzureFrontDoor domains. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/AFDCustomDomains_ListByProfile.json */ -async function afdCustomDomainsListByProfile() { +async function afdCustomDomainsListByProfile(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -31,7 +31,7 @@ async function afdCustomDomainsListByProfile() { console.log(resArray); } -async function main() { +async function main(): Promise { afdCustomDomainsListByProfile(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdCustomDomainsRefreshValidationTokenSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdCustomDomainsRefreshValidationTokenSample.ts index 1822fd2c4b45..1bed4f090498 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdCustomDomainsRefreshValidationTokenSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdCustomDomainsRefreshValidationTokenSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Updates the domain validation token. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/AFDCustomDomains_RefreshValidationToken.json */ -async function afdCustomDomainsDelete() { +async function afdCustomDomainsDelete(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -31,7 +31,7 @@ async function afdCustomDomainsDelete() { console.log(result); } -async function main() { +async function main(): Promise { afdCustomDomainsDelete(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdCustomDomainsUpdateSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdCustomDomainsUpdateSample.ts index 88cd05e125b6..566bc6a55c6a 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdCustomDomainsUpdateSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdCustomDomainsUpdateSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Updates an existing domain within a profile. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/AFDCustomDomains_Update.json */ -async function afdCustomDomainsUpdate() { +async function afdCustomDomainsUpdate(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -38,7 +38,7 @@ async function afdCustomDomainsUpdate() { console.log(result); } -async function main() { +async function main(): Promise { afdCustomDomainsUpdate(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdEndpointsCreateSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdEndpointsCreateSample.ts index 9ddcff15b192..19ff3abc3ca4 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdEndpointsCreateSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdEndpointsCreateSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Creates a new AzureFrontDoor endpoint with the specified endpoint name under the specified subscription, resource group and profile. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/AFDEndpoints_Create.json */ -async function afdEndpointsCreate() { +async function afdEndpointsCreate(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -37,7 +37,7 @@ async function afdEndpointsCreate() { console.log(result); } -async function main() { +async function main(): Promise { afdEndpointsCreate(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdEndpointsDeleteSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdEndpointsDeleteSample.ts index 444098c2da2f..90d1e17c2538 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdEndpointsDeleteSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdEndpointsDeleteSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Deletes an existing AzureFrontDoor endpoint with the specified endpoint name under the specified subscription, resource group and profile. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/AFDEndpoints_Delete.json */ -async function afdEndpointsDelete() { +async function afdEndpointsDelete(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -30,7 +30,7 @@ async function afdEndpointsDelete() { console.log(result); } -async function main() { +async function main(): Promise { afdEndpointsDelete(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdEndpointsGetSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdEndpointsGetSample.ts index 3a8c49aecc2b..8a7ad410da19 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdEndpointsGetSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdEndpointsGetSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Gets an existing AzureFrontDoor endpoint with the specified endpoint name under the specified subscription, resource group and profile. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/AFDEndpoints_Get.json */ -async function afdEndpointsGet() { +async function afdEndpointsGet(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -30,7 +30,7 @@ async function afdEndpointsGet() { console.log(result); } -async function main() { +async function main(): Promise { afdEndpointsGet(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdEndpointsListByProfileSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdEndpointsListByProfileSample.ts index 5d2722232195..b6134590410f 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdEndpointsListByProfileSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdEndpointsListByProfileSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Lists existing AzureFrontDoor endpoints. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/AFDEndpoints_ListByProfile.json */ -async function afdEndpointsListByProfile() { +async function afdEndpointsListByProfile(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -31,7 +31,7 @@ async function afdEndpointsListByProfile() { console.log(resArray); } -async function main() { +async function main(): Promise { afdEndpointsListByProfile(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdEndpointsListResourceUsageSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdEndpointsListResourceUsageSample.ts index ea0fbed056c1..bad4464fc764 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdEndpointsListResourceUsageSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdEndpointsListResourceUsageSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Checks the quota and actual usage of endpoints under the given Azure Front Door profile. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/AFDEndpoints_ListResourceUsage.json */ -async function afdEndpointsListResourceUsage() { +async function afdEndpointsListResourceUsage(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -33,7 +33,7 @@ async function afdEndpointsListResourceUsage() { console.log(resArray); } -async function main() { +async function main(): Promise { afdEndpointsListResourceUsage(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdEndpointsPurgeContentSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdEndpointsPurgeContentSample.ts index 7ef540d59b64..d43fb45aab8a 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdEndpointsPurgeContentSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdEndpointsPurgeContentSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Removes a content from AzureFrontDoor. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/AFDEndpoints_PurgeContent.json */ -async function afdEndpointsPurgeContent() { +async function afdEndpointsPurgeContent(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -35,7 +35,7 @@ async function afdEndpointsPurgeContent() { console.log(result); } -async function main() { +async function main(): Promise { afdEndpointsPurgeContent(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdEndpointsUpdateSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdEndpointsUpdateSample.ts index d40e6fb9708f..7df2553ed55f 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdEndpointsUpdateSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdEndpointsUpdateSample.ts @@ -18,7 +18,7 @@ import "dotenv/config"; * @summary Updates an existing AzureFrontDoor endpoint with the specified endpoint name under the specified subscription, resource group and profile. Only tags can be updated after creating an endpoint. To 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. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/AFDEndpoints_Update.json */ -async function afdEndpointsUpdate() { +async function afdEndpointsUpdate(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -38,7 +38,7 @@ async function afdEndpointsUpdate() { console.log(result); } -async function main() { +async function main(): Promise { afdEndpointsUpdate(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdEndpointsValidateCustomDomainSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdEndpointsValidateCustomDomainSample.ts index 25a7a06b2837..d6c020e7350a 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdEndpointsValidateCustomDomainSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdEndpointsValidateCustomDomainSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Validates the custom domain mapping to ensure it maps to the correct Azure Front Door endpoint in DNS. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/AFDEndpoints_ValidateCustomDomain.json */ -async function endpointsValidateCustomDomain() { +async function endpointsValidateCustomDomain(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -34,7 +34,7 @@ async function endpointsValidateCustomDomain() { console.log(result); } -async function main() { +async function main(): Promise { endpointsValidateCustomDomain(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdOriginGroupsCreateSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdOriginGroupsCreateSample.ts index 50c49717252c..22990b94cb95 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdOriginGroupsCreateSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdOriginGroupsCreateSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Creates a new origin group within the specified profile. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/AFDOriginGroups_Create.json */ -async function afdOriginGroupsCreate() { +async function afdOriginGroupsCreate(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -45,7 +45,7 @@ async function afdOriginGroupsCreate() { console.log(result); } -async function main() { +async function main(): Promise { afdOriginGroupsCreate(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdOriginGroupsDeleteSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdOriginGroupsDeleteSample.ts index 1020663671b6..2740d3c0188d 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdOriginGroupsDeleteSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdOriginGroupsDeleteSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Deletes an existing origin group within a profile. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/AFDOriginGroups_Delete.json */ -async function afdOriginGroupsDelete() { +async function afdOriginGroupsDelete(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -30,7 +30,7 @@ async function afdOriginGroupsDelete() { console.log(result); } -async function main() { +async function main(): Promise { afdOriginGroupsDelete(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdOriginGroupsGetSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdOriginGroupsGetSample.ts index 1941d161ea0f..9d451c1605e7 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdOriginGroupsGetSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdOriginGroupsGetSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Gets an existing origin group within a profile. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/AFDOriginGroups_Get.json */ -async function afdOriginGroupsGet() { +async function afdOriginGroupsGet(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -30,7 +30,7 @@ async function afdOriginGroupsGet() { console.log(result); } -async function main() { +async function main(): Promise { afdOriginGroupsGet(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdOriginGroupsListByProfileSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdOriginGroupsListByProfileSample.ts index 9373feb039c0..ab4ba01d2483 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdOriginGroupsListByProfileSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdOriginGroupsListByProfileSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Lists all of the existing origin groups within a profile. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/AFDOriginGroups_ListByProfile.json */ -async function afdOriginGroupsListByProfile() { +async function afdOriginGroupsListByProfile(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -31,7 +31,7 @@ async function afdOriginGroupsListByProfile() { console.log(resArray); } -async function main() { +async function main(): Promise { afdOriginGroupsListByProfile(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdOriginGroupsListResourceUsageSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdOriginGroupsListResourceUsageSample.ts index 398f8f925a76..2a76c3a60456 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdOriginGroupsListResourceUsageSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdOriginGroupsListResourceUsageSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Checks the quota and actual usage of endpoints under the given Azure Front Door profile.. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/AFDOriginGroups_ListResourceUsage.json */ -async function afdOriginGroupsListResourceUsage() { +async function afdOriginGroupsListResourceUsage(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -33,7 +33,7 @@ async function afdOriginGroupsListResourceUsage() { console.log(resArray); } -async function main() { +async function main(): Promise { afdOriginGroupsListResourceUsage(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdOriginGroupsUpdateSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdOriginGroupsUpdateSample.ts index a05b62cf4c88..bf75ddf20d14 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdOriginGroupsUpdateSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdOriginGroupsUpdateSample.ts @@ -18,7 +18,7 @@ import "dotenv/config"; * @summary Updates an existing origin group within a profile. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/AFDOriginGroups_Update.json */ -async function afdOriginGroupsUpdate() { +async function afdOriginGroupsUpdate(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -48,7 +48,7 @@ async function afdOriginGroupsUpdate() { console.log(result); } -async function main() { +async function main(): Promise { afdOriginGroupsUpdate(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdOriginsCreateSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdOriginsCreateSample.ts index 49d9d96c7fa0..d8f69c05aa30 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdOriginsCreateSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdOriginsCreateSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Creates a new origin within the specified origin group. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/AFDOrigins_Create.json */ -async function afdOriginsCreate() { +async function afdOriginsCreate(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -40,7 +40,7 @@ async function afdOriginsCreate() { console.log(result); } -async function main() { +async function main(): Promise { afdOriginsCreate(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdOriginsDeleteSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdOriginsDeleteSample.ts index 092d80772f0c..be835a4521a3 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdOriginsDeleteSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdOriginsDeleteSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Deletes an existing origin within an origin group. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/AFDOrigins_Delete.json */ -async function afdOriginsDelete() { +async function afdOriginsDelete(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -32,7 +32,7 @@ async function afdOriginsDelete() { console.log(result); } -async function main() { +async function main(): Promise { afdOriginsDelete(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdOriginsGetSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdOriginsGetSample.ts index 4d4a0d9d5c39..3f3c962ab3b9 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdOriginsGetSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdOriginsGetSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Gets an existing origin within an origin group. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/AFDOrigins_Get.json */ -async function afdOriginsGet() { +async function afdOriginsGet(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -32,7 +32,7 @@ async function afdOriginsGet() { console.log(result); } -async function main() { +async function main(): Promise { afdOriginsGet(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdOriginsListByOriginGroupSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdOriginsListByOriginGroupSample.ts index d7d5cddce5da..77ba21541538 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdOriginsListByOriginGroupSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdOriginsListByOriginGroupSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Lists all of the existing origins within an origin group. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/AFDOrigins_ListByOriginGroup.json */ -async function afdOriginsListByOriginGroup() { +async function afdOriginsListByOriginGroup(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -33,7 +33,7 @@ async function afdOriginsListByOriginGroup() { console.log(resArray); } -async function main() { +async function main(): Promise { afdOriginsListByOriginGroup(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdOriginsUpdateSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdOriginsUpdateSample.ts index 12a82b0cc7b6..48cb1bf923dc 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdOriginsUpdateSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdOriginsUpdateSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Updates an existing origin within an origin group. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/AFDOrigins_Update.json */ -async function afdOriginsUpdate() { +async function afdOriginsUpdate(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -39,7 +39,7 @@ async function afdOriginsUpdate() { console.log(result); } -async function main() { +async function main(): Promise { afdOriginsUpdate(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdProfilesCheckEndpointNameAvailabilitySample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdProfilesCheckEndpointNameAvailabilitySample.ts index 68b8117f4354..e385cbe9feb1 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdProfilesCheckEndpointNameAvailabilitySample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdProfilesCheckEndpointNameAvailabilitySample.ts @@ -18,7 +18,7 @@ import "dotenv/config"; * @summary Check the availability of an afdx endpoint name, and return the globally unique endpoint host name. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/AFDProfiles_CheckEndpointNameAvailability.json */ -async function checkEndpointNameAvailability() { +async function checkEndpointNameAvailability(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "myResourceGroup"; @@ -39,7 +39,7 @@ async function checkEndpointNameAvailability() { console.log(result); } -async function main() { +async function main(): Promise { checkEndpointNameAvailability(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdProfilesCheckHostNameAvailabilitySample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdProfilesCheckHostNameAvailabilitySample.ts index c3b430bf825d..feb503efca1d 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdProfilesCheckHostNameAvailabilitySample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdProfilesCheckHostNameAvailabilitySample.ts @@ -18,7 +18,7 @@ import "dotenv/config"; * @summary Validates the custom domain mapping to ensure it maps to the correct Azure Front Door endpoint in DNS. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/AFDProfiles_CheckHostNameAvailability.json */ -async function afdProfilesCheckHostNameAvailability() { +async function afdProfilesCheckHostNameAvailability(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -35,7 +35,7 @@ async function afdProfilesCheckHostNameAvailability() { console.log(result); } -async function main() { +async function main(): Promise { afdProfilesCheckHostNameAvailability(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdProfilesListResourceUsageSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdProfilesListResourceUsageSample.ts index ac6fba5d4791..f4ce67840e92 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdProfilesListResourceUsageSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdProfilesListResourceUsageSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Checks the quota and actual usage of endpoints under the given Azure Front Door profile. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/AFDProfiles_ListResourceUsage.json */ -async function afdProfilesListResourceUsage() { +async function afdProfilesListResourceUsage(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -31,7 +31,7 @@ async function afdProfilesListResourceUsage() { console.log(resArray); } -async function main() { +async function main(): Promise { afdProfilesListResourceUsage(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdProfilesUpgradeSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdProfilesUpgradeSample.ts index 9931e212e6fb..c7b8e60e2074 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdProfilesUpgradeSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdProfilesUpgradeSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Upgrade a profile from Standard_AzureFrontDoor to Premium_AzureFrontDoor. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/AFDProfiles_Upgrade.json */ -async function afdProfilesUpgrade() { +async function afdProfilesUpgrade(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -39,7 +39,7 @@ async function afdProfilesUpgrade() { console.log(result); } -async function main() { +async function main(): Promise { afdProfilesUpgrade(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdProfilesValidateSecretSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdProfilesValidateSecretSample.ts index e7780af0a68c..2f6eca9356fc 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdProfilesValidateSecretSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/afdProfilesValidateSecretSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Validate a Secret in the profile. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/AFDProfiles_ValidateSecret.json */ -async function validateSecret() { +async function validateSecret(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -35,7 +35,7 @@ async function validateSecret() { console.log(result); } -async function main() { +async function main(): Promise { validateSecret(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/checkEndpointNameAvailabilitySample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/checkEndpointNameAvailabilitySample.ts index 83c646b09f45..01e658f73072 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/checkEndpointNameAvailabilitySample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/checkEndpointNameAvailabilitySample.ts @@ -18,7 +18,7 @@ import "dotenv/config"; * @summary Check the availability of a resource name. This is needed for resources where name is globally unique, such as a afdx endpoint. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/CheckEndpointNameAvailability.json */ -async function checkEndpointNameAvailability() { +async function checkEndpointNameAvailability(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "myResourceGroup"; @@ -37,7 +37,7 @@ async function checkEndpointNameAvailability() { console.log(result); } -async function main() { +async function main(): Promise { checkEndpointNameAvailability(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/checkNameAvailabilitySample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/checkNameAvailabilitySample.ts index 3e54314756c0..f610e1cc12bf 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/checkNameAvailabilitySample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/checkNameAvailabilitySample.ts @@ -18,7 +18,7 @@ import "dotenv/config"; * @summary Check the availability of a resource name. This is needed for resources where name is globally unique, such as a CDN endpoint. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/CheckNameAvailability.json */ -async function checkNameAvailability() { +async function checkNameAvailability(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -32,7 +32,7 @@ async function checkNameAvailability() { console.log(result); } -async function main() { +async function main(): Promise { checkNameAvailability(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/checkNameAvailabilityWithSubscriptionSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/checkNameAvailabilityWithSubscriptionSample.ts index ef29702dd3cd..42dce58efdcc 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/checkNameAvailabilityWithSubscriptionSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/checkNameAvailabilityWithSubscriptionSample.ts @@ -18,7 +18,7 @@ import "dotenv/config"; * @summary Check the availability of a resource name. This is needed for resources where name is globally unique, such as a CDN endpoint. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/CheckNameAvailabilityWithSubscription.json */ -async function checkNameAvailabilityWithSubscription() { +async function checkNameAvailabilityWithSubscription(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const checkNameAvailabilityInput: CheckNameAvailabilityInput = { name: "sampleName", @@ -32,7 +32,7 @@ async function checkNameAvailabilityWithSubscription() { console.log(result); } -async function main() { +async function main(): Promise { checkNameAvailabilityWithSubscription(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/customDomainsCreateSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/customDomainsCreateSample.ts index 1420f4cf1f60..0ed56ed0a4fb 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/customDomainsCreateSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/customDomainsCreateSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Creates a new custom domain within an endpoint. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/CustomDomains_Create.json */ -async function customDomainsCreate() { +async function customDomainsCreate(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -36,7 +36,7 @@ async function customDomainsCreate() { console.log(result); } -async function main() { +async function main(): Promise { customDomainsCreate(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/customDomainsDeleteSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/customDomainsDeleteSample.ts index 7b52b5c88195..1e04567d96bb 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/customDomainsDeleteSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/customDomainsDeleteSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Deletes an existing custom domain within an endpoint. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/CustomDomains_Delete.json */ -async function customDomainsDelete() { +async function customDomainsDelete(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -32,7 +32,7 @@ async function customDomainsDelete() { console.log(result); } -async function main() { +async function main(): Promise { customDomainsDelete(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/customDomainsDisableCustomHttpsSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/customDomainsDisableCustomHttpsSample.ts index 9887ad8f6636..5b0a8b0fb382 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/customDomainsDisableCustomHttpsSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/customDomainsDisableCustomHttpsSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Disable https delivery of the custom domain. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/CustomDomains_DisableCustomHttps.json */ -async function customDomainsDisableCustomHttps() { +async function customDomainsDisableCustomHttps(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -32,7 +32,7 @@ async function customDomainsDisableCustomHttps() { console.log(result); } -async function main() { +async function main(): Promise { customDomainsDisableCustomHttps(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/customDomainsEnableCustomHttpsSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/customDomainsEnableCustomHttpsSample.ts index c9a98b00c8a4..84ef2ce926d0 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/customDomainsEnableCustomHttpsSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/customDomainsEnableCustomHttpsSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Enable https delivery of the custom domain. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/CustomDomains_EnableCustomHttpsUsingCDNManagedCertificate.json */ -async function customDomainsEnableCustomHttpsUsingCdnManagedCertificate() { +async function customDomainsEnableCustomHttpsUsingCdnManagedCertificate(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -38,7 +38,7 @@ async function customDomainsEnableCustomHttpsUsingCdnManagedCertificate() { * @summary Enable https delivery of the custom domain. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/CustomDomains_EnableCustomHttpsUsingBYOC.json */ -async function customDomainsEnableCustomHttpsUsingYourOwnCertificate() { +async function customDomainsEnableCustomHttpsUsingYourOwnCertificate(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -55,7 +55,7 @@ async function customDomainsEnableCustomHttpsUsingYourOwnCertificate() { console.log(result); } -async function main() { +async function main(): Promise { customDomainsEnableCustomHttpsUsingCdnManagedCertificate(); customDomainsEnableCustomHttpsUsingYourOwnCertificate(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/customDomainsGetSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/customDomainsGetSample.ts index 991351a178f0..3a676a4c3e63 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/customDomainsGetSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/customDomainsGetSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Gets an existing custom domain within an endpoint. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/CustomDomains_Get.json */ -async function customDomainsGet() { +async function customDomainsGet(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -32,7 +32,7 @@ async function customDomainsGet() { console.log(result); } -async function main() { +async function main(): Promise { customDomainsGet(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/customDomainsListByEndpointSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/customDomainsListByEndpointSample.ts index e97a9502f7e9..5b8e5e6dfefe 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/customDomainsListByEndpointSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/customDomainsListByEndpointSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Lists all of the existing custom domains within an endpoint. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/CustomDomains_ListByEndpoint.json */ -async function customDomainsListByEndpoint() { +async function customDomainsListByEndpoint(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -33,7 +33,7 @@ async function customDomainsListByEndpoint() { console.log(resArray); } -async function main() { +async function main(): Promise { customDomainsListByEndpoint(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/edgeNodesListSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/edgeNodesListSample.ts index d6a75e3716c9..11754eec508f 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/edgeNodesListSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/edgeNodesListSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Edgenodes are the global Point of Presence (POP) locations used to deliver CDN content to end users. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/EdgeNodes_List.json */ -async function edgeNodesList() { +async function edgeNodesList(): Promise { const credential = new DefaultAzureCredential(); const client = new CdnManagementClient(credential); const resArray = new Array(); @@ -25,7 +25,7 @@ async function edgeNodesList() { console.log(resArray); } -async function main() { +async function main(): Promise { edgeNodesList(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/endpointsCreateSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/endpointsCreateSample.ts index 426aa9729d1b..49eea8f83935 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/endpointsCreateSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/endpointsCreateSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Creates a new CDN endpoint with the specified endpoint name under the specified subscription, resource group and profile. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/Endpoints_Create.json */ -async function endpointsCreate() { +async function endpointsCreate(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -139,7 +139,7 @@ async function endpointsCreate() { console.log(result); } -async function main() { +async function main(): Promise { endpointsCreate(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/endpointsDeleteSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/endpointsDeleteSample.ts index 078c1f4207f8..f474bc1fd377 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/endpointsDeleteSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/endpointsDeleteSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Deletes an existing CDN endpoint with the specified endpoint name under the specified subscription, resource group and profile. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/Endpoints_Delete.json */ -async function endpointsDelete() { +async function endpointsDelete(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -30,7 +30,7 @@ async function endpointsDelete() { console.log(result); } -async function main() { +async function main(): Promise { endpointsDelete(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/endpointsGetSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/endpointsGetSample.ts index 3fecba8be63b..c8dd3fc5ae32 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/endpointsGetSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/endpointsGetSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Gets an existing CDN endpoint with the specified endpoint name under the specified subscription, resource group and profile. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/Endpoints_Get.json */ -async function endpointsGet() { +async function endpointsGet(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -30,7 +30,7 @@ async function endpointsGet() { console.log(result); } -async function main() { +async function main(): Promise { endpointsGet(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/endpointsListByProfileSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/endpointsListByProfileSample.ts index 5b9a176c0f47..8f55533a7b46 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/endpointsListByProfileSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/endpointsListByProfileSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Lists existing CDN endpoints. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/Endpoints_ListByProfile.json */ -async function endpointsListByProfile() { +async function endpointsListByProfile(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -31,7 +31,7 @@ async function endpointsListByProfile() { console.log(resArray); } -async function main() { +async function main(): Promise { endpointsListByProfile(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/endpointsListResourceUsageSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/endpointsListResourceUsageSample.ts index 429228aaaf54..bbb4c1596051 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/endpointsListResourceUsageSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/endpointsListResourceUsageSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Checks the quota and usage of geo filters and custom domains under the given endpoint. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/Endpoints_ListResourceUsage.json */ -async function endpointsListResourceUsage() { +async function endpointsListResourceUsage(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -33,7 +33,7 @@ async function endpointsListResourceUsage() { console.log(resArray); } -async function main() { +async function main(): Promise { endpointsListResourceUsage(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/endpointsLoadContentSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/endpointsLoadContentSample.ts index d3291d3964e8..8f27327c76fb 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/endpointsLoadContentSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/endpointsLoadContentSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Pre-loads a content to CDN. Available for Verizon Profiles. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/Endpoints_LoadContent.json */ -async function endpointsLoadContent() { +async function endpointsLoadContent(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -32,7 +32,7 @@ async function endpointsLoadContent() { console.log(result); } -async function main() { +async function main(): Promise { endpointsLoadContent(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/endpointsPurgeContentSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/endpointsPurgeContentSample.ts index e2fc220cde94..7875cbd845e7 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/endpointsPurgeContentSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/endpointsPurgeContentSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Removes a content from CDN. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/Endpoints_PurgeContent.json */ -async function endpointsPurgeContent() { +async function endpointsPurgeContent(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -32,7 +32,7 @@ async function endpointsPurgeContent() { console.log(result); } -async function main() { +async function main(): Promise { endpointsPurgeContent(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/endpointsStartSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/endpointsStartSample.ts index cc3f9b9ba964..74b5c2cfc7b5 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/endpointsStartSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/endpointsStartSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Starts an existing CDN endpoint that is on a stopped state. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/Endpoints_Start.json */ -async function endpointsStart() { +async function endpointsStart(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -30,7 +30,7 @@ async function endpointsStart() { console.log(result); } -async function main() { +async function main(): Promise { endpointsStart(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/endpointsStopSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/endpointsStopSample.ts index 41910758c0c8..1cd443d26447 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/endpointsStopSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/endpointsStopSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Stops an existing running CDN endpoint. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/Endpoints_Stop.json */ -async function endpointsStop() { +async function endpointsStop(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -30,7 +30,7 @@ async function endpointsStop() { console.log(result); } -async function main() { +async function main(): Promise { endpointsStop(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/endpointsUpdateSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/endpointsUpdateSample.ts index ad3446be40d0..5be6c994c5d6 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/endpointsUpdateSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/endpointsUpdateSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Updates an existing CDN endpoint with the specified endpoint name under the specified subscription, resource group and profile. Only tags can be updated after creating an endpoint. To update origins, use the Update Origin operation. To update origin groups, use the Update Origin group operation. To update custom domains, use the Update Custom Domain operation. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/Endpoints_Update.json */ -async function endpointsUpdate() { +async function endpointsUpdate(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -34,7 +34,7 @@ async function endpointsUpdate() { console.log(result); } -async function main() { +async function main(): Promise { endpointsUpdate(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/endpointsValidateCustomDomainSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/endpointsValidateCustomDomainSample.ts index 4a1a1f35ab92..ff338965bfc6 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/endpointsValidateCustomDomainSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/endpointsValidateCustomDomainSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Validates the custom domain mapping to ensure it maps to the correct CDN endpoint in DNS. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/Endpoints_ValidateCustomDomain.json */ -async function endpointsValidateCustomDomain() { +async function endpointsValidateCustomDomain(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -34,7 +34,7 @@ async function endpointsValidateCustomDomain() { console.log(result); } -async function main() { +async function main(): Promise { endpointsValidateCustomDomain(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/logAnalyticsGetLogAnalyticsLocationsSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/logAnalyticsGetLogAnalyticsLocationsSample.ts index be9f4179c3f2..9e60ad9542a2 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/logAnalyticsGetLogAnalyticsLocationsSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/logAnalyticsGetLogAnalyticsLocationsSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Get all available location names for AFD log analytics report. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/LogAnalytics_GetLogAnalyticsLocations.json */ -async function logAnalyticsGetLogAnalyticsLocations() { +async function logAnalyticsGetLogAnalyticsLocations(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -28,7 +28,7 @@ async function logAnalyticsGetLogAnalyticsLocations() { console.log(result); } -async function main() { +async function main(): Promise { logAnalyticsGetLogAnalyticsLocations(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/logAnalyticsGetLogAnalyticsMetricsSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/logAnalyticsGetLogAnalyticsMetricsSample.ts index 229ccafd180f..5dcec1117e8a 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/logAnalyticsGetLogAnalyticsMetricsSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/logAnalyticsGetLogAnalyticsMetricsSample.ts @@ -18,7 +18,7 @@ import "dotenv/config"; * @summary Get log report for AFD profile * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/LogAnalytics_GetLogAnalyticsMetrics.json */ -async function logAnalyticsGetLogAnalyticsMetrics() { +async function logAnalyticsGetLogAnalyticsMetrics(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -49,7 +49,7 @@ async function logAnalyticsGetLogAnalyticsMetrics() { console.log(result); } -async function main() { +async function main(): Promise { logAnalyticsGetLogAnalyticsMetrics(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/logAnalyticsGetLogAnalyticsRankingsSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/logAnalyticsGetLogAnalyticsRankingsSample.ts index 2d7e9b022925..7a3ecc0889df 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/logAnalyticsGetLogAnalyticsRankingsSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/logAnalyticsGetLogAnalyticsRankingsSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Get log analytics ranking report for AFD profile * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/LogAnalytics_GetLogAnalyticsRankings.json */ -async function logAnalyticsGetLogAnalyticsRankings() { +async function logAnalyticsGetLogAnalyticsRankings(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -38,7 +38,7 @@ async function logAnalyticsGetLogAnalyticsRankings() { console.log(result); } -async function main() { +async function main(): Promise { logAnalyticsGetLogAnalyticsRankings(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/logAnalyticsGetLogAnalyticsResourcesSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/logAnalyticsGetLogAnalyticsResourcesSample.ts index 4a522d0a752a..362b26f6c2f7 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/logAnalyticsGetLogAnalyticsResourcesSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/logAnalyticsGetLogAnalyticsResourcesSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Get all endpoints and custom domains available for AFD log report * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/LogAnalytics_GetLogAnalyticsResources.json */ -async function logAnalyticsGetLogAnalyticsResources() { +async function logAnalyticsGetLogAnalyticsResources(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -28,7 +28,7 @@ async function logAnalyticsGetLogAnalyticsResources() { console.log(result); } -async function main() { +async function main(): Promise { logAnalyticsGetLogAnalyticsResources(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/logAnalyticsGetWafLogAnalyticsMetricsSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/logAnalyticsGetWafLogAnalyticsMetricsSample.ts index 04a285f867b3..cfa1b2a2e3dc 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/logAnalyticsGetWafLogAnalyticsMetricsSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/logAnalyticsGetWafLogAnalyticsMetricsSample.ts @@ -18,7 +18,7 @@ import "dotenv/config"; * @summary Get Waf related log analytics report for AFD profile. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/LogAnalytics_GetWafLogAnalyticsMetrics.json */ -async function logAnalyticsGetWafLogAnalyticsMetrics() { +async function logAnalyticsGetWafLogAnalyticsMetrics(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -44,7 +44,7 @@ async function logAnalyticsGetWafLogAnalyticsMetrics() { console.log(result); } -async function main() { +async function main(): Promise { logAnalyticsGetWafLogAnalyticsMetrics(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/logAnalyticsGetWafLogAnalyticsRankingsSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/logAnalyticsGetWafLogAnalyticsRankingsSample.ts index 8cbf89818701..0f7aa6d49858 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/logAnalyticsGetWafLogAnalyticsRankingsSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/logAnalyticsGetWafLogAnalyticsRankingsSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Get WAF log analytics charts for AFD profile * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/LogAnalytics_GetWafLogAnalyticsRankings.json */ -async function logAnalyticsGetWafLogAnalyticsRankings() { +async function logAnalyticsGetWafLogAnalyticsRankings(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -38,7 +38,7 @@ async function logAnalyticsGetWafLogAnalyticsRankings() { console.log(result); } -async function main() { +async function main(): Promise { logAnalyticsGetWafLogAnalyticsRankings(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/managedRuleSetsListSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/managedRuleSetsListSample.ts index 5a7c80121f40..e32207650f86 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/managedRuleSetsListSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/managedRuleSetsListSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Lists all available managed rule sets. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/WafListManagedRuleSets.json */ -async function listPoliciesInAResourceGroup() { +async function listPoliciesInAResourceGroup(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const credential = new DefaultAzureCredential(); const client = new CdnManagementClient(credential, subscriptionId); @@ -26,7 +26,7 @@ async function listPoliciesInAResourceGroup() { console.log(resArray); } -async function main() { +async function main(): Promise { listPoliciesInAResourceGroup(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/operationsListSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/operationsListSample.ts index 419a47a93385..8669e8bc331f 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/operationsListSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/operationsListSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Lists all of the available CDN REST API operations. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/Operations_List.json */ -async function operationsList() { +async function operationsList(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -28,7 +28,7 @@ async function operationsList() { console.log(resArray); } -async function main() { +async function main(): Promise { operationsList(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/originGroupsCreateSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/originGroupsCreateSample.ts index 71880c1c0f4c..3fb816fd6831 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/originGroupsCreateSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/originGroupsCreateSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Creates a new origin group within the specified endpoint. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/OriginGroups_Create.json */ -async function originGroupsCreate() { +async function originGroupsCreate(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -50,7 +50,7 @@ async function originGroupsCreate() { console.log(result); } -async function main() { +async function main(): Promise { originGroupsCreate(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/originGroupsDeleteSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/originGroupsDeleteSample.ts index 4b366623a3ac..1865abe312d5 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/originGroupsDeleteSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/originGroupsDeleteSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Deletes an existing origin group within an endpoint. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/OriginGroups_Delete.json */ -async function originGroupsDelete() { +async function originGroupsDelete(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -32,7 +32,7 @@ async function originGroupsDelete() { console.log(result); } -async function main() { +async function main(): Promise { originGroupsDelete(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/originGroupsGetSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/originGroupsGetSample.ts index d9ed65f2ad2d..844025ade0b1 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/originGroupsGetSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/originGroupsGetSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Gets an existing origin group within an endpoint. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/OriginGroups_Get.json */ -async function originGroupsGet() { +async function originGroupsGet(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -32,7 +32,7 @@ async function originGroupsGet() { console.log(result); } -async function main() { +async function main(): Promise { originGroupsGet(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/originGroupsListByEndpointSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/originGroupsListByEndpointSample.ts index e74229d46196..09875fcc5e04 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/originGroupsListByEndpointSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/originGroupsListByEndpointSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Lists all of the existing origin groups within an endpoint. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/OriginGroups_ListByEndpoint.json */ -async function originsGroupsListByEndpoint() { +async function originsGroupsListByEndpoint(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -33,7 +33,7 @@ async function originsGroupsListByEndpoint() { console.log(resArray); } -async function main() { +async function main(): Promise { originsGroupsListByEndpoint(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/originGroupsUpdateSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/originGroupsUpdateSample.ts index 2722bf466936..1d8ee8dbc304 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/originGroupsUpdateSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/originGroupsUpdateSample.ts @@ -18,7 +18,7 @@ import "dotenv/config"; * @summary Updates an existing origin group within an endpoint. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/OriginGroups_Update.json */ -async function originGroupsUpdate() { +async function originGroupsUpdate(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -49,7 +49,7 @@ async function originGroupsUpdate() { console.log(result); } -async function main() { +async function main(): Promise { originGroupsUpdate(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/originsCreateSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/originsCreateSample.ts index a4f85a135634..0b99c433ddc1 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/originsCreateSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/originsCreateSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Creates a new origin within the specified endpoint. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/Origins_Create.json */ -async function originsCreate() { +async function originsCreate(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -47,7 +47,7 @@ async function originsCreate() { console.log(result); } -async function main() { +async function main(): Promise { originsCreate(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/originsDeleteSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/originsDeleteSample.ts index 118df5a50951..2ca8a67b44d6 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/originsDeleteSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/originsDeleteSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Deletes an existing origin within an endpoint. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/Origins_Delete.json */ -async function originsDelete() { +async function originsDelete(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -32,7 +32,7 @@ async function originsDelete() { console.log(result); } -async function main() { +async function main(): Promise { originsDelete(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/originsGetSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/originsGetSample.ts index 9563ae613fd8..74f560d49db4 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/originsGetSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/originsGetSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Gets an existing origin within an endpoint. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/Origins_Get.json */ -async function originsGet() { +async function originsGet(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -32,7 +32,7 @@ async function originsGet() { console.log(result); } -async function main() { +async function main(): Promise { originsGet(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/originsListByEndpointSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/originsListByEndpointSample.ts index e54fe64cccaf..caa7230bd0f8 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/originsListByEndpointSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/originsListByEndpointSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Lists all of the existing origins within an endpoint. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/Origins_ListByEndpoint.json */ -async function originsListByEndpoint() { +async function originsListByEndpoint(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -33,7 +33,7 @@ async function originsListByEndpoint() { console.log(resArray); } -async function main() { +async function main(): Promise { originsListByEndpoint(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/originsUpdateSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/originsUpdateSample.ts index ee770019dfdb..0bb85628fce1 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/originsUpdateSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/originsUpdateSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Updates an existing origin within an endpoint. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/Origins_Update.json */ -async function originsUpdate() { +async function originsUpdate(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -43,7 +43,7 @@ async function originsUpdate() { console.log(result); } -async function main() { +async function main(): Promise { originsUpdate(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/policiesCreateOrUpdateSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/policiesCreateOrUpdateSample.ts index d44dc6665ec1..a939436c7094 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/policiesCreateOrUpdateSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/policiesCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ import "dotenv/config"; * @summary Create or update policy with specified rule set name within a resource group. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/WafPolicyCreateOrUpdate.json */ -async function createsSpecificPolicy() { +async function createsSpecificPolicy(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "rg1"; const policyName = "MicrosoftCdnWafPolicy"; @@ -121,7 +121,7 @@ async function createsSpecificPolicy() { console.log(result); } -async function main() { +async function main(): Promise { createsSpecificPolicy(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/policiesDeleteSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/policiesDeleteSample.ts index 3b57e7b9abb7..9185888f361a 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/policiesDeleteSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/policiesDeleteSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Deletes Policy * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/WafPolicyDelete.json */ -async function deleteProtectionPolicy() { +async function deleteProtectionPolicy(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "rg1"; const policyName = "Policy1"; @@ -25,7 +25,7 @@ async function deleteProtectionPolicy() { console.log(result); } -async function main() { +async function main(): Promise { deleteProtectionPolicy(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/policiesGetSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/policiesGetSample.ts index ab559daf3f59..7825f02acc6b 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/policiesGetSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/policiesGetSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Retrieve protection policy with specified name within a resource group. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/WafPolicyGet.json */ -async function getPolicy() { +async function getPolicy(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "rg1"; const policyName = "MicrosoftCdnWafPolicy"; @@ -25,7 +25,7 @@ async function getPolicy() { console.log(result); } -async function main() { +async function main(): Promise { getPolicy(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/policiesListSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/policiesListSample.ts index e123c0bfb244..0dce65e6e8ce 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/policiesListSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/policiesListSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Lists all of the protection policies within a resource group. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/WafListPolicies.json */ -async function listPoliciesInAResourceGroup() { +async function listPoliciesInAResourceGroup(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "rg1"; const credential = new DefaultAzureCredential(); @@ -27,7 +27,7 @@ async function listPoliciesInAResourceGroup() { console.log(resArray); } -async function main() { +async function main(): Promise { listPoliciesInAResourceGroup(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/policiesUpdateSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/policiesUpdateSample.ts index 0a201e0feb8d..5d1c5c2c4257 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/policiesUpdateSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/policiesUpdateSample.ts @@ -18,7 +18,7 @@ import "dotenv/config"; * @summary Update an existing CdnWebApplicationFirewallPolicy with the specified policy name under the specified subscription and resource group * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/WafPatchPolicy.json */ -async function createsSpecificPolicy() { +async function createsSpecificPolicy(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "rg1"; const policyName = "MicrosoftCdnWafPolicy"; @@ -34,7 +34,7 @@ async function createsSpecificPolicy() { console.log(result); } -async function main() { +async function main(): Promise { createsSpecificPolicy(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/profilesCanMigrateSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/profilesCanMigrateSample.ts index a085c001a905..5aa421d4e384 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/profilesCanMigrateSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/profilesCanMigrateSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Checks if CDN profile can be migrated to Azure Frontdoor(Standard/Premium) profile. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/Profiles_CanMigrate.json */ -async function profilesCanMigrate() { +async function profilesCanMigrate(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const canMigrateParameters: CanMigrateParameters = { @@ -32,7 +32,7 @@ async function profilesCanMigrate() { console.log(result); } -async function main() { +async function main(): Promise { profilesCanMigrate(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/profilesCreateSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/profilesCreateSample.ts index 6cca628dd359..c8284db0cc06 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/profilesCreateSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/profilesCreateSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary 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. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/Profiles_Create.json */ -async function profilesCreate() { +async function profilesCreate(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -33,7 +33,7 @@ async function profilesCreate() { console.log(result); } -async function main() { +async function main(): Promise { profilesCreate(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/profilesDeleteSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/profilesDeleteSample.ts index 26ca0033f6f4..15de4c390e79 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/profilesDeleteSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/profilesDeleteSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary 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. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/Profiles_Delete.json */ -async function profilesDelete() { +async function profilesDelete(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -28,7 +28,7 @@ async function profilesDelete() { console.log(result); } -async function main() { +async function main(): Promise { profilesDelete(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/profilesGenerateSsoUriSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/profilesGenerateSsoUriSample.ts index 6e37dfa6ece2..a385884a905e 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/profilesGenerateSsoUriSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/profilesGenerateSsoUriSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Generates a dynamic SSO URI used to sign in to the CDN supplemental portal. Supplemental portal is used to configure advanced feature capabilities that are not yet available in the Azure portal, such as core reports in a standard profile; rules engine, advanced HTTP reports, and real-time stats and alerts in a premium profile. The SSO URI changes approximately every 10 minutes. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/Profiles_GenerateSsoUri.json */ -async function profilesGenerateSsoUri() { +async function profilesGenerateSsoUri(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -28,7 +28,7 @@ async function profilesGenerateSsoUri() { console.log(result); } -async function main() { +async function main(): Promise { profilesGenerateSsoUri(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/profilesGetSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/profilesGetSample.ts index 0a7d10c1829c..f7691f832275 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/profilesGetSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/profilesGetSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary 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. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/Profiles_Get.json */ -async function profilesGet() { +async function profilesGet(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -25,7 +25,7 @@ async function profilesGet() { console.log(result); } -async function main() { +async function main(): Promise { profilesGet(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/profilesListByResourceGroupSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/profilesListByResourceGroupSample.ts index f5d3c52b436c..9db9ef16b43c 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/profilesListByResourceGroupSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/profilesListByResourceGroupSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Lists all of the Azure Front Door Standard, Azure Front Door Premium, and CDN profiles within a resource group. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/Profiles_ListByResourceGroup.json */ -async function profilesListByResourceGroup() { +async function profilesListByResourceGroup(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const credential = new DefaultAzureCredential(); @@ -29,7 +29,7 @@ async function profilesListByResourceGroup() { console.log(resArray); } -async function main() { +async function main(): Promise { profilesListByResourceGroup(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/profilesListResourceUsageSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/profilesListResourceUsageSample.ts index 1384e92928b0..f9784f643a36 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/profilesListResourceUsageSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/profilesListResourceUsageSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Checks the quota and actual usage of endpoints under the given Azure Front Door Standard or Azure Front Door Premium or CDN profile. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/Profiles_ListResourceUsage.json */ -async function profilesListResourceUsage() { +async function profilesListResourceUsage(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -31,7 +31,7 @@ async function profilesListResourceUsage() { console.log(resArray); } -async function main() { +async function main(): Promise { profilesListResourceUsage(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/profilesListSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/profilesListSample.ts index 46a533d9dd13..4f59afff60f8 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/profilesListSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/profilesListSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Lists all of the Azure Front Door Standard, Azure Front Door Premium, and CDN profiles within an Azure subscription. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/Profiles_List.json */ -async function profilesList() { +async function profilesList(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const credential = new DefaultAzureCredential(); const client = new CdnManagementClient(credential, subscriptionId); @@ -26,7 +26,7 @@ async function profilesList() { console.log(resArray); } -async function main() { +async function main(): Promise { profilesList(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/profilesListSupportedOptimizationTypesSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/profilesListSupportedOptimizationTypesSample.ts index 7dfec12409d8..10da0af5575c 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/profilesListSupportedOptimizationTypesSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/profilesListSupportedOptimizationTypesSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Gets the supported optimization types for the current profile. A user can create an endpoint with an optimization type from the listed values. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/Profiles_ListSupportedOptimizationTypes.json */ -async function profilesListSupportedOptimizationTypes() { +async function profilesListSupportedOptimizationTypes(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -28,7 +28,7 @@ async function profilesListSupportedOptimizationTypes() { console.log(result); } -async function main() { +async function main(): Promise { profilesListSupportedOptimizationTypes(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/profilesMigrateSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/profilesMigrateSample.ts index 9a75bc8fd457..209e21641115 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/profilesMigrateSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/profilesMigrateSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Migrate the CDN profile to Azure Frontdoor(Standard/Premium) profile. The change need to be committed after this. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/Profiles_Migrate.json */ -async function profilesMigrate() { +async function profilesMigrate(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const migrationParameters: MigrationParameters = { @@ -34,7 +34,7 @@ async function profilesMigrate() { console.log(result); } -async function main() { +async function main(): Promise { profilesMigrate(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/profilesMigrationCommitSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/profilesMigrationCommitSample.ts index cd7d13daa236..a981fde37783 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/profilesMigrationCommitSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/profilesMigrationCommitSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Commit the migrated Azure Frontdoor(Standard/Premium) profile. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/Profiles_MigrationCommit.json */ -async function profilesMigrationCommit() { +async function profilesMigrationCommit(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -28,7 +28,7 @@ async function profilesMigrationCommit() { console.log(result); } -async function main() { +async function main(): Promise { profilesMigrationCommit(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/profilesUpdateSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/profilesUpdateSample.ts index c222ca6c769e..115b2f59be57 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/profilesUpdateSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/profilesUpdateSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary 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. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/Profiles_Update.json */ -async function profilesUpdate() { +async function profilesUpdate(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -32,7 +32,7 @@ async function profilesUpdate() { console.log(result); } -async function main() { +async function main(): Promise { profilesUpdate(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/resourceUsageListSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/resourceUsageListSample.ts index 3a82565bf6e9..32006f051dbb 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/resourceUsageListSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/resourceUsageListSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Check the quota and actual usage of the CDN profiles under the given subscription. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/ResourceUsage_List.json */ -async function resourceUsageList() { +async function resourceUsageList(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const credential = new DefaultAzureCredential(); const client = new CdnManagementClient(credential, subscriptionId); @@ -26,7 +26,7 @@ async function resourceUsageList() { console.log(resArray); } -async function main() { +async function main(): Promise { resourceUsageList(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/routesCreateSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/routesCreateSample.ts index a71c84b68638..08e00cd6cc6b 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/routesCreateSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/routesCreateSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Creates a new route with the specified route name under the specified subscription, resource group, profile, and AzureFrontDoor endpoint. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/Routes_Create.json */ -async function routesCreate() { +async function routesCreate(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -63,7 +63,7 @@ async function routesCreate() { console.log(result); } -async function main() { +async function main(): Promise { routesCreate(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/routesDeleteSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/routesDeleteSample.ts index 3b19f90ded42..5772abde291a 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/routesDeleteSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/routesDeleteSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Deletes an existing route with the specified route name under the specified subscription, resource group, profile, and AzureFrontDoor endpoint. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/Routes_Delete.json */ -async function routesDelete() { +async function routesDelete(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -32,7 +32,7 @@ async function routesDelete() { console.log(result); } -async function main() { +async function main(): Promise { routesDelete(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/routesGetSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/routesGetSample.ts index bc1ca62efcca..eb2af1975347 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/routesGetSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/routesGetSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Gets an existing route with the specified route name under the specified subscription, resource group, profile, and AzureFrontDoor endpoint. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/Routes_Get.json */ -async function routesGet() { +async function routesGet(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -32,7 +32,7 @@ async function routesGet() { console.log(result); } -async function main() { +async function main(): Promise { routesGet(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/routesListByEndpointSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/routesListByEndpointSample.ts index b014fe26a3b0..ba7d17b05b99 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/routesListByEndpointSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/routesListByEndpointSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Lists all of the existing origins within a profile. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/Routes_ListByEndpoint.json */ -async function routesListByEndpoint() { +async function routesListByEndpoint(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -33,7 +33,7 @@ async function routesListByEndpoint() { console.log(resArray); } -async function main() { +async function main(): Promise { routesListByEndpoint(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/routesUpdateSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/routesUpdateSample.ts index 16493af24a1b..73449628ba32 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/routesUpdateSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/routesUpdateSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Updates an existing route with the specified route name under the specified subscription, resource group, profile, and AzureFrontDoor endpoint. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/Routes_Update.json */ -async function routesUpdate() { +async function routesUpdate(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -62,7 +62,7 @@ async function routesUpdate() { console.log(result); } -async function main() { +async function main(): Promise { routesUpdate(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/ruleSetsCreateSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/ruleSetsCreateSample.ts index a25e0a9606be..802ed63f1e6f 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/ruleSetsCreateSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/ruleSetsCreateSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Creates a new rule set within the specified profile. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/RuleSets_Create.json */ -async function ruleSetsCreate() { +async function ruleSetsCreate(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -30,7 +30,7 @@ async function ruleSetsCreate() { console.log(result); } -async function main() { +async function main(): Promise { ruleSetsCreate(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/ruleSetsDeleteSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/ruleSetsDeleteSample.ts index 1cf8310444fa..4feddab7f698 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/ruleSetsDeleteSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/ruleSetsDeleteSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Deletes an existing AzureFrontDoor rule set with the specified rule set name under the specified subscription, resource group and profile. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/RuleSets_Delete.json */ -async function ruleSetsDelete() { +async function ruleSetsDelete(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -30,7 +30,7 @@ async function ruleSetsDelete() { console.log(result); } -async function main() { +async function main(): Promise { ruleSetsDelete(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/ruleSetsGetSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/ruleSetsGetSample.ts index 39a3fd11f28e..833388eb42f4 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/ruleSetsGetSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/ruleSetsGetSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Gets an existing AzureFrontDoor rule set with the specified rule set name under the specified subscription, resource group and profile. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/RuleSets_Get.json */ -async function ruleSetsGet() { +async function ruleSetsGet(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -30,7 +30,7 @@ async function ruleSetsGet() { console.log(result); } -async function main() { +async function main(): Promise { ruleSetsGet(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/ruleSetsListByProfileSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/ruleSetsListByProfileSample.ts index ad29bf58ca16..d6a81a73d6f5 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/ruleSetsListByProfileSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/ruleSetsListByProfileSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Lists existing AzureFrontDoor rule sets within a profile. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/RuleSets_ListByProfile.json */ -async function ruleSetsListByProfile() { +async function ruleSetsListByProfile(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -31,7 +31,7 @@ async function ruleSetsListByProfile() { console.log(resArray); } -async function main() { +async function main(): Promise { ruleSetsListByProfile(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/ruleSetsListResourceUsageSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/ruleSetsListResourceUsageSample.ts index 5353dec7d28f..31144cd55b1f 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/ruleSetsListResourceUsageSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/ruleSetsListResourceUsageSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Checks the quota and actual usage of endpoints under the given Azure Front Door profile.. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/RuleSets_ListResourceUsage.json */ -async function ruleSetsListResourceUsage() { +async function ruleSetsListResourceUsage(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -33,7 +33,7 @@ async function ruleSetsListResourceUsage() { console.log(resArray); } -async function main() { +async function main(): Promise { ruleSetsListResourceUsage(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/rulesCreateSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/rulesCreateSample.ts index 23c6fb19e52b..440b50c7d39f 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/rulesCreateSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/rulesCreateSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Creates a new delivery rule within the specified rule set. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/Rules_Create.json */ -async function rulesCreate() { +async function rulesCreate(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -58,7 +58,7 @@ async function rulesCreate() { console.log(result); } -async function main() { +async function main(): Promise { rulesCreate(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/rulesDeleteSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/rulesDeleteSample.ts index beb9fc8cf8d0..0d1d74722f31 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/rulesDeleteSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/rulesDeleteSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Deletes an existing delivery rule within a rule set. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/Rules_Delete.json */ -async function rulesDelete() { +async function rulesDelete(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -32,7 +32,7 @@ async function rulesDelete() { console.log(result); } -async function main() { +async function main(): Promise { rulesDelete(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/rulesGetSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/rulesGetSample.ts index 352ecb32db1c..0e1411eccde6 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/rulesGetSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/rulesGetSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Gets an existing delivery rule within a rule set. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/Rules_Get.json */ -async function rulesGet() { +async function rulesGet(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -32,7 +32,7 @@ async function rulesGet() { console.log(result); } -async function main() { +async function main(): Promise { rulesGet(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/rulesListByRuleSetSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/rulesListByRuleSetSample.ts index 1e1697987db5..cd1169fce1f1 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/rulesListByRuleSetSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/rulesListByRuleSetSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Lists all of the existing delivery rules within a rule set. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/Rules_ListByRuleSet.json */ -async function rulesListByRuleSet() { +async function rulesListByRuleSet(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -33,7 +33,7 @@ async function rulesListByRuleSet() { console.log(resArray); } -async function main() { +async function main(): Promise { rulesListByRuleSet(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/rulesUpdateSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/rulesUpdateSample.ts index d87aa9ac90e2..59ff82a78fa5 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/rulesUpdateSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/rulesUpdateSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Updates an existing delivery rule within a rule set. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/Rules_Update.json */ -async function rulesUpdate() { +async function rulesUpdate(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -47,7 +47,7 @@ async function rulesUpdate() { console.log(result); } -async function main() { +async function main(): Promise { rulesUpdate(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/secretsCreateSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/secretsCreateSample.ts index ea375cfdac44..ba2406682f5d 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/secretsCreateSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/secretsCreateSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Creates a new Secret within the specified profile. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/Secrets_Create.json */ -async function secretsCreate() { +async function secretsCreate(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -41,7 +41,7 @@ async function secretsCreate() { console.log(result); } -async function main() { +async function main(): Promise { secretsCreate(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/secretsDeleteSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/secretsDeleteSample.ts index af0ed94335d8..88bf699cf6e3 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/secretsDeleteSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/secretsDeleteSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Deletes an existing Secret within profile. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/Secrets_Delete.json */ -async function secretsDelete() { +async function secretsDelete(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -30,7 +30,7 @@ async function secretsDelete() { console.log(result); } -async function main() { +async function main(): Promise { secretsDelete(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/secretsGetSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/secretsGetSample.ts index bfb022cfc79c..06ffcee31731 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/secretsGetSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/secretsGetSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Gets an existing Secret within a profile. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/Secrets_Get.json */ -async function secretsGet() { +async function secretsGet(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -30,7 +30,7 @@ async function secretsGet() { console.log(result); } -async function main() { +async function main(): Promise { secretsGet(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/secretsListByProfileSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/secretsListByProfileSample.ts index 7c9c31a9c9e2..f648a2ba4441 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/secretsListByProfileSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/secretsListByProfileSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Lists existing AzureFrontDoor secrets. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/Secrets_ListByProfile.json */ -async function secretsListByProfile() { +async function secretsListByProfile(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -31,7 +31,7 @@ async function secretsListByProfile() { console.log(resArray); } -async function main() { +async function main(): Promise { secretsListByProfile(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/securityPoliciesCreateSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/securityPoliciesCreateSample.ts index 6fbe8dda4f93..69b2c045b431 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/securityPoliciesCreateSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/securityPoliciesCreateSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Creates a new security policy within the specified profile. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/SecurityPolicies_Create.json */ -async function securityPoliciesCreate() { +async function securityPoliciesCreate(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -52,7 +52,7 @@ async function securityPoliciesCreate() { console.log(result); } -async function main() { +async function main(): Promise { securityPoliciesCreate(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/securityPoliciesDeleteSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/securityPoliciesDeleteSample.ts index ea159824b3c5..adbf783205b2 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/securityPoliciesDeleteSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/securityPoliciesDeleteSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Deletes an existing security policy within profile. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/SecurityPolicies_Delete.json */ -async function securityPoliciesDelete() { +async function securityPoliciesDelete(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -30,7 +30,7 @@ async function securityPoliciesDelete() { console.log(result); } -async function main() { +async function main(): Promise { securityPoliciesDelete(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/securityPoliciesGetSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/securityPoliciesGetSample.ts index 4c7b090909ec..7e1f90594425 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/securityPoliciesGetSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/securityPoliciesGetSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Gets an existing security policy within a profile. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/SecurityPolicies_Get.json */ -async function securityPoliciesGet() { +async function securityPoliciesGet(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -30,7 +30,7 @@ async function securityPoliciesGet() { console.log(result); } -async function main() { +async function main(): Promise { securityPoliciesGet(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/securityPoliciesListByProfileSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/securityPoliciesListByProfileSample.ts index 07a95c8a5fc4..a8e2b6f26609 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/securityPoliciesListByProfileSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/securityPoliciesListByProfileSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Lists security policies associated with the profile * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/SecurityPolicies_ListByProfile.json */ -async function securityPoliciesListByProfile() { +async function securityPoliciesListByProfile(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -31,7 +31,7 @@ async function securityPoliciesListByProfile() { console.log(resArray); } -async function main() { +async function main(): Promise { securityPoliciesListByProfile(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/securityPoliciesPatchSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/securityPoliciesPatchSample.ts index aad549b6c4b8..1ea0e9fd0858 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/securityPoliciesPatchSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/securityPoliciesPatchSample.ts @@ -18,7 +18,7 @@ import "dotenv/config"; * @summary Updates an existing security policy within a profile. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/SecurityPolicies_Patch.json */ -async function securityPoliciesPatch() { +async function securityPoliciesPatch(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["CDN_RESOURCE_GROUP"] || "RG"; const profileName = "profile1"; @@ -55,7 +55,7 @@ async function securityPoliciesPatch() { console.log(result); } -async function main() { +async function main(): Promise { securityPoliciesPatch(); } diff --git a/sdk/cdn/arm-cdn/samples/v9/typescript/src/validateProbeSample.ts b/sdk/cdn/arm-cdn/samples/v9/typescript/src/validateProbeSample.ts index 540e78566680..d6d46320fbb0 100644 --- a/sdk/cdn/arm-cdn/samples/v9/typescript/src/validateProbeSample.ts +++ b/sdk/cdn/arm-cdn/samples/v9/typescript/src/validateProbeSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Check if the probe path is a valid path and the file can be accessed. Probe path is the path to a file hosted on the origin server to help accelerate the delivery of dynamic content via the CDN endpoint. This path is relative to the origin path specified in the endpoint configuration. * x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/ValidateProbe.json */ -async function validateProbe() { +async function validateProbe(): Promise { const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid"; const validateProbeInput: ValidateProbeInput = { probeURL: "https://www.bing.com/image", @@ -26,7 +26,7 @@ async function validateProbe() { console.log(result); } -async function main() { +async function main(): Promise { validateProbe(); } diff --git a/sdk/cdn/arm-cdn/src/cdnManagementClient.ts b/sdk/cdn/arm-cdn/src/cdnManagementClient.ts index ad3be13a5643..15075450b28b 100644 --- a/sdk/cdn/arm-cdn/src/cdnManagementClient.ts +++ b/sdk/cdn/arm-cdn/src/cdnManagementClient.ts @@ -123,7 +123,7 @@ export class CdnManagementClient extends coreClient.ServiceClient { credential: credentials, }; - const packageDetails = `azsdk-js-arm-cdn/9.1.1`; + const packageDetails = `azsdk-js-arm-cdn/10.0.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -177,7 +177,7 @@ export class CdnManagementClient extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2024-02-01"; + this.apiVersion = options.apiVersion || "2024-09-01"; this.afdProfiles = new AfdProfilesImpl(this); this.afdCustomDomains = new AfdCustomDomainsImpl(this); this.afdEndpoints = new AfdEndpointsImpl(this); diff --git a/sdk/cdn/arm-cdn/src/lroImpl.ts b/sdk/cdn/arm-cdn/src/lroImpl.ts index d8bc98987053..5f88efab981b 100644 --- a/sdk/cdn/arm-cdn/src/lroImpl.ts +++ b/sdk/cdn/arm-cdn/src/lroImpl.ts @@ -5,6 +5,10 @@ * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + import { AbortSignalLike } from "@azure/abort-controller"; import { LongRunningOperation, LroResponse } from "@azure/core-lro"; diff --git a/sdk/cdn/arm-cdn/src/models/index.ts b/sdk/cdn/arm-cdn/src/models/index.ts index b51020eb8e63..3a242f4016c2 100644 --- a/sdk/cdn/arm-cdn/src/models/index.ts +++ b/sdk/cdn/arm-cdn/src/models/index.ts @@ -29,8 +29,8 @@ export type DeliveryRuleConditionUnion = | DeliveryRuleServerPortCondition | DeliveryRuleHostNameCondition | DeliveryRuleSslProtocolCondition; -export type DeliveryRuleActionAutoGeneratedUnion = - | DeliveryRuleActionAutoGenerated +export type DeliveryRuleActionUnion = + | DeliveryRuleAction | UrlRedirectAction | UrlSigningAction | OriginGroupOverrideAction @@ -53,6 +53,41 @@ export type CustomDomainHttpsParametersUnion = | CustomDomainHttpsParameters | CdnManagedHttpsParameters | UserManagedHttpsParameters; +export type DeliveryRuleConditionParametersUnion = + | DeliveryRuleConditionParameters + | RemoteAddressMatchConditionParameters + | RequestMethodMatchConditionParameters + | QueryStringMatchConditionParameters + | PostArgsMatchConditionParameters + | RequestUriMatchConditionParameters + | RequestHeaderMatchConditionParameters + | RequestBodyMatchConditionParameters + | RequestSchemeMatchConditionParameters + | UrlPathMatchConditionParameters + | UrlFileExtensionMatchConditionParameters + | UrlFileNameMatchConditionParameters + | HttpVersionMatchConditionParameters + | CookiesMatchConditionParameters + | IsDeviceMatchConditionParameters + | SocketAddrMatchConditionParameters + | ClientPortMatchConditionParameters + | ServerPortMatchConditionParameters + | HostNameMatchConditionParameters + | SslProtocolMatchConditionParameters; +export type DeliveryRuleActionParametersUnion = + | DeliveryRuleActionParameters + | UrlRedirectActionParameters + | UrlSigningActionParameters + | OriginGroupOverrideActionParameters + | UrlRewriteActionParameters + | HeaderActionParameters + | CacheExpirationActionParameters + | CacheKeyQueryStringActionParameters + | RouteConfigurationOverrideActionParameters; +export type CertificateSourceParametersUnion = + | CertificateSourceParameters + | CdnCertificateSourceParameters + | KeyVaultCertificateSourceParameters; /** Input of CheckNameAvailability API. */ export interface CheckEndpointNameAvailabilityInput { @@ -776,7 +811,7 @@ export interface RuleUpdatePropertiesParameters { /** 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[]; + actions?: DeliveryRuleActionUnion[]; /** 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; } @@ -807,7 +842,7 @@ export interface DeliveryRuleCondition { } /** An action for the delivery rule. */ -export interface DeliveryRuleActionAutoGenerated { +export interface DeliveryRuleAction { /** Polymorphic discriminator, which specifies the different types this object can be */ name: | "UrlRedirect" @@ -833,7 +868,7 @@ export interface RuleUpdateParameters { /** 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[]; + actions?: DeliveryRuleActionUnion[]; /** 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; } @@ -1029,7 +1064,7 @@ export interface ProfileListResult { /** 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. */ + /** The error detail. */ error?: ErrorDetail; } @@ -1330,7 +1365,7 @@ export interface UrlSigningKey { /** Describes the parameters for using a user's KeyVault for URL Signing Key. */ export interface KeyVaultSigningKeyParameters { - typeName: "KeyVaultSigningKeyParameters"; + typeName: KeyVaultSigningKeyParametersType; /** Subscription Id of the user's Key Vault containing the secret */ subscriptionId: string; /** Resource group of the user's Key Vault containing the secret */ @@ -1360,7 +1395,7 @@ export interface DeliveryRule { /** 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[]; + actions: DeliveryRuleActionUnion[]; } /** Defines the Web Application Firewall policy for the endpoint (if applicable) */ @@ -1716,6 +1751,28 @@ export interface CidrIpAddress { prefixLength?: number; } +/** 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 ErrorResponseAutoGenerated { + /** The error object. */ + error?: ErrorDetail; +} + +/** Request body for Migrate operation. */ +export interface CdnMigrationToAfdParameters { + /** Sku for the migration */ + sku: Sku; + /** A name map between classic CDN endpoints and AFD Premium/Standard endpoints. */ + migrationEndpointMappings?: MigrationEndpointMapping[]; +} + +/** CDN Endpoint Mapping. */ +export interface MigrationEndpointMapping { + /** Name of the classic CDN profile endpoint. */ + migratedFrom?: string; + /** Name of the newly created migrated Azure Frontdoor Standard/Premium profile endpoint. This name will replace the name of the classic CDN endpoint resource. */ + migratedTo?: string; +} + /** 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 { /** @@ -1905,982 +1962,1082 @@ export interface ValidationToken { readonly token?: 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[]; +/** Defines the parameters for delivery rule match conditions */ +export interface DeliveryRuleConditionParameters { + /** Polymorphic discriminator, which specifies the different types this object can be */ + typeName: + | "DeliveryRuleRemoteAddressConditionParameters" + | "DeliveryRuleRequestMethodConditionParameters" + | "DeliveryRuleQueryStringConditionParameters" + | "DeliveryRulePostArgsConditionParameters" + | "DeliveryRuleRequestUriConditionParameters" + | "DeliveryRuleRequestHeaderConditionParameters" + | "DeliveryRuleRequestBodyConditionParameters" + | "DeliveryRuleRequestSchemeConditionParameters" + | "DeliveryRuleUrlPathMatchConditionParameters" + | "DeliveryRuleUrlFileExtensionMatchConditionParameters" + | "DeliveryRuleUrlFilenameConditionParameters" + | "DeliveryRuleHttpVersionConditionParameters" + | "DeliveryRuleCookiesConditionParameters" + | "DeliveryRuleIsDeviceConditionParameters" + | "DeliveryRuleSocketAddrConditionParameters" + | "DeliveryRuleClientPortConditionParameters" + | "DeliveryRuleServerPortConditionParameters" + | "DeliveryRuleHostNameConditionParameters" + | "DeliveryRuleSslProtocolConditionParameters"; +} + +/** Defines the parameters for delivery rule actions */ +export interface DeliveryRuleActionParameters { + /** Polymorphic discriminator, which specifies the different types this object can be */ + typeName: + | "DeliveryRuleUrlRedirectActionParameters" + | "DeliveryRuleUrlSigningActionParameters" + | "DeliveryRuleOriginGroupOverrideActionParameters" + | "DeliveryRuleUrlRewriteActionParameters" + | "DeliveryRuleHeaderActionParameters" + | "DeliveryRuleCacheExpirationActionParameters" + | "DeliveryRuleCacheKeyQueryStringBehaviorActionParameters" + | "DeliveryRuleRouteConfigurationOverrideActionParameters"; +} + +/** Defines the parameters for certificate source */ +export interface CertificateSourceParameters { + /** Polymorphic discriminator, which specifies the different types this object can be */ + typeName: + | "CdnCertificateSourceParameters" + | "KeyVaultCertificateSourceParameters"; } -/** 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[]; +/** 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 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[]; +/** 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; } -/** 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[]; +/** 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 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 resource model definition for a ARM tracked top level resource. */ +export interface TrackedResource extends Resource { + /** Resource location. */ + location: string; + /** Resource tags. */ + tags?: { [propertyName: string]: string }; } -/** 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 resource model definition for a ARM proxy resource. It will have everything other than required location and tags */ +export interface ProxyResource extends Resource {} -/** 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[]; +/** Describes a managed rule set definition. */ +export interface ManagedRuleSetDefinition extends Resource { + /** The pricing tier (defines a CDN provider, feature list and rate) of the CdnWebApplicationFirewallPolicy. */ + sku?: Sku; + /** + * Provisioning state of the managed rule set. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: string; + /** + * Type of the managed rule set. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly ruleSetType?: string; + /** + * Version of the managed rule set type. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly ruleSetVersion?: string; + /** + * Rule groups of the managed rule set. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly ruleGroups?: ManagedRuleGroupDefinition[]; } -/** 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 that contains the properties of the domain to create. */ +export interface AFDDomainProperties + extends 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; + /** Key-Value pair representing migration properties for domains. */ + extendedProperties?: { [propertyName: string]: 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 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[]; +/** The JSON object that contains the properties required to create an endpoint. */ +export interface AFDEndpointProperties + extends 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; } -/** 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[]; -} +/** The JSON object that contains the properties of the origin group. */ +export interface AFDOriginGroupProperties + extends AFDOriginGroupUpdatePropertiesParameters, + AFDStateProperties {} -/** 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[]; -} +/** The JSON object that contains the properties of the origin. */ +export interface AFDOriginProperties + extends AFDOriginUpdatePropertiesParameters, + AFDStateProperties {} -/** 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[]; +/** The JSON object that contains the properties of the Routes to create. */ +export interface RouteProperties + extends RouteUpdatePropertiesParameters, + AFDStateProperties {} + +/** The JSON object that contains the properties of the Rule Set to create. */ +export interface RuleSetProperties extends AFDStateProperties { + /** + * The name of the profile which holds the rule set. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly profileName?: string; } -/** 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[]; +/** The JSON object that contains the properties of the Rules to create. */ +export interface RuleProperties + extends RuleUpdatePropertiesParameters, + AFDStateProperties {} + +/** The json object that contains properties required to create a security policy */ +export interface SecurityPolicyProperties extends AFDStateProperties { + /** + * The name of the profile which holds the security policy. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly profileName?: string; + /** object which contains security policy parameters */ + parameters?: SecurityPolicyPropertiesParametersUnion; } -/** 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[]; +/** The JSON object that contains the properties of the Secret to create. */ +export interface SecretProperties extends AFDStateProperties { + /** + * The name of the profile which holds the secret. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly profileName?: string; + /** object which contains secret parameters */ + parameters?: SecretParametersUnion; } -/** 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[]; +/** Defines the RemoteAddress condition for the delivery rule. */ +export interface DeliveryRuleRemoteAddressCondition + extends DeliveryRuleCondition { + /** Polymorphic discriminator, which specifies the different types this object can be */ + name: "RemoteAddress"; + /** Defines the parameters for the condition. */ + parameters: RemoteAddressMatchConditionParameters; } -/** 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[]; +/** Defines the RequestMethod condition for the delivery rule. */ +export interface DeliveryRuleRequestMethodCondition + extends DeliveryRuleCondition { + /** Polymorphic discriminator, which specifies the different types this object can be */ + name: "RequestMethod"; + /** Defines the parameters for the condition. */ + parameters: RequestMethodMatchConditionParameters; } -/** 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[]; +/** Defines the QueryString condition for the delivery rule. */ +export interface DeliveryRuleQueryStringCondition + extends DeliveryRuleCondition { + /** Polymorphic discriminator, which specifies the different types this object can be */ + name: "QueryString"; + /** Defines the parameters for the condition. */ + parameters: QueryStringMatchConditionParameters; } -/** Defines the parameters for HostName match conditions */ -export interface HostNameMatchConditionParameters { - typeName: "DeliveryRuleHostNameConditionParameters"; - /** Describes operator to be matched */ - operator: HostNameOperator; - /** Describes if this is negate condition or not */ - negateCondition?: boolean; - /** The match value for the condition of the delivery rule */ - matchValues?: string[]; - /** List of transforms */ - transforms?: Transform[]; +/** Defines the PostArgs condition for the delivery rule. */ +export interface DeliveryRulePostArgsCondition extends DeliveryRuleCondition { + /** Polymorphic discriminator, which specifies the different types this object can be */ + name: "PostArgs"; + /** Defines the parameters for the condition. */ + parameters: PostArgsMatchConditionParameters; } -/** 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[]; +/** Defines the RequestUri condition for the delivery rule. */ +export interface DeliveryRuleRequestUriCondition extends DeliveryRuleCondition { + /** Polymorphic discriminator, which specifies the different types this object can be */ + name: "RequestUri"; + /** Defines the parameters for the condition. */ + parameters: RequestUriMatchConditionParameters; } -/** 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 RequestHeader condition for the delivery rule. */ +export interface DeliveryRuleRequestHeaderCondition + extends DeliveryRuleCondition { + /** Polymorphic discriminator, which specifies the different types this object can be */ + name: "RequestHeader"; + /** Defines the parameters for the condition. */ + parameters: RequestHeaderMatchConditionParameters; } -/** 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 the RequestBody condition for the delivery rule. */ +export interface DeliveryRuleRequestBodyCondition + extends DeliveryRuleCondition { + /** Polymorphic discriminator, which specifies the different types this object can be */ + name: "RequestBody"; + /** Defines the parameters for the condition. */ + parameters: RequestBodyMatchConditionParameters; } -/** 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 RequestScheme condition for the delivery rule. */ +export interface DeliveryRuleRequestSchemeCondition + extends DeliveryRuleCondition { + /** Polymorphic discriminator, which specifies the different types this object can be */ + name: "RequestScheme"; + /** Defines the parameters for the condition. */ + parameters: RequestSchemeMatchConditionParameters; } -/** 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 UrlPath condition for the delivery rule. */ +export interface DeliveryRuleUrlPathCondition extends DeliveryRuleCondition { + /** Polymorphic discriminator, which specifies the different types this object can be */ + name: "UrlPath"; + /** Defines the parameters for the condition. */ + parameters: UrlPathMatchConditionParameters; } -/** 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 UrlFileExtension condition for the delivery rule. */ +export interface DeliveryRuleUrlFileExtensionCondition + extends DeliveryRuleCondition { + /** Polymorphic discriminator, which specifies the different types this object can be */ + name: "UrlFileExtension"; + /** Defines the parameters for the condition. */ + parameters: UrlFileExtensionMatchConditionParameters; } -/** 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 UrlFileName condition for the delivery rule. */ +export interface DeliveryRuleUrlFileNameCondition + extends DeliveryRuleCondition { + /** Polymorphic discriminator, which specifies the different types this object can be */ + name: "UrlFileName"; + /** Defines the parameters for the condition. */ + parameters: UrlFileNameMatchConditionParameters; +} + +/** Defines the HttpVersion condition for the delivery rule. */ +export interface DeliveryRuleHttpVersionCondition + extends DeliveryRuleCondition { + /** Polymorphic discriminator, which specifies the different types this object can be */ + name: "HttpVersion"; + /** Defines the parameters for the condition. */ + parameters: HttpVersionMatchConditionParameters; +} + +/** Defines the Cookies condition for the delivery rule. */ +export interface DeliveryRuleCookiesCondition extends DeliveryRuleCondition { + /** Polymorphic discriminator, which specifies the different types this object can be */ + name: "Cookies"; + /** Defines the parameters for the condition. */ + parameters: CookiesMatchConditionParameters; +} + +/** Defines the IsDevice condition for the delivery rule. */ +export interface DeliveryRuleIsDeviceCondition extends DeliveryRuleCondition { + /** Polymorphic discriminator, which specifies the different types this object can be */ + name: "IsDevice"; + /** Defines the parameters for the condition. */ + parameters: IsDeviceMatchConditionParameters; +} + +/** Defines the SocketAddress condition for the delivery rule. */ +export interface DeliveryRuleSocketAddrCondition extends DeliveryRuleCondition { + /** Polymorphic discriminator, which specifies the different types this object can be */ + name: "SocketAddr"; + /** Defines the parameters for the condition. */ + parameters: SocketAddrMatchConditionParameters; +} + +/** Defines the ClientPort condition for the delivery rule. */ +export interface DeliveryRuleClientPortCondition extends DeliveryRuleCondition { + /** Polymorphic discriminator, which specifies the different types this object can be */ + name: "ClientPort"; + /** Defines the parameters for the condition. */ + parameters: ClientPortMatchConditionParameters; +} + +/** Defines the ServerPort condition for the delivery rule. */ +export interface DeliveryRuleServerPortCondition extends DeliveryRuleCondition { + /** Polymorphic discriminator, which specifies the different types this object can be */ + name: "ServerPort"; + /** Defines the parameters for the condition. */ + parameters: ServerPortMatchConditionParameters; +} + +/** Defines the HostName condition for the delivery rule. */ +export interface DeliveryRuleHostNameCondition extends DeliveryRuleCondition { + /** Polymorphic discriminator, which specifies the different types this object can be */ + name: "HostName"; + /** Defines the parameters for the condition. */ + parameters: HostNameMatchConditionParameters; +} + +/** Defines the SslProtocol condition for the delivery rule. */ +export interface DeliveryRuleSslProtocolCondition + extends DeliveryRuleCondition { + /** Polymorphic discriminator, which specifies the different types this object can be */ + name: "SslProtocol"; + /** Defines the parameters for the condition. */ + parameters: SslProtocolMatchConditionParameters; +} + +/** Defines the url redirect action for the delivery rule. */ +export interface UrlRedirectAction extends DeliveryRuleAction { + /** Polymorphic discriminator, which specifies the different types this object can be */ + name: "UrlRedirect"; + /** Defines the parameters for the action. */ + parameters: UrlRedirectActionParameters; +} + +/** Defines the url signing action for the delivery rule. */ +export interface UrlSigningAction extends DeliveryRuleAction { + /** Polymorphic discriminator, which specifies the different types this object can be */ + name: "UrlSigning"; + /** Defines the parameters for the action. */ + parameters: UrlSigningActionParameters; +} + +/** Defines the origin group override action for the delivery rule. */ +export interface OriginGroupOverrideAction extends DeliveryRuleAction { + /** Polymorphic discriminator, which specifies the different types this object can be */ + name: "OriginGroupOverride"; + /** Defines the parameters for the action. */ + parameters: OriginGroupOverrideActionParameters; } -/** 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 url rewrite action for the delivery rule. */ +export interface UrlRewriteAction extends DeliveryRuleAction { + /** Polymorphic discriminator, which specifies the different types this object can be */ + name: "UrlRewrite"; + /** Defines the parameters for the action. */ + parameters: UrlRewriteActionParameters; } -/** 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 request header action for the delivery rule. */ +export interface DeliveryRuleRequestHeaderAction extends DeliveryRuleAction { + /** Polymorphic discriminator, which specifies the different types this object can be */ + name: "ModifyRequestHeader"; + /** Defines the parameters for the action. */ + parameters: HeaderActionParameters; } -/** 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 response header action for the delivery rule. */ +export interface DeliveryRuleResponseHeaderAction extends DeliveryRuleAction { + /** Polymorphic discriminator, which specifies the different types this object can be */ + name: "ModifyResponseHeader"; + /** Defines the parameters for the action. */ + parameters: HeaderActionParameters; } -/** 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; +/** Defines the cache expiration action for the delivery rule. */ +export interface DeliveryRuleCacheExpirationAction extends DeliveryRuleAction { + /** Polymorphic discriminator, which specifies the different types this object can be */ + name: "CacheExpiration"; + /** Defines the parameters for the action. */ + parameters: CacheExpirationActionParameters; } -/** 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 cache-key query string action for the delivery rule. */ +export interface DeliveryRuleCacheKeyQueryStringAction + extends DeliveryRuleAction { + /** Polymorphic discriminator, which specifies the different types this object can be */ + name: "CacheKeyQueryString"; + /** Defines the parameters for the action. */ + parameters: CacheKeyQueryStringActionParameters; } -/** Defines the parameters for using CDN managed certificate for securing custom domain. */ -export interface CdnCertificateSourceParameters { - typeName: "CdnCertificateSourceParameters"; - /** Type of certificate used */ - certificateType: CertificateType; +/** Defines the route configuration override action for the delivery rule. Only applicable to Frontdoor Standard/Premium Profiles. */ +export interface DeliveryRuleRouteConfigurationOverrideAction + extends DeliveryRuleAction { + /** Polymorphic discriminator, which specifies the different types this object can be */ + name: "RouteConfigurationOverride"; + /** Defines the parameters for the action. */ + parameters: RouteConfigurationOverrideActionParameters; } -/** 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 containing security policy waf parameters */ +export interface SecurityPolicyWebApplicationFirewallParameters + extends SecurityPolicyPropertiesParameters { + /** Polymorphic discriminator, which specifies the different types this object can be */ + type: "WebApplicationFirewall"; + /** Resource ID. */ + wafPolicy?: ResourceReference; + /** Waf associations */ + associations?: SecurityPolicyWebApplicationFirewallAssociation[]; } -/** The resource model definition for a ARM tracked top level resource. */ -export interface TrackedResource extends Resource { - /** Resource location. */ - location: string; - /** Resource tags. */ - tags?: { [propertyName: string]: string }; +/** Url signing key parameters */ +export interface UrlSigningKeyParameters extends 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; } -/** The resource model definition for a ARM proxy resource. It will have everything other than required location and tags */ -export interface ProxyResource extends Resource {} +/** Managed Certificate used for https */ +export interface ManagedCertificateParameters extends 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; +} -/** Describes a managed rule set definition. */ -export interface ManagedRuleSetDefinition extends Resource { - /** The pricing tier (defines a CDN provider, feature list and rate) of the CdnWebApplicationFirewallPolicy. */ - sku?: Sku; +/** Customer Certificate used for https */ +export interface CustomerCertificateParameters extends 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; /** - * Provisioning state of the managed rule set. + * Subject name in the certificate. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: string; + readonly subject?: string; /** - * Type of the managed rule set. + * Certificate expiration date. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly ruleSetType?: string; + readonly expirationDate?: string; /** - * Version of the managed rule set type. + * Certificate issuing authority. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly ruleSetVersion?: string; + readonly certificateAuthority?: string; + /** The list of SANs. */ + subjectAlternativeNames?: string[]; /** - * Rule groups of the managed rule set. + * Certificate thumbprint. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly ruleGroups?: ManagedRuleGroupDefinition[]; + readonly thumbprint?: string; } -/** The JSON object that contains the properties of the domain to create. */ -export interface AFDDomainProperties - extends AFDDomainUpdatePropertiesParameters, - AFDStateProperties { +/** Azure FirstParty Managed Certificate provided by other first party resource providers to enable HTTPS. */ +export interface AzureFirstPartyManagedCertificateParameters + extends SecretParameters { + /** Polymorphic discriminator, which specifies the different types this object can be */ + type: "AzureFirstPartyManagedCertificate"; /** - * Provisioning substate shows the progress of custom HTTPS enabling/disabling process step by step. DCV stands for DomainControlValidation. + * 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}​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​ * 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; - /** Key-Value pair representing migration properties for domains. */ - extendedProperties?: { [propertyName: string]: string }; + readonly secretSource?: ResourceReference; /** - * Values the customer needs to validate domain ownership + * Subject name in the certificate. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly validationProperties?: DomainValidationProperties; + 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; } /** The JSON object that contains the properties required to create an endpoint. */ -export interface AFDEndpointProperties - extends AFDEndpointPropertiesUpdateParameters, - AFDStateProperties { +export interface EndpointProperties extends 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; - /** Indicates the endpoint name reuse scope. The default value is TenantReuse. */ - autoGeneratedDomainNameLabelScope?: AutoGeneratedDomainNameLabelScope; + /** 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?: DeepCreatedCustomDomain[]; + /** + * 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?: EndpointProvisioningState; } -/** The JSON object that contains the properties of the origin group. */ -export interface AFDOriginGroupProperties - extends AFDOriginGroupUpdatePropertiesParameters, - AFDStateProperties {} - /** The JSON object that contains the properties of the origin. */ -export interface AFDOriginProperties - extends AFDOriginUpdatePropertiesParameters, - AFDStateProperties {} - -/** The JSON object that contains the properties of the Routes to create. */ -export interface RouteProperties - extends RouteUpdatePropertiesParameters, - AFDStateProperties {} - -/** The JSON object that contains the properties of the Rule Set to create. */ -export interface RuleSetProperties extends AFDStateProperties { +export interface OriginProperties extends 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?: OriginProvisioningState; /** - * The name of the profile which holds the rule set. + * 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 profileName?: string; + readonly privateEndpointStatus?: PrivateEndpointStatus; } -/** The JSON object that contains the properties of the Rules to create. */ -export interface RuleProperties - extends RuleUpdatePropertiesParameters, - AFDStateProperties {} - -/** The json object that contains properties required to create a security policy */ -export interface SecurityPolicyProperties extends AFDStateProperties { +/** The JSON object that contains the properties of the origin group. */ +export interface OriginGroupProperties + extends OriginGroupUpdatePropertiesParameters { /** - * The name of the profile which holds the security policy. + * Resource status of the origin group. * 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; -} - -/** The JSON object that contains the properties of the Secret to create. */ -export interface SecretProperties extends AFDStateProperties { + readonly resourceState?: OriginGroupResourceState; /** - * The name of the profile which holds the secret. + * Provisioning status of the origin group. * 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; -} - -/** Defines the RemoteAddress condition for the delivery rule. */ -export interface DeliveryRuleRemoteAddressCondition - extends DeliveryRuleCondition { - /** Polymorphic discriminator, which specifies the different types this object can be */ - name: "RemoteAddress"; - /** Defines the parameters for the condition. */ - parameters: RemoteAddressMatchConditionParameters; -} - -/** Defines the RequestMethod condition for the delivery rule. */ -export interface DeliveryRuleRequestMethodCondition - extends DeliveryRuleCondition { - /** Polymorphic discriminator, which specifies the different types this object can be */ - name: "RequestMethod"; - /** Defines the parameters for the condition. */ - parameters: RequestMethodMatchConditionParameters; -} - -/** Defines the QueryString condition for the delivery rule. */ -export interface DeliveryRuleQueryStringCondition - extends DeliveryRuleCondition { - /** Polymorphic discriminator, which specifies the different types this object can be */ - name: "QueryString"; - /** Defines the parameters for the condition. */ - parameters: QueryStringMatchConditionParameters; -} - -/** Defines the PostArgs condition for the delivery rule. */ -export interface DeliveryRulePostArgsCondition extends DeliveryRuleCondition { - /** Polymorphic discriminator, which specifies the different types this object can be */ - name: "PostArgs"; - /** Defines the parameters for the condition. */ - parameters: PostArgsMatchConditionParameters; -} - -/** Defines the RequestUri condition for the delivery rule. */ -export interface DeliveryRuleRequestUriCondition extends DeliveryRuleCondition { - /** Polymorphic discriminator, which specifies the different types this object can be */ - name: "RequestUri"; - /** Defines the parameters for the condition. */ - parameters: RequestUriMatchConditionParameters; + readonly provisioningState?: OriginGroupProvisioningState; } -/** Defines the RequestHeader condition for the delivery rule. */ -export interface DeliveryRuleRequestHeaderCondition - extends DeliveryRuleCondition { +/** Defines the certificate source parameters using CDN managed certificate for enabling SSL. */ +export interface CdnManagedHttpsParameters extends CustomDomainHttpsParameters { /** Polymorphic discriminator, which specifies the different types this object can be */ - name: "RequestHeader"; - /** Defines the parameters for the condition. */ - parameters: RequestHeaderMatchConditionParameters; + certificateSource: "Cdn"; + /** Defines the certificate source parameters using CDN managed certificate for enabling SSL. */ + certificateSourceParameters: CdnCertificateSourceParameters; } -/** Defines the RequestBody condition for the delivery rule. */ -export interface DeliveryRuleRequestBodyCondition - extends DeliveryRuleCondition { +/** Defines the certificate source parameters using user's keyvault certificate for enabling SSL. */ +export interface UserManagedHttpsParameters + extends CustomDomainHttpsParameters { /** Polymorphic discriminator, which specifies the different types this object can be */ - name: "RequestBody"; - /** Defines the parameters for the condition. */ - parameters: RequestBodyMatchConditionParameters; + certificateSource: "AzureKeyVault"; + /** Defines the certificate source parameters using user's keyvault certificate for enabling SSL. */ + certificateSourceParameters: KeyVaultCertificateSourceParameters; } -/** Defines the RequestScheme condition for the delivery rule. */ -export interface DeliveryRuleRequestSchemeCondition - extends DeliveryRuleCondition { - /** Polymorphic discriminator, which specifies the different types this object can be */ - name: "RequestScheme"; - /** Defines the parameters for the condition. */ - parameters: RequestSchemeMatchConditionParameters; +/** Defines a rate limiting rule that can be included in a waf policy */ +export interface RateLimitRule extends CustomRule { + /** Defines rate limit threshold. */ + rateLimitThreshold: number; + /** Defines rate limit duration. Default is 1 minute. */ + rateLimitDurationInMinutes: number; } -/** Defines the UrlPath condition for the delivery rule. */ -export interface DeliveryRuleUrlPathCondition extends DeliveryRuleCondition { - /** Polymorphic discriminator, which specifies the different types this object can be */ - name: "UrlPath"; - /** Defines the parameters for the condition. */ - parameters: UrlPathMatchConditionParameters; -} +/** Managed Certificate used for https */ +export interface ManagedCertificate extends Certificate {} -/** Defines the UrlFileExtension condition for the delivery rule. */ -export interface DeliveryRuleUrlFileExtensionCondition - extends DeliveryRuleCondition { - /** Polymorphic discriminator, which specifies the different types this object can be */ - name: "UrlFileExtension"; - /** Defines the parameters for the condition. */ - parameters: UrlFileExtensionMatchConditionParameters; +/** Customer Certificate used for https */ +export interface CustomerCertificate extends 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; } -/** Defines the UrlFileName condition for the delivery rule. */ -export interface DeliveryRuleUrlFileNameCondition - extends DeliveryRuleCondition { - /** Polymorphic discriminator, which specifies the different types this object can be */ - name: "UrlFileName"; - /** Defines the parameters for the condition. */ - parameters: UrlFileNameMatchConditionParameters; -} +/** Azure FirstParty Managed Certificate provided by other first party resource providers to enable HTTPS. */ +export interface AzureFirstPartyManagedCertificate extends Certificate {} -/** Defines the HttpVersion condition for the delivery rule. */ -export interface DeliveryRuleHttpVersionCondition - extends DeliveryRuleCondition { +/** Defines the parameters for RemoteAddress match conditions */ +export interface RemoteAddressMatchConditionParameters + extends DeliveryRuleConditionParameters { /** Polymorphic discriminator, which specifies the different types this object can be */ - name: "HttpVersion"; - /** Defines the parameters for the condition. */ - parameters: HttpVersionMatchConditionParameters; + 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[]; } -/** Defines the Cookies condition for the delivery rule. */ -export interface DeliveryRuleCookiesCondition extends DeliveryRuleCondition { +/** Defines the parameters for RequestMethod match conditions */ +export interface RequestMethodMatchConditionParameters + extends DeliveryRuleConditionParameters { /** Polymorphic discriminator, which specifies the different types this object can be */ - name: "Cookies"; - /** Defines the parameters for the condition. */ - parameters: CookiesMatchConditionParameters; + 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?: RequestMethodMatchValue[]; } -/** Defines the IsDevice condition for the delivery rule. */ -export interface DeliveryRuleIsDeviceCondition extends DeliveryRuleCondition { +/** Defines the parameters for QueryString match conditions */ +export interface QueryStringMatchConditionParameters + extends DeliveryRuleConditionParameters { /** Polymorphic discriminator, which specifies the different types this object can be */ - name: "IsDevice"; - /** Defines the parameters for the condition. */ - parameters: IsDeviceMatchConditionParameters; + 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[]; } -/** Defines the SocketAddress condition for the delivery rule. */ -export interface DeliveryRuleSocketAddrCondition extends DeliveryRuleCondition { +/** Defines the parameters for PostArgs match conditions */ +export interface PostArgsMatchConditionParameters + extends DeliveryRuleConditionParameters { /** Polymorphic discriminator, which specifies the different types this object can be */ - name: "SocketAddr"; - /** Defines the parameters for the condition. */ - parameters: SocketAddrMatchConditionParameters; + 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[]; } -/** Defines the ClientPort condition for the delivery rule. */ -export interface DeliveryRuleClientPortCondition extends DeliveryRuleCondition { +/** Defines the parameters for RequestUri match conditions */ +export interface RequestUriMatchConditionParameters + extends DeliveryRuleConditionParameters { /** Polymorphic discriminator, which specifies the different types this object can be */ - name: "ClientPort"; - /** Defines the parameters for the condition. */ - parameters: ClientPortMatchConditionParameters; + 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[]; } -/** Defines the ServerPort condition for the delivery rule. */ -export interface DeliveryRuleServerPortCondition extends DeliveryRuleCondition { +/** Defines the parameters for RequestHeader match conditions */ +export interface RequestHeaderMatchConditionParameters + extends DeliveryRuleConditionParameters { /** Polymorphic discriminator, which specifies the different types this object can be */ - name: "ServerPort"; - /** Defines the parameters for the condition. */ - parameters: ServerPortMatchConditionParameters; + 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[]; } -/** Defines the HostName condition for the delivery rule. */ -export interface DeliveryRuleHostNameCondition extends DeliveryRuleCondition { - /** Polymorphic discriminator, which specifies the different types this object can be */ - name: "HostName"; - /** Defines the parameters for the condition. */ - parameters: HostNameMatchConditionParameters; +/** Defines the parameters for RequestBody match conditions */ +export interface RequestBodyMatchConditionParameters + extends DeliveryRuleConditionParameters { + /** Polymorphic discriminator, which specifies the different types this object can be */ + 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[]; } -/** Defines the SslProtocol condition for the delivery rule. */ -export interface DeliveryRuleSslProtocolCondition - extends DeliveryRuleCondition { +/** Defines the parameters for RequestScheme match conditions */ +export interface RequestSchemeMatchConditionParameters + extends DeliveryRuleConditionParameters { /** Polymorphic discriminator, which specifies the different types this object can be */ - name: "SslProtocol"; - /** Defines the parameters for the condition. */ - parameters: SslProtocolMatchConditionParameters; + 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?: RequestSchemeMatchValue[]; } -/** Defines the url redirect action for the delivery rule. */ -export interface UrlRedirectAction extends DeliveryRuleActionAutoGenerated { +/** Defines the parameters for UrlPath match conditions */ +export interface UrlPathMatchConditionParameters + extends DeliveryRuleConditionParameters { /** Polymorphic discriminator, which specifies the different types this object can be */ - name: "UrlRedirect"; - /** Defines the parameters for the action. */ - parameters: UrlRedirectActionParameters; + 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[]; } -/** Defines the url signing action for the delivery rule. */ -export interface UrlSigningAction extends DeliveryRuleActionAutoGenerated { +/** Defines the parameters for UrlFileExtension match conditions */ +export interface UrlFileExtensionMatchConditionParameters + extends DeliveryRuleConditionParameters { /** Polymorphic discriminator, which specifies the different types this object can be */ - name: "UrlSigning"; - /** Defines the parameters for the action. */ - parameters: UrlSigningActionParameters; + 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[]; } -/** Defines the origin group override action for the delivery rule. */ -export interface OriginGroupOverrideAction - extends DeliveryRuleActionAutoGenerated { +/** Defines the parameters for UrlFilename match conditions */ +export interface UrlFileNameMatchConditionParameters + extends DeliveryRuleConditionParameters { /** Polymorphic discriminator, which specifies the different types this object can be */ - name: "OriginGroupOverride"; - /** Defines the parameters for the action. */ - parameters: OriginGroupOverrideActionParameters; + 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[]; } -/** Defines the url rewrite action for the delivery rule. */ -export interface UrlRewriteAction extends DeliveryRuleActionAutoGenerated { +/** Defines the parameters for HttpVersion match conditions */ +export interface HttpVersionMatchConditionParameters + extends DeliveryRuleConditionParameters { /** Polymorphic discriminator, which specifies the different types this object can be */ - name: "UrlRewrite"; - /** Defines the parameters for the action. */ - parameters: UrlRewriteActionParameters; + typeName: "DeliveryRuleHttpVersionConditionParameters"; + /** Describes operator to be matched */ + operator: HttpVersionOperator; + /** Describes if this is negate condition or not */ + negateCondition?: boolean; + /** The match value for the condition of the delivery rule */ + matchValues?: string[]; + /** List of transforms */ + transforms?: Transform[]; } -/** Defines the request header action for the delivery rule. */ -export interface DeliveryRuleRequestHeaderAction - extends DeliveryRuleActionAutoGenerated { +/** Defines the parameters for Cookies match conditions */ +export interface CookiesMatchConditionParameters + extends DeliveryRuleConditionParameters { /** Polymorphic discriminator, which specifies the different types this object can be */ - name: "ModifyRequestHeader"; - /** Defines the parameters for the action. */ - parameters: HeaderActionParameters; + 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[]; } -/** Defines the response header action for the delivery rule. */ -export interface DeliveryRuleResponseHeaderAction - extends DeliveryRuleActionAutoGenerated { +/** Defines the parameters for IsDevice match conditions */ +export interface IsDeviceMatchConditionParameters + extends DeliveryRuleConditionParameters { /** Polymorphic discriminator, which specifies the different types this object can be */ - name: "ModifyResponseHeader"; - /** Defines the parameters for the action. */ - parameters: HeaderActionParameters; + 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?: IsDeviceMatchValue[]; + /** List of transforms */ + transforms?: Transform[]; } -/** Defines the cache expiration action for the delivery rule. */ -export interface DeliveryRuleCacheExpirationAction - extends DeliveryRuleActionAutoGenerated { +/** Defines the parameters for SocketAddress match conditions */ +export interface SocketAddrMatchConditionParameters + extends DeliveryRuleConditionParameters { /** Polymorphic discriminator, which specifies the different types this object can be */ - name: "CacheExpiration"; - /** Defines the parameters for the action. */ - parameters: CacheExpirationActionParameters; + 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[]; } -/** Defines the cache-key query string action for the delivery rule. */ -export interface DeliveryRuleCacheKeyQueryStringAction - extends DeliveryRuleActionAutoGenerated { +/** Defines the parameters for ClientPort match conditions */ +export interface ClientPortMatchConditionParameters + extends DeliveryRuleConditionParameters { /** Polymorphic discriminator, which specifies the different types this object can be */ - name: "CacheKeyQueryString"; - /** Defines the parameters for the action. */ - parameters: CacheKeyQueryStringActionParameters; + 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[]; } -/** Defines the route configuration override action for the delivery rule. Only applicable to Frontdoor Standard/Premium Profiles. */ -export interface DeliveryRuleRouteConfigurationOverrideAction - extends DeliveryRuleActionAutoGenerated { +/** Defines the parameters for ServerPort match conditions */ +export interface ServerPortMatchConditionParameters + extends DeliveryRuleConditionParameters { /** Polymorphic discriminator, which specifies the different types this object can be */ - name: "RouteConfigurationOverride"; - /** Defines the parameters for the action. */ - parameters: RouteConfigurationOverrideActionParameters; + 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[]; } -/** The json object containing security policy waf parameters */ -export interface SecurityPolicyWebApplicationFirewallParameters - extends SecurityPolicyPropertiesParameters { +/** Defines the parameters for HostName match conditions */ +export interface HostNameMatchConditionParameters + extends DeliveryRuleConditionParameters { /** Polymorphic discriminator, which specifies the different types this object can be */ - type: "WebApplicationFirewall"; - /** Resource ID. */ - wafPolicy?: ResourceReference; - /** Waf associations */ - associations?: SecurityPolicyWebApplicationFirewallAssociation[]; + 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[]; } -/** Url signing key parameters */ -export interface UrlSigningKeyParameters extends SecretParameters { +/** Defines the parameters for SslProtocol match conditions */ +export interface SslProtocolMatchConditionParameters + extends DeliveryRuleConditionParameters { /** 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; + 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[]; } -/** Managed Certificate used for https */ -export interface ManagedCertificateParameters extends SecretParameters { +/** Defines the parameters for the url redirect action. */ +export interface UrlRedirectActionParameters + extends DeliveryRuleActionParameters { /** 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; + 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; } -/** Customer Certificate used for https */ -export interface CustomerCertificateParameters extends SecretParameters { +/** Defines the parameters for the Url Signing action. */ +export interface UrlSigningActionParameters + extends DeliveryRuleActionParameters { /** 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; + 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[]; } -/** Azure FirstParty Managed Certificate provided by other first party resource providers to enable HTTPS. */ -export interface AzureFirstPartyManagedCertificateParameters - extends SecretParameters { +/** Defines the parameters for the origin group override action. */ +export interface OriginGroupOverrideActionParameters + extends DeliveryRuleActionParameters { /** Polymorphic discriminator, which specifies the different types this object can be */ - type: "AzureFirstPartyManagedCertificate"; - /** - * 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}​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​ - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly secretSource?: ResourceReference; - /** - * 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; + typeName: "DeliveryRuleOriginGroupOverrideActionParameters"; + /** defines the OriginGroup that would override the DefaultOriginGroup. */ + originGroup: ResourceReference; } -/** The JSON object that contains the properties required to create an endpoint. */ -export interface EndpointProperties extends 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?: DeepCreatedCustomDomain[]; - /** - * 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?: EndpointProvisioningState; +/** Defines the parameters for the url rewrite action. */ +export interface UrlRewriteActionParameters + extends DeliveryRuleActionParameters { + /** Polymorphic discriminator, which specifies the different types this object can be */ + 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; } -/** The JSON object that contains the properties of the origin. */ -export interface OriginProperties extends 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?: OriginProvisioningState; - /** - * 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 the request header action. */ +export interface HeaderActionParameters extends DeliveryRuleActionParameters { + /** Polymorphic discriminator, which specifies the different types this object can be */ + typeName: "DeliveryRuleHeaderActionParameters"; + /** Action to perform */ + headerAction: HeaderAction; + /** Name of the header to modify */ + headerName: string; + /** Value for the specified action */ + value?: string; } -/** The JSON object that contains the properties of the origin group. */ -export interface OriginGroupProperties - extends 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?: OriginGroupProvisioningState; +/** Defines the parameters for the cache expiration action. */ +export interface CacheExpirationActionParameters + extends DeliveryRuleActionParameters { + /** Polymorphic discriminator, which specifies the different types this object can be */ + 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 certificate source parameters using CDN managed certificate for enabling SSL. */ -export interface CdnManagedHttpsParameters extends CustomDomainHttpsParameters { +/** Defines the parameters for the cache-key query string action. */ +export interface CacheKeyQueryStringActionParameters + extends DeliveryRuleActionParameters { /** 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; + typeName: "DeliveryRuleCacheKeyQueryStringBehaviorActionParameters"; + /** Caching behavior for the requests */ + queryStringBehavior: QueryStringBehavior; + /** query parameters to include or exclude (comma separated). */ + queryParameters?: string; } -/** Defines the certificate source parameters using user's keyvault certificate for enabling SSL. */ -export interface UserManagedHttpsParameters - extends CustomDomainHttpsParameters { +/** Defines the parameters for the route configuration override action. */ +export interface RouteConfigurationOverrideActionParameters + extends DeliveryRuleActionParameters { /** 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; + 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 a rate limiting rule that can be included in a waf policy */ -export interface RateLimitRule extends CustomRule { - /** Defines rate limit threshold. */ - rateLimitThreshold: number; - /** Defines rate limit duration. Default is 1 minute. */ - rateLimitDurationInMinutes: number; +/** Defines the parameters for using CDN managed certificate for securing custom domain. */ +export interface CdnCertificateSourceParameters + extends CertificateSourceParameters { + /** Polymorphic discriminator, which specifies the different types this object can be */ + typeName: "CdnCertificateSourceParameters"; + /** Type of certificate used */ + certificateType: CertificateType; } -/** Managed Certificate used for https */ -export interface ManagedCertificate extends Certificate {} - -/** Customer Certificate used for https */ -export interface CustomerCertificate extends 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. */ +/** Describes the parameters for using a user's KeyVault certificate for securing custom domain. */ +export interface KeyVaultCertificateSourceParameters + extends CertificateSourceParameters { + /** Polymorphic discriminator, which specifies the different types this object can be */ + 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; - /** - * 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; + /** 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; } -/** Azure FirstParty Managed Certificate provided by other first party resource providers to enable HTTPS. */ -export interface AzureFirstPartyManagedCertificate extends Certificate {} - /** A profile is a logical grouping of endpoints that share the same settings. */ export interface Profile extends TrackedResource { /** The pricing tier (defines Azure Front Door Standard or Premium or a CDN provider, feature list and rate) of the profile. */ @@ -3194,7 +3351,7 @@ export interface Rule extends ProxyResource { /** 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[]; + actions?: DeliveryRuleActionUnion[]; /** 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; /** @@ -3506,6 +3663,21 @@ export interface ProfilesMigrationCommitHeaders { location?: string; } +/** Defines headers for Profiles_cdnCanMigrateToAfd operation. */ +export interface ProfilesCdnCanMigrateToAfdHeaders { + location?: string; +} + +/** Defines headers for Profiles_cdnMigrateToAfd operation. */ +export interface ProfilesCdnMigrateToAfdHeaders { + location?: string; +} + +/** Defines headers for Profiles_migrationAbort operation. */ +export interface ProfilesMigrationAbortHeaders { + location?: string; +} + /** Defines headers for Endpoints_create operation. */ export interface EndpointsCreateHeaders { location?: string; @@ -4240,8 +4412,8 @@ export enum KnownMatchVariable { */ export type MatchVariable = string; -/** Known values of {@link DeliveryRuleAction} that the service accepts. */ -export enum KnownDeliveryRuleAction { +/** Known values of {@link DeliveryRuleActionName} that the service accepts. */ +export enum KnownDeliveryRuleActionName { /** CacheExpiration */ CacheExpiration = "CacheExpiration", /** CacheKeyQueryString */ @@ -4263,8 +4435,8 @@ export enum KnownDeliveryRuleAction { } /** - * Defines values for DeliveryRuleAction. \ - * {@link KnownDeliveryRuleAction} can be used interchangeably with DeliveryRuleAction, + * Defines values for DeliveryRuleActionName. \ + * {@link KnownDeliveryRuleActionName} can be used interchangeably with DeliveryRuleActionName, * this enum contains the known values that the service supports. * ### Known values supported by the service * **CacheExpiration** \ @@ -4277,7 +4449,7 @@ export enum KnownDeliveryRuleAction { * **OriginGroupOverride** \ * **RouteConfigurationOverride** */ -export type DeliveryRuleAction = string; +export type DeliveryRuleActionName = string; /** Known values of {@link MatchProcessingBehavior} that the service accepts. */ export enum KnownMatchProcessingBehavior { @@ -4807,6 +4979,21 @@ export enum KnownEndpointProvisioningState { */ export type EndpointProvisioningState = string; +/** Known values of {@link KeyVaultSigningKeyParametersType} that the service accepts. */ +export enum KnownKeyVaultSigningKeyParametersType { + /** KeyVaultSigningKeyParameters */ + KeyVaultSigningKeyParameters = "KeyVaultSigningKeyParameters", +} + +/** + * Defines values for KeyVaultSigningKeyParametersType. \ + * {@link KnownKeyVaultSigningKeyParametersType} can be used interchangeably with KeyVaultSigningKeyParametersType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **KeyVaultSigningKeyParameters** + */ +export type KeyVaultSigningKeyParametersType = string; + /** Known values of {@link OriginResourceState} that the service accepts. */ export enum KnownOriginResourceState { /** Creating */ @@ -5320,6 +5507,129 @@ export enum KnownPolicyResourceState { */ export type PolicyResourceState = string; +/** Known values of {@link DeliveryRuleConditionParametersType} that the service accepts. */ +export enum KnownDeliveryRuleConditionParametersType { + /** DeliveryRuleRemoteAddressConditionParameters */ + DeliveryRuleRemoteAddressConditionParameters = "DeliveryRuleRemoteAddressConditionParameters", + /** DeliveryRuleRequestMethodConditionParameters */ + DeliveryRuleRequestMethodConditionParameters = "DeliveryRuleRequestMethodConditionParameters", + /** DeliveryRuleQueryStringConditionParameters */ + DeliveryRuleQueryStringConditionParameters = "DeliveryRuleQueryStringConditionParameters", + /** DeliveryRulePostArgsConditionParameters */ + DeliveryRulePostArgsConditionParameters = "DeliveryRulePostArgsConditionParameters", + /** DeliveryRuleRequestUriConditionParameters */ + DeliveryRuleRequestUriConditionParameters = "DeliveryRuleRequestUriConditionParameters", + /** DeliveryRuleRequestHeaderConditionParameters */ + DeliveryRuleRequestHeaderConditionParameters = "DeliveryRuleRequestHeaderConditionParameters", + /** DeliveryRuleRequestBodyConditionParameters */ + DeliveryRuleRequestBodyConditionParameters = "DeliveryRuleRequestBodyConditionParameters", + /** DeliveryRuleRequestSchemeConditionParameters */ + DeliveryRuleRequestSchemeConditionParameters = "DeliveryRuleRequestSchemeConditionParameters", + /** DeliveryRuleUrlPathMatchConditionParameters */ + DeliveryRuleUrlPathMatchConditionParameters = "DeliveryRuleUrlPathMatchConditionParameters", + /** DeliveryRuleUrlFileExtensionMatchConditionParameters */ + DeliveryRuleUrlFileExtensionMatchConditionParameters = "DeliveryRuleUrlFileExtensionMatchConditionParameters", + /** DeliveryRuleUrlFilenameConditionParameters */ + DeliveryRuleUrlFilenameConditionParameters = "DeliveryRuleUrlFilenameConditionParameters", + /** DeliveryRuleHttpVersionConditionParameters */ + DeliveryRuleHttpVersionConditionParameters = "DeliveryRuleHttpVersionConditionParameters", + /** DeliveryRuleCookiesConditionParameters */ + DeliveryRuleCookiesConditionParameters = "DeliveryRuleCookiesConditionParameters", + /** DeliveryRuleIsDeviceConditionParameters */ + DeliveryRuleIsDeviceConditionParameters = "DeliveryRuleIsDeviceConditionParameters", + /** DeliveryRuleSocketAddrConditionParameters */ + DeliveryRuleSocketAddrConditionParameters = "DeliveryRuleSocketAddrConditionParameters", + /** DeliveryRuleClientPortConditionParameters */ + DeliveryRuleClientPortConditionParameters = "DeliveryRuleClientPortConditionParameters", + /** DeliveryRuleServerPortConditionParameters */ + DeliveryRuleServerPortConditionParameters = "DeliveryRuleServerPortConditionParameters", + /** DeliveryRuleHostNameConditionParameters */ + DeliveryRuleHostNameConditionParameters = "DeliveryRuleHostNameConditionParameters", + /** DeliveryRuleSslProtocolConditionParameters */ + DeliveryRuleSslProtocolConditionParameters = "DeliveryRuleSslProtocolConditionParameters", +} + +/** + * Defines values for DeliveryRuleConditionParametersType. \ + * {@link KnownDeliveryRuleConditionParametersType} can be used interchangeably with DeliveryRuleConditionParametersType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **DeliveryRuleRemoteAddressConditionParameters** \ + * **DeliveryRuleRequestMethodConditionParameters** \ + * **DeliveryRuleQueryStringConditionParameters** \ + * **DeliveryRulePostArgsConditionParameters** \ + * **DeliveryRuleRequestUriConditionParameters** \ + * **DeliveryRuleRequestHeaderConditionParameters** \ + * **DeliveryRuleRequestBodyConditionParameters** \ + * **DeliveryRuleRequestSchemeConditionParameters** \ + * **DeliveryRuleUrlPathMatchConditionParameters** \ + * **DeliveryRuleUrlFileExtensionMatchConditionParameters** \ + * **DeliveryRuleUrlFilenameConditionParameters** \ + * **DeliveryRuleHttpVersionConditionParameters** \ + * **DeliveryRuleCookiesConditionParameters** \ + * **DeliveryRuleIsDeviceConditionParameters** \ + * **DeliveryRuleSocketAddrConditionParameters** \ + * **DeliveryRuleClientPortConditionParameters** \ + * **DeliveryRuleServerPortConditionParameters** \ + * **DeliveryRuleHostNameConditionParameters** \ + * **DeliveryRuleSslProtocolConditionParameters** + */ +export type DeliveryRuleConditionParametersType = string; + +/** Known values of {@link DeliveryRuleActionParametersType} that the service accepts. */ +export enum KnownDeliveryRuleActionParametersType { + /** DeliveryRuleUrlRedirectActionParameters */ + DeliveryRuleUrlRedirectActionParameters = "DeliveryRuleUrlRedirectActionParameters", + /** DeliveryRuleUrlSigningActionParameters */ + DeliveryRuleUrlSigningActionParameters = "DeliveryRuleUrlSigningActionParameters", + /** DeliveryRuleOriginGroupOverrideActionParameters */ + DeliveryRuleOriginGroupOverrideActionParameters = "DeliveryRuleOriginGroupOverrideActionParameters", + /** DeliveryRuleUrlRewriteActionParameters */ + DeliveryRuleUrlRewriteActionParameters = "DeliveryRuleUrlRewriteActionParameters", + /** DeliveryRuleHeaderActionParameters */ + DeliveryRuleHeaderActionParameters = "DeliveryRuleHeaderActionParameters", + /** DeliveryRuleCacheExpirationActionParameters */ + DeliveryRuleCacheExpirationActionParameters = "DeliveryRuleCacheExpirationActionParameters", + /** DeliveryRuleCacheKeyQueryStringBehaviorActionParameters */ + DeliveryRuleCacheKeyQueryStringBehaviorActionParameters = "DeliveryRuleCacheKeyQueryStringBehaviorActionParameters", + /** DeliveryRuleRouteConfigurationOverrideActionParameters */ + DeliveryRuleRouteConfigurationOverrideActionParameters = "DeliveryRuleRouteConfigurationOverrideActionParameters", +} + +/** + * Defines values for DeliveryRuleActionParametersType. \ + * {@link KnownDeliveryRuleActionParametersType} can be used interchangeably with DeliveryRuleActionParametersType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **DeliveryRuleUrlRedirectActionParameters** \ + * **DeliveryRuleUrlSigningActionParameters** \ + * **DeliveryRuleOriginGroupOverrideActionParameters** \ + * **DeliveryRuleUrlRewriteActionParameters** \ + * **DeliveryRuleHeaderActionParameters** \ + * **DeliveryRuleCacheExpirationActionParameters** \ + * **DeliveryRuleCacheKeyQueryStringBehaviorActionParameters** \ + * **DeliveryRuleRouteConfigurationOverrideActionParameters** + */ +export type DeliveryRuleActionParametersType = string; + +/** Known values of {@link CertificateSourceParametersType} that the service accepts. */ +export enum KnownCertificateSourceParametersType { + /** CdnCertificateSourceParameters */ + CdnCertificateSourceParameters = "CdnCertificateSourceParameters", + /** KeyVaultCertificateSourceParameters */ + KeyVaultCertificateSourceParameters = "KeyVaultCertificateSourceParameters", +} + +/** + * Defines values for CertificateSourceParametersType. \ + * {@link KnownCertificateSourceParametersType} can be used interchangeably with CertificateSourceParametersType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **CdnCertificateSourceParameters** \ + * **KeyVaultCertificateSourceParameters** + */ +export type CertificateSourceParametersType = string; + /** Known values of {@link RemoteAddressOperator} that the service accepts. */ export enum KnownRemoteAddressOperator { /** Any */ @@ -5386,8 +5696,8 @@ export enum KnownRequestMethodOperator { */ export type RequestMethodOperator = string; -/** Known values of {@link RequestMethodMatchConditionParametersMatchValuesItem} that the service accepts. */ -export enum KnownRequestMethodMatchConditionParametersMatchValuesItem { +/** Known values of {@link RequestMethodMatchValue} that the service accepts. */ +export enum KnownRequestMethodMatchValue { /** GET */ GET = "GET", /** Head */ @@ -5405,8 +5715,8 @@ export enum KnownRequestMethodMatchConditionParametersMatchValuesItem { } /** - * Defines values for RequestMethodMatchConditionParametersMatchValuesItem. \ - * {@link KnownRequestMethodMatchConditionParametersMatchValuesItem} can be used interchangeably with RequestMethodMatchConditionParametersMatchValuesItem, + * Defines values for RequestMethodMatchValue. \ + * {@link KnownRequestMethodMatchValue} can be used interchangeably with RequestMethodMatchValue, * this enum contains the known values that the service supports. * ### Known values supported by the service * **GET** \ @@ -5417,7 +5727,7 @@ export enum KnownRequestMethodMatchConditionParametersMatchValuesItem { * **OPTIONS** \ * **TRACE** */ -export type RequestMethodMatchConditionParametersMatchValuesItem = string; +export type RequestMethodMatchValue = string; /** Known values of {@link QueryStringOperator} that the service accepts. */ export enum KnownQueryStringOperator { @@ -5629,8 +5939,8 @@ export enum KnownRequestBodyOperator { */ export type RequestBodyOperator = string; -/** Known values of {@link RequestSchemeMatchConditionParametersMatchValuesItem} that the service accepts. */ -export enum KnownRequestSchemeMatchConditionParametersMatchValuesItem { +/** Known values of {@link RequestSchemeMatchValue} that the service accepts. */ +export enum KnownRequestSchemeMatchValue { /** Http */ Http = "HTTP", /** Https */ @@ -5638,14 +5948,14 @@ export enum KnownRequestSchemeMatchConditionParametersMatchValuesItem { } /** - * Defines values for RequestSchemeMatchConditionParametersMatchValuesItem. \ - * {@link KnownRequestSchemeMatchConditionParametersMatchValuesItem} can be used interchangeably with RequestSchemeMatchConditionParametersMatchValuesItem, + * Defines values for RequestSchemeMatchValue. \ + * {@link KnownRequestSchemeMatchValue} can be used interchangeably with RequestSchemeMatchValue, * this enum contains the known values that the service supports. * ### Known values supported by the service * **HTTP** \ * **HTTPS** */ -export type RequestSchemeMatchConditionParametersMatchValuesItem = string; +export type RequestSchemeMatchValue = string; /** Known values of {@link UrlPathOperator} that the service accepts. */ export enum KnownUrlPathOperator { @@ -5848,8 +6158,8 @@ export enum KnownIsDeviceOperator { */ export type IsDeviceOperator = string; -/** Known values of {@link IsDeviceMatchConditionParametersMatchValuesItem} that the service accepts. */ -export enum KnownIsDeviceMatchConditionParametersMatchValuesItem { +/** Known values of {@link IsDeviceMatchValue} that the service accepts. */ +export enum KnownIsDeviceMatchValue { /** Mobile */ Mobile = "Mobile", /** Desktop */ @@ -5857,14 +6167,14 @@ export enum KnownIsDeviceMatchConditionParametersMatchValuesItem { } /** - * Defines values for IsDeviceMatchConditionParametersMatchValuesItem. \ - * {@link KnownIsDeviceMatchConditionParametersMatchValuesItem} can be used interchangeably with IsDeviceMatchConditionParametersMatchValuesItem, + * Defines values for IsDeviceMatchValue. \ + * {@link KnownIsDeviceMatchValue} can be used interchangeably with IsDeviceMatchValue, * this enum contains the known values that the service supports. * ### Known values supported by the service * **Mobile** \ * **Desktop** */ -export type IsDeviceMatchConditionParametersMatchValuesItem = string; +export type IsDeviceMatchValue = string; /** Known values of {@link SocketAddrOperator} that the service accepts. */ export enum KnownSocketAddrOperator { @@ -7120,6 +7430,42 @@ export interface ProfilesListResourceUsageOptionalParams /** Contains response data for the listResourceUsage operation. */ export type ProfilesListResourceUsageResponse = ResourceUsageListResult; +/** Optional parameters. */ +export interface ProfilesCdnCanMigrateToAfdOptionalParams + 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 cdnCanMigrateToAfd operation. */ +export type ProfilesCdnCanMigrateToAfdResponse = CanMigrateResult; + +/** Optional parameters. */ +export interface ProfilesCdnMigrateToAfdOptionalParams + 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 cdnMigrateToAfd operation. */ +export type ProfilesCdnMigrateToAfdResponse = MigrateResult; + +/** Optional parameters. */ +export interface ProfilesMigrationAbortOptionalParams + 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 migrationAbort operation. */ +export type ProfilesMigrationAbortResponse = ProfilesMigrationAbortHeaders; + /** Optional parameters. */ export interface ProfilesListNextOptionalParams extends coreClient.OperationOptions {} diff --git a/sdk/cdn/arm-cdn/src/models/mappers.ts b/sdk/cdn/arm-cdn/src/models/mappers.ts index ac18cb0c0a20..c181689e61c6 100644 --- a/sdk/cdn/arm-cdn/src/models/mappers.ts +++ b/sdk/cdn/arm-cdn/src/models/mappers.ts @@ -1848,7 +1848,7 @@ export const RuleUpdatePropertiesParameters: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DeliveryRuleActionAutoGenerated", + className: "DeliveryRuleAction", }, }, }, @@ -1885,11 +1885,11 @@ export const DeliveryRuleCondition: coreClient.CompositeMapper = { }, }; -export const DeliveryRuleActionAutoGenerated: coreClient.CompositeMapper = { +export const DeliveryRuleAction: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DeliveryRuleActionAutoGenerated", - uberParent: "DeliveryRuleActionAutoGenerated", + className: "DeliveryRuleAction", + uberParent: "DeliveryRuleAction", polymorphicDiscriminator: { serializedName: "name", clientName: "name", @@ -1943,7 +1943,7 @@ export const RuleUpdateParameters: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DeliveryRuleActionAutoGenerated", + className: "DeliveryRuleAction", }, }, }, @@ -3617,9 +3617,8 @@ export const KeyVaultSigningKeyParameters: coreClient.CompositeMapper = { className: "KeyVaultSigningKeyParameters", modelProperties: { typeName: { - defaultValue: "KeyVaultSigningKeyParameters", - isConstant: true, serializedName: "typeName", + required: true, type: { name: "String", }, @@ -3730,7 +3729,7 @@ export const DeliveryRule: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DeliveryRuleActionAutoGenerated", + className: "DeliveryRuleAction", }, }, }, @@ -4806,6 +4805,71 @@ export const CidrIpAddress: coreClient.CompositeMapper = { }, }; +export const ErrorResponseAutoGenerated: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ErrorResponseAutoGenerated", + modelProperties: { + error: { + serializedName: "error", + type: { + name: "Composite", + className: "ErrorDetail", + }, + }, + }, + }, +}; + +export const CdnMigrationToAfdParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CdnMigrationToAfdParameters", + modelProperties: { + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku", + }, + }, + migrationEndpointMappings: { + serializedName: "migrationEndpointMappings", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MigrationEndpointMapping", + }, + }, + }, + }, + }, + }, +}; + +export const MigrationEndpointMapping: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "MigrationEndpointMapping", + modelProperties: { + migratedFrom: { + serializedName: "migratedFrom", + type: { + name: "String", + }, + }, + migratedTo: { + serializedName: "migratedTo", + type: { + name: "String", + }, + }, + }, + }, +}; + export const CdnWebApplicationFirewallPolicyList: coreClient.CompositeMapper = { type: { name: "Composite", @@ -5350,384 +5414,230 @@ export const ValidationToken: coreClient.CompositeMapper = { }, }; -export const RemoteAddressMatchConditionParameters: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "RemoteAddressMatchConditionParameters", - modelProperties: { - typeName: { - defaultValue: "DeliveryRuleRemoteAddressConditionParameters", - isConstant: true, - serializedName: "typeName", - type: { - name: "String", - }, - }, - operator: { - serializedName: "operator", - required: true, - type: { - name: "String", - }, - }, - negateCondition: { - defaultValue: false, - serializedName: "negateCondition", - type: { - name: "Boolean", - }, - }, - matchValues: { - serializedName: "matchValues", - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, - }, - transforms: { - serializedName: "transforms", - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, +export const DeliveryRuleConditionParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DeliveryRuleConditionParameters", + uberParent: "DeliveryRuleConditionParameters", + polymorphicDiscriminator: { + serializedName: "typeName", + clientName: "typeName", + }, + modelProperties: { + typeName: { + serializedName: "typeName", + required: true, + type: { + name: "String", }, }, }, - }; + }, +}; -export const RequestMethodMatchConditionParameters: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "RequestMethodMatchConditionParameters", - modelProperties: { - typeName: { - defaultValue: "DeliveryRuleRequestMethodConditionParameters", - isConstant: true, - serializedName: "typeName", - type: { - name: "String", - }, - }, - operator: { - serializedName: "operator", - required: true, - type: { - name: "String", - }, - }, - negateCondition: { - defaultValue: false, - serializedName: "negateCondition", - type: { - name: "Boolean", - }, - }, - transforms: { - serializedName: "transforms", - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, - }, - matchValues: { - serializedName: "matchValues", - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, +export const DeliveryRuleActionParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DeliveryRuleActionParameters", + uberParent: "DeliveryRuleActionParameters", + polymorphicDiscriminator: { + serializedName: "typeName", + clientName: "typeName", + }, + modelProperties: { + typeName: { + serializedName: "typeName", + required: true, + type: { + name: "String", }, }, }, - }; + }, +}; -export const QueryStringMatchConditionParameters: coreClient.CompositeMapper = { +export const CertificateSourceParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "QueryStringMatchConditionParameters", + className: "CertificateSourceParameters", + uberParent: "CertificateSourceParameters", + polymorphicDiscriminator: { + serializedName: "typeName", + clientName: "typeName", + }, modelProperties: { typeName: { - defaultValue: "DeliveryRuleQueryStringConditionParameters", - isConstant: true, serializedName: "typeName", + required: true, type: { name: "String", }, }, - operator: { - serializedName: "operator", + }, + }, +}; + +export const UrlSigningParamIdentifier: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "UrlSigningParamIdentifier", + modelProperties: { + paramIndicator: { + serializedName: "paramIndicator", required: true, type: { name: "String", }, }, - negateCondition: { - defaultValue: false, - serializedName: "negateCondition", + paramName: { + serializedName: "paramName", + required: true, type: { - name: "Boolean", + name: "String", }, }, - matchValues: { - serializedName: "matchValues", + }, + }, +}; + +export const OriginGroupOverride: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OriginGroupOverride", + modelProperties: { + originGroup: { + serializedName: "originGroup", type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, + name: "Composite", + className: "ResourceReference", }, }, - transforms: { - serializedName: "transforms", + forwardingProtocol: { + serializedName: "forwardingProtocol", type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, + name: "String", }, }, }, }, }; -export const PostArgsMatchConditionParameters: coreClient.CompositeMapper = { +export const CacheConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PostArgsMatchConditionParameters", + className: "CacheConfiguration", modelProperties: { - typeName: { - defaultValue: "DeliveryRulePostArgsConditionParameters", - isConstant: true, - serializedName: "typeName", + queryStringCachingBehavior: { + serializedName: "queryStringCachingBehavior", type: { name: "String", }, }, - selector: { - serializedName: "selector", + queryParameters: { + serializedName: "queryParameters", type: { name: "String", }, }, - operator: { - serializedName: "operator", - required: true, + isCompressionEnabled: { + serializedName: "isCompressionEnabled", type: { name: "String", }, }, - negateCondition: { - defaultValue: false, - serializedName: "negateCondition", + cacheBehavior: { + serializedName: "cacheBehavior", type: { - name: "Boolean", + name: "String", }, }, - matchValues: { - serializedName: "matchValues", - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, - }, - transforms: { - serializedName: "transforms", + cacheDuration: { + serializedName: "cacheDuration", type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, + name: "String", }, }, }, }, }; -export const RequestUriMatchConditionParameters: coreClient.CompositeMapper = { +export const TrackedResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RequestUriMatchConditionParameters", + className: "TrackedResource", modelProperties: { - typeName: { - defaultValue: "DeliveryRuleRequestUriConditionParameters", - isConstant: true, - serializedName: "typeName", - type: { - name: "String", - }, - }, - operator: { - serializedName: "operator", + ...Resource.type.modelProperties, + location: { + serializedName: "location", required: true, type: { name: "String", }, }, - negateCondition: { - defaultValue: false, - serializedName: "negateCondition", - type: { - name: "Boolean", - }, - }, - matchValues: { - serializedName: "matchValues", - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, - }, - transforms: { - serializedName: "transforms", + tags: { + serializedName: "tags", type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, + name: "Dictionary", + value: { type: { name: "String" } }, }, }, }, }, }; -export const RequestHeaderMatchConditionParameters: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "RequestHeaderMatchConditionParameters", - modelProperties: { - typeName: { - defaultValue: "DeliveryRuleRequestHeaderConditionParameters", - isConstant: true, - serializedName: "typeName", - type: { - name: "String", - }, - }, - selector: { - serializedName: "selector", - type: { - name: "String", - }, - }, - operator: { - serializedName: "operator", - required: true, - type: { - name: "String", - }, - }, - negateCondition: { - defaultValue: false, - serializedName: "negateCondition", - type: { - name: "Boolean", - }, - }, - matchValues: { - serializedName: "matchValues", - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, - }, - transforms: { - serializedName: "transforms", - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, - }, - }, +export const ProxyResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ProxyResource", + modelProperties: { + ...Resource.type.modelProperties, }, - }; + }, +}; -export const RequestBodyMatchConditionParameters: coreClient.CompositeMapper = { +export const ManagedRuleSetDefinition: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RequestBodyMatchConditionParameters", + className: "ManagedRuleSetDefinition", modelProperties: { - typeName: { - defaultValue: "DeliveryRuleRequestBodyConditionParameters", - isConstant: true, - serializedName: "typeName", + ...Resource.type.modelProperties, + sku: { + serializedName: "sku", type: { - name: "String", + name: "Composite", + className: "Sku", }, }, - operator: { - serializedName: "operator", - required: true, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { name: "String", }, }, - negateCondition: { - defaultValue: false, - serializedName: "negateCondition", + ruleSetType: { + serializedName: "properties.ruleSetType", + readOnly: true, type: { - name: "Boolean", + name: "String", }, }, - matchValues: { - serializedName: "matchValues", + ruleSetVersion: { + serializedName: "properties.ruleSetVersion", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, + name: "String", }, }, - transforms: { - serializedName: "transforms", + ruleGroups: { + serializedName: "properties.ruleGroups", + readOnly: true, type: { name: "Sequence", element: { type: { - name: "String", + name: "Composite", + className: "ManagedRuleGroupDefinition", }, }, }, @@ -5736,1016 +5646,822 @@ export const RequestBodyMatchConditionParameters: coreClient.CompositeMapper = { }, }; -export const RequestSchemeMatchConditionParameters: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "RequestSchemeMatchConditionParameters", - modelProperties: { - typeName: { - defaultValue: "DeliveryRuleRequestSchemeConditionParameters", - isConstant: true, - serializedName: "typeName", - type: { - name: "String", - }, - }, - operator: { - defaultValue: "Equal", - isConstant: true, - serializedName: "operator", - type: { - name: "String", - }, - }, - negateCondition: { - defaultValue: false, - serializedName: "negateCondition", - type: { - name: "Boolean", - }, - }, - transforms: { - serializedName: "transforms", - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, - }, - matchValues: { - serializedName: "matchValues", - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, - }, - }, - }, - }; - -export const UrlPathMatchConditionParameters: coreClient.CompositeMapper = { +export const AFDDomainProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UrlPathMatchConditionParameters", + className: "AFDDomainProperties", modelProperties: { - typeName: { - defaultValue: "DeliveryRuleUrlPathMatchConditionParameters", - isConstant: true, - serializedName: "typeName", + ...AFDDomainUpdatePropertiesParameters.type.modelProperties, + ...AFDStateProperties.type.modelProperties, + domainValidationState: { + serializedName: "domainValidationState", + readOnly: true, type: { name: "String", }, }, - operator: { - serializedName: "operator", + hostName: { + serializedName: "hostName", required: true, type: { name: "String", }, }, - negateCondition: { - defaultValue: false, - serializedName: "negateCondition", + extendedProperties: { + serializedName: "extendedProperties", type: { - name: "Boolean", + name: "Dictionary", + value: { type: { name: "String" } }, }, }, - matchValues: { - serializedName: "matchValues", + validationProperties: { + serializedName: "validationProperties", type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, - }, - transforms: { - serializedName: "transforms", - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, + name: "Composite", + className: "DomainValidationProperties", }, }, }, }, }; -export const UrlFileExtensionMatchConditionParameters: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "UrlFileExtensionMatchConditionParameters", - modelProperties: { - typeName: { - defaultValue: "DeliveryRuleUrlFileExtensionMatchConditionParameters", - isConstant: true, - serializedName: "typeName", - type: { - name: "String", - }, - }, - operator: { - serializedName: "operator", - required: true, - type: { - name: "String", - }, - }, - negateCondition: { - defaultValue: false, - serializedName: "negateCondition", - type: { - name: "Boolean", - }, - }, - matchValues: { - serializedName: "matchValues", - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, - }, - transforms: { - serializedName: "transforms", - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, - }, - }, - }, - }; - -export const UrlFileNameMatchConditionParameters: coreClient.CompositeMapper = { +export const AFDEndpointProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UrlFileNameMatchConditionParameters", + className: "AFDEndpointProperties", modelProperties: { - typeName: { - defaultValue: "DeliveryRuleUrlFilenameConditionParameters", - isConstant: true, - serializedName: "typeName", + ...AFDEndpointPropertiesUpdateParameters.type.modelProperties, + ...AFDStateProperties.type.modelProperties, + hostName: { + serializedName: "hostName", + readOnly: true, type: { name: "String", }, }, - operator: { - serializedName: "operator", - required: true, + autoGeneratedDomainNameLabelScope: { + serializedName: "autoGeneratedDomainNameLabelScope", type: { name: "String", }, }, - negateCondition: { - defaultValue: false, - serializedName: "negateCondition", - type: { - name: "Boolean", - }, - }, - matchValues: { - serializedName: "matchValues", - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, - }, - transforms: { - serializedName: "transforms", + }, + }, +}; + +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: "Sequence", - element: { - type: { - name: "String", - }, - }, + name: "String", }, }, }, }, }; -export const HttpVersionMatchConditionParameters: coreClient.CompositeMapper = { +export const RuleProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "HttpVersionMatchConditionParameters", + className: "RuleProperties", modelProperties: { - typeName: { - defaultValue: "DeliveryRuleHttpVersionConditionParameters", - isConstant: true, - serializedName: "typeName", + ...RuleUpdatePropertiesParameters.type.modelProperties, + ...AFDStateProperties.type.modelProperties, + }, + }, +}; + +export const SecurityPolicyProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SecurityPolicyProperties", + modelProperties: { + ...AFDStateProperties.type.modelProperties, + profileName: { + serializedName: "profileName", + readOnly: true, type: { name: "String", }, }, - operator: { - serializedName: "operator", - required: true, + parameters: { + serializedName: "parameters", type: { - name: "String", + name: "Composite", + className: "SecurityPolicyPropertiesParameters", }, }, - negateCondition: { - defaultValue: false, - serializedName: "negateCondition", + }, + }, +}; + +export const SecretProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SecretProperties", + modelProperties: { + ...AFDStateProperties.type.modelProperties, + profileName: { + serializedName: "profileName", + readOnly: true, type: { - name: "Boolean", + name: "String", }, }, - matchValues: { - serializedName: "matchValues", + parameters: { + serializedName: "parameters", type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, + name: "Composite", + className: "SecretParameters", }, }, - transforms: { - serializedName: "transforms", + }, + }, +}; + +export const DeliveryRuleRemoteAddressCondition: coreClient.CompositeMapper = { + serializedName: "RemoteAddress", + type: { + name: "Composite", + className: "DeliveryRuleRemoteAddressCondition", + uberParent: "DeliveryRuleCondition", + polymorphicDiscriminator: + DeliveryRuleCondition.type.polymorphicDiscriminator, + modelProperties: { + ...DeliveryRuleCondition.type.modelProperties, + parameters: { + serializedName: "parameters", type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, + name: "Composite", + className: "RemoteAddressMatchConditionParameters", }, }, }, }, }; -export const CookiesMatchConditionParameters: coreClient.CompositeMapper = { +export const DeliveryRuleRequestMethodCondition: coreClient.CompositeMapper = { + serializedName: "RequestMethod", type: { name: "Composite", - className: "CookiesMatchConditionParameters", + className: "DeliveryRuleRequestMethodCondition", + uberParent: "DeliveryRuleCondition", + polymorphicDiscriminator: + DeliveryRuleCondition.type.polymorphicDiscriminator, modelProperties: { - typeName: { - defaultValue: "DeliveryRuleCookiesConditionParameters", - isConstant: true, - serializedName: "typeName", + ...DeliveryRuleCondition.type.modelProperties, + parameters: { + serializedName: "parameters", type: { - name: "String", - }, - }, - selector: { - serializedName: "selector", - type: { - name: "String", - }, - }, - operator: { - serializedName: "operator", - required: true, - type: { - name: "String", - }, - }, - negateCondition: { - defaultValue: false, - serializedName: "negateCondition", - type: { - name: "Boolean", - }, - }, - matchValues: { - serializedName: "matchValues", - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, - }, - transforms: { - serializedName: "transforms", - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, + name: "Composite", + className: "RequestMethodMatchConditionParameters", }, }, }, }, }; -export const IsDeviceMatchConditionParameters: coreClient.CompositeMapper = { +export const DeliveryRuleQueryStringCondition: coreClient.CompositeMapper = { + serializedName: "QueryString", type: { name: "Composite", - className: "IsDeviceMatchConditionParameters", + className: "DeliveryRuleQueryStringCondition", + uberParent: "DeliveryRuleCondition", + polymorphicDiscriminator: + DeliveryRuleCondition.type.polymorphicDiscriminator, modelProperties: { - typeName: { - defaultValue: "DeliveryRuleIsDeviceConditionParameters", - isConstant: true, - serializedName: "typeName", - type: { - name: "String", - }, - }, - operator: { - serializedName: "operator", - required: true, - type: { - name: "String", - }, - }, - negateCondition: { - defaultValue: false, - serializedName: "negateCondition", - type: { - name: "Boolean", - }, - }, - matchValues: { - serializedName: "matchValues", - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, - }, - transforms: { - serializedName: "transforms", + ...DeliveryRuleCondition.type.modelProperties, + parameters: { + serializedName: "parameters", type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, + name: "Composite", + className: "QueryStringMatchConditionParameters", }, }, }, }, }; -export const SocketAddrMatchConditionParameters: coreClient.CompositeMapper = { +export const DeliveryRulePostArgsCondition: coreClient.CompositeMapper = { + serializedName: "PostArgs", type: { name: "Composite", - className: "SocketAddrMatchConditionParameters", + className: "DeliveryRulePostArgsCondition", + uberParent: "DeliveryRuleCondition", + polymorphicDiscriminator: + DeliveryRuleCondition.type.polymorphicDiscriminator, modelProperties: { - typeName: { - defaultValue: "DeliveryRuleSocketAddrConditionParameters", - isConstant: true, - serializedName: "typeName", - type: { - name: "String", - }, - }, - operator: { - serializedName: "operator", - required: true, - type: { - name: "String", - }, - }, - negateCondition: { - defaultValue: false, - serializedName: "negateCondition", - type: { - name: "Boolean", - }, - }, - matchValues: { - serializedName: "matchValues", - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, - }, - transforms: { - serializedName: "transforms", + ...DeliveryRuleCondition.type.modelProperties, + parameters: { + serializedName: "parameters", type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, + name: "Composite", + className: "PostArgsMatchConditionParameters", }, }, }, }, }; -export const ClientPortMatchConditionParameters: coreClient.CompositeMapper = { +export const DeliveryRuleRequestUriCondition: coreClient.CompositeMapper = { + serializedName: "RequestUri", type: { name: "Composite", - className: "ClientPortMatchConditionParameters", + className: "DeliveryRuleRequestUriCondition", + uberParent: "DeliveryRuleCondition", + polymorphicDiscriminator: + DeliveryRuleCondition.type.polymorphicDiscriminator, modelProperties: { - typeName: { - defaultValue: "DeliveryRuleClientPortConditionParameters", - isConstant: true, - serializedName: "typeName", - type: { - name: "String", - }, - }, - operator: { - serializedName: "operator", - required: true, + ...DeliveryRuleCondition.type.modelProperties, + parameters: { + serializedName: "parameters", type: { - name: "String", + name: "Composite", + className: "RequestUriMatchConditionParameters", }, }, - negateCondition: { - defaultValue: false, - serializedName: "negateCondition", + }, + }, +}; + +export const DeliveryRuleRequestHeaderCondition: coreClient.CompositeMapper = { + serializedName: "RequestHeader", + type: { + name: "Composite", + className: "DeliveryRuleRequestHeaderCondition", + uberParent: "DeliveryRuleCondition", + polymorphicDiscriminator: + DeliveryRuleCondition.type.polymorphicDiscriminator, + modelProperties: { + ...DeliveryRuleCondition.type.modelProperties, + parameters: { + serializedName: "parameters", type: { - name: "Boolean", + name: "Composite", + className: "RequestHeaderMatchConditionParameters", }, }, - matchValues: { - serializedName: "matchValues", + }, + }, +}; + +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: "Sequence", - element: { - type: { - name: "String", - }, - }, + name: "Composite", + className: "RequestBodyMatchConditionParameters", }, }, - transforms: { - serializedName: "transforms", + }, + }, +}; + +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: "Sequence", - element: { - type: { - name: "String", - }, - }, + name: "Composite", + className: "RequestSchemeMatchConditionParameters", }, }, }, }, }; -export const ServerPortMatchConditionParameters: coreClient.CompositeMapper = { +export const DeliveryRuleUrlPathCondition: coreClient.CompositeMapper = { + serializedName: "UrlPath", type: { name: "Composite", - className: "ServerPortMatchConditionParameters", + className: "DeliveryRuleUrlPathCondition", + uberParent: "DeliveryRuleCondition", + polymorphicDiscriminator: + DeliveryRuleCondition.type.polymorphicDiscriminator, modelProperties: { - typeName: { - defaultValue: "DeliveryRuleServerPortConditionParameters", - isConstant: true, - serializedName: "typeName", + ...DeliveryRuleCondition.type.modelProperties, + parameters: { + serializedName: "parameters", type: { - name: "String", - }, - }, - operator: { - serializedName: "operator", - required: true, - type: { - name: "String", - }, - }, - negateCondition: { - defaultValue: false, - serializedName: "negateCondition", - type: { - name: "Boolean", + name: "Composite", + className: "UrlPathMatchConditionParameters", }, }, - matchValues: { - serializedName: "matchValues", - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, + }, + }, +}; + +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", }, }, }, - transforms: { - serializedName: "transforms", + }, + }; + +export const DeliveryRuleUrlFileNameCondition: coreClient.CompositeMapper = { + serializedName: "UrlFileName", + type: { + name: "Composite", + className: "DeliveryRuleUrlFileNameCondition", + uberParent: "DeliveryRuleCondition", + polymorphicDiscriminator: + DeliveryRuleCondition.type.polymorphicDiscriminator, + modelProperties: { + ...DeliveryRuleCondition.type.modelProperties, + parameters: { + serializedName: "parameters", type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, + name: "Composite", + className: "UrlFileNameMatchConditionParameters", }, }, }, }, }; -export const HostNameMatchConditionParameters: coreClient.CompositeMapper = { +export const DeliveryRuleHttpVersionCondition: coreClient.CompositeMapper = { + serializedName: "HttpVersion", type: { name: "Composite", - className: "HostNameMatchConditionParameters", + className: "DeliveryRuleHttpVersionCondition", + uberParent: "DeliveryRuleCondition", + polymorphicDiscriminator: + DeliveryRuleCondition.type.polymorphicDiscriminator, modelProperties: { - typeName: { - defaultValue: "DeliveryRuleHostNameConditionParameters", - isConstant: true, - serializedName: "typeName", - type: { - name: "String", - }, - }, - operator: { - serializedName: "operator", - required: true, - type: { - name: "String", - }, - }, - negateCondition: { - defaultValue: false, - serializedName: "negateCondition", - type: { - name: "Boolean", - }, - }, - matchValues: { - serializedName: "matchValues", - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, - }, - transforms: { - serializedName: "transforms", + ...DeliveryRuleCondition.type.modelProperties, + parameters: { + serializedName: "parameters", type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, + name: "Composite", + className: "HttpVersionMatchConditionParameters", }, }, }, }, }; -export const SslProtocolMatchConditionParameters: coreClient.CompositeMapper = { +export const DeliveryRuleCookiesCondition: coreClient.CompositeMapper = { + serializedName: "Cookies", type: { name: "Composite", - className: "SslProtocolMatchConditionParameters", + className: "DeliveryRuleCookiesCondition", + uberParent: "DeliveryRuleCondition", + polymorphicDiscriminator: + DeliveryRuleCondition.type.polymorphicDiscriminator, modelProperties: { - typeName: { - defaultValue: "DeliveryRuleSslProtocolConditionParameters", - isConstant: true, - serializedName: "typeName", + ...DeliveryRuleCondition.type.modelProperties, + parameters: { + serializedName: "parameters", type: { - name: "String", + name: "Composite", + className: "CookiesMatchConditionParameters", }, }, - operator: { - serializedName: "operator", - required: true, + }, + }, +}; + +export const DeliveryRuleIsDeviceCondition: coreClient.CompositeMapper = { + serializedName: "IsDevice", + type: { + name: "Composite", + className: "DeliveryRuleIsDeviceCondition", + uberParent: "DeliveryRuleCondition", + polymorphicDiscriminator: + DeliveryRuleCondition.type.polymorphicDiscriminator, + modelProperties: { + ...DeliveryRuleCondition.type.modelProperties, + parameters: { + serializedName: "parameters", type: { - name: "String", + name: "Composite", + className: "IsDeviceMatchConditionParameters", }, }, - negateCondition: { - defaultValue: false, - serializedName: "negateCondition", + }, + }, +}; + +export const DeliveryRuleSocketAddrCondition: coreClient.CompositeMapper = { + serializedName: "SocketAddr", + type: { + name: "Composite", + className: "DeliveryRuleSocketAddrCondition", + uberParent: "DeliveryRuleCondition", + polymorphicDiscriminator: + DeliveryRuleCondition.type.polymorphicDiscriminator, + modelProperties: { + ...DeliveryRuleCondition.type.modelProperties, + parameters: { + serializedName: "parameters", type: { - name: "Boolean", + name: "Composite", + className: "SocketAddrMatchConditionParameters", }, }, - matchValues: { - serializedName: "matchValues", + }, + }, +}; + +export const DeliveryRuleClientPortCondition: coreClient.CompositeMapper = { + serializedName: "ClientPort", + type: { + name: "Composite", + className: "DeliveryRuleClientPortCondition", + uberParent: "DeliveryRuleCondition", + polymorphicDiscriminator: + DeliveryRuleCondition.type.polymorphicDiscriminator, + modelProperties: { + ...DeliveryRuleCondition.type.modelProperties, + parameters: { + serializedName: "parameters", type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, + name: "Composite", + className: "ClientPortMatchConditionParameters", }, }, - transforms: { - serializedName: "transforms", + }, + }, +}; + +export const DeliveryRuleServerPortCondition: coreClient.CompositeMapper = { + serializedName: "ServerPort", + type: { + name: "Composite", + className: "DeliveryRuleServerPortCondition", + uberParent: "DeliveryRuleCondition", + polymorphicDiscriminator: + DeliveryRuleCondition.type.polymorphicDiscriminator, + modelProperties: { + ...DeliveryRuleCondition.type.modelProperties, + parameters: { + serializedName: "parameters", type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, + name: "Composite", + className: "ServerPortMatchConditionParameters", }, }, }, }, }; -export const UrlRedirectActionParameters: coreClient.CompositeMapper = { +export const DeliveryRuleHostNameCondition: coreClient.CompositeMapper = { + serializedName: "HostName", type: { name: "Composite", - className: "UrlRedirectActionParameters", + className: "DeliveryRuleHostNameCondition", + uberParent: "DeliveryRuleCondition", + polymorphicDiscriminator: + DeliveryRuleCondition.type.polymorphicDiscriminator, modelProperties: { - typeName: { - defaultValue: "DeliveryRuleUrlRedirectActionParameters", - isConstant: true, - serializedName: "typeName", + ...DeliveryRuleCondition.type.modelProperties, + parameters: { + serializedName: "parameters", type: { - name: "String", - }, - }, - redirectType: { - serializedName: "redirectType", - required: true, - type: { - name: "String", - }, - }, - destinationProtocol: { - serializedName: "destinationProtocol", - type: { - name: "String", - }, - }, - customPath: { - serializedName: "customPath", - type: { - name: "String", - }, - }, - customHostname: { - serializedName: "customHostname", - type: { - name: "String", - }, - }, - customQueryString: { - serializedName: "customQueryString", - type: { - name: "String", - }, - }, - customFragment: { - serializedName: "customFragment", - type: { - name: "String", + name: "Composite", + className: "HostNameMatchConditionParameters", }, }, }, }, }; -export const UrlSigningActionParameters: coreClient.CompositeMapper = { +export const DeliveryRuleSslProtocolCondition: coreClient.CompositeMapper = { + serializedName: "SslProtocol", type: { name: "Composite", - className: "UrlSigningActionParameters", + className: "DeliveryRuleSslProtocolCondition", + uberParent: "DeliveryRuleCondition", + polymorphicDiscriminator: + DeliveryRuleCondition.type.polymorphicDiscriminator, modelProperties: { - typeName: { - defaultValue: "DeliveryRuleUrlSigningActionParameters", - isConstant: true, - serializedName: "typeName", - type: { - name: "String", - }, - }, - algorithm: { - serializedName: "algorithm", - type: { - name: "String", - }, - }, - parameterNameOverride: { - serializedName: "parameterNameOverride", + ...DeliveryRuleCondition.type.modelProperties, + parameters: { + serializedName: "parameters", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "UrlSigningParamIdentifier", - }, - }, + name: "Composite", + className: "SslProtocolMatchConditionParameters", }, }, }, }, }; -export const UrlSigningParamIdentifier: coreClient.CompositeMapper = { +export const UrlRedirectAction: coreClient.CompositeMapper = { + serializedName: "UrlRedirect", type: { name: "Composite", - className: "UrlSigningParamIdentifier", + className: "UrlRedirectAction", + uberParent: "DeliveryRuleAction", + polymorphicDiscriminator: DeliveryRuleAction.type.polymorphicDiscriminator, modelProperties: { - paramIndicator: { - serializedName: "paramIndicator", - required: true, - type: { - name: "String", - }, - }, - paramName: { - serializedName: "paramName", - required: true, + ...DeliveryRuleAction.type.modelProperties, + parameters: { + serializedName: "parameters", type: { - name: "String", + name: "Composite", + className: "UrlRedirectActionParameters", }, }, }, }, }; -export const OriginGroupOverrideActionParameters: coreClient.CompositeMapper = { +export const UrlSigningAction: coreClient.CompositeMapper = { + serializedName: "UrlSigning", type: { name: "Composite", - className: "OriginGroupOverrideActionParameters", + className: "UrlSigningAction", + uberParent: "DeliveryRuleAction", + polymorphicDiscriminator: DeliveryRuleAction.type.polymorphicDiscriminator, modelProperties: { - typeName: { - defaultValue: "DeliveryRuleOriginGroupOverrideActionParameters", - isConstant: true, - serializedName: "typeName", - type: { - name: "String", - }, - }, - originGroup: { - serializedName: "originGroup", + ...DeliveryRuleAction.type.modelProperties, + parameters: { + serializedName: "parameters", type: { name: "Composite", - className: "ResourceReference", + className: "UrlSigningActionParameters", }, }, }, }, }; -export const UrlRewriteActionParameters: coreClient.CompositeMapper = { +export const OriginGroupOverrideAction: coreClient.CompositeMapper = { + serializedName: "OriginGroupOverride", type: { name: "Composite", - className: "UrlRewriteActionParameters", + className: "OriginGroupOverrideAction", + uberParent: "DeliveryRuleAction", + polymorphicDiscriminator: DeliveryRuleAction.type.polymorphicDiscriminator, modelProperties: { - typeName: { - defaultValue: "DeliveryRuleUrlRewriteActionParameters", - isConstant: true, - serializedName: "typeName", - type: { - name: "String", - }, - }, - sourcePattern: { - serializedName: "sourcePattern", - required: true, - type: { - name: "String", - }, - }, - destination: { - serializedName: "destination", - required: true, - type: { - name: "String", - }, - }, - preserveUnmatchedPath: { - serializedName: "preserveUnmatchedPath", + ...DeliveryRuleAction.type.modelProperties, + parameters: { + serializedName: "parameters", type: { - name: "Boolean", + name: "Composite", + className: "OriginGroupOverrideActionParameters", }, }, }, }, }; -export const HeaderActionParameters: coreClient.CompositeMapper = { +export const UrlRewriteAction: coreClient.CompositeMapper = { + serializedName: "UrlRewrite", type: { name: "Composite", - className: "HeaderActionParameters", + className: "UrlRewriteAction", + uberParent: "DeliveryRuleAction", + polymorphicDiscriminator: DeliveryRuleAction.type.polymorphicDiscriminator, modelProperties: { - typeName: { - defaultValue: "DeliveryRuleHeaderActionParameters", - isConstant: true, - serializedName: "typeName", - type: { - name: "String", - }, - }, - headerAction: { - serializedName: "headerAction", - required: true, - type: { - name: "String", - }, - }, - headerName: { - serializedName: "headerName", - required: true, - type: { - name: "String", - }, - }, - value: { - serializedName: "value", + ...DeliveryRuleAction.type.modelProperties, + parameters: { + serializedName: "parameters", type: { - name: "String", + name: "Composite", + className: "UrlRewriteActionParameters", }, }, }, }, }; -export const CacheExpirationActionParameters: coreClient.CompositeMapper = { +export const DeliveryRuleRequestHeaderAction: coreClient.CompositeMapper = { + serializedName: "ModifyRequestHeader", type: { name: "Composite", - className: "CacheExpirationActionParameters", + className: "DeliveryRuleRequestHeaderAction", + uberParent: "DeliveryRuleAction", + polymorphicDiscriminator: DeliveryRuleAction.type.polymorphicDiscriminator, modelProperties: { - typeName: { - defaultValue: "DeliveryRuleCacheExpirationActionParameters", - isConstant: true, - serializedName: "typeName", - type: { - name: "String", - }, - }, - cacheBehavior: { - serializedName: "cacheBehavior", - required: true, - type: { - name: "String", - }, - }, - cacheType: { - serializedName: "cacheType", - required: true, - type: { - name: "String", - }, - }, - cacheDuration: { - serializedName: "cacheDuration", - nullable: true, + ...DeliveryRuleAction.type.modelProperties, + parameters: { + serializedName: "parameters", type: { - name: "String", + name: "Composite", + className: "HeaderActionParameters", }, }, }, }, }; -export const CacheKeyQueryStringActionParameters: coreClient.CompositeMapper = { +export const DeliveryRuleResponseHeaderAction: coreClient.CompositeMapper = { + serializedName: "ModifyResponseHeader", type: { name: "Composite", - className: "CacheKeyQueryStringActionParameters", + className: "DeliveryRuleResponseHeaderAction", + uberParent: "DeliveryRuleAction", + polymorphicDiscriminator: DeliveryRuleAction.type.polymorphicDiscriminator, modelProperties: { - typeName: { - defaultValue: "DeliveryRuleCacheKeyQueryStringBehaviorActionParameters", - isConstant: true, - serializedName: "typeName", - type: { - name: "String", - }, - }, - queryStringBehavior: { - serializedName: "queryStringBehavior", - required: true, + ...DeliveryRuleAction.type.modelProperties, + parameters: { + serializedName: "parameters", type: { - name: "String", + name: "Composite", + className: "HeaderActionParameters", }, }, - queryParameters: { - serializedName: "queryParameters", - nullable: true, + }, + }, +}; + +export const DeliveryRuleCacheExpirationAction: coreClient.CompositeMapper = { + serializedName: "CacheExpiration", + type: { + name: "Composite", + className: "DeliveryRuleCacheExpirationAction", + uberParent: "DeliveryRuleAction", + polymorphicDiscriminator: DeliveryRuleAction.type.polymorphicDiscriminator, + modelProperties: { + ...DeliveryRuleAction.type.modelProperties, + parameters: { + serializedName: "parameters", type: { - name: "String", + name: "Composite", + className: "CacheExpirationActionParameters", }, }, }, }, }; -export const RouteConfigurationOverrideActionParameters: coreClient.CompositeMapper = +export const DeliveryRuleCacheKeyQueryStringAction: coreClient.CompositeMapper = { + serializedName: "CacheKeyQueryString", type: { name: "Composite", - className: "RouteConfigurationOverrideActionParameters", + className: "DeliveryRuleCacheKeyQueryStringAction", + uberParent: "DeliveryRuleAction", + polymorphicDiscriminator: + DeliveryRuleAction.type.polymorphicDiscriminator, modelProperties: { - typeName: { - defaultValue: - "DeliveryRuleRouteConfigurationOverrideActionParameters", - isConstant: true, - serializedName: "typeName", - type: { - name: "String", - }, - }, - originGroupOverride: { - serializedName: "originGroupOverride", + ...DeliveryRuleAction.type.modelProperties, + parameters: { + serializedName: "parameters", type: { name: "Composite", - className: "OriginGroupOverride", + className: "CacheKeyQueryStringActionParameters", }, }, - cacheConfiguration: { - serializedName: "cacheConfiguration", - type: { + }, + }, + }; + +export const DeliveryRuleRouteConfigurationOverrideAction: coreClient.CompositeMapper = + { + serializedName: "RouteConfigurationOverride", + type: { + name: "Composite", + className: "DeliveryRuleRouteConfigurationOverrideAction", + uberParent: "DeliveryRuleAction", + polymorphicDiscriminator: + DeliveryRuleAction.type.polymorphicDiscriminator, + modelProperties: { + ...DeliveryRuleAction.type.modelProperties, + parameters: { + serializedName: "parameters", + type: { name: "Composite", - className: "CacheConfiguration", + className: "RouteConfigurationOverrideActionParameters", }, }, }, }, }; -export const OriginGroupOverride: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OriginGroupOverride", - modelProperties: { - originGroup: { - serializedName: "originGroup", - type: { - name: "Composite", - className: "ResourceReference", +export const SecurityPolicyWebApplicationFirewallParameters: coreClient.CompositeMapper = + { + serializedName: "WebApplicationFirewall", + type: { + name: "Composite", + className: "SecurityPolicyWebApplicationFirewallParameters", + uberParent: "SecurityPolicyPropertiesParameters", + polymorphicDiscriminator: + SecurityPolicyPropertiesParameters.type.polymorphicDiscriminator, + modelProperties: { + ...SecurityPolicyPropertiesParameters.type.modelProperties, + wafPolicy: { + serializedName: "wafPolicy", + type: { + name: "Composite", + className: "ResourceReference", + }, }, - }, - forwardingProtocol: { - serializedName: "forwardingProtocol", - type: { - name: "String", + associations: { + serializedName: "associations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SecurityPolicyWebApplicationFirewallAssociation", + }, + }, + }, }, }, }, - }, -}; + }; -export const CacheConfiguration: coreClient.CompositeMapper = { +export const UrlSigningKeyParameters: coreClient.CompositeMapper = { + serializedName: "UrlSigningKey", type: { name: "Composite", - className: "CacheConfiguration", + className: "UrlSigningKeyParameters", + uberParent: "SecretParameters", + polymorphicDiscriminator: SecretParameters.type.polymorphicDiscriminator, modelProperties: { - queryStringCachingBehavior: { - serializedName: "queryStringCachingBehavior", - type: { - name: "String", - }, - }, - queryParameters: { - serializedName: "queryParameters", - type: { - name: "String", - }, - }, - isCompressionEnabled: { - serializedName: "isCompressionEnabled", + ...SecretParameters.type.modelProperties, + keyId: { + serializedName: "keyId", + required: true, type: { name: "String", }, }, - cacheBehavior: { - serializedName: "cacheBehavior", + secretSource: { + serializedName: "secretSource", type: { - name: "String", + name: "Composite", + className: "ResourceReference", }, }, - cacheDuration: { - serializedName: "cacheDuration", + secretVersion: { + serializedName: "secretVersion", + required: true, type: { name: "String", }, @@ -6754,22 +6470,25 @@ export const CacheConfiguration: coreClient.CompositeMapper = { }, }; -export const CdnCertificateSourceParameters: coreClient.CompositeMapper = { +export const ManagedCertificateParameters: coreClient.CompositeMapper = { + serializedName: "ManagedCertificate", type: { name: "Composite", - className: "CdnCertificateSourceParameters", + className: "ManagedCertificateParameters", + uberParent: "SecretParameters", + polymorphicDiscriminator: SecretParameters.type.polymorphicDiscriminator, modelProperties: { - typeName: { - defaultValue: "CdnCertificateSourceParameters", - isConstant: true, - serializedName: "typeName", + ...SecretParameters.type.modelProperties, + subject: { + serializedName: "subject", + readOnly: true, type: { name: "String", }, }, - certificateType: { - serializedName: "certificateType", - required: true, + expirationDate: { + serializedName: "expirationDate", + readOnly: true, type: { name: "String", }, @@ -6778,63 +6497,69 @@ export const CdnCertificateSourceParameters: coreClient.CompositeMapper = { }, }; -export const KeyVaultCertificateSourceParameters: coreClient.CompositeMapper = { +export const CustomerCertificateParameters: coreClient.CompositeMapper = { + serializedName: "CustomerCertificate", type: { name: "Composite", - className: "KeyVaultCertificateSourceParameters", + className: "CustomerCertificateParameters", + uberParent: "SecretParameters", + polymorphicDiscriminator: SecretParameters.type.polymorphicDiscriminator, modelProperties: { - typeName: { - defaultValue: "KeyVaultCertificateSourceParameters", - isConstant: true, - serializedName: "typeName", + ...SecretParameters.type.modelProperties, + secretSource: { + serializedName: "secretSource", type: { - name: "String", + name: "Composite", + className: "ResourceReference", }, }, - subscriptionId: { - serializedName: "subscriptionId", - required: true, + secretVersion: { + serializedName: "secretVersion", type: { name: "String", }, }, - resourceGroupName: { - serializedName: "resourceGroupName", - required: true, + useLatestVersion: { + serializedName: "useLatestVersion", type: { - name: "String", + name: "Boolean", }, }, - vaultName: { - serializedName: "vaultName", - required: true, + subject: { + serializedName: "subject", + readOnly: true, type: { name: "String", }, }, - secretName: { - serializedName: "secretName", - required: true, + expirationDate: { + serializedName: "expirationDate", + readOnly: true, type: { name: "String", }, }, - secretVersion: { - serializedName: "secretVersion", + certificateAuthority: { + serializedName: "certificateAuthority", + readOnly: true, type: { name: "String", }, }, - updateRule: { - serializedName: "updateRule", - required: true, + subjectAlternativeNames: { + serializedName: "subjectAlternativeNames", type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "String", + }, + }, }, }, - deleteRule: { - serializedName: "deleteRule", - required: true, + thumbprint: { + serializedName: "thumbprint", + readOnly: true, type: { name: "String", }, @@ -6843,146 +6568,182 @@ export const KeyVaultCertificateSourceParameters: coreClient.CompositeMapper = { }, }; -export const TrackedResource: coreClient.CompositeMapper = { +export const AzureFirstPartyManagedCertificateParameters: coreClient.CompositeMapper = + { + serializedName: "AzureFirstPartyManagedCertificate", + type: { + name: "Composite", + className: "AzureFirstPartyManagedCertificateParameters", + uberParent: "SecretParameters", + polymorphicDiscriminator: SecretParameters.type.polymorphicDiscriminator, + modelProperties: { + ...SecretParameters.type.modelProperties, + secretSource: { + serializedName: "secretSource", + type: { + name: "Composite", + className: "ResourceReference", + }, + }, + subject: { + serializedName: "subject", + readOnly: true, + type: { + name: "String", + }, + }, + expirationDate: { + serializedName: "expirationDate", + readOnly: true, + type: { + name: "String", + }, + }, + certificateAuthority: { + serializedName: "certificateAuthority", + readOnly: true, + type: { + name: "String", + }, + }, + subjectAlternativeNames: { + serializedName: "subjectAlternativeNames", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + thumbprint: { + serializedName: "thumbprint", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, + }; + +export const EndpointProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TrackedResource", + className: "EndpointProperties", modelProperties: { - ...Resource.type.modelProperties, - location: { - serializedName: "location", - required: true, + ...EndpointPropertiesUpdateParameters.type.modelProperties, + hostName: { + serializedName: "hostName", + readOnly: true, type: { name: "String", }, }, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } }, - }, - }, - }, - }, -}; - -export const ProxyResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ProxyResource", - modelProperties: { - ...Resource.type.modelProperties, - }, - }, -}; - -export const ManagedRuleSetDefinition: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedRuleSetDefinition", - modelProperties: { - ...Resource.type.modelProperties, - sku: { - serializedName: "sku", + origins: { + serializedName: "origins", + required: true, type: { - name: "Composite", - className: "Sku", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DeepCreatedOrigin", + }, + }, }, }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + originGroups: { + serializedName: "originGroups", type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DeepCreatedOriginGroup", + }, + }, }, }, - ruleSetType: { - serializedName: "properties.ruleSetType", + customDomains: { + serializedName: "customDomains", readOnly: true, type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DeepCreatedCustomDomain", + }, + }, }, }, - ruleSetVersion: { - serializedName: "properties.ruleSetVersion", + resourceState: { + serializedName: "resourceState", readOnly: true, type: { name: "String", }, }, - ruleGroups: { - serializedName: "properties.ruleGroups", + provisioningState: { + serializedName: "provisioningState", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ManagedRuleGroupDefinition", - }, - }, + name: "String", }, }, }, }, }; -export const AFDDomainProperties: coreClient.CompositeMapper = { +export const OriginProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AFDDomainProperties", + className: "OriginProperties", modelProperties: { - ...AFDDomainUpdatePropertiesParameters.type.modelProperties, - ...AFDStateProperties.type.modelProperties, - domainValidationState: { - serializedName: "domainValidationState", + ...OriginUpdatePropertiesParameters.type.modelProperties, + resourceState: { + serializedName: "resourceState", readOnly: true, type: { name: "String", }, }, - hostName: { - serializedName: "hostName", - required: true, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, type: { name: "String", }, }, - extendedProperties: { - serializedName: "extendedProperties", - type: { - name: "Dictionary", - value: { type: { name: "String" } }, - }, - }, - validationProperties: { - serializedName: "validationProperties", + privateEndpointStatus: { + serializedName: "privateEndpointStatus", + readOnly: true, type: { - name: "Composite", - className: "DomainValidationProperties", + name: "String", }, }, }, }, }; -export const AFDEndpointProperties: coreClient.CompositeMapper = { +export const OriginGroupProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AFDEndpointProperties", + className: "OriginGroupProperties", modelProperties: { - ...AFDEndpointPropertiesUpdateParameters.type.modelProperties, - ...AFDStateProperties.type.modelProperties, - hostName: { - serializedName: "hostName", + ...OriginGroupUpdatePropertiesParameters.type.modelProperties, + resourceState: { + serializedName: "resourceState", readOnly: true, type: { name: "String", }, }, - autoGeneratedDomainNameLabelScope: { - serializedName: "autoGeneratedDomainNameLabelScope", + provisioningState: { + serializedName: "provisioningState", + readOnly: true, type: { name: "String", }, @@ -6991,863 +6752,1170 @@ export const AFDEndpointProperties: coreClient.CompositeMapper = { }, }; -export const AFDOriginGroupProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AFDOriginGroupProperties", - modelProperties: { - ...AFDOriginGroupUpdatePropertiesParameters.type.modelProperties, - ...AFDStateProperties.type.modelProperties, - }, - }, -}; - -export const AFDOriginProperties: coreClient.CompositeMapper = { +export const CdnManagedHttpsParameters: coreClient.CompositeMapper = { + serializedName: "Cdn", type: { name: "Composite", - className: "AFDOriginProperties", + className: "CdnManagedHttpsParameters", + uberParent: "CustomDomainHttpsParameters", + polymorphicDiscriminator: + CustomDomainHttpsParameters.type.polymorphicDiscriminator, modelProperties: { - ...AFDOriginUpdatePropertiesParameters.type.modelProperties, - ...AFDStateProperties.type.modelProperties, + ...CustomDomainHttpsParameters.type.modelProperties, + certificateSourceParameters: { + serializedName: "certificateSourceParameters", + type: { + name: "Composite", + className: "CdnCertificateSourceParameters", + }, + }, }, }, }; -export const RouteProperties: coreClient.CompositeMapper = { +export const UserManagedHttpsParameters: coreClient.CompositeMapper = { + serializedName: "AzureKeyVault", type: { name: "Composite", - className: "RouteProperties", + className: "UserManagedHttpsParameters", + uberParent: "CustomDomainHttpsParameters", + polymorphicDiscriminator: + CustomDomainHttpsParameters.type.polymorphicDiscriminator, modelProperties: { - ...RouteUpdatePropertiesParameters.type.modelProperties, - ...AFDStateProperties.type.modelProperties, + ...CustomDomainHttpsParameters.type.modelProperties, + certificateSourceParameters: { + serializedName: "certificateSourceParameters", + type: { + name: "Composite", + className: "KeyVaultCertificateSourceParameters", + }, + }, }, }, }; -export const RuleSetProperties: coreClient.CompositeMapper = { +export const RateLimitRule: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RuleSetProperties", + className: "RateLimitRule", modelProperties: { - ...AFDStateProperties.type.modelProperties, - profileName: { - serializedName: "profileName", - readOnly: true, + ...CustomRule.type.modelProperties, + rateLimitThreshold: { + constraints: { + InclusiveMinimum: 0, + }, + serializedName: "rateLimitThreshold", + required: true, type: { - name: "String", + name: "Number", + }, + }, + rateLimitDurationInMinutes: { + constraints: { + InclusiveMaximum: 60, + InclusiveMinimum: 0, + }, + serializedName: "rateLimitDurationInMinutes", + required: true, + type: { + name: "Number", }, }, }, }, }; -export const RuleProperties: coreClient.CompositeMapper = { +export const ManagedCertificate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RuleProperties", + className: "ManagedCertificate", modelProperties: { - ...RuleUpdatePropertiesParameters.type.modelProperties, - ...AFDStateProperties.type.modelProperties, + ...Certificate.type.modelProperties, }, }, }; -export const SecurityPolicyProperties: coreClient.CompositeMapper = { +export const CustomerCertificate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecurityPolicyProperties", + className: "CustomerCertificate", modelProperties: { - ...AFDStateProperties.type.modelProperties, - profileName: { - serializedName: "profileName", - readOnly: true, + ...Certificate.type.modelProperties, + secretSource: { + serializedName: "secretSource", type: { - name: "String", + name: "Composite", + className: "ResourceReference", }, }, - parameters: { - serializedName: "parameters", + secretVersion: { + serializedName: "secretVersion", type: { - name: "Composite", - className: "SecurityPolicyPropertiesParameters", + name: "String", }, }, - }, - }, -}; - -export const SecretProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SecretProperties", - modelProperties: { - ...AFDStateProperties.type.modelProperties, - profileName: { - serializedName: "profileName", + certificateAuthority: { + serializedName: "certificateAuthority", readOnly: true, type: { name: "String", }, }, - parameters: { - serializedName: "parameters", + useLatestVersion: { + serializedName: "useLatestVersion", type: { - name: "Composite", - className: "SecretParameters", + name: "Boolean", }, }, - }, - }, -}; - -export const DeliveryRuleRemoteAddressCondition: coreClient.CompositeMapper = { - serializedName: "RemoteAddress", - type: { - name: "Composite", - className: "DeliveryRuleRemoteAddressCondition", - uberParent: "DeliveryRuleCondition", - polymorphicDiscriminator: - DeliveryRuleCondition.type.polymorphicDiscriminator, - modelProperties: { - ...DeliveryRuleCondition.type.modelProperties, - parameters: { - serializedName: "parameters", + subjectAlternativeNames: { + serializedName: "subjectAlternativeNames", type: { - name: "Composite", - className: "RemoteAddressMatchConditionParameters", + name: "Sequence", + element: { + type: { + name: "String", + }, + }, }, }, - }, - }, -}; - -export const DeliveryRuleRequestMethodCondition: coreClient.CompositeMapper = { - serializedName: "RequestMethod", - type: { - name: "Composite", - className: "DeliveryRuleRequestMethodCondition", - uberParent: "DeliveryRuleCondition", - polymorphicDiscriminator: - DeliveryRuleCondition.type.polymorphicDiscriminator, - modelProperties: { - ...DeliveryRuleCondition.type.modelProperties, - parameters: { - serializedName: "parameters", + thumbprint: { + serializedName: "thumbprint", + readOnly: true, type: { - name: "Composite", - className: "RequestMethodMatchConditionParameters", + name: "String", }, }, }, }, }; -export const DeliveryRuleQueryStringCondition: coreClient.CompositeMapper = { - serializedName: "QueryString", +export const AzureFirstPartyManagedCertificate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DeliveryRuleQueryStringCondition", - uberParent: "DeliveryRuleCondition", - polymorphicDiscriminator: - DeliveryRuleCondition.type.polymorphicDiscriminator, + className: "AzureFirstPartyManagedCertificate", modelProperties: { - ...DeliveryRuleCondition.type.modelProperties, - parameters: { - serializedName: "parameters", - type: { - name: "Composite", - className: "QueryStringMatchConditionParameters", - }, - }, + ...Certificate.type.modelProperties, }, }, }; -export const DeliveryRulePostArgsCondition: coreClient.CompositeMapper = { - serializedName: "PostArgs", - type: { - name: "Composite", - className: "DeliveryRulePostArgsCondition", - uberParent: "DeliveryRuleCondition", - polymorphicDiscriminator: - DeliveryRuleCondition.type.polymorphicDiscriminator, - modelProperties: { - ...DeliveryRuleCondition.type.modelProperties, - parameters: { - serializedName: "parameters", - type: { - name: "Composite", - className: "PostArgsMatchConditionParameters", +export const RemoteAddressMatchConditionParameters: coreClient.CompositeMapper = + { + serializedName: "DeliveryRuleRemoteAddressConditionParameters", + type: { + name: "Composite", + className: "RemoteAddressMatchConditionParameters", + uberParent: "DeliveryRuleConditionParameters", + polymorphicDiscriminator: + DeliveryRuleConditionParameters.type.polymorphicDiscriminator, + modelProperties: { + ...DeliveryRuleConditionParameters.type.modelProperties, + operator: { + serializedName: "operator", + required: true, + type: { + name: "String", + }, + }, + negateCondition: { + defaultValue: false, + serializedName: "negateCondition", + type: { + name: "Boolean", + }, + }, + matchValues: { + serializedName: "matchValues", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + transforms: { + serializedName: "transforms", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, }, }, }, - }, -}; + }; -export const DeliveryRuleRequestUriCondition: coreClient.CompositeMapper = { - serializedName: "RequestUri", - type: { - name: "Composite", - className: "DeliveryRuleRequestUriCondition", - uberParent: "DeliveryRuleCondition", - polymorphicDiscriminator: - DeliveryRuleCondition.type.polymorphicDiscriminator, - modelProperties: { - ...DeliveryRuleCondition.type.modelProperties, - parameters: { - serializedName: "parameters", - type: { - name: "Composite", - className: "RequestUriMatchConditionParameters", +export const RequestMethodMatchConditionParameters: coreClient.CompositeMapper = + { + serializedName: "DeliveryRuleRequestMethodConditionParameters", + type: { + name: "Composite", + className: "RequestMethodMatchConditionParameters", + uberParent: "DeliveryRuleConditionParameters", + polymorphicDiscriminator: + DeliveryRuleConditionParameters.type.polymorphicDiscriminator, + modelProperties: { + ...DeliveryRuleConditionParameters.type.modelProperties, + operator: { + serializedName: "operator", + required: true, + type: { + name: "String", + }, + }, + negateCondition: { + defaultValue: false, + serializedName: "negateCondition", + type: { + name: "Boolean", + }, + }, + transforms: { + serializedName: "transforms", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + matchValues: { + serializedName: "matchValues", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, }, }, }, - }, -}; + }; -export const DeliveryRuleRequestHeaderCondition: coreClient.CompositeMapper = { - serializedName: "RequestHeader", +export const QueryStringMatchConditionParameters: coreClient.CompositeMapper = { + serializedName: "DeliveryRuleQueryStringConditionParameters", type: { name: "Composite", - className: "DeliveryRuleRequestHeaderCondition", - uberParent: "DeliveryRuleCondition", + className: "QueryStringMatchConditionParameters", + uberParent: "DeliveryRuleConditionParameters", polymorphicDiscriminator: - DeliveryRuleCondition.type.polymorphicDiscriminator, + DeliveryRuleConditionParameters.type.polymorphicDiscriminator, modelProperties: { - ...DeliveryRuleCondition.type.modelProperties, - parameters: { - serializedName: "parameters", + ...DeliveryRuleConditionParameters.type.modelProperties, + operator: { + serializedName: "operator", + required: true, type: { - name: "Composite", - className: "RequestHeaderMatchConditionParameters", + name: "String", }, }, - }, - }, -}; - -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", + negateCondition: { + defaultValue: false, + serializedName: "negateCondition", type: { - name: "Composite", - className: "RequestBodyMatchConditionParameters", + name: "Boolean", + }, + }, + matchValues: { + serializedName: "matchValues", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + transforms: { + serializedName: "transforms", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, }, }, }, }, }; -export const DeliveryRuleRequestSchemeCondition: coreClient.CompositeMapper = { - serializedName: "RequestScheme", +export const PostArgsMatchConditionParameters: coreClient.CompositeMapper = { + serializedName: "DeliveryRulePostArgsConditionParameters", type: { name: "Composite", - className: "DeliveryRuleRequestSchemeCondition", - uberParent: "DeliveryRuleCondition", + className: "PostArgsMatchConditionParameters", + uberParent: "DeliveryRuleConditionParameters", polymorphicDiscriminator: - DeliveryRuleCondition.type.polymorphicDiscriminator, + DeliveryRuleConditionParameters.type.polymorphicDiscriminator, modelProperties: { - ...DeliveryRuleCondition.type.modelProperties, - parameters: { - serializedName: "parameters", + ...DeliveryRuleConditionParameters.type.modelProperties, + selector: { + serializedName: "selector", type: { - name: "Composite", - className: "RequestSchemeMatchConditionParameters", + name: "String", }, }, - }, + operator: { + serializedName: "operator", + required: true, + type: { + name: "String", + }, + }, + negateCondition: { + defaultValue: false, + serializedName: "negateCondition", + type: { + name: "Boolean", + }, + }, + matchValues: { + serializedName: "matchValues", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + transforms: { + serializedName: "transforms", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + }, }, }; -export const DeliveryRuleUrlPathCondition: coreClient.CompositeMapper = { - serializedName: "UrlPath", +export const RequestUriMatchConditionParameters: coreClient.CompositeMapper = { + serializedName: "DeliveryRuleRequestUriConditionParameters", type: { name: "Composite", - className: "DeliveryRuleUrlPathCondition", - uberParent: "DeliveryRuleCondition", + className: "RequestUriMatchConditionParameters", + uberParent: "DeliveryRuleConditionParameters", polymorphicDiscriminator: - DeliveryRuleCondition.type.polymorphicDiscriminator, + DeliveryRuleConditionParameters.type.polymorphicDiscriminator, modelProperties: { - ...DeliveryRuleCondition.type.modelProperties, - parameters: { - serializedName: "parameters", + ...DeliveryRuleConditionParameters.type.modelProperties, + operator: { + serializedName: "operator", + required: true, type: { - name: "Composite", - className: "UrlPathMatchConditionParameters", + name: "String", + }, + }, + negateCondition: { + defaultValue: false, + serializedName: "negateCondition", + type: { + name: "Boolean", + }, + }, + matchValues: { + serializedName: "matchValues", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + transforms: { + serializedName: "transforms", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, }, }, }, }, }; -export const DeliveryRuleUrlFileExtensionCondition: coreClient.CompositeMapper = +export const RequestHeaderMatchConditionParameters: coreClient.CompositeMapper = { - serializedName: "UrlFileExtension", + serializedName: "DeliveryRuleRequestHeaderConditionParameters", type: { name: "Composite", - className: "DeliveryRuleUrlFileExtensionCondition", - uberParent: "DeliveryRuleCondition", + className: "RequestHeaderMatchConditionParameters", + uberParent: "DeliveryRuleConditionParameters", polymorphicDiscriminator: - DeliveryRuleCondition.type.polymorphicDiscriminator, + DeliveryRuleConditionParameters.type.polymorphicDiscriminator, modelProperties: { - ...DeliveryRuleCondition.type.modelProperties, - parameters: { - serializedName: "parameters", + ...DeliveryRuleConditionParameters.type.modelProperties, + selector: { + serializedName: "selector", type: { - name: "Composite", - className: "UrlFileExtensionMatchConditionParameters", + name: "String", + }, + }, + operator: { + serializedName: "operator", + required: true, + type: { + name: "String", + }, + }, + negateCondition: { + defaultValue: false, + serializedName: "negateCondition", + type: { + name: "Boolean", + }, + }, + matchValues: { + serializedName: "matchValues", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + transforms: { + serializedName: "transforms", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, }, }, }, }, }; -export const DeliveryRuleUrlFileNameCondition: coreClient.CompositeMapper = { - serializedName: "UrlFileName", +export const RequestBodyMatchConditionParameters: coreClient.CompositeMapper = { + serializedName: "DeliveryRuleRequestBodyConditionParameters", type: { name: "Composite", - className: "DeliveryRuleUrlFileNameCondition", - uberParent: "DeliveryRuleCondition", + className: "RequestBodyMatchConditionParameters", + uberParent: "DeliveryRuleConditionParameters", polymorphicDiscriminator: - DeliveryRuleCondition.type.polymorphicDiscriminator, + DeliveryRuleConditionParameters.type.polymorphicDiscriminator, modelProperties: { - ...DeliveryRuleCondition.type.modelProperties, - parameters: { - serializedName: "parameters", + ...DeliveryRuleConditionParameters.type.modelProperties, + operator: { + serializedName: "operator", + required: true, type: { - name: "Composite", - className: "UrlFileNameMatchConditionParameters", + name: "String", + }, + }, + negateCondition: { + defaultValue: false, + serializedName: "negateCondition", + type: { + name: "Boolean", + }, + }, + matchValues: { + serializedName: "matchValues", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + transforms: { + serializedName: "transforms", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + }, + }, +}; + +export const RequestSchemeMatchConditionParameters: coreClient.CompositeMapper = + { + serializedName: "DeliveryRuleRequestSchemeConditionParameters", + type: { + name: "Composite", + className: "RequestSchemeMatchConditionParameters", + uberParent: "DeliveryRuleConditionParameters", + polymorphicDiscriminator: + DeliveryRuleConditionParameters.type.polymorphicDiscriminator, + modelProperties: { + ...DeliveryRuleConditionParameters.type.modelProperties, + operator: { + defaultValue: "Equal", + isConstant: true, + serializedName: "operator", + type: { + name: "String", + }, + }, + negateCondition: { + defaultValue: false, + serializedName: "negateCondition", + type: { + name: "Boolean", + }, + }, + transforms: { + serializedName: "transforms", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + matchValues: { + serializedName: "matchValues", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + }, + }, + }; + +export const UrlPathMatchConditionParameters: coreClient.CompositeMapper = { + serializedName: "DeliveryRuleUrlPathMatchConditionParameters", + type: { + name: "Composite", + className: "UrlPathMatchConditionParameters", + uberParent: "DeliveryRuleConditionParameters", + polymorphicDiscriminator: + DeliveryRuleConditionParameters.type.polymorphicDiscriminator, + modelProperties: { + ...DeliveryRuleConditionParameters.type.modelProperties, + operator: { + serializedName: "operator", + required: true, + type: { + name: "String", + }, + }, + negateCondition: { + defaultValue: false, + serializedName: "negateCondition", + type: { + name: "Boolean", + }, + }, + matchValues: { + serializedName: "matchValues", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + transforms: { + serializedName: "transforms", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + }, + }, +}; + +export const UrlFileExtensionMatchConditionParameters: coreClient.CompositeMapper = + { + serializedName: "DeliveryRuleUrlFileExtensionMatchConditionParameters", + type: { + name: "Composite", + className: "UrlFileExtensionMatchConditionParameters", + uberParent: "DeliveryRuleConditionParameters", + polymorphicDiscriminator: + DeliveryRuleConditionParameters.type.polymorphicDiscriminator, + modelProperties: { + ...DeliveryRuleConditionParameters.type.modelProperties, + operator: { + serializedName: "operator", + required: true, + type: { + name: "String", + }, + }, + negateCondition: { + defaultValue: false, + serializedName: "negateCondition", + type: { + name: "Boolean", + }, + }, + matchValues: { + serializedName: "matchValues", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + transforms: { + serializedName: "transforms", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, }, }, }, - }, -}; + }; -export const DeliveryRuleHttpVersionCondition: coreClient.CompositeMapper = { - serializedName: "HttpVersion", +export const UrlFileNameMatchConditionParameters: coreClient.CompositeMapper = { + serializedName: "DeliveryRuleUrlFilenameConditionParameters", type: { name: "Composite", - className: "DeliveryRuleHttpVersionCondition", - uberParent: "DeliveryRuleCondition", + className: "UrlFileNameMatchConditionParameters", + uberParent: "DeliveryRuleConditionParameters", polymorphicDiscriminator: - DeliveryRuleCondition.type.polymorphicDiscriminator, + DeliveryRuleConditionParameters.type.polymorphicDiscriminator, modelProperties: { - ...DeliveryRuleCondition.type.modelProperties, - parameters: { - serializedName: "parameters", + ...DeliveryRuleConditionParameters.type.modelProperties, + operator: { + serializedName: "operator", + required: true, type: { - name: "Composite", - className: "HttpVersionMatchConditionParameters", + name: "String", }, }, - }, - }, -}; - -export const DeliveryRuleCookiesCondition: coreClient.CompositeMapper = { - serializedName: "Cookies", - type: { - name: "Composite", - className: "DeliveryRuleCookiesCondition", - uberParent: "DeliveryRuleCondition", - polymorphicDiscriminator: - DeliveryRuleCondition.type.polymorphicDiscriminator, - modelProperties: { - ...DeliveryRuleCondition.type.modelProperties, - parameters: { - serializedName: "parameters", + negateCondition: { + defaultValue: false, + serializedName: "negateCondition", type: { - name: "Composite", - className: "CookiesMatchConditionParameters", + name: "Boolean", }, }, - }, - }, -}; - -export const DeliveryRuleIsDeviceCondition: coreClient.CompositeMapper = { - serializedName: "IsDevice", - type: { - name: "Composite", - className: "DeliveryRuleIsDeviceCondition", - uberParent: "DeliveryRuleCondition", - polymorphicDiscriminator: - DeliveryRuleCondition.type.polymorphicDiscriminator, - modelProperties: { - ...DeliveryRuleCondition.type.modelProperties, - parameters: { - serializedName: "parameters", + matchValues: { + serializedName: "matchValues", type: { - name: "Composite", - className: "IsDeviceMatchConditionParameters", + name: "Sequence", + element: { + type: { + name: "String", + }, + }, }, }, - }, - }, -}; - -export const DeliveryRuleSocketAddrCondition: coreClient.CompositeMapper = { - serializedName: "SocketAddr", - type: { - name: "Composite", - className: "DeliveryRuleSocketAddrCondition", - uberParent: "DeliveryRuleCondition", - polymorphicDiscriminator: - DeliveryRuleCondition.type.polymorphicDiscriminator, - modelProperties: { - ...DeliveryRuleCondition.type.modelProperties, - parameters: { - serializedName: "parameters", + transforms: { + serializedName: "transforms", type: { - name: "Composite", - className: "SocketAddrMatchConditionParameters", + name: "Sequence", + element: { + type: { + name: "String", + }, + }, }, }, }, }, }; -export const DeliveryRuleClientPortCondition: coreClient.CompositeMapper = { - serializedName: "ClientPort", +export const HttpVersionMatchConditionParameters: coreClient.CompositeMapper = { + serializedName: "DeliveryRuleHttpVersionConditionParameters", type: { name: "Composite", - className: "DeliveryRuleClientPortCondition", - uberParent: "DeliveryRuleCondition", + className: "HttpVersionMatchConditionParameters", + uberParent: "DeliveryRuleConditionParameters", polymorphicDiscriminator: - DeliveryRuleCondition.type.polymorphicDiscriminator, + DeliveryRuleConditionParameters.type.polymorphicDiscriminator, modelProperties: { - ...DeliveryRuleCondition.type.modelProperties, - parameters: { - serializedName: "parameters", + ...DeliveryRuleConditionParameters.type.modelProperties, + operator: { + serializedName: "operator", + required: true, type: { - name: "Composite", - className: "ClientPortMatchConditionParameters", + name: "String", }, }, - }, - }, -}; - -export const DeliveryRuleServerPortCondition: coreClient.CompositeMapper = { - serializedName: "ServerPort", - type: { - name: "Composite", - className: "DeliveryRuleServerPortCondition", - uberParent: "DeliveryRuleCondition", - polymorphicDiscriminator: - DeliveryRuleCondition.type.polymorphicDiscriminator, - modelProperties: { - ...DeliveryRuleCondition.type.modelProperties, - parameters: { - serializedName: "parameters", + negateCondition: { + defaultValue: false, + serializedName: "negateCondition", type: { - name: "Composite", - className: "ServerPortMatchConditionParameters", + name: "Boolean", }, }, - }, - }, -}; - -export const DeliveryRuleHostNameCondition: coreClient.CompositeMapper = { - serializedName: "HostName", - type: { - name: "Composite", - className: "DeliveryRuleHostNameCondition", - uberParent: "DeliveryRuleCondition", - polymorphicDiscriminator: - DeliveryRuleCondition.type.polymorphicDiscriminator, - modelProperties: { - ...DeliveryRuleCondition.type.modelProperties, - parameters: { - serializedName: "parameters", + matchValues: { + serializedName: "matchValues", type: { - name: "Composite", - className: "HostNameMatchConditionParameters", + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + transforms: { + serializedName: "transforms", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, }, }, }, }, }; -export const DeliveryRuleSslProtocolCondition: coreClient.CompositeMapper = { - serializedName: "SslProtocol", +export const CookiesMatchConditionParameters: coreClient.CompositeMapper = { + serializedName: "DeliveryRuleCookiesConditionParameters", type: { name: "Composite", - className: "DeliveryRuleSslProtocolCondition", - uberParent: "DeliveryRuleCondition", + className: "CookiesMatchConditionParameters", + uberParent: "DeliveryRuleConditionParameters", polymorphicDiscriminator: - DeliveryRuleCondition.type.polymorphicDiscriminator, + DeliveryRuleConditionParameters.type.polymorphicDiscriminator, modelProperties: { - ...DeliveryRuleCondition.type.modelProperties, - parameters: { - serializedName: "parameters", + ...DeliveryRuleConditionParameters.type.modelProperties, + selector: { + serializedName: "selector", type: { - name: "Composite", - className: "SslProtocolMatchConditionParameters", + name: "String", + }, + }, + operator: { + serializedName: "operator", + required: true, + type: { + name: "String", + }, + }, + negateCondition: { + defaultValue: false, + serializedName: "negateCondition", + type: { + name: "Boolean", + }, + }, + matchValues: { + serializedName: "matchValues", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + transforms: { + serializedName: "transforms", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, }, }, }, }, }; -export const UrlRedirectAction: coreClient.CompositeMapper = { - serializedName: "UrlRedirect", +export const IsDeviceMatchConditionParameters: coreClient.CompositeMapper = { + serializedName: "DeliveryRuleIsDeviceConditionParameters", type: { name: "Composite", - className: "UrlRedirectAction", - uberParent: "DeliveryRuleActionAutoGenerated", + className: "IsDeviceMatchConditionParameters", + uberParent: "DeliveryRuleConditionParameters", polymorphicDiscriminator: - DeliveryRuleActionAutoGenerated.type.polymorphicDiscriminator, + DeliveryRuleConditionParameters.type.polymorphicDiscriminator, modelProperties: { - ...DeliveryRuleActionAutoGenerated.type.modelProperties, - parameters: { - serializedName: "parameters", + ...DeliveryRuleConditionParameters.type.modelProperties, + operator: { + serializedName: "operator", + required: true, + type: { + name: "String", + }, + }, + negateCondition: { + defaultValue: false, + serializedName: "negateCondition", + type: { + name: "Boolean", + }, + }, + matchValues: { + serializedName: "matchValues", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + transforms: { + serializedName: "transforms", type: { - name: "Composite", - className: "UrlRedirectActionParameters", + name: "Sequence", + element: { + type: { + name: "String", + }, + }, }, }, }, }, }; -export const UrlSigningAction: coreClient.CompositeMapper = { - serializedName: "UrlSigning", +export const SocketAddrMatchConditionParameters: coreClient.CompositeMapper = { + serializedName: "DeliveryRuleSocketAddrConditionParameters", type: { name: "Composite", - className: "UrlSigningAction", - uberParent: "DeliveryRuleActionAutoGenerated", + className: "SocketAddrMatchConditionParameters", + uberParent: "DeliveryRuleConditionParameters", polymorphicDiscriminator: - DeliveryRuleActionAutoGenerated.type.polymorphicDiscriminator, + DeliveryRuleConditionParameters.type.polymorphicDiscriminator, modelProperties: { - ...DeliveryRuleActionAutoGenerated.type.modelProperties, - parameters: { - serializedName: "parameters", + ...DeliveryRuleConditionParameters.type.modelProperties, + operator: { + serializedName: "operator", + required: true, type: { - name: "Composite", - className: "UrlSigningActionParameters", + name: "String", }, }, - }, - }, -}; - -export const OriginGroupOverrideAction: coreClient.CompositeMapper = { - serializedName: "OriginGroupOverride", - type: { - name: "Composite", - className: "OriginGroupOverrideAction", - uberParent: "DeliveryRuleActionAutoGenerated", - polymorphicDiscriminator: - DeliveryRuleActionAutoGenerated.type.polymorphicDiscriminator, - modelProperties: { - ...DeliveryRuleActionAutoGenerated.type.modelProperties, - parameters: { - serializedName: "parameters", + negateCondition: { + defaultValue: false, + serializedName: "negateCondition", type: { - name: "Composite", - className: "OriginGroupOverrideActionParameters", + name: "Boolean", }, }, - }, - }, -}; - -export const UrlRewriteAction: coreClient.CompositeMapper = { - serializedName: "UrlRewrite", - type: { - name: "Composite", - className: "UrlRewriteAction", - uberParent: "DeliveryRuleActionAutoGenerated", - polymorphicDiscriminator: - DeliveryRuleActionAutoGenerated.type.polymorphicDiscriminator, - modelProperties: { - ...DeliveryRuleActionAutoGenerated.type.modelProperties, - parameters: { - serializedName: "parameters", + matchValues: { + serializedName: "matchValues", type: { - name: "Composite", - className: "UrlRewriteActionParameters", + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + transforms: { + serializedName: "transforms", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, }, }, }, }, }; -export const DeliveryRuleRequestHeaderAction: coreClient.CompositeMapper = { - serializedName: "ModifyRequestHeader", +export const ClientPortMatchConditionParameters: coreClient.CompositeMapper = { + serializedName: "DeliveryRuleClientPortConditionParameters", type: { name: "Composite", - className: "DeliveryRuleRequestHeaderAction", - uberParent: "DeliveryRuleActionAutoGenerated", + className: "ClientPortMatchConditionParameters", + uberParent: "DeliveryRuleConditionParameters", polymorphicDiscriminator: - DeliveryRuleActionAutoGenerated.type.polymorphicDiscriminator, + DeliveryRuleConditionParameters.type.polymorphicDiscriminator, modelProperties: { - ...DeliveryRuleActionAutoGenerated.type.modelProperties, - parameters: { - serializedName: "parameters", + ...DeliveryRuleConditionParameters.type.modelProperties, + operator: { + serializedName: "operator", + required: true, type: { - name: "Composite", - className: "HeaderActionParameters", + name: "String", + }, + }, + negateCondition: { + defaultValue: false, + serializedName: "negateCondition", + type: { + name: "Boolean", + }, + }, + matchValues: { + serializedName: "matchValues", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + transforms: { + serializedName: "transforms", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, }, }, }, }, }; -export const DeliveryRuleResponseHeaderAction: coreClient.CompositeMapper = { - serializedName: "ModifyResponseHeader", +export const ServerPortMatchConditionParameters: coreClient.CompositeMapper = { + serializedName: "DeliveryRuleServerPortConditionParameters", type: { name: "Composite", - className: "DeliveryRuleResponseHeaderAction", - uberParent: "DeliveryRuleActionAutoGenerated", + className: "ServerPortMatchConditionParameters", + uberParent: "DeliveryRuleConditionParameters", polymorphicDiscriminator: - DeliveryRuleActionAutoGenerated.type.polymorphicDiscriminator, + DeliveryRuleConditionParameters.type.polymorphicDiscriminator, modelProperties: { - ...DeliveryRuleActionAutoGenerated.type.modelProperties, - parameters: { - serializedName: "parameters", + ...DeliveryRuleConditionParameters.type.modelProperties, + operator: { + serializedName: "operator", + required: true, type: { - name: "Composite", - className: "HeaderActionParameters", + name: "String", + }, + }, + negateCondition: { + defaultValue: false, + serializedName: "negateCondition", + type: { + name: "Boolean", + }, + }, + matchValues: { + serializedName: "matchValues", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + transforms: { + serializedName: "transforms", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, }, }, }, }, }; -export const DeliveryRuleCacheExpirationAction: coreClient.CompositeMapper = { - serializedName: "CacheExpiration", +export const HostNameMatchConditionParameters: coreClient.CompositeMapper = { + serializedName: "DeliveryRuleHostNameConditionParameters", type: { name: "Composite", - className: "DeliveryRuleCacheExpirationAction", - uberParent: "DeliveryRuleActionAutoGenerated", + className: "HostNameMatchConditionParameters", + uberParent: "DeliveryRuleConditionParameters", polymorphicDiscriminator: - DeliveryRuleActionAutoGenerated.type.polymorphicDiscriminator, + DeliveryRuleConditionParameters.type.polymorphicDiscriminator, modelProperties: { - ...DeliveryRuleActionAutoGenerated.type.modelProperties, - parameters: { - serializedName: "parameters", + ...DeliveryRuleConditionParameters.type.modelProperties, + operator: { + serializedName: "operator", + required: true, type: { - name: "Composite", - className: "CacheExpirationActionParameters", + name: "String", }, }, - }, - }, -}; - -export const DeliveryRuleCacheKeyQueryStringAction: coreClient.CompositeMapper = - { - serializedName: "CacheKeyQueryString", - type: { - name: "Composite", - className: "DeliveryRuleCacheKeyQueryStringAction", - uberParent: "DeliveryRuleActionAutoGenerated", - polymorphicDiscriminator: - DeliveryRuleActionAutoGenerated.type.polymorphicDiscriminator, - modelProperties: { - ...DeliveryRuleActionAutoGenerated.type.modelProperties, - parameters: { - serializedName: "parameters", - type: { - name: "Composite", - className: "CacheKeyQueryStringActionParameters", - }, + negateCondition: { + defaultValue: false, + serializedName: "negateCondition", + type: { + name: "Boolean", }, }, - }, - }; - -export const DeliveryRuleRouteConfigurationOverrideAction: coreClient.CompositeMapper = - { - serializedName: "RouteConfigurationOverride", - type: { - name: "Composite", - className: "DeliveryRuleRouteConfigurationOverrideAction", - uberParent: "DeliveryRuleActionAutoGenerated", - polymorphicDiscriminator: - DeliveryRuleActionAutoGenerated.type.polymorphicDiscriminator, - modelProperties: { - ...DeliveryRuleActionAutoGenerated.type.modelProperties, - parameters: { - serializedName: "parameters", - type: { - name: "Composite", - className: "RouteConfigurationOverrideActionParameters", + matchValues: { + serializedName: "matchValues", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, }, }, }, - }, - }; - -export const SecurityPolicyWebApplicationFirewallParameters: coreClient.CompositeMapper = - { - serializedName: "WebApplicationFirewall", - type: { - name: "Composite", - className: "SecurityPolicyWebApplicationFirewallParameters", - uberParent: "SecurityPolicyPropertiesParameters", - polymorphicDiscriminator: - SecurityPolicyPropertiesParameters.type.polymorphicDiscriminator, - modelProperties: { - ...SecurityPolicyPropertiesParameters.type.modelProperties, - wafPolicy: { - serializedName: "wafPolicy", - type: { - name: "Composite", - className: "ResourceReference", - }, - }, - associations: { - serializedName: "associations", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SecurityPolicyWebApplicationFirewallAssociation", - }, + transforms: { + serializedName: "transforms", + type: { + name: "Sequence", + element: { + type: { + name: "String", }, }, }, }, }, - }; + }, +}; -export const UrlSigningKeyParameters: coreClient.CompositeMapper = { - serializedName: "UrlSigningKey", +export const SslProtocolMatchConditionParameters: coreClient.CompositeMapper = { + serializedName: "DeliveryRuleSslProtocolConditionParameters", type: { name: "Composite", - className: "UrlSigningKeyParameters", - uberParent: "SecretParameters", - polymorphicDiscriminator: SecretParameters.type.polymorphicDiscriminator, + className: "SslProtocolMatchConditionParameters", + uberParent: "DeliveryRuleConditionParameters", + polymorphicDiscriminator: + DeliveryRuleConditionParameters.type.polymorphicDiscriminator, modelProperties: { - ...SecretParameters.type.modelProperties, - keyId: { - serializedName: "keyId", + ...DeliveryRuleConditionParameters.type.modelProperties, + operator: { + serializedName: "operator", required: true, type: { name: "String", }, }, - secretSource: { - serializedName: "secretSource", - type: { - name: "Composite", - className: "ResourceReference", - }, - }, - secretVersion: { - serializedName: "secretVersion", + negateCondition: { + defaultValue: false, + serializedName: "negateCondition", type: { - name: "String", + name: "Boolean", }, }, - }, - }, -}; - -export const ManagedCertificateParameters: coreClient.CompositeMapper = { - serializedName: "ManagedCertificate", - type: { - name: "Composite", - className: "ManagedCertificateParameters", - uberParent: "SecretParameters", - polymorphicDiscriminator: SecretParameters.type.polymorphicDiscriminator, - modelProperties: { - ...SecretParameters.type.modelProperties, - subject: { - serializedName: "subject", - readOnly: true, + matchValues: { + serializedName: "matchValues", type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "String", + }, + }, }, }, - expirationDate: { - serializedName: "expirationDate", - readOnly: true, + transforms: { + serializedName: "transforms", type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "String", + }, + }, }, }, }, }, }; -export const CustomerCertificateParameters: coreClient.CompositeMapper = { - serializedName: "CustomerCertificate", +export const UrlRedirectActionParameters: coreClient.CompositeMapper = { + serializedName: "DeliveryRuleUrlRedirectActionParameters", type: { name: "Composite", - className: "CustomerCertificateParameters", - uberParent: "SecretParameters", - polymorphicDiscriminator: SecretParameters.type.polymorphicDiscriminator, + className: "UrlRedirectActionParameters", + uberParent: "DeliveryRuleActionParameters", + polymorphicDiscriminator: + DeliveryRuleActionParameters.type.polymorphicDiscriminator, modelProperties: { - ...SecretParameters.type.modelProperties, - secretSource: { - serializedName: "secretSource", - type: { - name: "Composite", - className: "ResourceReference", - }, - }, - secretVersion: { - serializedName: "secretVersion", + ...DeliveryRuleActionParameters.type.modelProperties, + redirectType: { + serializedName: "redirectType", + required: true, type: { name: "String", }, }, - useLatestVersion: { - serializedName: "useLatestVersion", - type: { - name: "Boolean", - }, - }, - subject: { - serializedName: "subject", - readOnly: true, + destinationProtocol: { + serializedName: "destinationProtocol", type: { name: "String", }, }, - expirationDate: { - serializedName: "expirationDate", - readOnly: true, + customPath: { + serializedName: "customPath", type: { name: "String", }, }, - certificateAuthority: { - serializedName: "certificateAuthority", - readOnly: true, + customHostname: { + serializedName: "customHostname", type: { name: "String", }, }, - subjectAlternativeNames: { - serializedName: "subjectAlternativeNames", + customQueryString: { + serializedName: "customQueryString", type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, + name: "String", }, }, - thumbprint: { - serializedName: "thumbprint", - readOnly: true, + customFragment: { + serializedName: "customFragment", type: { name: "String", }, @@ -7856,158 +7924,119 @@ export const CustomerCertificateParameters: coreClient.CompositeMapper = { }, }; -export const AzureFirstPartyManagedCertificateParameters: coreClient.CompositeMapper = - { - serializedName: "AzureFirstPartyManagedCertificate", - type: { - name: "Composite", - className: "AzureFirstPartyManagedCertificateParameters", - uberParent: "SecretParameters", - polymorphicDiscriminator: SecretParameters.type.polymorphicDiscriminator, - modelProperties: { - ...SecretParameters.type.modelProperties, - secretSource: { - serializedName: "secretSource", - type: { - name: "Composite", - className: "ResourceReference", - }, - }, - subject: { - serializedName: "subject", - readOnly: true, - type: { - name: "String", - }, - }, - expirationDate: { - serializedName: "expirationDate", - readOnly: true, - type: { - name: "String", - }, - }, - certificateAuthority: { - serializedName: "certificateAuthority", - readOnly: true, - type: { - name: "String", - }, - }, - subjectAlternativeNames: { - serializedName: "subjectAlternativeNames", - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, - }, - thumbprint: { - serializedName: "thumbprint", - readOnly: true, - type: { - name: "String", - }, - }, - }, - }, - }; - -export const EndpointProperties: coreClient.CompositeMapper = { +export const UrlSigningActionParameters: coreClient.CompositeMapper = { + serializedName: "DeliveryRuleUrlSigningActionParameters", type: { name: "Composite", - className: "EndpointProperties", + className: "UrlSigningActionParameters", + uberParent: "DeliveryRuleActionParameters", + polymorphicDiscriminator: + DeliveryRuleActionParameters.type.polymorphicDiscriminator, modelProperties: { - ...EndpointPropertiesUpdateParameters.type.modelProperties, - hostName: { - serializedName: "hostName", - readOnly: true, + ...DeliveryRuleActionParameters.type.modelProperties, + algorithm: { + serializedName: "algorithm", type: { name: "String", }, }, - origins: { - serializedName: "origins", - required: true, + parameterNameOverride: { + serializedName: "parameterNameOverride", type: { name: "Sequence", element: { type: { name: "Composite", - className: "DeepCreatedOrigin", + className: "UrlSigningParamIdentifier", }, }, }, }, - originGroups: { - serializedName: "originGroups", + }, + }, +}; + +export const OriginGroupOverrideActionParameters: coreClient.CompositeMapper = { + serializedName: "DeliveryRuleOriginGroupOverrideActionParameters", + type: { + name: "Composite", + className: "OriginGroupOverrideActionParameters", + uberParent: "DeliveryRuleActionParameters", + polymorphicDiscriminator: + DeliveryRuleActionParameters.type.polymorphicDiscriminator, + modelProperties: { + ...DeliveryRuleActionParameters.type.modelProperties, + originGroup: { + serializedName: "originGroup", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DeepCreatedOriginGroup", - }, - }, + name: "Composite", + className: "ResourceReference", }, }, - customDomains: { - serializedName: "customDomains", - readOnly: true, + }, + }, +}; + +export const UrlRewriteActionParameters: coreClient.CompositeMapper = { + serializedName: "DeliveryRuleUrlRewriteActionParameters", + type: { + name: "Composite", + className: "UrlRewriteActionParameters", + uberParent: "DeliveryRuleActionParameters", + polymorphicDiscriminator: + DeliveryRuleActionParameters.type.polymorphicDiscriminator, + modelProperties: { + ...DeliveryRuleActionParameters.type.modelProperties, + sourcePattern: { + serializedName: "sourcePattern", + required: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DeepCreatedCustomDomain", - }, - }, + name: "String", }, }, - resourceState: { - serializedName: "resourceState", - readOnly: true, + destination: { + serializedName: "destination", + required: true, type: { name: "String", }, }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, + preserveUnmatchedPath: { + serializedName: "preserveUnmatchedPath", type: { - name: "String", + name: "Boolean", }, }, }, }, }; -export const OriginProperties: coreClient.CompositeMapper = { +export const HeaderActionParameters: coreClient.CompositeMapper = { + serializedName: "DeliveryRuleHeaderActionParameters", type: { name: "Composite", - className: "OriginProperties", + className: "HeaderActionParameters", + uberParent: "DeliveryRuleActionParameters", + polymorphicDiscriminator: + DeliveryRuleActionParameters.type.polymorphicDiscriminator, modelProperties: { - ...OriginUpdatePropertiesParameters.type.modelProperties, - resourceState: { - serializedName: "resourceState", - readOnly: true, + ...DeliveryRuleActionParameters.type.modelProperties, + headerAction: { + serializedName: "headerAction", + required: true, type: { name: "String", }, }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, + headerName: { + serializedName: "headerName", + required: true, type: { name: "String", }, }, - privateEndpointStatus: { - serializedName: "privateEndpointStatus", - readOnly: true, + value: { + serializedName: "value", type: { name: "String", }, @@ -8016,22 +8045,33 @@ export const OriginProperties: coreClient.CompositeMapper = { }, }; -export const OriginGroupProperties: coreClient.CompositeMapper = { +export const CacheExpirationActionParameters: coreClient.CompositeMapper = { + serializedName: "DeliveryRuleCacheExpirationActionParameters", type: { name: "Composite", - className: "OriginGroupProperties", + className: "CacheExpirationActionParameters", + uberParent: "DeliveryRuleActionParameters", + polymorphicDiscriminator: + DeliveryRuleActionParameters.type.polymorphicDiscriminator, modelProperties: { - ...OriginGroupUpdatePropertiesParameters.type.modelProperties, - resourceState: { - serializedName: "resourceState", - readOnly: true, + ...DeliveryRuleActionParameters.type.modelProperties, + cacheBehavior: { + serializedName: "cacheBehavior", + required: true, type: { name: "String", }, }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, + cacheType: { + serializedName: "cacheType", + required: true, + type: { + name: "String", + }, + }, + cacheDuration: { + serializedName: "cacheDuration", + nullable: true, type: { name: "String", }, @@ -8040,135 +8080,138 @@ export const OriginGroupProperties: coreClient.CompositeMapper = { }, }; -export const CdnManagedHttpsParameters: coreClient.CompositeMapper = { - serializedName: "Cdn", +export const CacheKeyQueryStringActionParameters: coreClient.CompositeMapper = { + serializedName: "DeliveryRuleCacheKeyQueryStringBehaviorActionParameters", type: { name: "Composite", - className: "CdnManagedHttpsParameters", - uberParent: "CustomDomainHttpsParameters", + className: "CacheKeyQueryStringActionParameters", + uberParent: "DeliveryRuleActionParameters", polymorphicDiscriminator: - CustomDomainHttpsParameters.type.polymorphicDiscriminator, + DeliveryRuleActionParameters.type.polymorphicDiscriminator, modelProperties: { - ...CustomDomainHttpsParameters.type.modelProperties, - certificateSourceParameters: { - serializedName: "certificateSourceParameters", + ...DeliveryRuleActionParameters.type.modelProperties, + queryStringBehavior: { + serializedName: "queryStringBehavior", + required: true, type: { - name: "Composite", - className: "CdnCertificateSourceParameters", + name: "String", + }, + }, + queryParameters: { + serializedName: "queryParameters", + nullable: true, + type: { + name: "String", }, }, }, }, }; -export const UserManagedHttpsParameters: coreClient.CompositeMapper = { - serializedName: "AzureKeyVault", +export const RouteConfigurationOverrideActionParameters: coreClient.CompositeMapper = + { + serializedName: "DeliveryRuleRouteConfigurationOverrideActionParameters", + type: { + name: "Composite", + className: "RouteConfigurationOverrideActionParameters", + uberParent: "DeliveryRuleActionParameters", + polymorphicDiscriminator: + DeliveryRuleActionParameters.type.polymorphicDiscriminator, + modelProperties: { + ...DeliveryRuleActionParameters.type.modelProperties, + originGroupOverride: { + serializedName: "originGroupOverride", + type: { + name: "Composite", + className: "OriginGroupOverride", + }, + }, + cacheConfiguration: { + serializedName: "cacheConfiguration", + type: { + name: "Composite", + className: "CacheConfiguration", + }, + }, + }, + }, + }; + +export const CdnCertificateSourceParameters: coreClient.CompositeMapper = { + serializedName: "CdnCertificateSourceParameters", type: { name: "Composite", - className: "UserManagedHttpsParameters", - uberParent: "CustomDomainHttpsParameters", + className: "CdnCertificateSourceParameters", + uberParent: "CertificateSourceParameters", polymorphicDiscriminator: - CustomDomainHttpsParameters.type.polymorphicDiscriminator, + CertificateSourceParameters.type.polymorphicDiscriminator, modelProperties: { - ...CustomDomainHttpsParameters.type.modelProperties, - certificateSourceParameters: { - serializedName: "certificateSourceParameters", + ...CertificateSourceParameters.type.modelProperties, + certificateType: { + serializedName: "certificateType", + required: true, type: { - name: "Composite", - className: "KeyVaultCertificateSourceParameters", + name: "String", }, }, }, }, }; -export const RateLimitRule: coreClient.CompositeMapper = { +export const KeyVaultCertificateSourceParameters: coreClient.CompositeMapper = { + serializedName: "KeyVaultCertificateSourceParameters", type: { name: "Composite", - className: "RateLimitRule", + className: "KeyVaultCertificateSourceParameters", + uberParent: "CertificateSourceParameters", + polymorphicDiscriminator: + CertificateSourceParameters.type.polymorphicDiscriminator, modelProperties: { - ...CustomRule.type.modelProperties, - rateLimitThreshold: { - constraints: { - InclusiveMinimum: 0, - }, - serializedName: "rateLimitThreshold", + ...CertificateSourceParameters.type.modelProperties, + subscriptionId: { + serializedName: "subscriptionId", required: true, type: { - name: "Number", + name: "String", }, }, - rateLimitDurationInMinutes: { - constraints: { - InclusiveMaximum: 60, - InclusiveMinimum: 0, - }, - serializedName: "rateLimitDurationInMinutes", + resourceGroupName: { + serializedName: "resourceGroupName", required: true, type: { - name: "Number", - }, - }, - }, - }, -}; - -export const ManagedCertificate: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedCertificate", - modelProperties: { - ...Certificate.type.modelProperties, - }, - }, -}; - -export const CustomerCertificate: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CustomerCertificate", - modelProperties: { - ...Certificate.type.modelProperties, - secretSource: { - serializedName: "secretSource", - type: { - name: "Composite", - className: "ResourceReference", + name: "String", }, }, - secretVersion: { - serializedName: "secretVersion", + vaultName: { + serializedName: "vaultName", + required: true, type: { name: "String", }, }, - certificateAuthority: { - serializedName: "certificateAuthority", - readOnly: true, + secretName: { + serializedName: "secretName", + required: true, type: { name: "String", }, }, - useLatestVersion: { - serializedName: "useLatestVersion", + secretVersion: { + serializedName: "secretVersion", type: { - name: "Boolean", + name: "String", }, }, - subjectAlternativeNames: { - serializedName: "subjectAlternativeNames", + updateRule: { + serializedName: "updateRule", + required: true, type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, + name: "String", }, }, - thumbprint: { - serializedName: "thumbprint", - readOnly: true, + deleteRule: { + serializedName: "deleteRule", + required: true, type: { name: "String", }, @@ -8177,16 +8220,6 @@ export const CustomerCertificate: coreClient.CompositeMapper = { }, }; -export const AzureFirstPartyManagedCertificate: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AzureFirstPartyManagedCertificate", - modelProperties: { - ...Certificate.type.modelProperties, - }, - }, -}; - export const Profile: coreClient.CompositeMapper = { type: { name: "Composite", @@ -9025,7 +9058,7 @@ export const Rule: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DeliveryRuleActionAutoGenerated", + className: "DeliveryRuleAction", }, }, }, @@ -9880,6 +9913,51 @@ export const ProfilesMigrationCommitHeaders: coreClient.CompositeMapper = { }, }; +export const ProfilesCdnCanMigrateToAfdHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ProfilesCdnCanMigrateToAfdHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const ProfilesCdnMigrateToAfdHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ProfilesCdnMigrateToAfdHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const ProfilesMigrationAbortHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ProfilesMigrationAbortHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, +}; + export const EndpointsCreateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", @@ -10169,10 +10247,13 @@ export const PoliciesUpdateHeaders: coreClient.CompositeMapper = { export let discriminators = { DeliveryRuleCondition: DeliveryRuleCondition, - DeliveryRuleActionAutoGenerated: DeliveryRuleActionAutoGenerated, + DeliveryRuleAction: DeliveryRuleAction, SecurityPolicyPropertiesParameters: SecurityPolicyPropertiesParameters, SecretParameters: SecretParameters, CustomDomainHttpsParameters: CustomDomainHttpsParameters, + DeliveryRuleConditionParameters: DeliveryRuleConditionParameters, + DeliveryRuleActionParameters: DeliveryRuleActionParameters, + CertificateSourceParameters: CertificateSourceParameters, "DeliveryRuleCondition.RemoteAddress": DeliveryRuleRemoteAddressCondition, "DeliveryRuleCondition.RequestMethod": DeliveryRuleRequestMethodCondition, "DeliveryRuleCondition.QueryString": DeliveryRuleQueryStringCondition, @@ -10193,20 +10274,16 @@ export let discriminators = { "DeliveryRuleCondition.ServerPort": DeliveryRuleServerPortCondition, "DeliveryRuleCondition.HostName": DeliveryRuleHostNameCondition, "DeliveryRuleCondition.SslProtocol": DeliveryRuleSslProtocolCondition, - "DeliveryRuleActionAutoGenerated.UrlRedirect": UrlRedirectAction, - "DeliveryRuleActionAutoGenerated.UrlSigning": UrlSigningAction, - "DeliveryRuleActionAutoGenerated.OriginGroupOverride": - OriginGroupOverrideAction, - "DeliveryRuleActionAutoGenerated.UrlRewrite": UrlRewriteAction, - "DeliveryRuleActionAutoGenerated.ModifyRequestHeader": - DeliveryRuleRequestHeaderAction, - "DeliveryRuleActionAutoGenerated.ModifyResponseHeader": - DeliveryRuleResponseHeaderAction, - "DeliveryRuleActionAutoGenerated.CacheExpiration": - DeliveryRuleCacheExpirationAction, - "DeliveryRuleActionAutoGenerated.CacheKeyQueryString": + "DeliveryRuleAction.UrlRedirect": UrlRedirectAction, + "DeliveryRuleAction.UrlSigning": UrlSigningAction, + "DeliveryRuleAction.OriginGroupOverride": OriginGroupOverrideAction, + "DeliveryRuleAction.UrlRewrite": UrlRewriteAction, + "DeliveryRuleAction.ModifyRequestHeader": DeliveryRuleRequestHeaderAction, + "DeliveryRuleAction.ModifyResponseHeader": DeliveryRuleResponseHeaderAction, + "DeliveryRuleAction.CacheExpiration": DeliveryRuleCacheExpirationAction, + "DeliveryRuleAction.CacheKeyQueryString": DeliveryRuleCacheKeyQueryStringAction, - "DeliveryRuleActionAutoGenerated.RouteConfigurationOverride": + "DeliveryRuleAction.RouteConfigurationOverride": DeliveryRuleRouteConfigurationOverrideAction, "SecurityPolicyPropertiesParameters.WebApplicationFirewall": SecurityPolicyWebApplicationFirewallParameters, @@ -10217,4 +10294,62 @@ export let discriminators = { AzureFirstPartyManagedCertificateParameters, "CustomDomainHttpsParameters.Cdn": CdnManagedHttpsParameters, "CustomDomainHttpsParameters.AzureKeyVault": UserManagedHttpsParameters, + "DeliveryRuleConditionParameters.DeliveryRuleRemoteAddressConditionParameters": + RemoteAddressMatchConditionParameters, + "DeliveryRuleConditionParameters.DeliveryRuleRequestMethodConditionParameters": + RequestMethodMatchConditionParameters, + "DeliveryRuleConditionParameters.DeliveryRuleQueryStringConditionParameters": + QueryStringMatchConditionParameters, + "DeliveryRuleConditionParameters.DeliveryRulePostArgsConditionParameters": + PostArgsMatchConditionParameters, + "DeliveryRuleConditionParameters.DeliveryRuleRequestUriConditionParameters": + RequestUriMatchConditionParameters, + "DeliveryRuleConditionParameters.DeliveryRuleRequestHeaderConditionParameters": + RequestHeaderMatchConditionParameters, + "DeliveryRuleConditionParameters.DeliveryRuleRequestBodyConditionParameters": + RequestBodyMatchConditionParameters, + "DeliveryRuleConditionParameters.DeliveryRuleRequestSchemeConditionParameters": + RequestSchemeMatchConditionParameters, + "DeliveryRuleConditionParameters.DeliveryRuleUrlPathMatchConditionParameters": + UrlPathMatchConditionParameters, + "DeliveryRuleConditionParameters.DeliveryRuleUrlFileExtensionMatchConditionParameters": + UrlFileExtensionMatchConditionParameters, + "DeliveryRuleConditionParameters.DeliveryRuleUrlFilenameConditionParameters": + UrlFileNameMatchConditionParameters, + "DeliveryRuleConditionParameters.DeliveryRuleHttpVersionConditionParameters": + HttpVersionMatchConditionParameters, + "DeliveryRuleConditionParameters.DeliveryRuleCookiesConditionParameters": + CookiesMatchConditionParameters, + "DeliveryRuleConditionParameters.DeliveryRuleIsDeviceConditionParameters": + IsDeviceMatchConditionParameters, + "DeliveryRuleConditionParameters.DeliveryRuleSocketAddrConditionParameters": + SocketAddrMatchConditionParameters, + "DeliveryRuleConditionParameters.DeliveryRuleClientPortConditionParameters": + ClientPortMatchConditionParameters, + "DeliveryRuleConditionParameters.DeliveryRuleServerPortConditionParameters": + ServerPortMatchConditionParameters, + "DeliveryRuleConditionParameters.DeliveryRuleHostNameConditionParameters": + HostNameMatchConditionParameters, + "DeliveryRuleConditionParameters.DeliveryRuleSslProtocolConditionParameters": + SslProtocolMatchConditionParameters, + "DeliveryRuleActionParameters.DeliveryRuleUrlRedirectActionParameters": + UrlRedirectActionParameters, + "DeliveryRuleActionParameters.DeliveryRuleUrlSigningActionParameters": + UrlSigningActionParameters, + "DeliveryRuleActionParameters.DeliveryRuleOriginGroupOverrideActionParameters": + OriginGroupOverrideActionParameters, + "DeliveryRuleActionParameters.DeliveryRuleUrlRewriteActionParameters": + UrlRewriteActionParameters, + "DeliveryRuleActionParameters.DeliveryRuleHeaderActionParameters": + HeaderActionParameters, + "DeliveryRuleActionParameters.DeliveryRuleCacheExpirationActionParameters": + CacheExpirationActionParameters, + "DeliveryRuleActionParameters.DeliveryRuleCacheKeyQueryStringBehaviorActionParameters": + CacheKeyQueryStringActionParameters, + "DeliveryRuleActionParameters.DeliveryRuleRouteConfigurationOverrideActionParameters": + RouteConfigurationOverrideActionParameters, + "CertificateSourceParameters.CdnCertificateSourceParameters": + CdnCertificateSourceParameters, + "CertificateSourceParameters.KeyVaultCertificateSourceParameters": + KeyVaultCertificateSourceParameters, }; diff --git a/sdk/cdn/arm-cdn/src/models/parameters.ts b/sdk/cdn/arm-cdn/src/models/parameters.ts index a5db4c7f53f2..c659d7c59dcb 100644 --- a/sdk/cdn/arm-cdn/src/models/parameters.ts +++ b/sdk/cdn/arm-cdn/src/models/parameters.ts @@ -39,6 +39,7 @@ import { ProfileUpdateParameters as ProfileUpdateParametersMapper, CanMigrateParameters as CanMigrateParametersMapper, MigrationParameters as MigrationParametersMapper, + CdnMigrationToAfdParameters as CdnMigrationToAfdParametersMapper, Endpoint as EndpointMapper, EndpointUpdateParameters as EndpointUpdateParametersMapper, PurgeParameters as PurgeParametersMapper, @@ -124,7 +125,7 @@ export const resourceGroupName: OperationURLParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2024-02-01", + defaultValue: "2024-09-01", isConstant: true, serializedName: "api-version", type: { @@ -687,6 +688,26 @@ export const migrationParameters: OperationParameter = { mapper: MigrationParametersMapper, }; +export const resourceGroupName1: OperationURLParameter = { + parameterPath: "resourceGroupName", + mapper: { + constraints: { + MaxLength: 90, + MinLength: 1, + }, + serializedName: "resourceGroupName", + required: true, + type: { + name: "String", + }, + }, +}; + +export const migrationParameters1: OperationParameter = { + parameterPath: "migrationParameters", + mapper: CdnMigrationToAfdParametersMapper, +}; + export const endpoint1: OperationParameter = { parameterPath: "endpoint", mapper: EndpointMapper, @@ -737,7 +758,7 @@ export const customDomainHttpsParameters: OperationParameter = { mapper: CustomDomainHttpsParametersMapper, }; -export const resourceGroupName1: OperationURLParameter = { +export const resourceGroupName2: OperationURLParameter = { parameterPath: "resourceGroupName", mapper: { constraints: { diff --git a/sdk/cdn/arm-cdn/src/operations/policies.ts b/sdk/cdn/arm-cdn/src/operations/policies.ts index c1b74b164e8c..4c92a4a33ca3 100644 --- a/sdk/cdn/arm-cdn/src/operations/policies.ts +++ b/sdk/cdn/arm-cdn/src/operations/policies.ts @@ -396,7 +396,7 @@ const listOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName1, + Parameters.resourceGroupName2, ], headerParameters: [Parameters.accept], serializer, @@ -416,7 +416,7 @@ const getOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName1, + Parameters.resourceGroupName2, Parameters.policyName, ], headerParameters: [Parameters.accept], @@ -447,7 +447,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName1, + Parameters.resourceGroupName2, Parameters.policyName, ], headerParameters: [Parameters.contentType, Parameters.accept], @@ -479,7 +479,7 @@ const updateOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName1, + Parameters.resourceGroupName2, Parameters.policyName, ], headerParameters: [Parameters.contentType, Parameters.accept], @@ -500,7 +500,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName1, + Parameters.resourceGroupName2, Parameters.policyName, ], headerParameters: [Parameters.accept], @@ -521,7 +521,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, - Parameters.resourceGroupName1, + Parameters.resourceGroupName2, ], headerParameters: [Parameters.accept], serializer, diff --git a/sdk/cdn/arm-cdn/src/operations/profiles.ts b/sdk/cdn/arm-cdn/src/operations/profiles.ts index a1a2fa5660a2..f84d8b22f66d 100644 --- a/sdk/cdn/arm-cdn/src/operations/profiles.ts +++ b/sdk/cdn/arm-cdn/src/operations/profiles.ts @@ -50,6 +50,13 @@ import { ProfilesGenerateSsoUriResponse, ProfilesListSupportedOptimizationTypesOptionalParams, ProfilesListSupportedOptimizationTypesResponse, + ProfilesCdnCanMigrateToAfdOptionalParams, + ProfilesCdnCanMigrateToAfdResponse, + CdnMigrationToAfdParameters, + ProfilesCdnMigrateToAfdOptionalParams, + ProfilesCdnMigrateToAfdResponse, + ProfilesMigrationAbortOptionalParams, + ProfilesMigrationAbortResponse, ProfilesListNextResponse, ProfilesListByResourceGroupNextResponse, ProfilesListResourceUsageNextResponse, @@ -937,6 +944,289 @@ export class ProfilesImpl implements Profiles { ); } + /** + * Checks if CDN profile can be migrated to Azure Frontdoor(Standard/Premium) profile. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium which is unique + * within the resource group. + * @param options The options parameters. + */ + async beginCdnCanMigrateToAfd( + resourceGroupName: string, + profileName: string, + options?: ProfilesCdnCanMigrateToAfdOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + ProfilesCdnCanMigrateToAfdResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = 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 = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, profileName, options }, + spec: cdnCanMigrateToAfdOperationSpec, + }); + const poller = await createHttpPoller< + ProfilesCdnCanMigrateToAfdResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", + }); + await poller.poll(); + return poller; + } + + /** + * Checks if CDN profile can be migrated to Azure Frontdoor(Standard/Premium) profile. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium which is unique + * within the resource group. + * @param options The options parameters. + */ + async beginCdnCanMigrateToAfdAndWait( + resourceGroupName: string, + profileName: string, + options?: ProfilesCdnCanMigrateToAfdOptionalParams, + ): Promise { + const poller = await this.beginCdnCanMigrateToAfd( + resourceGroupName, + profileName, + options, + ); + return poller.pollUntilDone(); + } + + /** + * Migrate the CDN profile to Azure Frontdoor(Standard/Premium) profile. This step prepares the profile + * for migration and will be followed by Commit to finalize the migration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium which is unique + * within the resource group. + * @param migrationParameters Properties needed to migrate the profile. + * @param options The options parameters. + */ + async beginCdnMigrateToAfd( + resourceGroupName: string, + profileName: string, + migrationParameters: CdnMigrationToAfdParameters, + options?: ProfilesCdnMigrateToAfdOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + ProfilesCdnMigrateToAfdResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = 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 = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, profileName, migrationParameters, options }, + spec: cdnMigrateToAfdOperationSpec, + }); + const poller = await createHttpPoller< + ProfilesCdnMigrateToAfdResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", + }); + await poller.poll(); + return poller; + } + + /** + * Migrate the CDN profile to Azure Frontdoor(Standard/Premium) profile. This step prepares the profile + * for migration and will be followed by Commit to finalize the migration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium which is unique + * within the resource group. + * @param migrationParameters Properties needed to migrate the profile. + * @param options The options parameters. + */ + async beginCdnMigrateToAfdAndWait( + resourceGroupName: string, + profileName: string, + migrationParameters: CdnMigrationToAfdParameters, + options?: ProfilesCdnMigrateToAfdOptionalParams, + ): Promise { + const poller = await this.beginCdnMigrateToAfd( + resourceGroupName, + profileName, + migrationParameters, + options, + ); + return poller.pollUntilDone(); + } + + /** + * Abort the migration to Azure Frontdoor Premium/Standard. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium which is unique + * within the resource group. + * @param options The options parameters. + */ + async beginMigrationAbort( + resourceGroupName: string, + profileName: string, + options?: ProfilesMigrationAbortOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + ProfilesMigrationAbortResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = 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 = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, profileName, options }, + spec: migrationAbortOperationSpec, + }); + const poller = await createHttpPoller< + ProfilesMigrationAbortResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", + }); + await poller.poll(); + return poller; + } + + /** + * Abort the migration to Azure Frontdoor Premium/Standard. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium which is unique + * within the resource group. + * @param options The options parameters. + */ + async beginMigrationAbortAndWait( + resourceGroupName: string, + profileName: string, + options?: ProfilesMigrationAbortOptionalParams, + ): Promise { + const poller = await this.beginMigrationAbort( + resourceGroupName, + profileName, + options, + ); + return poller.pollUntilDone(); + } + /** * ListNext * @param nextLink The nextLink from the previous successful call to the List method. @@ -1282,6 +1572,98 @@ const listResourceUsageOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer, }; +const cdnCanMigrateToAfdOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/cdnCanMigrateToAfd", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.CanMigrateResult, + }, + 201: { + bodyMapper: Mappers.CanMigrateResult, + }, + 202: { + bodyMapper: Mappers.CanMigrateResult, + }, + 204: { + bodyMapper: Mappers.CanMigrateResult, + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.profileName, + Parameters.resourceGroupName1, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const cdnMigrateToAfdOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/cdnMigrateToAfd", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.MigrateResult, + }, + 201: { + bodyMapper: Mappers.MigrateResult, + }, + 202: { + bodyMapper: Mappers.MigrateResult, + }, + 204: { + bodyMapper: Mappers.MigrateResult, + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated, + }, + }, + requestBody: Parameters.migrationParameters1, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.profileName, + Parameters.resourceGroupName1, + ], + headerParameters: [Parameters.contentType, Parameters.accept], + mediaType: "json", + serializer, +}; +const migrationAbortOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/migrationAbort", + httpMethod: "POST", + responses: { + 200: { + headersMapper: Mappers.ProfilesMigrationAbortHeaders, + }, + 201: { + headersMapper: Mappers.ProfilesMigrationAbortHeaders, + }, + 202: { + headersMapper: Mappers.ProfilesMigrationAbortHeaders, + }, + 204: { + headersMapper: Mappers.ProfilesMigrationAbortHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.profileName, + Parameters.resourceGroupName1, + ], + headerParameters: [Parameters.accept], + serializer, +}; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", diff --git a/sdk/cdn/arm-cdn/src/operationsInterfaces/profiles.ts b/sdk/cdn/arm-cdn/src/operationsInterfaces/profiles.ts index 27d2c8fa1c92..1fbbee3edff6 100644 --- a/sdk/cdn/arm-cdn/src/operationsInterfaces/profiles.ts +++ b/sdk/cdn/arm-cdn/src/operationsInterfaces/profiles.ts @@ -33,6 +33,13 @@ import { ProfilesGenerateSsoUriResponse, ProfilesListSupportedOptimizationTypesOptionalParams, ProfilesListSupportedOptimizationTypesResponse, + ProfilesCdnCanMigrateToAfdOptionalParams, + ProfilesCdnCanMigrateToAfdResponse, + CdnMigrationToAfdParameters, + ProfilesCdnMigrateToAfdOptionalParams, + ProfilesCdnMigrateToAfdResponse, + ProfilesMigrationAbortOptionalParams, + ProfilesMigrationAbortResponse, } from "../models/index.js"; /// @@ -287,4 +294,97 @@ export interface Profiles { profileName: string, options?: ProfilesListSupportedOptimizationTypesOptionalParams, ): Promise; + /** + * Checks if CDN profile can be migrated to Azure Frontdoor(Standard/Premium) profile. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium which is unique + * within the resource group. + * @param options The options parameters. + */ + beginCdnCanMigrateToAfd( + resourceGroupName: string, + profileName: string, + options?: ProfilesCdnCanMigrateToAfdOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + ProfilesCdnCanMigrateToAfdResponse + > + >; + /** + * Checks if CDN profile can be migrated to Azure Frontdoor(Standard/Premium) profile. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium which is unique + * within the resource group. + * @param options The options parameters. + */ + beginCdnCanMigrateToAfdAndWait( + resourceGroupName: string, + profileName: string, + options?: ProfilesCdnCanMigrateToAfdOptionalParams, + ): Promise; + /** + * Migrate the CDN profile to Azure Frontdoor(Standard/Premium) profile. This step prepares the profile + * for migration and will be followed by Commit to finalize the migration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium which is unique + * within the resource group. + * @param migrationParameters Properties needed to migrate the profile. + * @param options The options parameters. + */ + beginCdnMigrateToAfd( + resourceGroupName: string, + profileName: string, + migrationParameters: CdnMigrationToAfdParameters, + options?: ProfilesCdnMigrateToAfdOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + ProfilesCdnMigrateToAfdResponse + > + >; + /** + * Migrate the CDN profile to Azure Frontdoor(Standard/Premium) profile. This step prepares the profile + * for migration and will be followed by Commit to finalize the migration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium which is unique + * within the resource group. + * @param migrationParameters Properties needed to migrate the profile. + * @param options The options parameters. + */ + beginCdnMigrateToAfdAndWait( + resourceGroupName: string, + profileName: string, + migrationParameters: CdnMigrationToAfdParameters, + options?: ProfilesCdnMigrateToAfdOptionalParams, + ): Promise; + /** + * Abort the migration to Azure Frontdoor Premium/Standard. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium which is unique + * within the resource group. + * @param options The options parameters. + */ + beginMigrationAbort( + resourceGroupName: string, + profileName: string, + options?: ProfilesMigrationAbortOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + ProfilesMigrationAbortResponse + > + >; + /** + * Abort the migration to Azure Frontdoor Premium/Standard. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium which is unique + * within the resource group. + * @param options The options parameters. + */ + beginMigrationAbortAndWait( + resourceGroupName: string, + profileName: string, + options?: ProfilesMigrationAbortOptionalParams, + ): Promise; } diff --git a/sdk/cdn/arm-cdn/test/sampleTest.ts b/sdk/cdn/arm-cdn/test/sampleTest.ts new file mode 100644 index 000000000000..a1cf7c25afd2 --- /dev/null +++ b/sdk/cdn/arm-cdn/test/sampleTest.ts @@ -0,0 +1,40 @@ +/* + * 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 { + Recorder, + RecorderStartOptions, +} from "@azure-tools/test-recorder"; + +const replaceableVariables: Record = { + 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", +}; + +const recorderOptions: RecorderStartOptions = { + envSetupForPlayback: replaceableVariables, +}; + +describe("My test", () => { + let recorder: Recorder; + + beforeEach(async (ctx) => { + recorder = new Recorder(ctx); + await recorder.start(recorderOptions); + }); + + afterEach(async () => { + await recorder.stop(); + }); + + it("sample test", async function () { + console.log("Hi, I'm a test!"); + }); +}); diff --git a/sdk/cdn/arm-cdn/tsconfig.browser.config.json b/sdk/cdn/arm-cdn/tsconfig.browser.config.json index b6586181d006..0c8bafa97126 100644 --- a/sdk/cdn/arm-cdn/tsconfig.browser.config.json +++ b/sdk/cdn/arm-cdn/tsconfig.browser.config.json @@ -1,17 +1,6 @@ { - "extends": "./.tshy/build.json", - "include": [ - "./src/**/*.ts", - "./src/**/*.mts", - "./test/**/*.spec.ts", - "./test/**/*.mts" - ], - "exclude": [ - "./test/**/node/**/*.ts" - ], - "compilerOptions": { - "outDir": "./dist-test/browser", - "rootDir": ".", - "skipLibCheck": true - } + "extends": [ + "./tsconfig.test.json", + "../../../tsconfig.browser.base.json" + ] } diff --git a/sdk/cdn/arm-cdn/tsconfig.json b/sdk/cdn/arm-cdn/tsconfig.json index 19ceb382b521..b35d05ad6e9d 100644 --- a/sdk/cdn/arm-cdn/tsconfig.json +++ b/sdk/cdn/arm-cdn/tsconfig.json @@ -1,13 +1,27 @@ { - "references": [ - { - "path": "./tsconfig.src.json" - }, - { - "path": "./tsconfig.samples.json" - }, - { - "path": "./tsconfig.test.json" - } + "compilerOptions": { + "module": "es6", + "moduleResolution": "node", + "strict": true, + "target": "es6", + "sourceMap": true, + "declarationMap": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "forceConsistentCasingInFileNames": true, + "lib": [ + "es6", + "dom" + ], + "declaration": true, + "outDir": "./dist-esm", + "importHelpers": true + }, + "include": [ + "src/**/*.ts", + "test/**/*.ts" + ], + "exclude": [ + "node_modules" ] -} +} \ No newline at end of file diff --git a/sdk/cdn/arm-cdn/vitest.browser.config.ts b/sdk/cdn/arm-cdn/vitest.browser.config.ts index b48c61b2ef46..182729ab5ce9 100644 --- a/sdk/cdn/arm-cdn/vitest.browser.config.ts +++ b/sdk/cdn/arm-cdn/vitest.browser.config.ts @@ -9,9 +9,9 @@ export default mergeConfig( viteConfig, defineConfig({ test: { - include: [ - "dist-test/browser/test/**/*.spec.js", - ], + include: ["dist-test/browser/test/**/*.spec.js",], + testTimeout: 1200000, + hookTimeout: 1200000, }, }), ); diff --git a/sdk/cdn/arm-cdn/vitest.config.ts b/sdk/cdn/arm-cdn/vitest.config.ts index 2a4750c84292..40e031385dd8 100644 --- a/sdk/cdn/arm-cdn/vitest.config.ts +++ b/sdk/cdn/arm-cdn/vitest.config.ts @@ -1,3 +1,4 @@ + // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. @@ -8,8 +9,8 @@ export default mergeConfig( viteConfig, defineConfig({ test: { - hookTimeout: 1200000, testTimeout: 1200000, + hookTimeout: 1200000, }, }), );