From f0c42ccd2f382ebb019d92f0411f041ed772b6ab Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Thu, 13 Dec 2018 09:18:29 -0800 Subject: [PATCH] [AutoPR cognitiveservices/data-plane/LUIS/Authoring] Adding azure accounts APIs (#574) * Generated from 431fadac7b30b7c33b9fa6468874fce839869345 fixing build errors * Generated from 82cee8e19ad81e9d82d712cfabad1649b91b619a Merge pull request #1 from omarelhariry/a-moghan/PublishingResponses Adding Publishing To Regions Status * Generated from 23a7c077da0b751b8ad2b246d8da041d0906f90d Fixing formats * Generated from 4289fc27afed08636bf27abb57ace4a1ff69b7ee Fixing OAV errors * Generated from 3b62ef631bbcf684da8597627f22d1869bb37c7d Merge pull request #2 from omarelhariry/kayousef/Dispatch_APIs Adding dispatch APIs * Generated from 4289fc27afed08636bf27abb57ace4a1ff69b7ee Fixing OAV errors * Generated from c7d11c54fe4f164073a570f2dba2510ddbf91c76 Add application-json as a 2nd prdocues format for packaging APIs, to describe the error responses * Generated from b8ee038af90c620395c27635c989a3a6364335a4 Updating operation ids * Generated from 32e19a3f178eab8d32f3fd79316bbaf7569ca7c8 fix oav and remove error responses --- .../README.md | 59 ++-- .../lib/lUISAuthoringClient.ts | 4 +- .../lib/lUISAuthoringClientContext.ts | 2 +- .../lib/models/azureAccountsMappers.ts | 16 + .../lib/models/dispatchMappers.ts | 17 ++ .../lib/models/index.ts | 206 ++++++++++++- .../lib/models/mappers.ts | 39 ++- .../lib/models/parameters.ts | 25 +- .../lib/operations/apps.ts | 130 ++++++++- .../lib/operations/azureAccounts.ts | 249 ++++++++++++++++ .../lib/operations/dispatch.ts | 273 ++++++++++++++++++ .../lib/operations/examples.ts | 2 +- .../lib/operations/features.ts | 2 +- .../lib/operations/index.ts | 1 + .../lib/operations/model.ts | 2 +- .../lib/operations/pattern.ts | 2 +- .../lib/operations/permissions.ts | 2 +- .../lib/operations/settings.ts | 2 +- .../lib/operations/train.ts | 2 +- .../lib/operations/versions.ts | 2 +- .../package.json | 2 +- .../rollup.config.js | 6 +- .../tsconfig.json | 2 +- 23 files changed, 981 insertions(+), 66 deletions(-) create mode 100644 packages/@azure/cognitiveservices-luis-authoring/lib/models/azureAccountsMappers.ts create mode 100644 packages/@azure/cognitiveservices-luis-authoring/lib/models/dispatchMappers.ts create mode 100644 packages/@azure/cognitiveservices-luis-authoring/lib/operations/azureAccounts.ts create mode 100644 packages/@azure/cognitiveservices-luis-authoring/lib/operations/dispatch.ts diff --git a/packages/@azure/cognitiveservices-luis-authoring/README.md b/packages/@azure/cognitiveservices-luis-authoring/README.md index 7e4b452f7101..02be04c4d762 100644 --- a/packages/@azure/cognitiveservices-luis-authoring/README.md +++ b/packages/@azure/cognitiveservices-luis-authoring/README.md @@ -1,33 +1,26 @@ -## An isomorphic javascript sdk for - LUISAuthoringClient +# An isomorphic javascript sdk for - LUISAuthoringClient +This project provides an isomorphic javascript package. Right now it supports: +- node.js version 6.x.x or higher +- browser javascript -This package contains an isomorphic SDK for LUISAuthoringClient. - -### Currently supported environments - -- Node.js version 6.x.x or higher -- Browser JavaScript - -### How to Install +## How to Install +- nodejs ``` npm install @azure/cognitiveservices-luis-authoring ``` - -### How to use - -#### nodejs - Authentication, client creation and listPhraseLists features as an example written in TypeScript. - -##### Install @azure/ms-rest-nodeauth - -``` -npm install @azure/ms-rest-nodeauth +- browser +```html + ``` -##### Sample code +## How to use + +### nodejs - Authentication, client creation and listPhraseLists features as an example written in TypeScript. ```ts -import * as msRest from "@azure/ms-rest-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; +import * as msRest from "ms-rest-js"; +import * as msRestNodeAuth from "ms-rest-nodeauth"; import { LUISAuthoringClient, LUISAuthoringModels, LUISAuthoringMappers } from "@azure/cognitiveservices-luis-authoring"; const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; @@ -46,17 +39,7 @@ msRestNodeAuth.interactiveLogin().then((creds) => { }); ``` -#### browser - Authentication, client creation and listPhraseLists features as an example written in JavaScript. - -##### Install @azure/ms-rest-browserauth - -``` -npm install @azure/ms-rest-browserauth -``` - -##### Sample code - -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. +### browser - Authentication, client creation and listPhraseLists features as an example written in javascript. - index.html ```html @@ -64,8 +47,8 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to @azure/cognitiveservices-luis-authoring sample - - + + - + + ``` -## Related projects - -- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) +# Related projects + - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) diff --git a/packages/@azure/cognitiveservices-luis-authoring/lib/lUISAuthoringClient.ts b/packages/@azure/cognitiveservices-luis-authoring/lib/lUISAuthoringClient.ts index 71b9741455da..c84ac87decc0 100644 --- a/packages/@azure/cognitiveservices-luis-authoring/lib/lUISAuthoringClient.ts +++ b/packages/@azure/cognitiveservices-luis-authoring/lib/lUISAuthoringClient.ts @@ -8,7 +8,7 @@ * regenerated. */ -import * as msRest from "@azure/ms-rest-js"; +import * as msRest from "ms-rest-js"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as operations from "./operations"; @@ -25,6 +25,7 @@ class LUISAuthoringClient extends LUISAuthoringClientContext { permissions: operations.Permissions; pattern: operations.Pattern; settings: operations.Settings; + azureAccounts: operations.AzureAccounts; /** * Initializes a new instance of the LUISAuthoringClient class. @@ -44,6 +45,7 @@ class LUISAuthoringClient extends LUISAuthoringClientContext { this.permissions = new operations.Permissions(this); this.pattern = new operations.Pattern(this); this.settings = new operations.Settings(this); + this.azureAccounts = new operations.AzureAccounts(this); } } diff --git a/packages/@azure/cognitiveservices-luis-authoring/lib/lUISAuthoringClientContext.ts b/packages/@azure/cognitiveservices-luis-authoring/lib/lUISAuthoringClientContext.ts index b5ecfb0092c1..a4602eefca4d 100644 --- a/packages/@azure/cognitiveservices-luis-authoring/lib/lUISAuthoringClientContext.ts +++ b/packages/@azure/cognitiveservices-luis-authoring/lib/lUISAuthoringClientContext.ts @@ -8,7 +8,7 @@ * regenerated. */ -import * as msRest from "@azure/ms-rest-js"; +import * as msRest from "ms-rest-js"; const packageName = "@azure/cognitiveservices-luis-authoring"; const packageVersion = "0.1.0"; diff --git a/packages/@azure/cognitiveservices-luis-authoring/lib/models/azureAccountsMappers.ts b/packages/@azure/cognitiveservices-luis-authoring/lib/models/azureAccountsMappers.ts new file mode 100644 index 000000000000..98a20816f7f3 --- /dev/null +++ b/packages/@azure/cognitiveservices-luis-authoring/lib/models/azureAccountsMappers.ts @@ -0,0 +1,16 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * 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, + OperationStatus, + ErrorResponse +} from "../models/mappers"; + diff --git a/packages/@azure/cognitiveservices-luis-authoring/lib/models/dispatchMappers.ts b/packages/@azure/cognitiveservices-luis-authoring/lib/models/dispatchMappers.ts new file mode 100644 index 000000000000..736d7e6ee143 --- /dev/null +++ b/packages/@azure/cognitiveservices-luis-authoring/lib/models/dispatchMappers.ts @@ -0,0 +1,17 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * 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 { + DispatchConnectedServiceObject, + OperationStatus, + ErrorResponse, + DispatchConnectedServiceDeleteObject +} from "../models/mappers"; + diff --git a/packages/@azure/cognitiveservices-luis-authoring/lib/models/index.ts b/packages/@azure/cognitiveservices-luis-authoring/lib/models/index.ts index 302879e4e043..6514acf24954 100644 --- a/packages/@azure/cognitiveservices-luis-authoring/lib/models/index.ts +++ b/packages/@azure/cognitiveservices-luis-authoring/lib/models/index.ts @@ -8,7 +8,7 @@ * regenerated. */ -import * as msRest from "@azure/ms-rest-js"; +import * as msRest from "ms-rest-js"; /** @@ -205,7 +205,7 @@ export interface ApplicationSettingUpdateObject { export interface PublishSettingUpdateObject { /** * @member {boolean} [sentimentAnalysis] Setting sentiment analysis as true - * returns the Sentiment of the input utterance along with the resopnse + * returns the Sentiment of the input utterance along with the response */ sentimentAnalysis?: boolean; /** @@ -232,12 +232,12 @@ export interface ExampleLabelObject { */ text?: string; /** - * @member {EntityLabelObject[]} [entityLabels] The idenfied entities within - * the utterance. + * @member {EntityLabelObject[]} [entityLabels] The identified entities + * within the utterance. */ entityLabels?: EntityLabelObject[]; /** - * @member {string} [intentName] The idenfitied intent representing the + * @member {string} [intentName] The identified intent representing the * utterance. */ intentName?: string; @@ -1721,6 +1721,10 @@ export interface EndpointInfo { * @member {string} [endpointRegion] The endpoint's region. */ endpointRegion?: string; + /** + * @member {string} [failedRegions] Regions where publishing failed. + */ + failedRegions?: string; /** * @member {string} [publishedDateTime] Timestamp when was last published. */ @@ -1783,7 +1787,7 @@ export interface PublishSettings { id: string; /** * @member {boolean} isSentimentAnalysisEnabled Setting sentiment analysis as - * true returns the Sentiment of the input utterance along with the resopnse + * true returns the Sentiment of the input utterance along with the response */ isSentimentAnalysisEnabled: boolean; /** @@ -2299,6 +2303,27 @@ export interface AppVersionSettingObject { value?: string; } +/** + * @interface + * An interface representing AzureAccountInfoObject. + * Defines the azure account information object. + * + */ +export interface AzureAccountInfoObject { + /** + * @member {string} azureSubscriptionId The id for the azure subscription. + */ + azureSubscriptionId: string; + /** + * @member {string} resourceGroup The azure resource group name. + */ + resourceGroup: string; + /** + * @member {string} accountName The azure account name. + */ + accountName: string; +} + /** * @interface * An interface representing HierarchicalChildModelUpdateObject. @@ -2690,6 +2715,21 @@ export interface AppsImportMethodOptionalParams extends msRest.RequestOptionsBas appName?: string; } +/** + * @interface + * An interface representing AppsDeleteMethodOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface AppsDeleteMethodOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {boolean} [force] A flag to indicate whether to force an + * operation. Default value: false . + */ + force?: boolean; +} + /** * @interface * An interface representing VersionsCloneOptionalParams. @@ -2780,6 +2820,36 @@ export interface PatternGetIntentPatternsOptionalParams extends msRest.RequestOp take?: number; } +/** + * @interface + * An interface representing AzureAccountsAssignToAppOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface AzureAccountsAssignToAppOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {AzureAccountInfoObject} [azureAccountInfoObject] The azure + * account information object. + */ + azureAccountInfoObject?: AzureAccountInfoObject; +} + +/** + * @interface + * An interface representing AzureAccountsRemoveFromAppOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface AzureAccountsRemoveFromAppOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {AzureAccountInfoObject} [azureAccountInfoObject] The azure + * account information object. + */ + azureAccountInfoObject?: AzureAccountInfoObject; +} + /** * Defines values for TrainingStatus. * Possible values include: 'NeedsTraining', 'InProgress', 'Trained' @@ -5616,6 +5686,54 @@ export type AppsListAvailableCustomPrebuiltDomainsForCultureResponse = Array
;
+  /**
+   * NODEJS ONLY
+   *
+   * The response body as a node.js Readable stream.
+   * Always undefined in the browser.
+   */
+  readableStreamBody?: NodeJS.ReadableStream;
+  /**
+   * The underlying HTTP response.
+   */
+  _response: msRest.HttpResponse;
+};
+
+/**
+ * Contains response data for the packageTrainedApplicationAsGzip operation.
+ */
+export type AppsPackageTrainedApplicationAsGzipResponse = {
+  /**
+   * BROWSER ONLY
+   *
+   * The response body as a browser Blob.
+   * Always undefined in node.js.
+   */
+  blobBody?: Promise;
+  /**
+   * NODEJS ONLY
+   *
+   * The response body as a node.js Readable stream.
+   * Always undefined in the browser.
+   */
+  readableStreamBody?: NodeJS.ReadableStream;
+  /**
+   * The underlying HTTP response.
+   */
+  _response: msRest.HttpResponse;
+};
+
 /**
  * Contains response data for the clone operation.
  */
@@ -6079,3 +6197,79 @@ export type SettingsUpdateResponse = OperationStatus & {
       parsedBody: OperationStatus;
     };
 };
+
+/**
+ * Contains response data for the assignToApp operation.
+ */
+export type AzureAccountsAssignToAppResponse = OperationStatus & {
+  /**
+   * The underlying HTTP response.
+   */
+  _response: msRest.HttpResponse & {
+      /**
+       * The response body as text (string format)
+       */
+      bodyAsText: string;
+      /**
+       * The response body as parsed JSON or XML
+       */
+      parsedBody: OperationStatus;
+    };
+};
+
+/**
+ * Contains response data for the getAssigned operation.
+ */
+export type AzureAccountsGetAssignedResponse = Array & {
+  /**
+   * The underlying HTTP response.
+   */
+  _response: msRest.HttpResponse & {
+      /**
+       * The response body as text (string format)
+       */
+      bodyAsText: string;
+      /**
+       * The response body as parsed JSON or XML
+       */
+      parsedBody: AzureAccountInfoObject[];
+    };
+};
+
+/**
+ * Contains response data for the removeFromApp operation.
+ */
+export type AzureAccountsRemoveFromAppResponse = OperationStatus & {
+  /**
+   * The underlying HTTP response.
+   */
+  _response: msRest.HttpResponse & {
+      /**
+       * The response body as text (string format)
+       */
+      bodyAsText: string;
+      /**
+       * The response body as parsed JSON or XML
+       */
+      parsedBody: OperationStatus;
+    };
+};
+
+/**
+ * Contains response data for the getUserLUISAccounts operation.
+ */
+export type AzureAccountsGetUserLUISAccountsResponse = Array & {
+  /**
+   * The underlying HTTP response.
+   */
+  _response: msRest.HttpResponse & {
+      /**
+       * The response body as text (string format)
+       */
+      bodyAsText: string;
+      /**
+       * The response body as parsed JSON or XML
+       */
+      parsedBody: AzureAccountInfoObject[];
+    };
+};
diff --git a/packages/@azure/cognitiveservices-luis-authoring/lib/models/mappers.ts b/packages/@azure/cognitiveservices-luis-authoring/lib/models/mappers.ts
index 2a0908aade4b..43e84fed1a5a 100644
--- a/packages/@azure/cognitiveservices-luis-authoring/lib/models/mappers.ts
+++ b/packages/@azure/cognitiveservices-luis-authoring/lib/models/mappers.ts
@@ -8,7 +8,7 @@
  * regenerated.
  */
 
-import * as msRest from "@azure/ms-rest-js";
+import * as msRest from "ms-rest-js";
 
 
 export const EntityLabelObject: msRest.CompositeMapper = {
@@ -2506,6 +2506,12 @@ export const EndpointInfo: msRest.CompositeMapper = {
           name: "String"
         }
       },
+      failedRegions: {
+        serializedName: "failedRegions",
+        type: {
+          name: "String"
+        }
+      },
       publishedDateTime: {
         serializedName: "publishedDateTime",
         type: {
@@ -3319,6 +3325,37 @@ export const AppVersionSettingObject: msRest.CompositeMapper = {
   }
 };
 
+export const AzureAccountInfoObject: msRest.CompositeMapper = {
+  serializedName: "AzureAccountInfoObject",
+  type: {
+    name: "Composite",
+    className: "AzureAccountInfoObject",
+    modelProperties: {
+      azureSubscriptionId: {
+        required: true,
+        serializedName: "azureSubscriptionId",
+        type: {
+          name: "String"
+        }
+      },
+      resourceGroup: {
+        required: true,
+        serializedName: "resourceGroup",
+        type: {
+          name: "String"
+        }
+      },
+      accountName: {
+        required: true,
+        serializedName: "accountName",
+        type: {
+          name: "String"
+        }
+      }
+    }
+  }
+};
+
 export const HierarchicalChildModelUpdateObject: msRest.CompositeMapper = {
   serializedName: "hierarchicalChildModelUpdateObject",
   type: {
diff --git a/packages/@azure/cognitiveservices-luis-authoring/lib/models/parameters.ts b/packages/@azure/cognitiveservices-luis-authoring/lib/models/parameters.ts
index f4e7dbfdbdeb..d5f5d207e9af 100644
--- a/packages/@azure/cognitiveservices-luis-authoring/lib/models/parameters.ts
+++ b/packages/@azure/cognitiveservices-luis-authoring/lib/models/parameters.ts
@@ -8,7 +8,7 @@
  * regenerated.
  */
 
-import * as msRest from "@azure/ms-rest-js";
+import * as msRest from "ms-rest-js";
 
 export const appId: msRest.OperationURLParameter = {
   parameterPath: "appId",
@@ -127,6 +127,19 @@ export const exampleId: msRest.OperationURLParameter = {
     }
   }
 };
+export const force: msRest.OperationQueryParameter = {
+  parameterPath: [
+    "options",
+    "force"
+  ],
+  mapper: {
+    serializedName: "force",
+    defaultValue: false,
+    type: {
+      name: "Boolean"
+    }
+  }
+};
 export const hChildId: msRest.OperationURLParameter = {
   parameterPath: "hChildId",
   mapper: {
@@ -243,6 +256,16 @@ export const skip: msRest.OperationQueryParameter = {
     }
   }
 };
+export const slotName: msRest.OperationURLParameter = {
+  parameterPath: "slotName",
+  mapper: {
+    required: true,
+    serializedName: "slotName",
+    type: {
+      name: "Uuid"
+    }
+  }
+};
 export const subListId: msRest.OperationURLParameter = {
   parameterPath: "subListId",
   mapper: {
diff --git a/packages/@azure/cognitiveservices-luis-authoring/lib/operations/apps.ts b/packages/@azure/cognitiveservices-luis-authoring/lib/operations/apps.ts
index 06f13a1f422b..7d5f3ce5611c 100644
--- a/packages/@azure/cognitiveservices-luis-authoring/lib/operations/apps.ts
+++ b/packages/@azure/cognitiveservices-luis-authoring/lib/operations/apps.ts
@@ -8,7 +8,7 @@
  * regenerated.
  */
 
-import * as msRest from "@azure/ms-rest-js";
+import * as msRest from "ms-rest-js";
 import * as Models from "../models";
 import * as Mappers from "../models/appsMappers";
 import * as Parameters from "../models/parameters";
@@ -88,7 +88,7 @@ export class Apps {
   }
 
   /**
-   * Imports an application to LUIS, the application's structure should be included in in the request
+   * Imports an application to LUIS, the application's structure should be included in the request
    * body.
    * @param luisApp A LUIS application structure.
    * @param [options] The optional parameters
@@ -306,7 +306,7 @@ export class Apps {
    * @param [options] The optional parameters
    * @returns Promise
    */
-  deleteMethod(appId: string, options?: msRest.RequestOptionsBase): Promise;
+  deleteMethod(appId: string, options?: Models.AppsDeleteMethodOptionalParams): Promise;
   /**
    * @param appId The application ID.
    * @param callback The callback
@@ -317,8 +317,8 @@ export class Apps {
    * @param options The optional parameters
    * @param callback The callback
    */
-  deleteMethod(appId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
-  deleteMethod(appId: string, options?: msRest.RequestOptionsBase | 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,
@@ -593,6 +593,72 @@ export class Apps {
       listAvailableCustomPrebuiltDomainsForCultureOperationSpec,
       callback) as Promise;
   }
+
+  /**
+   * Packages published LUIS application as GZip.
+   * @summary package - Gets published LUIS application package in binary stream GZip format
+   * @param appId The application ID.
+   * @param slotName The publishing slot name.
+   * @param [options] The optional parameters
+   * @returns 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;
+  /**
+   * @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 {
+    return this.client.sendOperationRequest(
+      {
+        appId,
+        slotName,
+        options
+      },
+      packagePublishedApplicationAsGzipOperationSpec,
+      callback) as Promise;
+  }
+
+  /**
+   * Packages trained LUIS application as GZip.
+   * @summary package - Gets trained LUIS application package in binary stream GZip format
+   * @param appId The application ID.
+   * @param versionId The version ID.
+   * @param [options] The optional parameters
+   * @returns 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;
+  /**
+   * @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 {
+    return this.client.sendOperationRequest(
+      {
+        appId,
+        versionId,
+        options
+      },
+      packageTrainedApplicationAsGzipOperationSpec,
+      callback) as Promise;
+  }
 }
 
 // Operation Specifications
@@ -860,6 +926,9 @@ const deleteMethodOperationSpec: msRest.OperationSpec = {
     Parameters.endpoint,
     Parameters.appId
   ],
+  queryParameters: [
+    Parameters.force
+  ],
   responses: {
     200: {
       bodyMapper: Mappers.OperationStatus
@@ -889,6 +958,9 @@ const publishOperationSpec: msRest.OperationSpec = {
     201: {
       bodyMapper: Mappers.ProductionOrStagingEndpointInfo
     },
+    207: {
+      bodyMapper: Mappers.ProductionOrStagingEndpointInfo
+    },
     default: {
       bodyMapper: Mappers.ErrorResponse
     }
@@ -1095,3 +1167,51 @@ const listAvailableCustomPrebuiltDomainsForCultureOperationSpec: msRest.Operatio
   },
   serializer
 };
+
+const packagePublishedApplicationAsGzipOperationSpec: msRest.OperationSpec = {
+  httpMethod: "GET",
+  path: "package/{appId}/slot/{slotName}/gzip",
+  urlParameters: [
+    Parameters.endpoint,
+    Parameters.appId,
+    Parameters.slotName
+  ],
+  responses: {
+    200: {
+      bodyMapper: {
+        serializedName: "parsedResponse",
+        type: {
+          name: "Stream"
+        }
+      }
+    },
+    default: {
+      bodyMapper: Mappers.ErrorResponse
+    }
+  },
+  serializer
+};
+
+const packageTrainedApplicationAsGzipOperationSpec: msRest.OperationSpec = {
+  httpMethod: "GET",
+  path: "package/{appId}/versions/{versionId}/gzip",
+  urlParameters: [
+    Parameters.endpoint,
+    Parameters.appId,
+    Parameters.versionId0
+  ],
+  responses: {
+    200: {
+      bodyMapper: {
+        serializedName: "parsedResponse",
+        type: {
+          name: "Stream"
+        }
+      }
+    },
+    default: {
+      bodyMapper: Mappers.ErrorResponse
+    }
+  },
+  serializer
+};
diff --git a/packages/@azure/cognitiveservices-luis-authoring/lib/operations/azureAccounts.ts b/packages/@azure/cognitiveservices-luis-authoring/lib/operations/azureAccounts.ts
new file mode 100644
index 000000000000..38b507b17519
--- /dev/null
+++ b/packages/@azure/cognitiveservices-luis-authoring/lib/operations/azureAccounts.ts
@@ -0,0 +1,249 @@
+/*
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * 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 "ms-rest-js";
+import * as Models from "../models";
+import * as Mappers from "../models/azureAccountsMappers";
+import * as Parameters from "../models/parameters";
+import { LUISAuthoringClientContext } from "../lUISAuthoringClientContext";
+
+/** Class representing a AzureAccounts. */
+export class AzureAccounts {
+  private readonly client: LUISAuthoringClientContext;
+
+  /**
+   * Create a AzureAccounts.
+   * @param {LUISAuthoringClientContext} client Reference to the service client.
+   */
+  constructor(client: LUISAuthoringClientContext) {
+    this.client = client;
+  }
+
+  /**
+   * Assigns an azure account to the application.
+   * @summary apps - Assign a LUIS azure account to an application
+   * @param appId The application ID.
+   * @param [options] The optional parameters
+   * @returns Promise
+   */
+  assignToApp(appId: string, options?: Models.AzureAccountsAssignToAppOptionalParams): Promise;
+  /**
+   * @param appId The application ID.
+   * @param callback The callback
+   */
+  assignToApp(appId: string, callback: msRest.ServiceCallback): void;
+  /**
+   * @param appId The application ID.
+   * @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 {
+    return this.client.sendOperationRequest(
+      {
+        appId,
+        options
+      },
+      assignToAppOperationSpec,
+      callback) as Promise;
+  }
+
+  /**
+   * Gets the LUIS azure accounts assigned to the application for the user using his ARM token.
+   * @summary apps - Get LUIS azure accounts assigned to the application
+   * @param appId The application ID.
+   * @param [options] The optional parameters
+   * @returns Promise
+   */
+  getAssigned(appId: string, options?: msRest.RequestOptionsBase): Promise;
+  /**
+   * @param appId The application ID.
+   * @param callback The callback
+   */
+  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 {
+    return this.client.sendOperationRequest(
+      {
+        appId,
+        options
+      },
+      getAssignedOperationSpec,
+      callback) as Promise;
+  }
+
+  /**
+   * Removes assigned azure account from the application.
+   * @summary apps - Removes an assigned LUIS azure account from an application
+   * @param appId The application ID.
+   * @param [options] The optional parameters
+   * @returns Promise
+   */
+  removeFromApp(appId: string, options?: Models.AzureAccountsRemoveFromAppOptionalParams): Promise;
+  /**
+   * @param appId The application ID.
+   * @param callback The callback
+   */
+  removeFromApp(appId: string, callback: msRest.ServiceCallback): void;
+  /**
+   * @param appId The application ID.
+   * @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 {
+    return this.client.sendOperationRequest(
+      {
+        appId,
+        options
+      },
+      removeFromAppOperationSpec,
+      callback) as Promise;
+  }
+
+  /**
+   * Gets the LUIS azure accounts for the user using his ARM token.
+   * @summary user - Get LUIS azure accounts
+   * @param [options] The optional parameters
+   * @returns Promise
+   */
+  getUserLUISAccounts(options?: msRest.RequestOptionsBase): Promise;
+  /**
+   * @param callback The callback
+   */
+  getUserLUISAccounts(callback: msRest.ServiceCallback): void;
+  /**
+   * @param options The optional parameters
+   * @param callback The callback
+   */
+  getUserLUISAccounts(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+  getUserLUISAccounts(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+    return this.client.sendOperationRequest(
+      {
+        options
+      },
+      getUserLUISAccountsOperationSpec,
+      callback) as Promise;
+  }
+}
+
+// Operation Specifications
+const serializer = new msRest.Serializer(Mappers);
+const assignToAppOperationSpec: msRest.OperationSpec = {
+  httpMethod: "POST",
+  path: "apps/{appId}/azureaccounts",
+  urlParameters: [
+    Parameters.endpoint,
+    Parameters.appId
+  ],
+  requestBody: {
+    parameterPath: [
+      "options",
+      "azureAccountInfoObject"
+    ],
+    mapper: Mappers.AzureAccountInfoObject
+  },
+  responses: {
+    201: {
+      bodyMapper: Mappers.OperationStatus
+    },
+    default: {
+      bodyMapper: Mappers.ErrorResponse
+    }
+  },
+  serializer
+};
+
+const getAssignedOperationSpec: msRest.OperationSpec = {
+  httpMethod: "GET",
+  path: "apps/{appId}/azureaccounts",
+  urlParameters: [
+    Parameters.endpoint,
+    Parameters.appId
+  ],
+  responses: {
+    200: {
+      bodyMapper: {
+        serializedName: "parsedResponse",
+        type: {
+          name: "Sequence",
+          element: {
+            type: {
+              name: "Composite",
+              className: "AzureAccountInfoObject"
+            }
+          }
+        }
+      }
+    },
+    default: {
+      bodyMapper: Mappers.ErrorResponse
+    }
+  },
+  serializer
+};
+
+const removeFromAppOperationSpec: msRest.OperationSpec = {
+  httpMethod: "DELETE",
+  path: "apps/{appId}/azureaccounts",
+  urlParameters: [
+    Parameters.endpoint,
+    Parameters.appId
+  ],
+  requestBody: {
+    parameterPath: [
+      "options",
+      "azureAccountInfoObject"
+    ],
+    mapper: Mappers.AzureAccountInfoObject
+  },
+  responses: {
+    200: {
+      bodyMapper: Mappers.OperationStatus
+    },
+    default: {
+      bodyMapper: Mappers.ErrorResponse
+    }
+  },
+  serializer
+};
+
+const getUserLUISAccountsOperationSpec: msRest.OperationSpec = {
+  httpMethod: "GET",
+  path: "azureaccounts",
+  urlParameters: [
+    Parameters.endpoint
+  ],
+  responses: {
+    200: {
+      bodyMapper: {
+        serializedName: "parsedResponse",
+        type: {
+          name: "Sequence",
+          element: {
+            type: {
+              name: "Composite",
+              className: "AzureAccountInfoObject"
+            }
+          }
+        }
+      }
+    },
+    default: {
+      bodyMapper: Mappers.ErrorResponse
+    }
+  },
+  serializer
+};
diff --git a/packages/@azure/cognitiveservices-luis-authoring/lib/operations/dispatch.ts b/packages/@azure/cognitiveservices-luis-authoring/lib/operations/dispatch.ts
new file mode 100644
index 000000000000..02d41fac9831
--- /dev/null
+++ b/packages/@azure/cognitiveservices-luis-authoring/lib/operations/dispatch.ts
@@ -0,0 +1,273 @@
+/*
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * 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 "ms-rest-js";
+import * as Models from "../models";
+import * as Mappers from "../models/dispatchMappers";
+import * as Parameters from "../models/parameters";
+import { LUISAuthoringClientContext } from "../lUISAuthoringClientContext";
+
+/** Class representing a Dispatch. */
+export class Dispatch {
+  private readonly client: LUISAuthoringClientContext;
+
+  /**
+   * Create a Dispatch.
+   * @param {LUISAuthoringClientContext} client Reference to the service client.
+   */
+  constructor(client: LUISAuthoringClientContext) {
+    this.client = client;
+  }
+
+  /**
+   * @summary Updates connected services
+   * @param appId The application ID.
+   * @param versionId The version ID.
+   * @param connectedServices A JSON array of service connections.
+   * @param [options] The optional parameters
+   * @returns Promise
+   */
+  batchUpdateConnectedServices(appId: string, versionId: string, connectedServices: Models.DispatchConnectedServiceObject[], options?: msRest.RequestOptionsBase): Promise;
+  /**
+   * @param appId The application ID.
+   * @param versionId The version ID.
+   * @param connectedServices A JSON array of service connections.
+   * @param callback The callback
+   */
+  batchUpdateConnectedServices(appId: string, versionId: string, connectedServices: Models.DispatchConnectedServiceObject[], callback: msRest.ServiceCallback): void;
+  /**
+   * @param appId The application ID.
+   * @param versionId The version ID.
+   * @param connectedServices A JSON array of service connections.
+   * @param options The optional parameters
+   * @param callback The callback
+   */
+  batchUpdateConnectedServices(appId: string, versionId: string, connectedServices: Models.DispatchConnectedServiceObject[], options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+  batchUpdateConnectedServices(appId: string, versionId: string, connectedServices: Models.DispatchConnectedServiceObject[], options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+    return this.client.sendOperationRequest(
+      {
+        appId,
+        versionId,
+        connectedServices,
+        options
+      },
+      batchUpdateConnectedServicesOperationSpec,
+      callback) as Promise;
+  }
+
+  /**
+   * @summary Adds connected services
+   * @param appId The application ID.
+   * @param versionId The version ID.
+   * @param connectedServices A JSON array of service connections.
+   * @param [options] The optional parameters
+   * @returns Promise
+   */
+  batchAddConnectedServices(appId: string, versionId: string, connectedServices: Models.DispatchConnectedServiceObject[], options?: msRest.RequestOptionsBase): Promise;
+  /**
+   * @param appId The application ID.
+   * @param versionId The version ID.
+   * @param connectedServices A JSON array of service connections.
+   * @param callback The callback
+   */
+  batchAddConnectedServices(appId: string, versionId: string, connectedServices: Models.DispatchConnectedServiceObject[], callback: msRest.ServiceCallback): void;
+  /**
+   * @param appId The application ID.
+   * @param versionId The version ID.
+   * @param connectedServices A JSON array of service connections.
+   * @param options The optional parameters
+   * @param callback The callback
+   */
+  batchAddConnectedServices(appId: string, versionId: string, connectedServices: Models.DispatchConnectedServiceObject[], options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+  batchAddConnectedServices(appId: string, versionId: string, connectedServices: Models.DispatchConnectedServiceObject[], options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+    return this.client.sendOperationRequest(
+      {
+        appId,
+        versionId,
+        connectedServices,
+        options
+      },
+      batchAddConnectedServicesOperationSpec,
+      callback) as Promise;
+  }
+
+  /**
+   * @summary Deletes the services connected to the specified intents
+   * @param appId The application ID.
+   * @param versionId The version ID.
+   * @param intentNames The intent names.
+   * @param [options] The optional parameters
+   * @returns Promise
+   */
+  deleteConnectedServices(appId: string, versionId: string, intentNames: Models.DispatchConnectedServiceDeleteObject[], options?: msRest.RequestOptionsBase): Promise;
+  /**
+   * @param appId The application ID.
+   * @param versionId The version ID.
+   * @param intentNames The intent names.
+   * @param callback The callback
+   */
+  deleteConnectedServices(appId: string, versionId: string, intentNames: Models.DispatchConnectedServiceDeleteObject[], callback: msRest.ServiceCallback): void;
+  /**
+   * @param appId The application ID.
+   * @param versionId The version ID.
+   * @param intentNames The intent names.
+   * @param options The optional parameters
+   * @param callback The callback
+   */
+  deleteConnectedServices(appId: string, versionId: string, intentNames: Models.DispatchConnectedServiceDeleteObject[], options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+  deleteConnectedServices(appId: string, versionId: string, intentNames: Models.DispatchConnectedServiceDeleteObject[], options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+    return this.client.sendOperationRequest(
+      {
+        appId,
+        versionId,
+        intentNames,
+        options
+      },
+      deleteConnectedServicesOperationSpec,
+      callback) as Promise;
+  }
+}
+
+// Operation Specifications
+const serializer = new msRest.Serializer(Mappers);
+const batchUpdateConnectedServicesOperationSpec: msRest.OperationSpec = {
+  httpMethod: "PUT",
+  path: "apps/{appId}/versions/{versionId}/connectedServices",
+  urlParameters: [
+    Parameters.endpoint,
+    Parameters.appId,
+    Parameters.versionId0
+  ],
+  requestBody: {
+    parameterPath: "connectedServices",
+    mapper: {
+      required: true,
+      serializedName: "connectedServices",
+      type: {
+        name: "Sequence",
+        element: {
+          type: {
+            name: "Composite",
+            className: "DispatchConnectedServiceObject"
+          }
+        }
+      }
+    }
+  },
+  responses: {
+    200: {
+      bodyMapper: Mappers.OperationStatus
+    },
+    400: {
+      bodyMapper: Mappers.ErrorResponse
+    },
+    401: {
+      bodyMapper: Mappers.ErrorResponse
+    },
+    403: {
+      bodyMapper: Mappers.ErrorResponse
+    },
+    429: {
+      bodyMapper: Mappers.ErrorResponse
+    },
+    default: {}
+  },
+  serializer
+};
+
+const batchAddConnectedServicesOperationSpec: msRest.OperationSpec = {
+  httpMethod: "POST",
+  path: "apps/{appId}/versions/{versionId}/connectedServices",
+  urlParameters: [
+    Parameters.endpoint,
+    Parameters.appId,
+    Parameters.versionId0
+  ],
+  requestBody: {
+    parameterPath: "connectedServices",
+    mapper: {
+      required: true,
+      serializedName: "connectedServices",
+      type: {
+        name: "Sequence",
+        element: {
+          type: {
+            name: "Composite",
+            className: "DispatchConnectedServiceObject"
+          }
+        }
+      }
+    }
+  },
+  responses: {
+    200: {
+      bodyMapper: Mappers.OperationStatus
+    },
+    400: {
+      bodyMapper: Mappers.ErrorResponse
+    },
+    401: {
+      bodyMapper: Mappers.ErrorResponse
+    },
+    403: {
+      bodyMapper: Mappers.ErrorResponse
+    },
+    429: {
+      bodyMapper: Mappers.ErrorResponse
+    },
+    default: {}
+  },
+  serializer
+};
+
+const deleteConnectedServicesOperationSpec: msRest.OperationSpec = {
+  httpMethod: "DELETE",
+  path: "apps/{appId}/versions/{versionId}/connectedServices",
+  urlParameters: [
+    Parameters.endpoint,
+    Parameters.appId,
+    Parameters.versionId0
+  ],
+  requestBody: {
+    parameterPath: "intentNames",
+    mapper: {
+      required: true,
+      serializedName: "intentNames",
+      type: {
+        name: "Sequence",
+        element: {
+          type: {
+            name: "Composite",
+            className: "DispatchConnectedServiceDeleteObject"
+          }
+        }
+      }
+    }
+  },
+  responses: {
+    200: {
+      bodyMapper: Mappers.OperationStatus
+    },
+    400: {
+      bodyMapper: Mappers.ErrorResponse
+    },
+    401: {
+      bodyMapper: Mappers.ErrorResponse
+    },
+    403: {
+      bodyMapper: Mappers.ErrorResponse
+    },
+    429: {
+      bodyMapper: Mappers.ErrorResponse
+    },
+    default: {}
+  },
+  serializer
+};
diff --git a/packages/@azure/cognitiveservices-luis-authoring/lib/operations/examples.ts b/packages/@azure/cognitiveservices-luis-authoring/lib/operations/examples.ts
index dd71b1613d47..e75db1507033 100644
--- a/packages/@azure/cognitiveservices-luis-authoring/lib/operations/examples.ts
+++ b/packages/@azure/cognitiveservices-luis-authoring/lib/operations/examples.ts
@@ -8,7 +8,7 @@
  * regenerated.
  */
 
-import * as msRest from "@azure/ms-rest-js";
+import * as msRest from "ms-rest-js";
 import * as Models from "../models";
 import * as Mappers from "../models/examplesMappers";
 import * as Parameters from "../models/parameters";
diff --git a/packages/@azure/cognitiveservices-luis-authoring/lib/operations/features.ts b/packages/@azure/cognitiveservices-luis-authoring/lib/operations/features.ts
index 497d5c33c056..96110a5dedad 100644
--- a/packages/@azure/cognitiveservices-luis-authoring/lib/operations/features.ts
+++ b/packages/@azure/cognitiveservices-luis-authoring/lib/operations/features.ts
@@ -8,7 +8,7 @@
  * regenerated.
  */
 
-import * as msRest from "@azure/ms-rest-js";
+import * as msRest from "ms-rest-js";
 import * as Models from "../models";
 import * as Mappers from "../models/featuresMappers";
 import * as Parameters from "../models/parameters";
diff --git a/packages/@azure/cognitiveservices-luis-authoring/lib/operations/index.ts b/packages/@azure/cognitiveservices-luis-authoring/lib/operations/index.ts
index b337d37a5fa8..213f356bb13f 100644
--- a/packages/@azure/cognitiveservices-luis-authoring/lib/operations/index.ts
+++ b/packages/@azure/cognitiveservices-luis-authoring/lib/operations/index.ts
@@ -17,3 +17,4 @@ export * from "./train";
 export * from "./permissions";
 export * from "./pattern";
 export * from "./settings";
+export * from "./azureAccounts";
diff --git a/packages/@azure/cognitiveservices-luis-authoring/lib/operations/model.ts b/packages/@azure/cognitiveservices-luis-authoring/lib/operations/model.ts
index 4fdd8b4632f7..75b6e546cdb6 100644
--- a/packages/@azure/cognitiveservices-luis-authoring/lib/operations/model.ts
+++ b/packages/@azure/cognitiveservices-luis-authoring/lib/operations/model.ts
@@ -8,7 +8,7 @@
  * regenerated.
  */
 
-import * as msRest from "@azure/ms-rest-js";
+import * as msRest from "ms-rest-js";
 import * as Models from "../models";
 import * as Mappers from "../models/modelMappers";
 import * as Parameters from "../models/parameters";
diff --git a/packages/@azure/cognitiveservices-luis-authoring/lib/operations/pattern.ts b/packages/@azure/cognitiveservices-luis-authoring/lib/operations/pattern.ts
index aa48bd88ebdf..5cbb67fe10f9 100644
--- a/packages/@azure/cognitiveservices-luis-authoring/lib/operations/pattern.ts
+++ b/packages/@azure/cognitiveservices-luis-authoring/lib/operations/pattern.ts
@@ -8,7 +8,7 @@
  * regenerated.
  */
 
-import * as msRest from "@azure/ms-rest-js";
+import * as msRest from "ms-rest-js";
 import * as Models from "../models";
 import * as Mappers from "../models/patternMappers";
 import * as Parameters from "../models/parameters";
diff --git a/packages/@azure/cognitiveservices-luis-authoring/lib/operations/permissions.ts b/packages/@azure/cognitiveservices-luis-authoring/lib/operations/permissions.ts
index 2089ce481d14..271ce90f3fed 100644
--- a/packages/@azure/cognitiveservices-luis-authoring/lib/operations/permissions.ts
+++ b/packages/@azure/cognitiveservices-luis-authoring/lib/operations/permissions.ts
@@ -8,7 +8,7 @@
  * regenerated.
  */
 
-import * as msRest from "@azure/ms-rest-js";
+import * as msRest from "ms-rest-js";
 import * as Models from "../models";
 import * as Mappers from "../models/permissionsMappers";
 import * as Parameters from "../models/parameters";
diff --git a/packages/@azure/cognitiveservices-luis-authoring/lib/operations/settings.ts b/packages/@azure/cognitiveservices-luis-authoring/lib/operations/settings.ts
index 55d0ddfbc152..5ddbec728648 100644
--- a/packages/@azure/cognitiveservices-luis-authoring/lib/operations/settings.ts
+++ b/packages/@azure/cognitiveservices-luis-authoring/lib/operations/settings.ts
@@ -8,7 +8,7 @@
  * regenerated.
  */
 
-import * as msRest from "@azure/ms-rest-js";
+import * as msRest from "ms-rest-js";
 import * as Models from "../models";
 import * as Mappers from "../models/settingsMappers";
 import * as Parameters from "../models/parameters";
diff --git a/packages/@azure/cognitiveservices-luis-authoring/lib/operations/train.ts b/packages/@azure/cognitiveservices-luis-authoring/lib/operations/train.ts
index 53d2c9848983..5bd7e1fc99f5 100644
--- a/packages/@azure/cognitiveservices-luis-authoring/lib/operations/train.ts
+++ b/packages/@azure/cognitiveservices-luis-authoring/lib/operations/train.ts
@@ -8,7 +8,7 @@
  * regenerated.
  */
 
-import * as msRest from "@azure/ms-rest-js";
+import * as msRest from "ms-rest-js";
 import * as Models from "../models";
 import * as Mappers from "../models/trainMappers";
 import * as Parameters from "../models/parameters";
diff --git a/packages/@azure/cognitiveservices-luis-authoring/lib/operations/versions.ts b/packages/@azure/cognitiveservices-luis-authoring/lib/operations/versions.ts
index b422bf38503f..d346a0ab3b2b 100644
--- a/packages/@azure/cognitiveservices-luis-authoring/lib/operations/versions.ts
+++ b/packages/@azure/cognitiveservices-luis-authoring/lib/operations/versions.ts
@@ -8,7 +8,7 @@
  * regenerated.
  */
 
-import * as msRest from "@azure/ms-rest-js";
+import * as msRest from "ms-rest-js";
 import * as Models from "../models";
 import * as Mappers from "../models/versionsMappers";
 import * as Parameters from "../models/parameters";
diff --git a/packages/@azure/cognitiveservices-luis-authoring/package.json b/packages/@azure/cognitiveservices-luis-authoring/package.json
index dcbcc59168f0..5263196297e3 100644
--- a/packages/@azure/cognitiveservices-luis-authoring/package.json
+++ b/packages/@azure/cognitiveservices-luis-authoring/package.json
@@ -4,7 +4,7 @@
   "description": "LUISAuthoringClient Library with typescript type definitions for node.js and browser.",
   "version": "0.1.0",
   "dependencies": {
-    "@azure/ms-rest-js": "^1.1.0",
+    "ms-rest-js": "^1.0.460",
     "tslib": "^1.9.3"
   },
   "keywords": [
diff --git a/packages/@azure/cognitiveservices-luis-authoring/rollup.config.js b/packages/@azure/cognitiveservices-luis-authoring/rollup.config.js
index 0c169c310fa4..7a503e82954f 100644
--- a/packages/@azure/cognitiveservices-luis-authoring/rollup.config.js
+++ b/packages/@azure/cognitiveservices-luis-authoring/rollup.config.js
@@ -4,15 +4,15 @@ import nodeResolve from "rollup-plugin-node-resolve";
  */
 const config = {
   input: './esm/lUISAuthoringClient.js',
-  external: ["@azure/ms-rest-js", "@azure/ms-rest-azure-js"],
+  external: ["ms-rest-js", "ms-rest-azure-js"],
   output: {
     file: "./dist/cognitiveservices-luis-authoring.js",
     format: "umd",
     name: "Azure.CognitiveservicesLuisAuthoring",
     sourcemap: true,
     globals: {
-      "@azure/ms-rest-js": "msRest",
-      "@azure/ms-rest-azure-js": "msRestAzure"
+      "ms-rest-js": "msRest",
+      "ms-rest-azure-js": "msRestAzure"
     },
     banner: `/*
  * Copyright (c) Microsoft Corporation. All rights reserved.
diff --git a/packages/@azure/cognitiveservices-luis-authoring/tsconfig.json b/packages/@azure/cognitiveservices-luis-authoring/tsconfig.json
index 51ea90961ce5..f32d1664f320 100644
--- a/packages/@azure/cognitiveservices-luis-authoring/tsconfig.json
+++ b/packages/@azure/cognitiveservices-luis-authoring/tsconfig.json
@@ -14,6 +14,6 @@
     "outDir": "./esm",
     "importHelpers": true
   },
-  "include": ["./lib/**/*.ts"],
+  "include": ["./lib/**/*"],
   "exclude": ["node_modules"]
 }