Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR track2_@azure/arm-appservice] Bringing back the accidentally deleted OneDeploy api spec #7139

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 12 additions & 10 deletions sdk/appservice/arm-appservice/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
# Release History

## 11.1.0 (2022-01-19)

**Features**

## 11.0.1 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes

- Added operation WebApps.createOneDeployOperation
- Added operation WebApps.getOneDeployStatus
- Added Interface WebAppsCreateOneDeployOperationOptionalParams
- Added Interface WebAppsGetOneDeployStatusOptionalParams
- Added Type Alias WebAppsCreateOneDeployOperationResponse
- Added Type Alias WebAppsGetOneDeployStatusResponse


## 11.0.0 (2022-01-10)

**Features**
Expand Down
6 changes: 3 additions & 3 deletions sdk/appservice/arm-appservice/_meta.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"commit": "409af02e5ca217c7e7ec2acf50f4976c053496f8",
"commit": "cda04ccf6a3bd15e569e7c0edde9638c350c1cd9",
"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=/home/vsts/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"
"use": "@autorest/typescript@6.0.0-alpha.16.20220105.1"
}
25 changes: 19 additions & 6 deletions sdk/appservice/arm-appservice/api-extractor.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
}
}
}
4 changes: 2 additions & 2 deletions sdk/appservice/arm-appservice/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"sdk-type": "mgmt",
"author": "Microsoft Corporation",
"description": "A generated SDK for WebSiteManagementClient.",
"version": "11.0.1",
"version": "11.1.0",
"engines": {
"node": ">=12.0.0"
},
Expand Down Expand Up @@ -99,4 +99,4 @@
},
"sideEffects": false,
"autoPublish": true
}
}
16 changes: 16 additions & 0 deletions sdk/appservice/arm-appservice/review/arm-appservice.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -7471,6 +7471,7 @@ export interface WebApps {
beginSwapSlotWithProductionAndWait(resourceGroupName: string, name: string, slotSwapEntity: CsmSlotEntity, options?: WebAppsSwapSlotWithProductionOptionalParams): Promise<void>;
createDeployment(resourceGroupName: string, name: string, id: string, deployment: Deployment, options?: WebAppsCreateDeploymentOptionalParams): Promise<WebAppsCreateDeploymentResponse>;
createDeploymentSlot(resourceGroupName: string, name: string, id: string, slot: string, deployment: Deployment, options?: WebAppsCreateDeploymentSlotOptionalParams): Promise<WebAppsCreateDeploymentSlotResponse>;
createOneDeployOperation(resourceGroupName: string, name: string, options?: WebAppsCreateOneDeployOperationOptionalParams): Promise<WebAppsCreateOneDeployOperationResponse>;
createOrUpdateConfiguration(resourceGroupName: string, name: string, siteConfig: SiteConfigResource, options?: WebAppsCreateOrUpdateConfigurationOptionalParams): Promise<WebAppsCreateOrUpdateConfigurationResponse>;
createOrUpdateConfigurationSlot(resourceGroupName: string, name: string, slot: string, siteConfig: SiteConfigResource, options?: WebAppsCreateOrUpdateConfigurationSlotOptionalParams): Promise<WebAppsCreateOrUpdateConfigurationSlotResponse>;
createOrUpdateDomainOwnershipIdentifier(resourceGroupName: string, name: string, domainOwnershipIdentifierName: string, domainOwnershipIdentifier: Identifier, options?: WebAppsCreateOrUpdateDomainOwnershipIdentifierOptionalParams): Promise<WebAppsCreateOrUpdateDomainOwnershipIdentifierResponse>;
Expand Down Expand Up @@ -7601,6 +7602,7 @@ export interface WebApps {
getNetworkTracesSlot(resourceGroupName: string, name: string, operationId: string, slot: string, options?: WebAppsGetNetworkTracesSlotOptionalParams): Promise<WebAppsGetNetworkTracesSlotResponse>;
getNetworkTracesSlotV2(resourceGroupName: string, name: string, operationId: string, slot: string, options?: WebAppsGetNetworkTracesSlotV2OptionalParams): Promise<WebAppsGetNetworkTracesSlotV2Response>;
getNetworkTracesV2(resourceGroupName: string, name: string, operationId: string, options?: WebAppsGetNetworkTracesV2OptionalParams): Promise<WebAppsGetNetworkTracesV2Response>;
getOneDeployStatus(resourceGroupName: string, name: string, options?: WebAppsGetOneDeployStatusOptionalParams): Promise<WebAppsGetOneDeployStatusResponse>;
getPremierAddOn(resourceGroupName: string, name: string, premierAddOnName: string, options?: WebAppsGetPremierAddOnOptionalParams): Promise<WebAppsGetPremierAddOnResponse>;
getPremierAddOnSlot(resourceGroupName: string, name: string, premierAddOnName: string, slot: string, options?: WebAppsGetPremierAddOnSlotOptionalParams): Promise<WebAppsGetPremierAddOnSlotResponse>;
getPrivateAccess(resourceGroupName: string, name: string, options?: WebAppsGetPrivateAccessOptionalParams): Promise<WebAppsGetPrivateAccessResponse>;
Expand Down Expand Up @@ -7959,6 +7961,13 @@ export interface WebAppsCreateMSDeployOperationSlotOptionalParams extends coreCl
// @public
export type WebAppsCreateMSDeployOperationSlotResponse = MSDeployStatus;

// @public
export interface WebAppsCreateOneDeployOperationOptionalParams extends coreClient.OperationOptions {
}

// @public
export type WebAppsCreateOneDeployOperationResponse = Record<string, unknown>;

// @public
export interface WebAppsCreateOrUpdateConfigurationOptionalParams extends coreClient.OperationOptions {
}
Expand Down Expand Up @@ -8836,6 +8845,13 @@ export interface WebAppsGetNetworkTracesV2OptionalParams extends coreClient.Oper
// @public
export type WebAppsGetNetworkTracesV2Response = NetworkTrace[];

// @public
export interface WebAppsGetOneDeployStatusOptionalParams extends coreClient.OperationOptions {
}

// @public
export type WebAppsGetOneDeployStatusResponse = Record<string, unknown>;

// @public
export interface WebAppsGetOptionalParams extends coreClient.OperationOptions {
}
Expand Down
14 changes: 14 additions & 0 deletions sdk/appservice/arm-appservice/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, unknown>;

/** Optional parameters. */
export interface WebAppsCreateOneDeployOperationOptionalParams
extends coreClient.OperationOptions {}

/** Contains response data for the createOneDeployOperation operation. */
export type WebAppsCreateOneDeployOperationResponse = Record<string, unknown>;

/** Optional parameters. */
export interface WebAppsListFunctionsOptionalParams
extends coreClient.OperationOptions {}
Expand Down
87 changes: 87 additions & 0 deletions sdk/appservice/arm-appservice/src/operations/webApps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,10 @@ import {
WebAppsCreateMSDeployOperationResponse,
WebAppsGetMSDeployLogOptionalParams,
WebAppsGetMSDeployLogResponse,
WebAppsGetOneDeployStatusOptionalParams,
WebAppsGetOneDeployStatusResponse,
WebAppsCreateOneDeployOperationOptionalParams,
WebAppsCreateOneDeployOperationResponse,
WebAppsListFunctionsResponse,
WebAppsGetFunctionsAdminTokenOptionalParams,
WebAppsGetFunctionsAdminTokenResponse,
Expand Down Expand Up @@ -7362,6 +7366,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<WebAppsGetOneDeployStatusResponse> {
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<WebAppsCreateOneDeployOperationResponse> {
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.
Expand Down Expand Up @@ -19341,6 +19380,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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,10 @@ import {
WebAppsCreateMSDeployOperationResponse,
WebAppsGetMSDeployLogOptionalParams,
WebAppsGetMSDeployLogResponse,
WebAppsGetOneDeployStatusOptionalParams,
WebAppsGetOneDeployStatusResponse,
WebAppsCreateOneDeployOperationOptionalParams,
WebAppsCreateOneDeployOperationResponse,
WebAppsGetFunctionsAdminTokenOptionalParams,
WebAppsGetFunctionsAdminTokenResponse,
WebAppsGetFunctionOptionalParams,
Expand Down Expand Up @@ -2398,6 +2402,29 @@ export interface WebApps {
name: string,
options?: WebAppsGetMSDeployLogOptionalParams
): Promise<WebAppsGetMSDeployLogResponse>;
/**
* 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<WebAppsGetOneDeployStatusResponse>;
/**
* 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<WebAppsCreateOneDeployOperationResponse>;
/**
* 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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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/11.1.0`;
const userAgentPrefix =
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
Expand Down
48 changes: 48 additions & 0 deletions sdk/appservice/arm-appservice/test/sampleTest.ts
Original file line number Diff line number Diff line change
@@ -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!");
});
});
16 changes: 12 additions & 4 deletions sdk/appservice/arm-appservice/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
}