From d6e225d61dbcfca513c1e6d93121f927ad2c4d50 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Fri, 1 Apr 2022 08:31:16 +0000 Subject: [PATCH] CodeGen from PR 18469 in Azure/azure-rest-api-specs {azure-rest-api-specs} Add possible values for DomainValidationMethod (#18469) * As discussed with Elle Tojaroon, making the changes to include possible options for the domainValidationMethod property. with the following values public const string CNameValidationValue = "cname-delegation"; public const string HttpTokenValidationValue = "http-token"; * Updating just the description of the domainValidationMethod with the possible values 'CNameValidationValue', 'HttpTokenValidationValue' --- common/config/rush/pnpm-lock.yaml | 14 +- sdk/appservice/arm-appservice/CHANGELOG.md | 26 ++-- sdk/appservice/arm-appservice/_meta.json | 7 +- .../arm-appservice/api-extractor.json | 25 +++- sdk/appservice/arm-appservice/package.json | 8 +- .../review/arm-appservice.api.md | 24 ++++ .../arm-appservice/src/models/index.ts | 21 +++ .../arm-appservice/src/operations/webApps.ts | 132 ++++++++++++++++++ .../src/operationsInterfaces/webApps.ts | 43 ++++++ .../src/webSiteManagementClient.ts | 2 +- .../arm-appservice/test/sampleTest.ts | 48 +++++++ sdk/appservice/arm-appservice/tsconfig.json | 16 ++- sdk/appservice/ci.mgmt.yml | 2 + 13 files changed, 335 insertions(+), 33 deletions(-) create mode 100644 sdk/appservice/arm-appservice/test/sampleTest.ts diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index b2686ca0943a..aef3502fb648 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -9205,23 +9205,23 @@ packages: dev: false file:projects/arm-appservice.tgz: - resolution: {integrity: sha512-GPnOzswKgnWDjjtbybT7jXD7lWUnwNUYPXHzQG/tgscRIS23nXs2Wsp6ZGyTyDgBIE0mgnf30iVeUwKUKz6LLg==, tarball: file:projects/arm-appservice.tgz} + resolution: {integrity: sha512-PrqHsdsLXtXE/FARQlcw4VjE88o3NUHqYHxql3r9zfUAxDe3saoDMmW+Z8OS9rniyBJsmSf8mZpSD8rb6XEQBQ==, tarball: file:projects/arm-appservice.tgz} name: '@rush-temp/arm-appservice' version: 0.0.0 dependencies: '@azure-tools/test-recorder': 1.0.2 '@azure/identity': 2.0.4 '@microsoft/api-extractor': 7.19.5 - '@rollup/plugin-commonjs': 21.0.3_rollup@2.70.1 - '@rollup/plugin-json': 4.1.0_rollup@2.70.1 - '@rollup/plugin-multi-entry': 3.0.1_rollup@2.70.1 - '@rollup/plugin-node-resolve': 8.4.0_rollup@2.70.1 + '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 + '@rollup/plugin-json': 4.1.0_rollup@1.32.1 + '@rollup/plugin-multi-entry': 3.0.1_rollup@1.32.1 + '@rollup/plugin-node-resolve': 8.4.0_rollup@1.32.1 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 7.2.0 rimraf: 3.0.2 - rollup: 2.70.1 - rollup-plugin-sourcemaps: 0.4.2_rollup@2.70.1 + rollup: 1.32.1 + rollup-plugin-sourcemaps: 0.4.2_rollup@1.32.1 tslib: 2.3.1 typescript: 4.2.4 uglify-js: 3.15.3 diff --git a/sdk/appservice/arm-appservice/CHANGELOG.md b/sdk/appservice/arm-appservice/CHANGELOG.md index 2024f9301741..a878e60bd21b 100644 --- a/sdk/appservice/arm-appservice/CHANGELOG.md +++ b/sdk/appservice/arm-appservice/CHANGELOG.md @@ -1,15 +1,25 @@ # Release History + +## 12.0.0 (2022-04-01) + +**Features** -## 11.0.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed + - Added operation group Global_2 + - Added operation WebApps.createOneDeployOperation + - Added operation WebApps.getAuthSettingsV2WithoutSecretsSlot + - Added operation WebApps.getOneDeployStatus + - Added Interface WebAppsCreateOneDeployOperationOptionalParams + - Added Interface WebAppsGetAuthSettingsV2WithoutSecretsSlotOptionalParams + - Added Interface WebAppsGetOneDeployStatusOptionalParams + - Added Type Alias WebAppsCreateOneDeployOperationResponse + - Added Type Alias WebAppsGetAuthSettingsV2WithoutSecretsSlotResponse + - Added Type Alias WebAppsGetOneDeployStatusResponse -### Other Changes +**Breaking Changes** + - Removed operation group Global + + ## 11.0.0 (2022-01-10) **Features** diff --git a/sdk/appservice/arm-appservice/_meta.json b/sdk/appservice/arm-appservice/_meta.json index 928a0438e56f..397f394cbfde 100644 --- a/sdk/appservice/arm-appservice/_meta.json +++ b/sdk/appservice/arm-appservice/_meta.json @@ -1,7 +1,8 @@ { - "commit": "409af02e5ca217c7e7ec2acf50f4976c053496f8", + "commit": "b9f7b5be44d003e3c2d7432d57ad24430da1e471", "readme": "specification/web/resource-manager/readme.md", - "autorest_command": "autorest --version=3.1.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\mydev\\azure-sdk-for-js ../azure-rest-api-specs/specification/web/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20211217.1", + "autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/web/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20220105.1", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "use": "@autorest/typescript@6.0.0-alpha.16.20211217.1" + "release_tool": "@azure-tools/js-sdk-release-tools@2.2.1", + "use": "@autorest/typescript@6.0.0-alpha.16.20220105.1" } \ No newline at end of file diff --git a/sdk/appservice/arm-appservice/api-extractor.json b/sdk/appservice/arm-appservice/api-extractor.json index fc0bdb365c04..8f48a64b5e1f 100644 --- a/sdk/appservice/arm-appservice/api-extractor.json +++ b/sdk/appservice/arm-appservice/api-extractor.json @@ -1,18 +1,31 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", "mainEntryPointFilePath": "./dist-esm/src/index.d.ts", - "docModel": { "enabled": true }, - "apiReport": { "enabled": true, "reportFolder": "./review" }, + "docModel": { + "enabled": true + }, + "apiReport": { + "enabled": true, + "reportFolder": "./review" + }, "dtsRollup": { "enabled": true, "untrimmedFilePath": "", "publicTrimmedFilePath": "./types/arm-appservice.d.ts" }, "messages": { - "tsdocMessageReporting": { "default": { "logLevel": "none" } }, + "tsdocMessageReporting": { + "default": { + "logLevel": "none" + } + }, "extractorMessageReporting": { - "ae-missing-release-tag": { "logLevel": "none" }, - "ae-unresolved-link": { "logLevel": "none" } + "ae-missing-release-tag": { + "logLevel": "none" + }, + "ae-unresolved-link": { + "logLevel": "none" + } } } -} +} \ No newline at end of file diff --git a/sdk/appservice/arm-appservice/package.json b/sdk/appservice/arm-appservice/package.json index 19fbb2255a74..8fbd5a1855ab 100644 --- a/sdk/appservice/arm-appservice/package.json +++ b/sdk/appservice/arm-appservice/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for WebSiteManagementClient.", - "version": "11.0.1", + "version": "12.0.0", "engines": { "node": ">=12.0.0" }, @@ -29,12 +29,12 @@ "types": "./types/arm-appservice.d.ts", "devDependencies": { "@microsoft/api-extractor": "^7.18.11", - "@rollup/plugin-commonjs": "^21.0.1", + "@rollup/plugin-commonjs": "11.0.2", "@rollup/plugin-json": "^4.0.0", "@rollup/plugin-multi-entry": "^3.0.0", "@rollup/plugin-node-resolve": "^8.0.0", "mkdirp": "^1.0.4", - "rollup": "^2.0.0", + "rollup": "^1.16.3", "rollup-plugin-sourcemaps": "^0.4.2", "typescript": "~4.2.0", "uglify-js": "^3.4.9", @@ -99,4 +99,4 @@ }, "sideEffects": false, "autoPublish": true -} +} \ No newline at end of file diff --git a/sdk/appservice/arm-appservice/review/arm-appservice.api.md b/sdk/appservice/arm-appservice/review/arm-appservice.api.md index 10ff9d5adce1..966458ab5ca9 100644 --- a/sdk/appservice/arm-appservice/review/arm-appservice.api.md +++ b/sdk/appservice/arm-appservice/review/arm-appservice.api.md @@ -7472,6 +7472,7 @@ export interface WebApps { beginSwapSlotWithProductionAndWait(resourceGroupName: string, name: string, slotSwapEntity: CsmSlotEntity, options?: WebAppsSwapSlotWithProductionOptionalParams): Promise; createDeployment(resourceGroupName: string, name: string, id: string, deployment: Deployment, options?: WebAppsCreateDeploymentOptionalParams): Promise; createDeploymentSlot(resourceGroupName: string, name: string, id: string, slot: string, deployment: Deployment, options?: WebAppsCreateDeploymentSlotOptionalParams): Promise; + createOneDeployOperation(resourceGroupName: string, name: string, options?: WebAppsCreateOneDeployOperationOptionalParams): Promise; createOrUpdateConfiguration(resourceGroupName: string, name: string, siteConfig: SiteConfigResource, options?: WebAppsCreateOrUpdateConfigurationOptionalParams): Promise; createOrUpdateConfigurationSlot(resourceGroupName: string, name: string, slot: string, siteConfig: SiteConfigResource, options?: WebAppsCreateOrUpdateConfigurationSlotOptionalParams): Promise; createOrUpdateDomainOwnershipIdentifier(resourceGroupName: string, name: string, domainOwnershipIdentifierName: string, domainOwnershipIdentifier: Identifier, options?: WebAppsCreateOrUpdateDomainOwnershipIdentifierOptionalParams): Promise; @@ -7548,6 +7549,7 @@ export interface WebApps { getAuthSettingsV2(resourceGroupName: string, name: string, options?: WebAppsGetAuthSettingsV2OptionalParams): Promise; getAuthSettingsV2Slot(resourceGroupName: string, name: string, slot: string, options?: WebAppsGetAuthSettingsV2SlotOptionalParams): Promise; getAuthSettingsV2WithoutSecrets(resourceGroupName: string, name: string, options?: WebAppsGetAuthSettingsV2WithoutSecretsOptionalParams): Promise; + getAuthSettingsV2WithoutSecretsSlot(resourceGroupName: string, name: string, slot: string, options?: WebAppsGetAuthSettingsV2WithoutSecretsSlotOptionalParams): Promise; getBackupConfiguration(resourceGroupName: string, name: string, options?: WebAppsGetBackupConfigurationOptionalParams): Promise; getBackupConfigurationSlot(resourceGroupName: string, name: string, slot: string, options?: WebAppsGetBackupConfigurationSlotOptionalParams): Promise; getBackupStatus(resourceGroupName: string, name: string, backupId: string, options?: WebAppsGetBackupStatusOptionalParams): Promise; @@ -7602,6 +7604,7 @@ export interface WebApps { getNetworkTracesSlot(resourceGroupName: string, name: string, operationId: string, slot: string, options?: WebAppsGetNetworkTracesSlotOptionalParams): Promise; getNetworkTracesSlotV2(resourceGroupName: string, name: string, operationId: string, slot: string, options?: WebAppsGetNetworkTracesSlotV2OptionalParams): Promise; getNetworkTracesV2(resourceGroupName: string, name: string, operationId: string, options?: WebAppsGetNetworkTracesV2OptionalParams): Promise; + getOneDeployStatus(resourceGroupName: string, name: string, options?: WebAppsGetOneDeployStatusOptionalParams): Promise; getPremierAddOn(resourceGroupName: string, name: string, premierAddOnName: string, options?: WebAppsGetPremierAddOnOptionalParams): Promise; getPremierAddOnSlot(resourceGroupName: string, name: string, premierAddOnName: string, slot: string, options?: WebAppsGetPremierAddOnSlotOptionalParams): Promise; getPrivateAccess(resourceGroupName: string, name: string, options?: WebAppsGetPrivateAccessOptionalParams): Promise; @@ -7960,6 +7963,13 @@ export interface WebAppsCreateMSDeployOperationSlotOptionalParams extends coreCl // @public export type WebAppsCreateMSDeployOperationSlotResponse = MSDeployStatus; +// @public +export interface WebAppsCreateOneDeployOperationOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WebAppsCreateOneDeployOperationResponse = Record; + // @public export interface WebAppsCreateOrUpdateConfigurationOptionalParams extends coreClient.OperationOptions { } @@ -8443,6 +8453,13 @@ export interface WebAppsGetAuthSettingsV2WithoutSecretsOptionalParams extends co // @public export type WebAppsGetAuthSettingsV2WithoutSecretsResponse = SiteAuthSettingsV2; +// @public +export interface WebAppsGetAuthSettingsV2WithoutSecretsSlotOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WebAppsGetAuthSettingsV2WithoutSecretsSlotResponse = SiteAuthSettingsV2; + // @public export interface WebAppsGetBackupConfigurationOptionalParams extends coreClient.OperationOptions { } @@ -8837,6 +8854,13 @@ export interface WebAppsGetNetworkTracesV2OptionalParams extends coreClient.Oper // @public export type WebAppsGetNetworkTracesV2Response = NetworkTrace[]; +// @public +export interface WebAppsGetOneDeployStatusOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WebAppsGetOneDeployStatusResponse = Record; + // @public export interface WebAppsGetOptionalParams extends coreClient.OperationOptions { } diff --git a/sdk/appservice/arm-appservice/src/models/index.ts b/sdk/appservice/arm-appservice/src/models/index.ts index b32f79a854c2..c9fa3466fad3 100644 --- a/sdk/appservice/arm-appservice/src/models/index.ts +++ b/sdk/appservice/arm-appservice/src/models/index.ts @@ -12044,6 +12044,20 @@ export interface WebAppsGetMSDeployLogOptionalParams /** Contains response data for the getMSDeployLog operation. */ export type WebAppsGetMSDeployLogResponse = MSDeployLog; +/** Optional parameters. */ +export interface WebAppsGetOneDeployStatusOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getOneDeployStatus operation. */ +export type WebAppsGetOneDeployStatusResponse = Record; + +/** Optional parameters. */ +export interface WebAppsCreateOneDeployOperationOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOneDeployOperation operation. */ +export type WebAppsCreateOneDeployOperationResponse = Record; + /** Optional parameters. */ export interface WebAppsListFunctionsOptionalParams extends coreClient.OperationOptions {} @@ -12936,6 +12950,13 @@ export interface WebAppsGetAuthSettingsSlotOptionalParams /** Contains response data for the getAuthSettingsSlot operation. */ export type WebAppsGetAuthSettingsSlotResponse = SiteAuthSettings; +/** Optional parameters. */ +export interface WebAppsGetAuthSettingsV2WithoutSecretsSlotOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getAuthSettingsV2WithoutSecretsSlot operation. */ +export type WebAppsGetAuthSettingsV2WithoutSecretsSlotResponse = SiteAuthSettingsV2; + /** Optional parameters. */ export interface WebAppsUpdateAuthSettingsV2SlotOptionalParams extends coreClient.OperationOptions {} diff --git a/sdk/appservice/arm-appservice/src/operations/webApps.ts b/sdk/appservice/arm-appservice/src/operations/webApps.ts index 9d0ce117cf5d..290985e18956 100644 --- a/sdk/appservice/arm-appservice/src/operations/webApps.ts +++ b/sdk/appservice/arm-appservice/src/operations/webApps.ts @@ -305,6 +305,10 @@ import { WebAppsCreateMSDeployOperationResponse, WebAppsGetMSDeployLogOptionalParams, WebAppsGetMSDeployLogResponse, + WebAppsGetOneDeployStatusOptionalParams, + WebAppsGetOneDeployStatusResponse, + WebAppsCreateOneDeployOperationOptionalParams, + WebAppsCreateOneDeployOperationResponse, WebAppsListFunctionsResponse, WebAppsGetFunctionsAdminTokenOptionalParams, WebAppsGetFunctionsAdminTokenResponse, @@ -509,6 +513,8 @@ import { WebAppsUpdateAuthSettingsSlotResponse, WebAppsGetAuthSettingsSlotOptionalParams, WebAppsGetAuthSettingsSlotResponse, + WebAppsGetAuthSettingsV2WithoutSecretsSlotOptionalParams, + WebAppsGetAuthSettingsV2WithoutSecretsSlotResponse, WebAppsUpdateAuthSettingsV2SlotOptionalParams, WebAppsUpdateAuthSettingsV2SlotResponse, WebAppsGetAuthSettingsV2SlotOptionalParams, @@ -7362,6 +7368,41 @@ export class WebAppsImpl implements WebApps { ); } + /** + * Description for Invoke onedeploy status API /api/deployments and gets the deployment status for the + * site + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param options The options parameters. + */ + getOneDeployStatus( + resourceGroupName: string, + name: string, + options?: WebAppsGetOneDeployStatusOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, name, options }, + getOneDeployStatusOperationSpec + ); + } + + /** + * Description for Invoke the OneDeploy publish web app extension. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param options The options parameters. + */ + createOneDeployOperation( + resourceGroupName: string, + name: string, + options?: WebAppsCreateOneDeployOperationOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, name, options }, + createOneDeployOperationOperationSpec + ); + } + /** * Description for List the functions for a web site, or a deployment slot. * @param resourceGroupName Name of the resource group to which the resource belongs. @@ -10635,6 +10676,26 @@ export class WebAppsImpl implements WebApps { ); } + /** + * Gets site's Authentication / Authorization settings for apps via the V2 format + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get the settings + * for the production slot. + * @param options The options parameters. + */ + getAuthSettingsV2WithoutSecretsSlot( + resourceGroupName: string, + name: string, + slot: string, + options?: WebAppsGetAuthSettingsV2WithoutSecretsSlotOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, name, slot, options }, + getAuthSettingsV2WithoutSecretsSlotOperationSpec + ); + } + /** * Description for Updates site's Authentication / Authorization settings for apps via the V2 format * @param resourceGroupName Name of the resource group to which the resource belongs. @@ -19341,6 +19402,54 @@ const getMSDeployLogOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; +const getOneDeployStatusOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/extensions/onedeploy", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: { + type: { name: "Dictionary", value: { type: { name: "any" } } } + } + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOneDeployOperationOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/extensions/onedeploy", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: { + type: { name: "Dictionary", value: { type: { name: "any" } } } + } + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; const listFunctionsOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/functions", @@ -22311,6 +22420,29 @@ const getAuthSettingsSlotOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; +const getAuthSettingsV2WithoutSecretsSlotOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/authsettingsV2", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SiteAuthSettingsV2 + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot + ], + headerParameters: [Parameters.accept], + serializer +}; const updateAuthSettingsV2SlotOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/authsettingsV2", diff --git a/sdk/appservice/arm-appservice/src/operationsInterfaces/webApps.ts b/sdk/appservice/arm-appservice/src/operationsInterfaces/webApps.ts index c8f1715d7f59..a0339e5a4f7d 100644 --- a/sdk/appservice/arm-appservice/src/operationsInterfaces/webApps.ts +++ b/sdk/appservice/arm-appservice/src/operationsInterfaces/webApps.ts @@ -225,6 +225,10 @@ import { WebAppsCreateMSDeployOperationResponse, WebAppsGetMSDeployLogOptionalParams, WebAppsGetMSDeployLogResponse, + WebAppsGetOneDeployStatusOptionalParams, + WebAppsGetOneDeployStatusResponse, + WebAppsCreateOneDeployOperationOptionalParams, + WebAppsCreateOneDeployOperationResponse, WebAppsGetFunctionsAdminTokenOptionalParams, WebAppsGetFunctionsAdminTokenResponse, WebAppsGetFunctionOptionalParams, @@ -411,6 +415,8 @@ import { WebAppsUpdateAuthSettingsSlotResponse, WebAppsGetAuthSettingsSlotOptionalParams, WebAppsGetAuthSettingsSlotResponse, + WebAppsGetAuthSettingsV2WithoutSecretsSlotOptionalParams, + WebAppsGetAuthSettingsV2WithoutSecretsSlotResponse, WebAppsUpdateAuthSettingsV2SlotOptionalParams, WebAppsUpdateAuthSettingsV2SlotResponse, WebAppsGetAuthSettingsV2SlotOptionalParams, @@ -2398,6 +2404,29 @@ export interface WebApps { name: string, options?: WebAppsGetMSDeployLogOptionalParams ): Promise; + /** + * Description for Invoke onedeploy status API /api/deployments and gets the deployment status for the + * site + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param options The options parameters. + */ + getOneDeployStatus( + resourceGroupName: string, + name: string, + options?: WebAppsGetOneDeployStatusOptionalParams + ): Promise; + /** + * Description for Invoke the OneDeploy publish web app extension. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param options The options parameters. + */ + createOneDeployOperation( + resourceGroupName: string, + name: string, + options?: WebAppsCreateOneDeployOperationOptionalParams + ): Promise; /** * Description for Fetch a short lived token that can be exchanged for a master key. * @param resourceGroupName Name of the resource group to which the resource belongs. @@ -4006,6 +4035,20 @@ export interface WebApps { slot: string, options?: WebAppsGetAuthSettingsSlotOptionalParams ): Promise; + /** + * Gets site's Authentication / Authorization settings for apps via the V2 format + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get the settings + * for the production slot. + * @param options The options parameters. + */ + getAuthSettingsV2WithoutSecretsSlot( + resourceGroupName: string, + name: string, + slot: string, + options?: WebAppsGetAuthSettingsV2WithoutSecretsSlotOptionalParams + ): Promise; /** * Description for Updates site's Authentication / Authorization settings for apps via the V2 format * @param resourceGroupName Name of the resource group to which the resource belongs. diff --git a/sdk/appservice/arm-appservice/src/webSiteManagementClient.ts b/sdk/appservice/arm-appservice/src/webSiteManagementClient.ts index ba39a5f606f5..bacc162786eb 100644 --- a/sdk/appservice/arm-appservice/src/webSiteManagementClient.ts +++ b/sdk/appservice/arm-appservice/src/webSiteManagementClient.ts @@ -149,7 +149,7 @@ export class WebSiteManagementClient extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-appservice/11.0.0`; + const packageDetails = `azsdk-js-arm-appservice/12.0.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` diff --git a/sdk/appservice/arm-appservice/test/sampleTest.ts b/sdk/appservice/arm-appservice/test/sampleTest.ts new file mode 100644 index 000000000000..7ed89b043e1b --- /dev/null +++ b/sdk/appservice/arm-appservice/test/sampleTest.ts @@ -0,0 +1,48 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + env, + record, + RecorderEnvironmentSetup, + Recorder +} from "@azure-tools/test-recorder"; +import * as assert from "assert"; + +const recorderEnvSetup: RecorderEnvironmentSetup = { + replaceableVariables: { + AZURE_CLIENT_ID: "azure_client_id", + AZURE_CLIENT_SECRET: "azure_client_secret", + AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", + SUBSCRIPTION_ID: "azure_subscription_id" + }, + customizationsOnRecordings: [ + (recording: any): any => + recording.replace( + /"access_token":"[^"]*"/g, + `"access_token":"access_token"` + ) + ], + queryParametersToSkip: [] +}; + +describe("My test", () => { + let recorder: Recorder; + + beforeEach(async function() { + recorder = record(this, recorderEnvSetup); + }); + + afterEach(async function() { + await recorder.stop(); + }); + + it("sample test", async function() { + console.log("Hi, I'm a test!"); + }); +}); diff --git a/sdk/appservice/arm-appservice/tsconfig.json b/sdk/appservice/arm-appservice/tsconfig.json index 6e3251194117..3e6ae96443f3 100644 --- a/sdk/appservice/arm-appservice/tsconfig.json +++ b/sdk/appservice/arm-appservice/tsconfig.json @@ -9,11 +9,19 @@ "esModuleInterop": true, "allowSyntheticDefaultImports": true, "forceConsistentCasingInFileNames": true, - "lib": ["es6", "dom"], + "lib": [ + "es6", + "dom" + ], "declaration": true, "outDir": "./dist-esm", "importHelpers": true }, - "include": ["./src/**/*.ts", "./test/**/*.ts"], - "exclude": ["node_modules"] -} + "include": [ + "./src/**/*.ts", + "./test/**/*.ts" + ], + "exclude": [ + "node_modules" + ] +} \ No newline at end of file diff --git a/sdk/appservice/ci.mgmt.yml b/sdk/appservice/ci.mgmt.yml index 916365650003..327b1d5262cc 100644 --- a/sdk/appservice/ci.mgmt.yml +++ b/sdk/appservice/ci.mgmt.yml @@ -11,6 +11,7 @@ trigger: - sdk/appservice/ci.mgmt.yml - sdk/appservice/arm-appservice/ - sdk/appservice/arm-appservice-profile-2020-09-01-hybrid + - sdk/appservice/arm-appservice pr: branches: include: @@ -25,6 +26,7 @@ pr: - sdk/appservice/ci.mgmt.yml - sdk/appservice/arm-appservice/ - sdk/appservice/arm-appservice-profile-2020-09-01-hybrid + - sdk/appservice/arm-appservice extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: