diff --git a/sdk/cognitiveservices/cognitiveservices-luis-authoring/README.md b/sdk/cognitiveservices/cognitiveservices-luis-authoring/README.md index c801504a89a7..89b7e36f2d8a 100644 --- a/sdk/cognitiveservices/cognitiveservices-luis-authoring/README.md +++ b/sdk/cognitiveservices/cognitiveservices-luis-authoring/README.md @@ -17,83 +17,80 @@ npm install @azure/cognitiveservices-luis-authoring #### nodejs - Authentication, client creation and listApplicationVersionPatternFeatures features as an example written in TypeScript. -##### Install @azure/ms-rest-azure-js +##### Install @azure/ms-rest-nodeauth ```bash -npm install @azure/ms-rest-azure-js +npm install @azure/ms-rest-nodeauth ``` ##### Sample code ```typescript -import { CognitiveServicesCredentials } from "@azure/ms-rest-azure-js"; -import { LUISAuthoringClient } from "@azure/cognitiveservices-luis-authoring"; - -let authoringKey = process.env["luis-authoring-key"]; -const creds = new CognitiveServicesCredentials(authoringKey); - -// check the following link to find your region -// https://docs.microsoft.com/en-us/azure/cognitive-services/luis/luis-reference-regions -const region = ""; -const client = new LUISAuthoringClient( - creds, - "https://" + region + ".api.cognitive.microsoft.com/" -); - -const appId = ""; // replace this with your appId. -const versionId = "0.1"; // replace with version of your luis application. Initial value will be 0.1 - -const skip = 1; -const take = 1; - -client.features - .listApplicationVersionPatternFeatures(appId, versionId, { skip, take }) - .then((result) => { +import * as msRest from "@azure/ms-rest-js"; +import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; +import { LUISAuthoringClient, LUISAuthoringModels, LUISAuthoringMappers } from "@azure/cognitiveservices-luis-authoring"; +const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; + +msRestNodeAuth.interactiveLogin().then((creds) => { + const client = new LUISAuthoringClient(creds, subscriptionId); + const appId = ec7b1657-199d-4d8a-bbb2-89a11a42e02a; + const versionId = "testversionId"; + const skip = 1; + const take = 1; + client.features.listApplicationVersionPatternFeatures(appId, versionId, skip, take).then((result) => { console.log("The result is:"); console.log(result); - }) - .catch((err) => { - console.error(err); }); +}).catch((err) => { + console.error(err); +}); ``` #### browser - Authentication, client creation and listApplicationVersionPatternFeatures features as an example written in JavaScript. +##### Install @azure/ms-rest-browserauth + +```bash +npm install @azure/ms-rest-browserauth +``` ##### Sample code -- index.html +See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. +- index.html ```html @azure/cognitiveservices-luis-authoring sample + diff --git a/sdk/cognitiveservices/cognitiveservices-luis-authoring/package.json b/sdk/cognitiveservices/cognitiveservices-luis-authoring/package.json index 78e0892897d5..808f48615359 100644 --- a/sdk/cognitiveservices/cognitiveservices-luis-authoring/package.json +++ b/sdk/cognitiveservices/cognitiveservices-luis-authoring/package.json @@ -4,8 +4,8 @@ "description": "LUISAuthoringClient Library with typescript type definitions for node.js and browser.", "version": "3.0.1", "dependencies": { - "@azure/ms-rest-js": "^2.0.3", - "tslib": "^1.10.0" + "@azure/ms-rest-js": "^1.8.1", + "tslib": "^1.9.3" }, "keywords": [ "node", @@ -19,20 +19,13 @@ "module": "./esm/lUISAuthoringClient.js", "types": "./esm/lUISAuthoringClient.d.ts", "devDependencies": { - "@types/chai": "^4.2.0", - "@types/mocha": "^5.2.7", - "mocha": "^6.1.4", - "nock": "^10.0.0", + "typescript": "^3.1.1", "rollup": "^0.66.2", - "@azure/ms-rest-azure-js": "^2.0.1", "rollup-plugin-node-resolve": "^3.4.0", "rollup-plugin-sourcemaps": "^0.4.2", - "ts-node": "^8.3.0", - "typescript": "^3.1.1", - "uglify-js": "^3.4.9", - "ts-mocha": "^6.0.0" + "uglify-js": "^3.4.9" }, - "homepage": "https://github.com/azure/azure-sdk-for-js/tree/master/sdk/cognitiveservices/cognitiveservices-luis-authoring", + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/cognitiveservices/cognitiveservices-luis-authoring", "repository": { "type": "git", "url": "https://github.com/Azure/azure-sdk-for-js.git" @@ -57,8 +50,7 @@ "scripts": { "build": "tsc && rollup -c rollup.config.js && npm run minify", "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/cognitiveservices-luis-authoring.js.map'\" -o ./dist/cognitiveservices-luis-authoring.min.js ./dist/cognitiveservices-luis-authoring.js", - "prepack": "npm install && npm run build", - "test": "ts-mocha -p tsconfig.test.json test/**/*.test.ts --timeout 100000" + "prepack": "npm install && npm run build" }, "sideEffects": false, "autoPublish": true diff --git a/sdk/cognitiveservices/cognitiveservices-luis-authoring/rollup.config.js b/sdk/cognitiveservices/cognitiveservices-luis-authoring/rollup.config.js index 7d2b47abc269..91e4025bf176 100644 --- a/sdk/cognitiveservices/cognitiveservices-luis-authoring/rollup.config.js +++ b/sdk/cognitiveservices/cognitiveservices-luis-authoring/rollup.config.js @@ -7,7 +7,10 @@ import sourcemaps from "rollup-plugin-sourcemaps"; */ const config = { input: "./esm/lUISAuthoringClient.js", - external: ["@azure/ms-rest-js", "@azure/ms-rest-azure-js"], + external: [ + "@azure/ms-rest-js", + "@azure/ms-rest-azure-js" + ], output: { file: "./dist/cognitiveservices-luis-authoring.js", format: "umd", @@ -19,14 +22,16 @@ const config = { }, banner: `/* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * + * Licensed under the MIT License. See License.txt in the project root for license information. + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */` }, - plugins: [nodeResolve({ module: true }), sourcemaps()] + plugins: [ + nodeResolve({ module: true }), + sourcemaps() + ] }; export default config; diff --git a/sdk/cognitiveservices/cognitiveservices-luis-authoring/src/lUISAuthoringClient.ts b/sdk/cognitiveservices/cognitiveservices-luis-authoring/src/lUISAuthoringClient.ts index 79629ab3941a..103308078b05 100644 --- a/sdk/cognitiveservices/cognitiveservices-luis-authoring/src/lUISAuthoringClient.ts +++ b/sdk/cognitiveservices/cognitiveservices-luis-authoring/src/lUISAuthoringClient.ts @@ -4,10 +4,10 @@ * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. */ - import * as msRest from "@azure/ms-rest-js"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; diff --git a/sdk/cognitiveservices/cognitiveservices-luis-authoring/src/lUISAuthoringClientContext.ts b/sdk/cognitiveservices/cognitiveservices-luis-authoring/src/lUISAuthoringClientContext.ts index 7a83aa838beb..7b61374295bf 100644 --- a/sdk/cognitiveservices/cognitiveservices-luis-authoring/src/lUISAuthoringClientContext.ts +++ b/sdk/cognitiveservices/cognitiveservices-luis-authoring/src/lUISAuthoringClientContext.ts @@ -4,7 +4,8 @@ * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. */ import * as msRest from "@azure/ms-rest-js"; @@ -23,11 +24,7 @@ export class LUISAuthoringClientContext extends msRest.ServiceClient { * @param credentials Subscription credentials which uniquely identify client subscription. * @param [options] The parameter options */ - constructor( - credentials: msRest.ServiceClientCredentials, - endpoint: string, - options?: msRest.ServiceClientOptions - ) { + constructor(credentials: msRest.ServiceClientCredentials, endpoint: string, options?: msRest.ServiceClientOptions) { if (endpoint == undefined) { throw new Error("'endpoint' cannot be null."); } diff --git a/sdk/cognitiveservices/cognitiveservices-luis-authoring/src/models/appsMappers.ts b/sdk/cognitiveservices/cognitiveservices-luis-authoring/src/models/appsMappers.ts index 0b318b5d49ed..f6e23c3abc3e 100644 --- a/sdk/cognitiveservices/cognitiveservices-luis-authoring/src/models/appsMappers.ts +++ b/sdk/cognitiveservices/cognitiveservices-luis-authoring/src/models/appsMappers.ts @@ -1,8 +1,7 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * + * Licensed under the MIT License. See License.txt in the project root for license information. + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ diff --git a/sdk/cognitiveservices/cognitiveservices-luis-authoring/src/models/azureAccountsMappers.ts b/sdk/cognitiveservices/cognitiveservices-luis-authoring/src/models/azureAccountsMappers.ts index 81f421679c0e..6f0cd86cc21b 100644 --- a/sdk/cognitiveservices/cognitiveservices-luis-authoring/src/models/azureAccountsMappers.ts +++ b/sdk/cognitiveservices/cognitiveservices-luis-authoring/src/models/azureAccountsMappers.ts @@ -1,13 +1,11 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ - export { AzureAccountInfoObject, ErrorResponse, diff --git a/sdk/cognitiveservices/cognitiveservices-luis-authoring/src/models/examplesMappers.ts b/sdk/cognitiveservices/cognitiveservices-luis-authoring/src/models/examplesMappers.ts index 8bd5c1ef50f1..d4cb41a958a7 100644 --- a/sdk/cognitiveservices/cognitiveservices-luis-authoring/src/models/examplesMappers.ts +++ b/sdk/cognitiveservices/cognitiveservices-luis-authoring/src/models/examplesMappers.ts @@ -1,7 +1,6 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/cognitiveservices/cognitiveservices-luis-authoring/src/models/featuresMappers.ts b/sdk/cognitiveservices/cognitiveservices-luis-authoring/src/models/featuresMappers.ts index 5613c0bd2c54..51b9484e0c2a 100644 --- a/sdk/cognitiveservices/cognitiveservices-luis-authoring/src/models/featuresMappers.ts +++ b/sdk/cognitiveservices/cognitiveservices-luis-authoring/src/models/featuresMappers.ts @@ -1,13 +1,11 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ - export { ErrorResponse, FeatureInfoObject, diff --git a/sdk/cognitiveservices/cognitiveservices-luis-authoring/src/models/index.ts b/sdk/cognitiveservices/cognitiveservices-luis-authoring/src/models/index.ts index ca2eb44abec7..8152fe76d27a 100644 --- a/sdk/cognitiveservices/cognitiveservices-luis-authoring/src/models/index.ts +++ b/sdk/cognitiveservices/cognitiveservices-luis-authoring/src/models/index.ts @@ -1,14 +1,12 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ - import * as msRest from "@azure/ms-rest-js"; /** @@ -2340,16 +2338,16 @@ export type FeaturesListApplicationVersionPatternFeaturesResponse = Array & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: PhraseListFeatureInfo[]; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PhraseListFeatureInfo[]; + }; }; /** @@ -2405,16 +2403,16 @@ export type FeaturesListResponse = FeaturesResponseObject & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: FeaturesResponseObject; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: FeaturesResponseObject; + }; }; /** @@ -2425,16 +2423,16 @@ export type FeaturesGetPhraseListResponse = PhraseListFeatureInfo & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: PhraseListFeatureInfo; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PhraseListFeatureInfo; + }; }; /** @@ -2445,16 +2443,16 @@ export type FeaturesUpdatePhraseListResponse = OperationStatus & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: OperationStatus; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; }; /** @@ -2465,16 +2463,16 @@ export type FeaturesDeletePhraseListResponse = OperationStatus & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: OperationStatus; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; }; /** @@ -2485,16 +2483,16 @@ export type ExamplesAddResponse = LabelExampleResponse & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: LabelExampleResponse; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: LabelExampleResponse; + }; }; /** @@ -2505,16 +2503,16 @@ export type ExamplesBatchResponse = Array & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: BatchLabelExample[]; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: BatchLabelExample[]; + }; }; /** @@ -2525,16 +2523,16 @@ export type ExamplesListResponse = Array & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: LabeledUtterance[]; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: LabeledUtterance[]; + }; }; /** @@ -2545,16 +2543,16 @@ export type ExamplesDeleteMethodResponse = OperationStatus & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: OperationStatus; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; }; /** @@ -2570,16 +2568,16 @@ export type ModelAddIntentResponse = { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: string; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: string; + }; }; /** @@ -2590,16 +2588,16 @@ export type ModelListIntentsResponse = Array & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: IntentClassifier[]; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: IntentClassifier[]; + }; }; /** @@ -2615,16 +2613,16 @@ export type ModelAddEntityResponse = { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: string; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: string; + }; }; /** @@ -2635,16 +2633,16 @@ export type ModelListEntitiesResponse = Array & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: EntityExtractor[]; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: EntityExtractor[]; + }; }; /** @@ -2660,16 +2658,16 @@ export type ModelAddHierarchicalEntityResponse = { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: string; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: string; + }; }; /** @@ -2680,16 +2678,16 @@ export type ModelListHierarchicalEntitiesResponse = Array * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: CompositeEntityExtractor[]; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: CompositeEntityExtractor[]; + }; }; /** @@ -2745,16 +2743,16 @@ export type ModelListClosedListsResponse = Array & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ClosedListEntityExtractor[]; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ClosedListEntityExtractor[]; + }; }; /** @@ -2770,16 +2768,16 @@ export type ModelAddClosedListResponse = { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: string; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: string; + }; }; /** @@ -2790,16 +2788,16 @@ export type ModelAddPrebuiltResponse = Array & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: PrebuiltEntityExtractor[]; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PrebuiltEntityExtractor[]; + }; }; /** @@ -2810,16 +2808,16 @@ export type ModelListPrebuiltsResponse = Array & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: PrebuiltEntityExtractor[]; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PrebuiltEntityExtractor[]; + }; }; /** @@ -2830,16 +2828,16 @@ export type ModelListPrebuiltEntitiesResponse = Array & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ModelInfoResponse[]; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ModelInfoResponse[]; + }; }; /** @@ -2870,16 +2868,16 @@ export type ModelExamplesMethodResponse = Array & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: LabelTextObject[]; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: LabelTextObject[]; + }; }; /** @@ -2890,16 +2888,16 @@ export type ModelGetIntentResponse = IntentClassifier & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: IntentClassifier; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: IntentClassifier; + }; }; /** @@ -2910,16 +2908,16 @@ export type ModelUpdateIntentResponse = OperationStatus & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: OperationStatus; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; }; /** @@ -2930,16 +2928,16 @@ export type ModelDeleteIntentResponse = OperationStatus & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: OperationStatus; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; }; /** @@ -2950,16 +2948,16 @@ export type ModelGetEntityResponse = EntityExtractor & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: EntityExtractor; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: EntityExtractor; + }; }; /** @@ -2970,16 +2968,16 @@ export type ModelUpdateEntityResponse = OperationStatus & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: OperationStatus; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; }; /** @@ -2990,16 +2988,16 @@ export type ModelDeleteEntityResponse = OperationStatus & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: OperationStatus; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; }; /** @@ -3010,16 +3008,16 @@ export type ModelGetHierarchicalEntityResponse = HierarchicalEntityExtractor & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: HierarchicalEntityExtractor; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: HierarchicalEntityExtractor; + }; }; /** @@ -3030,16 +3028,16 @@ export type ModelUpdateHierarchicalEntityResponse = OperationStatus & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: OperationStatus; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; }; /** @@ -3050,16 +3048,16 @@ export type ModelDeleteHierarchicalEntityResponse = OperationStatus & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: OperationStatus; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; }; /** @@ -3070,16 +3068,16 @@ export type ModelGetCompositeEntityResponse = CompositeEntityExtractor & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: CompositeEntityExtractor; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: CompositeEntityExtractor; + }; }; /** @@ -3090,16 +3088,16 @@ export type ModelUpdateCompositeEntityResponse = OperationStatus & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: OperationStatus; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; }; /** @@ -3110,16 +3108,16 @@ export type ModelDeleteCompositeEntityResponse = OperationStatus & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: OperationStatus; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; }; /** @@ -3130,16 +3128,16 @@ export type ModelGetClosedListResponse = ClosedListEntityExtractor & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ClosedListEntityExtractor; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ClosedListEntityExtractor; + }; }; /** @@ -3150,16 +3148,16 @@ export type ModelUpdateClosedListResponse = OperationStatus & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: OperationStatus; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; }; /** @@ -3170,16 +3168,16 @@ export type ModelPatchClosedListResponse = OperationStatus & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: OperationStatus; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; }; /** @@ -3190,16 +3188,16 @@ export type ModelDeleteClosedListResponse = OperationStatus & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: OperationStatus; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; }; /** @@ -3210,16 +3208,16 @@ export type ModelGetPrebuiltResponse = PrebuiltEntityExtractor & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: PrebuiltEntityExtractor; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PrebuiltEntityExtractor; + }; }; /** @@ -3230,16 +3228,16 @@ export type ModelDeletePrebuiltResponse = OperationStatus & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: OperationStatus; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; }; /** @@ -3250,16 +3248,16 @@ export type ModelDeleteSubListResponse = OperationStatus & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: OperationStatus; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; }; /** @@ -3270,16 +3268,16 @@ export type ModelUpdateSubListResponse = OperationStatus & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: OperationStatus; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; }; /** @@ -3290,16 +3288,16 @@ export type ModelListIntentSuggestionsResponse = Array * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: IntentsSuggestionExample[]; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: IntentsSuggestionExample[]; + }; }; /** @@ -3310,16 +3308,16 @@ export type ModelListEntitySuggestionsResponse = Array & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: string[]; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: string[]; + }; }; /** @@ -3380,16 +3378,16 @@ export type ModelAddCustomPrebuiltIntentResponse = { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: string; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: string; + }; }; /** @@ -3400,16 +3398,16 @@ export type ModelListCustomPrebuiltIntentsResponse = Array & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: IntentClassifier[]; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: IntentClassifier[]; + }; }; /** @@ -3425,16 +3423,16 @@ export type ModelAddCustomPrebuiltEntityResponse = { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: string; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: string; + }; }; /** @@ -3445,16 +3443,16 @@ export type ModelListCustomPrebuiltEntitiesResponse = Array & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: EntityExtractor[]; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: EntityExtractor[]; + }; }; /** @@ -3465,16 +3463,16 @@ export type ModelListCustomPrebuiltModelsResponse = Array & * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: CustomPrebuiltModel[]; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: CustomPrebuiltModel[]; + }; }; /** @@ -3485,16 +3483,16 @@ export type ModelDeleteCustomPrebuiltDomainResponse = OperationStatus & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: OperationStatus; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; }; /** @@ -3505,16 +3503,16 @@ export type ModelGetHierarchicalEntityChildResponse = HierarchicalChildEntity & * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: HierarchicalChildEntity; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: HierarchicalChildEntity; + }; }; /** @@ -3525,16 +3523,16 @@ export type ModelUpdateHierarchicalEntityChildResponse = OperationStatus & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: OperationStatus; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; }; /** @@ -3545,16 +3543,16 @@ export type ModelDeleteHierarchicalEntityChildResponse = OperationStatus & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: OperationStatus; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; }; /** @@ -3570,16 +3568,16 @@ export type ModelAddHierarchicalEntityChildResponse = { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: string; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: string; + }; }; /** @@ -3595,16 +3593,16 @@ export type ModelAddCompositeEntityChildResponse = { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: string; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: string; + }; }; /** @@ -3615,16 +3613,16 @@ export type ModelDeleteCompositeEntityChildResponse = OperationStatus & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: OperationStatus; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; }; /** @@ -3635,16 +3633,16 @@ export type ModelListRegexEntityInfosResponse = Array & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: RegexEntityExtractor[]; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: RegexEntityExtractor[]; + }; }; /** @@ -3660,16 +3658,16 @@ export type ModelCreateRegexEntityModelResponse = { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: string; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: string; + }; }; /** @@ -3680,16 +3678,16 @@ export type ModelListPatternAnyEntityInfosResponse = Array & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: EntityRole[]; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: EntityRole[]; + }; }; /** @@ -3750,16 +3748,16 @@ export type ModelCreateEntityRoleResponse = { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: string; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: string; + }; }; /** @@ -3770,16 +3768,16 @@ export type ModelListPrebuiltEntityRolesResponse = Array & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: EntityRole[]; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: EntityRole[]; + }; }; /** @@ -3795,16 +3793,16 @@ export type ModelCreatePrebuiltEntityRoleResponse = { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: string; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: string; + }; }; /** @@ -3815,16 +3813,16 @@ export type ModelListClosedListEntityRolesResponse = Array & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: EntityRole[]; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: EntityRole[]; + }; }; /** @@ -3840,16 +3838,16 @@ export type ModelCreateClosedListEntityRoleResponse = { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: string; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: string; + }; }; /** @@ -3860,16 +3858,16 @@ export type ModelListRegexEntityRolesResponse = Array & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: EntityRole[]; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: EntityRole[]; + }; }; /** @@ -3885,16 +3883,16 @@ export type ModelCreateRegexEntityRoleResponse = { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: string; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: string; + }; }; /** @@ -3905,16 +3903,16 @@ export type ModelListCompositeEntityRolesResponse = Array & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: EntityRole[]; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: EntityRole[]; + }; }; /** @@ -3930,16 +3928,16 @@ export type ModelCreateCompositeEntityRoleResponse = { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: string; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: string; + }; }; /** @@ -3950,16 +3948,16 @@ export type ModelListPatternAnyEntityRolesResponse = Array & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: EntityRole[]; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: EntityRole[]; + }; }; /** @@ -3975,16 +3973,16 @@ export type ModelCreatePatternAnyEntityRoleResponse = { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: string; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: string; + }; }; /** @@ -3995,16 +3993,16 @@ export type ModelListHierarchicalEntityRolesResponse = Array & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: EntityRole[]; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: EntityRole[]; + }; }; /** @@ -4020,16 +4018,16 @@ export type ModelCreateHierarchicalEntityRoleResponse = { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: string; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: string; + }; }; /** @@ -4040,16 +4038,16 @@ export type ModelListCustomPrebuiltEntityRolesResponse = Array & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: EntityRole[]; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: EntityRole[]; + }; }; /** @@ -4065,16 +4063,16 @@ export type ModelCreateCustomPrebuiltEntityRoleResponse = { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: string; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: string; + }; }; /** @@ -4085,16 +4083,16 @@ export type ModelGetExplicitListResponse = Array & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ExplicitListItem[]; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ExplicitListItem[]; + }; }; /** @@ -4110,16 +4108,16 @@ export type ModelAddExplicitListItemResponse = { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: number; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: number; + }; }; /** @@ -4130,16 +4128,16 @@ export type ModelGetRegexEntityEntityInfoResponse = RegexEntityExtractor & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: RegexEntityExtractor; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: RegexEntityExtractor; + }; }; /** @@ -4150,16 +4148,16 @@ export type ModelUpdateRegexEntityModelResponse = OperationStatus & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: OperationStatus; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; }; /** @@ -4170,16 +4168,16 @@ export type ModelDeleteRegexEntityModelResponse = OperationStatus & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: OperationStatus; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; }; /** @@ -4190,16 +4188,16 @@ export type ModelGetPatternAnyEntityInfoResponse = PatternAnyEntityExtractor & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: PatternAnyEntityExtractor; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PatternAnyEntityExtractor; + }; }; /** @@ -4210,16 +4208,16 @@ export type ModelUpdatePatternAnyEntityModelResponse = OperationStatus & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: OperationStatus; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; }; /** @@ -4230,16 +4228,16 @@ export type ModelDeletePatternAnyEntityModelResponse = OperationStatus & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: OperationStatus; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; }; /** @@ -4250,16 +4248,16 @@ export type ModelGetEntityRoleResponse = EntityRole & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: EntityRole; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: EntityRole; + }; }; /** @@ -4270,16 +4268,16 @@ export type ModelUpdateEntityRoleResponse = OperationStatus & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: OperationStatus; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; }; /** @@ -4290,16 +4288,16 @@ export type ModelDeleteEntityRoleResponse = OperationStatus & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: OperationStatus; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; }; /** @@ -4310,16 +4308,16 @@ export type ModelGetPrebuiltEntityRoleResponse = EntityRole & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: EntityRole; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: EntityRole; + }; }; /** @@ -4330,16 +4328,16 @@ export type ModelUpdatePrebuiltEntityRoleResponse = OperationStatus & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: OperationStatus; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; }; /** @@ -4350,16 +4348,16 @@ export type ModelDeletePrebuiltEntityRoleResponse = OperationStatus & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: OperationStatus; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; }; /** @@ -4370,16 +4368,16 @@ export type ModelGetClosedListEntityRoleResponse = EntityRole & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: EntityRole; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: EntityRole; + }; }; /** @@ -4390,16 +4388,16 @@ export type ModelUpdateClosedListEntityRoleResponse = OperationStatus & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: OperationStatus; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; }; /** @@ -4410,16 +4408,16 @@ export type ModelDeleteClosedListEntityRoleResponse = OperationStatus & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: OperationStatus; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; }; /** @@ -4430,16 +4428,16 @@ export type ModelGetRegexEntityRoleResponse = EntityRole & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: EntityRole; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: EntityRole; + }; }; /** @@ -4450,16 +4448,16 @@ export type ModelUpdateRegexEntityRoleResponse = OperationStatus & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: OperationStatus; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; }; /** @@ -4470,16 +4468,16 @@ export type ModelDeleteRegexEntityRoleResponse = OperationStatus & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: OperationStatus; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; }; /** @@ -4490,16 +4488,16 @@ export type ModelGetCompositeEntityRoleResponse = EntityRole & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: EntityRole; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: EntityRole; + }; }; /** @@ -4510,16 +4508,16 @@ export type ModelUpdateCompositeEntityRoleResponse = OperationStatus & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: OperationStatus; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; }; /** @@ -4530,16 +4528,16 @@ export type ModelDeleteCompositeEntityRoleResponse = OperationStatus & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: OperationStatus; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; }; /** @@ -4550,16 +4548,16 @@ export type ModelGetPatternAnyEntityRoleResponse = EntityRole & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: EntityRole; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: EntityRole; + }; }; /** @@ -4570,16 +4568,16 @@ export type ModelUpdatePatternAnyEntityRoleResponse = OperationStatus & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: OperationStatus; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; }; /** @@ -4590,16 +4588,16 @@ export type ModelDeletePatternAnyEntityRoleResponse = OperationStatus & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: OperationStatus; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; }; /** @@ -4610,16 +4608,16 @@ export type ModelGetHierarchicalEntityRoleResponse = EntityRole & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: EntityRole; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: EntityRole; + }; }; /** @@ -4630,16 +4628,16 @@ export type ModelUpdateHierarchicalEntityRoleResponse = OperationStatus & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: OperationStatus; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; }; /** @@ -4650,16 +4648,16 @@ export type ModelDeleteHierarchicalEntityRoleResponse = OperationStatus & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: OperationStatus; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; }; /** @@ -4670,16 +4668,16 @@ export type ModelGetCustomEntityRoleResponse = EntityRole & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: EntityRole; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: EntityRole; + }; }; /** @@ -4690,16 +4688,16 @@ export type ModelUpdateCustomPrebuiltEntityRoleResponse = OperationStatus & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: OperationStatus; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; }; /** @@ -4710,16 +4708,16 @@ export type ModelDeleteCustomEntityRoleResponse = OperationStatus & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: OperationStatus; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; }; /** @@ -4730,16 +4728,16 @@ export type ModelGetExplicitListItemResponse = ExplicitListItem & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ExplicitListItem; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ExplicitListItem; + }; }; /** @@ -4750,16 +4748,16 @@ export type ModelUpdateExplicitListItemResponse = OperationStatus & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: OperationStatus; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; }; /** @@ -4770,16 +4768,16 @@ export type ModelDeleteExplicitListItemResponse = OperationStatus & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: OperationStatus; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; }; /** @@ -4795,16 +4793,16 @@ export type AppsAddResponse = { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: string; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: string; + }; }; /** @@ -4815,16 +4813,16 @@ export type AppsListResponse = Array & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ApplicationInfoResponse[]; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ApplicationInfoResponse[]; + }; }; /** @@ -4840,16 +4838,16 @@ export type AppsImportMethodResponse = { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: string; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: string; + }; }; /** @@ -4860,16 +4858,16 @@ export type AppsListCortanaEndpointsResponse = PersonalAssistantsResponse & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: PersonalAssistantsResponse; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PersonalAssistantsResponse; + }; }; /** @@ -4880,16 +4878,16 @@ export type AppsListDomainsResponse = Array & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: string[]; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: string[]; + }; }; /** @@ -4900,16 +4898,16 @@ export type AppsListUsageScenariosResponse = Array & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: string[]; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: string[]; + }; }; /** @@ -4920,16 +4918,16 @@ export type AppsListSupportedCulturesResponse = Array & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: AvailableCulture[]; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: AvailableCulture[]; + }; }; /** @@ -4966,16 +4964,16 @@ export type AppsGetResponse = ApplicationInfoResponse & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ApplicationInfoResponse; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ApplicationInfoResponse; + }; }; /** @@ -4986,16 +4984,16 @@ export type AppsUpdateResponse = OperationStatus & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: OperationStatus; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; }; /** @@ -5006,16 +5004,16 @@ export type AppsDeleteMethodResponse = OperationStatus & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: OperationStatus; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; }; /** @@ -5026,16 +5024,16 @@ export type AppsPublishResponse = ProductionOrStagingEndpointInfo & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ProductionOrStagingEndpointInfo; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ProductionOrStagingEndpointInfo; + }; }; /** @@ -5046,16 +5044,16 @@ export type AppsGetSettingsResponse = ApplicationSettings & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ApplicationSettings; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ApplicationSettings; + }; }; /** @@ -5066,16 +5064,16 @@ export type AppsUpdateSettingsResponse = OperationStatus & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: OperationStatus; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; }; /** @@ -5086,16 +5084,16 @@ export type AppsGetPublishSettingsResponse = PublishSettings & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: PublishSettings; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PublishSettings; + }; }; /** @@ -5106,16 +5104,16 @@ export type AppsUpdatePublishSettingsResponse = OperationStatus & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: OperationStatus; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; }; /** @@ -5131,16 +5129,16 @@ export type AppsListEndpointsResponse = { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: { [propertyName: string]: string }; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: { [propertyName: string]: string }; + }; }; /** @@ -5151,16 +5149,16 @@ export type AppsListAvailableCustomPrebuiltDomainsResponse = Array & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: VersionInfo[]; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: VersionInfo[]; + }; }; /** @@ -5313,16 +5311,16 @@ export type VersionsGetResponse = VersionInfo & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: VersionInfo; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: VersionInfo; + }; }; /** @@ -5333,16 +5331,16 @@ export type VersionsUpdateResponse = OperationStatus & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: OperationStatus; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; }; /** @@ -5353,16 +5351,16 @@ export type VersionsDeleteMethodResponse = OperationStatus & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: OperationStatus; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; }; /** @@ -5373,16 +5371,16 @@ export type VersionsExportMethodResponse = LuisApp & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: LuisApp; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: LuisApp; + }; }; /** @@ -5398,16 +5396,16 @@ export type VersionsImportMethodResponse = { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: string; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: string; + }; }; /** @@ -5418,16 +5416,16 @@ export type VersionsDeleteUnlabelledUtteranceResponse = OperationStatus & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: OperationStatus; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; }; /** @@ -5438,16 +5436,16 @@ export type TrainTrainVersionResponse = EnqueueTrainingResponse & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: EnqueueTrainingResponse; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: EnqueueTrainingResponse; + }; }; /** @@ -5458,16 +5456,16 @@ export type TrainGetStatusResponse = Array & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ModelTrainingInfo[]; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ModelTrainingInfo[]; + }; }; /** @@ -5478,16 +5476,16 @@ export type PermissionsListResponse = UserAccessList & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: UserAccessList; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: UserAccessList; + }; }; /** @@ -5498,16 +5496,16 @@ export type PermissionsAddResponse = OperationStatus & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: OperationStatus; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; }; /** @@ -5518,16 +5516,16 @@ export type PermissionsDeleteMethodResponse = OperationStatus & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: OperationStatus; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; }; /** @@ -5538,16 +5536,16 @@ export type PermissionsUpdateResponse = OperationStatus & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: OperationStatus; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; }; /** @@ -5558,16 +5556,16 @@ export type PatternAddPatternResponse = PatternRuleInfo & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: PatternRuleInfo; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PatternRuleInfo; + }; }; /** @@ -5578,16 +5576,16 @@ export type PatternListPatternsResponse = Array & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: PatternRuleInfo[]; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PatternRuleInfo[]; + }; }; /** @@ -5598,16 +5596,16 @@ export type PatternUpdatePatternsResponse = Array & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: PatternRuleInfo[]; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PatternRuleInfo[]; + }; }; /** @@ -5618,16 +5616,16 @@ export type PatternBatchAddPatternsResponse = Array & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: PatternRuleInfo[]; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PatternRuleInfo[]; + }; }; /** @@ -5638,16 +5636,16 @@ export type PatternDeletePatternsResponse = OperationStatus & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: OperationStatus; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; }; /** @@ -5658,16 +5656,16 @@ export type PatternUpdatePatternResponse = PatternRuleInfo & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: PatternRuleInfo; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PatternRuleInfo; + }; }; /** @@ -5678,16 +5676,16 @@ export type PatternDeletePatternResponse = OperationStatus & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: OperationStatus; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; }; /** @@ -5698,16 +5696,16 @@ export type PatternListIntentPatternsResponse = Array & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: PatternRuleInfo[]; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PatternRuleInfo[]; + }; }; /** @@ -5718,16 +5716,16 @@ export type SettingsListResponse = Array & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: AppVersionSettingObject[]; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: AppVersionSettingObject[]; + }; }; /** @@ -5738,16 +5736,16 @@ export type SettingsUpdateResponse = OperationStatus & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: OperationStatus; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; }; /** @@ -5758,16 +5756,16 @@ export type AzureAccountsAssignToAppResponse = OperationStatus & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: OperationStatus; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; }; /** @@ -5778,16 +5776,16 @@ export type AzureAccountsGetAssignedResponse = Array & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: AzureAccountInfoObject[]; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: AzureAccountInfoObject[]; + }; }; /** @@ -5798,16 +5796,16 @@ export type AzureAccountsRemoveFromAppResponse = OperationStatus & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: OperationStatus; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; }; /** @@ -5818,14 +5816,14 @@ export type AzureAccountsListUserLUISAccountsResponse = Array */ - add( - applicationCreateObject: Models.ApplicationCreateObject, - options?: msRest.RequestOptionsBase - ): Promise; + add(applicationCreateObject: Models.ApplicationCreateObject, options?: msRest.RequestOptionsBase): Promise; /** * @param applicationCreateObject An application containing Name, Description (optional), Culture, * Usage Scenario (optional), Domain (optional) and initial version ID (optional) of the @@ -46,10 +43,7 @@ export class Apps { * after the app is created. * @param callback The callback */ - add( - applicationCreateObject: Models.ApplicationCreateObject, - callback: msRest.ServiceCallback - ): void; + add(applicationCreateObject: Models.ApplicationCreateObject, callback: msRest.ServiceCallback): void; /** * @param applicationCreateObject An application containing Name, Description (optional), Culture, * Usage Scenario (optional), Domain (optional) and initial version ID (optional) of the @@ -58,24 +52,15 @@ export class Apps { * @param options The optional parameters * @param callback The callback */ - add( - applicationCreateObject: Models.ApplicationCreateObject, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - add( - applicationCreateObject: Models.ApplicationCreateObject, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + add(applicationCreateObject: Models.ApplicationCreateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + add(applicationCreateObject: Models.ApplicationCreateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { applicationCreateObject, options }, addOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -92,23 +77,14 @@ export class Apps { * @param options The optional parameters * @param callback The callback */ - list( - options: Models.AppsListOptionalParams, - callback: msRest.ServiceCallback - ): void; - list( - options?: - | Models.AppsListOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + list(options: Models.AppsListOptionalParams, callback: msRest.ServiceCallback): void; + list(options?: Models.AppsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { options }, listOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -117,10 +93,7 @@ export class Apps { * @param [options] The optional parameters * @returns Promise */ - importMethod( - luisApp: Models.LuisApp, - options?: Models.AppsImportMethodOptionalParams - ): Promise; + importMethod(luisApp: Models.LuisApp, options?: Models.AppsImportMethodOptionalParams): Promise; /** * @param luisApp A LUIS application structure. * @param callback The callback @@ -131,24 +104,15 @@ export class Apps { * @param options The optional parameters * @param callback The callback */ - importMethod( - luisApp: Models.LuisApp, - options: Models.AppsImportMethodOptionalParams, - callback: msRest.ServiceCallback - ): void; - importMethod( - luisApp: Models.LuisApp, - options?: Models.AppsImportMethodOptionalParams | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + importMethod(luisApp: Models.LuisApp, options: Models.AppsImportMethodOptionalParams, callback: msRest.ServiceCallback): void; + importMethod(luisApp: Models.LuisApp, options?: Models.AppsImportMethodOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { luisApp, options }, importMethodOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -156,9 +120,7 @@ export class Apps { * @param [options] The optional parameters * @returns Promise */ - listCortanaEndpoints( - options?: msRest.RequestOptionsBase - ): Promise; + listCortanaEndpoints(options?: msRest.RequestOptionsBase): Promise; /** * @param callback The callback */ @@ -167,21 +129,14 @@ export class Apps { * @param options The optional parameters * @param callback The callback */ - listCortanaEndpoints( - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listCortanaEndpoints( - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listCortanaEndpoints(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listCortanaEndpoints(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { options }, listCortanaEndpointsOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -199,17 +154,13 @@ export class Apps { * @param callback The callback */ listDomains(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listDomains( - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listDomains(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { options }, listDomainsOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -217,9 +168,7 @@ export class Apps { * @param [options] The optional parameters * @returns Promise */ - listUsageScenarios( - options?: msRest.RequestOptionsBase - ): Promise; + listUsageScenarios(options?: msRest.RequestOptionsBase): Promise; /** * @param callback The callback */ @@ -228,21 +177,14 @@ export class Apps { * @param options The optional parameters * @param callback The callback */ - listUsageScenarios( - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listUsageScenarios( - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listUsageScenarios(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listUsageScenarios(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { options }, listUsageScenariosOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -251,9 +193,7 @@ export class Apps { * @param [options] The optional parameters * @returns Promise */ - listSupportedCultures( - options?: msRest.RequestOptionsBase - ): Promise; + listSupportedCultures(options?: msRest.RequestOptionsBase): Promise; /** * @param callback The callback */ @@ -262,21 +202,14 @@ export class Apps { * @param options The optional parameters * @param callback The callback */ - listSupportedCultures( - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listSupportedCultures( - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listSupportedCultures(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSupportedCultures(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { options }, listSupportedCulturesOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -285,10 +218,7 @@ export class Apps { * @param [options] The optional parameters * @returns Promise */ - downloadQueryLogs( - appId: string, - options?: msRest.RequestOptionsBase - ): Promise; + downloadQueryLogs(appId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param appId The application ID. * @param callback The callback @@ -299,24 +229,15 @@ export class Apps { * @param options The optional parameters * @param callback The callback */ - downloadQueryLogs( - appId: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - downloadQueryLogs( - appId: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + downloadQueryLogs(appId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + downloadQueryLogs(appId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { appId, options }, downloadQueryLogsOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -336,24 +257,15 @@ export class Apps { * @param options The optional parameters * @param callback The callback */ - get( - appId: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - get( - appId: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + get(appId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(appId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { appId, options }, getOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -363,39 +275,21 @@ export class Apps { * @param [options] The optional parameters * @returns Promise */ - update( - appId: string, - applicationUpdateObject: Models.ApplicationUpdateObject, - options?: msRest.RequestOptionsBase - ): Promise; + update(appId: string, applicationUpdateObject: Models.ApplicationUpdateObject, options?: msRest.RequestOptionsBase): Promise; /** * @param appId The application ID. * @param applicationUpdateObject A model containing Name and Description of the application. * @param callback The callback */ - update( - appId: string, - applicationUpdateObject: Models.ApplicationUpdateObject, - callback: msRest.ServiceCallback - ): void; + update(appId: string, applicationUpdateObject: Models.ApplicationUpdateObject, callback: msRest.ServiceCallback): void; /** * @param appId The application ID. * @param applicationUpdateObject A model containing Name and Description of the application. * @param options The optional parameters * @param callback The callback */ - update( - appId: string, - applicationUpdateObject: Models.ApplicationUpdateObject, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - update( - appId: string, - applicationUpdateObject: Models.ApplicationUpdateObject, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + update(appId: string, applicationUpdateObject: Models.ApplicationUpdateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(appId: string, applicationUpdateObject: Models.ApplicationUpdateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { appId, @@ -403,8 +297,7 @@ export class Apps { options }, updateOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -413,10 +306,7 @@ export class Apps { * @param [options] The optional parameters * @returns Promise */ - deleteMethod( - appId: string, - options?: Models.AppsDeleteMethodOptionalParams - ): Promise; + deleteMethod(appId: string, options?: Models.AppsDeleteMethodOptionalParams): Promise; /** * @param appId The application ID. * @param callback The callback @@ -427,26 +317,15 @@ export class Apps { * @param options The optional parameters * @param callback The callback */ - deleteMethod( - appId: string, - options: Models.AppsDeleteMethodOptionalParams, - callback: msRest.ServiceCallback - ): void; - deleteMethod( - appId: string, - options?: - | Models.AppsDeleteMethodOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + deleteMethod(appId: string, options: Models.AppsDeleteMethodOptionalParams, callback: msRest.ServiceCallback): void; + deleteMethod(appId: string, options?: Models.AppsDeleteMethodOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { appId, options }, deleteMethodOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -457,22 +336,14 @@ export class Apps { * @param [options] The optional parameters * @returns Promise */ - publish( - appId: string, - applicationPublishObject: Models.ApplicationPublishObject, - options?: msRest.RequestOptionsBase - ): Promise; + publish(appId: string, applicationPublishObject: Models.ApplicationPublishObject, options?: msRest.RequestOptionsBase): Promise; /** * @param appId The application ID. * @param applicationPublishObject The application publish object. The region is the target region * that the application is published to. * @param callback The callback */ - publish( - appId: string, - applicationPublishObject: Models.ApplicationPublishObject, - callback: msRest.ServiceCallback - ): void; + publish(appId: string, applicationPublishObject: Models.ApplicationPublishObject, callback: msRest.ServiceCallback): void; /** * @param appId The application ID. * @param applicationPublishObject The application publish object. The region is the target region @@ -480,20 +351,8 @@ export class Apps { * @param options The optional parameters * @param callback The callback */ - publish( - appId: string, - applicationPublishObject: Models.ApplicationPublishObject, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - publish( - appId: string, - applicationPublishObject: Models.ApplicationPublishObject, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + publish(appId: string, applicationPublishObject: Models.ApplicationPublishObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + publish(appId: string, applicationPublishObject: Models.ApplicationPublishObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { appId, @@ -501,8 +360,7 @@ export class Apps { options }, publishOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -511,10 +369,7 @@ export class Apps { * @param [options] The optional parameters * @returns Promise */ - getSettings( - appId: string, - options?: msRest.RequestOptionsBase - ): Promise; + getSettings(appId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param appId The application ID. * @param callback The callback @@ -525,24 +380,15 @@ export class Apps { * @param options The optional parameters * @param callback The callback */ - getSettings( - appId: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getSettings( - appId: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getSettings(appId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getSettings(appId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { appId, options }, getSettingsOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -552,39 +398,21 @@ export class Apps { * @param [options] The optional parameters * @returns Promise */ - updateSettings( - appId: string, - applicationSettingUpdateObject: Models.ApplicationSettingUpdateObject, - options?: msRest.RequestOptionsBase - ): Promise; + updateSettings(appId: string, applicationSettingUpdateObject: Models.ApplicationSettingUpdateObject, options?: msRest.RequestOptionsBase): Promise; /** * @param appId The application ID. * @param applicationSettingUpdateObject An object containing the new application settings. * @param callback The callback */ - updateSettings( - appId: string, - applicationSettingUpdateObject: Models.ApplicationSettingUpdateObject, - callback: msRest.ServiceCallback - ): void; + updateSettings(appId: string, applicationSettingUpdateObject: Models.ApplicationSettingUpdateObject, callback: msRest.ServiceCallback): void; /** * @param appId The application ID. * @param applicationSettingUpdateObject An object containing the new application settings. * @param options The optional parameters * @param callback The callback */ - updateSettings( - appId: string, - applicationSettingUpdateObject: Models.ApplicationSettingUpdateObject, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - updateSettings( - appId: string, - applicationSettingUpdateObject: Models.ApplicationSettingUpdateObject, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + updateSettings(appId: string, applicationSettingUpdateObject: Models.ApplicationSettingUpdateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updateSettings(appId: string, applicationSettingUpdateObject: Models.ApplicationSettingUpdateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { appId, @@ -592,8 +420,7 @@ export class Apps { options }, updateSettingsOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -602,10 +429,7 @@ export class Apps { * @param [options] The optional parameters * @returns Promise */ - getPublishSettings( - appId: string, - options?: msRest.RequestOptionsBase - ): Promise; + getPublishSettings(appId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param appId The application ID. * @param callback The callback @@ -616,24 +440,15 @@ export class Apps { * @param options The optional parameters * @param callback The callback */ - getPublishSettings( - appId: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getPublishSettings( - appId: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getPublishSettings(appId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getPublishSettings(appId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { appId, options }, getPublishSettingsOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -643,39 +458,21 @@ export class Apps { * @param [options] The optional parameters * @returns Promise */ - updatePublishSettings( - appId: string, - publishSettingUpdateObject: Models.PublishSettingUpdateObject, - options?: msRest.RequestOptionsBase - ): Promise; + updatePublishSettings(appId: string, publishSettingUpdateObject: Models.PublishSettingUpdateObject, options?: msRest.RequestOptionsBase): Promise; /** * @param appId The application ID. * @param publishSettingUpdateObject An object containing the new publish application settings. * @param callback The callback */ - updatePublishSettings( - appId: string, - publishSettingUpdateObject: Models.PublishSettingUpdateObject, - callback: msRest.ServiceCallback - ): void; + updatePublishSettings(appId: string, publishSettingUpdateObject: Models.PublishSettingUpdateObject, callback: msRest.ServiceCallback): void; /** * @param appId The application ID. * @param publishSettingUpdateObject An object containing the new publish application settings. * @param options The optional parameters * @param callback The callback */ - updatePublishSettings( - appId: string, - publishSettingUpdateObject: Models.PublishSettingUpdateObject, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - updatePublishSettings( - appId: string, - publishSettingUpdateObject: Models.PublishSettingUpdateObject, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + updatePublishSettings(appId: string, publishSettingUpdateObject: Models.PublishSettingUpdateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updatePublishSettings(appId: string, publishSettingUpdateObject: Models.PublishSettingUpdateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { appId, @@ -683,8 +480,7 @@ export class Apps { options }, updatePublishSettingsOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -693,43 +489,26 @@ export class Apps { * @param [options] The optional parameters * @returns Promise */ - listEndpoints( - appId: string, - options?: msRest.RequestOptionsBase - ): Promise; + listEndpoints(appId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param appId The application ID. * @param callback The callback */ - listEndpoints( - appId: string, - callback: msRest.ServiceCallback<{ [propertyName: string]: string }> - ): void; + listEndpoints(appId: string, callback: msRest.ServiceCallback<{ [propertyName: string]: string }>): void; /** * @param appId The application ID. * @param options The optional parameters * @param callback The callback */ - listEndpoints( - appId: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback<{ [propertyName: string]: string }> - ): void; - listEndpoints( - appId: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback<{ [propertyName: string]: string }>, - callback?: msRest.ServiceCallback<{ [propertyName: string]: string }> - ): Promise { + listEndpoints(appId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<{ [propertyName: string]: string }>): void; + listEndpoints(appId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<{ [propertyName: string]: string }>, callback?: msRest.ServiceCallback<{ [propertyName: string]: string }>): Promise { return this.client.sendOperationRequest( { appId, options }, listEndpointsOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -737,34 +516,23 @@ export class Apps { * @param [options] The optional parameters * @returns Promise */ - listAvailableCustomPrebuiltDomains( - options?: msRest.RequestOptionsBase - ): Promise; + listAvailableCustomPrebuiltDomains(options?: msRest.RequestOptionsBase): Promise; /** * @param callback The callback */ - listAvailableCustomPrebuiltDomains( - callback: msRest.ServiceCallback - ): void; + listAvailableCustomPrebuiltDomains(callback: msRest.ServiceCallback): void; /** * @param options The optional parameters * @param callback The callback */ - listAvailableCustomPrebuiltDomains( - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listAvailableCustomPrebuiltDomains( - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listAvailableCustomPrebuiltDomains(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listAvailableCustomPrebuiltDomains(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { options }, listAvailableCustomPrebuiltDomainsOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -774,43 +542,28 @@ export class Apps { * @param [options] The optional parameters * @returns Promise */ - addCustomPrebuiltDomain( - prebuiltDomainCreateObject: Models.PrebuiltDomainCreateObject, - options?: msRest.RequestOptionsBase - ): Promise; + addCustomPrebuiltDomain(prebuiltDomainCreateObject: Models.PrebuiltDomainCreateObject, options?: msRest.RequestOptionsBase): Promise; /** * @param prebuiltDomainCreateObject A prebuilt domain create object containing the name and * culture of the domain. * @param callback The callback */ - addCustomPrebuiltDomain( - prebuiltDomainCreateObject: Models.PrebuiltDomainCreateObject, - callback: msRest.ServiceCallback - ): void; + addCustomPrebuiltDomain(prebuiltDomainCreateObject: Models.PrebuiltDomainCreateObject, callback: msRest.ServiceCallback): void; /** * @param prebuiltDomainCreateObject A prebuilt domain create object containing the name and * culture of the domain. * @param options The optional parameters * @param callback The callback */ - addCustomPrebuiltDomain( - prebuiltDomainCreateObject: Models.PrebuiltDomainCreateObject, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - addCustomPrebuiltDomain( - prebuiltDomainCreateObject: Models.PrebuiltDomainCreateObject, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + addCustomPrebuiltDomain(prebuiltDomainCreateObject: Models.PrebuiltDomainCreateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + addCustomPrebuiltDomain(prebuiltDomainCreateObject: Models.PrebuiltDomainCreateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { prebuiltDomainCreateObject, options }, addCustomPrebuiltDomainOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -819,41 +572,26 @@ export class Apps { * @param [options] The optional parameters * @returns Promise */ - listAvailableCustomPrebuiltDomainsForCulture( - culture: string, - options?: msRest.RequestOptionsBase - ): Promise; + listAvailableCustomPrebuiltDomainsForCulture(culture: string, options?: msRest.RequestOptionsBase): Promise; /** * @param culture Culture. * @param callback The callback */ - listAvailableCustomPrebuiltDomainsForCulture( - culture: string, - callback: msRest.ServiceCallback - ): void; + listAvailableCustomPrebuiltDomainsForCulture(culture: string, callback: msRest.ServiceCallback): void; /** * @param culture Culture. * @param options The optional parameters * @param callback The callback */ - listAvailableCustomPrebuiltDomainsForCulture( - culture: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listAvailableCustomPrebuiltDomainsForCulture( - culture: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listAvailableCustomPrebuiltDomainsForCulture(culture: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listAvailableCustomPrebuiltDomainsForCulture(culture: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { culture, options }, listAvailableCustomPrebuiltDomainsForCultureOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -864,39 +602,21 @@ export class Apps { * @param [options] The optional parameters * @returns Promise */ - packagePublishedApplicationAsGzip( - appId: string, - slotName: string, - options?: msRest.RequestOptionsBase - ): Promise; + packagePublishedApplicationAsGzip(appId: string, slotName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param appId The application ID. * @param slotName The publishing slot name. * @param callback The callback */ - packagePublishedApplicationAsGzip( - appId: string, - slotName: string, - callback: msRest.ServiceCallback - ): void; + packagePublishedApplicationAsGzip(appId: string, slotName: string, callback: msRest.ServiceCallback): void; /** * @param appId The application ID. * @param slotName The publishing slot name. * @param options The optional parameters * @param callback The callback */ - packagePublishedApplicationAsGzip( - appId: string, - slotName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - packagePublishedApplicationAsGzip( - appId: string, - slotName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + packagePublishedApplicationAsGzip(appId: string, slotName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + packagePublishedApplicationAsGzip(appId: string, slotName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { appId, @@ -904,8 +624,7 @@ export class Apps { options }, packagePublishedApplicationAsGzipOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -916,39 +635,21 @@ export class Apps { * @param [options] The optional parameters * @returns Promise */ - packageTrainedApplicationAsGzip( - appId: string, - versionId: string, - options?: msRest.RequestOptionsBase - ): Promise; + packageTrainedApplicationAsGzip(appId: string, versionId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param appId The application ID. * @param versionId The version ID. * @param callback The callback */ - packageTrainedApplicationAsGzip( - appId: string, - versionId: string, - callback: msRest.ServiceCallback - ): void; + packageTrainedApplicationAsGzip(appId: string, versionId: string, callback: msRest.ServiceCallback): void; /** * @param appId The application ID. * @param versionId The version ID. * @param options The optional parameters * @param callback The callback */ - packageTrainedApplicationAsGzip( - appId: string, - versionId: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - packageTrainedApplicationAsGzip( - appId: string, - versionId: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + packageTrainedApplicationAsGzip(appId: string, versionId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + packageTrainedApplicationAsGzip(appId: string, versionId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { appId, @@ -956,8 +657,7 @@ export class Apps { options }, packageTrainedApplicationAsGzipOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -966,7 +666,9 @@ const serializer = new msRest.Serializer(Mappers); const addOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "apps/", - urlParameters: [Parameters.endpoint], + urlParameters: [ + Parameters.endpoint + ], requestBody: { parameterPath: "applicationCreateObject", mapper: { @@ -993,8 +695,13 @@ const addOperationSpec: msRest.OperationSpec = { const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/", - urlParameters: [Parameters.endpoint], - queryParameters: [Parameters.skip, Parameters.take], + urlParameters: [ + Parameters.endpoint + ], + queryParameters: [ + Parameters.skip, + Parameters.take + ], responses: { 200: { bodyMapper: { @@ -1020,8 +727,12 @@ const listOperationSpec: msRest.OperationSpec = { const importMethodOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "apps/import", - urlParameters: [Parameters.endpoint], - queryParameters: [Parameters.appName], + urlParameters: [ + Parameters.endpoint + ], + queryParameters: [ + Parameters.appName + ], requestBody: { parameterPath: "luisApp", mapper: { @@ -1048,7 +759,9 @@ const importMethodOperationSpec: msRest.OperationSpec = { const listCortanaEndpointsOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/assistants", - urlParameters: [Parameters.endpoint], + urlParameters: [ + Parameters.endpoint + ], responses: { 200: { bodyMapper: Mappers.PersonalAssistantsResponse @@ -1063,7 +776,9 @@ const listCortanaEndpointsOperationSpec: msRest.OperationSpec = { const listDomainsOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/domains", - urlParameters: [Parameters.endpoint], + urlParameters: [ + Parameters.endpoint + ], responses: { 200: { bodyMapper: { @@ -1088,7 +803,9 @@ const listDomainsOperationSpec: msRest.OperationSpec = { const listUsageScenariosOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/usagescenarios", - urlParameters: [Parameters.endpoint], + urlParameters: [ + Parameters.endpoint + ], responses: { 200: { bodyMapper: { @@ -1113,7 +830,9 @@ const listUsageScenariosOperationSpec: msRest.OperationSpec = { const listSupportedCulturesOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/cultures", - urlParameters: [Parameters.endpoint], + urlParameters: [ + Parameters.endpoint + ], responses: { 200: { bodyMapper: { @@ -1139,7 +858,10 @@ const listSupportedCulturesOperationSpec: msRest.OperationSpec = { const downloadQueryLogsOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/{appId}/querylogs", - urlParameters: [Parameters.endpoint, Parameters.appId], + urlParameters: [ + Parameters.endpoint, + Parameters.appId + ], responses: { 200: { bodyMapper: { @@ -1157,7 +879,10 @@ const downloadQueryLogsOperationSpec: msRest.OperationSpec = { const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/{appId}", - urlParameters: [Parameters.endpoint, Parameters.appId], + urlParameters: [ + Parameters.endpoint, + Parameters.appId + ], responses: { 200: { bodyMapper: Mappers.ApplicationInfoResponse @@ -1172,7 +897,10 @@ const getOperationSpec: msRest.OperationSpec = { const updateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", path: "apps/{appId}", - urlParameters: [Parameters.endpoint, Parameters.appId], + urlParameters: [ + Parameters.endpoint, + Parameters.appId + ], requestBody: { parameterPath: "applicationUpdateObject", mapper: { @@ -1194,8 +922,13 @@ const updateOperationSpec: msRest.OperationSpec = { const deleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", path: "apps/{appId}", - urlParameters: [Parameters.endpoint, Parameters.appId], - queryParameters: [Parameters.force], + urlParameters: [ + Parameters.endpoint, + Parameters.appId + ], + queryParameters: [ + Parameters.force + ], responses: { 200: { bodyMapper: Mappers.OperationStatus @@ -1210,7 +943,10 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { const publishOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "apps/{appId}/publish", - urlParameters: [Parameters.endpoint, Parameters.appId], + urlParameters: [ + Parameters.endpoint, + Parameters.appId + ], requestBody: { parameterPath: "applicationPublishObject", mapper: { @@ -1235,7 +971,10 @@ const publishOperationSpec: msRest.OperationSpec = { const getSettingsOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/{appId}/settings", - urlParameters: [Parameters.endpoint, Parameters.appId], + urlParameters: [ + Parameters.endpoint, + Parameters.appId + ], responses: { 200: { bodyMapper: Mappers.ApplicationSettings @@ -1250,7 +989,10 @@ const getSettingsOperationSpec: msRest.OperationSpec = { const updateSettingsOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", path: "apps/{appId}/settings", - urlParameters: [Parameters.endpoint, Parameters.appId], + urlParameters: [ + Parameters.endpoint, + Parameters.appId + ], requestBody: { parameterPath: "applicationSettingUpdateObject", mapper: { @@ -1272,7 +1014,10 @@ const updateSettingsOperationSpec: msRest.OperationSpec = { const getPublishSettingsOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/{appId}/publishsettings", - urlParameters: [Parameters.endpoint, Parameters.appId], + urlParameters: [ + Parameters.endpoint, + Parameters.appId + ], responses: { 200: { bodyMapper: Mappers.PublishSettings @@ -1287,7 +1032,10 @@ const getPublishSettingsOperationSpec: msRest.OperationSpec = { const updatePublishSettingsOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", path: "apps/{appId}/publishsettings", - urlParameters: [Parameters.endpoint, Parameters.appId], + urlParameters: [ + Parameters.endpoint, + Parameters.appId + ], requestBody: { parameterPath: "publishSettingUpdateObject", mapper: { @@ -1309,7 +1057,10 @@ const updatePublishSettingsOperationSpec: msRest.OperationSpec = { const listEndpointsOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/{appId}/endpoints", - urlParameters: [Parameters.endpoint, Parameters.appId], + urlParameters: [ + Parameters.endpoint, + Parameters.appId + ], responses: { 200: { bodyMapper: { @@ -1334,7 +1085,9 @@ const listEndpointsOperationSpec: msRest.OperationSpec = { const listAvailableCustomPrebuiltDomainsOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/customprebuiltdomains", - urlParameters: [Parameters.endpoint], + urlParameters: [ + Parameters.endpoint + ], responses: { 200: { bodyMapper: { @@ -1360,7 +1113,9 @@ const listAvailableCustomPrebuiltDomainsOperationSpec: msRest.OperationSpec = { const addCustomPrebuiltDomainOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "apps/customprebuiltdomains", - urlParameters: [Parameters.endpoint], + urlParameters: [ + Parameters.endpoint + ], requestBody: { parameterPath: "prebuiltDomainCreateObject", mapper: { @@ -1387,7 +1142,10 @@ const addCustomPrebuiltDomainOperationSpec: msRest.OperationSpec = { const listAvailableCustomPrebuiltDomainsForCultureOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/customprebuiltdomains/{culture}", - urlParameters: [Parameters.endpoint, Parameters.culture], + urlParameters: [ + Parameters.endpoint, + Parameters.culture + ], responses: { 200: { bodyMapper: { @@ -1413,7 +1171,11 @@ const listAvailableCustomPrebuiltDomainsForCultureOperationSpec: msRest.Operatio const packagePublishedApplicationAsGzipOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "package/{appId}/slot/{slotName}/gzip", - urlParameters: [Parameters.endpoint, Parameters.appId, Parameters.slotName], + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.slotName + ], responses: { 200: { bodyMapper: { @@ -1433,7 +1195,11 @@ const packagePublishedApplicationAsGzipOperationSpec: msRest.OperationSpec = { const packageTrainedApplicationAsGzipOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "package/{appId}/versions/{versionId}/gzip", - urlParameters: [Parameters.endpoint, Parameters.appId, Parameters.versionId0], + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0 + ], responses: { 200: { bodyMapper: { diff --git a/sdk/cognitiveservices/cognitiveservices-luis-authoring/src/operations/azureAccounts.ts b/sdk/cognitiveservices/cognitiveservices-luis-authoring/src/operations/azureAccounts.ts index d3318ac5c7d3..e1cfd31a3720 100644 --- a/sdk/cognitiveservices/cognitiveservices-luis-authoring/src/operations/azureAccounts.ts +++ b/sdk/cognitiveservices/cognitiveservices-luis-authoring/src/operations/azureAccounts.ts @@ -33,10 +33,7 @@ export class AzureAccounts { * @param [options] The optional parameters * @returns Promise */ - assignToApp( - appId: string, - options?: Models.AzureAccountsAssignToAppOptionalParams - ): Promise; + assignToApp(appId: string, options?: Models.AzureAccountsAssignToAppOptionalParams): Promise; /** * @param appId The application ID. * @param callback The callback @@ -47,26 +44,15 @@ export class AzureAccounts { * @param options The optional parameters * @param callback The callback */ - assignToApp( - appId: string, - options: Models.AzureAccountsAssignToAppOptionalParams, - callback: msRest.ServiceCallback - ): void; - assignToApp( - appId: string, - options?: - | Models.AzureAccountsAssignToAppOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + assignToApp(appId: string, options: Models.AzureAccountsAssignToAppOptionalParams, callback: msRest.ServiceCallback): void; + assignToApp(appId: string, options?: Models.AzureAccountsAssignToAppOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { appId, options }, assignToAppOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -76,41 +62,26 @@ export class AzureAccounts { * @param [options] The optional parameters * @returns Promise */ - getAssigned( - appId: string, - options?: msRest.RequestOptionsBase - ): Promise; + getAssigned(appId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param appId The application ID. * @param callback The callback */ - getAssigned( - appId: string, - callback: msRest.ServiceCallback - ): void; + getAssigned(appId: string, callback: msRest.ServiceCallback): void; /** * @param appId The application ID. * @param options The optional parameters * @param callback The callback */ - getAssigned( - appId: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getAssigned( - appId: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getAssigned(appId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getAssigned(appId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { appId, options }, getAssignedOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -120,10 +91,7 @@ export class AzureAccounts { * @param [options] The optional parameters * @returns Promise */ - removeFromApp( - appId: string, - options?: Models.AzureAccountsRemoveFromAppOptionalParams - ): Promise; + removeFromApp(appId: string, options?: Models.AzureAccountsRemoveFromAppOptionalParams): Promise; /** * @param appId The application ID. * @param callback The callback @@ -134,26 +102,15 @@ export class AzureAccounts { * @param options The optional parameters * @param callback The callback */ - removeFromApp( - appId: string, - options: Models.AzureAccountsRemoveFromAppOptionalParams, - callback: msRest.ServiceCallback - ): void; - removeFromApp( - appId: string, - options?: - | Models.AzureAccountsRemoveFromAppOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + removeFromApp(appId: string, options: Models.AzureAccountsRemoveFromAppOptionalParams, callback: msRest.ServiceCallback): void; + removeFromApp(appId: string, options?: Models.AzureAccountsRemoveFromAppOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { appId, options }, removeFromAppOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -162,9 +119,7 @@ export class AzureAccounts { * @param [options] The optional parameters * @returns Promise */ - listUserLUISAccounts( - options?: msRest.RequestOptionsBase - ): Promise; + listUserLUISAccounts(options?: msRest.RequestOptionsBase): Promise; /** * @param callback The callback */ @@ -173,21 +128,14 @@ export class AzureAccounts { * @param options The optional parameters * @param callback The callback */ - listUserLUISAccounts( - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listUserLUISAccounts( - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listUserLUISAccounts(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listUserLUISAccounts(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { options }, listUserLUISAccountsOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -196,9 +144,15 @@ const serializer = new msRest.Serializer(Mappers); const assignToAppOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "apps/{appId}/azureaccounts", - urlParameters: [Parameters.endpoint, Parameters.appId], + urlParameters: [ + Parameters.endpoint, + Parameters.appId + ], requestBody: { - parameterPath: ["options", "azureAccountInfoObject"], + parameterPath: [ + "options", + "azureAccountInfoObject" + ], mapper: Mappers.AzureAccountInfoObject }, responses: { @@ -215,7 +169,10 @@ const assignToAppOperationSpec: msRest.OperationSpec = { const getAssignedOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/{appId}/azureaccounts", - urlParameters: [Parameters.endpoint, Parameters.appId], + urlParameters: [ + Parameters.endpoint, + Parameters.appId + ], responses: { 200: { bodyMapper: { @@ -241,9 +198,15 @@ const getAssignedOperationSpec: msRest.OperationSpec = { const removeFromAppOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", path: "apps/{appId}/azureaccounts", - urlParameters: [Parameters.endpoint, Parameters.appId], + urlParameters: [ + Parameters.endpoint, + Parameters.appId + ], requestBody: { - parameterPath: ["options", "azureAccountInfoObject"], + parameterPath: [ + "options", + "azureAccountInfoObject" + ], mapper: Mappers.AzureAccountInfoObject }, responses: { @@ -260,7 +223,9 @@ const removeFromAppOperationSpec: msRest.OperationSpec = { const listUserLUISAccountsOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "azureaccounts", - urlParameters: [Parameters.endpoint], + urlParameters: [ + Parameters.endpoint + ], responses: { 200: { bodyMapper: { diff --git a/sdk/cognitiveservices/cognitiveservices-luis-authoring/src/operations/examples.ts b/sdk/cognitiveservices/cognitiveservices-luis-authoring/src/operations/examples.ts index fded2675c6c6..4e2903a5248a 100644 --- a/sdk/cognitiveservices/cognitiveservices-luis-authoring/src/operations/examples.ts +++ b/sdk/cognitiveservices/cognitiveservices-luis-authoring/src/operations/examples.ts @@ -34,24 +34,14 @@ export class Examples { * @param [options] The optional parameters * @returns Promise */ - add( - appId: string, - versionId: string, - exampleLabelObject: Models.ExampleLabelObject, - options?: msRest.RequestOptionsBase - ): Promise; + add(appId: string, versionId: string, exampleLabelObject: Models.ExampleLabelObject, options?: msRest.RequestOptionsBase): Promise; /** * @param appId The application ID. * @param versionId The version ID. * @param exampleLabelObject A labeled example utterance with the expected intent and entities. * @param callback The callback */ - add( - appId: string, - versionId: string, - exampleLabelObject: Models.ExampleLabelObject, - callback: msRest.ServiceCallback - ): void; + add(appId: string, versionId: string, exampleLabelObject: Models.ExampleLabelObject, callback: msRest.ServiceCallback): void; /** * @param appId The application ID. * @param versionId The version ID. @@ -59,20 +49,8 @@ export class Examples { * @param options The optional parameters * @param callback The callback */ - add( - appId: string, - versionId: string, - exampleLabelObject: Models.ExampleLabelObject, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - add( - appId: string, - versionId: string, - exampleLabelObject: Models.ExampleLabelObject, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + add(appId: string, versionId: string, exampleLabelObject: Models.ExampleLabelObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + add(appId: string, versionId: string, exampleLabelObject: Models.ExampleLabelObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { appId, @@ -81,8 +59,7 @@ export class Examples { options }, addOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -93,24 +70,14 @@ export class Examples { * @param [options] The optional parameters * @returns Promise */ - batch( - appId: string, - versionId: string, - exampleLabelObjectArray: Models.ExampleLabelObject[], - options?: msRest.RequestOptionsBase - ): Promise; + batch(appId: string, versionId: string, exampleLabelObjectArray: Models.ExampleLabelObject[], options?: msRest.RequestOptionsBase): Promise; /** * @param appId The application ID. * @param versionId The version ID. * @param exampleLabelObjectArray Array of example utterances. * @param callback The callback */ - batch( - appId: string, - versionId: string, - exampleLabelObjectArray: Models.ExampleLabelObject[], - callback: msRest.ServiceCallback - ): void; + batch(appId: string, versionId: string, exampleLabelObjectArray: Models.ExampleLabelObject[], callback: msRest.ServiceCallback): void; /** * @param appId The application ID. * @param versionId The version ID. @@ -118,20 +85,8 @@ export class Examples { * @param options The optional parameters * @param callback The callback */ - batch( - appId: string, - versionId: string, - exampleLabelObjectArray: Models.ExampleLabelObject[], - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - batch( - appId: string, - versionId: string, - exampleLabelObjectArray: Models.ExampleLabelObject[], - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + batch(appId: string, versionId: string, exampleLabelObjectArray: Models.ExampleLabelObject[], options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + batch(appId: string, versionId: string, exampleLabelObjectArray: Models.ExampleLabelObject[], options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { appId, @@ -140,8 +95,7 @@ export class Examples { options }, batchOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -151,39 +105,21 @@ export class Examples { * @param [options] The optional parameters * @returns Promise */ - list( - appId: string, - versionId: string, - options?: Models.ExamplesListOptionalParams - ): Promise; + list(appId: string, versionId: string, options?: Models.ExamplesListOptionalParams): Promise; /** * @param appId The application ID. * @param versionId The version ID. * @param callback The callback */ - list( - appId: string, - versionId: string, - callback: msRest.ServiceCallback - ): void; + list(appId: string, versionId: string, callback: msRest.ServiceCallback): void; /** * @param appId The application ID. * @param versionId The version ID. * @param options The optional parameters * @param callback The callback */ - list( - appId: string, - versionId: string, - options: Models.ExamplesListOptionalParams, - callback: msRest.ServiceCallback - ): void; - list( - appId: string, - versionId: string, - options?: Models.ExamplesListOptionalParams | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + list(appId: string, versionId: string, options: Models.ExamplesListOptionalParams, callback: msRest.ServiceCallback): void; + list(appId: string, versionId: string, options?: Models.ExamplesListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { appId, @@ -191,8 +127,7 @@ export class Examples { options }, listOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -203,24 +138,14 @@ export class Examples { * @param [options] The optional parameters * @returns Promise */ - deleteMethod( - appId: string, - versionId: string, - exampleId: number, - options?: msRest.RequestOptionsBase - ): Promise; + deleteMethod(appId: string, versionId: string, exampleId: number, options?: msRest.RequestOptionsBase): Promise; /** * @param appId The application ID. * @param versionId The version ID. * @param exampleId The example ID. * @param callback The callback */ - deleteMethod( - appId: string, - versionId: string, - exampleId: number, - callback: msRest.ServiceCallback - ): void; + deleteMethod(appId: string, versionId: string, exampleId: number, callback: msRest.ServiceCallback): void; /** * @param appId The application ID. * @param versionId The version ID. @@ -228,20 +153,8 @@ export class Examples { * @param options The optional parameters * @param callback The callback */ - deleteMethod( - appId: string, - versionId: string, - exampleId: number, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - deleteMethod( - appId: string, - versionId: string, - exampleId: number, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + deleteMethod(appId: string, versionId: string, exampleId: number, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(appId: string, versionId: string, exampleId: number, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { appId, @@ -250,8 +163,7 @@ export class Examples { options }, deleteMethodOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -260,7 +172,11 @@ const serializer = new msRest.Serializer(Mappers); const addOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "apps/{appId}/versions/{versionId}/example", - urlParameters: [Parameters.endpoint, Parameters.appId, Parameters.versionId0], + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0 + ], requestBody: { parameterPath: "exampleLabelObject", mapper: { @@ -282,7 +198,11 @@ const addOperationSpec: msRest.OperationSpec = { const batchOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "apps/{appId}/versions/{versionId}/examples", - urlParameters: [Parameters.endpoint, Parameters.appId, Parameters.versionId0], + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0 + ], requestBody: { parameterPath: "exampleLabelObjectArray", mapper: { @@ -338,8 +258,15 @@ const batchOperationSpec: msRest.OperationSpec = { const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/{appId}/versions/{versionId}/examples", - urlParameters: [Parameters.endpoint, Parameters.appId, Parameters.versionId0], - queryParameters: [Parameters.skip, Parameters.take], + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0 + ], + queryParameters: [ + Parameters.skip, + Parameters.take + ], responses: { 200: { bodyMapper: { diff --git a/sdk/cognitiveservices/cognitiveservices-luis-authoring/src/operations/features.ts b/sdk/cognitiveservices/cognitiveservices-luis-authoring/src/operations/features.ts index 12ca06d4a2d9..35a89aea96de 100644 --- a/sdk/cognitiveservices/cognitiveservices-luis-authoring/src/operations/features.ts +++ b/sdk/cognitiveservices/cognitiveservices-luis-authoring/src/operations/features.ts @@ -34,22 +34,14 @@ export class Features { * @deprecated This operation is deprecated. Please do not use it any longer. * @returns Promise */ - listApplicationVersionPatternFeatures( - appId: string, - versionId: string, - options?: Models.FeaturesListApplicationVersionPatternFeaturesOptionalParams - ): Promise; + listApplicationVersionPatternFeatures(appId: string, versionId: string, options?: Models.FeaturesListApplicationVersionPatternFeaturesOptionalParams): Promise; /** * @param appId The application ID. * @param versionId The version ID. * @param callback The callback * @deprecated This operation is deprecated. Please do not use it any longer. */ - listApplicationVersionPatternFeatures( - appId: string, - versionId: string, - callback: msRest.ServiceCallback - ): void; + listApplicationVersionPatternFeatures(appId: string, versionId: string, callback: msRest.ServiceCallback): void; /** * @param appId The application ID. * @param versionId The version ID. @@ -57,20 +49,8 @@ export class Features { * @param callback The callback * @deprecated This operation is deprecated. Please do not use it any longer. */ - listApplicationVersionPatternFeatures( - appId: string, - versionId: string, - options: Models.FeaturesListApplicationVersionPatternFeaturesOptionalParams, - callback: msRest.ServiceCallback - ): void; - listApplicationVersionPatternFeatures( - appId: string, - versionId: string, - options?: - | Models.FeaturesListApplicationVersionPatternFeaturesOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listApplicationVersionPatternFeatures(appId: string, versionId: string, options: Models.FeaturesListApplicationVersionPatternFeaturesOptionalParams, callback: msRest.ServiceCallback): void; + listApplicationVersionPatternFeatures(appId: string, versionId: string, options?: Models.FeaturesListApplicationVersionPatternFeaturesOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { appId, @@ -78,8 +58,7 @@ export class Features { options }, listApplicationVersionPatternFeaturesOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -91,12 +70,7 @@ export class Features { * @param [options] The optional parameters * @returns Promise */ - addPhraseList( - appId: string, - versionId: string, - phraselistCreateObject: Models.PhraselistCreateObject, - options?: msRest.RequestOptionsBase - ): Promise; + addPhraseList(appId: string, versionId: string, phraselistCreateObject: Models.PhraselistCreateObject, options?: msRest.RequestOptionsBase): Promise; /** * @param appId The application ID. * @param versionId The version ID. @@ -104,12 +78,7 @@ export class Features { * the isExchangeable boolean. Default value for isExchangeable is true. * @param callback The callback */ - addPhraseList( - appId: string, - versionId: string, - phraselistCreateObject: Models.PhraselistCreateObject, - callback: msRest.ServiceCallback - ): void; + addPhraseList(appId: string, versionId: string, phraselistCreateObject: Models.PhraselistCreateObject, callback: msRest.ServiceCallback): void; /** * @param appId The application ID. * @param versionId The version ID. @@ -118,20 +87,8 @@ export class Features { * @param options The optional parameters * @param callback The callback */ - addPhraseList( - appId: string, - versionId: string, - phraselistCreateObject: Models.PhraselistCreateObject, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - addPhraseList( - appId: string, - versionId: string, - phraselistCreateObject: Models.PhraselistCreateObject, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + addPhraseList(appId: string, versionId: string, phraselistCreateObject: Models.PhraselistCreateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + addPhraseList(appId: string, versionId: string, phraselistCreateObject: Models.PhraselistCreateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { appId, @@ -140,8 +97,7 @@ export class Features { options }, addPhraseListOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -151,41 +107,21 @@ export class Features { * @param [options] The optional parameters * @returns Promise */ - listPhraseLists( - appId: string, - versionId: string, - options?: Models.FeaturesListPhraseListsOptionalParams - ): Promise; + listPhraseLists(appId: string, versionId: string, options?: Models.FeaturesListPhraseListsOptionalParams): Promise; /** * @param appId The application ID. * @param versionId The version ID. * @param callback The callback */ - listPhraseLists( - appId: string, - versionId: string, - callback: msRest.ServiceCallback - ): void; + listPhraseLists(appId: string, versionId: string, callback: msRest.ServiceCallback): void; /** * @param appId The application ID. * @param versionId The version ID. * @param options The optional parameters * @param callback The callback */ - listPhraseLists( - appId: string, - versionId: string, - options: Models.FeaturesListPhraseListsOptionalParams, - callback: msRest.ServiceCallback - ): void; - listPhraseLists( - appId: string, - versionId: string, - options?: - | Models.FeaturesListPhraseListsOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listPhraseLists(appId: string, versionId: string, options: Models.FeaturesListPhraseListsOptionalParams, callback: msRest.ServiceCallback): void; + listPhraseLists(appId: string, versionId: string, options?: Models.FeaturesListPhraseListsOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { appId, @@ -193,8 +129,7 @@ export class Features { options }, listPhraseListsOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -204,41 +139,21 @@ export class Features { * @param [options] The optional parameters * @returns Promise */ - list( - appId: string, - versionId: string, - options?: Models.FeaturesListOptionalParams - ): Promise; + list(appId: string, versionId: string, options?: Models.FeaturesListOptionalParams): Promise; /** * @param appId The application ID. * @param versionId The version ID. * @param callback The callback */ - list( - appId: string, - versionId: string, - callback: msRest.ServiceCallback - ): void; + list(appId: string, versionId: string, callback: msRest.ServiceCallback): void; /** * @param appId The application ID. * @param versionId The version ID. * @param options The optional parameters * @param callback The callback */ - list( - appId: string, - versionId: string, - options: Models.FeaturesListOptionalParams, - callback: msRest.ServiceCallback - ): void; - list( - appId: string, - versionId: string, - options?: - | Models.FeaturesListOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + list(appId: string, versionId: string, options: Models.FeaturesListOptionalParams, callback: msRest.ServiceCallback): void; + list(appId: string, versionId: string, options?: Models.FeaturesListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { appId, @@ -246,8 +161,7 @@ export class Features { options }, listOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -258,24 +172,14 @@ export class Features { * @param [options] The optional parameters * @returns Promise */ - getPhraseList( - appId: string, - versionId: string, - phraselistId: number, - options?: msRest.RequestOptionsBase - ): Promise; + getPhraseList(appId: string, versionId: string, phraselistId: number, options?: msRest.RequestOptionsBase): Promise; /** * @param appId The application ID. * @param versionId The version ID. * @param phraselistId The ID of the feature to be retrieved. * @param callback The callback */ - getPhraseList( - appId: string, - versionId: string, - phraselistId: number, - callback: msRest.ServiceCallback - ): void; + getPhraseList(appId: string, versionId: string, phraselistId: number, callback: msRest.ServiceCallback): void; /** * @param appId The application ID. * @param versionId The version ID. @@ -283,20 +187,8 @@ export class Features { * @param options The optional parameters * @param callback The callback */ - getPhraseList( - appId: string, - versionId: string, - phraselistId: number, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getPhraseList( - appId: string, - versionId: string, - phraselistId: number, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getPhraseList(appId: string, versionId: string, phraselistId: number, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getPhraseList(appId: string, versionId: string, phraselistId: number, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { appId, @@ -305,8 +197,7 @@ export class Features { options }, getPhraseListOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -318,24 +209,14 @@ export class Features { * @param [options] The optional parameters * @returns Promise */ - updatePhraseList( - appId: string, - versionId: string, - phraselistId: number, - options?: Models.FeaturesUpdatePhraseListOptionalParams - ): Promise; + updatePhraseList(appId: string, versionId: string, phraselistId: number, options?: Models.FeaturesUpdatePhraseListOptionalParams): Promise; /** * @param appId The application ID. * @param versionId The version ID. * @param phraselistId The ID of the feature to be updated. * @param callback The callback */ - updatePhraseList( - appId: string, - versionId: string, - phraselistId: number, - callback: msRest.ServiceCallback - ): void; + updatePhraseList(appId: string, versionId: string, phraselistId: number, callback: msRest.ServiceCallback): void; /** * @param appId The application ID. * @param versionId The version ID. @@ -343,22 +224,8 @@ export class Features { * @param options The optional parameters * @param callback The callback */ - updatePhraseList( - appId: string, - versionId: string, - phraselistId: number, - options: Models.FeaturesUpdatePhraseListOptionalParams, - callback: msRest.ServiceCallback - ): void; - updatePhraseList( - appId: string, - versionId: string, - phraselistId: number, - options?: - | Models.FeaturesUpdatePhraseListOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + updatePhraseList(appId: string, versionId: string, phraselistId: number, options: Models.FeaturesUpdatePhraseListOptionalParams, callback: msRest.ServiceCallback): void; + updatePhraseList(appId: string, versionId: string, phraselistId: number, options?: Models.FeaturesUpdatePhraseListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { appId, @@ -367,8 +234,7 @@ export class Features { options }, updatePhraseListOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -379,24 +245,14 @@ export class Features { * @param [options] The optional parameters * @returns Promise */ - deletePhraseList( - appId: string, - versionId: string, - phraselistId: number, - options?: msRest.RequestOptionsBase - ): Promise; + deletePhraseList(appId: string, versionId: string, phraselistId: number, options?: msRest.RequestOptionsBase): Promise; /** * @param appId The application ID. * @param versionId The version ID. * @param phraselistId The ID of the feature to be deleted. * @param callback The callback */ - deletePhraseList( - appId: string, - versionId: string, - phraselistId: number, - callback: msRest.ServiceCallback - ): void; + deletePhraseList(appId: string, versionId: string, phraselistId: number, callback: msRest.ServiceCallback): void; /** * @param appId The application ID. * @param versionId The version ID. @@ -404,20 +260,8 @@ export class Features { * @param options The optional parameters * @param callback The callback */ - deletePhraseList( - appId: string, - versionId: string, - phraselistId: number, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - deletePhraseList( - appId: string, - versionId: string, - phraselistId: number, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + deletePhraseList(appId: string, versionId: string, phraselistId: number, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deletePhraseList(appId: string, versionId: string, phraselistId: number, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { appId, @@ -426,8 +270,7 @@ export class Features { options }, deletePhraseListOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -436,8 +279,15 @@ const serializer = new msRest.Serializer(Mappers); const listApplicationVersionPatternFeaturesOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/{appId}/versions/{versionId}/patterns", - urlParameters: [Parameters.endpoint, Parameters.appId, Parameters.versionId0], - queryParameters: [Parameters.skip, Parameters.take], + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0 + ], + queryParameters: [ + Parameters.skip, + Parameters.take + ], responses: { 200: { bodyMapper: { @@ -463,7 +313,11 @@ const listApplicationVersionPatternFeaturesOperationSpec: msRest.OperationSpec = const addPhraseListOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "apps/{appId}/versions/{versionId}/phraselists", - urlParameters: [Parameters.endpoint, Parameters.appId, Parameters.versionId0], + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0 + ], requestBody: { parameterPath: "phraselistCreateObject", mapper: { @@ -490,8 +344,15 @@ const addPhraseListOperationSpec: msRest.OperationSpec = { const listPhraseListsOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/{appId}/versions/{versionId}/phraselists", - urlParameters: [Parameters.endpoint, Parameters.appId, Parameters.versionId0], - queryParameters: [Parameters.skip, Parameters.take], + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0 + ], + queryParameters: [ + Parameters.skip, + Parameters.take + ], responses: { 200: { bodyMapper: { @@ -517,8 +378,15 @@ const listPhraseListsOperationSpec: msRest.OperationSpec = { const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/{appId}/versions/{versionId}/features", - urlParameters: [Parameters.endpoint, Parameters.appId, Parameters.versionId0], - queryParameters: [Parameters.skip, Parameters.take], + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0 + ], + queryParameters: [ + Parameters.skip, + Parameters.take + ], responses: { 200: { bodyMapper: Mappers.FeaturesResponseObject @@ -560,7 +428,10 @@ const updatePhraseListOperationSpec: msRest.OperationSpec = { Parameters.phraselistId ], requestBody: { - parameterPath: ["options", "phraselistUpdateObject"], + parameterPath: [ + "options", + "phraselistUpdateObject" + ], mapper: Mappers.PhraselistUpdateObject }, responses: { diff --git a/sdk/cognitiveservices/cognitiveservices-luis-authoring/src/operations/pattern.ts b/sdk/cognitiveservices/cognitiveservices-luis-authoring/src/operations/pattern.ts index 62366219a560..3ad7620eff42 100644 --- a/sdk/cognitiveservices/cognitiveservices-luis-authoring/src/operations/pattern.ts +++ b/sdk/cognitiveservices/cognitiveservices-luis-authoring/src/operations/pattern.ts @@ -4,7 +4,8 @@ * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. */ import * as msRest from "@azure/ms-rest-js"; @@ -33,24 +34,14 @@ export class Pattern { * @param [options] The optional parameters * @returns Promise */ - addPattern( - appId: string, - versionId: string, - pattern: Models.PatternRuleCreateObject, - options?: msRest.RequestOptionsBase - ): Promise; + addPattern(appId: string, versionId: string, pattern: Models.PatternRuleCreateObject, options?: msRest.RequestOptionsBase): Promise; /** * @param appId The application ID. * @param versionId The version ID. * @param pattern The input pattern. * @param callback The callback */ - addPattern( - appId: string, - versionId: string, - pattern: Models.PatternRuleCreateObject, - callback: msRest.ServiceCallback - ): void; + addPattern(appId: string, versionId: string, pattern: Models.PatternRuleCreateObject, callback: msRest.ServiceCallback): void; /** * @param appId The application ID. * @param versionId The version ID. @@ -58,20 +49,8 @@ export class Pattern { * @param options The optional parameters * @param callback The callback */ - addPattern( - appId: string, - versionId: string, - pattern: Models.PatternRuleCreateObject, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - addPattern( - appId: string, - versionId: string, - pattern: Models.PatternRuleCreateObject, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + addPattern(appId: string, versionId: string, pattern: Models.PatternRuleCreateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + addPattern(appId: string, versionId: string, pattern: Models.PatternRuleCreateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { appId, @@ -80,8 +59,7 @@ export class Pattern { options }, addPatternOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -91,41 +69,21 @@ export class Pattern { * @param [options] The optional parameters * @returns Promise */ - listPatterns( - appId: string, - versionId: string, - options?: Models.PatternListPatternsOptionalParams - ): Promise; + listPatterns(appId: string, versionId: string, options?: Models.PatternListPatternsOptionalParams): Promise; /** * @param appId The application ID. * @param versionId The version ID. * @param callback The callback */ - listPatterns( - appId: string, - versionId: string, - callback: msRest.ServiceCallback - ): void; + listPatterns(appId: string, versionId: string, callback: msRest.ServiceCallback): void; /** * @param appId The application ID. * @param versionId The version ID. * @param options The optional parameters * @param callback The callback */ - listPatterns( - appId: string, - versionId: string, - options: Models.PatternListPatternsOptionalParams, - callback: msRest.ServiceCallback - ): void; - listPatterns( - appId: string, - versionId: string, - options?: - | Models.PatternListPatternsOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listPatterns(appId: string, versionId: string, options: Models.PatternListPatternsOptionalParams, callback: msRest.ServiceCallback): void; + listPatterns(appId: string, versionId: string, options?: Models.PatternListPatternsOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { appId, @@ -133,8 +91,7 @@ export class Pattern { options }, listPatternsOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -145,24 +102,14 @@ export class Pattern { * @param [options] The optional parameters * @returns Promise */ - updatePatterns( - appId: string, - versionId: string, - patterns: Models.PatternRuleUpdateObject[], - options?: msRest.RequestOptionsBase - ): Promise; + updatePatterns(appId: string, versionId: string, patterns: Models.PatternRuleUpdateObject[], options?: msRest.RequestOptionsBase): Promise; /** * @param appId The application ID. * @param versionId The version ID. * @param patterns An array represents the patterns. * @param callback The callback */ - updatePatterns( - appId: string, - versionId: string, - patterns: Models.PatternRuleUpdateObject[], - callback: msRest.ServiceCallback - ): void; + updatePatterns(appId: string, versionId: string, patterns: Models.PatternRuleUpdateObject[], callback: msRest.ServiceCallback): void; /** * @param appId The application ID. * @param versionId The version ID. @@ -170,20 +117,8 @@ export class Pattern { * @param options The optional parameters * @param callback The callback */ - updatePatterns( - appId: string, - versionId: string, - patterns: Models.PatternRuleUpdateObject[], - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - updatePatterns( - appId: string, - versionId: string, - patterns: Models.PatternRuleUpdateObject[], - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + updatePatterns(appId: string, versionId: string, patterns: Models.PatternRuleUpdateObject[], options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updatePatterns(appId: string, versionId: string, patterns: Models.PatternRuleUpdateObject[], options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { appId, @@ -192,8 +127,7 @@ export class Pattern { options }, updatePatternsOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -204,24 +138,14 @@ export class Pattern { * @param [options] The optional parameters * @returns Promise */ - batchAddPatterns( - appId: string, - versionId: string, - patterns: Models.PatternRuleCreateObject[], - options?: msRest.RequestOptionsBase - ): Promise; + batchAddPatterns(appId: string, versionId: string, patterns: Models.PatternRuleCreateObject[], options?: msRest.RequestOptionsBase): Promise; /** * @param appId The application ID. * @param versionId The version ID. * @param patterns A JSON array containing patterns. * @param callback The callback */ - batchAddPatterns( - appId: string, - versionId: string, - patterns: Models.PatternRuleCreateObject[], - callback: msRest.ServiceCallback - ): void; + batchAddPatterns(appId: string, versionId: string, patterns: Models.PatternRuleCreateObject[], callback: msRest.ServiceCallback): void; /** * @param appId The application ID. * @param versionId The version ID. @@ -229,20 +153,8 @@ export class Pattern { * @param options The optional parameters * @param callback The callback */ - batchAddPatterns( - appId: string, - versionId: string, - patterns: Models.PatternRuleCreateObject[], - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - batchAddPatterns( - appId: string, - versionId: string, - patterns: Models.PatternRuleCreateObject[], - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + batchAddPatterns(appId: string, versionId: string, patterns: Models.PatternRuleCreateObject[], options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + batchAddPatterns(appId: string, versionId: string, patterns: Models.PatternRuleCreateObject[], options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { appId, @@ -251,8 +163,7 @@ export class Pattern { options }, batchAddPatternsOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -263,24 +174,14 @@ export class Pattern { * @param [options] The optional parameters * @returns Promise */ - deletePatterns( - appId: string, - versionId: string, - patternIds: string[], - options?: msRest.RequestOptionsBase - ): Promise; + deletePatterns(appId: string, versionId: string, patternIds: string[], options?: msRest.RequestOptionsBase): Promise; /** * @param appId The application ID. * @param versionId The version ID. * @param patternIds The patterns IDs. * @param callback The callback */ - deletePatterns( - appId: string, - versionId: string, - patternIds: string[], - callback: msRest.ServiceCallback - ): void; + deletePatterns(appId: string, versionId: string, patternIds: string[], callback: msRest.ServiceCallback): void; /** * @param appId The application ID. * @param versionId The version ID. @@ -288,20 +189,8 @@ export class Pattern { * @param options The optional parameters * @param callback The callback */ - deletePatterns( - appId: string, - versionId: string, - patternIds: string[], - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - deletePatterns( - appId: string, - versionId: string, - patternIds: string[], - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + deletePatterns(appId: string, versionId: string, patternIds: string[], options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deletePatterns(appId: string, versionId: string, patternIds: string[], options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { appId, @@ -310,8 +199,7 @@ export class Pattern { options }, deletePatternsOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -323,13 +211,7 @@ export class Pattern { * @param [options] The optional parameters * @returns Promise */ - updatePattern( - appId: string, - versionId: string, - patternId: string, - pattern: Models.PatternRuleUpdateObject, - options?: msRest.RequestOptionsBase - ): Promise; + updatePattern(appId: string, versionId: string, patternId: string, pattern: Models.PatternRuleUpdateObject, options?: msRest.RequestOptionsBase): Promise; /** * @param appId The application ID. * @param versionId The version ID. @@ -337,13 +219,7 @@ export class Pattern { * @param pattern An object representing a pattern. * @param callback The callback */ - updatePattern( - appId: string, - versionId: string, - patternId: string, - pattern: Models.PatternRuleUpdateObject, - callback: msRest.ServiceCallback - ): void; + updatePattern(appId: string, versionId: string, patternId: string, pattern: Models.PatternRuleUpdateObject, callback: msRest.ServiceCallback): void; /** * @param appId The application ID. * @param versionId The version ID. @@ -352,22 +228,8 @@ export class Pattern { * @param options The optional parameters * @param callback The callback */ - updatePattern( - appId: string, - versionId: string, - patternId: string, - pattern: Models.PatternRuleUpdateObject, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - updatePattern( - appId: string, - versionId: string, - patternId: string, - pattern: Models.PatternRuleUpdateObject, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + updatePattern(appId: string, versionId: string, patternId: string, pattern: Models.PatternRuleUpdateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updatePattern(appId: string, versionId: string, patternId: string, pattern: Models.PatternRuleUpdateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { appId, @@ -377,8 +239,7 @@ export class Pattern { options }, updatePatternOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -389,24 +250,14 @@ export class Pattern { * @param [options] The optional parameters * @returns Promise */ - deletePattern( - appId: string, - versionId: string, - patternId: string, - options?: msRest.RequestOptionsBase - ): Promise; + deletePattern(appId: string, versionId: string, patternId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param appId The application ID. * @param versionId The version ID. * @param patternId The pattern ID. * @param callback The callback */ - deletePattern( - appId: string, - versionId: string, - patternId: string, - callback: msRest.ServiceCallback - ): void; + deletePattern(appId: string, versionId: string, patternId: string, callback: msRest.ServiceCallback): void; /** * @param appId The application ID. * @param versionId The version ID. @@ -414,20 +265,8 @@ export class Pattern { * @param options The optional parameters * @param callback The callback */ - deletePattern( - appId: string, - versionId: string, - patternId: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - deletePattern( - appId: string, - versionId: string, - patternId: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + deletePattern(appId: string, versionId: string, patternId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deletePattern(appId: string, versionId: string, patternId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { appId, @@ -436,8 +275,7 @@ export class Pattern { options }, deletePatternOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -448,24 +286,14 @@ export class Pattern { * @param [options] The optional parameters * @returns Promise */ - listIntentPatterns( - appId: string, - versionId: string, - intentId: string, - options?: Models.PatternListIntentPatternsOptionalParams - ): Promise; + listIntentPatterns(appId: string, versionId: string, intentId: string, options?: Models.PatternListIntentPatternsOptionalParams): Promise; /** * @param appId The application ID. * @param versionId The version ID. * @param intentId The intent classifier ID. * @param callback The callback */ - listIntentPatterns( - appId: string, - versionId: string, - intentId: string, - callback: msRest.ServiceCallback - ): void; + listIntentPatterns(appId: string, versionId: string, intentId: string, callback: msRest.ServiceCallback): void; /** * @param appId The application ID. * @param versionId The version ID. @@ -473,22 +301,8 @@ export class Pattern { * @param options The optional parameters * @param callback The callback */ - listIntentPatterns( - appId: string, - versionId: string, - intentId: string, - options: Models.PatternListIntentPatternsOptionalParams, - callback: msRest.ServiceCallback - ): void; - listIntentPatterns( - appId: string, - versionId: string, - intentId: string, - options?: - | Models.PatternListIntentPatternsOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listIntentPatterns(appId: string, versionId: string, intentId: string, options: Models.PatternListIntentPatternsOptionalParams, callback: msRest.ServiceCallback): void; + listIntentPatterns(appId: string, versionId: string, intentId: string, options?: Models.PatternListIntentPatternsOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { appId, @@ -497,8 +311,7 @@ export class Pattern { options }, listIntentPatternsOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -507,7 +320,11 @@ const serializer = new msRest.Serializer(Mappers); const addPatternOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "apps/{appId}/versions/{versionId}/patternrule", - urlParameters: [Parameters.endpoint, Parameters.appId, Parameters.versionId0], + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0 + ], requestBody: { parameterPath: "pattern", mapper: { @@ -529,8 +346,15 @@ const addPatternOperationSpec: msRest.OperationSpec = { const listPatternsOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/{appId}/versions/{versionId}/patternrules", - urlParameters: [Parameters.endpoint, Parameters.appId, Parameters.versionId0], - queryParameters: [Parameters.skip, Parameters.take], + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0 + ], + queryParameters: [ + Parameters.skip, + Parameters.take + ], responses: { 200: { bodyMapper: { @@ -556,7 +380,11 @@ const listPatternsOperationSpec: msRest.OperationSpec = { const updatePatternsOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", path: "apps/{appId}/versions/{versionId}/patternrules", - urlParameters: [Parameters.endpoint, Parameters.appId, Parameters.versionId0], + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0 + ], requestBody: { parameterPath: "patterns", mapper: { @@ -598,7 +426,11 @@ const updatePatternsOperationSpec: msRest.OperationSpec = { const batchAddPatternsOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "apps/{appId}/versions/{versionId}/patternrules", - urlParameters: [Parameters.endpoint, Parameters.appId, Parameters.versionId0], + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0 + ], requestBody: { parameterPath: "patterns", mapper: { @@ -640,7 +472,11 @@ const batchAddPatternsOperationSpec: msRest.OperationSpec = { const deletePatternsOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", path: "apps/{appId}/versions/{versionId}/patternrules", - urlParameters: [Parameters.endpoint, Parameters.appId, Parameters.versionId0], + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0 + ], requestBody: { parameterPath: "patternIds", mapper: { @@ -723,7 +559,10 @@ const listIntentPatternsOperationSpec: msRest.OperationSpec = { Parameters.versionId0, Parameters.intentId ], - queryParameters: [Parameters.skip, Parameters.take], + queryParameters: [ + Parameters.skip, + Parameters.take + ], responses: { 200: { bodyMapper: { diff --git a/sdk/cognitiveservices/cognitiveservices-luis-authoring/src/operations/permissions.ts b/sdk/cognitiveservices/cognitiveservices-luis-authoring/src/operations/permissions.ts index f1f678009e1a..81a1b15f8103 100644 --- a/sdk/cognitiveservices/cognitiveservices-luis-authoring/src/operations/permissions.ts +++ b/sdk/cognitiveservices/cognitiveservices-luis-authoring/src/operations/permissions.ts @@ -4,7 +4,8 @@ * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. */ import * as msRest from "@azure/ms-rest-js"; @@ -42,24 +43,15 @@ export class Permissions { * @param options The optional parameters * @param callback The callback */ - list( - appId: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - list( - appId: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + list(appId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(appId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { appId, options }, listOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -70,39 +62,21 @@ export class Permissions { * @param [options] The optional parameters * @returns Promise */ - add( - appId: string, - userToAdd: Models.UserCollaborator, - options?: msRest.RequestOptionsBase - ): Promise; + add(appId: string, userToAdd: Models.UserCollaborator, options?: msRest.RequestOptionsBase): Promise; /** * @param appId The application ID. * @param userToAdd A model containing the user's email address. * @param callback The callback */ - add( - appId: string, - userToAdd: Models.UserCollaborator, - callback: msRest.ServiceCallback - ): void; + add(appId: string, userToAdd: Models.UserCollaborator, callback: msRest.ServiceCallback): void; /** * @param appId The application ID. * @param userToAdd A model containing the user's email address. * @param options The optional parameters * @param callback The callback */ - add( - appId: string, - userToAdd: Models.UserCollaborator, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - add( - appId: string, - userToAdd: Models.UserCollaborator, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + add(appId: string, userToAdd: Models.UserCollaborator, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + add(appId: string, userToAdd: Models.UserCollaborator, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { appId, @@ -110,8 +84,7 @@ export class Permissions { options }, addOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -122,39 +95,21 @@ export class Permissions { * @param [options] The optional parameters * @returns Promise */ - deleteMethod( - appId: string, - userToDelete: Models.UserCollaborator, - options?: msRest.RequestOptionsBase - ): Promise; + deleteMethod(appId: string, userToDelete: Models.UserCollaborator, options?: msRest.RequestOptionsBase): Promise; /** * @param appId The application ID. * @param userToDelete A model containing the user's email address. * @param callback The callback */ - deleteMethod( - appId: string, - userToDelete: Models.UserCollaborator, - callback: msRest.ServiceCallback - ): void; + deleteMethod(appId: string, userToDelete: Models.UserCollaborator, callback: msRest.ServiceCallback): void; /** * @param appId The application ID. * @param userToDelete A model containing the user's email address. * @param options The optional parameters * @param callback The callback */ - deleteMethod( - appId: string, - userToDelete: Models.UserCollaborator, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - deleteMethod( - appId: string, - userToDelete: Models.UserCollaborator, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + deleteMethod(appId: string, userToDelete: Models.UserCollaborator, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(appId: string, userToDelete: Models.UserCollaborator, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { appId, @@ -162,8 +117,7 @@ export class Permissions { options }, deleteMethodOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -174,39 +128,21 @@ export class Permissions { * @param [options] The optional parameters * @returns Promise */ - update( - appId: string, - collaborators: Models.CollaboratorsArray, - options?: msRest.RequestOptionsBase - ): Promise; + update(appId: string, collaborators: Models.CollaboratorsArray, options?: msRest.RequestOptionsBase): Promise; /** * @param appId The application ID. * @param collaborators A model containing a list of user email addresses. * @param callback The callback */ - update( - appId: string, - collaborators: Models.CollaboratorsArray, - callback: msRest.ServiceCallback - ): void; + update(appId: string, collaborators: Models.CollaboratorsArray, callback: msRest.ServiceCallback): void; /** * @param appId The application ID. * @param collaborators A model containing a list of user email addresses. * @param options The optional parameters * @param callback The callback */ - update( - appId: string, - collaborators: Models.CollaboratorsArray, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - update( - appId: string, - collaborators: Models.CollaboratorsArray, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + update(appId: string, collaborators: Models.CollaboratorsArray, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(appId: string, collaborators: Models.CollaboratorsArray, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { appId, @@ -214,8 +150,7 @@ export class Permissions { options }, updateOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -224,7 +159,10 @@ const serializer = new msRest.Serializer(Mappers); const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/{appId}/permissions", - urlParameters: [Parameters.endpoint, Parameters.appId], + urlParameters: [ + Parameters.endpoint, + Parameters.appId + ], responses: { 200: { bodyMapper: Mappers.UserAccessList @@ -239,7 +177,10 @@ const listOperationSpec: msRest.OperationSpec = { const addOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "apps/{appId}/permissions", - urlParameters: [Parameters.endpoint, Parameters.appId], + urlParameters: [ + Parameters.endpoint, + Parameters.appId + ], requestBody: { parameterPath: "userToAdd", mapper: { @@ -261,7 +202,10 @@ const addOperationSpec: msRest.OperationSpec = { const deleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", path: "apps/{appId}/permissions", - urlParameters: [Parameters.endpoint, Parameters.appId], + urlParameters: [ + Parameters.endpoint, + Parameters.appId + ], requestBody: { parameterPath: "userToDelete", mapper: { @@ -283,7 +227,10 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { const updateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", path: "apps/{appId}/permissions", - urlParameters: [Parameters.endpoint, Parameters.appId], + urlParameters: [ + Parameters.endpoint, + Parameters.appId + ], requestBody: { parameterPath: "collaborators", mapper: { diff --git a/sdk/cognitiveservices/cognitiveservices-luis-authoring/src/operations/settings.ts b/sdk/cognitiveservices/cognitiveservices-luis-authoring/src/operations/settings.ts index 9824afbf1b37..d4d28d088bc1 100644 --- a/sdk/cognitiveservices/cognitiveservices-luis-authoring/src/operations/settings.ts +++ b/sdk/cognitiveservices/cognitiveservices-luis-authoring/src/operations/settings.ts @@ -33,39 +33,21 @@ export class Settings { * @param [options] The optional parameters * @returns Promise */ - list( - appId: string, - versionId: string, - options?: msRest.RequestOptionsBase - ): Promise; + list(appId: string, versionId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param appId The application ID. * @param versionId The version ID. * @param callback The callback */ - list( - appId: string, - versionId: string, - callback: msRest.ServiceCallback - ): void; + list(appId: string, versionId: string, callback: msRest.ServiceCallback): void; /** * @param appId The application ID. * @param versionId The version ID. * @param options The optional parameters * @param callback The callback */ - list( - appId: string, - versionId: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - list( - appId: string, - versionId: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + list(appId: string, versionId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(appId: string, versionId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { appId, @@ -73,8 +55,7 @@ export class Settings { options }, listOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -85,24 +66,14 @@ export class Settings { * @param [options] The optional parameters * @returns Promise */ - update( - appId: string, - versionId: string, - listOfAppVersionSettingObject: Models.AppVersionSettingObject[], - options?: msRest.RequestOptionsBase - ): Promise; + update(appId: string, versionId: string, listOfAppVersionSettingObject: Models.AppVersionSettingObject[], options?: msRest.RequestOptionsBase): Promise; /** * @param appId The application ID. * @param versionId The version ID. * @param listOfAppVersionSettingObject A list of the updated application version settings. * @param callback The callback */ - update( - appId: string, - versionId: string, - listOfAppVersionSettingObject: Models.AppVersionSettingObject[], - callback: msRest.ServiceCallback - ): void; + update(appId: string, versionId: string, listOfAppVersionSettingObject: Models.AppVersionSettingObject[], callback: msRest.ServiceCallback): void; /** * @param appId The application ID. * @param versionId The version ID. @@ -110,20 +81,8 @@ export class Settings { * @param options The optional parameters * @param callback The callback */ - update( - appId: string, - versionId: string, - listOfAppVersionSettingObject: Models.AppVersionSettingObject[], - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - update( - appId: string, - versionId: string, - listOfAppVersionSettingObject: Models.AppVersionSettingObject[], - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + update(appId: string, versionId: string, listOfAppVersionSettingObject: Models.AppVersionSettingObject[], options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(appId: string, versionId: string, listOfAppVersionSettingObject: Models.AppVersionSettingObject[], options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { appId, @@ -132,8 +91,7 @@ export class Settings { options }, updateOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -142,7 +100,11 @@ const serializer = new msRest.Serializer(Mappers); const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/{appId}/versions/{versionId}/settings", - urlParameters: [Parameters.endpoint, Parameters.appId, Parameters.versionId0], + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0 + ], responses: { 200: { bodyMapper: { @@ -168,7 +130,11 @@ const listOperationSpec: msRest.OperationSpec = { const updateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", path: "apps/{appId}/versions/{versionId}/settings", - urlParameters: [Parameters.endpoint, Parameters.appId, Parameters.versionId0], + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0 + ], requestBody: { parameterPath: "listOfAppVersionSettingObject", mapper: { diff --git a/sdk/cognitiveservices/cognitiveservices-luis-authoring/src/operations/train.ts b/sdk/cognitiveservices/cognitiveservices-luis-authoring/src/operations/train.ts index d3b18f6986a6..53d2c9848983 100644 --- a/sdk/cognitiveservices/cognitiveservices-luis-authoring/src/operations/train.ts +++ b/sdk/cognitiveservices/cognitiveservices-luis-authoring/src/operations/train.ts @@ -37,39 +37,21 @@ export class Train { * @param [options] The optional parameters * @returns Promise */ - trainVersion( - appId: string, - versionId: string, - options?: msRest.RequestOptionsBase - ): Promise; + trainVersion(appId: string, versionId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param appId The application ID. * @param versionId The version ID. * @param callback The callback */ - trainVersion( - appId: string, - versionId: string, - callback: msRest.ServiceCallback - ): void; + trainVersion(appId: string, versionId: string, callback: msRest.ServiceCallback): void; /** * @param appId The application ID. * @param versionId The version ID. * @param options The optional parameters * @param callback The callback */ - trainVersion( - appId: string, - versionId: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - trainVersion( - appId: string, - versionId: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + trainVersion(appId: string, versionId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + trainVersion(appId: string, versionId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { appId, @@ -77,8 +59,7 @@ export class Train { options }, trainVersionOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -91,39 +72,21 @@ export class Train { * @param [options] The optional parameters * @returns Promise */ - getStatus( - appId: string, - versionId: string, - options?: msRest.RequestOptionsBase - ): Promise; + getStatus(appId: string, versionId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param appId The application ID. * @param versionId The version ID. * @param callback The callback */ - getStatus( - appId: string, - versionId: string, - callback: msRest.ServiceCallback - ): void; + getStatus(appId: string, versionId: string, callback: msRest.ServiceCallback): void; /** * @param appId The application ID. * @param versionId The version ID. * @param options The optional parameters * @param callback The callback */ - getStatus( - appId: string, - versionId: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getStatus( - appId: string, - versionId: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getStatus(appId: string, versionId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getStatus(appId: string, versionId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { appId, @@ -131,8 +94,7 @@ export class Train { options }, getStatusOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -141,7 +103,11 @@ const serializer = new msRest.Serializer(Mappers); const trainVersionOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "apps/{appId}/versions/{versionId}/train", - urlParameters: [Parameters.endpoint, Parameters.appId, Parameters.versionId0], + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0 + ], responses: { 202: { bodyMapper: Mappers.EnqueueTrainingResponse @@ -156,7 +122,11 @@ const trainVersionOperationSpec: msRest.OperationSpec = { const getStatusOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/{appId}/versions/{versionId}/train", - urlParameters: [Parameters.endpoint, Parameters.appId, Parameters.versionId0], + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0 + ], responses: { 200: { bodyMapper: { diff --git a/sdk/cognitiveservices/cognitiveservices-luis-authoring/src/operations/versions.ts b/sdk/cognitiveservices/cognitiveservices-luis-authoring/src/operations/versions.ts index e5db380e5fa7..c1ce1801e57c 100644 --- a/sdk/cognitiveservices/cognitiveservices-luis-authoring/src/operations/versions.ts +++ b/sdk/cognitiveservices/cognitiveservices-luis-authoring/src/operations/versions.ts @@ -34,24 +34,14 @@ export class Versions { * @param [options] The optional parameters * @returns Promise */ - clone( - appId: string, - versionId: string, - versionCloneObject: Models.TaskUpdateObject, - options?: msRest.RequestOptionsBase - ): Promise; + clone(appId: string, versionId: string, versionCloneObject: Models.TaskUpdateObject, options?: msRest.RequestOptionsBase): Promise; /** * @param appId The application ID. * @param versionId The version ID. * @param versionCloneObject A model containing the new version ID. * @param callback The callback */ - clone( - appId: string, - versionId: string, - versionCloneObject: Models.TaskUpdateObject, - callback: msRest.ServiceCallback - ): void; + clone(appId: string, versionId: string, versionCloneObject: Models.TaskUpdateObject, callback: msRest.ServiceCallback): void; /** * @param appId The application ID. * @param versionId The version ID. @@ -59,20 +49,8 @@ export class Versions { * @param options The optional parameters * @param callback The callback */ - clone( - appId: string, - versionId: string, - versionCloneObject: Models.TaskUpdateObject, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - clone( - appId: string, - versionId: string, - versionCloneObject: Models.TaskUpdateObject, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + clone(appId: string, versionId: string, versionCloneObject: Models.TaskUpdateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + clone(appId: string, versionId: string, versionCloneObject: Models.TaskUpdateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { appId, @@ -81,8 +59,7 @@ export class Versions { options }, cloneOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -91,10 +68,7 @@ export class Versions { * @param [options] The optional parameters * @returns Promise */ - list( - appId: string, - options?: Models.VersionsListOptionalParams - ): Promise; + list(appId: string, options?: Models.VersionsListOptionalParams): Promise; /** * @param appId The application ID. * @param callback The callback @@ -105,24 +79,15 @@ export class Versions { * @param options The optional parameters * @param callback The callback */ - list( - appId: string, - options: Models.VersionsListOptionalParams, - callback: msRest.ServiceCallback - ): void; - list( - appId: string, - options?: Models.VersionsListOptionalParams | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + list(appId: string, options: Models.VersionsListOptionalParams, callback: msRest.ServiceCallback): void; + list(appId: string, options?: Models.VersionsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { appId, options }, listOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -133,11 +98,7 @@ export class Versions { * @param [options] The optional parameters * @returns Promise */ - get( - appId: string, - versionId: string, - options?: msRest.RequestOptionsBase - ): Promise; + get(appId: string, versionId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param appId The application ID. * @param versionId The version ID. @@ -150,18 +111,8 @@ export class Versions { * @param options The optional parameters * @param callback The callback */ - get( - appId: string, - versionId: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - get( - appId: string, - versionId: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + get(appId: string, versionId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(appId: string, versionId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { appId, @@ -169,8 +120,7 @@ export class Versions { options }, getOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -181,24 +131,14 @@ export class Versions { * @param [options] The optional parameters * @returns Promise */ - update( - appId: string, - versionId: string, - versionUpdateObject: Models.TaskUpdateObject, - options?: msRest.RequestOptionsBase - ): Promise; + update(appId: string, versionId: string, versionUpdateObject: Models.TaskUpdateObject, options?: msRest.RequestOptionsBase): Promise; /** * @param appId The application ID. * @param versionId The version ID. * @param versionUpdateObject A model containing Name and Description of the application. * @param callback The callback */ - update( - appId: string, - versionId: string, - versionUpdateObject: Models.TaskUpdateObject, - callback: msRest.ServiceCallback - ): void; + update(appId: string, versionId: string, versionUpdateObject: Models.TaskUpdateObject, callback: msRest.ServiceCallback): void; /** * @param appId The application ID. * @param versionId The version ID. @@ -206,20 +146,8 @@ export class Versions { * @param options The optional parameters * @param callback The callback */ - update( - appId: string, - versionId: string, - versionUpdateObject: Models.TaskUpdateObject, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - update( - appId: string, - versionId: string, - versionUpdateObject: Models.TaskUpdateObject, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + update(appId: string, versionId: string, versionUpdateObject: Models.TaskUpdateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(appId: string, versionId: string, versionUpdateObject: Models.TaskUpdateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { appId, @@ -228,8 +156,7 @@ export class Versions { options }, updateOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -239,39 +166,21 @@ export class Versions { * @param [options] The optional parameters * @returns Promise */ - deleteMethod( - appId: string, - versionId: string, - options?: msRest.RequestOptionsBase - ): Promise; + deleteMethod(appId: string, versionId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param appId The application ID. * @param versionId The version ID. * @param callback The callback */ - deleteMethod( - appId: string, - versionId: string, - callback: msRest.ServiceCallback - ): void; + deleteMethod(appId: string, versionId: string, callback: msRest.ServiceCallback): void; /** * @param appId The application ID. * @param versionId The version ID. * @param options The optional parameters * @param callback The callback */ - deleteMethod( - appId: string, - versionId: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - deleteMethod( - appId: string, - versionId: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + deleteMethod(appId: string, versionId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(appId: string, versionId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { appId, @@ -279,8 +188,7 @@ export class Versions { options }, deleteMethodOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -290,39 +198,21 @@ export class Versions { * @param [options] The optional parameters * @returns Promise */ - exportMethod( - appId: string, - versionId: string, - options?: msRest.RequestOptionsBase - ): Promise; + exportMethod(appId: string, versionId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param appId The application ID. * @param versionId The version ID. * @param callback The callback */ - exportMethod( - appId: string, - versionId: string, - callback: msRest.ServiceCallback - ): void; + exportMethod(appId: string, versionId: string, callback: msRest.ServiceCallback): void; /** * @param appId The application ID. * @param versionId The version ID. * @param options The optional parameters * @param callback The callback */ - exportMethod( - appId: string, - versionId: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - exportMethod( - appId: string, - versionId: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + exportMethod(appId: string, versionId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + exportMethod(appId: string, versionId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { appId, @@ -330,8 +220,7 @@ export class Versions { options }, exportMethodOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -341,39 +230,21 @@ export class Versions { * @param [options] The optional parameters * @returns Promise */ - importMethod( - appId: string, - luisApp: Models.LuisApp, - options?: Models.VersionsImportMethodOptionalParams - ): Promise; + importMethod(appId: string, luisApp: Models.LuisApp, options?: Models.VersionsImportMethodOptionalParams): Promise; /** * @param appId The application ID. * @param luisApp A LUIS application structure. * @param callback The callback */ - importMethod( - appId: string, - luisApp: Models.LuisApp, - callback: msRest.ServiceCallback - ): void; + importMethod(appId: string, luisApp: Models.LuisApp, callback: msRest.ServiceCallback): void; /** * @param appId The application ID. * @param luisApp A LUIS application structure. * @param options The optional parameters * @param callback The callback */ - importMethod( - appId: string, - luisApp: Models.LuisApp, - options: Models.VersionsImportMethodOptionalParams, - callback: msRest.ServiceCallback - ): void; - importMethod( - appId: string, - luisApp: Models.LuisApp, - options?: Models.VersionsImportMethodOptionalParams | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + importMethod(appId: string, luisApp: Models.LuisApp, options: Models.VersionsImportMethodOptionalParams, callback: msRest.ServiceCallback): void; + importMethod(appId: string, luisApp: Models.LuisApp, options?: Models.VersionsImportMethodOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { appId, @@ -381,8 +252,7 @@ export class Versions { options }, importMethodOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -393,24 +263,14 @@ export class Versions { * @param [options] The optional parameters * @returns Promise */ - deleteUnlabelledUtterance( - appId: string, - versionId: string, - utterance: string, - options?: msRest.RequestOptionsBase - ): Promise; + deleteUnlabelledUtterance(appId: string, versionId: string, utterance: string, options?: msRest.RequestOptionsBase): Promise; /** * @param appId The application ID. * @param versionId The version ID. * @param utterance The utterance text to delete. * @param callback The callback */ - deleteUnlabelledUtterance( - appId: string, - versionId: string, - utterance: string, - callback: msRest.ServiceCallback - ): void; + deleteUnlabelledUtterance(appId: string, versionId: string, utterance: string, callback: msRest.ServiceCallback): void; /** * @param appId The application ID. * @param versionId The version ID. @@ -418,20 +278,8 @@ export class Versions { * @param options The optional parameters * @param callback The callback */ - deleteUnlabelledUtterance( - appId: string, - versionId: string, - utterance: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - deleteUnlabelledUtterance( - appId: string, - versionId: string, - utterance: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + deleteUnlabelledUtterance(appId: string, versionId: string, utterance: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteUnlabelledUtterance(appId: string, versionId: string, utterance: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { appId, @@ -440,8 +288,7 @@ export class Versions { options }, deleteUnlabelledUtteranceOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -450,7 +297,11 @@ const serializer = new msRest.Serializer(Mappers); const cloneOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "apps/{appId}/versions/{versionId}/clone", - urlParameters: [Parameters.endpoint, Parameters.appId, Parameters.versionId0], + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0 + ], requestBody: { parameterPath: "versionCloneObject", mapper: { @@ -477,8 +328,14 @@ const cloneOperationSpec: msRest.OperationSpec = { const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/{appId}/versions", - urlParameters: [Parameters.endpoint, Parameters.appId], - queryParameters: [Parameters.skip, Parameters.take], + urlParameters: [ + Parameters.endpoint, + Parameters.appId + ], + queryParameters: [ + Parameters.skip, + Parameters.take + ], responses: { 200: { bodyMapper: { @@ -504,7 +361,11 @@ const listOperationSpec: msRest.OperationSpec = { const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/{appId}/versions/{versionId}/", - urlParameters: [Parameters.endpoint, Parameters.appId, Parameters.versionId0], + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0 + ], responses: { 200: { bodyMapper: Mappers.VersionInfo @@ -519,7 +380,11 @@ const getOperationSpec: msRest.OperationSpec = { const updateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", path: "apps/{appId}/versions/{versionId}/", - urlParameters: [Parameters.endpoint, Parameters.appId, Parameters.versionId0], + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0 + ], requestBody: { parameterPath: "versionUpdateObject", mapper: { @@ -541,7 +406,11 @@ const updateOperationSpec: msRest.OperationSpec = { const deleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", path: "apps/{appId}/versions/{versionId}/", - urlParameters: [Parameters.endpoint, Parameters.appId, Parameters.versionId0], + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0 + ], responses: { 200: { bodyMapper: Mappers.OperationStatus @@ -556,7 +425,11 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { const exportMethodOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/{appId}/versions/{versionId}/export", - urlParameters: [Parameters.endpoint, Parameters.appId, Parameters.versionId0], + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0 + ], responses: { 200: { bodyMapper: Mappers.LuisApp @@ -571,8 +444,13 @@ const exportMethodOperationSpec: msRest.OperationSpec = { const importMethodOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "apps/{appId}/versions/import", - urlParameters: [Parameters.endpoint, Parameters.appId], - queryParameters: [Parameters.versionId1], + urlParameters: [ + Parameters.endpoint, + Parameters.appId + ], + queryParameters: [ + Parameters.versionId1 + ], requestBody: { parameterPath: "luisApp", mapper: { @@ -599,7 +477,11 @@ const importMethodOperationSpec: msRest.OperationSpec = { const deleteUnlabelledUtteranceOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", path: "apps/{appId}/versions/{versionId}/suggest", - urlParameters: [Parameters.endpoint, Parameters.appId, Parameters.versionId0], + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0 + ], requestBody: { parameterPath: "utterance", mapper: { diff --git a/sdk/cognitiveservices/cognitiveservices-luis-authoring/tsconfig.json b/sdk/cognitiveservices/cognitiveservices-luis-authoring/tsconfig.json index 422b584abd5e..87bbf5b5fa49 100644 --- a/sdk/cognitiveservices/cognitiveservices-luis-authoring/tsconfig.json +++ b/sdk/cognitiveservices/cognitiveservices-luis-authoring/tsconfig.json @@ -9,7 +9,7 @@ "esModuleInterop": true, "allowSyntheticDefaultImports": true, "forceConsistentCasingInFileNames": true, - "lib": ["es6", "dom"], + "lib": ["es6"], "declaration": true, "outDir": "./esm", "importHelpers": true