diff --git a/packages/@azure/cognitiveservices-luis-authoring/README.md b/packages/@azure/cognitiveservices-luis-authoring/README.md index 9e291b1ff5b3..0be22c739be4 100644 --- a/packages/@azure/cognitiveservices-luis-authoring/README.md +++ b/packages/@azure/cognitiveservices-luis-authoring/README.md @@ -15,7 +15,7 @@ npm install @azure/cognitiveservices-luis-authoring ### How to use -#### nodejs - Authentication, client creation and listPhraseLists features as an example written in TypeScript. +#### nodejs - Authentication, client creation and listApplicationVersionPatternFeatures features as an example written in TypeScript. ##### Install @azure/ms-rest-nodeauth @@ -33,11 +33,13 @@ const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; msRestNodeAuth.interactiveLogin().then((creds) => { const client = new LUISAuthoringClient(creds, subscriptionId); + const azureRegion = "westus"; + const azureCloud = "com"; const appId = ec7b1657-199d-4d8a-bbb2-89a11a42e02a; const versionId = "testversionId"; const skip = 1; const take = 1; - client.features.listPhraseLists(appId, versionId, skip, take).then((result) => { + client.features.listApplicationVersionPatternFeatures(azureRegion, azureCloud, appId, versionId, skip, take).then((result) => { console.log("The result is:"); console.log(result); }); @@ -46,7 +48,7 @@ msRestNodeAuth.interactiveLogin().then((creds) => { }); ``` -#### browser - Authentication, client creation and listPhraseLists features as an example written in JavaScript. +#### browser - Authentication, client creation and listApplicationVersionPatternFeatures features as an example written in JavaScript. ##### Install @azure/ms-rest-browserauth @@ -79,11 +81,13 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to authManager.login(); } const client = new Azure.CognitiveservicesLuisAuthoring.LUISAuthoringClient(res.creds, subscriptionId); + const azureRegion = "westus"; + const azureCloud = "com"; const appId = ec7b1657-199d-4d8a-bbb2-89a11a42e02a; const versionId = "testversionId"; const skip = 1; const take = 1; - client.features.listPhraseLists(appId, versionId, skip, take).then((result) => { + client.features.listApplicationVersionPatternFeatures(azureRegion, azureCloud, appId, versionId, skip, take).then((result) => { console.log("The result is:"); console.log(result); }).catch((err) => { @@ -100,6 +104,3 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to ## Related projects - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) - - -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fpackages%2F%40azure%2Fcognitiveservices-luis-authoring%2FREADME.png) diff --git a/packages/@azure/cognitiveservices-luis-authoring/lib/lUISAuthoringClient.ts b/packages/@azure/cognitiveservices-luis-authoring/lib/lUISAuthoringClient.ts index 4f3ceab4cdff..9839de771fba 100644 --- a/packages/@azure/cognitiveservices-luis-authoring/lib/lUISAuthoringClient.ts +++ b/packages/@azure/cognitiveservices-luis-authoring/lib/lUISAuthoringClient.ts @@ -29,13 +29,11 @@ class LUISAuthoringClient extends LUISAuthoringClientContext { /** * Initializes a new instance of the LUISAuthoringClient class. - * @param endpoint Supported Cognitive Services endpoints (protocol and hostname, for example: - * https://westus.api.cognitive.microsoft.com). * @param credentials Subscription credentials which uniquely identify client subscription. * @param [options] The parameter options */ - constructor(endpoint: string, credentials: msRest.ServiceClientCredentials, options?: msRest.ServiceClientOptions) { - super(endpoint, credentials, options); + constructor(credentials: msRest.ServiceClientCredentials, options?: msRest.ServiceClientOptions) { + super(credentials, options); this.features = new operations.Features(this); this.examples = new operations.Examples(this); this.model = new operations.Model(this); diff --git a/packages/@azure/cognitiveservices-luis-authoring/lib/lUISAuthoringClientContext.ts b/packages/@azure/cognitiveservices-luis-authoring/lib/lUISAuthoringClientContext.ts index ff1b4d866d87..3c870800bf8b 100644 --- a/packages/@azure/cognitiveservices-luis-authoring/lib/lUISAuthoringClientContext.ts +++ b/packages/@azure/cognitiveservices-luis-authoring/lib/lUISAuthoringClientContext.ts @@ -14,20 +14,14 @@ const packageName = "@azure/cognitiveservices-luis-authoring"; const packageVersion = "2.1.0"; export class LUISAuthoringClientContext extends msRest.ServiceClient { - endpoint: string; credentials: msRest.ServiceClientCredentials; /** * Initializes a new instance of the LUISAuthoringClientContext class. - * @param endpoint Supported Cognitive Services endpoints (protocol and hostname, for example: - * https://westus.api.cognitive.microsoft.com). * @param credentials Subscription credentials which uniquely identify client subscription. * @param [options] The parameter options */ - constructor(endpoint: string, credentials: msRest.ServiceClientCredentials, options?: msRest.ServiceClientOptions) { - if (endpoint === null || endpoint === undefined) { - throw new Error('\'endpoint\' cannot be null.'); - } + constructor(credentials: msRest.ServiceClientCredentials, options?: msRest.ServiceClientOptions) { if (credentials === null || credentials === undefined) { throw new Error('\'credentials\' cannot be null.'); } @@ -35,17 +29,16 @@ export class LUISAuthoringClientContext extends msRest.ServiceClient { if (!options) { options = {}; } - - if (!options.userAgent) { + if(!options.userAgent) { const defaultUserAgent = msRest.getDefaultUserAgentValue(); options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`; } super(credentials, options); - this.baseUri = "{Endpoint}"; + this.baseUri = "http://{AzureRegion}.api.cognitive.microsoft.{AzureCloud}"; this.requestContentType = "application/json; charset=utf-8"; - this.endpoint = endpoint; this.credentials = credentials; + } } diff --git a/packages/@azure/cognitiveservices-luis-authoring/lib/models/appsMappers.ts b/packages/@azure/cognitiveservices-luis-authoring/lib/models/appsMappers.ts index f6e23c3abc3e..02a233a2e700 100644 --- a/packages/@azure/cognitiveservices-luis-authoring/lib/models/appsMappers.ts +++ b/packages/@azure/cognitiveservices-luis-authoring/lib/models/appsMappers.ts @@ -1,41 +1,44 @@ /* * 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. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. */ export { ApplicationCreateObject, - ApplicationInfoResponse, - ApplicationPublishObject, - ApplicationSettings, - ApplicationSettingUpdateObject, - ApplicationUpdateObject, - AvailableCulture, - ClosedList, - EndpointInfo, ErrorResponse, - HierarchicalModel, - JSONEntity, - JSONModelFeature, - JSONRegexFeature, - JSONUtterance, + ApplicationInfoResponse, LuisApp, - OperationStatus, + HierarchicalModel, + PrebuiltDomainObject, + ClosedList, + SubClosedList, PatternAny, + RegexEntity, + PrebuiltEntity, + JSONRegexFeature, + JSONModelFeature, PatternRule, + JSONUtterance, + JSONEntity, PersonalAssistantsResponse, - PrebuiltDomain, - PrebuiltDomainCreateObject, - PrebuiltDomainItem, - PrebuiltDomainObject, - PrebuiltEntity, + AvailableCulture, + ApplicationUpdateObject, + OperationStatus, + ApplicationPublishObject, ProductionOrStagingEndpointInfo, + EndpointInfo, + ApplicationSettings, + ApplicationSettingUpdateObject, PublishSettings, PublishSettingUpdateObject, - RegexEntity, - SubClosedList, + PrebuiltDomain, + PrebuiltDomainItem, + PrebuiltDomainCreateObject, SubClosedListResponse } from "../models/mappers"; + diff --git a/packages/@azure/cognitiveservices-luis-authoring/lib/models/azureAccountsMappers.ts b/packages/@azure/cognitiveservices-luis-authoring/lib/models/azureAccountsMappers.ts index 6f0cd86cc21b..98a20816f7f3 100644 --- a/packages/@azure/cognitiveservices-luis-authoring/lib/models/azureAccountsMappers.ts +++ b/packages/@azure/cognitiveservices-luis-authoring/lib/models/azureAccountsMappers.ts @@ -1,13 +1,16 @@ /* * 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. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. */ export { AzureAccountInfoObject, - ErrorResponse, - OperationStatus + OperationStatus, + ErrorResponse } from "../models/mappers"; + diff --git a/packages/@azure/cognitiveservices-luis-authoring/lib/models/examplesMappers.ts b/packages/@azure/cognitiveservices-luis-authoring/lib/models/examplesMappers.ts index d4cb41a958a7..60a7199bfda1 100644 --- a/packages/@azure/cognitiveservices-luis-authoring/lib/models/examplesMappers.ts +++ b/packages/@azure/cognitiveservices-luis-authoring/lib/models/examplesMappers.ts @@ -1,20 +1,23 @@ /* * 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. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. */ export { - BatchLabelExample, - EntityLabel, + ExampleLabelObject, EntityLabelObject, - EntityPrediction, + LabelExampleResponse, ErrorResponse, - ExampleLabelObject, - IntentPrediction, + BatchLabelExample, + OperationStatus, LabeledUtterance, - LabelExampleResponse, - OperationStatus + EntityLabel, + IntentPrediction, + EntityPrediction } from "../models/mappers"; + diff --git a/packages/@azure/cognitiveservices-luis-authoring/lib/models/featuresMappers.ts b/packages/@azure/cognitiveservices-luis-authoring/lib/models/featuresMappers.ts index 51b9484e0c2a..6b7bf9523a76 100644 --- a/packages/@azure/cognitiveservices-luis-authoring/lib/models/featuresMappers.ts +++ b/packages/@azure/cognitiveservices-luis-authoring/lib/models/featuresMappers.ts @@ -1,18 +1,21 @@ /* * 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. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. */ export { - ErrorResponse, - FeatureInfoObject, - FeaturesResponseObject, - OperationStatus, PatternFeatureInfo, + FeatureInfoObject, + ErrorResponse, PhraselistCreateObject, PhraseListFeatureInfo, - PhraselistUpdateObject + FeaturesResponseObject, + PhraselistUpdateObject, + OperationStatus } 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 2c9103de7fb3..c68f28448da0 100644 --- a/packages/@azure/cognitiveservices-luis-authoring/lib/models/index.ts +++ b/packages/@azure/cognitiveservices-luis-authoring/lib/models/index.ts @@ -1,2163 +1,2851 @@ /* * 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. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. */ - import * as msRest from "@azure/ms-rest-js"; + /** - * Defines the entity type and position of the extracted entity within the example. + * @interface + * An interface representing EntityLabelObject. + * Defines the entity type and position of the extracted entity within the + * example. + * */ export interface EntityLabelObject { /** - * The entity type. + * @member {string} entityName The entity type. */ entityName: string; /** - * The index within the utterance where the extracted entity starts. + * @member {number} startCharIndex The index within the utterance where the + * extracted entity starts. */ startCharIndex: number; /** - * The index within the utterance where the extracted entity ends. + * @member {number} endCharIndex The index within the utterance where the + * extracted entity ends. */ endCharIndex: number; } /** + * @interface + * An interface representing ApplicationCreateObject. * Properties for creating a new LUIS Application + * */ export interface ApplicationCreateObject { /** - * The culture for the new application. It is the language that your app understands and speaks. - * E.g.: "en-us". Note: the culture cannot be changed after the app is created. + * @member {string} culture The culture for the new application. It is the + * language that your app understands and speaks. E.g.: "en-us". Note: the + * culture cannot be changed after the app is created. */ culture: string; /** - * The domain for the new application. Optional. E.g.: Comics. + * @member {string} [domain] The domain for the new application. Optional. + * E.g.: Comics. */ domain?: string; /** - * Description of the new application. Optional. + * @member {string} [description] Description of the new application. + * Optional. */ description?: string; /** - * The initial version ID. Optional. Default value is: "0.1" + * @member {string} [initialVersionId] The initial version ID. Optional. + * Default value is: "0.1" */ initialVersionId?: string; /** - * Defines the scenario for the new application. Optional. E.g.: IoT. + * @member {string} [usageScenario] Defines the scenario for the new + * application. Optional. E.g.: IoT. */ usageScenario?: string; /** - * The name for the new application. + * @member {string} name The name for the new application. */ name: string; } /** - * A model object containing the name of the custom prebuilt entity and the name of the domain to - * which this model belongs. + * @interface + * An interface representing PrebuiltDomainCreateBaseObject. + * A model object containing the name of the custom prebuilt entity and the + * name of the domain to which this model belongs. + * */ export interface PrebuiltDomainCreateBaseObject { /** - * The domain name. + * @member {string} [domainName] The domain name. */ domainName?: string; } /** - * A prebuilt domain create object containing the name and culture of the domain. + * @interface + * An interface representing PrebuiltDomainCreateObject. + * A prebuilt domain create object containing the name and culture of the + * domain. + * */ export interface PrebuiltDomainCreateObject { /** - * The domain name. + * @member {string} [domainName] The domain name. */ domainName?: string; /** - * The culture of the new domain. + * @member {string} [culture] The culture of the new domain. */ culture?: string; } /** - * A model object containing the name of the custom prebuilt intent or entity and the name of the - * domain to which this model belongs. + * @interface + * An interface representing PrebuiltDomainModelCreateObject. + * A model object containing the name of the custom prebuilt intent or entity + * and the name of the domain to which this model belongs. + * */ export interface PrebuiltDomainModelCreateObject { /** - * The domain name. + * @member {string} [domainName] The domain name. */ domainName?: string; /** - * The intent name or entity name. + * @member {string} [modelName] The intent name or entity name. */ modelName?: string; } /** - * A Hierarchical Entity Extractor. + * @interface + * An interface representing HierarchicalEntityModel. + * A hierarchical entity extractor. + * */ export interface HierarchicalEntityModel { /** - * Child entities. + * @member {string[]} [children] Child entities. */ children?: string[]; /** - * Entity name. + * @member {string} [name] Entity name. */ name?: string; } /** - * A composite entity. + * @interface + * An interface representing CompositeEntityModel. + * A composite entity extractor. + * */ export interface CompositeEntityModel { /** - * Child entities. + * @member {string[]} [children] Child entities. */ children?: string[]; /** - * Entity name. + * @member {string} [name] Entity name. */ name?: string; } /** + * @interface + * An interface representing JSONEntity. * Exported Model - Extracted Entity from utterance. + * */ export interface JSONEntity { /** - * The index within the utterance where the extracted entity starts. + * @member {number} startPos The index within the utterance where the + * extracted entity starts. */ startPos: number; /** - * The index within the utterance where the extracted entity ends. + * @member {number} endPos The index within the utterance where the extracted + * entity ends. */ endPos: number; /** - * The entity name. + * @member {string} entity The entity name. */ entity: string; } /** + * @interface + * An interface representing ApplicationSettingUpdateObject. * Object model for updating an application's settings. + * */ export interface ApplicationSettingUpdateObject { /** - * Setting your application as public allows other people to use your application's endpoint - * using their own keys. + * @member {boolean} [isPublic] Setting your application as public allows + * other people to use your application's endpoint using their own keys. */ - publicProperty?: boolean; + isPublic?: boolean; } /** + * @interface + * An interface representing PublishSettingUpdateObject. * Object model for updating an application's publish settings. + * */ export interface PublishSettingUpdateObject { /** - * Setting sentiment analysis as true returns the Sentiment of the input utterance along with the - * response + * @member {boolean} [sentimentAnalysis] Setting sentiment analysis as true + * returns the Sentiment of the input utterance along with the response */ sentimentAnalysis?: boolean; /** - * Setting speech as public enables speech priming in your app + * @member {boolean} [speech] Setting speech as public enables speech priming + * in your app */ speech?: boolean; /** - * Setting spell checker as public enables spell checking the input utterance. + * @member {boolean} [spellChecker] Setting spell checker as public enables + * spell checking the input utterance. */ spellChecker?: boolean; } /** - * A labeled example. + * @interface + * An interface representing ExampleLabelObject. + * A labeled example utterance. + * */ export interface ExampleLabelObject { /** - * The sample's utterance. + * @member {string} [text] The example utterance. */ text?: string; /** - * The identified entities within the utterance. + * @member {EntityLabelObject[]} [entityLabels] The identified entities + * within the example utterance. */ entityLabels?: EntityLabelObject[]; /** - * The identified intent representing the utterance. + * @member {string} [intentName] The identified intent representing the + * example utterance. */ intentName?: string; } /** + * @interface + * An interface representing PhraselistCreateObject. * Object model for creating a phraselist model. + * */ export interface PhraselistCreateObject { /** - * List of comma-separated phrases that represent the Phraselist. + * @member {string} [phrases] List of comma-separated phrases that represent + * the Phraselist. */ phrases?: string; /** - * The Phraselist name. + * @member {string} [name] The Phraselist name. */ name?: string; /** - * An exchangeable phrase list feature are serves as single feature to the LUIS underlying - * training algorithm. It is used as a lexicon lookup feature where its value is 1 if the lexicon - * contains a given word or 0 if it doesn’t. Think of an exchangeable as a synonyms list. A - * non-exchangeable phrase list feature has all the phrases in the list serve as separate - * features to the underlying training algorithm. So, if you your phrase list feature contains 5 - * phrases, they will be mapped to 5 separate features. You can think of the non-exchangeable - * phrase list feature as an additional bag of words that you are willing to add to LUIS existing - * vocabulary features. Think of a non-exchangeable as set of different words. Default value is - * true. Default value: true. + * @member {boolean} [isExchangeable] An interchangeable phrase list feature + * serves as a list of synonyms for training. A non-exchangeable phrase list + * serves as separate features for training. So, if your non-interchangeable + * phrase list contains 5 phrases, they will be mapped to 5 separate + * features. You can think of the non-interchangeable phrase list as an + * additional bag of words to add to LUIS existing vocabulary features. It is + * used as a lexicon lookup feature where its value is 1 if the lexicon + * contains a given word or 0 if it doesn’t. Default value is true. Default + * value: true . */ isExchangeable?: boolean; } /** - * Sublist of items for a Closed list. + * @interface + * An interface representing SubClosedList. + * Sublist of items for a list entity. + * */ export interface SubClosedList { /** - * The standard form that the list represents. + * @member {string} [canonicalForm] The standard form that the list + * represents. */ canonicalForm?: string; /** - * List of synonym words. + * @member {string[]} [list] List of synonym words. */ list?: string[]; } /** - * Sublist of items for a Closed list. + * @interface + * An interface representing SubClosedListResponse. + * Sublist of items for a list entity. + * + * @extends SubClosedList */ export interface SubClosedListResponse extends SubClosedList { /** - * The sublist ID + * @member {number} [id] The sublist ID */ id?: number; } /** + * @interface + * An interface representing ApplicationUpdateObject. * Object model for updating the name or description of an application. + * */ export interface ApplicationUpdateObject { /** - * The application's new name. + * @member {string} [name] The application's new name. */ name?: string; /** - * The application's new description. + * @member {string} [description] The application's new description. */ description?: string; } /** + * @interface + * An interface representing JSONRegexFeature. * Exported Model - A Pattern feature. + * */ export interface JSONRegexFeature { /** - * The Regular Expression to match. + * @member {string} [pattern] The Regular Expression to match. */ pattern?: string; /** - * Indicates if the Pattern feature is enabled. + * @member {boolean} [activated] Indicates if the Pattern feature is enabled. */ activated?: boolean; /** - * Name of the feature. + * @member {string} [name] Name of the feature. */ name?: string; } /** + * @interface + * An interface representing PatternUpdateObject. * Object model for updating an existing Pattern feature. + * */ export interface PatternUpdateObject { /** - * The Regular Expression to match. + * @member {string} [pattern] The Regular Expression to match. */ pattern?: string; /** - * Name of the feature. + * @member {string} [name] Name of the feature. */ name?: string; /** - * Indicates if the Pattern feature is enabled. Default value: true. + * @member {boolean} [isActive] Indicates if the Pattern feature is enabled. + * Default value: true . */ isActive?: boolean; } /** - * Exported Model - A Closed List. + * @interface + * An interface representing ClosedList. + * Exported Model - A list entity. + * */ export interface ClosedList { /** - * Name of the closed list feature. + * @member {string} [name] Name of the list entity. */ name?: string; /** - * Sublists for the feature. + * @member {SubClosedList[]} [subLists] Sublists for the list entity. */ subLists?: SubClosedList[]; + /** + * @member {string[]} [roles] + */ roles?: string[]; } /** - * Sublist of items for a Closed list. + * @interface + * An interface representing WordListObject. + * Sublist of items for a list entity. + * */ export interface WordListObject { /** - * The standard form that the list represents. + * @member {string} [canonicalForm] The standard form that the list + * represents. */ canonicalForm?: string; /** - * List of synonym words. + * @member {string[]} [list] List of synonym words. */ list?: string[]; } /** - * Object model for adding a batch of sublists to an existing closedlist. + * @interface + * An interface representing ClosedListModelPatchObject. + * Object model for adding a batch of sublists to an existing list entity. + * */ export interface ClosedListModelPatchObject { /** - * Sublists to add. + * @member {WordListObject[]} [subLists] Sublists to add. */ subLists?: WordListObject[]; } /** + * @interface + * An interface representing JSONModelFeature. * Exported Model - Phraselist Model Feature. + * */ export interface JSONModelFeature { /** - * Indicates if the feature is enabled. + * @member {boolean} [activated] Indicates if the feature is enabled. */ activated?: boolean; /** - * The Phraselist name. + * @member {string} [name] The Phraselist name. */ name?: string; /** - * List of comma-separated phrases that represent the Phraselist. + * @member {string} [words] List of comma-separated phrases that represent + * the Phraselist. */ words?: string; /** - * An exchangeable phrase list feature are serves as single feature to the LUIS underlying - * training algorithm. It is used as a lexicon lookup feature where its value is 1 if the lexicon - * contains a given word or 0 if it doesn’t. Think of an exchangeable as a synonyms list. A - * non-exchangeable phrase list feature has all the phrases in the list serve as separate - * features to the underlying training algorithm. So, if you your phrase list feature contains 5 - * phrases, they will be mapped to 5 separate features. You can think of the non-exchangeable - * phrase list feature as an additional bag of words that you are willing to add to LUIS existing - * vocabulary features. Think of a non-exchangeable as set of different words. Default value is - * true. + * @member {boolean} [mode] An interchangeable phrase list feature serves as + * a list of synonyms for training. A non-exchangeable phrase list serves as + * separate features for training. So, if your non-interchangeable phrase + * list contains 5 phrases, they will be mapped to 5 separate features. You + * can think of the non-interchangeable phrase list as an additional bag of + * words to add to LUIS existing vocabulary features. It is used as a lexicon + * lookup feature where its value is 1 if the lexicon contains a given word + * or 0 if it doesn’t. Default value is true. */ mode?: boolean; } /** + * @interface + * An interface representing ModelCreateObject. * Object model for creating a new entity extractor. + * */ export interface ModelCreateObject { /** - * Name of the new entity extractor. + * @member {string} [name] Name of the new entity extractor. */ name?: string; } /** + * @interface + * An interface representing PatternCreateObject. * Object model for creating a Pattern feature. + * */ export interface PatternCreateObject { /** - * The Regular Expression to match. + * @member {string} [pattern] The Regular Expression to match. */ pattern?: string; /** - * Name of the feature. + * @member {string} [name] Name of the feature. */ name?: string; } /** - * Object model for updating one of the closed list's sublists. + * @interface + * An interface representing WordListBaseUpdateObject. + * Object model for updating one of the list entity's sublists. + * */ export interface WordListBaseUpdateObject { /** - * The standard form that the list represents. + * @member {string} [canonicalForm] The standard form that the list + * represents. */ canonicalForm?: string; /** - * List of synonym words. + * @member {string[]} [list] List of synonym words. */ list?: string[]; } /** + * @interface + * An interface representing JSONUtterance. * Exported Model - Utterance that was used to train the model. + * */ export interface JSONUtterance { /** - * The utterance. + * @member {string} [text] The utterance. */ text?: string; /** - * The matched intent. + * @member {string} [intent] The matched intent. */ intent?: string; /** - * The matched entities. + * @member {JSONEntity[]} [entities] The matched entities. */ entities?: JSONEntity[]; } /** + * @interface + * An interface representing ModelUpdateObject. * Object model for updating an intent classifier. + * */ export interface ModelUpdateObject { /** - * The entity's new name. + * @member {string} [name] The entity's new name. */ name?: string; } /** - * Object model for updating a closed list. + * @interface + * An interface representing ClosedListModelUpdateObject. + * Object model for updating a list entity. + * */ export interface ClosedListModelUpdateObject { /** - * The new sublists for the feature. + * @member {WordListObject[]} [subLists] The new sublists for the feature. */ subLists?: WordListObject[]; /** - * The new name of the closed list feature. + * @member {string} [name] The new name of the list entity. */ name?: string; } /** - * Object model for creating a closed list. + * @interface + * An interface representing ClosedListModelCreateObject. + * Object model for creating a list entity. + * */ export interface ClosedListModelCreateObject { /** - * Sublists for the feature. + * @member {WordListObject[]} [subLists] Sublists for the feature. */ subLists?: WordListObject[]; /** - * Name of the closed list feature. + * @member {string} [name] Name of the list entity. */ name?: string; } /** + * @interface + * An interface representing VersionInfo. * Object model of an application version. + * */ export interface VersionInfo { /** - * The version ID. E.g.: "0.1" + * @member {string} version The version ID. E.g.: "0.1" */ version: string; /** - * The version's creation timestamp. + * @member {Date} [createdDateTime] The version's creation timestamp. */ createdDateTime?: Date; /** - * Timestamp of the last update. + * @member {Date} [lastModifiedDateTime] Timestamp of the last update. */ lastModifiedDateTime?: Date; /** - * Timestamp of the last time the model was trained. + * @member {Date} [lastTrainedDateTime] Timestamp of the last time the model + * was trained. */ lastTrainedDateTime?: Date; /** - * Timestamp when was last published. + * @member {Date} [lastPublishedDateTime] Timestamp when was last published. */ lastPublishedDateTime?: Date; /** - * The Runtime endpoint URL for this model version. + * @member {string} [endpointUrl] The Runtime endpoint URL for this model + * version. */ endpointUrl?: string; /** - * The endpoint key. + * @member {{ [propertyName: string]: string }} [assignedEndpointKey] The + * endpoint key. */ assignedEndpointKey?: { [propertyName: string]: string }; /** - * External keys. + * @member {any} [externalApiKeys] External keys. */ externalApiKeys?: any; /** - * Number of intents in this model. + * @member {number} [intentsCount] Number of intents in this model. */ intentsCount?: number; /** - * Number of entities in this model. + * @member {number} [entitiesCount] Number of entities in this model. */ entitiesCount?: number; /** - * Number of calls made to this endpoint. + * @member {number} [endpointHitsCount] Number of calls made to this + * endpoint. */ endpointHitsCount?: number; /** - * The current training status. Possible values include: 'NeedsTraining', 'InProgress', 'Trained' + * @member {TrainingStatus} trainingStatus The current training status. + * Possible values include: 'NeedsTraining', 'InProgress', 'Trained' */ trainingStatus: TrainingStatus; } /** + * @interface + * An interface representing TaskUpdateObject. * Object model for cloning an application's version. + * */ export interface TaskUpdateObject { /** - * The new version for the cloned model. + * @member {string} [version] The new version for the cloned model. */ version?: string; } /** + * @interface + * An interface representing PhraselistUpdateObject. * Object model for updating a Phraselist. + * */ export interface PhraselistUpdateObject { /** - * List of comma-separated phrases that represent the Phraselist. + * @member {string} [phrases] List of comma-separated phrases that represent + * the Phraselist. */ phrases?: string; /** - * The Phraselist name. + * @member {string} [name] The Phraselist name. */ name?: string; /** - * Indicates if the Phraselist is enabled. Default value: true. + * @member {boolean} [isActive] Indicates if the Phraselist is enabled. + * Default value: true . */ isActive?: boolean; /** - * An exchangeable phrase list feature are serves as single feature to the LUIS underlying - * training algorithm. It is used as a lexicon lookup feature where its value is 1 if the lexicon - * contains a given word or 0 if it doesn’t. Think of an exchangeable as a synonyms list. A - * non-exchangeable phrase list feature has all the phrases in the list serve as separate - * features to the underlying training algorithm. So, if you your phrase list feature contains 5 - * phrases, they will be mapped to 5 separate features. You can think of the non-exchangeable - * phrase list feature as an additional bag of words that you are willing to add to LUIS existing - * vocabulary features. Think of a non-exchangeable as set of different words. Default value is - * true. Default value: true. + * @member {boolean} [isExchangeable] An exchangeable phrase list feature are + * serves as single feature to the LUIS underlying training algorithm. It is + * used as a lexicon lookup feature where its value is 1 if the lexicon + * contains a given word or 0 if it doesn’t. Think of an exchangeable as a + * synonyms list. A non-exchangeable phrase list feature has all the phrases + * in the list serve as separate features to the underlying training + * algorithm. So, if you your phrase list feature contains 5 phrases, they + * will be mapped to 5 separate features. You can think of the + * non-exchangeable phrase list feature as an additional bag of words that + * you are willing to add to LUIS existing vocabulary features. Think of a + * non-exchangeable as set of different words. Default value is true. Default + * value: true . */ isExchangeable?: boolean; } /** + * @interface * An interface representing PrebuiltDomainObject. */ export interface PrebuiltDomainObject { + /** + * @member {string} [domainName] + */ domainName?: string; + /** + * @member {string} [modelName] + */ modelName?: string; } /** + * @interface * An interface representing HierarchicalModel. */ export interface HierarchicalModel { + /** + * @member {string} [name] + */ name?: string; + /** + * @member {string[]} [children] + */ children?: string[]; + /** + * @member {PrebuiltDomainObject} [inherits] + */ inherits?: PrebuiltDomainObject; + /** + * @member {string[]} [roles] + */ roles?: string[]; } /** + * @interface + * An interface representing ApplicationPublishObject. * Object model for publishing a specific application version. + * */ export interface ApplicationPublishObject { /** - * The version ID to publish. + * @member {string} [versionId] The version ID to publish. */ versionId?: string; /** - * Indicates if the staging slot should be used, instead of the Production one. Default value: - * false. + * @member {boolean} [isStaging] Indicates if the staging slot should be + * used, instead of the Production one. Default value: false . */ isStaging?: boolean; } /** + * @interface + * An interface representing PatternAny. * Pattern.Any Entity Extractor. + * */ export interface PatternAny { + /** + * @member {string} [name] + */ name?: string; + /** + * @member {string[]} [explicitList] + */ explicitList?: string[]; + /** + * @member {string[]} [roles] + */ roles?: string[]; } /** + * @interface + * An interface representing RegexEntity. * Regular Expression Entity Extractor. + * */ export interface RegexEntity { + /** + * @member {string} [name] + */ name?: string; + /** + * @member {string} [regexPattern] + */ regexPattern?: string; + /** + * @member {string[]} [roles] + */ roles?: string[]; } /** + * @interface + * An interface representing PrebuiltEntity. * Prebuilt Entity Extractor. + * */ export interface PrebuiltEntity { + /** + * @member {string} [name] + */ name?: string; + /** + * @member {string[]} [roles] + */ roles?: string[]; } /** + * @interface + * An interface representing PatternRule. * Pattern + * */ export interface PatternRule { /** - * The pattern text. + * @member {string} [pattern] The pattern text. */ pattern?: string; /** - * The intent's name where the pattern belongs to. + * @member {string} [intent] The intent's name where the pattern belongs to. */ intent?: string; } /** + * @interface + * An interface representing LuisApp. * Exported Model - An exported LUIS Application. + * */ export interface LuisApp { /** - * The name of the application. + * @member {string} [name] The name of the application. */ name?: string; /** - * The version ID of the application that was exported. + * @member {string} [versionId] The version ID of the application that was + * exported. */ versionId?: string; /** - * The description of the application. + * @member {string} [desc] The description of the application. */ desc?: string; /** - * The culture of the application. E.g.: en-us. + * @member {string} [culture] The culture of the application. E.g.: en-us. */ culture?: string; /** - * List of intents. + * @member {HierarchicalModel[]} [intents] List of intents. */ intents?: HierarchicalModel[]; /** - * List of entities. + * @member {HierarchicalModel[]} [entities] List of entities. */ entities?: HierarchicalModel[]; /** - * List of closed lists. + * @member {ClosedList[]} [closedLists] List of list entities. */ closedLists?: ClosedList[]; /** - * List of composite entities. + * @member {HierarchicalModel[]} [composites] List of composite entities. */ composites?: HierarchicalModel[]; /** - * List of Pattern.Any entities. + * @member {PatternAny[]} [patternAnyEntities] List of Pattern.Any entities. */ patternAnyEntities?: PatternAny[]; /** - * List of regular expression entities. + * @member {RegexEntity[]} [regexEntities] List of regular expression + * entities. */ regexEntities?: RegexEntity[]; /** - * List of prebuilt entities. + * @member {PrebuiltEntity[]} [prebuiltEntities] List of prebuilt entities. */ prebuiltEntities?: PrebuiltEntity[]; /** - * List of pattern features. + * @member {JSONRegexFeature[]} [regexFeatures] List of pattern features. */ regexFeatures?: JSONRegexFeature[]; /** - * List of model features. + * @member {JSONModelFeature[]} [modelFeatures] List of model features. */ modelFeatures?: JSONModelFeature[]; /** - * List of patterns. + * @member {PatternRule[]} [patterns] List of patterns. */ patterns?: PatternRule[]; /** - * List of sample utterances. + * @member {JSONUtterance[]} [utterances] List of example utterances. */ utterances?: JSONUtterance[]; /** - * Describes unknown properties. The value of an unknown property can be of "any" type. + * @property Describes unknown properties. The value of an unknown property + * can be of "any" type. */ [property: string]: any; } /** - * Defines the entity type and position of the extracted entity within the example. + * @interface + * An interface representing EntityLabel. + * Defines the entity type and position of the extracted entity within the + * example. + * */ export interface EntityLabel { /** - * The entity type. + * @member {string} entityName The entity type. */ entityName: string; /** - * The index within the utterance where the extracted entity starts. + * @member {number} startTokenIndex The index within the utterance where the + * extracted entity starts. */ startTokenIndex: number; /** - * The index within the utterance where the extracted entity ends. + * @member {number} endTokenIndex The index within the utterance where the + * extracted entity ends. */ endTokenIndex: number; } /** + * @interface + * An interface representing IntentPrediction. * A suggested intent. + * */ export interface IntentPrediction { /** - * The intent's name + * @member {string} [name] The intent's name */ name?: string; /** - * The intent's score, based on the prediction model. + * @member {number} [score] The intent's score, based on the prediction + * model. */ score?: number; } /** + * @interface + * An interface representing EntityPrediction. * A suggested entity. + * */ export interface EntityPrediction { /** - * The entity's name + * @member {string} entityName The entity's name */ entityName: string; /** - * The index within the utterance where the extracted entity starts. + * @member {number} startTokenIndex The index within the utterance where the + * extracted entity starts. */ startTokenIndex: number; /** - * The index within the utterance where the extracted entity ends. + * @member {number} endTokenIndex The index within the utterance where the + * extracted entity ends. */ endTokenIndex: number; /** - * The actual token(s) that comprise the entity. + * @member {string} phrase The actual token(s) that comprise the entity. */ phrase: string; } /** + * @interface + * An interface representing LabeledUtterance. * A prediction and label pair of an example. + * */ export interface LabeledUtterance { /** - * ID of Labeled Utterance. + * @member {number} [id] ID of Labeled Utterance. */ id?: number; /** - * The utterance. E.g.: what's the weather like in seattle? + * @member {string} [text] The utterance. For example, "What's the weather + * like in seattle?" */ text?: string; /** - * The utterance tokenized. + * @member {string[]} [tokenizedText] The utterance tokenized. */ tokenizedText?: string[]; /** - * The intent matching the example. + * @member {string} [intentLabel] The intent matching the example. */ intentLabel?: string; /** - * The entities matching the example. + * @member {EntityLabel[]} [entityLabels] The entities matching the example. */ entityLabels?: EntityLabel[]; /** - * List of suggested intents. + * @member {IntentPrediction[]} [intentPredictions] List of suggested + * intents. */ intentPredictions?: IntentPrediction[]; /** - * List of suggested entities. + * @member {EntityPrediction[]} [entityPredictions] List of suggested + * entities. */ entityPredictions?: EntityPrediction[]; } /** + * @interface + * An interface representing IntentsSuggestionExample. * Predicted/suggested intent. + * */ export interface IntentsSuggestionExample { /** - * The utterance. E.g.: what's the weather like in seattle? + * @member {string} [text] The utterance. For example, "What's the weather + * like in seattle?" */ text?: string; /** - * The utterance tokenized. + * @member {string[]} [tokenizedText] The tokenized utterance. */ tokenizedText?: string[]; /** - * Predicted/suggested intents. + * @member {IntentPrediction[]} [intentPredictions] Predicted/suggested + * intents. */ intentPredictions?: IntentPrediction[]; /** - * Predicted/suggested entities. + * @member {EntityPrediction[]} [entityPredictions] Predicted/suggested + * entities. */ entityPredictions?: EntityPrediction[]; } /** + * @interface + * An interface representing EntitiesSuggestionExample. * Predicted/suggested entity. + * */ export interface EntitiesSuggestionExample { /** - * The utterance. E.g.: what's the weather like in seattle? + * @member {string} [text] The utterance. For example, "What's the weather + * like in seattle?" */ text?: string; /** - * The utterance tokenized. + * @member {string[]} [tokenizedText] The utterance tokenized. */ tokenizedText?: string[]; /** - * Predicted/suggested intents. + * @member {IntentPrediction[]} [intentPredictions] Predicted/suggested + * intents. */ intentPredictions?: IntentPrediction[]; /** - * Predicted/suggested entities. + * @member {EntityPrediction[]} [entityPredictions] Predicted/suggested + * entities. */ entityPredictions?: EntityPrediction[]; } /** - * Response containing user's endpoint keys and the endpoint URLs of the prebuilt Cortana - * applications. + * @interface + * An interface representing PersonalAssistantsResponse. + * Response containing user's endpoint keys and the endpoint URLs of the + * prebuilt Cortana applications. + * */ export interface PersonalAssistantsResponse { + /** + * @member {string[]} [endpointKeys] + */ endpointKeys?: string[]; + /** + * @member {{ [propertyName: string]: string }} [endpointUrls] + */ endpointUrls?: { [propertyName: string]: string }; } /** + * @interface + * An interface representing ModelInfo. * Base type used in entity types. + * */ export interface ModelInfo { /** - * The ID of the Entity Model. + * @member {string} id The ID of the Entity Model. */ id: string; /** - * Name of the Entity Model. + * @member {string} [name] Name of the Entity Model. */ name?: string; /** - * The type ID of the Entity Model. + * @member {number} [typeId] The type ID of the Entity Model. */ typeId?: number; /** - * Possible values include: 'Entity Extractor', 'Hierarchical Entity Extractor', 'Hierarchical - * Child Entity Extractor', 'Composite Entity Extractor', 'Closed List Entity Extractor', - * 'Prebuilt Entity Extractor', 'Intent Classifier', 'Pattern.Any Entity Extractor', 'Regex - * Entity Extractor' + * @member {ReadableType} readableType Possible values include: 'Entity + * Extractor', 'Hierarchical Entity Extractor', 'Hierarchical Child Entity + * Extractor', 'Composite Entity Extractor', 'List Entity Extractor', + * 'Prebuilt Entity Extractor', 'Intent Classifier', 'Pattern.Any Entity + * Extractor', 'Regular Expression Entity Extractor' */ readableType: ReadableType; } /** + * @interface + * An interface representing EntityRole. * Entity extractor role + * */ export interface EntityRole { /** - * The entity role ID. + * @member {string} [id] The entity role ID. */ id?: string; /** - * The entity role name. + * @member {string} [name] The entity role name. */ name?: string; } /** + * @interface + * An interface representing ChildEntity. * The base child entity type. + * */ export interface ChildEntity { /** - * The ID (GUID) belonging to a child entity. + * @member {string} id The ID (GUID) belonging to a child entity. */ id: string; /** - * The name of a child entity. + * @member {string} [name] The name of a child entity. */ name?: string; } /** - * Explicit list item + * @interface + * An interface representing ExplicitListItem. + * Explicit (exception) list item + * */ export interface ExplicitListItem { /** - * The explicit list item ID. + * @member {number} [id] The explicit list item ID. */ id?: number; /** - * The explicit list item value. + * @member {string} [explicitListItem] The explicit list item value. */ explicitListItem?: string; } /** + * @interface + * An interface representing ModelInfoResponse. * An application model info. + * */ export interface ModelInfoResponse { /** - * The ID of the Entity Model. + * @member {string} id The ID of the Entity Model. */ id: string; /** - * Name of the Entity Model. + * @member {string} [name] Name of the Entity Model. */ name?: string; /** - * The type ID of the Entity Model. + * @member {number} [typeId] The type ID of the Entity Model. */ typeId?: number; /** - * Possible values include: 'Entity Extractor', 'Hierarchical Entity Extractor', 'Hierarchical - * Child Entity Extractor', 'Composite Entity Extractor', 'Closed List Entity Extractor', - * 'Prebuilt Entity Extractor', 'Intent Classifier', 'Pattern.Any Entity Extractor', 'Regex - * Entity Extractor' + * @member {ReadableType1} readableType Possible values include: 'Entity + * Extractor', 'Hierarchical Entity Extractor', 'Hierarchical Child Entity + * Extractor', 'Composite Entity Extractor', 'List Entity Extractor', + * 'Prebuilt Entity Extractor', 'Intent Classifier', 'Pattern.Any Entity + * Extractor', 'Regular Expression Entity Extractor' */ readableType: ReadableType1; + /** + * @member {EntityRole[]} [roles] + */ roles?: EntityRole[]; /** - * List of child entities. + * @member {ChildEntity[]} [children] List of child entities. */ children?: ChildEntity[]; /** - * List of sub-lists. + * @member {SubClosedListResponse[]} [subLists] List of sublists. */ subLists?: SubClosedListResponse[]; /** - * The domain name. + * @member {string} [customPrebuiltDomainName] The domain name. */ customPrebuiltDomainName?: string; /** - * The intent name or entity name. + * @member {string} [customPrebuiltModelName] The intent name or entity name. */ customPrebuiltModelName?: string; /** - * The Regex entity pattern. + * @member {string} [regexPattern] The Regular Expression entity pattern. */ regexPattern?: string; + /** + * @member {ExplicitListItem[]} [explicitList] + */ explicitList?: ExplicitListItem[]; } /** + * @interface + * An interface representing EntityModelInfo. * An Entity Extractor model info. + * + * @extends ModelInfo */ export interface EntityModelInfo extends ModelInfo { + /** + * @member {EntityRole[]} [roles] + */ roles?: EntityRole[]; } /** + * @interface + * An interface representing HierarchicalEntityExtractor. * Hierarchical Entity Extractor. + * */ export interface HierarchicalEntityExtractor { /** - * The ID of the Entity Model. + * @member {string} id The ID of the Entity Model. */ id: string; /** - * Name of the Entity Model. + * @member {string} [name] Name of the Entity Model. */ name?: string; /** - * The type ID of the Entity Model. + * @member {number} [typeId] The type ID of the Entity Model. */ typeId?: number; /** - * Possible values include: 'Entity Extractor', 'Hierarchical Entity Extractor', 'Hierarchical - * Child Entity Extractor', 'Composite Entity Extractor', 'Closed List Entity Extractor', - * 'Prebuilt Entity Extractor', 'Intent Classifier', 'Pattern.Any Entity Extractor', 'Regex - * Entity Extractor' + * @member {ReadableType2} readableType Possible values include: 'Entity + * Extractor', 'Hierarchical Entity Extractor', 'Hierarchical Child Entity + * Extractor', 'Composite Entity Extractor', 'List Entity Extractor', + * 'Prebuilt Entity Extractor', 'Intent Classifier', 'Pattern.Any Entity + * Extractor', 'Regular Expression Entity Extractor' */ readableType: ReadableType2; + /** + * @member {EntityRole[]} [roles] + */ roles?: EntityRole[]; /** - * List of child entities. + * @member {ChildEntity[]} [children] List of child entities. */ children?: ChildEntity[]; } /** + * @interface + * An interface representing CompositeEntityExtractor. * A Composite Entity Extractor. + * */ export interface CompositeEntityExtractor { /** - * The ID of the Entity Model. + * @member {string} id The ID of the Entity Model. */ id: string; /** - * Name of the Entity Model. + * @member {string} [name] Name of the Entity Model. */ name?: string; /** - * The type ID of the Entity Model. + * @member {number} [typeId] The type ID of the Entity Model. */ typeId?: number; /** - * Possible values include: 'Entity Extractor', 'Hierarchical Entity Extractor', 'Hierarchical - * Child Entity Extractor', 'Composite Entity Extractor', 'Closed List Entity Extractor', - * 'Prebuilt Entity Extractor', 'Intent Classifier', 'Pattern.Any Entity Extractor', 'Regex - * Entity Extractor' + * @member {ReadableType3} readableType Possible values include: 'Entity + * Extractor', 'Hierarchical Entity Extractor', 'Hierarchical Child Entity + * Extractor', 'Composite Entity Extractor', 'List Entity Extractor', + * 'Prebuilt Entity Extractor', 'Intent Classifier', 'Pattern.Any Entity + * Extractor', 'Regular Expression Entity Extractor' */ readableType: ReadableType3; + /** + * @member {EntityRole[]} [roles] + */ roles?: EntityRole[]; /** - * List of child entities. + * @member {ChildEntity[]} [children] List of child entities. */ children?: ChildEntity[]; } /** - * Closed List Entity Extractor. + * @interface + * An interface representing ClosedListEntityExtractor. + * List Entity Extractor. + * */ export interface ClosedListEntityExtractor { /** - * The ID of the Entity Model. + * @member {string} id The ID of the Entity Model. */ id: string; /** - * Name of the Entity Model. + * @member {string} [name] Name of the Entity Model. */ name?: string; /** - * The type ID of the Entity Model. + * @member {number} [typeId] The type ID of the Entity Model. */ typeId?: number; /** - * Possible values include: 'Entity Extractor', 'Hierarchical Entity Extractor', 'Hierarchical - * Child Entity Extractor', 'Composite Entity Extractor', 'Closed List Entity Extractor', - * 'Prebuilt Entity Extractor', 'Intent Classifier', 'Pattern.Any Entity Extractor', 'Regex - * Entity Extractor' + * @member {ReadableType4} readableType Possible values include: 'Entity + * Extractor', 'Hierarchical Entity Extractor', 'Hierarchical Child Entity + * Extractor', 'Composite Entity Extractor', 'List Entity Extractor', + * 'Prebuilt Entity Extractor', 'Intent Classifier', 'Pattern.Any Entity + * Extractor', 'Regular Expression Entity Extractor' */ readableType: ReadableType4; + /** + * @member {EntityRole[]} [roles] + */ roles?: EntityRole[]; /** - * List of sub-lists. + * @member {SubClosedListResponse[]} [subLists] List of sublists. */ subLists?: SubClosedListResponse[]; } /** + * @interface + * An interface representing PrebuiltEntityExtractor. * Prebuilt Entity Extractor. + * */ export interface PrebuiltEntityExtractor { /** - * The ID of the Entity Model. + * @member {string} id The ID of the Entity Model. */ id: string; /** - * Name of the Entity Model. + * @member {string} [name] Name of the Entity Model. */ name?: string; /** - * The type ID of the Entity Model. + * @member {number} [typeId] The type ID of the Entity Model. */ typeId?: number; /** - * Possible values include: 'Entity Extractor', 'Hierarchical Entity Extractor', 'Hierarchical - * Child Entity Extractor', 'Composite Entity Extractor', 'Closed List Entity Extractor', - * 'Prebuilt Entity Extractor', 'Intent Classifier', 'Pattern.Any Entity Extractor', 'Regex - * Entity Extractor' + * @member {ReadableType5} readableType Possible values include: 'Entity + * Extractor', 'Hierarchical Entity Extractor', 'Hierarchical Child Entity + * Extractor', 'Composite Entity Extractor', 'List Entity Extractor', + * 'Prebuilt Entity Extractor', 'Intent Classifier', 'Pattern.Any Entity + * Extractor', 'Regular Expression Entity Extractor' */ readableType: ReadableType5; + /** + * @member {EntityRole[]} [roles] + */ roles?: EntityRole[]; } /** + * @interface + * An interface representing HierarchicalChildEntity. * A Hierarchical Child Entity. + * + * @extends ChildEntity */ export interface HierarchicalChildEntity extends ChildEntity { /** - * The type ID of the Entity Model. + * @member {number} [typeId] The type ID of the Entity Model. */ typeId?: number; /** - * Possible values include: 'Entity Extractor', 'Hierarchical Entity Extractor', 'Hierarchical - * Child Entity Extractor', 'Composite Entity Extractor', 'Closed List Entity Extractor', - * 'Prebuilt Entity Extractor', 'Intent Classifier', 'Pattern.Any Entity Extractor', 'Regex - * Entity Extractor' + * @member {ReadableType6} [readableType] Possible values include: 'Entity + * Extractor', 'Hierarchical Entity Extractor', 'Hierarchical Child Entity + * Extractor', 'Composite Entity Extractor', 'List Entity Extractor', + * 'Prebuilt Entity Extractor', 'Intent Classifier', 'Pattern.Any Entity + * Extractor', 'Regular Expression Entity Extractor' */ readableType?: ReadableType6; } /** + * @interface + * An interface representing CustomPrebuiltModel. * A Custom Prebuilt model. + * */ export interface CustomPrebuiltModel { /** - * The ID of the Entity Model. + * @member {string} id The ID of the Entity Model. */ id: string; /** - * Name of the Entity Model. + * @member {string} [name] Name of the Entity Model. */ name?: string; /** - * The type ID of the Entity Model. + * @member {number} [typeId] The type ID of the Entity Model. */ typeId?: number; /** - * Possible values include: 'Entity Extractor', 'Hierarchical Entity Extractor', 'Hierarchical - * Child Entity Extractor', 'Composite Entity Extractor', 'Closed List Entity Extractor', - * 'Prebuilt Entity Extractor', 'Intent Classifier', 'Pattern.Any Entity Extractor', 'Regex - * Entity Extractor' + * @member {ReadableType7} readableType Possible values include: 'Entity + * Extractor', 'Hierarchical Entity Extractor', 'Hierarchical Child Entity + * Extractor', 'Composite Entity Extractor', 'List Entity Extractor', + * 'Prebuilt Entity Extractor', 'Intent Classifier', 'Pattern.Any Entity + * Extractor', 'Regular Expression Entity Extractor' */ readableType: ReadableType7; /** - * The domain name. + * @member {string} [customPrebuiltDomainName] The domain name. */ customPrebuiltDomainName?: string; /** - * The intent name or entity name. + * @member {string} [customPrebuiltModelName] The intent name or entity name. */ customPrebuiltModelName?: string; + /** + * @member {EntityRole[]} [roles] + */ roles?: EntityRole[]; } /** + * @interface + * An interface representing IntentClassifier. * Intent Classifier. + * + * @extends ModelInfo */ export interface IntentClassifier extends ModelInfo { /** - * The domain name. + * @member {string} [customPrebuiltDomainName] The domain name. */ customPrebuiltDomainName?: string; /** - * The intent name or entity name. + * @member {string} [customPrebuiltModelName] The intent name or entity name. */ customPrebuiltModelName?: string; } /** + * @interface + * An interface representing EntityExtractor. * Entity Extractor. + * */ export interface EntityExtractor { /** - * The ID of the Entity Model. + * @member {string} id The ID of the Entity Model. */ id: string; /** - * Name of the Entity Model. + * @member {string} [name] Name of the Entity Model. */ name?: string; /** - * The type ID of the Entity Model. + * @member {number} [typeId] The type ID of the Entity Model. */ typeId?: number; /** - * Possible values include: 'Entity Extractor', 'Hierarchical Entity Extractor', 'Hierarchical - * Child Entity Extractor', 'Composite Entity Extractor', 'Closed List Entity Extractor', - * 'Prebuilt Entity Extractor', 'Intent Classifier', 'Pattern.Any Entity Extractor', 'Regex - * Entity Extractor' + * @member {ReadableType8} readableType Possible values include: 'Entity + * Extractor', 'Hierarchical Entity Extractor', 'Hierarchical Child Entity + * Extractor', 'Composite Entity Extractor', 'List Entity Extractor', + * 'Prebuilt Entity Extractor', 'Intent Classifier', 'Pattern.Any Entity + * Extractor', 'Regular Expression Entity Extractor' */ readableType: ReadableType8; + /** + * @member {EntityRole[]} [roles] + */ roles?: EntityRole[]; /** - * The domain name. + * @member {string} [customPrebuiltDomainName] The domain name. */ customPrebuiltDomainName?: string; /** - * The intent name or entity name. + * @member {string} [customPrebuiltModelName] The intent name or entity name. */ customPrebuiltModelName?: string; } /** + * @interface + * An interface representing FeatureInfoObject. * The base class Features-related response objects inherit from. + * */ export interface FeatureInfoObject { /** - * A six-digit ID used for Features. + * @member {number} [id] A six-digit ID used for Features. */ id?: number; /** - * The name of the Feature. + * @member {string} [name] The name of the Feature. */ name?: string; /** - * Indicates if the feature is enabled. + * @member {boolean} [isActive] Indicates if the feature is enabled. */ isActive?: boolean; } /** + * @interface + * An interface representing PhraseListFeatureInfo. * Phraselist Feature. + * + * @extends FeatureInfoObject */ export interface PhraseListFeatureInfo extends FeatureInfoObject { /** - * A list of comma-separated values. + * @member {string} [phrases] A list of comma-separated values. */ phrases?: string; /** - * An exchangeable phrase list feature are serves as single feature to the LUIS underlying - * training algorithm. It is used as a lexicon lookup feature where its value is 1 if the lexicon - * contains a given word or 0 if it doesn’t. Think of an exchangeable as a synonyms list. A - * non-exchangeable phrase list feature has all the phrases in the list serve as separate - * features to the underlying training algorithm. So, if you your phrase list feature contains 5 - * phrases, they will be mapped to 5 separate features. You can think of the non-exchangeable - * phrase list feature as an additional bag of words that you are willing to add to LUIS existing - * vocabulary features. Think of a non-exchangeable as set of different words. Default value is - * true. + * @member {boolean} [isExchangeable] An exchangeable phrase list feature are + * serves as single feature to the LUIS underlying training algorithm. It is + * used as a lexicon lookup feature where its value is 1 if the lexicon + * contains a given word or 0 if it doesn’t. Think of an exchangeable as a + * synonyms list. A non-exchangeable phrase list feature has all the phrases + * in the list serve as separate features to the underlying training + * algorithm. So, if you your phrase list feature contains 5 phrases, they + * will be mapped to 5 separate features. You can think of the + * non-exchangeable phrase list feature as an additional bag of words that + * you are willing to add to LUIS existing vocabulary features. Think of a + * non-exchangeable as set of different words. Default value is true. */ isExchangeable?: boolean; } /** + * @interface + * An interface representing PatternFeatureInfo. * Pattern feature. + * + * @extends FeatureInfoObject */ export interface PatternFeatureInfo extends FeatureInfoObject { /** - * The Regular Expression to match. + * @member {string} [pattern] The Regular Expression to match. */ pattern?: string; } /** + * @interface + * An interface representing FeaturesResponseObject. * Model Features, including Patterns and Phraselists. + * */ export interface FeaturesResponseObject { + /** + * @member {PhraseListFeatureInfo[]} [phraselistFeatures] + */ phraselistFeatures?: PhraseListFeatureInfo[]; + /** + * @member {PatternFeatureInfo[]} [patternFeatures] + */ patternFeatures?: PatternFeatureInfo[]; } /** - * Response when adding a labeled example. + * @interface + * An interface representing LabelExampleResponse. + * Response when adding a labeled example utterance. + * */ export interface LabelExampleResponse { /** - * The sample's utterance. + * @member {string} [utteranceText] The example utterance. */ utteranceText?: string; /** - * The newly created sample ID. + * @member {number} [exampleId] The newly created sample ID. */ exampleId?: number; } /** + * @interface + * An interface representing OperationStatus. * Response of an Operation status. + * */ export interface OperationStatus { /** - * Status Code. Possible values include: 'Failed', 'FAILED', 'Success' + * @member {OperationStatusType} [code] Status Code. Possible values include: + * 'Failed', 'FAILED', 'Success' */ code?: OperationStatusType; /** - * Status details. + * @member {string} [message] Status details. */ message?: string; } /** - * Response when adding a batch of labeled examples. + * @interface + * An interface representing BatchLabelExample. + * Response when adding a batch of labeled example utterances. + * */ export interface BatchLabelExample { + /** + * @member {LabelExampleResponse} [value] + */ value?: LabelExampleResponse; + /** + * @member {boolean} [hasError] + */ hasError?: boolean; + /** + * @member {OperationStatus} [error] + */ error?: OperationStatus; } /** + * @interface + * An interface representing ApplicationInfoResponse. * Response containing the Application Info. + * */ export interface ApplicationInfoResponse { /** - * The ID (GUID) of the application. + * @member {string} [id] The ID (GUID) of the application. */ id?: string; /** - * The name of the application. + * @member {string} [name] The name of the application. */ name?: string; /** - * The description of the application. + * @member {string} [description] The description of the application. */ description?: string; /** - * The culture of the application. E.g.: en-us. + * @member {string} [culture] The culture of the application. For example, + * "en-us". */ culture?: string; /** - * Defines the scenario for the new application. Optional. E.g.: IoT. + * @member {string} [usageScenario] Defines the scenario for the new + * application. Optional. For example, IoT. */ usageScenario?: string; /** - * The domain for the new application. Optional. E.g.: Comics. + * @member {string} [domain] The domain for the new application. Optional. + * For example, Comics. */ domain?: string; /** - * Amount of model versions within the application. + * @member {number} [versionsCount] Amount of model versions within the + * application. */ versionsCount?: number; /** - * The version's creation timestamp. + * @member {string} [createdDateTime] The version's creation timestamp. */ createdDateTime?: string; /** - * The Runtime endpoint URL for this model version. + * @member {any} [endpoints] The Runtime endpoint URL for this model version. */ endpoints?: any; /** - * Number of calls made to this endpoint. + * @member {number} [endpointHitsCount] Number of calls made to this + * endpoint. */ endpointHitsCount?: number; /** - * The version ID currently marked as active. + * @member {string} [activeVersion] The version ID currently marked as + * active. */ activeVersion?: string; } /** + * @interface + * An interface representing EndpointInfo. * The base class "ProductionOrStagingEndpointInfo" inherits from. + * */ export interface EndpointInfo { /** - * The version ID to publish. + * @member {string} [versionId] The version ID to publish. */ versionId?: string; /** - * Indicates if the staging slot should be used, instead of the Production one. + * @member {boolean} [isStaging] Indicates if the staging slot should be + * used, instead of the Production one. */ isStaging?: boolean; /** - * The Runtime endpoint URL for this model version. + * @member {string} [endpointUrl] The Runtime endpoint URL for this model + * version. */ endpointUrl?: string; /** - * The target region that the application is published to. + * @member {string} [region] The target region that the application is + * published to. */ region?: string; /** - * The endpoint key. + * @member {string} [assignedEndpointKey] The endpoint key. */ assignedEndpointKey?: string; /** - * The endpoint's region. + * @member {string} [endpointRegion] The endpoint's region. */ endpointRegion?: string; /** - * Regions where publishing failed. + * @member {string} [failedRegions] Regions where publishing failed. */ failedRegions?: string; /** - * Timestamp when was last published. + * @member {string} [publishedDateTime] Timestamp when was last published. */ publishedDateTime?: string; } /** + * @interface * An interface representing ProductionOrStagingEndpointInfo. + * @extends EndpointInfo */ export interface ProductionOrStagingEndpointInfo extends EndpointInfo { } /** + * @interface + * An interface representing AvailableCulture. * Available culture for using in a new application. + * */ export interface AvailableCulture { /** - * The language name. + * @member {string} [name] The language name. */ name?: string; /** - * The ISO value for the language. + * @member {string} [code] The ISO value for the language. */ code?: string; } /** + * @interface + * An interface representing ApplicationSettings. * The application settings. + * */ export interface ApplicationSettings { /** - * The application ID. + * @member {string} id The application ID. */ id: string; /** - * Setting your application as public allows other people to use your application's endpoint - * using their own keys. + * @member {boolean} isPublic Setting your application as public allows other + * people to use your application's endpoint using their own keys for billing + * purposes. */ isPublic: boolean; } /** + * @interface + * An interface representing PublishSettings. * The application publish settings. + * */ export interface PublishSettings { /** - * The application ID. + * @member {string} id The application ID. */ id: string; /** - * Setting sentiment analysis as true returns the Sentiment of the input utterance along with the - * response + * @member {boolean} isSentimentAnalysisEnabled Setting sentiment analysis as + * true returns the sentiment of the input utterance along with the response */ isSentimentAnalysisEnabled: boolean; /** - * Setting speech as public enables speech priming in your app + * @member {boolean} isSpeechEnabled Enables speech priming in your app */ isSpeechEnabled: boolean; /** - * Setting spell checker as public enables spell checking the input utterance. + * @member {boolean} isSpellCheckerEnabled Enables spell checking of the + * utterance. */ isSpellCheckerEnabled: boolean; } /** + * @interface + * An interface representing AvailablePrebuiltEntityModel. * Available Prebuilt entity model for using in an application. + * */ export interface AvailablePrebuiltEntityModel { /** - * The entity name. + * @member {string} [name] The entity name. */ name?: string; /** - * The entity description and usage information. + * @member {string} [description] The entity description and usage + * information. */ description?: string; /** - * Usage examples. + * @member {string} [examples] Usage examples. */ examples?: string; } /** + * @interface + * An interface representing EnqueueTrainingResponse. * Response model when requesting to train the model. + * */ export interface EnqueueTrainingResponse { /** - * The train request status ID. + * @member {number} [statusId] The train request status ID. */ statusId?: number; /** - * Possible values include: 'Queued', 'InProgress', 'UpToDate', 'Fail', 'Success' + * @member {Status} [status] Possible values include: 'Queued', 'InProgress', + * 'UpToDate', 'Fail', 'Success' */ status?: Status; } /** + * @interface + * An interface representing ModelTrainingDetails. * Model Training Details. + * */ export interface ModelTrainingDetails { /** - * The train request status ID. + * @member {number} [statusId] The train request status ID. */ statusId?: number; /** - * Possible values include: 'Queued', 'InProgress', 'UpToDate', 'Fail', 'Success' + * @member {Status1} [status] Possible values include: 'Queued', + * 'InProgress', 'UpToDate', 'Fail', 'Success' */ status?: Status1; /** - * The count of examples used to train the model. + * @member {number} [exampleCount] The count of examples used to train the + * model. */ exampleCount?: number; /** - * When the model was trained. + * @member {Date} [trainingDateTime] When the model was trained. */ trainingDateTime?: Date; /** - * Reason for the training failure. + * @member {string} [failureReason] Reason for the training failure. */ failureReason?: string; } /** + * @interface + * An interface representing ModelTrainingInfo. * Model Training Info. + * */ export interface ModelTrainingInfo { /** - * The ID (GUID) of the model. + * @member {string} [modelId] The ID (GUID) of the model. */ modelId?: string; + /** + * @member {ModelTrainingDetails} [details] + */ details?: ModelTrainingDetails; } /** + * @interface + * An interface representing UserAccessList. * List of user permissions. + * */ export interface UserAccessList { /** - * The email address of owner of the application. + * @member {string} [owner] The email address of owner of the application. */ owner?: string; + /** + * @member {string[]} [emails] + */ emails?: string[]; } /** + * @interface * An interface representing UserCollaborator. */ export interface UserCollaborator { /** - * The email address of the user. + * @member {string} [email] The email address of the user. */ email?: string; } /** + * @interface * An interface representing CollaboratorsArray. */ export interface CollaboratorsArray { /** - * The email address of the users. + * @member {string[]} [emails] The email address of the users. */ emails?: string[]; } /** + * @interface + * An interface representing ErrorResponse. * Error response when invoking an operation on the API. + * */ export interface ErrorResponse { + /** + * @member {string} [errorType] + */ errorType?: string; /** - * Describes unknown properties. The value of an unknown property can be of "any" type. + * @property Describes unknown properties. The value of an unknown property + * can be of "any" type. */ [property: string]: any; } /** + * @interface + * An interface representing OperationError. * Operation error details when invoking an operation on the API. + * */ export interface OperationError { + /** + * @member {string} [code] + */ code?: string; + /** + * @member {string} [message] + */ message?: string; } /** + * @interface * An interface representing PrebuiltDomainItem. */ export interface PrebuiltDomainItem { + /** + * @member {string} [name] + */ name?: string; + /** + * @member {string} [description] + */ description?: string; + /** + * @member {string} [examples] + */ examples?: string; } /** + * @interface + * An interface representing PrebuiltDomain. * Prebuilt Domain. + * */ export interface PrebuiltDomain { + /** + * @member {string} [name] + */ name?: string; + /** + * @member {string} [culture] + */ culture?: string; + /** + * @member {string} [description] + */ description?: string; + /** + * @member {string} [examples] + */ examples?: string; + /** + * @member {PrebuiltDomainItem[]} [intents] + */ intents?: PrebuiltDomainItem[]; + /** + * @member {PrebuiltDomainItem[]} [entities] + */ entities?: PrebuiltDomainItem[]; } /** + * @interface + * An interface representing EntityRoleCreateObject. * Object model for creating an entity role. + * */ export interface EntityRoleCreateObject { /** - * The entity role name. + * @member {string} [name] The entity role name. */ name?: string; } /** - * Model object for creating a regex entity model. + * @interface + * An interface representing RegexModelCreateObject. + * Model object for creating a regular expression entity model. + * */ export interface RegexModelCreateObject { /** - * The regex entity pattern. + * @member {string} [regexPattern] The regular expression entity pattern. */ regexPattern?: string; /** - * The model name. + * @member {string} [name] The model name. */ name?: string; } /** + * @interface + * An interface representing PatternAnyModelCreateObject. * Model object for creating a Pattern.Any entity model. + * */ export interface PatternAnyModelCreateObject { /** - * The model name. + * @member {string} [name] The model name. */ name?: string; /** - * The Pattern.Any explicit list. + * @member {string[]} [explicitList] The Pattern.Any explicit list. */ explicitList?: string[]; } /** - * Object model for creating an explicit list item. + * @interface + * An interface representing ExplicitListItemCreateObject. + * Object model for creating an explicit (exception) list item. + * */ export interface ExplicitListItemCreateObject { /** - * The explicit list item. + * @member {string} [explicitListItem] The explicit list item. */ explicitListItem?: string; } /** - * Model object for updating a regex entity model. + * @interface + * An interface representing RegexModelUpdateObject. + * Model object for updating a regular expression entity model. + * */ export interface RegexModelUpdateObject { /** - * The regex entity pattern. + * @member {string} [regexPattern] The regular expression entity pattern. */ regexPattern?: string; /** - * The model name. + * @member {string} [name] The model name. */ name?: string; } /** + * @interface + * An interface representing PatternAnyModelUpdateObject. * Model object for updating a Pattern.Any entity model. + * */ export interface PatternAnyModelUpdateObject { /** - * The model name. + * @member {string} [name] The model name. */ name?: string; /** - * The Pattern.Any explicit list. + * @member {string[]} [explicitList] The Pattern.Any explicit list. */ explicitList?: string[]; } /** + * @interface + * An interface representing EntityRoleUpdateObject. * Object model for updating an entity role. + * */ export interface EntityRoleUpdateObject { /** - * The entity role name. + * @member {string} [name] The entity role name. */ name?: string; } /** - * Model object for updating an explicit list item. + * @interface + * An interface representing ExplicitListItemUpdateObject. + * Model object for updating an explicit (exception) list item. + * */ export interface ExplicitListItemUpdateObject { /** - * The explicit list item. + * @member {string} [explicitListItem] The explicit list item. */ explicitListItem?: string; } /** + * @interface + * An interface representing PatternRuleCreateObject. * Object model for creating a pattern + * */ export interface PatternRuleCreateObject { /** - * The pattern text. + * @member {string} [pattern] The pattern text. */ pattern?: string; /** - * The intent's name which the pattern belongs to. + * @member {string} [intent] The intent's name which the pattern belongs to. */ intent?: string; } /** + * @interface + * An interface representing PatternRuleUpdateObject. * Object model for updating a pattern. + * */ export interface PatternRuleUpdateObject { /** - * The pattern ID. + * @member {string} [id] The pattern ID. */ id?: string; /** - * The pattern text. + * @member {string} [pattern] The pattern text. */ pattern?: string; /** - * The intent's name which the pattern belongs to. + * @member {string} [intent] The intent's name which the pattern belongs to. */ intent?: string; } /** - * Regex Entity Extractor. + * @interface + * An interface representing RegexEntityExtractor. + * Regular Expression Entity Extractor. + * */ export interface RegexEntityExtractor { /** - * The ID of the Entity Model. + * @member {string} id The ID of the Entity Model. */ id: string; /** - * Name of the Entity Model. + * @member {string} [name] Name of the Entity Model. */ name?: string; /** - * The type ID of the Entity Model. + * @member {number} [typeId] The type ID of the Entity Model. */ typeId?: number; /** - * Possible values include: 'Entity Extractor', 'Hierarchical Entity Extractor', 'Hierarchical - * Child Entity Extractor', 'Composite Entity Extractor', 'Closed List Entity Extractor', - * 'Prebuilt Entity Extractor', 'Intent Classifier', 'Pattern.Any Entity Extractor', 'Regex - * Entity Extractor' + * @member {ReadableType9} readableType Possible values include: 'Entity + * Extractor', 'Hierarchical Entity Extractor', 'Hierarchical Child Entity + * Extractor', 'Composite Entity Extractor', 'List Entity Extractor', + * 'Prebuilt Entity Extractor', 'Intent Classifier', 'Pattern.Any Entity + * Extractor', 'Regular Expression Entity Extractor' */ readableType: ReadableType9; + /** + * @member {EntityRole[]} [roles] + */ roles?: EntityRole[]; /** - * The Regex entity pattern. + * @member {string} [regexPattern] The Regular Expression entity pattern. */ regexPattern?: string; } /** + * @interface + * An interface representing PatternAnyEntityExtractor. * Pattern.Any Entity Extractor. + * */ export interface PatternAnyEntityExtractor { /** - * The ID of the Entity Model. + * @member {string} id The ID of the Entity Model. */ id: string; /** - * Name of the Entity Model. + * @member {string} [name] Name of the Entity Model. */ name?: string; /** - * The type ID of the Entity Model. + * @member {number} [typeId] The type ID of the Entity Model. */ typeId?: number; /** - * Possible values include: 'Entity Extractor', 'Hierarchical Entity Extractor', 'Hierarchical - * Child Entity Extractor', 'Composite Entity Extractor', 'Closed List Entity Extractor', - * 'Prebuilt Entity Extractor', 'Intent Classifier', 'Pattern.Any Entity Extractor', 'Regex - * Entity Extractor' + * @member {ReadableType10} readableType Possible values include: 'Entity + * Extractor', 'Hierarchical Entity Extractor', 'Hierarchical Child Entity + * Extractor', 'Composite Entity Extractor', 'List Entity Extractor', + * 'Prebuilt Entity Extractor', 'Intent Classifier', 'Pattern.Any Entity + * Extractor', 'Regular Expression Entity Extractor' */ readableType: ReadableType10; + /** + * @member {EntityRole[]} [roles] + */ roles?: EntityRole[]; + /** + * @member {ExplicitListItem[]} [explicitList] + */ explicitList?: ExplicitListItem[]; } /** + * @interface + * An interface representing PatternRuleInfo. * Pattern rule + * */ export interface PatternRuleInfo { /** - * The pattern ID. + * @member {string} [id] The pattern ID. */ id?: string; /** - * The pattern text. + * @member {string} [pattern] The pattern text. */ pattern?: string; /** - * The intent's name where the pattern belongs to. + * @member {string} [intent] The intent's name where the pattern belongs to. */ intent?: string; } /** - * An object containing the example's text. + * @interface + * An interface representing LabelTextObject. + * An object containing the example utterance's text. + * */ export interface LabelTextObject { /** - * The ID of the Label. + * @member {number} [id] The ID of the Label. */ id?: number; /** - * The text of the label. + * @member {string} [text] The text of the label. */ text?: string; } /** + * @interface + * An interface representing AppVersionSettingObject. * Object model of an application version setting. + * */ export interface AppVersionSettingObject { /** - * The application version setting name. + * @member {string} [name] The application version setting name. */ name?: string; /** - * The application version setting value. + * @member {string} [value] The application version setting value. */ value?: string; } /** - * Defines the azure account information object. + * @interface + * An interface representing AzureAccountInfoObject. + * Defines the Azure account information object. + * */ export interface AzureAccountInfoObject { /** - * The id for the azure subscription. + * @member {string} azureSubscriptionId The id for the Azure subscription. */ azureSubscriptionId: string; /** - * The azure resource group name. + * @member {string} resourceGroup The Azure resource group name. */ resourceGroup: string; /** - * The azure account name. + * @member {string} accountName The Azure account name. */ accountName: string; } /** + * @interface * An interface representing HierarchicalChildModelUpdateObject. */ export interface HierarchicalChildModelUpdateObject { + /** + * @member {string} [name] + */ name?: string; } /** + * @interface * An interface representing HierarchicalChildModelCreateObject. */ export interface HierarchicalChildModelCreateObject { + /** + * @member {string} [name] + */ name?: string; } /** + * @interface * An interface representing CompositeChildModelCreateObject. */ export interface CompositeChildModelCreateObject { + /** + * @member {string} [name] + */ name?: string; } /** + * @interface + * An interface representing FeaturesListApplicationVersionPatternFeaturesOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface FeaturesListApplicationVersionPatternFeaturesOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {number} [skip] The number of entries to skip. Default value is 0. + * Default value: 0 . + */ + skip?: number; + /** + * @member {number} [take] The number of entries to return. Maximum page size + * is 500. Default is 100. Default value: 100 . + */ + take?: number; +} + +/** + * @interface + * An interface representing FeaturesListPhraseListsOptionalParams. * Optional Parameters. + * + * @extends RequestOptionsBase */ export interface FeaturesListPhraseListsOptionalParams extends msRest.RequestOptionsBase { /** - * The number of entries to skip. Default value is 0. Default value: 0. + * @member {number} [skip] The number of entries to skip. Default value is 0. + * Default value: 0 . */ skip?: number; /** - * The number of entries to return. Maximum page size is 500. Default is 100. Default value: 100. + * @member {number} [take] The number of entries to return. Maximum page size + * is 500. Default is 100. Default value: 100 . */ take?: number; } /** + * @interface + * An interface representing FeaturesListOptionalParams. * Optional Parameters. + * + * @extends RequestOptionsBase */ export interface FeaturesListOptionalParams extends msRest.RequestOptionsBase { /** - * The number of entries to skip. Default value is 0. Default value: 0. + * @member {number} [skip] The number of entries to skip. Default value is 0. + * Default value: 0 . */ skip?: number; /** - * The number of entries to return. Maximum page size is 500. Default is 100. Default value: 100. + * @member {number} [take] The number of entries to return. Maximum page size + * is 500. Default is 100. Default value: 100 . */ take?: number; } /** + * @interface + * An interface representing FeaturesUpdatePhraseListOptionalParams. * Optional Parameters. + * + * @extends RequestOptionsBase */ export interface FeaturesUpdatePhraseListOptionalParams extends msRest.RequestOptionsBase { /** - * The new values for: - Just a boolean called IsActive, in which case the status of the feature - * will be changed. - Name, Pattern, Mode, and a boolean called IsActive to update the feature. + * @member {PhraselistUpdateObject} [phraselistUpdateObject] The new values + * for: - Just a boolean called IsActive, in which case the status of the + * feature will be changed. - Name, Pattern, Mode, and a boolean called + * IsActive to update the feature. */ phraselistUpdateObject?: PhraselistUpdateObject; } /** + * @interface + * An interface representing ExamplesListOptionalParams. * Optional Parameters. + * + * @extends RequestOptionsBase */ export interface ExamplesListOptionalParams extends msRest.RequestOptionsBase { /** - * The number of entries to skip. Default value is 0. Default value: 0. + * @member {number} [skip] The number of entries to skip. Default value is 0. + * Default value: 0 . */ skip?: number; /** - * The number of entries to return. Maximum page size is 500. Default is 100. Default value: 100. + * @member {number} [take] The number of entries to return. Maximum page size + * is 500. Default is 100. Default value: 100 . */ take?: number; } /** + * @interface + * An interface representing ModelListIntentsOptionalParams. * Optional Parameters. + * + * @extends RequestOptionsBase */ export interface ModelListIntentsOptionalParams extends msRest.RequestOptionsBase { /** - * The number of entries to skip. Default value is 0. Default value: 0. + * @member {number} [skip] The number of entries to skip. Default value is 0. + * Default value: 0 . */ skip?: number; /** - * The number of entries to return. Maximum page size is 500. Default is 100. Default value: 100. + * @member {number} [take] The number of entries to return. Maximum page size + * is 500. Default is 100. Default value: 100 . */ take?: number; } /** + * @interface + * An interface representing ModelListEntitiesOptionalParams. * Optional Parameters. + * + * @extends RequestOptionsBase */ export interface ModelListEntitiesOptionalParams extends msRest.RequestOptionsBase { /** - * The number of entries to skip. Default value is 0. Default value: 0. + * @member {number} [skip] The number of entries to skip. Default value is 0. + * Default value: 0 . */ skip?: number; /** - * The number of entries to return. Maximum page size is 500. Default is 100. Default value: 100. + * @member {number} [take] The number of entries to return. Maximum page size + * is 500. Default is 100. Default value: 100 . */ take?: number; } /** + * @interface + * An interface representing ModelListHierarchicalEntitiesOptionalParams. * Optional Parameters. + * + * @extends RequestOptionsBase */ export interface ModelListHierarchicalEntitiesOptionalParams extends msRest.RequestOptionsBase { /** - * The number of entries to skip. Default value is 0. Default value: 0. + * @member {number} [skip] The number of entries to skip. Default value is 0. + * Default value: 0 . */ skip?: number; /** - * The number of entries to return. Maximum page size is 500. Default is 100. Default value: 100. + * @member {number} [take] The number of entries to return. Maximum page size + * is 500. Default is 100. Default value: 100 . */ take?: number; } /** + * @interface + * An interface representing ModelListCompositeEntitiesOptionalParams. * Optional Parameters. + * + * @extends RequestOptionsBase */ export interface ModelListCompositeEntitiesOptionalParams extends msRest.RequestOptionsBase { /** - * The number of entries to skip. Default value is 0. Default value: 0. + * @member {number} [skip] The number of entries to skip. Default value is 0. + * Default value: 0 . */ skip?: number; /** - * The number of entries to return. Maximum page size is 500. Default is 100. Default value: 100. + * @member {number} [take] The number of entries to return. Maximum page size + * is 500. Default is 100. Default value: 100 . */ take?: number; } /** + * @interface + * An interface representing ModelListClosedListsOptionalParams. * Optional Parameters. + * + * @extends RequestOptionsBase */ export interface ModelListClosedListsOptionalParams extends msRest.RequestOptionsBase { /** - * The number of entries to skip. Default value is 0. Default value: 0. + * @member {number} [skip] The number of entries to skip. Default value is 0. + * Default value: 0 . */ skip?: number; /** - * The number of entries to return. Maximum page size is 500. Default is 100. Default value: 100. + * @member {number} [take] The number of entries to return. Maximum page size + * is 500. Default is 100. Default value: 100 . */ take?: number; } /** + * @interface + * An interface representing ModelListPrebuiltsOptionalParams. * Optional Parameters. + * + * @extends RequestOptionsBase */ export interface ModelListPrebuiltsOptionalParams extends msRest.RequestOptionsBase { /** - * The number of entries to skip. Default value is 0. Default value: 0. + * @member {number} [skip] The number of entries to skip. Default value is 0. + * Default value: 0 . */ skip?: number; /** - * The number of entries to return. Maximum page size is 500. Default is 100. Default value: 100. + * @member {number} [take] The number of entries to return. Maximum page size + * is 500. Default is 100. Default value: 100 . */ take?: number; } /** + * @interface + * An interface representing ModelListModelsOptionalParams. * Optional Parameters. + * + * @extends RequestOptionsBase */ export interface ModelListModelsOptionalParams extends msRest.RequestOptionsBase { /** - * The number of entries to skip. Default value is 0. Default value: 0. + * @member {number} [skip] The number of entries to skip. Default value is 0. + * Default value: 0 . */ skip?: number; /** - * The number of entries to return. Maximum page size is 500. Default is 100. Default value: 100. + * @member {number} [take] The number of entries to return. Maximum page size + * is 500. Default is 100. Default value: 100 . */ take?: number; } /** + * @interface + * An interface representing ModelExamplesMethodOptionalParams. * Optional Parameters. + * + * @extends RequestOptionsBase */ export interface ModelExamplesMethodOptionalParams extends msRest.RequestOptionsBase { /** - * The number of entries to skip. Default value is 0. Default value: 0. + * @member {number} [skip] The number of entries to skip. Default value is 0. + * Default value: 0 . */ skip?: number; /** - * The number of entries to return. Maximum page size is 500. Default is 100. Default value: 100. + * @member {number} [take] The number of entries to return. Maximum page size + * is 500. Default is 100. Default value: 100 . */ take?: number; } /** + * @interface + * An interface representing ModelDeleteIntentOptionalParams. * Optional Parameters. + * + * @extends RequestOptionsBase */ export interface ModelDeleteIntentOptionalParams extends msRest.RequestOptionsBase { /** - * Also delete the intent's utterances (true). Or move the utterances to the None intent (false - - * the default value). Default value: false. + * @member {boolean} [deleteUtterances] If true, deletes the intent's example + * utterances. If false, moves the example utterances to the None intent. The + * default value is false. Default value: false . */ deleteUtterances?: boolean; } /** + * @interface + * An interface representing ModelListIntentSuggestionsOptionalParams. * Optional Parameters. + * + * @extends RequestOptionsBase */ -export interface ModelGetIntentSuggestionsOptionalParams extends msRest.RequestOptionsBase { +export interface ModelListIntentSuggestionsOptionalParams extends msRest.RequestOptionsBase { /** - * The number of entries to return. Maximum page size is 500. Default is 100. Default value: 100. + * @member {number} [take] The number of entries to return. Maximum page size + * is 500. Default is 100. Default value: 100 . */ take?: number; } /** + * @interface + * An interface representing ModelListEntitySuggestionsOptionalParams. * Optional Parameters. + * + * @extends RequestOptionsBase */ -export interface ModelGetEntitySuggestionsOptionalParams extends msRest.RequestOptionsBase { +export interface ModelListEntitySuggestionsOptionalParams extends msRest.RequestOptionsBase { /** - * The number of entries to return. Maximum page size is 500. Default is 100. Default value: 100. + * @member {number} [take] The number of entries to return. Maximum page size + * is 500. Default is 100. Default value: 100 . */ take?: number; } /** + * @interface + * An interface representing ModelListRegexEntityInfosOptionalParams. * Optional Parameters. + * + * @extends RequestOptionsBase */ -export interface ModelGetRegexEntityInfosOptionalParams extends msRest.RequestOptionsBase { +export interface ModelListRegexEntityInfosOptionalParams extends msRest.RequestOptionsBase { /** - * The number of entries to skip. Default value is 0. Default value: 0. + * @member {number} [skip] The number of entries to skip. Default value is 0. + * Default value: 0 . */ skip?: number; /** - * The number of entries to return. Maximum page size is 500. Default is 100. Default value: 100. + * @member {number} [take] The number of entries to return. Maximum page size + * is 500. Default is 100. Default value: 100 . */ take?: number; } /** + * @interface + * An interface representing ModelListPatternAnyEntityInfosOptionalParams. * Optional Parameters. + * + * @extends RequestOptionsBase */ -export interface ModelGetPatternAnyEntityInfosOptionalParams extends msRest.RequestOptionsBase { +export interface ModelListPatternAnyEntityInfosOptionalParams extends msRest.RequestOptionsBase { /** - * The number of entries to skip. Default value is 0. Default value: 0. + * @member {number} [skip] The number of entries to skip. Default value is 0. + * Default value: 0 . */ skip?: number; /** - * The number of entries to return. Maximum page size is 500. Default is 100. Default value: 100. + * @member {number} [take] The number of entries to return. Maximum page size + * is 500. Default is 100. Default value: 100 . */ take?: number; } /** + * @interface + * An interface representing AppsListOptionalParams. * Optional Parameters. + * + * @extends RequestOptionsBase */ export interface AppsListOptionalParams extends msRest.RequestOptionsBase { /** - * The number of entries to skip. Default value is 0. Default value: 0. + * @member {number} [skip] The number of entries to skip. Default value is 0. + * Default value: 0 . */ skip?: number; /** - * The number of entries to return. Maximum page size is 500. Default is 100. Default value: 100. + * @member {number} [take] The number of entries to return. Maximum page size + * is 500. Default is 100. Default value: 100 . */ take?: number; } /** + * @interface + * An interface representing AppsImportMethodOptionalParams. * Optional Parameters. + * + * @extends RequestOptionsBase */ export interface AppsImportMethodOptionalParams extends msRest.RequestOptionsBase { /** - * The application name to create. If not specified, the application name will be read from the - * imported object. + * @member {string} [appName] The application name to create. If not + * specified, the application name will be read from the imported object. If + * the application name already exists, an error is returned. */ appName?: string; } /** + * @interface + * An interface representing AppsDeleteMethodOptionalParams. * Optional Parameters. + * + * @extends RequestOptionsBase */ export interface AppsDeleteMethodOptionalParams extends msRest.RequestOptionsBase { /** - * A flag to indicate whether to force an operation. Default value: false. + * @member {boolean} [force] A flag to indicate whether to force an + * operation. Default value: false . */ force?: boolean; } /** + * @interface + * An interface representing VersionsListOptionalParams. * Optional Parameters. - */ -export interface VersionsCloneOptionalParams extends msRest.RequestOptionsBase { - /** - * A model containing the new version ID. - */ - versionCloneObject?: TaskUpdateObject; -} - -/** - * Optional Parameters. + * + * @extends RequestOptionsBase */ export interface VersionsListOptionalParams extends msRest.RequestOptionsBase { /** - * The number of entries to skip. Default value is 0. Default value: 0. + * @member {number} [skip] The number of entries to skip. Default value is 0. + * Default value: 0 . */ skip?: number; /** - * The number of entries to return. Maximum page size is 500. Default is 100. Default value: 100. + * @member {number} [take] The number of entries to return. Maximum page size + * is 500. Default is 100. Default value: 100 . */ take?: number; } /** + * @interface + * An interface representing VersionsImportMethodOptionalParams. * Optional Parameters. + * + * @extends RequestOptionsBase */ export interface VersionsImportMethodOptionalParams extends msRest.RequestOptionsBase { /** - * The new versionId to import. If not specified, the versionId will be read from the imported - * object. + * @member {string} [versionId] The new versionId to import. If not + * specified, the versionId will be read from the imported object. */ versionId?: string; } /** + * @interface + * An interface representing PatternListPatternsOptionalParams. * Optional Parameters. + * + * @extends RequestOptionsBase */ -export interface PatternGetPatternsOptionalParams extends msRest.RequestOptionsBase { +export interface PatternListPatternsOptionalParams extends msRest.RequestOptionsBase { /** - * The number of entries to skip. Default value is 0. Default value: 0. + * @member {number} [skip] The number of entries to skip. Default value is 0. + * Default value: 0 . */ skip?: number; /** - * The number of entries to return. Maximum page size is 500. Default is 100. Default value: 100. + * @member {number} [take] The number of entries to return. Maximum page size + * is 500. Default is 100. Default value: 100 . */ take?: number; } /** + * @interface + * An interface representing PatternListIntentPatternsOptionalParams. * Optional Parameters. + * + * @extends RequestOptionsBase */ -export interface PatternGetIntentPatternsOptionalParams extends msRest.RequestOptionsBase { +export interface PatternListIntentPatternsOptionalParams extends msRest.RequestOptionsBase { /** - * The number of entries to skip. Default value is 0. Default value: 0. + * @member {number} [skip] The number of entries to skip. Default value is 0. + * Default value: 0 . */ skip?: number; /** - * The number of entries to return. Maximum page size is 500. Default is 100. Default value: 100. + * @member {number} [take] The number of entries to return. Maximum page size + * is 500. Default is 100. Default value: 100 . */ take?: number; } /** + * @interface + * An interface representing AzureAccountsAssignToAppOptionalParams. * Optional Parameters. + * + * @extends RequestOptionsBase */ export interface AzureAccountsAssignToAppOptionalParams extends msRest.RequestOptionsBase { /** - * The azure account information object. + * @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 { /** - * The azure account information object. + * @member {AzureAccountInfoObject} [azureAccountInfoObject] The Azure + * account information object. */ azureAccountInfoObject?: AzureAccountInfoObject; } @@ -2178,95 +2866,122 @@ export type TrainingStatus = 'NeedsTraining' | 'InProgress' | 'Trained'; */ export type OperationStatusType = 'Failed' | 'FAILED' | 'Success'; +/** + * Defines values for AzureRegions. + * Possible values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', + * 'westus2', 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', + * 'brazilsouth', 'virginia' + * @readonly + * @enum {string} + */ +export type AzureRegions = 'westus' | 'westeurope' | 'southeastasia' | 'eastus2' | 'westcentralus' | 'westus2' | 'eastus' | 'southcentralus' | 'northeurope' | 'eastasia' | 'australiaeast' | 'brazilsouth' | 'virginia'; + +/** + * Defines values for AzureClouds. + * Possible values include: 'com', 'us' + * @readonly + * @enum {string} + */ +export type AzureClouds = 'com' | 'us'; + /** * Defines values for ReadableType. * Possible values include: 'Entity Extractor', 'Hierarchical Entity Extractor', 'Hierarchical - * Child Entity Extractor', 'Composite Entity Extractor', 'Closed List Entity Extractor', 'Prebuilt - * Entity Extractor', 'Intent Classifier', 'Pattern.Any Entity Extractor', 'Regex Entity Extractor' + * Child Entity Extractor', 'Composite Entity Extractor', 'List Entity Extractor', 'Prebuilt Entity + * Extractor', 'Intent Classifier', 'Pattern.Any Entity Extractor', 'Regular Expression Entity + * Extractor' * @readonly * @enum {string} */ -export type ReadableType = 'Entity Extractor' | 'Hierarchical Entity Extractor' | 'Hierarchical Child Entity Extractor' | 'Composite Entity Extractor' | 'Closed List Entity Extractor' | 'Prebuilt Entity Extractor' | 'Intent Classifier' | 'Pattern.Any Entity Extractor' | 'Regex Entity Extractor'; +export type ReadableType = 'Entity Extractor' | 'Hierarchical Entity Extractor' | 'Hierarchical Child Entity Extractor' | 'Composite Entity Extractor' | 'List Entity Extractor' | 'Prebuilt Entity Extractor' | 'Intent Classifier' | 'Pattern.Any Entity Extractor' | 'Regular Expression Entity Extractor'; /** * Defines values for ReadableType1. * Possible values include: 'Entity Extractor', 'Hierarchical Entity Extractor', 'Hierarchical - * Child Entity Extractor', 'Composite Entity Extractor', 'Closed List Entity Extractor', 'Prebuilt - * Entity Extractor', 'Intent Classifier', 'Pattern.Any Entity Extractor', 'Regex Entity Extractor' + * Child Entity Extractor', 'Composite Entity Extractor', 'List Entity Extractor', 'Prebuilt Entity + * Extractor', 'Intent Classifier', 'Pattern.Any Entity Extractor', 'Regular Expression Entity + * Extractor' * @readonly * @enum {string} */ -export type ReadableType1 = 'Entity Extractor' | 'Hierarchical Entity Extractor' | 'Hierarchical Child Entity Extractor' | 'Composite Entity Extractor' | 'Closed List Entity Extractor' | 'Prebuilt Entity Extractor' | 'Intent Classifier' | 'Pattern.Any Entity Extractor' | 'Regex Entity Extractor'; +export type ReadableType1 = 'Entity Extractor' | 'Hierarchical Entity Extractor' | 'Hierarchical Child Entity Extractor' | 'Composite Entity Extractor' | 'List Entity Extractor' | 'Prebuilt Entity Extractor' | 'Intent Classifier' | 'Pattern.Any Entity Extractor' | 'Regular Expression Entity Extractor'; /** * Defines values for ReadableType2. * Possible values include: 'Entity Extractor', 'Hierarchical Entity Extractor', 'Hierarchical - * Child Entity Extractor', 'Composite Entity Extractor', 'Closed List Entity Extractor', 'Prebuilt - * Entity Extractor', 'Intent Classifier', 'Pattern.Any Entity Extractor', 'Regex Entity Extractor' + * Child Entity Extractor', 'Composite Entity Extractor', 'List Entity Extractor', 'Prebuilt Entity + * Extractor', 'Intent Classifier', 'Pattern.Any Entity Extractor', 'Regular Expression Entity + * Extractor' * @readonly * @enum {string} */ -export type ReadableType2 = 'Entity Extractor' | 'Hierarchical Entity Extractor' | 'Hierarchical Child Entity Extractor' | 'Composite Entity Extractor' | 'Closed List Entity Extractor' | 'Prebuilt Entity Extractor' | 'Intent Classifier' | 'Pattern.Any Entity Extractor' | 'Regex Entity Extractor'; +export type ReadableType2 = 'Entity Extractor' | 'Hierarchical Entity Extractor' | 'Hierarchical Child Entity Extractor' | 'Composite Entity Extractor' | 'List Entity Extractor' | 'Prebuilt Entity Extractor' | 'Intent Classifier' | 'Pattern.Any Entity Extractor' | 'Regular Expression Entity Extractor'; /** * Defines values for ReadableType3. * Possible values include: 'Entity Extractor', 'Hierarchical Entity Extractor', 'Hierarchical - * Child Entity Extractor', 'Composite Entity Extractor', 'Closed List Entity Extractor', 'Prebuilt - * Entity Extractor', 'Intent Classifier', 'Pattern.Any Entity Extractor', 'Regex Entity Extractor' + * Child Entity Extractor', 'Composite Entity Extractor', 'List Entity Extractor', 'Prebuilt Entity + * Extractor', 'Intent Classifier', 'Pattern.Any Entity Extractor', 'Regular Expression Entity + * Extractor' * @readonly * @enum {string} */ -export type ReadableType3 = 'Entity Extractor' | 'Hierarchical Entity Extractor' | 'Hierarchical Child Entity Extractor' | 'Composite Entity Extractor' | 'Closed List Entity Extractor' | 'Prebuilt Entity Extractor' | 'Intent Classifier' | 'Pattern.Any Entity Extractor' | 'Regex Entity Extractor'; +export type ReadableType3 = 'Entity Extractor' | 'Hierarchical Entity Extractor' | 'Hierarchical Child Entity Extractor' | 'Composite Entity Extractor' | 'List Entity Extractor' | 'Prebuilt Entity Extractor' | 'Intent Classifier' | 'Pattern.Any Entity Extractor' | 'Regular Expression Entity Extractor'; /** * Defines values for ReadableType4. * Possible values include: 'Entity Extractor', 'Hierarchical Entity Extractor', 'Hierarchical - * Child Entity Extractor', 'Composite Entity Extractor', 'Closed List Entity Extractor', 'Prebuilt - * Entity Extractor', 'Intent Classifier', 'Pattern.Any Entity Extractor', 'Regex Entity Extractor' + * Child Entity Extractor', 'Composite Entity Extractor', 'List Entity Extractor', 'Prebuilt Entity + * Extractor', 'Intent Classifier', 'Pattern.Any Entity Extractor', 'Regular Expression Entity + * Extractor' * @readonly * @enum {string} */ -export type ReadableType4 = 'Entity Extractor' | 'Hierarchical Entity Extractor' | 'Hierarchical Child Entity Extractor' | 'Composite Entity Extractor' | 'Closed List Entity Extractor' | 'Prebuilt Entity Extractor' | 'Intent Classifier' | 'Pattern.Any Entity Extractor' | 'Regex Entity Extractor'; +export type ReadableType4 = 'Entity Extractor' | 'Hierarchical Entity Extractor' | 'Hierarchical Child Entity Extractor' | 'Composite Entity Extractor' | 'List Entity Extractor' | 'Prebuilt Entity Extractor' | 'Intent Classifier' | 'Pattern.Any Entity Extractor' | 'Regular Expression Entity Extractor'; /** * Defines values for ReadableType5. * Possible values include: 'Entity Extractor', 'Hierarchical Entity Extractor', 'Hierarchical - * Child Entity Extractor', 'Composite Entity Extractor', 'Closed List Entity Extractor', 'Prebuilt - * Entity Extractor', 'Intent Classifier', 'Pattern.Any Entity Extractor', 'Regex Entity Extractor' + * Child Entity Extractor', 'Composite Entity Extractor', 'List Entity Extractor', 'Prebuilt Entity + * Extractor', 'Intent Classifier', 'Pattern.Any Entity Extractor', 'Regular Expression Entity + * Extractor' * @readonly * @enum {string} */ -export type ReadableType5 = 'Entity Extractor' | 'Hierarchical Entity Extractor' | 'Hierarchical Child Entity Extractor' | 'Composite Entity Extractor' | 'Closed List Entity Extractor' | 'Prebuilt Entity Extractor' | 'Intent Classifier' | 'Pattern.Any Entity Extractor' | 'Regex Entity Extractor'; +export type ReadableType5 = 'Entity Extractor' | 'Hierarchical Entity Extractor' | 'Hierarchical Child Entity Extractor' | 'Composite Entity Extractor' | 'List Entity Extractor' | 'Prebuilt Entity Extractor' | 'Intent Classifier' | 'Pattern.Any Entity Extractor' | 'Regular Expression Entity Extractor'; /** * Defines values for ReadableType6. * Possible values include: 'Entity Extractor', 'Hierarchical Entity Extractor', 'Hierarchical - * Child Entity Extractor', 'Composite Entity Extractor', 'Closed List Entity Extractor', 'Prebuilt - * Entity Extractor', 'Intent Classifier', 'Pattern.Any Entity Extractor', 'Regex Entity Extractor' + * Child Entity Extractor', 'Composite Entity Extractor', 'List Entity Extractor', 'Prebuilt Entity + * Extractor', 'Intent Classifier', 'Pattern.Any Entity Extractor', 'Regular Expression Entity + * Extractor' * @readonly * @enum {string} */ -export type ReadableType6 = 'Entity Extractor' | 'Hierarchical Entity Extractor' | 'Hierarchical Child Entity Extractor' | 'Composite Entity Extractor' | 'Closed List Entity Extractor' | 'Prebuilt Entity Extractor' | 'Intent Classifier' | 'Pattern.Any Entity Extractor' | 'Regex Entity Extractor'; +export type ReadableType6 = 'Entity Extractor' | 'Hierarchical Entity Extractor' | 'Hierarchical Child Entity Extractor' | 'Composite Entity Extractor' | 'List Entity Extractor' | 'Prebuilt Entity Extractor' | 'Intent Classifier' | 'Pattern.Any Entity Extractor' | 'Regular Expression Entity Extractor'; /** * Defines values for ReadableType7. * Possible values include: 'Entity Extractor', 'Hierarchical Entity Extractor', 'Hierarchical - * Child Entity Extractor', 'Composite Entity Extractor', 'Closed List Entity Extractor', 'Prebuilt - * Entity Extractor', 'Intent Classifier', 'Pattern.Any Entity Extractor', 'Regex Entity Extractor' + * Child Entity Extractor', 'Composite Entity Extractor', 'List Entity Extractor', 'Prebuilt Entity + * Extractor', 'Intent Classifier', 'Pattern.Any Entity Extractor', 'Regular Expression Entity + * Extractor' * @readonly * @enum {string} */ -export type ReadableType7 = 'Entity Extractor' | 'Hierarchical Entity Extractor' | 'Hierarchical Child Entity Extractor' | 'Composite Entity Extractor' | 'Closed List Entity Extractor' | 'Prebuilt Entity Extractor' | 'Intent Classifier' | 'Pattern.Any Entity Extractor' | 'Regex Entity Extractor'; +export type ReadableType7 = 'Entity Extractor' | 'Hierarchical Entity Extractor' | 'Hierarchical Child Entity Extractor' | 'Composite Entity Extractor' | 'List Entity Extractor' | 'Prebuilt Entity Extractor' | 'Intent Classifier' | 'Pattern.Any Entity Extractor' | 'Regular Expression Entity Extractor'; /** * Defines values for ReadableType8. * Possible values include: 'Entity Extractor', 'Hierarchical Entity Extractor', 'Hierarchical - * Child Entity Extractor', 'Composite Entity Extractor', 'Closed List Entity Extractor', 'Prebuilt - * Entity Extractor', 'Intent Classifier', 'Pattern.Any Entity Extractor', 'Regex Entity Extractor' + * Child Entity Extractor', 'Composite Entity Extractor', 'List Entity Extractor', 'Prebuilt Entity + * Extractor', 'Intent Classifier', 'Pattern.Any Entity Extractor', 'Regular Expression Entity + * Extractor' * @readonly * @enum {string} */ -export type ReadableType8 = 'Entity Extractor' | 'Hierarchical Entity Extractor' | 'Hierarchical Child Entity Extractor' | 'Composite Entity Extractor' | 'Closed List Entity Extractor' | 'Prebuilt Entity Extractor' | 'Intent Classifier' | 'Pattern.Any Entity Extractor' | 'Regex Entity Extractor'; +export type ReadableType8 = 'Entity Extractor' | 'Hierarchical Entity Extractor' | 'Hierarchical Child Entity Extractor' | 'Composite Entity Extractor' | 'List Entity Extractor' | 'Prebuilt Entity Extractor' | 'Intent Classifier' | 'Pattern.Any Entity Extractor' | 'Regular Expression Entity Extractor'; /** * Defines values for Status. @@ -2287,22 +3002,43 @@ export type Status1 = 'Queued' | 'InProgress' | 'UpToDate' | 'Fail' | 'Success'; /** * Defines values for ReadableType9. * Possible values include: 'Entity Extractor', 'Hierarchical Entity Extractor', 'Hierarchical - * Child Entity Extractor', 'Composite Entity Extractor', 'Closed List Entity Extractor', 'Prebuilt - * Entity Extractor', 'Intent Classifier', 'Pattern.Any Entity Extractor', 'Regex Entity Extractor' + * Child Entity Extractor', 'Composite Entity Extractor', 'List Entity Extractor', 'Prebuilt Entity + * Extractor', 'Intent Classifier', 'Pattern.Any Entity Extractor', 'Regular Expression Entity + * Extractor' * @readonly * @enum {string} */ -export type ReadableType9 = 'Entity Extractor' | 'Hierarchical Entity Extractor' | 'Hierarchical Child Entity Extractor' | 'Composite Entity Extractor' | 'Closed List Entity Extractor' | 'Prebuilt Entity Extractor' | 'Intent Classifier' | 'Pattern.Any Entity Extractor' | 'Regex Entity Extractor'; +export type ReadableType9 = 'Entity Extractor' | 'Hierarchical Entity Extractor' | 'Hierarchical Child Entity Extractor' | 'Composite Entity Extractor' | 'List Entity Extractor' | 'Prebuilt Entity Extractor' | 'Intent Classifier' | 'Pattern.Any Entity Extractor' | 'Regular Expression Entity Extractor'; /** * Defines values for ReadableType10. * Possible values include: 'Entity Extractor', 'Hierarchical Entity Extractor', 'Hierarchical - * Child Entity Extractor', 'Composite Entity Extractor', 'Closed List Entity Extractor', 'Prebuilt - * Entity Extractor', 'Intent Classifier', 'Pattern.Any Entity Extractor', 'Regex Entity Extractor' + * Child Entity Extractor', 'Composite Entity Extractor', 'List Entity Extractor', 'Prebuilt Entity + * Extractor', 'Intent Classifier', 'Pattern.Any Entity Extractor', 'Regular Expression Entity + * Extractor' * @readonly * @enum {string} */ -export type ReadableType10 = 'Entity Extractor' | 'Hierarchical Entity Extractor' | 'Hierarchical Child Entity Extractor' | 'Composite Entity Extractor' | 'Closed List Entity Extractor' | 'Prebuilt Entity Extractor' | 'Intent Classifier' | 'Pattern.Any Entity Extractor' | 'Regex Entity Extractor'; +export type ReadableType10 = 'Entity Extractor' | 'Hierarchical Entity Extractor' | 'Hierarchical Child Entity Extractor' | 'Composite Entity Extractor' | 'List Entity Extractor' | 'Prebuilt Entity Extractor' | 'Intent Classifier' | 'Pattern.Any Entity Extractor' | 'Regular Expression Entity Extractor'; + +/** + * Contains response data for the listApplicationVersionPatternFeatures operation. + */ +export type FeaturesListApplicationVersionPatternFeaturesResponse = 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: PatternFeatureInfo[]; + }; +}; /** * Contains response data for the addPhraseList operation. @@ -2312,7 +3048,6 @@ export type FeaturesAddPhraseListResponse = { * The parsed response body. */ body: number; - /** * The underlying HTTP response. */ @@ -2321,7 +3056,6 @@ export type FeaturesAddPhraseListResponse = { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -2341,7 +3075,6 @@ export type FeaturesListPhraseListsResponse = Array & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -2361,7 +3094,6 @@ export type FeaturesListResponse = FeaturesResponseObject & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -2381,7 +3113,6 @@ export type FeaturesGetPhraseListResponse = PhraseListFeatureInfo & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -2401,7 +3132,6 @@ export type FeaturesUpdatePhraseListResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -2421,7 +3151,6 @@ export type FeaturesDeletePhraseListResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -2441,7 +3170,6 @@ export type ExamplesAddResponse = LabelExampleResponse & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -2461,7 +3189,6 @@ export type ExamplesBatchResponse = Array & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -2481,7 +3208,6 @@ export type ExamplesListResponse = Array & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -2501,7 +3227,6 @@ export type ExamplesDeleteMethodResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -2517,7 +3242,6 @@ export type ModelAddIntentResponse = { * The parsed response body. */ body: string; - /** * The underlying HTTP response. */ @@ -2526,7 +3250,6 @@ export type ModelAddIntentResponse = { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -2546,7 +3269,6 @@ export type ModelListIntentsResponse = Array & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -2562,7 +3284,6 @@ export type ModelAddEntityResponse = { * The parsed response body. */ body: string; - /** * The underlying HTTP response. */ @@ -2571,7 +3292,6 @@ export type ModelAddEntityResponse = { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -2591,7 +3311,6 @@ export type ModelListEntitiesResponse = Array & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -2607,7 +3326,6 @@ export type ModelAddHierarchicalEntityResponse = { * The parsed response body. */ body: string; - /** * The underlying HTTP response. */ @@ -2616,7 +3334,6 @@ export type ModelAddHierarchicalEntityResponse = { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -2636,7 +3353,6 @@ export type ModelListHierarchicalEntitiesResponse = Array * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -2701,7 +3414,6 @@ export type ModelListClosedListsResponse = Array & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -2717,7 +3429,6 @@ export type ModelAddClosedListResponse = { * The parsed response body. */ body: string; - /** * The underlying HTTP response. */ @@ -2726,7 +3437,6 @@ export type ModelAddClosedListResponse = { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -2746,7 +3456,6 @@ export type ModelAddPrebuiltResponse = Array & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -2766,7 +3475,6 @@ export type ModelListPrebuiltsResponse = Array & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -2786,7 +3494,6 @@ export type ModelListPrebuiltEntitiesResponse = Array & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -2826,7 +3532,6 @@ export type ModelExamplesMethodResponse = Array & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -2846,7 +3551,6 @@ export type ModelGetIntentResponse = IntentClassifier & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -2866,7 +3570,6 @@ export type ModelUpdateIntentResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -2886,7 +3589,6 @@ export type ModelDeleteIntentResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -2906,7 +3608,6 @@ export type ModelGetEntityResponse = EntityExtractor & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -2926,7 +3627,6 @@ export type ModelUpdateEntityResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -2946,7 +3646,6 @@ export type ModelDeleteEntityResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -2966,7 +3665,6 @@ export type ModelGetHierarchicalEntityResponse = HierarchicalEntityExtractor & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -2986,7 +3684,6 @@ export type ModelUpdateHierarchicalEntityResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -3006,7 +3703,6 @@ export type ModelDeleteHierarchicalEntityResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -3026,7 +3722,6 @@ export type ModelGetCompositeEntityResponse = CompositeEntityExtractor & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -3046,7 +3741,6 @@ export type ModelUpdateCompositeEntityResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -3066,7 +3760,6 @@ export type ModelDeleteCompositeEntityResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -3086,7 +3779,6 @@ export type ModelGetClosedListResponse = ClosedListEntityExtractor & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -3106,7 +3798,6 @@ export type ModelUpdateClosedListResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -3126,7 +3817,6 @@ export type ModelPatchClosedListResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -3146,7 +3836,6 @@ export type ModelDeleteClosedListResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -3166,7 +3855,6 @@ export type ModelGetPrebuiltResponse = PrebuiltEntityExtractor & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -3186,7 +3874,6 @@ export type ModelDeletePrebuiltResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -3206,7 +3893,6 @@ export type ModelDeleteSubListResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -3226,7 +3912,6 @@ export type ModelUpdateSubListResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -3235,9 +3920,9 @@ export type ModelUpdateSubListResponse = OperationStatus & { }; /** - * Contains response data for the getIntentSuggestions operation. + * Contains response data for the listIntentSuggestions operation. */ -export type ModelGetIntentSuggestionsResponse = Array & { +export type ModelListIntentSuggestionsResponse = Array & { /** * The underlying HTTP response. */ @@ -3246,7 +3931,6 @@ export type ModelGetIntentSuggestionsResponse = Array * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -3255,9 +3939,9 @@ export type ModelGetIntentSuggestionsResponse = Array }; /** - * Contains response data for the getEntitySuggestions operation. + * Contains response data for the listEntitySuggestions operation. */ -export type ModelGetEntitySuggestionsResponse = Array & { +export type ModelListEntitySuggestionsResponse = Array & { /** * The underlying HTTP response. */ @@ -3266,7 +3950,6 @@ export type ModelGetEntitySuggestionsResponse = Array * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -3282,7 +3965,6 @@ export type ModelAddSubListResponse = { * The parsed response body. */ body: number; - /** * The underlying HTTP response. */ @@ -3291,7 +3973,6 @@ export type ModelAddSubListResponse = { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -3311,7 +3992,6 @@ export type ModelAddCustomPrebuiltDomainResponse = Array & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -3327,7 +4007,6 @@ export type ModelAddCustomPrebuiltIntentResponse = { * The parsed response body. */ body: string; - /** * The underlying HTTP response. */ @@ -3336,7 +4015,6 @@ export type ModelAddCustomPrebuiltIntentResponse = { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -3356,7 +4034,6 @@ export type ModelListCustomPrebuiltIntentsResponse = Array & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -3372,7 +4049,6 @@ export type ModelAddCustomPrebuiltEntityResponse = { * The parsed response body. */ body: string; - /** * The underlying HTTP response. */ @@ -3381,7 +4057,6 @@ export type ModelAddCustomPrebuiltEntityResponse = { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -3401,7 +4076,6 @@ export type ModelListCustomPrebuiltEntitiesResponse = Array & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -3421,7 +4095,6 @@ export type ModelListCustomPrebuiltModelsResponse = Array & * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -3441,7 +4114,6 @@ export type ModelDeleteCustomPrebuiltDomainResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -3461,7 +4133,6 @@ export type ModelGetHierarchicalEntityChildResponse = HierarchicalChildEntity & * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -3481,7 +4152,6 @@ export type ModelUpdateHierarchicalEntityChildResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -3501,7 +4171,6 @@ export type ModelDeleteHierarchicalEntityChildResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -3517,7 +4186,6 @@ export type ModelAddHierarchicalEntityChildResponse = { * The parsed response body. */ body: string; - /** * The underlying HTTP response. */ @@ -3526,7 +4194,6 @@ export type ModelAddHierarchicalEntityChildResponse = { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -3542,7 +4209,6 @@ export type ModelAddCompositeEntityChildResponse = { * The parsed response body. */ body: string; - /** * The underlying HTTP response. */ @@ -3551,7 +4217,6 @@ export type ModelAddCompositeEntityChildResponse = { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -3571,7 +4236,6 @@ export type ModelDeleteCompositeEntityChildResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -3580,9 +4244,9 @@ export type ModelDeleteCompositeEntityChildResponse = OperationStatus & { }; /** - * Contains response data for the getRegexEntityInfos operation. + * Contains response data for the listRegexEntityInfos operation. */ -export type ModelGetRegexEntityInfosResponse = Array & { +export type ModelListRegexEntityInfosResponse = Array & { /** * The underlying HTTP response. */ @@ -3591,7 +4255,6 @@ export type ModelGetRegexEntityInfosResponse = Array & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -3607,7 +4270,6 @@ export type ModelCreateRegexEntityModelResponse = { * The parsed response body. */ body: string; - /** * The underlying HTTP response. */ @@ -3616,7 +4278,6 @@ export type ModelCreateRegexEntityModelResponse = { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -3625,9 +4286,9 @@ export type ModelCreateRegexEntityModelResponse = { }; /** - * Contains response data for the getPatternAnyEntityInfos operation. + * Contains response data for the listPatternAnyEntityInfos operation. */ -export type ModelGetPatternAnyEntityInfosResponse = Array & { +export type ModelListPatternAnyEntityInfosResponse = Array & { /** * The underlying HTTP response. */ @@ -3636,7 +4297,6 @@ export type ModelGetPatternAnyEntityInfosResponse = Array & { +export type ModelListEntityRolesResponse = Array & { /** * The underlying HTTP response. */ @@ -3681,7 +4339,6 @@ export type ModelGetEntityRolesResponse = Array & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -3697,7 +4354,6 @@ export type ModelCreateEntityRoleResponse = { * The parsed response body. */ body: string; - /** * The underlying HTTP response. */ @@ -3706,7 +4362,6 @@ export type ModelCreateEntityRoleResponse = { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -3715,9 +4370,9 @@ export type ModelCreateEntityRoleResponse = { }; /** - * Contains response data for the getPrebuiltEntityRoles operation. + * Contains response data for the listPrebuiltEntityRoles operation. */ -export type ModelGetPrebuiltEntityRolesResponse = Array & { +export type ModelListPrebuiltEntityRolesResponse = Array & { /** * The underlying HTTP response. */ @@ -3726,7 +4381,6 @@ export type ModelGetPrebuiltEntityRolesResponse = Array & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -3742,7 +4396,6 @@ export type ModelCreatePrebuiltEntityRoleResponse = { * The parsed response body. */ body: string; - /** * The underlying HTTP response. */ @@ -3751,7 +4404,6 @@ export type ModelCreatePrebuiltEntityRoleResponse = { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -3760,9 +4412,9 @@ export type ModelCreatePrebuiltEntityRoleResponse = { }; /** - * Contains response data for the getClosedListEntityRoles operation. + * Contains response data for the listClosedListEntityRoles operation. */ -export type ModelGetClosedListEntityRolesResponse = Array & { +export type ModelListClosedListEntityRolesResponse = Array & { /** * The underlying HTTP response. */ @@ -3771,7 +4423,6 @@ export type ModelGetClosedListEntityRolesResponse = Array & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -3787,7 +4438,6 @@ export type ModelCreateClosedListEntityRoleResponse = { * The parsed response body. */ body: string; - /** * The underlying HTTP response. */ @@ -3796,7 +4446,6 @@ export type ModelCreateClosedListEntityRoleResponse = { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -3805,9 +4454,9 @@ export type ModelCreateClosedListEntityRoleResponse = { }; /** - * Contains response data for the getRegexEntityRoles operation. + * Contains response data for the listRegexEntityRoles operation. */ -export type ModelGetRegexEntityRolesResponse = Array & { +export type ModelListRegexEntityRolesResponse = Array & { /** * The underlying HTTP response. */ @@ -3816,7 +4465,6 @@ export type ModelGetRegexEntityRolesResponse = Array & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -3832,7 +4480,6 @@ export type ModelCreateRegexEntityRoleResponse = { * The parsed response body. */ body: string; - /** * The underlying HTTP response. */ @@ -3841,7 +4488,6 @@ export type ModelCreateRegexEntityRoleResponse = { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -3850,9 +4496,9 @@ export type ModelCreateRegexEntityRoleResponse = { }; /** - * Contains response data for the getCompositeEntityRoles operation. + * Contains response data for the listCompositeEntityRoles operation. */ -export type ModelGetCompositeEntityRolesResponse = Array & { +export type ModelListCompositeEntityRolesResponse = Array & { /** * The underlying HTTP response. */ @@ -3861,7 +4507,6 @@ export type ModelGetCompositeEntityRolesResponse = Array & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -3877,7 +4522,6 @@ export type ModelCreateCompositeEntityRoleResponse = { * The parsed response body. */ body: string; - /** * The underlying HTTP response. */ @@ -3886,7 +4530,6 @@ export type ModelCreateCompositeEntityRoleResponse = { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -3895,9 +4538,9 @@ export type ModelCreateCompositeEntityRoleResponse = { }; /** - * Contains response data for the getPatternAnyEntityRoles operation. + * Contains response data for the listPatternAnyEntityRoles operation. */ -export type ModelGetPatternAnyEntityRolesResponse = Array & { +export type ModelListPatternAnyEntityRolesResponse = Array & { /** * The underlying HTTP response. */ @@ -3906,7 +4549,6 @@ export type ModelGetPatternAnyEntityRolesResponse = Array & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -3922,7 +4564,6 @@ export type ModelCreatePatternAnyEntityRoleResponse = { * The parsed response body. */ body: string; - /** * The underlying HTTP response. */ @@ -3931,7 +4572,6 @@ export type ModelCreatePatternAnyEntityRoleResponse = { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -3940,9 +4580,9 @@ export type ModelCreatePatternAnyEntityRoleResponse = { }; /** - * Contains response data for the getHierarchicalEntityRoles operation. + * Contains response data for the listHierarchicalEntityRoles operation. */ -export type ModelGetHierarchicalEntityRolesResponse = Array & { +export type ModelListHierarchicalEntityRolesResponse = Array & { /** * The underlying HTTP response. */ @@ -3951,7 +4591,6 @@ export type ModelGetHierarchicalEntityRolesResponse = Array & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -3967,7 +4606,6 @@ export type ModelCreateHierarchicalEntityRoleResponse = { * The parsed response body. */ body: string; - /** * The underlying HTTP response. */ @@ -3976,7 +4614,6 @@ export type ModelCreateHierarchicalEntityRoleResponse = { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -3985,9 +4622,9 @@ export type ModelCreateHierarchicalEntityRoleResponse = { }; /** - * Contains response data for the getCustomPrebuiltEntityRoles operation. + * Contains response data for the listCustomPrebuiltEntityRoles operation. */ -export type ModelGetCustomPrebuiltEntityRolesResponse = Array & { +export type ModelListCustomPrebuiltEntityRolesResponse = Array & { /** * The underlying HTTP response. */ @@ -3996,7 +4633,6 @@ export type ModelGetCustomPrebuiltEntityRolesResponse = Array & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -4012,7 +4648,6 @@ export type ModelCreateCustomPrebuiltEntityRoleResponse = { * The parsed response body. */ body: string; - /** * The underlying HTTP response. */ @@ -4021,7 +4656,6 @@ export type ModelCreateCustomPrebuiltEntityRoleResponse = { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -4041,7 +4675,6 @@ export type ModelGetExplicitListResponse = Array & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -4057,7 +4690,6 @@ export type ModelAddExplicitListItemResponse = { * The parsed response body. */ body: number; - /** * The underlying HTTP response. */ @@ -4066,7 +4698,6 @@ export type ModelAddExplicitListItemResponse = { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -4086,7 +4717,6 @@ export type ModelGetRegexEntityEntityInfoResponse = RegexEntityExtractor & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -4106,7 +4736,6 @@ export type ModelUpdateRegexEntityModelResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -4126,7 +4755,6 @@ export type ModelDeleteRegexEntityModelResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -4146,7 +4774,6 @@ export type ModelGetPatternAnyEntityInfoResponse = PatternAnyEntityExtractor & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -4166,7 +4793,6 @@ export type ModelUpdatePatternAnyEntityModelResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -4186,7 +4812,6 @@ export type ModelDeletePatternAnyEntityModelResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -4206,7 +4831,6 @@ export type ModelGetEntityRoleResponse = EntityRole & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -4226,7 +4850,6 @@ export type ModelUpdateEntityRoleResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -4246,7 +4869,6 @@ export type ModelDeleteEntityRoleResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -4266,7 +4888,6 @@ export type ModelGetPrebuiltEntityRoleResponse = EntityRole & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -4286,7 +4907,6 @@ export type ModelUpdatePrebuiltEntityRoleResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -4306,7 +4926,6 @@ export type ModelDeletePrebuiltEntityRoleResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -4326,7 +4945,6 @@ export type ModelGetClosedListEntityRoleResponse = EntityRole & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -4346,7 +4964,6 @@ export type ModelUpdateClosedListEntityRoleResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -4366,7 +4983,6 @@ export type ModelDeleteClosedListEntityRoleResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -4386,7 +5002,6 @@ export type ModelGetRegexEntityRoleResponse = EntityRole & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -4406,7 +5021,6 @@ export type ModelUpdateRegexEntityRoleResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -4426,7 +5040,6 @@ export type ModelDeleteRegexEntityRoleResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -4446,7 +5059,6 @@ export type ModelGetCompositeEntityRoleResponse = EntityRole & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -4466,7 +5078,6 @@ export type ModelUpdateCompositeEntityRoleResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -4486,7 +5097,6 @@ export type ModelDeleteCompositeEntityRoleResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -4506,7 +5116,6 @@ export type ModelGetPatternAnyEntityRoleResponse = EntityRole & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -4526,7 +5135,6 @@ export type ModelUpdatePatternAnyEntityRoleResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -4546,7 +5154,6 @@ export type ModelDeletePatternAnyEntityRoleResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -4566,7 +5173,6 @@ export type ModelGetHierarchicalEntityRoleResponse = EntityRole & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -4586,7 +5192,6 @@ export type ModelUpdateHierarchicalEntityRoleResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -4606,7 +5211,6 @@ export type ModelDeleteHierarchicalEntityRoleResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -4626,7 +5230,6 @@ export type ModelGetCustomEntityRoleResponse = EntityRole & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -4646,7 +5249,6 @@ export type ModelUpdateCustomPrebuiltEntityRoleResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -4666,7 +5268,6 @@ export type ModelDeleteCustomEntityRoleResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -4686,7 +5287,6 @@ export type ModelGetExplicitListItemResponse = ExplicitListItem & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -4706,7 +5306,6 @@ export type ModelUpdateExplicitListItemResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -4726,7 +5325,6 @@ export type ModelDeleteExplicitListItemResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -4742,7 +5340,6 @@ export type AppsAddResponse = { * The parsed response body. */ body: string; - /** * The underlying HTTP response. */ @@ -4751,7 +5348,6 @@ export type AppsAddResponse = { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -4771,7 +5367,6 @@ export type AppsListResponse = Array & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -4787,7 +5382,6 @@ export type AppsImportMethodResponse = { * The parsed response body. */ body: string; - /** * The underlying HTTP response. */ @@ -4796,7 +5390,6 @@ export type AppsImportMethodResponse = { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -4816,7 +5409,6 @@ export type AppsListCortanaEndpointsResponse = PersonalAssistantsResponse & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -4836,7 +5428,6 @@ export type AppsListDomainsResponse = Array & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -4856,7 +5447,6 @@ export type AppsListUsageScenariosResponse = Array & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -4876,7 +5466,6 @@ export type AppsListSupportedCulturesResponse = Array & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -4895,7 +5484,6 @@ export type AppsDownloadQueryLogsResponse = { * Always undefined in node.js. */ blobBody?: Promise; - /** * NODEJS ONLY * @@ -4903,7 +5491,6 @@ export type AppsDownloadQueryLogsResponse = { * Always undefined in the browser. */ readableStreamBody?: NodeJS.ReadableStream; - /** * The underlying HTTP response. */ @@ -4922,7 +5509,6 @@ export type AppsGetResponse = ApplicationInfoResponse & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -4942,7 +5528,6 @@ export type AppsUpdateResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -4962,7 +5547,6 @@ export type AppsDeleteMethodResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -4982,7 +5566,6 @@ export type AppsPublishResponse = ProductionOrStagingEndpointInfo & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -5002,7 +5585,6 @@ export type AppsGetSettingsResponse = ApplicationSettings & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -5022,7 +5604,6 @@ export type AppsUpdateSettingsResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -5042,7 +5623,6 @@ export type AppsGetPublishSettingsResponse = PublishSettings & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -5062,7 +5642,6 @@ export type AppsUpdatePublishSettingsResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -5087,7 +5666,6 @@ export type AppsListEndpointsResponse = { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -5107,7 +5685,6 @@ export type AppsListAvailableCustomPrebuiltDomainsResponse = Array; - /** * NODEJS ONLY * @@ -5179,7 +5752,6 @@ export type AppsPackagePublishedApplicationAsGzipResponse = { * Always undefined in the browser. */ readableStreamBody?: NodeJS.ReadableStream; - /** * The underlying HTTP response. */ @@ -5197,7 +5769,6 @@ export type AppsPackageTrainedApplicationAsGzipResponse = { * Always undefined in node.js. */ blobBody?: Promise; - /** * NODEJS ONLY * @@ -5205,7 +5776,6 @@ export type AppsPackageTrainedApplicationAsGzipResponse = { * Always undefined in the browser. */ readableStreamBody?: NodeJS.ReadableStream; - /** * The underlying HTTP response. */ @@ -5220,7 +5790,6 @@ export type VersionsCloneResponse = { * The parsed response body. */ body: string; - /** * The underlying HTTP response. */ @@ -5229,7 +5798,6 @@ export type VersionsCloneResponse = { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -5249,7 +5817,6 @@ export type VersionsListResponse = Array & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -5269,7 +5836,6 @@ export type VersionsGetResponse = VersionInfo & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -5289,7 +5855,6 @@ export type VersionsUpdateResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -5309,7 +5874,6 @@ export type VersionsDeleteMethodResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -5329,7 +5893,6 @@ export type VersionsExportMethodResponse = LuisApp & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -5345,7 +5908,6 @@ export type VersionsImportMethodResponse = { * The parsed response body. */ body: string; - /** * The underlying HTTP response. */ @@ -5354,7 +5916,6 @@ export type VersionsImportMethodResponse = { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -5374,7 +5935,6 @@ export type VersionsDeleteUnlabelledUtteranceResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -5394,7 +5954,6 @@ export type TrainTrainVersionResponse = EnqueueTrainingResponse & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -5414,7 +5973,6 @@ export type TrainGetStatusResponse = Array & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -5434,7 +5992,6 @@ export type PermissionsListResponse = UserAccessList & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -5454,7 +6011,6 @@ export type PermissionsAddResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -5474,7 +6030,6 @@ export type PermissionsDeleteMethodResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -5494,7 +6049,6 @@ export type PermissionsUpdateResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -5514,7 +6068,6 @@ export type PatternAddPatternResponse = PatternRuleInfo & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -5523,9 +6076,9 @@ export type PatternAddPatternResponse = PatternRuleInfo & { }; /** - * Contains response data for the getPatterns operation. + * Contains response data for the listPatterns operation. */ -export type PatternGetPatternsResponse = Array & { +export type PatternListPatternsResponse = Array & { /** * The underlying HTTP response. */ @@ -5534,7 +6087,6 @@ export type PatternGetPatternsResponse = Array & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -5554,7 +6106,6 @@ export type PatternUpdatePatternsResponse = Array & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -5574,7 +6125,6 @@ export type PatternBatchAddPatternsResponse = Array & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -5594,7 +6144,6 @@ export type PatternDeletePatternsResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -5614,7 +6163,6 @@ export type PatternUpdatePatternResponse = PatternRuleInfo & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -5634,7 +6182,6 @@ export type PatternDeletePatternResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -5643,9 +6190,9 @@ export type PatternDeletePatternResponse = OperationStatus & { }; /** - * Contains response data for the getIntentPatterns operation. + * Contains response data for the listIntentPatterns operation. */ -export type PatternGetIntentPatternsResponse = Array & { +export type PatternListIntentPatternsResponse = Array & { /** * The underlying HTTP response. */ @@ -5654,7 +6201,6 @@ export type PatternGetIntentPatternsResponse = Array & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -5674,7 +6220,6 @@ export type SettingsListResponse = Array & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -5694,7 +6239,6 @@ export type SettingsUpdateResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -5714,7 +6258,6 @@ export type AzureAccountsAssignToAppResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -5734,7 +6277,6 @@ export type AzureAccountsGetAssignedResponse = Array & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -5754,7 +6296,6 @@ export type AzureAccountsRemoveFromAppResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -5763,9 +6304,9 @@ export type AzureAccountsRemoveFromAppResponse = OperationStatus & { }; /** - * Contains response data for the getUserLUISAccounts operation. + * Contains response data for the listUserLUISAccounts operation. */ -export type AzureAccountsGetUserLUISAccountsResponse = Array & { +export type AzureAccountsListUserLUISAccountsResponse = Array & { /** * The underlying HTTP response. */ @@ -5774,7 +6315,6 @@ export type AzureAccountsGetUserLUISAccountsResponse = Array */ - add(applicationCreateObject: Models.ApplicationCreateObject, options?: msRest.RequestOptionsBase): Promise; - /** - * @param applicationCreateObject A model containing Name, Description (optional), Culture, Usage - * Scenario (optional), Domain (optional) and initial version ID (optional) of the application. - * Default value for the version ID is 0.1. Note: the culture cannot be changed after the app is - * created. + add(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, applicationCreateObject: Models.ApplicationCreateObject, options?: msRest.RequestOptionsBase): Promise; + /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' + * @param applicationCreateObject An application containing Name, Description (optional), Culture, + * Usage Scenario (optional), Domain (optional) and initial version ID (optional) of the + * application. Default value for the version ID is "0.1". Note: the culture cannot be changed + * after the app is created. * @param callback The callback */ - add(applicationCreateObject: Models.ApplicationCreateObject, callback: msRest.ServiceCallback): void; - /** - * @param applicationCreateObject A model containing Name, Description (optional), Culture, Usage - * Scenario (optional), Domain (optional) and initial version ID (optional) of the application. - * Default value for the version ID is 0.1. Note: the culture cannot be changed after the app is - * created. + add(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, applicationCreateObject: Models.ApplicationCreateObject, callback: msRest.ServiceCallback): void; + /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' + * @param applicationCreateObject An application containing Name, Description (optional), Culture, + * Usage Scenario (optional), Domain (optional) and initial version ID (optional) of the + * application. Default value for the version ID is "0.1". Note: the culture cannot be changed + * after the app is created. * @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(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, applicationCreateObject: Models.ApplicationCreateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + add(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, applicationCreateObject: Models.ApplicationCreateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, applicationCreateObject, options }, @@ -64,23 +84,43 @@ export class Apps { } /** - * Lists all of the user applications. + * Lists all of the user's applications. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param [options] The optional parameters * @returns Promise */ - list(options?: Models.AppsListOptionalParams): Promise; + list(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, options?: Models.AppsListOptionalParams): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param callback The callback */ - list(callback: msRest.ServiceCallback): void; + list(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @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(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, options: Models.AppsListOptionalParams, callback: msRest.ServiceCallback): void; + list(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, options?: Models.AppsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, options }, listOperationSpec, @@ -88,27 +128,46 @@ export class Apps { } /** - * Imports an application to LUIS, the application's structure should be included in the request - * body. + * Imports an application to LUIS, the application's structure is included in the request body. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param luisApp A LUIS application structure. * @param [options] The optional parameters * @returns Promise */ - importMethod(luisApp: Models.LuisApp, options?: Models.AppsImportMethodOptionalParams): Promise; + importMethod(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, luisApp: Models.LuisApp, options?: Models.AppsImportMethodOptionalParams): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param luisApp A LUIS application structure. * @param callback The callback */ - importMethod(luisApp: Models.LuisApp, callback: msRest.ServiceCallback): void; + importMethod(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, luisApp: Models.LuisApp, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param luisApp A LUIS application structure. * @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(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, luisApp: Models.LuisApp, options: Models.AppsImportMethodOptionalParams, callback: msRest.ServiceCallback): void; + importMethod(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, luisApp: Models.LuisApp, options?: Models.AppsImportMethodOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, luisApp, options }, @@ -118,22 +177,42 @@ export class Apps { /** * Gets the endpoint URLs for the prebuilt Cortana applications. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param [options] The optional parameters * @returns Promise */ - listCortanaEndpoints(options?: msRest.RequestOptionsBase): Promise; + listCortanaEndpoints(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param callback The callback */ - listCortanaEndpoints(callback: msRest.ServiceCallback): void; + listCortanaEndpoints(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @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(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listCortanaEndpoints(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, options }, listCortanaEndpointsOperationSpec, @@ -142,22 +221,42 @@ export class Apps { /** * Gets the available application domains. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param [options] The optional parameters * @returns Promise */ - listDomains(options?: msRest.RequestOptionsBase): Promise; + listDomains(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param callback The callback */ - listDomains(callback: msRest.ServiceCallback): void; + listDomains(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param options The optional parameters * @param callback The callback */ - listDomains(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listDomains(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listDomains(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listDomains(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, options }, listDomainsOperationSpec, @@ -166,22 +265,42 @@ export class Apps { /** * Gets the application available usage scenarios. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param [options] The optional parameters * @returns Promise */ - listUsageScenarios(options?: msRest.RequestOptionsBase): Promise; + listUsageScenarios(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param callback The callback */ - listUsageScenarios(callback: msRest.ServiceCallback): void; + listUsageScenarios(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @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(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listUsageScenarios(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, options }, listUsageScenariosOperationSpec, @@ -189,23 +308,44 @@ export class Apps { } /** - * Gets the supported application cultures. + * Gets a list of supported cultures. Cultures are equivalent to the written language and locale. + * For example,"en-us" represents the U.S. variation of English. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param [options] The optional parameters * @returns Promise */ - listSupportedCultures(options?: msRest.RequestOptionsBase): Promise; + listSupportedCultures(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param callback The callback */ - listSupportedCultures(callback: msRest.ServiceCallback): void; + listSupportedCultures(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @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(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSupportedCultures(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, options }, listSupportedCulturesOperationSpec, @@ -213,26 +353,46 @@ export class Apps { } /** - * Gets the query logs of the past month for the application. + * Gets the logs of the past month's endpoint queries for the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param [options] The optional parameters * @returns Promise */ - downloadQueryLogs(appId: string, options?: msRest.RequestOptionsBase): Promise; + downloadQueryLogs(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param callback The callback */ - downloadQueryLogs(appId: string, callback: msRest.ServiceCallback): void; + downloadQueryLogs(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @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(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + downloadQueryLogs(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, options }, @@ -242,25 +402,45 @@ export class Apps { /** * Gets the application info. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param [options] The optional parameters * @returns Promise */ - get(appId: string, options?: msRest.RequestOptionsBase): Promise; + get(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param callback The callback */ - get(appId: string, callback: msRest.ServiceCallback): void; + get(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @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(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, options }, @@ -270,28 +450,48 @@ export class Apps { /** * Updates the name or description of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param applicationUpdateObject A model containing Name and Description of the application. * @param [options] The optional parameters * @returns Promise */ - update(appId: string, applicationUpdateObject: Models.ApplicationUpdateObject, options?: msRest.RequestOptionsBase): Promise; + update(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, applicationUpdateObject: Models.ApplicationUpdateObject, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @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(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, applicationUpdateObject: Models.ApplicationUpdateObject, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @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(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, applicationUpdateObject: Models.ApplicationUpdateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, applicationUpdateObject: Models.ApplicationUpdateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, applicationUpdateObject, options @@ -302,25 +502,45 @@ export class Apps { /** * Deletes an application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param [options] The optional parameters * @returns Promise */ - deleteMethod(appId: string, options?: Models.AppsDeleteMethodOptionalParams): Promise; + deleteMethod(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, options?: Models.AppsDeleteMethodOptionalParams): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param callback The callback */ - deleteMethod(appId: string, callback: msRest.ServiceCallback): void; + deleteMethod(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @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(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, options: Models.AppsDeleteMethodOptionalParams, callback: msRest.ServiceCallback): void; + deleteMethod(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, options?: Models.AppsDeleteMethodOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, options }, @@ -330,31 +550,51 @@ export class Apps { /** * Publishes a specific version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param applicationPublishObject The application publish object. The region is the target region * that the application is published to. * @param [options] The optional parameters * @returns Promise */ - publish(appId: string, applicationPublishObject: Models.ApplicationPublishObject, options?: msRest.RequestOptionsBase): Promise; + publish(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, applicationPublishObject: Models.ApplicationPublishObject, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @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(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, applicationPublishObject: Models.ApplicationPublishObject, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param applicationPublishObject The application publish object. The region is the target region * that the application is published to. * @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(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, applicationPublishObject: Models.ApplicationPublishObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + publish(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, applicationPublishObject: Models.ApplicationPublishObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, applicationPublishObject, options @@ -364,26 +604,46 @@ export class Apps { } /** - * Get the application settings. + * Get the application settings including 'UseAllTrainingData'. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param [options] The optional parameters * @returns Promise */ - getSettings(appId: string, options?: msRest.RequestOptionsBase): Promise; + getSettings(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param callback The callback */ - getSettings(appId: string, callback: msRest.ServiceCallback): void; + getSettings(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @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(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getSettings(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, options }, @@ -392,29 +652,49 @@ export class Apps { } /** - * Updates the application settings. + * Updates the application settings including 'UseAllTrainingData'. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param applicationSettingUpdateObject An object containing the new application settings. * @param [options] The optional parameters * @returns Promise */ - updateSettings(appId: string, applicationSettingUpdateObject: Models.ApplicationSettingUpdateObject, options?: msRest.RequestOptionsBase): Promise; + updateSettings(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, applicationSettingUpdateObject: Models.ApplicationSettingUpdateObject, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @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(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, applicationSettingUpdateObject: Models.ApplicationSettingUpdateObject, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @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(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, applicationSettingUpdateObject: Models.ApplicationSettingUpdateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updateSettings(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, applicationSettingUpdateObject: Models.ApplicationSettingUpdateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, applicationSettingUpdateObject, options @@ -424,26 +704,46 @@ export class Apps { } /** - * Get the application publish settings. + * Get the application publish settings including 'UseAllTrainingData'. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param [options] The optional parameters * @returns Promise */ - getPublishSettings(appId: string, options?: msRest.RequestOptionsBase): Promise; + getPublishSettings(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param callback The callback */ - getPublishSettings(appId: string, callback: msRest.ServiceCallback): void; + getPublishSettings(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @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(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getPublishSettings(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, options }, @@ -452,29 +752,49 @@ export class Apps { } /** - * Updates the application publish settings. + * Updates the application publish settings including 'UseAllTrainingData'. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param publishSettingUpdateObject An object containing the new publish application settings. * @param [options] The optional parameters * @returns Promise */ - updatePublishSettings(appId: string, publishSettingUpdateObject: Models.PublishSettingUpdateObject, options?: msRest.RequestOptionsBase): Promise; + updatePublishSettings(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, publishSettingUpdateObject: Models.PublishSettingUpdateObject, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @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(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, publishSettingUpdateObject: Models.PublishSettingUpdateObject, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @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(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, publishSettingUpdateObject: Models.PublishSettingUpdateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updatePublishSettings(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, publishSettingUpdateObject: Models.PublishSettingUpdateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, publishSettingUpdateObject, options @@ -485,25 +805,45 @@ export class Apps { /** * Returns the available endpoint deployment regions and URLs. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param [options] The optional parameters * @returns Promise */ - listEndpoints(appId: string, options?: msRest.RequestOptionsBase): Promise; + listEndpoints(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param callback The callback */ - listEndpoints(appId: string, callback: msRest.ServiceCallback<{ [propertyName: string]: string }>): void; + listEndpoints(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, callback: msRest.ServiceCallback<{ [propertyName: string]: string }>): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @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(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<{ [propertyName: string]: string }>): void; + listEndpoints(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<{ [propertyName: string]: string }>, callback?: msRest.ServiceCallback<{ [propertyName: string]: string }>): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, options }, @@ -513,22 +853,42 @@ export class Apps { /** * Gets all the available custom prebuilt domains for all cultures. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param [options] The optional parameters * @returns Promise */ - listAvailableCustomPrebuiltDomains(options?: msRest.RequestOptionsBase): Promise; + listAvailableCustomPrebuiltDomains(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param callback The callback */ - listAvailableCustomPrebuiltDomains(callback: msRest.ServiceCallback): void; + listAvailableCustomPrebuiltDomains(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @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(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listAvailableCustomPrebuiltDomains(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, options }, listAvailableCustomPrebuiltDomainsOperationSpec, @@ -536,29 +896,49 @@ export class Apps { } /** - * Adds a prebuilt domain along with its models as a new application. + * Adds a prebuilt domain along with its intent and entity models as a new application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param prebuiltDomainCreateObject A prebuilt domain create object containing the name and * culture of the domain. * @param [options] The optional parameters * @returns Promise */ - addCustomPrebuiltDomain(prebuiltDomainCreateObject: Models.PrebuiltDomainCreateObject, options?: msRest.RequestOptionsBase): Promise; + addCustomPrebuiltDomain(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, prebuiltDomainCreateObject: Models.PrebuiltDomainCreateObject, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @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(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, prebuiltDomainCreateObject: Models.PrebuiltDomainCreateObject, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @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(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, prebuiltDomainCreateObject: Models.PrebuiltDomainCreateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + addCustomPrebuiltDomain(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, prebuiltDomainCreateObject: Models.PrebuiltDomainCreateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, prebuiltDomainCreateObject, options }, @@ -567,26 +947,46 @@ export class Apps { } /** - * Gets all the available custom prebuilt domains for a specific culture. + * Gets all the available prebuilt domains for a specific culture. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param culture Culture. * @param [options] The optional parameters * @returns Promise */ - listAvailableCustomPrebuiltDomainsForCulture(culture: string, options?: msRest.RequestOptionsBase): Promise; + listAvailableCustomPrebuiltDomainsForCulture(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, culture: string, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param culture Culture. * @param callback The callback */ - listAvailableCustomPrebuiltDomainsForCulture(culture: string, callback: msRest.ServiceCallback): void; + listAvailableCustomPrebuiltDomainsForCulture(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, culture: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @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(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, culture: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listAvailableCustomPrebuiltDomainsForCulture(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, culture: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, culture, options }, @@ -595,30 +995,50 @@ export class Apps { } /** - * Packages published LUIS application as GZip. + * Packages a published LUIS application as a GZip file to be used in the LUIS container. * @summary package - Gets published LUIS application package in binary stream GZip format + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @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; + packagePublishedApplicationAsGzip(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, slotName: string, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @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(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, slotName: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @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(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, slotName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + packagePublishedApplicationAsGzip(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, slotName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, slotName, options @@ -628,30 +1048,50 @@ export class Apps { } /** - * Packages trained LUIS application as GZip. + * Packages trained LUIS application as GZip file to be used in the LUIS container. * @summary package - Gets trained LUIS application package in binary stream GZip format + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @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; + packageTrainedApplicationAsGzip(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param callback The callback */ - packageTrainedApplicationAsGzip(appId: string, versionId: string, callback: msRest.ServiceCallback): void; + packageTrainedApplicationAsGzip(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @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(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + packageTrainedApplicationAsGzip(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, options @@ -667,7 +1107,8 @@ const addOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "apps/", urlParameters: [ - Parameters.endpoint + Parameters.azureRegion, + Parameters.azureCloud ], requestBody: { parameterPath: "applicationCreateObject", @@ -696,7 +1137,8 @@ const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/", urlParameters: [ - Parameters.endpoint + Parameters.azureRegion, + Parameters.azureCloud ], queryParameters: [ Parameters.skip, @@ -728,7 +1170,8 @@ const importMethodOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "apps/import", urlParameters: [ - Parameters.endpoint + Parameters.azureRegion, + Parameters.azureCloud ], queryParameters: [ Parameters.appName @@ -760,7 +1203,8 @@ const listCortanaEndpointsOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/assistants", urlParameters: [ - Parameters.endpoint + Parameters.azureRegion, + Parameters.azureCloud ], responses: { 200: { @@ -777,7 +1221,8 @@ const listDomainsOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/domains", urlParameters: [ - Parameters.endpoint + Parameters.azureRegion, + Parameters.azureCloud ], responses: { 200: { @@ -804,7 +1249,8 @@ const listUsageScenariosOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/usagescenarios", urlParameters: [ - Parameters.endpoint + Parameters.azureRegion, + Parameters.azureCloud ], responses: { 200: { @@ -831,7 +1277,8 @@ const listSupportedCulturesOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/cultures", urlParameters: [ - Parameters.endpoint + Parameters.azureRegion, + Parameters.azureCloud ], responses: { 200: { @@ -859,7 +1306,8 @@ const downloadQueryLogsOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/{appId}/querylogs", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId ], responses: { @@ -880,7 +1328,8 @@ const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/{appId}", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId ], responses: { @@ -898,7 +1347,8 @@ const updateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", path: "apps/{appId}", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId ], requestBody: { @@ -923,7 +1373,8 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", path: "apps/{appId}", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId ], queryParameters: [ @@ -944,7 +1395,8 @@ const publishOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "apps/{appId}/publish", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId ], requestBody: { @@ -972,7 +1424,8 @@ const getSettingsOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/{appId}/settings", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId ], responses: { @@ -990,7 +1443,8 @@ const updateSettingsOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", path: "apps/{appId}/settings", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId ], requestBody: { @@ -1015,7 +1469,8 @@ const getPublishSettingsOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/{appId}/publishsettings", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId ], responses: { @@ -1033,7 +1488,8 @@ const updatePublishSettingsOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", path: "apps/{appId}/publishsettings", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId ], requestBody: { @@ -1058,7 +1514,8 @@ const listEndpointsOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/{appId}/endpoints", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId ], responses: { @@ -1086,7 +1543,8 @@ const listAvailableCustomPrebuiltDomainsOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/customprebuiltdomains", urlParameters: [ - Parameters.endpoint + Parameters.azureRegion, + Parameters.azureCloud ], responses: { 200: { @@ -1114,7 +1572,8 @@ const addCustomPrebuiltDomainOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "apps/customprebuiltdomains", urlParameters: [ - Parameters.endpoint + Parameters.azureRegion, + Parameters.azureCloud ], requestBody: { parameterPath: "prebuiltDomainCreateObject", @@ -1143,7 +1602,8 @@ const listAvailableCustomPrebuiltDomainsForCultureOperationSpec: msRest.Operatio httpMethod: "GET", path: "apps/customprebuiltdomains/{culture}", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.culture ], responses: { @@ -1172,7 +1632,8 @@ const packagePublishedApplicationAsGzipOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "package/{appId}/slot/{slotName}/gzip", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.slotName ], @@ -1196,7 +1657,8 @@ const packageTrainedApplicationAsGzipOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "package/{appId}/versions/{versionId}/gzip", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0 ], diff --git a/packages/@azure/cognitiveservices-luis-authoring/lib/operations/azureAccounts.ts b/packages/@azure/cognitiveservices-luis-authoring/lib/operations/azureAccounts.ts index a907fd51326b..0ac88b00051e 100644 --- a/packages/@azure/cognitiveservices-luis-authoring/lib/operations/azureAccounts.ts +++ b/packages/@azure/cognitiveservices-luis-authoring/lib/operations/azureAccounts.ts @@ -27,27 +27,47 @@ export class AzureAccounts { } /** - * Assigns an azure account to the application. - * @summary apps - Assign a LUIS azure account to an application + * Assigns an Azure account to the application. + * @summary apps - Assign a LUIS Azure account to an application + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param [options] The optional parameters * @returns Promise */ - assignToApp(appId: string, options?: Models.AzureAccountsAssignToAppOptionalParams): Promise; + assignToApp(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, options?: Models.AzureAccountsAssignToAppOptionalParams): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param callback The callback */ - assignToApp(appId: string, callback: msRest.ServiceCallback): void; + assignToApp(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @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 { + assignToApp(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, options: Models.AzureAccountsAssignToAppOptionalParams, callback: msRest.ServiceCallback): void; + assignToApp(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, options?: Models.AzureAccountsAssignToAppOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, options }, @@ -56,27 +76,47 @@ export class AzureAccounts { } /** - * 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 + * 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 azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param [options] The optional parameters * @returns Promise */ - getAssigned(appId: string, options?: msRest.RequestOptionsBase): Promise; + getAssigned(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param callback The callback */ - getAssigned(appId: string, callback: msRest.ServiceCallback): void; + getAssigned(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @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(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getAssigned(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, options }, @@ -85,27 +125,47 @@ export class AzureAccounts { } /** - * Removes assigned azure account from the application. - * @summary apps - Removes an assigned LUIS azure account from an application + * Removes assigned Azure account from the application. + * @summary apps - Removes an assigned LUIS Azure account from an application + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param [options] The optional parameters * @returns Promise */ - removeFromApp(appId: string, options?: Models.AzureAccountsRemoveFromAppOptionalParams): Promise; + removeFromApp(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, options?: Models.AzureAccountsRemoveFromAppOptionalParams): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param callback The callback */ - removeFromApp(appId: string, callback: msRest.ServiceCallback): void; + removeFromApp(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @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 { + removeFromApp(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, options: Models.AzureAccountsRemoveFromAppOptionalParams, callback: msRest.ServiceCallback): void; + removeFromApp(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, options?: Models.AzureAccountsRemoveFromAppOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, options }, @@ -114,28 +174,48 @@ export class AzureAccounts { } /** - * Gets the LUIS azure accounts for the user using his ARM token. - * @summary user - Get LUIS azure accounts + * Gets the LUIS Azure accounts for the user using his ARM token. + * @summary user - Get LUIS Azure accounts + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - getUserLUISAccounts(options?: msRest.RequestOptionsBase): Promise; + listUserLUISAccounts(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param callback The callback */ - getUserLUISAccounts(callback: msRest.ServiceCallback): void; + listUserLUISAccounts(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @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 { + listUserLUISAccounts(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listUserLUISAccounts(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, options }, - getUserLUISAccountsOperationSpec, - callback) as Promise; + listUserLUISAccountsOperationSpec, + callback) as Promise; } } @@ -145,7 +225,8 @@ const assignToAppOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "apps/{appId}/azureaccounts", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId ], requestBody: { @@ -170,7 +251,8 @@ const getAssignedOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/{appId}/azureaccounts", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId ], responses: { @@ -199,7 +281,8 @@ const removeFromAppOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", path: "apps/{appId}/azureaccounts", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId ], requestBody: { @@ -220,11 +303,12 @@ const removeFromAppOperationSpec: msRest.OperationSpec = { serializer }; -const getUserLUISAccountsOperationSpec: msRest.OperationSpec = { +const listUserLUISAccountsOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "azureaccounts", urlParameters: [ - Parameters.endpoint + Parameters.azureRegion, + Parameters.azureCloud ], responses: { 200: { diff --git a/packages/@azure/cognitiveservices-luis-authoring/lib/operations/examples.ts b/packages/@azure/cognitiveservices-luis-authoring/lib/operations/examples.ts index dd71b1613d47..c4e33fcbb168 100644 --- a/packages/@azure/cognitiveservices-luis-authoring/lib/operations/examples.ts +++ b/packages/@azure/cognitiveservices-luis-authoring/lib/operations/examples.ts @@ -27,32 +27,52 @@ export class Examples { } /** - * Adds a labeled example to the application. + * Adds a labeled example utterance in a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. - * @param exampleLabelObject An example label with the expected intent and entities. + * @param exampleLabelObject A labeled example utterance with the expected intent and entities. * @param [options] The optional parameters * @returns Promise */ - add(appId: string, versionId: string, exampleLabelObject: Models.ExampleLabelObject, options?: msRest.RequestOptionsBase): Promise; + add(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, exampleLabelObject: Models.ExampleLabelObject, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. - * @param exampleLabelObject An example label with the expected intent and entities. + * @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(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, exampleLabelObject: Models.ExampleLabelObject, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. - * @param exampleLabelObject An example label with the expected intent and entities. + * @param exampleLabelObject A labeled example utterance with the expected intent and entities. * @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(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, exampleLabelObject: Models.ExampleLabelObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + add(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, exampleLabelObject: Models.ExampleLabelObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, exampleLabelObject, @@ -63,32 +83,52 @@ export class Examples { } /** - * Adds a batch of labeled examples to the application. + * Adds a batch of labeled example utterances to a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. - * @param exampleLabelObjectArray Array of examples. + * @param exampleLabelObjectArray Array of example utterances. * @param [options] The optional parameters * @returns Promise */ - batch(appId: string, versionId: string, exampleLabelObjectArray: Models.ExampleLabelObject[], options?: msRest.RequestOptionsBase): Promise; + batch(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, exampleLabelObjectArray: Models.ExampleLabelObject[], options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. - * @param exampleLabelObjectArray Array of examples. + * @param exampleLabelObjectArray Array of example utterances. * @param callback The callback */ - batch(appId: string, versionId: string, exampleLabelObjectArray: Models.ExampleLabelObject[], callback: msRest.ServiceCallback): void; + batch(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, exampleLabelObjectArray: Models.ExampleLabelObject[], callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. - * @param exampleLabelObjectArray Array of examples. + * @param exampleLabelObjectArray Array of example utterances. * @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(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, exampleLabelObjectArray: Models.ExampleLabelObject[], options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + batch(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, exampleLabelObjectArray: Models.ExampleLabelObject[], options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, exampleLabelObjectArray, @@ -99,29 +139,49 @@ export class Examples { } /** - * Returns examples to be reviewed. + * Returns example utterances to be reviewed from a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param [options] The optional parameters * @returns Promise */ - list(appId: string, versionId: string, options?: Models.ExamplesListOptionalParams): Promise; + list(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, options?: Models.ExamplesListOptionalParams): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param callback The callback */ - list(appId: string, versionId: string, callback: msRest.ServiceCallback): void; + list(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @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(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, options: Models.ExamplesListOptionalParams, callback: msRest.ServiceCallback): void; + list(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, options?: Models.ExamplesListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, options @@ -131,32 +191,52 @@ export class Examples { } /** - * Deletes the labeled example with the specified ID. + * Deletes the labeled example utterances with the specified ID from a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param exampleId The example ID. * @param [options] The optional parameters * @returns Promise */ - deleteMethod(appId: string, versionId: string, exampleId: number, options?: msRest.RequestOptionsBase): Promise; + deleteMethod(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, exampleId: number, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @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(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, exampleId: number, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param exampleId The example ID. * @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(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, exampleId: number, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, exampleId: number, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, exampleId, @@ -173,7 +253,8 @@ const addOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "apps/{appId}/versions/{versionId}/example", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0 ], @@ -199,7 +280,8 @@ const batchOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "apps/{appId}/versions/{versionId}/examples", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0 ], @@ -259,7 +341,8 @@ const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/{appId}/versions/{versionId}/examples", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0 ], @@ -293,7 +376,8 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", path: "apps/{appId}/versions/{versionId}/examples/{exampleId}", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.exampleId diff --git a/packages/@azure/cognitiveservices-luis-authoring/lib/operations/features.ts b/packages/@azure/cognitiveservices-luis-authoring/lib/operations/features.ts index 497d5c33c056..9a0838eda8f6 100644 --- a/packages/@azure/cognitiveservices-luis-authoring/lib/operations/features.ts +++ b/packages/@azure/cognitiveservices-luis-authoring/lib/operations/features.ts @@ -27,7 +27,68 @@ export class Features { } /** - * Creates a new phraselist feature. + * [DEPRECATED NOTICE: This operation will soon be removed] Gets all the pattern features. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' + * @param appId The application ID. + * @param versionId The version ID. + * @param [options] The optional parameters + * @deprecated This operation is deprecated. Please do not use it any longer. + * @returns Promise + */ + listApplicationVersionPatternFeatures(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, options?: Models.FeaturesListApplicationVersionPatternFeaturesOptionalParams): Promise; + /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' + * @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(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, callback: msRest.ServiceCallback): void; + /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' + * @param appId The application ID. + * @param versionId The version ID. + * @param options The optional parameters + * @param callback The callback + * @deprecated This operation is deprecated. Please do not use it any longer. + */ + listApplicationVersionPatternFeatures(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, options: Models.FeaturesListApplicationVersionPatternFeaturesOptionalParams, callback: msRest.ServiceCallback): void; + listApplicationVersionPatternFeatures(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, options?: Models.FeaturesListApplicationVersionPatternFeaturesOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + azureRegion, + azureCloud, + appId, + versionId, + options + }, + listApplicationVersionPatternFeaturesOperationSpec, + callback) as Promise; + } + + /** + * Creates a new phraselist feature in a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param phraselistCreateObject A Phraselist object containing Name, comma-separated Phrases and @@ -35,16 +96,28 @@ export class Features { * @param [options] The optional parameters * @returns Promise */ - addPhraseList(appId: string, versionId: string, phraselistCreateObject: Models.PhraselistCreateObject, options?: msRest.RequestOptionsBase): Promise; + addPhraseList(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, phraselistCreateObject: Models.PhraselistCreateObject, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param phraselistCreateObject A Phraselist object containing Name, comma-separated Phrases and * 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(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, phraselistCreateObject: Models.PhraselistCreateObject, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param phraselistCreateObject A Phraselist object containing Name, comma-separated Phrases and @@ -52,10 +125,12 @@ 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(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, phraselistCreateObject: Models.PhraselistCreateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + addPhraseList(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, phraselistCreateObject: Models.PhraselistCreateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, phraselistCreateObject, @@ -66,29 +141,49 @@ export class Features { } /** - * Gets all the phraselist features. + * Gets all the phraselist features in a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param [options] The optional parameters * @returns Promise */ - listPhraseLists(appId: string, versionId: string, options?: Models.FeaturesListPhraseListsOptionalParams): Promise; + listPhraseLists(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, options?: Models.FeaturesListPhraseListsOptionalParams): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param callback The callback */ - listPhraseLists(appId: string, versionId: string, callback: msRest.ServiceCallback): void; + listPhraseLists(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @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(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, options: Models.FeaturesListPhraseListsOptionalParams, callback: msRest.ServiceCallback): void; + listPhraseLists(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, options?: Models.FeaturesListPhraseListsOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, options @@ -98,29 +193,49 @@ export class Features { } /** - * Gets all the extraction features for the specified application version. + * Gets all the extraction phraselist and pattern features in a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param [options] The optional parameters * @returns Promise */ - list(appId: string, versionId: string, options?: Models.FeaturesListOptionalParams): Promise; + list(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, options?: Models.FeaturesListOptionalParams): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param callback The callback */ - list(appId: string, versionId: string, callback: msRest.ServiceCallback): void; + list(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @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(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, options: Models.FeaturesListOptionalParams, callback: msRest.ServiceCallback): void; + list(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, options?: Models.FeaturesListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, options @@ -130,32 +245,52 @@ export class Features { } /** - * Gets phraselist feature info. + * Gets phraselist feature info in a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param phraselistId The ID of the feature to be retrieved. * @param [options] The optional parameters * @returns Promise */ - getPhraseList(appId: string, versionId: string, phraselistId: number, options?: msRest.RequestOptionsBase): Promise; + getPhraseList(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, phraselistId: number, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @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(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, phraselistId: number, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param phraselistId The ID of the feature to be retrieved. * @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(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, phraselistId: number, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getPhraseList(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, phraselistId: number, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, phraselistId, @@ -166,32 +301,53 @@ export class Features { } /** - * Updates the phrases, the state and the name of the phraselist feature. + * Updates the phrases, the state and the name of the phraselist feature in a version of the + * application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param phraselistId The ID of the feature to be updated. * @param [options] The optional parameters * @returns Promise */ - updatePhraseList(appId: string, versionId: string, phraselistId: number, options?: Models.FeaturesUpdatePhraseListOptionalParams): Promise; + updatePhraseList(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, phraselistId: number, options?: Models.FeaturesUpdatePhraseListOptionalParams): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @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(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, phraselistId: number, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param phraselistId The ID of the feature to be updated. * @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(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, phraselistId: number, options: Models.FeaturesUpdatePhraseListOptionalParams, callback: msRest.ServiceCallback): void; + updatePhraseList(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, phraselistId: number, options?: Models.FeaturesUpdatePhraseListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, phraselistId, @@ -202,32 +358,52 @@ export class Features { } /** - * Deletes a phraselist feature. + * Deletes a phraselist feature from a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param phraselistId The ID of the feature to be deleted. * @param [options] The optional parameters * @returns Promise */ - deletePhraseList(appId: string, versionId: string, phraselistId: number, options?: msRest.RequestOptionsBase): Promise; + deletePhraseList(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, phraselistId: number, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @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(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, phraselistId: number, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param phraselistId The ID of the feature to be deleted. * @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(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, phraselistId: number, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deletePhraseList(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, phraselistId: number, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, phraselistId, @@ -240,11 +416,47 @@ export class Features { // Operation Specifications const serializer = new msRest.Serializer(Mappers); +const listApplicationVersionPatternFeaturesOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "apps/{appId}/versions/{versionId}/patterns", + urlParameters: [ + Parameters.azureRegion, + Parameters.azureCloud, + Parameters.appId, + Parameters.versionId0 + ], + queryParameters: [ + Parameters.skip, + Parameters.take + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PatternFeatureInfo" + } + } + } + } + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + const addPhraseListOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "apps/{appId}/versions/{versionId}/phraselists", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0 ], @@ -275,7 +487,8 @@ const listPhraseListsOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/{appId}/versions/{versionId}/phraselists", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0 ], @@ -309,7 +522,8 @@ const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/{appId}/versions/{versionId}/features", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0 ], @@ -332,7 +546,8 @@ const getPhraseListOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/{appId}/versions/{versionId}/phraselists/{phraselistId}", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.phraselistId @@ -352,7 +567,8 @@ const updatePhraseListOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", path: "apps/{appId}/versions/{versionId}/phraselists/{phraselistId}", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.phraselistId @@ -379,7 +595,8 @@ const deletePhraseListOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", path: "apps/{appId}/versions/{versionId}/phraselists/{phraselistId}", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.phraselistId diff --git a/packages/@azure/cognitiveservices-luis-authoring/lib/operations/model.ts b/packages/@azure/cognitiveservices-luis-authoring/lib/operations/model.ts index 4fdd8b4632f7..9ae971ecc1be 100644 --- a/packages/@azure/cognitiveservices-luis-authoring/lib/operations/model.ts +++ b/packages/@azure/cognitiveservices-luis-authoring/lib/operations/model.ts @@ -27,32 +27,52 @@ export class Model { } /** - * Adds an intent classifier to the application. + * Adds an intent to a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. - * @param intentCreateObject A model object containing the name of the new intent classifier. + * @param intentCreateObject A model object containing the name of the new intent. * @param [options] The optional parameters * @returns Promise */ - addIntent(appId: string, versionId: string, intentCreateObject: Models.ModelCreateObject, options?: msRest.RequestOptionsBase): Promise; + addIntent(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, intentCreateObject: Models.ModelCreateObject, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. - * @param intentCreateObject A model object containing the name of the new intent classifier. + * @param intentCreateObject A model object containing the name of the new intent. * @param callback The callback */ - addIntent(appId: string, versionId: string, intentCreateObject: Models.ModelCreateObject, callback: msRest.ServiceCallback): void; + addIntent(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, intentCreateObject: Models.ModelCreateObject, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. - * @param intentCreateObject A model object containing the name of the new intent classifier. + * @param intentCreateObject A model object containing the name of the new intent. * @param options The optional parameters * @param callback The callback */ - addIntent(appId: string, versionId: string, intentCreateObject: Models.ModelCreateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - addIntent(appId: string, versionId: string, intentCreateObject: Models.ModelCreateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + addIntent(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, intentCreateObject: Models.ModelCreateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + addIntent(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, intentCreateObject: Models.ModelCreateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, intentCreateObject, @@ -63,29 +83,49 @@ export class Model { } /** - * Gets information about the intent models. + * Gets information about the intent models in a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param [options] The optional parameters * @returns Promise */ - listIntents(appId: string, versionId: string, options?: Models.ModelListIntentsOptionalParams): Promise; + listIntents(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, options?: Models.ModelListIntentsOptionalParams): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param callback The callback */ - listIntents(appId: string, versionId: string, callback: msRest.ServiceCallback): void; + listIntents(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param options The optional parameters * @param callback The callback */ - listIntents(appId: string, versionId: string, options: Models.ModelListIntentsOptionalParams, callback: msRest.ServiceCallback): void; - listIntents(appId: string, versionId: string, options?: Models.ModelListIntentsOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listIntents(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, options: Models.ModelListIntentsOptionalParams, callback: msRest.ServiceCallback): void; + listIntents(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, options?: Models.ModelListIntentsOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, options @@ -95,32 +135,52 @@ export class Model { } /** - * Adds an entity extractor to the application. + * Adds a simple entity extractor to a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. - * @param modelCreateObject A model object containing the name for the new entity extractor. + * @param modelCreateObject A model object containing the name for the new simple entity extractor. * @param [options] The optional parameters * @returns Promise */ - addEntity(appId: string, versionId: string, modelCreateObject: Models.ModelCreateObject, options?: msRest.RequestOptionsBase): Promise; + addEntity(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, modelCreateObject: Models.ModelCreateObject, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. - * @param modelCreateObject A model object containing the name for the new entity extractor. + * @param modelCreateObject A model object containing the name for the new simple entity extractor. * @param callback The callback */ - addEntity(appId: string, versionId: string, modelCreateObject: Models.ModelCreateObject, callback: msRest.ServiceCallback): void; + addEntity(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, modelCreateObject: Models.ModelCreateObject, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. - * @param modelCreateObject A model object containing the name for the new entity extractor. + * @param modelCreateObject A model object containing the name for the new simple entity extractor. * @param options The optional parameters * @param callback The callback */ - addEntity(appId: string, versionId: string, modelCreateObject: Models.ModelCreateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - addEntity(appId: string, versionId: string, modelCreateObject: Models.ModelCreateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + addEntity(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, modelCreateObject: Models.ModelCreateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + addEntity(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, modelCreateObject: Models.ModelCreateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, modelCreateObject, @@ -131,29 +191,49 @@ export class Model { } /** - * Gets information about the entity models. + * Gets information about all the simple entity models in a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param [options] The optional parameters * @returns Promise */ - listEntities(appId: string, versionId: string, options?: Models.ModelListEntitiesOptionalParams): Promise; + listEntities(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, options?: Models.ModelListEntitiesOptionalParams): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param callback The callback */ - listEntities(appId: string, versionId: string, callback: msRest.ServiceCallback): void; + listEntities(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param options The optional parameters * @param callback The callback */ - listEntities(appId: string, versionId: string, options: Models.ModelListEntitiesOptionalParams, callback: msRest.ServiceCallback): void; - listEntities(appId: string, versionId: string, options?: Models.ModelListEntitiesOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listEntities(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, options: Models.ModelListEntitiesOptionalParams, callback: msRest.ServiceCallback): void; + listEntities(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, options?: Models.ModelListEntitiesOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, options @@ -163,7 +243,13 @@ export class Model { } /** - * Adds a hierarchical entity extractor to the application version. + * Adds a hierarchical entity extractor to a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param hierarchicalModelCreateObject A model containing the name and children of the new entity @@ -171,16 +257,28 @@ export class Model { * @param [options] The optional parameters * @returns Promise */ - addHierarchicalEntity(appId: string, versionId: string, hierarchicalModelCreateObject: Models.HierarchicalEntityModel, options?: msRest.RequestOptionsBase): Promise; + addHierarchicalEntity(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, hierarchicalModelCreateObject: Models.HierarchicalEntityModel, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param hierarchicalModelCreateObject A model containing the name and children of the new entity * extractor. * @param callback The callback */ - addHierarchicalEntity(appId: string, versionId: string, hierarchicalModelCreateObject: Models.HierarchicalEntityModel, callback: msRest.ServiceCallback): void; + addHierarchicalEntity(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, hierarchicalModelCreateObject: Models.HierarchicalEntityModel, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param hierarchicalModelCreateObject A model containing the name and children of the new entity @@ -188,10 +286,12 @@ export class Model { * @param options The optional parameters * @param callback The callback */ - addHierarchicalEntity(appId: string, versionId: string, hierarchicalModelCreateObject: Models.HierarchicalEntityModel, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - addHierarchicalEntity(appId: string, versionId: string, hierarchicalModelCreateObject: Models.HierarchicalEntityModel, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + addHierarchicalEntity(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, hierarchicalModelCreateObject: Models.HierarchicalEntityModel, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + addHierarchicalEntity(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, hierarchicalModelCreateObject: Models.HierarchicalEntityModel, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, hierarchicalModelCreateObject, @@ -202,29 +302,49 @@ export class Model { } /** - * Gets information about the hierarchical entity models. + * Gets information about all the hierarchical entity models in a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param [options] The optional parameters * @returns Promise */ - listHierarchicalEntities(appId: string, versionId: string, options?: Models.ModelListHierarchicalEntitiesOptionalParams): Promise; + listHierarchicalEntities(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, options?: Models.ModelListHierarchicalEntitiesOptionalParams): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param callback The callback */ - listHierarchicalEntities(appId: string, versionId: string, callback: msRest.ServiceCallback): void; + listHierarchicalEntities(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param options The optional parameters * @param callback The callback */ - listHierarchicalEntities(appId: string, versionId: string, options: Models.ModelListHierarchicalEntitiesOptionalParams, callback: msRest.ServiceCallback): void; - listHierarchicalEntities(appId: string, versionId: string, options?: Models.ModelListHierarchicalEntitiesOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listHierarchicalEntities(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, options: Models.ModelListHierarchicalEntitiesOptionalParams, callback: msRest.ServiceCallback): void; + listHierarchicalEntities(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, options?: Models.ModelListHierarchicalEntitiesOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, options @@ -234,7 +354,13 @@ export class Model { } /** - * Adds a composite entity extractor to the application. + * Adds a composite entity extractor to a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param compositeModelCreateObject A model containing the name and children of the new entity @@ -242,16 +368,28 @@ export class Model { * @param [options] The optional parameters * @returns Promise */ - addCompositeEntity(appId: string, versionId: string, compositeModelCreateObject: Models.CompositeEntityModel, options?: msRest.RequestOptionsBase): Promise; + addCompositeEntity(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, compositeModelCreateObject: Models.CompositeEntityModel, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param compositeModelCreateObject A model containing the name and children of the new entity * extractor. * @param callback The callback */ - addCompositeEntity(appId: string, versionId: string, compositeModelCreateObject: Models.CompositeEntityModel, callback: msRest.ServiceCallback): void; + addCompositeEntity(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, compositeModelCreateObject: Models.CompositeEntityModel, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param compositeModelCreateObject A model containing the name and children of the new entity @@ -259,10 +397,12 @@ export class Model { * @param options The optional parameters * @param callback The callback */ - addCompositeEntity(appId: string, versionId: string, compositeModelCreateObject: Models.CompositeEntityModel, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - addCompositeEntity(appId: string, versionId: string, compositeModelCreateObject: Models.CompositeEntityModel, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + addCompositeEntity(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, compositeModelCreateObject: Models.CompositeEntityModel, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + addCompositeEntity(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, compositeModelCreateObject: Models.CompositeEntityModel, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, compositeModelCreateObject, @@ -273,29 +413,49 @@ export class Model { } /** - * Gets information about the composite entity models. + * Gets information about all the composite entity models in a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param [options] The optional parameters * @returns Promise */ - listCompositeEntities(appId: string, versionId: string, options?: Models.ModelListCompositeEntitiesOptionalParams): Promise; + listCompositeEntities(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, options?: Models.ModelListCompositeEntitiesOptionalParams): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param callback The callback */ - listCompositeEntities(appId: string, versionId: string, callback: msRest.ServiceCallback): void; + listCompositeEntities(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param options The optional parameters * @param callback The callback */ - listCompositeEntities(appId: string, versionId: string, options: Models.ModelListCompositeEntitiesOptionalParams, callback: msRest.ServiceCallback): void; - listCompositeEntities(appId: string, versionId: string, options?: Models.ModelListCompositeEntitiesOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listCompositeEntities(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, options: Models.ModelListCompositeEntitiesOptionalParams, callback: msRest.ServiceCallback): void; + listCompositeEntities(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, options?: Models.ModelListCompositeEntitiesOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, options @@ -305,29 +465,49 @@ export class Model { } /** - * Gets information about the closedlist models. + * Gets information about all the list entity models in a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param [options] The optional parameters * @returns Promise */ - listClosedLists(appId: string, versionId: string, options?: Models.ModelListClosedListsOptionalParams): Promise; + listClosedLists(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, options?: Models.ModelListClosedListsOptionalParams): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param callback The callback */ - listClosedLists(appId: string, versionId: string, callback: msRest.ServiceCallback): void; + listClosedLists(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param options The optional parameters * @param callback The callback */ - listClosedLists(appId: string, versionId: string, options: Models.ModelListClosedListsOptionalParams, callback: msRest.ServiceCallback): void; - listClosedLists(appId: string, versionId: string, options?: Models.ModelListClosedListsOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listClosedLists(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, options: Models.ModelListClosedListsOptionalParams, callback: msRest.ServiceCallback): void; + listClosedLists(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, options?: Models.ModelListClosedListsOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, options @@ -337,35 +517,55 @@ export class Model { } /** - * Adds a closed list model to the application. + * Adds a list entity model to a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. - * @param closedListModelCreateObject A model containing the name and words for the new closed list - * entity extractor. + * @param closedListModelCreateObject A model containing the name and words for the new list entity + * extractor. * @param [options] The optional parameters * @returns Promise */ - addClosedList(appId: string, versionId: string, closedListModelCreateObject: Models.ClosedListModelCreateObject, options?: msRest.RequestOptionsBase): Promise; + addClosedList(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, closedListModelCreateObject: Models.ClosedListModelCreateObject, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. - * @param closedListModelCreateObject A model containing the name and words for the new closed list - * entity extractor. + * @param closedListModelCreateObject A model containing the name and words for the new list entity + * extractor. * @param callback The callback */ - addClosedList(appId: string, versionId: string, closedListModelCreateObject: Models.ClosedListModelCreateObject, callback: msRest.ServiceCallback): void; + addClosedList(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, closedListModelCreateObject: Models.ClosedListModelCreateObject, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. - * @param closedListModelCreateObject A model containing the name and words for the new closed list - * entity extractor. + * @param closedListModelCreateObject A model containing the name and words for the new list entity + * extractor. * @param options The optional parameters * @param callback The callback */ - addClosedList(appId: string, versionId: string, closedListModelCreateObject: Models.ClosedListModelCreateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - addClosedList(appId: string, versionId: string, closedListModelCreateObject: Models.ClosedListModelCreateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + addClosedList(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, closedListModelCreateObject: Models.ClosedListModelCreateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + addClosedList(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, closedListModelCreateObject: Models.ClosedListModelCreateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, closedListModelCreateObject, @@ -376,32 +576,52 @@ export class Model { } /** - * Adds a list of prebuilt entity extractors to the application. + * Adds a list of prebuilt entities to a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param prebuiltExtractorNames An array of prebuilt entity extractor names. * @param [options] The optional parameters * @returns Promise */ - addPrebuilt(appId: string, versionId: string, prebuiltExtractorNames: string[], options?: msRest.RequestOptionsBase): Promise; + addPrebuilt(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, prebuiltExtractorNames: string[], options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param prebuiltExtractorNames An array of prebuilt entity extractor names. * @param callback The callback */ - addPrebuilt(appId: string, versionId: string, prebuiltExtractorNames: string[], callback: msRest.ServiceCallback): void; + addPrebuilt(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, prebuiltExtractorNames: string[], callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param prebuiltExtractorNames An array of prebuilt entity extractor names. * @param options The optional parameters * @param callback The callback */ - addPrebuilt(appId: string, versionId: string, prebuiltExtractorNames: string[], options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - addPrebuilt(appId: string, versionId: string, prebuiltExtractorNames: string[], options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + addPrebuilt(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, prebuiltExtractorNames: string[], options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + addPrebuilt(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, prebuiltExtractorNames: string[], options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, prebuiltExtractorNames, @@ -412,29 +632,49 @@ export class Model { } /** - * Gets information about the prebuilt entity models. + * Gets information about all the prebuilt entities in a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param [options] The optional parameters * @returns Promise */ - listPrebuilts(appId: string, versionId: string, options?: Models.ModelListPrebuiltsOptionalParams): Promise; + listPrebuilts(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, options?: Models.ModelListPrebuiltsOptionalParams): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param callback The callback */ - listPrebuilts(appId: string, versionId: string, callback: msRest.ServiceCallback): void; + listPrebuilts(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param options The optional parameters * @param callback The callback */ - listPrebuilts(appId: string, versionId: string, options: Models.ModelListPrebuiltsOptionalParams, callback: msRest.ServiceCallback): void; - listPrebuilts(appId: string, versionId: string, options?: Models.ModelListPrebuiltsOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listPrebuilts(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, options: Models.ModelListPrebuiltsOptionalParams, callback: msRest.ServiceCallback): void; + listPrebuilts(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, options?: Models.ModelListPrebuiltsOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, options @@ -444,29 +684,49 @@ export class Model { } /** - * Gets all the available prebuilt entity extractors for the application. + * Gets all the available prebuilt entities in a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param [options] The optional parameters * @returns Promise */ - listPrebuiltEntities(appId: string, versionId: string, options?: msRest.RequestOptionsBase): Promise; + listPrebuiltEntities(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param callback The callback */ - listPrebuiltEntities(appId: string, versionId: string, callback: msRest.ServiceCallback): void; + listPrebuiltEntities(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param options The optional parameters * @param callback The callback */ - listPrebuiltEntities(appId: string, versionId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listPrebuiltEntities(appId: string, versionId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listPrebuiltEntities(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listPrebuiltEntities(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, options @@ -476,29 +736,49 @@ export class Model { } /** - * Gets information about the application version models. + * Gets information about all the intent and entity models in a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param [options] The optional parameters * @returns Promise */ - listModels(appId: string, versionId: string, options?: Models.ModelListModelsOptionalParams): Promise; + listModels(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, options?: Models.ModelListModelsOptionalParams): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param callback The callback */ - listModels(appId: string, versionId: string, callback: msRest.ServiceCallback): void; + listModels(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param options The optional parameters * @param callback The callback */ - listModels(appId: string, versionId: string, options: Models.ModelListModelsOptionalParams, callback: msRest.ServiceCallback): void; - listModels(appId: string, versionId: string, options?: Models.ModelListModelsOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listModels(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, options: Models.ModelListModelsOptionalParams, callback: msRest.ServiceCallback): void; + listModels(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, options?: Models.ModelListModelsOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, options @@ -508,32 +788,53 @@ export class Model { } /** - * Gets the utterances for the given model in the given app version. + * Gets the example utterances for the given intent or entity model in a version of the + * application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param modelId The ID (GUID) of the model. * @param [options] The optional parameters * @returns Promise */ - examplesMethod(appId: string, versionId: string, modelId: string, options?: Models.ModelExamplesMethodOptionalParams): Promise; + examplesMethod(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, modelId: string, options?: Models.ModelExamplesMethodOptionalParams): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param modelId The ID (GUID) of the model. * @param callback The callback */ - examplesMethod(appId: string, versionId: string, modelId: string, callback: msRest.ServiceCallback): void; + examplesMethod(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, modelId: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param modelId The ID (GUID) of the model. * @param options The optional parameters * @param callback The callback */ - examplesMethod(appId: string, versionId: string, modelId: string, options: Models.ModelExamplesMethodOptionalParams, callback: msRest.ServiceCallback): void; - examplesMethod(appId: string, versionId: string, modelId: string, options?: Models.ModelExamplesMethodOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + examplesMethod(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, modelId: string, options: Models.ModelExamplesMethodOptionalParams, callback: msRest.ServiceCallback): void; + examplesMethod(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, modelId: string, options?: Models.ModelExamplesMethodOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, modelId, @@ -544,32 +845,52 @@ export class Model { } /** - * Gets information about the intent model. + * Gets information about the intent model in a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param intentId The intent classifier ID. * @param [options] The optional parameters * @returns Promise */ - getIntent(appId: string, versionId: string, intentId: string, options?: msRest.RequestOptionsBase): Promise; + getIntent(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, intentId: string, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param intentId The intent classifier ID. * @param callback The callback */ - getIntent(appId: string, versionId: string, intentId: string, callback: msRest.ServiceCallback): void; + getIntent(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, intentId: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param intentId The intent classifier ID. * @param options The optional parameters * @param callback The callback */ - getIntent(appId: string, versionId: string, intentId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getIntent(appId: string, versionId: string, intentId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + getIntent(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, intentId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getIntent(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, intentId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, intentId, @@ -580,35 +901,55 @@ export class Model { } /** - * Updates the name of an intent classifier. + * Updates the name of an intent in a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param intentId The intent classifier ID. - * @param modelUpdateObject A model object containing the new intent classifier name. + * @param modelUpdateObject A model object containing the new intent name. * @param [options] The optional parameters * @returns Promise */ - updateIntent(appId: string, versionId: string, intentId: string, modelUpdateObject: Models.ModelUpdateObject, options?: msRest.RequestOptionsBase): Promise; + updateIntent(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, intentId: string, modelUpdateObject: Models.ModelUpdateObject, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param intentId The intent classifier ID. - * @param modelUpdateObject A model object containing the new intent classifier name. + * @param modelUpdateObject A model object containing the new intent name. * @param callback The callback */ - updateIntent(appId: string, versionId: string, intentId: string, modelUpdateObject: Models.ModelUpdateObject, callback: msRest.ServiceCallback): void; + updateIntent(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, intentId: string, modelUpdateObject: Models.ModelUpdateObject, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param intentId The intent classifier ID. - * @param modelUpdateObject A model object containing the new intent classifier name. + * @param modelUpdateObject A model object containing the new intent name. * @param options The optional parameters * @param callback The callback */ - updateIntent(appId: string, versionId: string, intentId: string, modelUpdateObject: Models.ModelUpdateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - updateIntent(appId: string, versionId: string, intentId: string, modelUpdateObject: Models.ModelUpdateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + updateIntent(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, intentId: string, modelUpdateObject: Models.ModelUpdateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updateIntent(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, intentId: string, modelUpdateObject: Models.ModelUpdateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, intentId, @@ -620,32 +961,52 @@ export class Model { } /** - * Deletes an intent classifier from the application. + * Deletes an intent from a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param intentId The intent classifier ID. * @param [options] The optional parameters * @returns Promise */ - deleteIntent(appId: string, versionId: string, intentId: string, options?: Models.ModelDeleteIntentOptionalParams): Promise; + deleteIntent(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, intentId: string, options?: Models.ModelDeleteIntentOptionalParams): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param intentId The intent classifier ID. * @param callback The callback */ - deleteIntent(appId: string, versionId: string, intentId: string, callback: msRest.ServiceCallback): void; + deleteIntent(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, intentId: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param intentId The intent classifier ID. * @param options The optional parameters * @param callback The callback */ - deleteIntent(appId: string, versionId: string, intentId: string, options: Models.ModelDeleteIntentOptionalParams, callback: msRest.ServiceCallback): void; - deleteIntent(appId: string, versionId: string, intentId: string, options?: Models.ModelDeleteIntentOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + deleteIntent(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, intentId: string, options: Models.ModelDeleteIntentOptionalParams, callback: msRest.ServiceCallback): void; + deleteIntent(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, intentId: string, options?: Models.ModelDeleteIntentOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, intentId, @@ -656,32 +1017,52 @@ export class Model { } /** - * Gets information about the entity model. + * Gets information about an entity model in a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The entity extractor ID. * @param [options] The optional parameters * @returns Promise */ - getEntity(appId: string, versionId: string, entityId: string, options?: msRest.RequestOptionsBase): Promise; + getEntity(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The entity extractor ID. * @param callback The callback */ - getEntity(appId: string, versionId: string, entityId: string, callback: msRest.ServiceCallback): void; + getEntity(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The entity extractor ID. * @param options The optional parameters * @param callback The callback */ - getEntity(appId: string, versionId: string, entityId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getEntity(appId: string, versionId: string, entityId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + getEntity(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getEntity(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, entityId, @@ -692,7 +1073,13 @@ export class Model { } /** - * Updates the name of an entity extractor. + * Updates the name of an entity in a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The entity extractor ID. @@ -700,16 +1087,28 @@ export class Model { * @param [options] The optional parameters * @returns Promise */ - updateEntity(appId: string, versionId: string, entityId: string, modelUpdateObject: Models.ModelUpdateObject, options?: msRest.RequestOptionsBase): Promise; + updateEntity(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, modelUpdateObject: Models.ModelUpdateObject, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The entity extractor ID. * @param modelUpdateObject A model object containing the new entity extractor name. * @param callback The callback */ - updateEntity(appId: string, versionId: string, entityId: string, modelUpdateObject: Models.ModelUpdateObject, callback: msRest.ServiceCallback): void; + updateEntity(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, modelUpdateObject: Models.ModelUpdateObject, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The entity extractor ID. @@ -717,10 +1116,12 @@ export class Model { * @param options The optional parameters * @param callback The callback */ - updateEntity(appId: string, versionId: string, entityId: string, modelUpdateObject: Models.ModelUpdateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - updateEntity(appId: string, versionId: string, entityId: string, modelUpdateObject: Models.ModelUpdateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + updateEntity(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, modelUpdateObject: Models.ModelUpdateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updateEntity(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, modelUpdateObject: Models.ModelUpdateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, entityId, @@ -732,32 +1133,52 @@ export class Model { } /** - * Deletes an entity extractor from the application. + * Deletes an entity from a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The entity extractor ID. * @param [options] The optional parameters * @returns Promise */ - deleteEntity(appId: string, versionId: string, entityId: string, options?: msRest.RequestOptionsBase): Promise; + deleteEntity(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The entity extractor ID. * @param callback The callback */ - deleteEntity(appId: string, versionId: string, entityId: string, callback: msRest.ServiceCallback): void; + deleteEntity(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The entity extractor ID. * @param options The optional parameters * @param callback The callback */ - deleteEntity(appId: string, versionId: string, entityId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteEntity(appId: string, versionId: string, entityId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + deleteEntity(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteEntity(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, entityId, @@ -768,32 +1189,52 @@ export class Model { } /** - * Gets information about the hierarchical entity model. + * Gets information about a hierarchical entity in a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param hEntityId The hierarchical entity extractor ID. * @param [options] The optional parameters * @returns Promise */ - getHierarchicalEntity(appId: string, versionId: string, hEntityId: string, options?: msRest.RequestOptionsBase): Promise; + getHierarchicalEntity(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, hEntityId: string, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param hEntityId The hierarchical entity extractor ID. * @param callback The callback */ - getHierarchicalEntity(appId: string, versionId: string, hEntityId: string, callback: msRest.ServiceCallback): void; + getHierarchicalEntity(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, hEntityId: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param hEntityId The hierarchical entity extractor ID. * @param options The optional parameters * @param callback The callback */ - getHierarchicalEntity(appId: string, versionId: string, hEntityId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getHierarchicalEntity(appId: string, versionId: string, hEntityId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + getHierarchicalEntity(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, hEntityId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getHierarchicalEntity(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, hEntityId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, hEntityId, @@ -804,7 +1245,13 @@ export class Model { } /** - * Updates the name and children of a hierarchical entity model. + * Updates the name and children of a hierarchical entity model in a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param hEntityId The hierarchical entity extractor ID. @@ -813,8 +1260,14 @@ export class Model { * @param [options] The optional parameters * @returns Promise */ - updateHierarchicalEntity(appId: string, versionId: string, hEntityId: string, hierarchicalModelUpdateObject: Models.HierarchicalEntityModel, options?: msRest.RequestOptionsBase): Promise; + updateHierarchicalEntity(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, hEntityId: string, hierarchicalModelUpdateObject: Models.HierarchicalEntityModel, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param hEntityId The hierarchical entity extractor ID. @@ -822,8 +1275,14 @@ export class Model { * entity. * @param callback The callback */ - updateHierarchicalEntity(appId: string, versionId: string, hEntityId: string, hierarchicalModelUpdateObject: Models.HierarchicalEntityModel, callback: msRest.ServiceCallback): void; + updateHierarchicalEntity(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, hEntityId: string, hierarchicalModelUpdateObject: Models.HierarchicalEntityModel, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param hEntityId The hierarchical entity extractor ID. @@ -832,10 +1291,12 @@ export class Model { * @param options The optional parameters * @param callback The callback */ - updateHierarchicalEntity(appId: string, versionId: string, hEntityId: string, hierarchicalModelUpdateObject: Models.HierarchicalEntityModel, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - updateHierarchicalEntity(appId: string, versionId: string, hEntityId: string, hierarchicalModelUpdateObject: Models.HierarchicalEntityModel, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + updateHierarchicalEntity(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, hEntityId: string, hierarchicalModelUpdateObject: Models.HierarchicalEntityModel, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updateHierarchicalEntity(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, hEntityId: string, hierarchicalModelUpdateObject: Models.HierarchicalEntityModel, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, hEntityId, @@ -847,32 +1308,52 @@ export class Model { } /** - * Deletes a hierarchical entity extractor from the application version. + * Deletes a hierarchical entity from a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param hEntityId The hierarchical entity extractor ID. * @param [options] The optional parameters * @returns Promise */ - deleteHierarchicalEntity(appId: string, versionId: string, hEntityId: string, options?: msRest.RequestOptionsBase): Promise; + deleteHierarchicalEntity(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, hEntityId: string, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param hEntityId The hierarchical entity extractor ID. * @param callback The callback */ - deleteHierarchicalEntity(appId: string, versionId: string, hEntityId: string, callback: msRest.ServiceCallback): void; + deleteHierarchicalEntity(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, hEntityId: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param hEntityId The hierarchical entity extractor ID. * @param options The optional parameters * @param callback The callback */ - deleteHierarchicalEntity(appId: string, versionId: string, hEntityId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteHierarchicalEntity(appId: string, versionId: string, hEntityId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + deleteHierarchicalEntity(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, hEntityId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteHierarchicalEntity(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, hEntityId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, hEntityId, @@ -883,32 +1364,52 @@ export class Model { } /** - * Gets information about the composite entity model. + * Gets information about a composite entity in a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param cEntityId The composite entity extractor ID. * @param [options] The optional parameters * @returns Promise */ - getCompositeEntity(appId: string, versionId: string, cEntityId: string, options?: msRest.RequestOptionsBase): Promise; + getCompositeEntity(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, cEntityId: string, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param cEntityId The composite entity extractor ID. * @param callback The callback */ - getCompositeEntity(appId: string, versionId: string, cEntityId: string, callback: msRest.ServiceCallback): void; + getCompositeEntity(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, cEntityId: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param cEntityId The composite entity extractor ID. * @param options The optional parameters * @param callback The callback */ - getCompositeEntity(appId: string, versionId: string, cEntityId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getCompositeEntity(appId: string, versionId: string, cEntityId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + getCompositeEntity(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, cEntityId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getCompositeEntity(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, cEntityId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, cEntityId, @@ -919,7 +1420,13 @@ export class Model { } /** - * Updates the composite entity extractor. + * Updates a composite entity in a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param cEntityId The composite entity extractor ID. @@ -928,8 +1435,14 @@ export class Model { * @param [options] The optional parameters * @returns Promise */ - updateCompositeEntity(appId: string, versionId: string, cEntityId: string, compositeModelUpdateObject: Models.CompositeEntityModel, options?: msRest.RequestOptionsBase): Promise; + updateCompositeEntity(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, cEntityId: string, compositeModelUpdateObject: Models.CompositeEntityModel, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param cEntityId The composite entity extractor ID. @@ -937,8 +1450,14 @@ export class Model { * children. * @param callback The callback */ - updateCompositeEntity(appId: string, versionId: string, cEntityId: string, compositeModelUpdateObject: Models.CompositeEntityModel, callback: msRest.ServiceCallback): void; + updateCompositeEntity(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, cEntityId: string, compositeModelUpdateObject: Models.CompositeEntityModel, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param cEntityId The composite entity extractor ID. @@ -947,10 +1466,12 @@ export class Model { * @param options The optional parameters * @param callback The callback */ - updateCompositeEntity(appId: string, versionId: string, cEntityId: string, compositeModelUpdateObject: Models.CompositeEntityModel, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - updateCompositeEntity(appId: string, versionId: string, cEntityId: string, compositeModelUpdateObject: Models.CompositeEntityModel, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + updateCompositeEntity(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, cEntityId: string, compositeModelUpdateObject: Models.CompositeEntityModel, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updateCompositeEntity(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, cEntityId: string, compositeModelUpdateObject: Models.CompositeEntityModel, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, cEntityId, @@ -962,32 +1483,52 @@ export class Model { } /** - * Deletes a composite entity extractor from the application. + * Deletes a composite entity from a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param cEntityId The composite entity extractor ID. * @param [options] The optional parameters * @returns Promise */ - deleteCompositeEntity(appId: string, versionId: string, cEntityId: string, options?: msRest.RequestOptionsBase): Promise; + deleteCompositeEntity(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, cEntityId: string, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param cEntityId The composite entity extractor ID. * @param callback The callback */ - deleteCompositeEntity(appId: string, versionId: string, cEntityId: string, callback: msRest.ServiceCallback): void; + deleteCompositeEntity(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, cEntityId: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param cEntityId The composite entity extractor ID. * @param options The optional parameters * @param callback The callback */ - deleteCompositeEntity(appId: string, versionId: string, cEntityId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteCompositeEntity(appId: string, versionId: string, cEntityId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + deleteCompositeEntity(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, cEntityId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteCompositeEntity(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, cEntityId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, cEntityId, @@ -998,32 +1539,52 @@ export class Model { } /** - * Gets information of a closed list model. + * Gets information about a list entity in a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. - * @param clEntityId The closed list model ID. + * @param clEntityId The list model ID. * @param [options] The optional parameters * @returns Promise */ - getClosedList(appId: string, versionId: string, clEntityId: string, options?: msRest.RequestOptionsBase): Promise; + getClosedList(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, clEntityId: string, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. - * @param clEntityId The closed list model ID. + * @param clEntityId The list model ID. * @param callback The callback */ - getClosedList(appId: string, versionId: string, clEntityId: string, callback: msRest.ServiceCallback): void; + getClosedList(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, clEntityId: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. - * @param clEntityId The closed list model ID. + * @param clEntityId The list model ID. * @param options The optional parameters * @param callback The callback */ - getClosedList(appId: string, versionId: string, clEntityId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getClosedList(appId: string, versionId: string, clEntityId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + getClosedList(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, clEntityId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getClosedList(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, clEntityId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, clEntityId, @@ -1034,35 +1595,55 @@ export class Model { } /** - * Updates the closed list model. + * Updates the list entity in a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. - * @param clEntityId The closed list model ID. - * @param closedListModelUpdateObject The new entity name and words list. + * @param clEntityId The list model ID. + * @param closedListModelUpdateObject The new list entity name and words list. * @param [options] The optional parameters * @returns Promise */ - updateClosedList(appId: string, versionId: string, clEntityId: string, closedListModelUpdateObject: Models.ClosedListModelUpdateObject, options?: msRest.RequestOptionsBase): Promise; + updateClosedList(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, clEntityId: string, closedListModelUpdateObject: Models.ClosedListModelUpdateObject, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. - * @param clEntityId The closed list model ID. - * @param closedListModelUpdateObject The new entity name and words list. + * @param clEntityId The list model ID. + * @param closedListModelUpdateObject The new list entity name and words list. * @param callback The callback */ - updateClosedList(appId: string, versionId: string, clEntityId: string, closedListModelUpdateObject: Models.ClosedListModelUpdateObject, callback: msRest.ServiceCallback): void; + updateClosedList(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, clEntityId: string, closedListModelUpdateObject: Models.ClosedListModelUpdateObject, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. - * @param clEntityId The closed list model ID. - * @param closedListModelUpdateObject The new entity name and words list. + * @param clEntityId The list model ID. + * @param closedListModelUpdateObject The new list entity name and words list. * @param options The optional parameters * @param callback The callback */ - updateClosedList(appId: string, versionId: string, clEntityId: string, closedListModelUpdateObject: Models.ClosedListModelUpdateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - updateClosedList(appId: string, versionId: string, clEntityId: string, closedListModelUpdateObject: Models.ClosedListModelUpdateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + updateClosedList(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, clEntityId: string, closedListModelUpdateObject: Models.ClosedListModelUpdateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updateClosedList(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, clEntityId: string, closedListModelUpdateObject: Models.ClosedListModelUpdateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, clEntityId, @@ -1074,35 +1655,55 @@ export class Model { } /** - * Adds a batch of sublists to an existing closedlist. + * Adds a batch of sublists to an existing list entity in a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. - * @param clEntityId The closed list model ID. + * @param clEntityId The list entity model ID. * @param closedListModelPatchObject A words list batch. * @param [options] The optional parameters * @returns Promise */ - patchClosedList(appId: string, versionId: string, clEntityId: string, closedListModelPatchObject: Models.ClosedListModelPatchObject, options?: msRest.RequestOptionsBase): Promise; + patchClosedList(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, clEntityId: string, closedListModelPatchObject: Models.ClosedListModelPatchObject, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. - * @param clEntityId The closed list model ID. + * @param clEntityId The list entity model ID. * @param closedListModelPatchObject A words list batch. * @param callback The callback */ - patchClosedList(appId: string, versionId: string, clEntityId: string, closedListModelPatchObject: Models.ClosedListModelPatchObject, callback: msRest.ServiceCallback): void; + patchClosedList(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, clEntityId: string, closedListModelPatchObject: Models.ClosedListModelPatchObject, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. - * @param clEntityId The closed list model ID. + * @param clEntityId The list entity model ID. * @param closedListModelPatchObject A words list batch. * @param options The optional parameters * @param callback The callback */ - patchClosedList(appId: string, versionId: string, clEntityId: string, closedListModelPatchObject: Models.ClosedListModelPatchObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - patchClosedList(appId: string, versionId: string, clEntityId: string, closedListModelPatchObject: Models.ClosedListModelPatchObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + patchClosedList(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, clEntityId: string, closedListModelPatchObject: Models.ClosedListModelPatchObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + patchClosedList(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, clEntityId: string, closedListModelPatchObject: Models.ClosedListModelPatchObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, clEntityId, @@ -1114,32 +1715,52 @@ export class Model { } /** - * Deletes a closed list model from the application. + * Deletes a list entity model from a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. - * @param clEntityId The closed list model ID. + * @param clEntityId The list entity model ID. * @param [options] The optional parameters * @returns Promise */ - deleteClosedList(appId: string, versionId: string, clEntityId: string, options?: msRest.RequestOptionsBase): Promise; + deleteClosedList(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, clEntityId: string, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. - * @param clEntityId The closed list model ID. + * @param clEntityId The list entity model ID. * @param callback The callback */ - deleteClosedList(appId: string, versionId: string, clEntityId: string, callback: msRest.ServiceCallback): void; + deleteClosedList(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, clEntityId: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. - * @param clEntityId The closed list model ID. + * @param clEntityId The list entity model ID. * @param options The optional parameters * @param callback The callback */ - deleteClosedList(appId: string, versionId: string, clEntityId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteClosedList(appId: string, versionId: string, clEntityId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + deleteClosedList(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, clEntityId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteClosedList(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, clEntityId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, clEntityId, @@ -1150,32 +1771,52 @@ export class Model { } /** - * Gets information about the prebuilt entity model. + * Gets information about a prebuilt entity model in a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param prebuiltId The prebuilt entity extractor ID. * @param [options] The optional parameters * @returns Promise */ - getPrebuilt(appId: string, versionId: string, prebuiltId: string, options?: msRest.RequestOptionsBase): Promise; + getPrebuilt(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, prebuiltId: string, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param prebuiltId The prebuilt entity extractor ID. * @param callback The callback */ - getPrebuilt(appId: string, versionId: string, prebuiltId: string, callback: msRest.ServiceCallback): void; + getPrebuilt(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, prebuiltId: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param prebuiltId The prebuilt entity extractor ID. * @param options The optional parameters * @param callback The callback */ - getPrebuilt(appId: string, versionId: string, prebuiltId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getPrebuilt(appId: string, versionId: string, prebuiltId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + getPrebuilt(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, prebuiltId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getPrebuilt(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, prebuiltId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, prebuiltId, @@ -1186,32 +1827,52 @@ export class Model { } /** - * Deletes a prebuilt entity extractor from the application. + * Deletes a prebuilt entity extractor from a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param prebuiltId The prebuilt entity extractor ID. * @param [options] The optional parameters * @returns Promise */ - deletePrebuilt(appId: string, versionId: string, prebuiltId: string, options?: msRest.RequestOptionsBase): Promise; + deletePrebuilt(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, prebuiltId: string, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param prebuiltId The prebuilt entity extractor ID. * @param callback The callback */ - deletePrebuilt(appId: string, versionId: string, prebuiltId: string, callback: msRest.ServiceCallback): void; + deletePrebuilt(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, prebuiltId: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param prebuiltId The prebuilt entity extractor ID. * @param options The optional parameters * @param callback The callback */ - deletePrebuilt(appId: string, versionId: string, prebuiltId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deletePrebuilt(appId: string, versionId: string, prebuiltId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + deletePrebuilt(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, prebuiltId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deletePrebuilt(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, prebuiltId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, prebuiltId, @@ -1222,35 +1883,55 @@ export class Model { } /** - * Deletes a sublist of a specific closed list model. + * Deletes a sublist of a specific list entity model from a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. - * @param clEntityId The closed list entity extractor ID. + * @param clEntityId The list entity extractor ID. * @param subListId The sublist ID. * @param [options] The optional parameters * @returns Promise */ - deleteSubList(appId: string, versionId: string, clEntityId: string, subListId: number, options?: msRest.RequestOptionsBase): Promise; + deleteSubList(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, clEntityId: string, subListId: number, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. - * @param clEntityId The closed list entity extractor ID. + * @param clEntityId The list entity extractor ID. * @param subListId The sublist ID. * @param callback The callback */ - deleteSubList(appId: string, versionId: string, clEntityId: string, subListId: number, callback: msRest.ServiceCallback): void; + deleteSubList(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, clEntityId: string, subListId: number, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. - * @param clEntityId The closed list entity extractor ID. + * @param clEntityId The list entity extractor ID. * @param subListId The sublist ID. * @param options The optional parameters * @param callback The callback */ - deleteSubList(appId: string, versionId: string, clEntityId: string, subListId: number, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteSubList(appId: string, versionId: string, clEntityId: string, subListId: number, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + deleteSubList(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, clEntityId: string, subListId: number, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteSubList(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, clEntityId: string, subListId: number, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, clEntityId, @@ -1262,41 +1943,61 @@ export class Model { } /** - * Updates one of the closed list's sublists. + * Updates one of the list entity's sublists in a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. - * @param clEntityId The closed list entity extractor ID. + * @param clEntityId The list entity extractor ID. * @param subListId The sublist ID. * @param wordListBaseUpdateObject A sublist update object containing the new canonical form and * the list of words. * @param [options] The optional parameters * @returns Promise */ - updateSubList(appId: string, versionId: string, clEntityId: string, subListId: number, wordListBaseUpdateObject: Models.WordListBaseUpdateObject, options?: msRest.RequestOptionsBase): Promise; + updateSubList(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, clEntityId: string, subListId: number, wordListBaseUpdateObject: Models.WordListBaseUpdateObject, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. - * @param clEntityId The closed list entity extractor ID. + * @param clEntityId The list entity extractor ID. * @param subListId The sublist ID. * @param wordListBaseUpdateObject A sublist update object containing the new canonical form and * the list of words. * @param callback The callback */ - updateSubList(appId: string, versionId: string, clEntityId: string, subListId: number, wordListBaseUpdateObject: Models.WordListBaseUpdateObject, callback: msRest.ServiceCallback): void; + updateSubList(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, clEntityId: string, subListId: number, wordListBaseUpdateObject: Models.WordListBaseUpdateObject, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. - * @param clEntityId The closed list entity extractor ID. + * @param clEntityId The list entity extractor ID. * @param subListId The sublist ID. * @param wordListBaseUpdateObject A sublist update object containing the new canonical form and * the list of words. * @param options The optional parameters * @param callback The callback */ - updateSubList(appId: string, versionId: string, clEntityId: string, subListId: number, wordListBaseUpdateObject: Models.WordListBaseUpdateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - updateSubList(appId: string, versionId: string, clEntityId: string, subListId: number, wordListBaseUpdateObject: Models.WordListBaseUpdateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + updateSubList(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, clEntityId: string, subListId: number, wordListBaseUpdateObject: Models.WordListBaseUpdateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updateSubList(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, clEntityId: string, subListId: number, wordListBaseUpdateObject: Models.WordListBaseUpdateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, clEntityId, @@ -1309,107 +2010,169 @@ export class Model { } /** - * Suggests examples that would improve the accuracy of the intent model. + * Suggests example utterances that would improve the accuracy of the intent model in a version of + * the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param intentId The intent classifier ID. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - getIntentSuggestions(appId: string, versionId: string, intentId: string, options?: Models.ModelGetIntentSuggestionsOptionalParams): Promise; + listIntentSuggestions(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, intentId: string, options?: Models.ModelListIntentSuggestionsOptionalParams): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param intentId The intent classifier ID. * @param callback The callback */ - getIntentSuggestions(appId: string, versionId: string, intentId: string, callback: msRest.ServiceCallback): void; + listIntentSuggestions(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, intentId: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param intentId The intent classifier ID. * @param options The optional parameters * @param callback The callback */ - getIntentSuggestions(appId: string, versionId: string, intentId: string, options: Models.ModelGetIntentSuggestionsOptionalParams, callback: msRest.ServiceCallback): void; - getIntentSuggestions(appId: string, versionId: string, intentId: string, options?: Models.ModelGetIntentSuggestionsOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listIntentSuggestions(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, intentId: string, options: Models.ModelListIntentSuggestionsOptionalParams, callback: msRest.ServiceCallback): void; + listIntentSuggestions(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, intentId: string, options?: Models.ModelListIntentSuggestionsOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, intentId, options }, - getIntentSuggestionsOperationSpec, - callback) as Promise; + listIntentSuggestionsOperationSpec, + callback) as Promise; } /** - * Get suggestion examples that would improve the accuracy of the entity model. + * Get suggested example utterances that would improve the accuracy of the entity model in a + * version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The target entity extractor model to enhance. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - getEntitySuggestions(appId: string, versionId: string, entityId: string, options?: Models.ModelGetEntitySuggestionsOptionalParams): Promise; + listEntitySuggestions(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, options?: Models.ModelListEntitySuggestionsOptionalParams): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The target entity extractor model to enhance. * @param callback The callback */ - getEntitySuggestions(appId: string, versionId: string, entityId: string, callback: msRest.ServiceCallback): void; + listEntitySuggestions(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The target entity extractor model to enhance. * @param options The optional parameters * @param callback The callback */ - getEntitySuggestions(appId: string, versionId: string, entityId: string, options: Models.ModelGetEntitySuggestionsOptionalParams, callback: msRest.ServiceCallback): void; - getEntitySuggestions(appId: string, versionId: string, entityId: string, options?: Models.ModelGetEntitySuggestionsOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listEntitySuggestions(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, options: Models.ModelListEntitySuggestionsOptionalParams, callback: msRest.ServiceCallback): void; + listEntitySuggestions(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, options?: Models.ModelListEntitySuggestionsOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, entityId, options }, - getEntitySuggestionsOperationSpec, - callback) as Promise; + listEntitySuggestionsOperationSpec, + callback) as Promise; } /** - * Adds a list to an existing closed list. + * Adds a sublist to an existing list entity in a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. - * @param clEntityId The closed list entity extractor ID. + * @param clEntityId The list entity extractor ID. * @param wordListCreateObject Words list. * @param [options] The optional parameters * @returns Promise */ - addSubList(appId: string, versionId: string, clEntityId: string, wordListCreateObject: Models.WordListObject, options?: msRest.RequestOptionsBase): Promise; + addSubList(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, clEntityId: string, wordListCreateObject: Models.WordListObject, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. - * @param clEntityId The closed list entity extractor ID. + * @param clEntityId The list entity extractor ID. * @param wordListCreateObject Words list. * @param callback The callback */ - addSubList(appId: string, versionId: string, clEntityId: string, wordListCreateObject: Models.WordListObject, callback: msRest.ServiceCallback): void; + addSubList(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, clEntityId: string, wordListCreateObject: Models.WordListObject, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. - * @param clEntityId The closed list entity extractor ID. + * @param clEntityId The list entity extractor ID. * @param wordListCreateObject Words list. * @param options The optional parameters * @param callback The callback */ - addSubList(appId: string, versionId: string, clEntityId: string, wordListCreateObject: Models.WordListObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - addSubList(appId: string, versionId: string, clEntityId: string, wordListCreateObject: Models.WordListObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + addSubList(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, clEntityId: string, wordListCreateObject: Models.WordListObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + addSubList(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, clEntityId: string, wordListCreateObject: Models.WordListObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, clEntityId, @@ -1421,32 +2184,53 @@ export class Model { } /** - * Adds a customizable prebuilt domain along with all of its models to this application. + * Adds a customizable prebuilt domain along with all of its intent and entity models in a version + * of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param prebuiltDomainObject A prebuilt domain create object containing the name of the domain. * @param [options] The optional parameters * @returns Promise */ - addCustomPrebuiltDomain(appId: string, versionId: string, prebuiltDomainObject: Models.PrebuiltDomainCreateBaseObject, options?: msRest.RequestOptionsBase): Promise; + addCustomPrebuiltDomain(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, prebuiltDomainObject: Models.PrebuiltDomainCreateBaseObject, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param prebuiltDomainObject A prebuilt domain create object containing the name of the domain. * @param callback The callback */ - addCustomPrebuiltDomain(appId: string, versionId: string, prebuiltDomainObject: Models.PrebuiltDomainCreateBaseObject, callback: msRest.ServiceCallback): void; + addCustomPrebuiltDomain(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, prebuiltDomainObject: Models.PrebuiltDomainCreateBaseObject, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param prebuiltDomainObject A prebuilt domain create object containing the name of the domain. * @param options The optional parameters * @param callback The callback */ - addCustomPrebuiltDomain(appId: string, versionId: string, prebuiltDomainObject: Models.PrebuiltDomainCreateBaseObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - addCustomPrebuiltDomain(appId: string, versionId: string, prebuiltDomainObject: Models.PrebuiltDomainCreateBaseObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + addCustomPrebuiltDomain(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, prebuiltDomainObject: Models.PrebuiltDomainCreateBaseObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + addCustomPrebuiltDomain(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, prebuiltDomainObject: Models.PrebuiltDomainCreateBaseObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, prebuiltDomainObject, @@ -1457,35 +2241,55 @@ export class Model { } /** - * Adds a custom prebuilt intent model to the application. + * Adds a customizable prebuilt intent model to a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. - * @param prebuiltDomainModelCreateObject A model object containing the name of the custom prebuilt - * intent and the name of the domain to which this model belongs. + * @param prebuiltDomainModelCreateObject A model object containing the name of the customizable + * prebuilt intent and the name of the domain to which this model belongs. * @param [options] The optional parameters * @returns Promise */ - addCustomPrebuiltIntent(appId: string, versionId: string, prebuiltDomainModelCreateObject: Models.PrebuiltDomainModelCreateObject, options?: msRest.RequestOptionsBase): Promise; + addCustomPrebuiltIntent(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, prebuiltDomainModelCreateObject: Models.PrebuiltDomainModelCreateObject, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. - * @param prebuiltDomainModelCreateObject A model object containing the name of the custom prebuilt - * intent and the name of the domain to which this model belongs. + * @param prebuiltDomainModelCreateObject A model object containing the name of the customizable + * prebuilt intent and the name of the domain to which this model belongs. * @param callback The callback */ - addCustomPrebuiltIntent(appId: string, versionId: string, prebuiltDomainModelCreateObject: Models.PrebuiltDomainModelCreateObject, callback: msRest.ServiceCallback): void; + addCustomPrebuiltIntent(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, prebuiltDomainModelCreateObject: Models.PrebuiltDomainModelCreateObject, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. - * @param prebuiltDomainModelCreateObject A model object containing the name of the custom prebuilt - * intent and the name of the domain to which this model belongs. + * @param prebuiltDomainModelCreateObject A model object containing the name of the customizable + * prebuilt intent and the name of the domain to which this model belongs. * @param options The optional parameters * @param callback The callback */ - addCustomPrebuiltIntent(appId: string, versionId: string, prebuiltDomainModelCreateObject: Models.PrebuiltDomainModelCreateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - addCustomPrebuiltIntent(appId: string, versionId: string, prebuiltDomainModelCreateObject: Models.PrebuiltDomainModelCreateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + addCustomPrebuiltIntent(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, prebuiltDomainModelCreateObject: Models.PrebuiltDomainModelCreateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + addCustomPrebuiltIntent(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, prebuiltDomainModelCreateObject: Models.PrebuiltDomainModelCreateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, prebuiltDomainModelCreateObject, @@ -1496,29 +2300,49 @@ export class Model { } /** - * Gets custom prebuilt intents information of this application. + * Gets information about customizable prebuilt intents added to a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param [options] The optional parameters * @returns Promise */ - listCustomPrebuiltIntents(appId: string, versionId: string, options?: msRest.RequestOptionsBase): Promise; + listCustomPrebuiltIntents(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param callback The callback */ - listCustomPrebuiltIntents(appId: string, versionId: string, callback: msRest.ServiceCallback): void; + listCustomPrebuiltIntents(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param options The optional parameters * @param callback The callback */ - listCustomPrebuiltIntents(appId: string, versionId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listCustomPrebuiltIntents(appId: string, versionId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listCustomPrebuiltIntents(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listCustomPrebuiltIntents(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, options @@ -1528,35 +2352,55 @@ export class Model { } /** - * Adds a custom prebuilt entity model to the application. + * Adds a prebuilt entity model to a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. - * @param prebuiltDomainModelCreateObject A model object containing the name of the custom prebuilt - * entity and the name of the domain to which this model belongs. + * @param prebuiltDomainModelCreateObject A model object containing the name of the prebuilt entity + * and the name of the domain to which this model belongs. * @param [options] The optional parameters * @returns Promise */ - addCustomPrebuiltEntity(appId: string, versionId: string, prebuiltDomainModelCreateObject: Models.PrebuiltDomainModelCreateObject, options?: msRest.RequestOptionsBase): Promise; + addCustomPrebuiltEntity(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, prebuiltDomainModelCreateObject: Models.PrebuiltDomainModelCreateObject, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. - * @param prebuiltDomainModelCreateObject A model object containing the name of the custom prebuilt - * entity and the name of the domain to which this model belongs. + * @param prebuiltDomainModelCreateObject A model object containing the name of the prebuilt entity + * and the name of the domain to which this model belongs. * @param callback The callback */ - addCustomPrebuiltEntity(appId: string, versionId: string, prebuiltDomainModelCreateObject: Models.PrebuiltDomainModelCreateObject, callback: msRest.ServiceCallback): void; + addCustomPrebuiltEntity(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, prebuiltDomainModelCreateObject: Models.PrebuiltDomainModelCreateObject, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. - * @param prebuiltDomainModelCreateObject A model object containing the name of the custom prebuilt - * entity and the name of the domain to which this model belongs. + * @param prebuiltDomainModelCreateObject A model object containing the name of the prebuilt entity + * and the name of the domain to which this model belongs. * @param options The optional parameters * @param callback The callback */ - addCustomPrebuiltEntity(appId: string, versionId: string, prebuiltDomainModelCreateObject: Models.PrebuiltDomainModelCreateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - addCustomPrebuiltEntity(appId: string, versionId: string, prebuiltDomainModelCreateObject: Models.PrebuiltDomainModelCreateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + addCustomPrebuiltEntity(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, prebuiltDomainModelCreateObject: Models.PrebuiltDomainModelCreateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + addCustomPrebuiltEntity(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, prebuiltDomainModelCreateObject: Models.PrebuiltDomainModelCreateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, prebuiltDomainModelCreateObject, @@ -1567,29 +2411,49 @@ export class Model { } /** - * Gets all custom prebuilt entities information of this application. + * Gets all prebuilt entities used in a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param [options] The optional parameters * @returns Promise */ - listCustomPrebuiltEntities(appId: string, versionId: string, options?: msRest.RequestOptionsBase): Promise; + listCustomPrebuiltEntities(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param callback The callback */ - listCustomPrebuiltEntities(appId: string, versionId: string, callback: msRest.ServiceCallback): void; + listCustomPrebuiltEntities(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param options The optional parameters * @param callback The callback */ - listCustomPrebuiltEntities(appId: string, versionId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listCustomPrebuiltEntities(appId: string, versionId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listCustomPrebuiltEntities(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listCustomPrebuiltEntities(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, options @@ -1599,29 +2463,49 @@ export class Model { } /** - * Gets all custom prebuilt models information of this application. + * Gets all prebuilt intent and entity model information used in a version of this application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param [options] The optional parameters * @returns Promise */ - listCustomPrebuiltModels(appId: string, versionId: string, options?: msRest.RequestOptionsBase): Promise; + listCustomPrebuiltModels(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param callback The callback */ - listCustomPrebuiltModels(appId: string, versionId: string, callback: msRest.ServiceCallback): void; + listCustomPrebuiltModels(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param options The optional parameters * @param callback The callback */ - listCustomPrebuiltModels(appId: string, versionId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listCustomPrebuiltModels(appId: string, versionId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listCustomPrebuiltModels(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listCustomPrebuiltModels(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, options @@ -1631,32 +2515,52 @@ export class Model { } /** - * Deletes a prebuilt domain's models from the application. + * Deletes a prebuilt domain's models in a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param domainName Domain name. * @param [options] The optional parameters * @returns Promise */ - deleteCustomPrebuiltDomain(appId: string, versionId: string, domainName: string, options?: msRest.RequestOptionsBase): Promise; + deleteCustomPrebuiltDomain(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, domainName: string, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param domainName Domain name. * @param callback The callback */ - deleteCustomPrebuiltDomain(appId: string, versionId: string, domainName: string, callback: msRest.ServiceCallback): void; + deleteCustomPrebuiltDomain(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, domainName: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param domainName Domain name. * @param options The optional parameters * @param callback The callback */ - deleteCustomPrebuiltDomain(appId: string, versionId: string, domainName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteCustomPrebuiltDomain(appId: string, versionId: string, domainName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + deleteCustomPrebuiltDomain(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, domainName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteCustomPrebuiltDomain(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, domainName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, domainName, @@ -1667,7 +2571,14 @@ export class Model { } /** - * Gets information about the hierarchical entity child model. + * Gets information about the child's model contained in an hierarchical entity child model in a + * version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param hEntityId The hierarchical entity extractor ID. @@ -1675,16 +2586,28 @@ export class Model { * @param [options] The optional parameters * @returns Promise */ - getHierarchicalEntityChild(appId: string, versionId: string, hEntityId: string, hChildId: string, options?: msRest.RequestOptionsBase): Promise; + getHierarchicalEntityChild(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, hEntityId: string, hChildId: string, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param hEntityId The hierarchical entity extractor ID. * @param hChildId The hierarchical entity extractor child ID. * @param callback The callback */ - getHierarchicalEntityChild(appId: string, versionId: string, hEntityId: string, hChildId: string, callback: msRest.ServiceCallback): void; + getHierarchicalEntityChild(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, hEntityId: string, hChildId: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param hEntityId The hierarchical entity extractor ID. @@ -1692,10 +2615,12 @@ export class Model { * @param options The optional parameters * @param callback The callback */ - getHierarchicalEntityChild(appId: string, versionId: string, hEntityId: string, hChildId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getHierarchicalEntityChild(appId: string, versionId: string, hEntityId: string, hChildId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + getHierarchicalEntityChild(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, hEntityId: string, hChildId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getHierarchicalEntityChild(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, hEntityId: string, hChildId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, hEntityId, @@ -1707,7 +2632,13 @@ export class Model { } /** - * Renames a single child in an existing hierarchical entity model. + * Renames a single child in an existing hierarchical entity model in a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param hEntityId The hierarchical entity extractor ID. @@ -1717,8 +2648,14 @@ export class Model { * @param [options] The optional parameters * @returns Promise */ - updateHierarchicalEntityChild(appId: string, versionId: string, hEntityId: string, hChildId: string, hierarchicalChildModelUpdateObject: Models.HierarchicalChildModelUpdateObject, options?: msRest.RequestOptionsBase): Promise; + updateHierarchicalEntityChild(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, hEntityId: string, hChildId: string, hierarchicalChildModelUpdateObject: Models.HierarchicalChildModelUpdateObject, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param hEntityId The hierarchical entity extractor ID. @@ -1727,8 +2664,14 @@ export class Model { * entity child. * @param callback The callback */ - updateHierarchicalEntityChild(appId: string, versionId: string, hEntityId: string, hChildId: string, hierarchicalChildModelUpdateObject: Models.HierarchicalChildModelUpdateObject, callback: msRest.ServiceCallback): void; + updateHierarchicalEntityChild(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, hEntityId: string, hChildId: string, hierarchicalChildModelUpdateObject: Models.HierarchicalChildModelUpdateObject, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param hEntityId The hierarchical entity extractor ID. @@ -1738,10 +2681,12 @@ export class Model { * @param options The optional parameters * @param callback The callback */ - updateHierarchicalEntityChild(appId: string, versionId: string, hEntityId: string, hChildId: string, hierarchicalChildModelUpdateObject: Models.HierarchicalChildModelUpdateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - updateHierarchicalEntityChild(appId: string, versionId: string, hEntityId: string, hChildId: string, hierarchicalChildModelUpdateObject: Models.HierarchicalChildModelUpdateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + updateHierarchicalEntityChild(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, hEntityId: string, hChildId: string, hierarchicalChildModelUpdateObject: Models.HierarchicalChildModelUpdateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updateHierarchicalEntityChild(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, hEntityId: string, hChildId: string, hierarchicalChildModelUpdateObject: Models.HierarchicalChildModelUpdateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, hEntityId, @@ -1754,7 +2699,13 @@ export class Model { } /** - * Deletes a hierarchical entity extractor child from the application. + * Deletes a hierarchical entity extractor child in a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param hEntityId The hierarchical entity extractor ID. @@ -1762,16 +2713,28 @@ export class Model { * @param [options] The optional parameters * @returns Promise */ - deleteHierarchicalEntityChild(appId: string, versionId: string, hEntityId: string, hChildId: string, options?: msRest.RequestOptionsBase): Promise; + deleteHierarchicalEntityChild(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, hEntityId: string, hChildId: string, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param hEntityId The hierarchical entity extractor ID. * @param hChildId The hierarchical entity extractor child ID. * @param callback The callback */ - deleteHierarchicalEntityChild(appId: string, versionId: string, hEntityId: string, hChildId: string, callback: msRest.ServiceCallback): void; + deleteHierarchicalEntityChild(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, hEntityId: string, hChildId: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param hEntityId The hierarchical entity extractor ID. @@ -1779,10 +2742,12 @@ export class Model { * @param options The optional parameters * @param callback The callback */ - deleteHierarchicalEntityChild(appId: string, versionId: string, hEntityId: string, hChildId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteHierarchicalEntityChild(appId: string, versionId: string, hEntityId: string, hChildId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + deleteHierarchicalEntityChild(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, hEntityId: string, hChildId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteHierarchicalEntityChild(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, hEntityId: string, hChildId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, hEntityId, @@ -1794,7 +2759,13 @@ export class Model { } /** - * Creates a single child in an existing hierarchical entity model. + * Creates a single child in an existing hierarchical entity model in a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param hEntityId The hierarchical entity extractor ID. @@ -1803,8 +2774,14 @@ export class Model { * @param [options] The optional parameters * @returns Promise */ - addHierarchicalEntityChild(appId: string, versionId: string, hEntityId: string, hierarchicalChildModelCreateObject: Models.HierarchicalChildModelCreateObject, options?: msRest.RequestOptionsBase): Promise; + addHierarchicalEntityChild(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, hEntityId: string, hierarchicalChildModelCreateObject: Models.HierarchicalChildModelCreateObject, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param hEntityId The hierarchical entity extractor ID. @@ -1812,8 +2789,14 @@ export class Model { * hierarchical child model. * @param callback The callback */ - addHierarchicalEntityChild(appId: string, versionId: string, hEntityId: string, hierarchicalChildModelCreateObject: Models.HierarchicalChildModelCreateObject, callback: msRest.ServiceCallback): void; + addHierarchicalEntityChild(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, hEntityId: string, hierarchicalChildModelCreateObject: Models.HierarchicalChildModelCreateObject, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param hEntityId The hierarchical entity extractor ID. @@ -1822,10 +2805,12 @@ export class Model { * @param options The optional parameters * @param callback The callback */ - addHierarchicalEntityChild(appId: string, versionId: string, hEntityId: string, hierarchicalChildModelCreateObject: Models.HierarchicalChildModelCreateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - addHierarchicalEntityChild(appId: string, versionId: string, hEntityId: string, hierarchicalChildModelCreateObject: Models.HierarchicalChildModelCreateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + addHierarchicalEntityChild(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, hEntityId: string, hierarchicalChildModelCreateObject: Models.HierarchicalChildModelCreateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + addHierarchicalEntityChild(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, hEntityId: string, hierarchicalChildModelCreateObject: Models.HierarchicalChildModelCreateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, hEntityId, @@ -1837,7 +2822,13 @@ export class Model { } /** - * Creates a single child in an existing composite entity model. + * Creates a single child in an existing composite entity model in a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param cEntityId The composite entity extractor ID. @@ -1846,8 +2837,14 @@ export class Model { * @param [options] The optional parameters * @returns Promise */ - addCompositeEntityChild(appId: string, versionId: string, cEntityId: string, compositeChildModelCreateObject: Models.CompositeChildModelCreateObject, options?: msRest.RequestOptionsBase): Promise; + addCompositeEntityChild(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, cEntityId: string, compositeChildModelCreateObject: Models.CompositeChildModelCreateObject, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param cEntityId The composite entity extractor ID. @@ -1855,8 +2852,14 @@ export class Model { * child model. * @param callback The callback */ - addCompositeEntityChild(appId: string, versionId: string, cEntityId: string, compositeChildModelCreateObject: Models.CompositeChildModelCreateObject, callback: msRest.ServiceCallback): void; + addCompositeEntityChild(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, cEntityId: string, compositeChildModelCreateObject: Models.CompositeChildModelCreateObject, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param cEntityId The composite entity extractor ID. @@ -1865,10 +2868,12 @@ export class Model { * @param options The optional parameters * @param callback The callback */ - addCompositeEntityChild(appId: string, versionId: string, cEntityId: string, compositeChildModelCreateObject: Models.CompositeChildModelCreateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - addCompositeEntityChild(appId: string, versionId: string, cEntityId: string, compositeChildModelCreateObject: Models.CompositeChildModelCreateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + addCompositeEntityChild(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, cEntityId: string, compositeChildModelCreateObject: Models.CompositeChildModelCreateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + addCompositeEntityChild(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, cEntityId: string, compositeChildModelCreateObject: Models.CompositeChildModelCreateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, cEntityId, @@ -1880,7 +2885,13 @@ export class Model { } /** - * Deletes a composite entity extractor child from the application. + * Deletes a composite entity extractor child from a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param cEntityId The composite entity extractor ID. @@ -1888,16 +2899,28 @@ export class Model { * @param [options] The optional parameters * @returns Promise */ - deleteCompositeEntityChild(appId: string, versionId: string, cEntityId: string, cChildId: string, options?: msRest.RequestOptionsBase): Promise; + deleteCompositeEntityChild(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, cEntityId: string, cChildId: string, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param cEntityId The composite entity extractor ID. * @param cChildId The hierarchical entity extractor child ID. * @param callback The callback */ - deleteCompositeEntityChild(appId: string, versionId: string, cEntityId: string, cChildId: string, callback: msRest.ServiceCallback): void; + deleteCompositeEntityChild(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, cEntityId: string, cChildId: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param cEntityId The composite entity extractor ID. @@ -1905,10 +2928,12 @@ export class Model { * @param options The optional parameters * @param callback The callback */ - deleteCompositeEntityChild(appId: string, versionId: string, cEntityId: string, cChildId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteCompositeEntityChild(appId: string, versionId: string, cEntityId: string, cChildId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + deleteCompositeEntityChild(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, cEntityId: string, cChildId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteCompositeEntityChild(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, cEntityId: string, cChildId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, cEntityId, @@ -1920,67 +2945,108 @@ export class Model { } /** - * @summary Gets information about the regex entity models. + * @summary Gets information about the regular expression entity models in a version of the + * application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - getRegexEntityInfos(appId: string, versionId: string, options?: Models.ModelGetRegexEntityInfosOptionalParams): Promise; + listRegexEntityInfos(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, options?: Models.ModelListRegexEntityInfosOptionalParams): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param callback The callback */ - getRegexEntityInfos(appId: string, versionId: string, callback: msRest.ServiceCallback): void; + listRegexEntityInfos(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param options The optional parameters * @param callback The callback */ - getRegexEntityInfos(appId: string, versionId: string, options: Models.ModelGetRegexEntityInfosOptionalParams, callback: msRest.ServiceCallback): void; - getRegexEntityInfos(appId: string, versionId: string, options?: Models.ModelGetRegexEntityInfosOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listRegexEntityInfos(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, options: Models.ModelListRegexEntityInfosOptionalParams, callback: msRest.ServiceCallback): void; + listRegexEntityInfos(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, options?: Models.ModelListRegexEntityInfosOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, options }, - getRegexEntityInfosOperationSpec, - callback) as Promise; + listRegexEntityInfosOperationSpec, + callback) as Promise; } /** - * @summary Adds a regex entity model to the application version. + * @summary Adds a regular expression entity model to a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param regexEntityExtractorCreateObj A model object containing the name and regex pattern for - * the new regex entity extractor. + * the new regular expression entity extractor. * @param [options] The optional parameters * @returns Promise */ - createRegexEntityModel(appId: string, versionId: string, regexEntityExtractorCreateObj: Models.RegexModelCreateObject, options?: msRest.RequestOptionsBase): Promise; + createRegexEntityModel(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, regexEntityExtractorCreateObj: Models.RegexModelCreateObject, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param regexEntityExtractorCreateObj A model object containing the name and regex pattern for - * the new regex entity extractor. + * the new regular expression entity extractor. * @param callback The callback */ - createRegexEntityModel(appId: string, versionId: string, regexEntityExtractorCreateObj: Models.RegexModelCreateObject, callback: msRest.ServiceCallback): void; + createRegexEntityModel(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, regexEntityExtractorCreateObj: Models.RegexModelCreateObject, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param regexEntityExtractorCreateObj A model object containing the name and regex pattern for - * the new regex entity extractor. + * the new regular expression entity extractor. * @param options The optional parameters * @param callback The callback */ - createRegexEntityModel(appId: string, versionId: string, regexEntityExtractorCreateObj: Models.RegexModelCreateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createRegexEntityModel(appId: string, versionId: string, regexEntityExtractorCreateObj: Models.RegexModelCreateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + createRegexEntityModel(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, regexEntityExtractorCreateObj: Models.RegexModelCreateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createRegexEntityModel(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, regexEntityExtractorCreateObj: Models.RegexModelCreateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, regexEntityExtractorCreateObj, @@ -1991,39 +3057,65 @@ export class Model { } /** - * @summary Get information about the Pattern.Any entity models. + * @summary Get information about the Pattern.Any entity models in a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - getPatternAnyEntityInfos(appId: string, versionId: string, options?: Models.ModelGetPatternAnyEntityInfosOptionalParams): Promise; + listPatternAnyEntityInfos(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, options?: Models.ModelListPatternAnyEntityInfosOptionalParams): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param callback The callback */ - getPatternAnyEntityInfos(appId: string, versionId: string, callback: msRest.ServiceCallback): void; + listPatternAnyEntityInfos(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param options The optional parameters * @param callback The callback */ - getPatternAnyEntityInfos(appId: string, versionId: string, options: Models.ModelGetPatternAnyEntityInfosOptionalParams, callback: msRest.ServiceCallback): void; - getPatternAnyEntityInfos(appId: string, versionId: string, options?: Models.ModelGetPatternAnyEntityInfosOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listPatternAnyEntityInfos(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, options: Models.ModelListPatternAnyEntityInfosOptionalParams, callback: msRest.ServiceCallback): void; + listPatternAnyEntityInfos(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, options?: Models.ModelListPatternAnyEntityInfosOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, options }, - getPatternAnyEntityInfosOperationSpec, - callback) as Promise; + listPatternAnyEntityInfosOperationSpec, + callback) as Promise; } /** - * @summary Adds a pattern.any entity extractor to the application. + * @summary Adds a pattern.any entity extractor to a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param extractorCreateObject A model object containing the name and explicit list for the new @@ -2031,16 +3123,28 @@ export class Model { * @param [options] The optional parameters * @returns Promise */ - createPatternAnyEntityModel(appId: string, versionId: string, extractorCreateObject: Models.PatternAnyModelCreateObject, options?: msRest.RequestOptionsBase): Promise; + createPatternAnyEntityModel(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, extractorCreateObject: Models.PatternAnyModelCreateObject, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param extractorCreateObject A model object containing the name and explicit list for the new * Pattern.Any entity extractor. * @param callback The callback */ - createPatternAnyEntityModel(appId: string, versionId: string, extractorCreateObject: Models.PatternAnyModelCreateObject, callback: msRest.ServiceCallback): void; + createPatternAnyEntityModel(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, extractorCreateObject: Models.PatternAnyModelCreateObject, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param extractorCreateObject A model object containing the name and explicit list for the new @@ -2048,10 +3152,12 @@ export class Model { * @param options The optional parameters * @param callback The callback */ - createPatternAnyEntityModel(appId: string, versionId: string, extractorCreateObject: Models.PatternAnyModelCreateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createPatternAnyEntityModel(appId: string, versionId: string, extractorCreateObject: Models.PatternAnyModelCreateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + createPatternAnyEntityModel(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, extractorCreateObject: Models.PatternAnyModelCreateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createPatternAnyEntityModel(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, extractorCreateObject: Models.PatternAnyModelCreateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, extractorCreateObject, @@ -2062,43 +3168,69 @@ export class Model { } /** - * @summary Get All Entity Roles for a given entity + * @summary Get all roles for an entity in a version of the application + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId entity Id * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - getEntityRoles(appId: string, versionId: string, entityId: string, options?: msRest.RequestOptionsBase): Promise; + listEntityRoles(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId entity Id * @param callback The callback */ - getEntityRoles(appId: string, versionId: string, entityId: string, callback: msRest.ServiceCallback): void; + listEntityRoles(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId entity Id * @param options The optional parameters * @param callback The callback */ - getEntityRoles(appId: string, versionId: string, entityId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getEntityRoles(appId: string, versionId: string, entityId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listEntityRoles(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listEntityRoles(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, entityId, options }, - getEntityRolesOperationSpec, - callback) as Promise; + listEntityRolesOperationSpec, + callback) as Promise; } /** - * @summary Create an entity role for an entity in the application. + * @summary Create an entity role in a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The entity model ID. @@ -2106,16 +3238,28 @@ export class Model { * @param [options] The optional parameters * @returns Promise */ - createEntityRole(appId: string, versionId: string, entityId: string, entityRoleCreateObject: Models.EntityRoleCreateObject, options?: msRest.RequestOptionsBase): Promise; + createEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, entityRoleCreateObject: Models.EntityRoleCreateObject, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The entity model ID. * @param entityRoleCreateObject An entity role object containing the name of role. * @param callback The callback */ - createEntityRole(appId: string, versionId: string, entityId: string, entityRoleCreateObject: Models.EntityRoleCreateObject, callback: msRest.ServiceCallback): void; + createEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, entityRoleCreateObject: Models.EntityRoleCreateObject, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The entity model ID. @@ -2123,10 +3267,12 @@ export class Model { * @param options The optional parameters * @param callback The callback */ - createEntityRole(appId: string, versionId: string, entityId: string, entityRoleCreateObject: Models.EntityRoleCreateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createEntityRole(appId: string, versionId: string, entityId: string, entityRoleCreateObject: Models.EntityRoleCreateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + createEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, entityRoleCreateObject: Models.EntityRoleCreateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, entityRoleCreateObject: Models.EntityRoleCreateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, entityId, @@ -2138,43 +3284,69 @@ export class Model { } /** - * @summary Get All Entity Roles for a given entity + * @summary Get a prebuilt entity's roles in a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId entity Id * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - getPrebuiltEntityRoles(appId: string, versionId: string, entityId: string, options?: msRest.RequestOptionsBase): Promise; + listPrebuiltEntityRoles(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId entity Id * @param callback The callback */ - getPrebuiltEntityRoles(appId: string, versionId: string, entityId: string, callback: msRest.ServiceCallback): void; + listPrebuiltEntityRoles(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId entity Id * @param options The optional parameters * @param callback The callback */ - getPrebuiltEntityRoles(appId: string, versionId: string, entityId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getPrebuiltEntityRoles(appId: string, versionId: string, entityId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listPrebuiltEntityRoles(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listPrebuiltEntityRoles(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, entityId, options }, - getPrebuiltEntityRolesOperationSpec, - callback) as Promise; + listPrebuiltEntityRolesOperationSpec, + callback) as Promise; } /** - * @summary Create an entity role for an entity in the application. + * @summary Create a role for a prebuilt entity in a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The entity model ID. @@ -2182,16 +3354,28 @@ export class Model { * @param [options] The optional parameters * @returns Promise */ - createPrebuiltEntityRole(appId: string, versionId: string, entityId: string, entityRoleCreateObject: Models.EntityRoleCreateObject, options?: msRest.RequestOptionsBase): Promise; + createPrebuiltEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, entityRoleCreateObject: Models.EntityRoleCreateObject, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The entity model ID. * @param entityRoleCreateObject An entity role object containing the name of role. * @param callback The callback */ - createPrebuiltEntityRole(appId: string, versionId: string, entityId: string, entityRoleCreateObject: Models.EntityRoleCreateObject, callback: msRest.ServiceCallback): void; + createPrebuiltEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, entityRoleCreateObject: Models.EntityRoleCreateObject, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The entity model ID. @@ -2199,10 +3383,12 @@ export class Model { * @param options The optional parameters * @param callback The callback */ - createPrebuiltEntityRole(appId: string, versionId: string, entityId: string, entityRoleCreateObject: Models.EntityRoleCreateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createPrebuiltEntityRole(appId: string, versionId: string, entityId: string, entityRoleCreateObject: Models.EntityRoleCreateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + createPrebuiltEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, entityRoleCreateObject: Models.EntityRoleCreateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createPrebuiltEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, entityRoleCreateObject: Models.EntityRoleCreateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, entityId, @@ -2214,43 +3400,69 @@ export class Model { } /** - * @summary Get All Entity Roles for a given entity + * @summary Get all roles for a list entity in a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId entity Id * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - getClosedListEntityRoles(appId: string, versionId: string, entityId: string, options?: msRest.RequestOptionsBase): Promise; + listClosedListEntityRoles(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId entity Id * @param callback The callback */ - getClosedListEntityRoles(appId: string, versionId: string, entityId: string, callback: msRest.ServiceCallback): void; + listClosedListEntityRoles(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId entity Id * @param options The optional parameters * @param callback The callback */ - getClosedListEntityRoles(appId: string, versionId: string, entityId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getClosedListEntityRoles(appId: string, versionId: string, entityId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listClosedListEntityRoles(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listClosedListEntityRoles(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, entityId, options }, - getClosedListEntityRolesOperationSpec, - callback) as Promise; + listClosedListEntityRolesOperationSpec, + callback) as Promise; } /** - * @summary Create an entity role for an entity in the application. + * @summary Create a role for a list entity in a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The entity model ID. @@ -2258,16 +3470,28 @@ export class Model { * @param [options] The optional parameters * @returns Promise */ - createClosedListEntityRole(appId: string, versionId: string, entityId: string, entityRoleCreateObject: Models.EntityRoleCreateObject, options?: msRest.RequestOptionsBase): Promise; + createClosedListEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, entityRoleCreateObject: Models.EntityRoleCreateObject, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The entity model ID. * @param entityRoleCreateObject An entity role object containing the name of role. * @param callback The callback */ - createClosedListEntityRole(appId: string, versionId: string, entityId: string, entityRoleCreateObject: Models.EntityRoleCreateObject, callback: msRest.ServiceCallback): void; + createClosedListEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, entityRoleCreateObject: Models.EntityRoleCreateObject, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The entity model ID. @@ -2275,10 +3499,12 @@ export class Model { * @param options The optional parameters * @param callback The callback */ - createClosedListEntityRole(appId: string, versionId: string, entityId: string, entityRoleCreateObject: Models.EntityRoleCreateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createClosedListEntityRole(appId: string, versionId: string, entityId: string, entityRoleCreateObject: Models.EntityRoleCreateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + createClosedListEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, entityRoleCreateObject: Models.EntityRoleCreateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createClosedListEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, entityRoleCreateObject: Models.EntityRoleCreateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, entityId, @@ -2290,43 +3516,69 @@ export class Model { } /** - * @summary Get All Entity Roles for a given entity + * @summary Get all roles for a regular expression entity in a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId entity Id * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - getRegexEntityRoles(appId: string, versionId: string, entityId: string, options?: msRest.RequestOptionsBase): Promise; + listRegexEntityRoles(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId entity Id * @param callback The callback */ - getRegexEntityRoles(appId: string, versionId: string, entityId: string, callback: msRest.ServiceCallback): void; + listRegexEntityRoles(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId entity Id * @param options The optional parameters * @param callback The callback */ - getRegexEntityRoles(appId: string, versionId: string, entityId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getRegexEntityRoles(appId: string, versionId: string, entityId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listRegexEntityRoles(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listRegexEntityRoles(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, entityId, options }, - getRegexEntityRolesOperationSpec, - callback) as Promise; + listRegexEntityRolesOperationSpec, + callback) as Promise; } /** - * @summary Create an entity role for an entity in the application. + * @summary Create a role for an regular expression entity in a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The entity model ID. @@ -2334,16 +3586,28 @@ export class Model { * @param [options] The optional parameters * @returns Promise */ - createRegexEntityRole(appId: string, versionId: string, entityId: string, entityRoleCreateObject: Models.EntityRoleCreateObject, options?: msRest.RequestOptionsBase): Promise; + createRegexEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, entityRoleCreateObject: Models.EntityRoleCreateObject, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The entity model ID. * @param entityRoleCreateObject An entity role object containing the name of role. * @param callback The callback */ - createRegexEntityRole(appId: string, versionId: string, entityId: string, entityRoleCreateObject: Models.EntityRoleCreateObject, callback: msRest.ServiceCallback): void; + createRegexEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, entityRoleCreateObject: Models.EntityRoleCreateObject, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The entity model ID. @@ -2351,10 +3615,12 @@ export class Model { * @param options The optional parameters * @param callback The callback */ - createRegexEntityRole(appId: string, versionId: string, entityId: string, entityRoleCreateObject: Models.EntityRoleCreateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createRegexEntityRole(appId: string, versionId: string, entityId: string, entityRoleCreateObject: Models.EntityRoleCreateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + createRegexEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, entityRoleCreateObject: Models.EntityRoleCreateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createRegexEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, entityRoleCreateObject: Models.EntityRoleCreateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, entityId, @@ -2366,43 +3632,69 @@ export class Model { } /** - * @summary Get All Entity Roles for a given entity + * @summary Get all roles for a composite entity in a version of the application + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param cEntityId The composite entity extractor ID. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - getCompositeEntityRoles(appId: string, versionId: string, cEntityId: string, options?: msRest.RequestOptionsBase): Promise; + listCompositeEntityRoles(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, cEntityId: string, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param cEntityId The composite entity extractor ID. * @param callback The callback */ - getCompositeEntityRoles(appId: string, versionId: string, cEntityId: string, callback: msRest.ServiceCallback): void; + listCompositeEntityRoles(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, cEntityId: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param cEntityId The composite entity extractor ID. * @param options The optional parameters * @param callback The callback */ - getCompositeEntityRoles(appId: string, versionId: string, cEntityId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getCompositeEntityRoles(appId: string, versionId: string, cEntityId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listCompositeEntityRoles(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, cEntityId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listCompositeEntityRoles(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, cEntityId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, cEntityId, options }, - getCompositeEntityRolesOperationSpec, - callback) as Promise; + listCompositeEntityRolesOperationSpec, + callback) as Promise; } /** - * @summary Create an entity role for an entity in the application. + * @summary Create a role for a composite entity in a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param cEntityId The composite entity extractor ID. @@ -2410,16 +3702,28 @@ export class Model { * @param [options] The optional parameters * @returns Promise */ - createCompositeEntityRole(appId: string, versionId: string, cEntityId: string, entityRoleCreateObject: Models.EntityRoleCreateObject, options?: msRest.RequestOptionsBase): Promise; + createCompositeEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, cEntityId: string, entityRoleCreateObject: Models.EntityRoleCreateObject, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param cEntityId The composite entity extractor ID. * @param entityRoleCreateObject An entity role object containing the name of role. * @param callback The callback */ - createCompositeEntityRole(appId: string, versionId: string, cEntityId: string, entityRoleCreateObject: Models.EntityRoleCreateObject, callback: msRest.ServiceCallback): void; + createCompositeEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, cEntityId: string, entityRoleCreateObject: Models.EntityRoleCreateObject, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param cEntityId The composite entity extractor ID. @@ -2427,10 +3731,12 @@ export class Model { * @param options The optional parameters * @param callback The callback */ - createCompositeEntityRole(appId: string, versionId: string, cEntityId: string, entityRoleCreateObject: Models.EntityRoleCreateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createCompositeEntityRole(appId: string, versionId: string, cEntityId: string, entityRoleCreateObject: Models.EntityRoleCreateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + createCompositeEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, cEntityId: string, entityRoleCreateObject: Models.EntityRoleCreateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createCompositeEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, cEntityId: string, entityRoleCreateObject: Models.EntityRoleCreateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, cEntityId, @@ -2442,43 +3748,69 @@ export class Model { } /** - * @summary Get All Entity Roles for a given entity + * @summary Get all roles for a Pattern.any entity in a version of the application + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId entity Id * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - getPatternAnyEntityRoles(appId: string, versionId: string, entityId: string, options?: msRest.RequestOptionsBase): Promise; + listPatternAnyEntityRoles(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId entity Id * @param callback The callback */ - getPatternAnyEntityRoles(appId: string, versionId: string, entityId: string, callback: msRest.ServiceCallback): void; + listPatternAnyEntityRoles(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId entity Id * @param options The optional parameters * @param callback The callback */ - getPatternAnyEntityRoles(appId: string, versionId: string, entityId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getPatternAnyEntityRoles(appId: string, versionId: string, entityId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listPatternAnyEntityRoles(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listPatternAnyEntityRoles(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, entityId, options }, - getPatternAnyEntityRolesOperationSpec, - callback) as Promise; + listPatternAnyEntityRolesOperationSpec, + callback) as Promise; } /** - * @summary Create an entity role for an entity in the application. + * @summary Create a role for an Pattern.any entity in a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The entity model ID. @@ -2486,16 +3818,28 @@ export class Model { * @param [options] The optional parameters * @returns Promise */ - createPatternAnyEntityRole(appId: string, versionId: string, entityId: string, entityRoleCreateObject: Models.EntityRoleCreateObject, options?: msRest.RequestOptionsBase): Promise; + createPatternAnyEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, entityRoleCreateObject: Models.EntityRoleCreateObject, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The entity model ID. * @param entityRoleCreateObject An entity role object containing the name of role. * @param callback The callback */ - createPatternAnyEntityRole(appId: string, versionId: string, entityId: string, entityRoleCreateObject: Models.EntityRoleCreateObject, callback: msRest.ServiceCallback): void; + createPatternAnyEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, entityRoleCreateObject: Models.EntityRoleCreateObject, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The entity model ID. @@ -2503,10 +3847,12 @@ export class Model { * @param options The optional parameters * @param callback The callback */ - createPatternAnyEntityRole(appId: string, versionId: string, entityId: string, entityRoleCreateObject: Models.EntityRoleCreateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createPatternAnyEntityRole(appId: string, versionId: string, entityId: string, entityRoleCreateObject: Models.EntityRoleCreateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + createPatternAnyEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, entityRoleCreateObject: Models.EntityRoleCreateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createPatternAnyEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, entityRoleCreateObject: Models.EntityRoleCreateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, entityId, @@ -2518,43 +3864,69 @@ export class Model { } /** - * @summary Get All Entity Roles for a given entity + * @summary Get all roles for a hierarchical entity in a version of the application + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param hEntityId The hierarchical entity extractor ID. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - getHierarchicalEntityRoles(appId: string, versionId: string, hEntityId: string, options?: msRest.RequestOptionsBase): Promise; + listHierarchicalEntityRoles(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, hEntityId: string, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param hEntityId The hierarchical entity extractor ID. * @param callback The callback */ - getHierarchicalEntityRoles(appId: string, versionId: string, hEntityId: string, callback: msRest.ServiceCallback): void; + listHierarchicalEntityRoles(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, hEntityId: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param hEntityId The hierarchical entity extractor ID. * @param options The optional parameters * @param callback The callback */ - getHierarchicalEntityRoles(appId: string, versionId: string, hEntityId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getHierarchicalEntityRoles(appId: string, versionId: string, hEntityId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listHierarchicalEntityRoles(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, hEntityId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listHierarchicalEntityRoles(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, hEntityId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, hEntityId, options }, - getHierarchicalEntityRolesOperationSpec, - callback) as Promise; + listHierarchicalEntityRolesOperationSpec, + callback) as Promise; } /** - * @summary Create an entity role for an entity in the application. + * @summary Create a role for an hierarchical entity in a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param hEntityId The hierarchical entity extractor ID. @@ -2562,16 +3934,28 @@ export class Model { * @param [options] The optional parameters * @returns Promise */ - createHierarchicalEntityRole(appId: string, versionId: string, hEntityId: string, entityRoleCreateObject: Models.EntityRoleCreateObject, options?: msRest.RequestOptionsBase): Promise; + createHierarchicalEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, hEntityId: string, entityRoleCreateObject: Models.EntityRoleCreateObject, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param hEntityId The hierarchical entity extractor ID. * @param entityRoleCreateObject An entity role object containing the name of role. * @param callback The callback */ - createHierarchicalEntityRole(appId: string, versionId: string, hEntityId: string, entityRoleCreateObject: Models.EntityRoleCreateObject, callback: msRest.ServiceCallback): void; + createHierarchicalEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, hEntityId: string, entityRoleCreateObject: Models.EntityRoleCreateObject, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param hEntityId The hierarchical entity extractor ID. @@ -2579,10 +3963,12 @@ export class Model { * @param options The optional parameters * @param callback The callback */ - createHierarchicalEntityRole(appId: string, versionId: string, hEntityId: string, entityRoleCreateObject: Models.EntityRoleCreateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createHierarchicalEntityRole(appId: string, versionId: string, hEntityId: string, entityRoleCreateObject: Models.EntityRoleCreateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + createHierarchicalEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, hEntityId: string, entityRoleCreateObject: Models.EntityRoleCreateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createHierarchicalEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, hEntityId: string, entityRoleCreateObject: Models.EntityRoleCreateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, hEntityId, @@ -2594,43 +3980,69 @@ export class Model { } /** - * @summary Get All Entity Roles for a given entity + * @summary Get all roles for a prebuilt entity in a version of the application + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId entity Id * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - getCustomPrebuiltEntityRoles(appId: string, versionId: string, entityId: string, options?: msRest.RequestOptionsBase): Promise; + listCustomPrebuiltEntityRoles(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId entity Id * @param callback The callback */ - getCustomPrebuiltEntityRoles(appId: string, versionId: string, entityId: string, callback: msRest.ServiceCallback): void; + listCustomPrebuiltEntityRoles(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId entity Id * @param options The optional parameters * @param callback The callback */ - getCustomPrebuiltEntityRoles(appId: string, versionId: string, entityId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getCustomPrebuiltEntityRoles(appId: string, versionId: string, entityId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listCustomPrebuiltEntityRoles(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listCustomPrebuiltEntityRoles(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, entityId, options }, - getCustomPrebuiltEntityRolesOperationSpec, - callback) as Promise; + listCustomPrebuiltEntityRolesOperationSpec, + callback) as Promise; } /** - * @summary Create an entity role for an entity in the application. + * @summary Create a role for a prebuilt entity in a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The entity model ID. @@ -2638,16 +4050,28 @@ export class Model { * @param [options] The optional parameters * @returns Promise */ - createCustomPrebuiltEntityRole(appId: string, versionId: string, entityId: string, entityRoleCreateObject: Models.EntityRoleCreateObject, options?: msRest.RequestOptionsBase): Promise; + createCustomPrebuiltEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, entityRoleCreateObject: Models.EntityRoleCreateObject, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The entity model ID. * @param entityRoleCreateObject An entity role object containing the name of role. * @param callback The callback */ - createCustomPrebuiltEntityRole(appId: string, versionId: string, entityId: string, entityRoleCreateObject: Models.EntityRoleCreateObject, callback: msRest.ServiceCallback): void; + createCustomPrebuiltEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, entityRoleCreateObject: Models.EntityRoleCreateObject, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The entity model ID. @@ -2655,10 +4079,12 @@ export class Model { * @param options The optional parameters * @param callback The callback */ - createCustomPrebuiltEntityRole(appId: string, versionId: string, entityId: string, entityRoleCreateObject: Models.EntityRoleCreateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createCustomPrebuiltEntityRole(appId: string, versionId: string, entityId: string, entityRoleCreateObject: Models.EntityRoleCreateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + createCustomPrebuiltEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, entityRoleCreateObject: Models.EntityRoleCreateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createCustomPrebuiltEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, entityRoleCreateObject: Models.EntityRoleCreateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, entityId, @@ -2670,32 +4096,53 @@ export class Model { } /** - * @summary Get the explicit list of the pattern.any entity. + * @summary Get the explicit (exception) list of the pattern.any entity in a version of the + * application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The Pattern.Any entity id. * @param [options] The optional parameters * @returns Promise */ - getExplicitList(appId: string, versionId: string, entityId: string, options?: msRest.RequestOptionsBase): Promise; + getExplicitList(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The Pattern.Any entity id. * @param callback The callback */ - getExplicitList(appId: string, versionId: string, entityId: string, callback: msRest.ServiceCallback): void; + getExplicitList(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The Pattern.Any entity id. * @param options The optional parameters * @param callback The callback */ - getExplicitList(appId: string, versionId: string, entityId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getExplicitList(appId: string, versionId: string, entityId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + getExplicitList(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getExplicitList(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, entityId, @@ -2706,7 +4153,14 @@ export class Model { } /** - * @summary Add a new item to the explicit list for the Pattern.Any entity. + * @summary Add a new exception to the explicit list for the Pattern.Any entity in a version of the + * application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The Pattern.Any entity extractor ID. @@ -2714,16 +4168,28 @@ export class Model { * @param [options] The optional parameters * @returns Promise */ - addExplicitListItem(appId: string, versionId: string, entityId: string, item: Models.ExplicitListItemCreateObject, options?: msRest.RequestOptionsBase): Promise; + addExplicitListItem(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, item: Models.ExplicitListItemCreateObject, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The Pattern.Any entity extractor ID. * @param item The new explicit list item. * @param callback The callback */ - addExplicitListItem(appId: string, versionId: string, entityId: string, item: Models.ExplicitListItemCreateObject, callback: msRest.ServiceCallback): void; + addExplicitListItem(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, item: Models.ExplicitListItemCreateObject, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The Pattern.Any entity extractor ID. @@ -2731,10 +4197,12 @@ export class Model { * @param options The optional parameters * @param callback The callback */ - addExplicitListItem(appId: string, versionId: string, entityId: string, item: Models.ExplicitListItemCreateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - addExplicitListItem(appId: string, versionId: string, entityId: string, item: Models.ExplicitListItemCreateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + addExplicitListItem(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, item: Models.ExplicitListItemCreateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + addExplicitListItem(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, item: Models.ExplicitListItemCreateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, entityId, @@ -2746,32 +4214,52 @@ export class Model { } /** - * @summary Gets information of a regex entity model. + * @summary Gets information about a regular expression entity in a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. - * @param regexEntityId The regex entity model ID. + * @param regexEntityId The regular expression entity model ID. * @param [options] The optional parameters * @returns Promise */ - getRegexEntityEntityInfo(appId: string, versionId: string, regexEntityId: string, options?: msRest.RequestOptionsBase): Promise; + getRegexEntityEntityInfo(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, regexEntityId: string, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. - * @param regexEntityId The regex entity model ID. + * @param regexEntityId The regular expression entity model ID. * @param callback The callback */ - getRegexEntityEntityInfo(appId: string, versionId: string, regexEntityId: string, callback: msRest.ServiceCallback): void; + getRegexEntityEntityInfo(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, regexEntityId: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. - * @param regexEntityId The regex entity model ID. + * @param regexEntityId The regular expression entity model ID. * @param options The optional parameters * @param callback The callback */ - getRegexEntityEntityInfo(appId: string, versionId: string, regexEntityId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getRegexEntityEntityInfo(appId: string, versionId: string, regexEntityId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + getRegexEntityEntityInfo(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, regexEntityId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getRegexEntityEntityInfo(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, regexEntityId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, regexEntityId, @@ -2782,35 +4270,55 @@ export class Model { } /** - * @summary Updates the regex entity model . + * @summary Updates the regular expression entity in a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. - * @param regexEntityId The regex entity extractor ID. + * @param regexEntityId The regular expression entity extractor ID. * @param regexEntityUpdateObject An object containing the new entity name and regex pattern. * @param [options] The optional parameters * @returns Promise */ - updateRegexEntityModel(appId: string, versionId: string, regexEntityId: string, regexEntityUpdateObject: Models.RegexModelUpdateObject, options?: msRest.RequestOptionsBase): Promise; + updateRegexEntityModel(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, regexEntityId: string, regexEntityUpdateObject: Models.RegexModelUpdateObject, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. - * @param regexEntityId The regex entity extractor ID. + * @param regexEntityId The regular expression entity extractor ID. * @param regexEntityUpdateObject An object containing the new entity name and regex pattern. * @param callback The callback */ - updateRegexEntityModel(appId: string, versionId: string, regexEntityId: string, regexEntityUpdateObject: Models.RegexModelUpdateObject, callback: msRest.ServiceCallback): void; + updateRegexEntityModel(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, regexEntityId: string, regexEntityUpdateObject: Models.RegexModelUpdateObject, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. - * @param regexEntityId The regex entity extractor ID. + * @param regexEntityId The regular expression entity extractor ID. * @param regexEntityUpdateObject An object containing the new entity name and regex pattern. * @param options The optional parameters * @param callback The callback */ - updateRegexEntityModel(appId: string, versionId: string, regexEntityId: string, regexEntityUpdateObject: Models.RegexModelUpdateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - updateRegexEntityModel(appId: string, versionId: string, regexEntityId: string, regexEntityUpdateObject: Models.RegexModelUpdateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + updateRegexEntityModel(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, regexEntityId: string, regexEntityUpdateObject: Models.RegexModelUpdateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updateRegexEntityModel(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, regexEntityId: string, regexEntityUpdateObject: Models.RegexModelUpdateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, regexEntityId, @@ -2822,32 +4330,52 @@ export class Model { } /** - * @summary Deletes a regex entity model from the application. + * @summary Deletes a regular expression entity from a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. - * @param regexEntityId The regex entity extractor ID. + * @param regexEntityId The regular expression entity extractor ID. * @param [options] The optional parameters * @returns Promise */ - deleteRegexEntityModel(appId: string, versionId: string, regexEntityId: string, options?: msRest.RequestOptionsBase): Promise; + deleteRegexEntityModel(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, regexEntityId: string, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. - * @param regexEntityId The regex entity extractor ID. + * @param regexEntityId The regular expression entity extractor ID. * @param callback The callback */ - deleteRegexEntityModel(appId: string, versionId: string, regexEntityId: string, callback: msRest.ServiceCallback): void; + deleteRegexEntityModel(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, regexEntityId: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. - * @param regexEntityId The regex entity extractor ID. + * @param regexEntityId The regular expression entity extractor ID. * @param options The optional parameters * @param callback The callback */ - deleteRegexEntityModel(appId: string, versionId: string, regexEntityId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteRegexEntityModel(appId: string, versionId: string, regexEntityId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + deleteRegexEntityModel(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, regexEntityId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteRegexEntityModel(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, regexEntityId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, regexEntityId, @@ -2858,32 +4386,52 @@ export class Model { } /** - * @summary Gets information about the application version's Pattern.Any model. + * @summary Gets information about the Pattern.Any model in a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The entity extractor ID. * @param [options] The optional parameters * @returns Promise */ - getPatternAnyEntityInfo(appId: string, versionId: string, entityId: string, options?: msRest.RequestOptionsBase): Promise; + getPatternAnyEntityInfo(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The entity extractor ID. * @param callback The callback */ - getPatternAnyEntityInfo(appId: string, versionId: string, entityId: string, callback: msRest.ServiceCallback): void; + getPatternAnyEntityInfo(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The entity extractor ID. * @param options The optional parameters * @param callback The callback */ - getPatternAnyEntityInfo(appId: string, versionId: string, entityId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getPatternAnyEntityInfo(appId: string, versionId: string, entityId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + getPatternAnyEntityInfo(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getPatternAnyEntityInfo(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, entityId, @@ -2894,7 +4442,14 @@ export class Model { } /** - * @summary Updates the name and explicit list of a Pattern.Any entity model. + * @summary Updates the name and explicit (exception) list of a Pattern.Any entity model in a + * version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The Pattern.Any entity extractor ID. @@ -2902,16 +4457,28 @@ export class Model { * @param [options] The optional parameters * @returns Promise */ - updatePatternAnyEntityModel(appId: string, versionId: string, entityId: string, patternAnyUpdateObject: Models.PatternAnyModelUpdateObject, options?: msRest.RequestOptionsBase): Promise; + updatePatternAnyEntityModel(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, patternAnyUpdateObject: Models.PatternAnyModelUpdateObject, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The Pattern.Any entity extractor ID. * @param patternAnyUpdateObject An object containing the explicit list of the Pattern.Any entity. * @param callback The callback */ - updatePatternAnyEntityModel(appId: string, versionId: string, entityId: string, patternAnyUpdateObject: Models.PatternAnyModelUpdateObject, callback: msRest.ServiceCallback): void; + updatePatternAnyEntityModel(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, patternAnyUpdateObject: Models.PatternAnyModelUpdateObject, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The Pattern.Any entity extractor ID. @@ -2919,10 +4486,12 @@ export class Model { * @param options The optional parameters * @param callback The callback */ - updatePatternAnyEntityModel(appId: string, versionId: string, entityId: string, patternAnyUpdateObject: Models.PatternAnyModelUpdateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - updatePatternAnyEntityModel(appId: string, versionId: string, entityId: string, patternAnyUpdateObject: Models.PatternAnyModelUpdateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + updatePatternAnyEntityModel(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, patternAnyUpdateObject: Models.PatternAnyModelUpdateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updatePatternAnyEntityModel(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, patternAnyUpdateObject: Models.PatternAnyModelUpdateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, entityId, @@ -2934,32 +4503,52 @@ export class Model { } /** - * @summary Deletes a Pattern.Any entity extractor from the application. + * @summary Deletes a Pattern.Any entity extractor from a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The Pattern.Any entity extractor ID. * @param [options] The optional parameters * @returns Promise */ - deletePatternAnyEntityModel(appId: string, versionId: string, entityId: string, options?: msRest.RequestOptionsBase): Promise; + deletePatternAnyEntityModel(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The Pattern.Any entity extractor ID. * @param callback The callback */ - deletePatternAnyEntityModel(appId: string, versionId: string, entityId: string, callback: msRest.ServiceCallback): void; + deletePatternAnyEntityModel(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The Pattern.Any entity extractor ID. * @param options The optional parameters * @param callback The callback */ - deletePatternAnyEntityModel(appId: string, versionId: string, entityId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deletePatternAnyEntityModel(appId: string, versionId: string, entityId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + deletePatternAnyEntityModel(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deletePatternAnyEntityModel(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, entityId, @@ -2970,7 +4559,13 @@ export class Model { } /** - * @summary Get one entity role for a given entity + * @summary Get one role for a given entity in a version of the application + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId entity ID. @@ -2978,16 +4573,28 @@ export class Model { * @param [options] The optional parameters * @returns Promise */ - getEntityRole(appId: string, versionId: string, entityId: string, roleId: string, options?: msRest.RequestOptionsBase): Promise; + getEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, roleId: string, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId entity ID. * @param roleId entity role ID. * @param callback The callback */ - getEntityRole(appId: string, versionId: string, entityId: string, roleId: string, callback: msRest.ServiceCallback): void; + getEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, roleId: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId entity ID. @@ -2995,10 +4602,12 @@ export class Model { * @param options The optional parameters * @param callback The callback */ - getEntityRole(appId: string, versionId: string, entityId: string, roleId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getEntityRole(appId: string, versionId: string, entityId: string, roleId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + getEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, roleId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, roleId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, entityId, @@ -3010,7 +4619,13 @@ export class Model { } /** - * @summary Update an entity role for a given entity + * @summary Update a role for a given entity in a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The entity ID. @@ -3019,8 +4634,14 @@ export class Model { * @param [options] The optional parameters * @returns Promise */ - updateEntityRole(appId: string, versionId: string, entityId: string, roleId: string, entityRoleUpdateObject: Models.EntityRoleUpdateObject, options?: msRest.RequestOptionsBase): Promise; + updateEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, roleId: string, entityRoleUpdateObject: Models.EntityRoleUpdateObject, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The entity ID. @@ -3028,8 +4649,14 @@ export class Model { * @param entityRoleUpdateObject The new entity role. * @param callback The callback */ - updateEntityRole(appId: string, versionId: string, entityId: string, roleId: string, entityRoleUpdateObject: Models.EntityRoleUpdateObject, callback: msRest.ServiceCallback): void; + updateEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, roleId: string, entityRoleUpdateObject: Models.EntityRoleUpdateObject, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The entity ID. @@ -3038,10 +4665,12 @@ export class Model { * @param options The optional parameters * @param callback The callback */ - updateEntityRole(appId: string, versionId: string, entityId: string, roleId: string, entityRoleUpdateObject: Models.EntityRoleUpdateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - updateEntityRole(appId: string, versionId: string, entityId: string, roleId: string, entityRoleUpdateObject: Models.EntityRoleUpdateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + updateEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, roleId: string, entityRoleUpdateObject: Models.EntityRoleUpdateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updateEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, roleId: string, entityRoleUpdateObject: Models.EntityRoleUpdateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, entityId, @@ -3054,7 +4683,13 @@ export class Model { } /** - * @summary Delete an entity role. + * @summary Delete an entity role in a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The entity ID. @@ -3062,16 +4697,28 @@ export class Model { * @param [options] The optional parameters * @returns Promise */ - deleteEntityRole(appId: string, versionId: string, entityId: string, roleId: string, options?: msRest.RequestOptionsBase): Promise; + deleteEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, roleId: string, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The entity ID. * @param roleId The entity role Id. * @param callback The callback */ - deleteEntityRole(appId: string, versionId: string, entityId: string, roleId: string, callback: msRest.ServiceCallback): void; + deleteEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, roleId: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The entity ID. @@ -3079,10 +4726,12 @@ export class Model { * @param options The optional parameters * @param callback The callback */ - deleteEntityRole(appId: string, versionId: string, entityId: string, roleId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteEntityRole(appId: string, versionId: string, entityId: string, roleId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + deleteEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, roleId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, roleId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, entityId, @@ -3094,7 +4743,13 @@ export class Model { } /** - * @summary Get one entity role for a given entity + * @summary Get one role for a given prebuilt entity in a version of the application + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId entity ID. @@ -3102,16 +4757,28 @@ export class Model { * @param [options] The optional parameters * @returns Promise */ - getPrebuiltEntityRole(appId: string, versionId: string, entityId: string, roleId: string, options?: msRest.RequestOptionsBase): Promise; + getPrebuiltEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, roleId: string, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId entity ID. * @param roleId entity role ID. * @param callback The callback */ - getPrebuiltEntityRole(appId: string, versionId: string, entityId: string, roleId: string, callback: msRest.ServiceCallback): void; + getPrebuiltEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, roleId: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId entity ID. @@ -3119,10 +4786,12 @@ export class Model { * @param options The optional parameters * @param callback The callback */ - getPrebuiltEntityRole(appId: string, versionId: string, entityId: string, roleId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getPrebuiltEntityRole(appId: string, versionId: string, entityId: string, roleId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + getPrebuiltEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, roleId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getPrebuiltEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, roleId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, entityId, @@ -3134,7 +4803,13 @@ export class Model { } /** - * @summary Update an entity role for a given entity + * @summary Update a role for a given prebuilt entity in a version of the application + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The entity ID. @@ -3143,8 +4818,14 @@ export class Model { * @param [options] The optional parameters * @returns Promise */ - updatePrebuiltEntityRole(appId: string, versionId: string, entityId: string, roleId: string, entityRoleUpdateObject: Models.EntityRoleUpdateObject, options?: msRest.RequestOptionsBase): Promise; + updatePrebuiltEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, roleId: string, entityRoleUpdateObject: Models.EntityRoleUpdateObject, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The entity ID. @@ -3152,8 +4833,14 @@ export class Model { * @param entityRoleUpdateObject The new entity role. * @param callback The callback */ - updatePrebuiltEntityRole(appId: string, versionId: string, entityId: string, roleId: string, entityRoleUpdateObject: Models.EntityRoleUpdateObject, callback: msRest.ServiceCallback): void; + updatePrebuiltEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, roleId: string, entityRoleUpdateObject: Models.EntityRoleUpdateObject, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The entity ID. @@ -3162,10 +4849,12 @@ export class Model { * @param options The optional parameters * @param callback The callback */ - updatePrebuiltEntityRole(appId: string, versionId: string, entityId: string, roleId: string, entityRoleUpdateObject: Models.EntityRoleUpdateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - updatePrebuiltEntityRole(appId: string, versionId: string, entityId: string, roleId: string, entityRoleUpdateObject: Models.EntityRoleUpdateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + updatePrebuiltEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, roleId: string, entityRoleUpdateObject: Models.EntityRoleUpdateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updatePrebuiltEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, roleId: string, entityRoleUpdateObject: Models.EntityRoleUpdateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, entityId, @@ -3178,7 +4867,13 @@ export class Model { } /** - * @summary Delete an entity role. + * @summary Delete a role in a prebuilt entity in a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The entity ID. @@ -3186,16 +4881,28 @@ export class Model { * @param [options] The optional parameters * @returns Promise */ - deletePrebuiltEntityRole(appId: string, versionId: string, entityId: string, roleId: string, options?: msRest.RequestOptionsBase): Promise; + deletePrebuiltEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, roleId: string, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The entity ID. * @param roleId The entity role Id. * @param callback The callback */ - deletePrebuiltEntityRole(appId: string, versionId: string, entityId: string, roleId: string, callback: msRest.ServiceCallback): void; + deletePrebuiltEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, roleId: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The entity ID. @@ -3203,10 +4910,12 @@ export class Model { * @param options The optional parameters * @param callback The callback */ - deletePrebuiltEntityRole(appId: string, versionId: string, entityId: string, roleId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deletePrebuiltEntityRole(appId: string, versionId: string, entityId: string, roleId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + deletePrebuiltEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, roleId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deletePrebuiltEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, roleId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, entityId, @@ -3218,7 +4927,13 @@ export class Model { } /** - * @summary Get one entity role for a given entity + * @summary Get one role for a given list entity in a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId entity ID. @@ -3226,16 +4941,28 @@ export class Model { * @param [options] The optional parameters * @returns Promise */ - getClosedListEntityRole(appId: string, versionId: string, entityId: string, roleId: string, options?: msRest.RequestOptionsBase): Promise; + getClosedListEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, roleId: string, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId entity ID. * @param roleId entity role ID. * @param callback The callback */ - getClosedListEntityRole(appId: string, versionId: string, entityId: string, roleId: string, callback: msRest.ServiceCallback): void; + getClosedListEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, roleId: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId entity ID. @@ -3243,10 +4970,12 @@ export class Model { * @param options The optional parameters * @param callback The callback */ - getClosedListEntityRole(appId: string, versionId: string, entityId: string, roleId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getClosedListEntityRole(appId: string, versionId: string, entityId: string, roleId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + getClosedListEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, roleId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getClosedListEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, roleId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, entityId, @@ -3258,7 +4987,13 @@ export class Model { } /** - * @summary Update an entity role for a given entity + * @summary Update a role for a given list entity in a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The entity ID. @@ -3267,8 +5002,14 @@ export class Model { * @param [options] The optional parameters * @returns Promise */ - updateClosedListEntityRole(appId: string, versionId: string, entityId: string, roleId: string, entityRoleUpdateObject: Models.EntityRoleUpdateObject, options?: msRest.RequestOptionsBase): Promise; + updateClosedListEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, roleId: string, entityRoleUpdateObject: Models.EntityRoleUpdateObject, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The entity ID. @@ -3276,8 +5017,14 @@ export class Model { * @param entityRoleUpdateObject The new entity role. * @param callback The callback */ - updateClosedListEntityRole(appId: string, versionId: string, entityId: string, roleId: string, entityRoleUpdateObject: Models.EntityRoleUpdateObject, callback: msRest.ServiceCallback): void; + updateClosedListEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, roleId: string, entityRoleUpdateObject: Models.EntityRoleUpdateObject, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The entity ID. @@ -3286,10 +5033,12 @@ export class Model { * @param options The optional parameters * @param callback The callback */ - updateClosedListEntityRole(appId: string, versionId: string, entityId: string, roleId: string, entityRoleUpdateObject: Models.EntityRoleUpdateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - updateClosedListEntityRole(appId: string, versionId: string, entityId: string, roleId: string, entityRoleUpdateObject: Models.EntityRoleUpdateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + updateClosedListEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, roleId: string, entityRoleUpdateObject: Models.EntityRoleUpdateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updateClosedListEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, roleId: string, entityRoleUpdateObject: Models.EntityRoleUpdateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, entityId, @@ -3302,7 +5051,13 @@ export class Model { } /** - * @summary Delete an entity role. + * @summary Delete a role for a given list entity in a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The entity ID. @@ -3310,16 +5065,28 @@ export class Model { * @param [options] The optional parameters * @returns Promise */ - deleteClosedListEntityRole(appId: string, versionId: string, entityId: string, roleId: string, options?: msRest.RequestOptionsBase): Promise; + deleteClosedListEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, roleId: string, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The entity ID. * @param roleId The entity role Id. * @param callback The callback */ - deleteClosedListEntityRole(appId: string, versionId: string, entityId: string, roleId: string, callback: msRest.ServiceCallback): void; + deleteClosedListEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, roleId: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The entity ID. @@ -3327,10 +5094,12 @@ export class Model { * @param options The optional parameters * @param callback The callback */ - deleteClosedListEntityRole(appId: string, versionId: string, entityId: string, roleId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteClosedListEntityRole(appId: string, versionId: string, entityId: string, roleId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + deleteClosedListEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, roleId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteClosedListEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, roleId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, entityId, @@ -3342,7 +5111,13 @@ export class Model { } /** - * @summary Get one entity role for a given entity + * @summary Get one role for a given regular expression entity in a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId entity ID. @@ -3350,16 +5125,28 @@ export class Model { * @param [options] The optional parameters * @returns Promise */ - getRegexEntityRole(appId: string, versionId: string, entityId: string, roleId: string, options?: msRest.RequestOptionsBase): Promise; + getRegexEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, roleId: string, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId entity ID. * @param roleId entity role ID. * @param callback The callback */ - getRegexEntityRole(appId: string, versionId: string, entityId: string, roleId: string, callback: msRest.ServiceCallback): void; + getRegexEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, roleId: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId entity ID. @@ -3367,10 +5154,12 @@ export class Model { * @param options The optional parameters * @param callback The callback */ - getRegexEntityRole(appId: string, versionId: string, entityId: string, roleId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getRegexEntityRole(appId: string, versionId: string, entityId: string, roleId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + getRegexEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, roleId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getRegexEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, roleId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, entityId, @@ -3382,7 +5171,13 @@ export class Model { } /** - * @summary Update an entity role for a given entity + * @summary Update a role for a given regular expression entity in a version of the application + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The entity ID. @@ -3391,8 +5186,14 @@ export class Model { * @param [options] The optional parameters * @returns Promise */ - updateRegexEntityRole(appId: string, versionId: string, entityId: string, roleId: string, entityRoleUpdateObject: Models.EntityRoleUpdateObject, options?: msRest.RequestOptionsBase): Promise; + updateRegexEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, roleId: string, entityRoleUpdateObject: Models.EntityRoleUpdateObject, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The entity ID. @@ -3400,8 +5201,14 @@ export class Model { * @param entityRoleUpdateObject The new entity role. * @param callback The callback */ - updateRegexEntityRole(appId: string, versionId: string, entityId: string, roleId: string, entityRoleUpdateObject: Models.EntityRoleUpdateObject, callback: msRest.ServiceCallback): void; + updateRegexEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, roleId: string, entityRoleUpdateObject: Models.EntityRoleUpdateObject, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The entity ID. @@ -3410,10 +5217,12 @@ export class Model { * @param options The optional parameters * @param callback The callback */ - updateRegexEntityRole(appId: string, versionId: string, entityId: string, roleId: string, entityRoleUpdateObject: Models.EntityRoleUpdateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - updateRegexEntityRole(appId: string, versionId: string, entityId: string, roleId: string, entityRoleUpdateObject: Models.EntityRoleUpdateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + updateRegexEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, roleId: string, entityRoleUpdateObject: Models.EntityRoleUpdateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updateRegexEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, roleId: string, entityRoleUpdateObject: Models.EntityRoleUpdateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, entityId, @@ -3426,7 +5235,13 @@ export class Model { } /** - * @summary Delete an entity role. + * @summary Delete a role for a given regular expression in a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The entity ID. @@ -3434,16 +5249,28 @@ export class Model { * @param [options] The optional parameters * @returns Promise */ - deleteRegexEntityRole(appId: string, versionId: string, entityId: string, roleId: string, options?: msRest.RequestOptionsBase): Promise; + deleteRegexEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, roleId: string, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The entity ID. * @param roleId The entity role Id. * @param callback The callback */ - deleteRegexEntityRole(appId: string, versionId: string, entityId: string, roleId: string, callback: msRest.ServiceCallback): void; + deleteRegexEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, roleId: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The entity ID. @@ -3451,10 +5278,12 @@ export class Model { * @param options The optional parameters * @param callback The callback */ - deleteRegexEntityRole(appId: string, versionId: string, entityId: string, roleId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteRegexEntityRole(appId: string, versionId: string, entityId: string, roleId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + deleteRegexEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, roleId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteRegexEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, roleId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, entityId, @@ -3466,7 +5295,13 @@ export class Model { } /** - * @summary Get one entity role for a given entity + * @summary Get one role for a given composite entity in a version of the application + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param cEntityId The composite entity extractor ID. @@ -3474,16 +5309,28 @@ export class Model { * @param [options] The optional parameters * @returns Promise */ - getCompositeEntityRole(appId: string, versionId: string, cEntityId: string, roleId: string, options?: msRest.RequestOptionsBase): Promise; + getCompositeEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, cEntityId: string, roleId: string, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param cEntityId The composite entity extractor ID. * @param roleId entity role ID. * @param callback The callback */ - getCompositeEntityRole(appId: string, versionId: string, cEntityId: string, roleId: string, callback: msRest.ServiceCallback): void; + getCompositeEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, cEntityId: string, roleId: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param cEntityId The composite entity extractor ID. @@ -3491,10 +5338,12 @@ export class Model { * @param options The optional parameters * @param callback The callback */ - getCompositeEntityRole(appId: string, versionId: string, cEntityId: string, roleId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getCompositeEntityRole(appId: string, versionId: string, cEntityId: string, roleId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + getCompositeEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, cEntityId: string, roleId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getCompositeEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, cEntityId: string, roleId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, cEntityId, @@ -3506,7 +5355,13 @@ export class Model { } /** - * @summary Update an entity role for a given entity + * @summary Update a role for a given composite entity in a version of the application + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param cEntityId The composite entity extractor ID. @@ -3515,8 +5370,14 @@ export class Model { * @param [options] The optional parameters * @returns Promise */ - updateCompositeEntityRole(appId: string, versionId: string, cEntityId: string, roleId: string, entityRoleUpdateObject: Models.EntityRoleUpdateObject, options?: msRest.RequestOptionsBase): Promise; + updateCompositeEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, cEntityId: string, roleId: string, entityRoleUpdateObject: Models.EntityRoleUpdateObject, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param cEntityId The composite entity extractor ID. @@ -3524,8 +5385,14 @@ export class Model { * @param entityRoleUpdateObject The new entity role. * @param callback The callback */ - updateCompositeEntityRole(appId: string, versionId: string, cEntityId: string, roleId: string, entityRoleUpdateObject: Models.EntityRoleUpdateObject, callback: msRest.ServiceCallback): void; + updateCompositeEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, cEntityId: string, roleId: string, entityRoleUpdateObject: Models.EntityRoleUpdateObject, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param cEntityId The composite entity extractor ID. @@ -3534,10 +5401,12 @@ export class Model { * @param options The optional parameters * @param callback The callback */ - updateCompositeEntityRole(appId: string, versionId: string, cEntityId: string, roleId: string, entityRoleUpdateObject: Models.EntityRoleUpdateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - updateCompositeEntityRole(appId: string, versionId: string, cEntityId: string, roleId: string, entityRoleUpdateObject: Models.EntityRoleUpdateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + updateCompositeEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, cEntityId: string, roleId: string, entityRoleUpdateObject: Models.EntityRoleUpdateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updateCompositeEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, cEntityId: string, roleId: string, entityRoleUpdateObject: Models.EntityRoleUpdateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, cEntityId, @@ -3550,7 +5419,13 @@ export class Model { } /** - * @summary Delete an entity role. + * @summary Delete a role for a given composite entity in a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param cEntityId The composite entity extractor ID. @@ -3558,16 +5433,28 @@ export class Model { * @param [options] The optional parameters * @returns Promise */ - deleteCompositeEntityRole(appId: string, versionId: string, cEntityId: string, roleId: string, options?: msRest.RequestOptionsBase): Promise; + deleteCompositeEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, cEntityId: string, roleId: string, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param cEntityId The composite entity extractor ID. * @param roleId The entity role Id. * @param callback The callback */ - deleteCompositeEntityRole(appId: string, versionId: string, cEntityId: string, roleId: string, callback: msRest.ServiceCallback): void; + deleteCompositeEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, cEntityId: string, roleId: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param cEntityId The composite entity extractor ID. @@ -3575,10 +5462,12 @@ export class Model { * @param options The optional parameters * @param callback The callback */ - deleteCompositeEntityRole(appId: string, versionId: string, cEntityId: string, roleId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteCompositeEntityRole(appId: string, versionId: string, cEntityId: string, roleId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + deleteCompositeEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, cEntityId: string, roleId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteCompositeEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, cEntityId: string, roleId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, cEntityId, @@ -3590,7 +5479,13 @@ export class Model { } /** - * @summary Get one entity role for a given entity + * @summary Get one role for a given Pattern.any entity in a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId entity ID. @@ -3598,16 +5493,28 @@ export class Model { * @param [options] The optional parameters * @returns Promise */ - getPatternAnyEntityRole(appId: string, versionId: string, entityId: string, roleId: string, options?: msRest.RequestOptionsBase): Promise; + getPatternAnyEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, roleId: string, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId entity ID. * @param roleId entity role ID. * @param callback The callback */ - getPatternAnyEntityRole(appId: string, versionId: string, entityId: string, roleId: string, callback: msRest.ServiceCallback): void; + getPatternAnyEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, roleId: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId entity ID. @@ -3615,10 +5522,12 @@ export class Model { * @param options The optional parameters * @param callback The callback */ - getPatternAnyEntityRole(appId: string, versionId: string, entityId: string, roleId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getPatternAnyEntityRole(appId: string, versionId: string, entityId: string, roleId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + getPatternAnyEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, roleId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getPatternAnyEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, roleId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, entityId, @@ -3630,7 +5539,13 @@ export class Model { } /** - * @summary Update an entity role for a given entity + * @summary Update a role for a given Pattern.any entity in a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The entity ID. @@ -3639,8 +5554,14 @@ export class Model { * @param [options] The optional parameters * @returns Promise */ - updatePatternAnyEntityRole(appId: string, versionId: string, entityId: string, roleId: string, entityRoleUpdateObject: Models.EntityRoleUpdateObject, options?: msRest.RequestOptionsBase): Promise; + updatePatternAnyEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, roleId: string, entityRoleUpdateObject: Models.EntityRoleUpdateObject, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The entity ID. @@ -3648,8 +5569,14 @@ export class Model { * @param entityRoleUpdateObject The new entity role. * @param callback The callback */ - updatePatternAnyEntityRole(appId: string, versionId: string, entityId: string, roleId: string, entityRoleUpdateObject: Models.EntityRoleUpdateObject, callback: msRest.ServiceCallback): void; + updatePatternAnyEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, roleId: string, entityRoleUpdateObject: Models.EntityRoleUpdateObject, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The entity ID. @@ -3658,10 +5585,12 @@ export class Model { * @param options The optional parameters * @param callback The callback */ - updatePatternAnyEntityRole(appId: string, versionId: string, entityId: string, roleId: string, entityRoleUpdateObject: Models.EntityRoleUpdateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - updatePatternAnyEntityRole(appId: string, versionId: string, entityId: string, roleId: string, entityRoleUpdateObject: Models.EntityRoleUpdateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + updatePatternAnyEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, roleId: string, entityRoleUpdateObject: Models.EntityRoleUpdateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updatePatternAnyEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, roleId: string, entityRoleUpdateObject: Models.EntityRoleUpdateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, entityId, @@ -3674,7 +5603,13 @@ export class Model { } /** - * @summary Delete an entity role. + * @summary Delete a role for a given Pattern.any entity in a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The entity ID. @@ -3682,16 +5617,28 @@ export class Model { * @param [options] The optional parameters * @returns Promise */ - deletePatternAnyEntityRole(appId: string, versionId: string, entityId: string, roleId: string, options?: msRest.RequestOptionsBase): Promise; + deletePatternAnyEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, roleId: string, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The entity ID. * @param roleId The entity role Id. * @param callback The callback */ - deletePatternAnyEntityRole(appId: string, versionId: string, entityId: string, roleId: string, callback: msRest.ServiceCallback): void; + deletePatternAnyEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, roleId: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The entity ID. @@ -3699,10 +5646,12 @@ export class Model { * @param options The optional parameters * @param callback The callback */ - deletePatternAnyEntityRole(appId: string, versionId: string, entityId: string, roleId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deletePatternAnyEntityRole(appId: string, versionId: string, entityId: string, roleId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + deletePatternAnyEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, roleId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deletePatternAnyEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, roleId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, entityId, @@ -3714,7 +5663,13 @@ export class Model { } /** - * @summary Get one entity role for a given entity + * @summary Get one role for a given hierarchical entity in a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param hEntityId The hierarchical entity extractor ID. @@ -3722,16 +5677,28 @@ export class Model { * @param [options] The optional parameters * @returns Promise */ - getHierarchicalEntityRole(appId: string, versionId: string, hEntityId: string, roleId: string, options?: msRest.RequestOptionsBase): Promise; + getHierarchicalEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, hEntityId: string, roleId: string, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param hEntityId The hierarchical entity extractor ID. * @param roleId entity role ID. * @param callback The callback */ - getHierarchicalEntityRole(appId: string, versionId: string, hEntityId: string, roleId: string, callback: msRest.ServiceCallback): void; + getHierarchicalEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, hEntityId: string, roleId: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param hEntityId The hierarchical entity extractor ID. @@ -3739,10 +5706,12 @@ export class Model { * @param options The optional parameters * @param callback The callback */ - getHierarchicalEntityRole(appId: string, versionId: string, hEntityId: string, roleId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getHierarchicalEntityRole(appId: string, versionId: string, hEntityId: string, roleId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + getHierarchicalEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, hEntityId: string, roleId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getHierarchicalEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, hEntityId: string, roleId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, hEntityId, @@ -3754,7 +5723,13 @@ export class Model { } /** - * @summary Update an entity role for a given entity + * @summary Update a role for a given hierarchical entity in a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param hEntityId The hierarchical entity extractor ID. @@ -3763,8 +5738,14 @@ export class Model { * @param [options] The optional parameters * @returns Promise */ - updateHierarchicalEntityRole(appId: string, versionId: string, hEntityId: string, roleId: string, entityRoleUpdateObject: Models.EntityRoleUpdateObject, options?: msRest.RequestOptionsBase): Promise; + updateHierarchicalEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, hEntityId: string, roleId: string, entityRoleUpdateObject: Models.EntityRoleUpdateObject, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param hEntityId The hierarchical entity extractor ID. @@ -3772,8 +5753,14 @@ export class Model { * @param entityRoleUpdateObject The new entity role. * @param callback The callback */ - updateHierarchicalEntityRole(appId: string, versionId: string, hEntityId: string, roleId: string, entityRoleUpdateObject: Models.EntityRoleUpdateObject, callback: msRest.ServiceCallback): void; + updateHierarchicalEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, hEntityId: string, roleId: string, entityRoleUpdateObject: Models.EntityRoleUpdateObject, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param hEntityId The hierarchical entity extractor ID. @@ -3782,10 +5769,12 @@ export class Model { * @param options The optional parameters * @param callback The callback */ - updateHierarchicalEntityRole(appId: string, versionId: string, hEntityId: string, roleId: string, entityRoleUpdateObject: Models.EntityRoleUpdateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - updateHierarchicalEntityRole(appId: string, versionId: string, hEntityId: string, roleId: string, entityRoleUpdateObject: Models.EntityRoleUpdateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + updateHierarchicalEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, hEntityId: string, roleId: string, entityRoleUpdateObject: Models.EntityRoleUpdateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updateHierarchicalEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, hEntityId: string, roleId: string, entityRoleUpdateObject: Models.EntityRoleUpdateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, hEntityId, @@ -3798,7 +5787,13 @@ export class Model { } /** - * @summary Delete an entity role. + * @summary Delete a role for a given hierarchical role in a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param hEntityId The hierarchical entity extractor ID. @@ -3806,16 +5801,28 @@ export class Model { * @param [options] The optional parameters * @returns Promise */ - deleteHierarchicalEntityRole(appId: string, versionId: string, hEntityId: string, roleId: string, options?: msRest.RequestOptionsBase): Promise; + deleteHierarchicalEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, hEntityId: string, roleId: string, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param hEntityId The hierarchical entity extractor ID. * @param roleId The entity role Id. * @param callback The callback */ - deleteHierarchicalEntityRole(appId: string, versionId: string, hEntityId: string, roleId: string, callback: msRest.ServiceCallback): void; + deleteHierarchicalEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, hEntityId: string, roleId: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param hEntityId The hierarchical entity extractor ID. @@ -3823,10 +5830,12 @@ export class Model { * @param options The optional parameters * @param callback The callback */ - deleteHierarchicalEntityRole(appId: string, versionId: string, hEntityId: string, roleId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteHierarchicalEntityRole(appId: string, versionId: string, hEntityId: string, roleId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + deleteHierarchicalEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, hEntityId: string, roleId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteHierarchicalEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, hEntityId: string, roleId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, hEntityId, @@ -3838,7 +5847,13 @@ export class Model { } /** - * @summary Get one entity role for a given entity + * @summary Get one role for a given prebuilt entity in a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId entity ID. @@ -3846,16 +5861,28 @@ export class Model { * @param [options] The optional parameters * @returns Promise */ - getCustomEntityRole(appId: string, versionId: string, entityId: string, roleId: string, options?: msRest.RequestOptionsBase): Promise; + getCustomEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, roleId: string, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId entity ID. * @param roleId entity role ID. * @param callback The callback */ - getCustomEntityRole(appId: string, versionId: string, entityId: string, roleId: string, callback: msRest.ServiceCallback): void; + getCustomEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, roleId: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId entity ID. @@ -3863,10 +5890,12 @@ export class Model { * @param options The optional parameters * @param callback The callback */ - getCustomEntityRole(appId: string, versionId: string, entityId: string, roleId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getCustomEntityRole(appId: string, versionId: string, entityId: string, roleId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + getCustomEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, roleId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getCustomEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, roleId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, entityId, @@ -3878,7 +5907,13 @@ export class Model { } /** - * @summary Update an entity role for a given entity + * @summary Update a role for a given prebuilt entity in a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The entity ID. @@ -3887,8 +5922,14 @@ export class Model { * @param [options] The optional parameters * @returns Promise */ - updateCustomPrebuiltEntityRole(appId: string, versionId: string, entityId: string, roleId: string, entityRoleUpdateObject: Models.EntityRoleUpdateObject, options?: msRest.RequestOptionsBase): Promise; + updateCustomPrebuiltEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, roleId: string, entityRoleUpdateObject: Models.EntityRoleUpdateObject, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The entity ID. @@ -3896,8 +5937,14 @@ export class Model { * @param entityRoleUpdateObject The new entity role. * @param callback The callback */ - updateCustomPrebuiltEntityRole(appId: string, versionId: string, entityId: string, roleId: string, entityRoleUpdateObject: Models.EntityRoleUpdateObject, callback: msRest.ServiceCallback): void; + updateCustomPrebuiltEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, roleId: string, entityRoleUpdateObject: Models.EntityRoleUpdateObject, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The entity ID. @@ -3906,10 +5953,12 @@ export class Model { * @param options The optional parameters * @param callback The callback */ - updateCustomPrebuiltEntityRole(appId: string, versionId: string, entityId: string, roleId: string, entityRoleUpdateObject: Models.EntityRoleUpdateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - updateCustomPrebuiltEntityRole(appId: string, versionId: string, entityId: string, roleId: string, entityRoleUpdateObject: Models.EntityRoleUpdateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + updateCustomPrebuiltEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, roleId: string, entityRoleUpdateObject: Models.EntityRoleUpdateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updateCustomPrebuiltEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, roleId: string, entityRoleUpdateObject: Models.EntityRoleUpdateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, entityId, @@ -3922,7 +5971,13 @@ export class Model { } /** - * @summary Delete an entity role. + * @summary Delete a role for a given prebuilt entity in a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The entity ID. @@ -3930,16 +5985,28 @@ export class Model { * @param [options] The optional parameters * @returns Promise */ - deleteCustomEntityRole(appId: string, versionId: string, entityId: string, roleId: string, options?: msRest.RequestOptionsBase): Promise; + deleteCustomEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, roleId: string, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The entity ID. * @param roleId The entity role Id. * @param callback The callback */ - deleteCustomEntityRole(appId: string, versionId: string, entityId: string, roleId: string, callback: msRest.ServiceCallback): void; + deleteCustomEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, roleId: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The entity ID. @@ -3947,10 +6014,12 @@ export class Model { * @param options The optional parameters * @param callback The callback */ - deleteCustomEntityRole(appId: string, versionId: string, entityId: string, roleId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteCustomEntityRole(appId: string, versionId: string, entityId: string, roleId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + deleteCustomEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, roleId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteCustomEntityRole(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, roleId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, entityId, @@ -3962,7 +6031,14 @@ export class Model { } /** - * @summary Get the explicit list of the pattern.any entity. + * @summary Get the explicit (exception) list of the pattern.any entity in a version of the + * application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The Pattern.Any entity Id. @@ -3970,16 +6046,28 @@ export class Model { * @param [options] The optional parameters * @returns Promise */ - getExplicitListItem(appId: string, versionId: string, entityId: string, itemId: number, options?: msRest.RequestOptionsBase): Promise; + getExplicitListItem(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, itemId: number, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The Pattern.Any entity Id. * @param itemId The explicit list item Id. * @param callback The callback */ - getExplicitListItem(appId: string, versionId: string, entityId: string, itemId: number, callback: msRest.ServiceCallback): void; + getExplicitListItem(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, itemId: number, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The Pattern.Any entity Id. @@ -3987,10 +6075,12 @@ export class Model { * @param options The optional parameters * @param callback The callback */ - getExplicitListItem(appId: string, versionId: string, entityId: string, itemId: number, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getExplicitListItem(appId: string, versionId: string, entityId: string, itemId: number, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + getExplicitListItem(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, itemId: number, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getExplicitListItem(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, itemId: number, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, entityId, @@ -4002,7 +6092,14 @@ export class Model { } /** - * @summary Updates an explicit list item for a Pattern.Any entity. + * @summary Updates an explicit (exception) list item for a Pattern.Any entity in a version of the + * application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The Pattern.Any entity extractor ID. @@ -4011,8 +6108,14 @@ export class Model { * @param [options] The optional parameters * @returns Promise */ - updateExplicitListItem(appId: string, versionId: string, entityId: string, itemId: number, item: Models.ExplicitListItemUpdateObject, options?: msRest.RequestOptionsBase): Promise; + updateExplicitListItem(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, itemId: number, item: Models.ExplicitListItemUpdateObject, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The Pattern.Any entity extractor ID. @@ -4020,8 +6123,14 @@ export class Model { * @param item The new explicit list item. * @param callback The callback */ - updateExplicitListItem(appId: string, versionId: string, entityId: string, itemId: number, item: Models.ExplicitListItemUpdateObject, callback: msRest.ServiceCallback): void; + updateExplicitListItem(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, itemId: number, item: Models.ExplicitListItemUpdateObject, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The Pattern.Any entity extractor ID. @@ -4030,10 +6139,12 @@ export class Model { * @param options The optional parameters * @param callback The callback */ - updateExplicitListItem(appId: string, versionId: string, entityId: string, itemId: number, item: Models.ExplicitListItemUpdateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - updateExplicitListItem(appId: string, versionId: string, entityId: string, itemId: number, item: Models.ExplicitListItemUpdateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + updateExplicitListItem(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, itemId: number, item: Models.ExplicitListItemUpdateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updateExplicitListItem(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, itemId: number, item: Models.ExplicitListItemUpdateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, entityId, @@ -4046,7 +6157,14 @@ export class Model { } /** - * @summary Delete the explicit list item from the Pattern.any explicit list. + * @summary Delete an item from the explicit (exception) list for a Pattern.any entity in a version + * of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The pattern.any entity id. @@ -4054,16 +6172,28 @@ export class Model { * @param [options] The optional parameters * @returns Promise */ - deleteExplicitListItem(appId: string, versionId: string, entityId: string, itemId: number, options?: msRest.RequestOptionsBase): Promise; + deleteExplicitListItem(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, itemId: number, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The pattern.any entity id. * @param itemId The explicit list item which will be deleted. * @param callback The callback */ - deleteExplicitListItem(appId: string, versionId: string, entityId: string, itemId: number, callback: msRest.ServiceCallback): void; + deleteExplicitListItem(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, itemId: number, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param entityId The pattern.any entity id. @@ -4071,10 +6201,12 @@ export class Model { * @param options The optional parameters * @param callback The callback */ - deleteExplicitListItem(appId: string, versionId: string, entityId: string, itemId: number, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteExplicitListItem(appId: string, versionId: string, entityId: string, itemId: number, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + deleteExplicitListItem(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, itemId: number, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteExplicitListItem(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, entityId: string, itemId: number, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, entityId, @@ -4092,7 +6224,8 @@ const addIntentOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "apps/{appId}/versions/{versionId}/intents", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0 ], @@ -4121,7 +6254,8 @@ const listIntentsOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/{appId}/versions/{versionId}/intents", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0 ], @@ -4155,7 +6289,8 @@ const addEntityOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "apps/{appId}/versions/{versionId}/entities", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0 ], @@ -4186,7 +6321,8 @@ const listEntitiesOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/{appId}/versions/{versionId}/entities", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0 ], @@ -4220,7 +6356,8 @@ const addHierarchicalEntityOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "apps/{appId}/versions/{versionId}/hierarchicalentities", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0 ], @@ -4251,7 +6388,8 @@ const listHierarchicalEntitiesOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/{appId}/versions/{versionId}/hierarchicalentities", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0 ], @@ -4285,7 +6423,8 @@ const addCompositeEntityOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "apps/{appId}/versions/{versionId}/compositeentities", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0 ], @@ -4316,7 +6455,8 @@ const listCompositeEntitiesOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/{appId}/versions/{versionId}/compositeentities", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0 ], @@ -4350,7 +6490,8 @@ const listClosedListsOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/{appId}/versions/{versionId}/closedlists", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0 ], @@ -4384,7 +6525,8 @@ const addClosedListOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "apps/{appId}/versions/{versionId}/closedlists", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0 ], @@ -4415,7 +6557,8 @@ const addPrebuiltOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "apps/{appId}/versions/{versionId}/prebuilts", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0 ], @@ -4460,7 +6603,8 @@ const listPrebuiltsOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/{appId}/versions/{versionId}/prebuilts", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0 ], @@ -4494,7 +6638,8 @@ const listPrebuiltEntitiesOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/{appId}/versions/{versionId}/listprebuilts", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0 ], @@ -4524,7 +6669,8 @@ const listModelsOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/{appId}/versions/{versionId}/models", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0 ], @@ -4558,7 +6704,8 @@ const examplesMethodOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/{appId}/versions/{versionId}/models/{modelId}/examples", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.modelId @@ -4593,7 +6740,8 @@ const getIntentOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/{appId}/versions/{versionId}/intents/{intentId}", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.intentId @@ -4613,7 +6761,8 @@ const updateIntentOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", path: "apps/{appId}/versions/{versionId}/intents/{intentId}", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.intentId @@ -4640,7 +6789,8 @@ const deleteIntentOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", path: "apps/{appId}/versions/{versionId}/intents/{intentId}", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.intentId @@ -4663,7 +6813,8 @@ const getEntityOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/{appId}/versions/{versionId}/entities/{entityId}", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.entityId @@ -4683,7 +6834,8 @@ const updateEntityOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", path: "apps/{appId}/versions/{versionId}/entities/{entityId}", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.entityId @@ -4710,7 +6862,8 @@ const deleteEntityOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", path: "apps/{appId}/versions/{versionId}/entities/{entityId}", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.entityId @@ -4730,7 +6883,8 @@ const getHierarchicalEntityOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.hEntityId @@ -4750,7 +6904,8 @@ const updateHierarchicalEntityOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", path: "apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.hEntityId @@ -4777,7 +6932,8 @@ const deleteHierarchicalEntityOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", path: "apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.hEntityId @@ -4797,7 +6953,8 @@ const getCompositeEntityOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/{appId}/versions/{versionId}/compositeentities/{cEntityId}", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.cEntityId @@ -4817,7 +6974,8 @@ const updateCompositeEntityOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", path: "apps/{appId}/versions/{versionId}/compositeentities/{cEntityId}", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.cEntityId @@ -4844,7 +7002,8 @@ const deleteCompositeEntityOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", path: "apps/{appId}/versions/{versionId}/compositeentities/{cEntityId}", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.cEntityId @@ -4864,7 +7023,8 @@ const getClosedListOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/{appId}/versions/{versionId}/closedlists/{clEntityId}", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.clEntityId @@ -4884,7 +7044,8 @@ const updateClosedListOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", path: "apps/{appId}/versions/{versionId}/closedlists/{clEntityId}", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.clEntityId @@ -4911,7 +7072,8 @@ const patchClosedListOperationSpec: msRest.OperationSpec = { httpMethod: "PATCH", path: "apps/{appId}/versions/{versionId}/closedlists/{clEntityId}", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.clEntityId @@ -4938,7 +7100,8 @@ const deleteClosedListOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", path: "apps/{appId}/versions/{versionId}/closedlists/{clEntityId}", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.clEntityId @@ -4958,7 +7121,8 @@ const getPrebuiltOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/{appId}/versions/{versionId}/prebuilts/{prebuiltId}", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.prebuiltId @@ -4978,7 +7142,8 @@ const deletePrebuiltOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", path: "apps/{appId}/versions/{versionId}/prebuilts/{prebuiltId}", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.prebuiltId @@ -4998,7 +7163,8 @@ const deleteSubListOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", path: "apps/{appId}/versions/{versionId}/closedlists/{clEntityId}/sublists/{subListId}", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.clEntityId, @@ -5019,7 +7185,8 @@ const updateSubListOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", path: "apps/{appId}/versions/{versionId}/closedlists/{clEntityId}/sublists/{subListId}", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.clEntityId, @@ -5043,11 +7210,12 @@ const updateSubListOperationSpec: msRest.OperationSpec = { serializer }; -const getIntentSuggestionsOperationSpec: msRest.OperationSpec = { +const listIntentSuggestionsOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/{appId}/versions/{versionId}/intents/{intentId}/suggest", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.intentId @@ -5077,11 +7245,12 @@ const getIntentSuggestionsOperationSpec: msRest.OperationSpec = { serializer }; -const getEntitySuggestionsOperationSpec: msRest.OperationSpec = { +const listEntitySuggestionsOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/{appId}/versions/{versionId}/entities/{entityId}/suggest", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.entityId @@ -5115,7 +7284,8 @@ const addSubListOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "apps/{appId}/versions/{versionId}/closedlists/{clEntityId}/sublists", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.clEntityId @@ -5147,7 +7317,8 @@ const addCustomPrebuiltDomainOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "apps/{appId}/versions/{versionId}/customprebuiltdomains", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0 ], @@ -5183,7 +7354,8 @@ const addCustomPrebuiltIntentOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "apps/{appId}/versions/{versionId}/customprebuiltintents", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0 ], @@ -5214,7 +7386,8 @@ const listCustomPrebuiltIntentsOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/{appId}/versions/{versionId}/customprebuiltintents", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0 ], @@ -5244,7 +7417,8 @@ const addCustomPrebuiltEntityOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "apps/{appId}/versions/{versionId}/customprebuiltentities", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0 ], @@ -5275,7 +7449,8 @@ const listCustomPrebuiltEntitiesOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/{appId}/versions/{versionId}/customprebuiltentities", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0 ], @@ -5305,7 +7480,8 @@ const listCustomPrebuiltModelsOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/{appId}/versions/{versionId}/customprebuiltmodels", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0 ], @@ -5335,7 +7511,8 @@ const deleteCustomPrebuiltDomainOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", path: "apps/{appId}/versions/{versionId}/customprebuiltdomains/{domainName}", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.domainName @@ -5355,7 +7532,8 @@ const getHierarchicalEntityChildOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}/children/{hChildId}", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.hEntityId, @@ -5376,7 +7554,8 @@ const updateHierarchicalEntityChildOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", path: "apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}/children/{hChildId}", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.hEntityId, @@ -5404,7 +7583,8 @@ const deleteHierarchicalEntityChildOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", path: "apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}/children/{hChildId}", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.hEntityId, @@ -5425,7 +7605,8 @@ const addHierarchicalEntityChildOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}/children", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.hEntityId @@ -5457,7 +7638,8 @@ const addCompositeEntityChildOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "apps/{appId}/versions/{versionId}/compositeentities/{cEntityId}/children", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.cEntityId @@ -5489,7 +7671,8 @@ const deleteCompositeEntityChildOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", path: "apps/{appId}/versions/{versionId}/compositeentities/{cEntityId}/children/{cChildId}", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.cEntityId, @@ -5506,11 +7689,12 @@ const deleteCompositeEntityChildOperationSpec: msRest.OperationSpec = { serializer }; -const getRegexEntityInfosOperationSpec: msRest.OperationSpec = { +const listRegexEntityInfosOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/{appId}/versions/{versionId}/regexentities", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0 ], @@ -5544,7 +7728,8 @@ const createRegexEntityModelOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "apps/{appId}/versions/{versionId}/regexentities", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0 ], @@ -5571,11 +7756,12 @@ const createRegexEntityModelOperationSpec: msRest.OperationSpec = { serializer }; -const getPatternAnyEntityInfosOperationSpec: msRest.OperationSpec = { +const listPatternAnyEntityInfosOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/{appId}/versions/{versionId}/patternanyentities", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0 ], @@ -5609,7 +7795,8 @@ const createPatternAnyEntityModelOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "apps/{appId}/versions/{versionId}/patternanyentities", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0 ], @@ -5636,11 +7823,12 @@ const createPatternAnyEntityModelOperationSpec: msRest.OperationSpec = { serializer }; -const getEntityRolesOperationSpec: msRest.OperationSpec = { +const listEntityRolesOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/{appId}/versions/{versionId}/entities/{entityId}/roles", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.entityId @@ -5671,7 +7859,8 @@ const createEntityRoleOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "apps/{appId}/versions/{versionId}/entities/{entityId}/roles", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.entityId @@ -5699,11 +7888,12 @@ const createEntityRoleOperationSpec: msRest.OperationSpec = { serializer }; -const getPrebuiltEntityRolesOperationSpec: msRest.OperationSpec = { +const listPrebuiltEntityRolesOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/{appId}/versions/{versionId}/prebuilts/{entityId}/roles", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.entityId @@ -5734,7 +7924,8 @@ const createPrebuiltEntityRoleOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "apps/{appId}/versions/{versionId}/prebuilts/{entityId}/roles", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.entityId @@ -5762,11 +7953,12 @@ const createPrebuiltEntityRoleOperationSpec: msRest.OperationSpec = { serializer }; -const getClosedListEntityRolesOperationSpec: msRest.OperationSpec = { +const listClosedListEntityRolesOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/{appId}/versions/{versionId}/closedlists/{entityId}/roles", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.entityId @@ -5797,7 +7989,8 @@ const createClosedListEntityRoleOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "apps/{appId}/versions/{versionId}/closedlists/{entityId}/roles", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.entityId @@ -5825,11 +8018,12 @@ const createClosedListEntityRoleOperationSpec: msRest.OperationSpec = { serializer }; -const getRegexEntityRolesOperationSpec: msRest.OperationSpec = { +const listRegexEntityRolesOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/{appId}/versions/{versionId}/regexentities/{entityId}/roles", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.entityId @@ -5860,7 +8054,8 @@ const createRegexEntityRoleOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "apps/{appId}/versions/{versionId}/regexentities/{entityId}/roles", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.entityId @@ -5888,11 +8083,12 @@ const createRegexEntityRoleOperationSpec: msRest.OperationSpec = { serializer }; -const getCompositeEntityRolesOperationSpec: msRest.OperationSpec = { +const listCompositeEntityRolesOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/{appId}/versions/{versionId}/compositeentities/{cEntityId}/roles", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.cEntityId @@ -5923,7 +8119,8 @@ const createCompositeEntityRoleOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "apps/{appId}/versions/{versionId}/compositeentities/{cEntityId}/roles", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.cEntityId @@ -5951,11 +8148,12 @@ const createCompositeEntityRoleOperationSpec: msRest.OperationSpec = { serializer }; -const getPatternAnyEntityRolesOperationSpec: msRest.OperationSpec = { +const listPatternAnyEntityRolesOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/{appId}/versions/{versionId}/patternanyentities/{entityId}/roles", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.entityId @@ -5986,7 +8184,8 @@ const createPatternAnyEntityRoleOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "apps/{appId}/versions/{versionId}/patternanyentities/{entityId}/roles", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.entityId @@ -6014,11 +8213,12 @@ const createPatternAnyEntityRoleOperationSpec: msRest.OperationSpec = { serializer }; -const getHierarchicalEntityRolesOperationSpec: msRest.OperationSpec = { +const listHierarchicalEntityRolesOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}/roles", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.hEntityId @@ -6049,7 +8249,8 @@ const createHierarchicalEntityRoleOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}/roles", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.hEntityId @@ -6077,11 +8278,12 @@ const createHierarchicalEntityRoleOperationSpec: msRest.OperationSpec = { serializer }; -const getCustomPrebuiltEntityRolesOperationSpec: msRest.OperationSpec = { +const listCustomPrebuiltEntityRolesOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/{appId}/versions/{versionId}/customprebuiltentities/{entityId}/roles", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.entityId @@ -6112,7 +8314,8 @@ const createCustomPrebuiltEntityRoleOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "apps/{appId}/versions/{versionId}/customprebuiltentities/{entityId}/roles", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.entityId @@ -6144,7 +8347,8 @@ const getExplicitListOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/{appId}/versions/{versionId}/patternanyentities/{entityId}/explicitlist", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.entityId @@ -6175,7 +8379,8 @@ const addExplicitListItemOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "apps/{appId}/versions/{versionId}/patternanyentities/{entityId}/explicitlist", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.entityId @@ -6207,7 +8412,8 @@ const getRegexEntityEntityInfoOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/{appId}/versions/{versionId}/regexentities/{regexEntityId}", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.regexEntityId @@ -6227,7 +8433,8 @@ const updateRegexEntityModelOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", path: "apps/{appId}/versions/{versionId}/regexentities/{regexEntityId}", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.regexEntityId @@ -6254,7 +8461,8 @@ const deleteRegexEntityModelOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", path: "apps/{appId}/versions/{versionId}/regexentities/{regexEntityId}", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.regexEntityId @@ -6274,7 +8482,8 @@ const getPatternAnyEntityInfoOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/{appId}/versions/{versionId}/patternanyentities/{entityId}", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.entityId @@ -6294,7 +8503,8 @@ const updatePatternAnyEntityModelOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", path: "apps/{appId}/versions/{versionId}/patternanyentities/{entityId}", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.entityId @@ -6321,7 +8531,8 @@ const deletePatternAnyEntityModelOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", path: "apps/{appId}/versions/{versionId}/patternanyentities/{entityId}", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.entityId @@ -6341,7 +8552,8 @@ const getEntityRoleOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/{appId}/versions/{versionId}/entities/{entityId}/roles/{roleId}", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.entityId, @@ -6362,7 +8574,8 @@ const updateEntityRoleOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", path: "apps/{appId}/versions/{versionId}/entities/{entityId}/roles/{roleId}", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.entityId, @@ -6390,7 +8603,8 @@ const deleteEntityRoleOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", path: "apps/{appId}/versions/{versionId}/entities/{entityId}/roles/{roleId}", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.entityId, @@ -6411,7 +8625,8 @@ const getPrebuiltEntityRoleOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/{appId}/versions/{versionId}/prebuilts/{entityId}/roles/{roleId}", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.entityId, @@ -6432,7 +8647,8 @@ const updatePrebuiltEntityRoleOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", path: "apps/{appId}/versions/{versionId}/prebuilts/{entityId}/roles/{roleId}", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.entityId, @@ -6460,7 +8676,8 @@ const deletePrebuiltEntityRoleOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", path: "apps/{appId}/versions/{versionId}/prebuilts/{entityId}/roles/{roleId}", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.entityId, @@ -6481,7 +8698,8 @@ const getClosedListEntityRoleOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/{appId}/versions/{versionId}/closedlists/{entityId}/roles/{roleId}", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.entityId, @@ -6502,7 +8720,8 @@ const updateClosedListEntityRoleOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", path: "apps/{appId}/versions/{versionId}/closedlists/{entityId}/roles/{roleId}", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.entityId, @@ -6530,7 +8749,8 @@ const deleteClosedListEntityRoleOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", path: "apps/{appId}/versions/{versionId}/closedlists/{entityId}/roles/{roleId}", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.entityId, @@ -6551,7 +8771,8 @@ const getRegexEntityRoleOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/{appId}/versions/{versionId}/regexentities/{entityId}/roles/{roleId}", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.entityId, @@ -6572,7 +8793,8 @@ const updateRegexEntityRoleOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", path: "apps/{appId}/versions/{versionId}/regexentities/{entityId}/roles/{roleId}", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.entityId, @@ -6600,7 +8822,8 @@ const deleteRegexEntityRoleOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", path: "apps/{appId}/versions/{versionId}/regexentities/{entityId}/roles/{roleId}", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.entityId, @@ -6621,7 +8844,8 @@ const getCompositeEntityRoleOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/{appId}/versions/{versionId}/compositeentities/{cEntityId}/roles/{roleId}", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.cEntityId, @@ -6642,7 +8866,8 @@ const updateCompositeEntityRoleOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", path: "apps/{appId}/versions/{versionId}/compositeentities/{cEntityId}/roles/{roleId}", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.cEntityId, @@ -6670,7 +8895,8 @@ const deleteCompositeEntityRoleOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", path: "apps/{appId}/versions/{versionId}/compositeentities/{cEntityId}/roles/{roleId}", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.cEntityId, @@ -6691,7 +8917,8 @@ const getPatternAnyEntityRoleOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/{appId}/versions/{versionId}/patternanyentities/{entityId}/roles/{roleId}", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.entityId, @@ -6712,7 +8939,8 @@ const updatePatternAnyEntityRoleOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", path: "apps/{appId}/versions/{versionId}/patternanyentities/{entityId}/roles/{roleId}", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.entityId, @@ -6740,7 +8968,8 @@ const deletePatternAnyEntityRoleOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", path: "apps/{appId}/versions/{versionId}/patternanyentities/{entityId}/roles/{roleId}", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.entityId, @@ -6761,7 +8990,8 @@ const getHierarchicalEntityRoleOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}/roles/{roleId}", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.hEntityId, @@ -6782,7 +9012,8 @@ const updateHierarchicalEntityRoleOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", path: "apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}/roles/{roleId}", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.hEntityId, @@ -6810,7 +9041,8 @@ const deleteHierarchicalEntityRoleOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", path: "apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}/roles/{roleId}", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.hEntityId, @@ -6831,7 +9063,8 @@ const getCustomEntityRoleOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/{appId}/versions/{versionId}/customprebuiltentities/{entityId}/roles/{roleId}", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.entityId, @@ -6852,7 +9085,8 @@ const updateCustomPrebuiltEntityRoleOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", path: "apps/{appId}/versions/{versionId}/customprebuiltentities/{entityId}/roles/{roleId}", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.entityId, @@ -6880,7 +9114,8 @@ const deleteCustomEntityRoleOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", path: "apps/{appId}/versions/{versionId}/customprebuiltentities/{entityId}/roles/{roleId}", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.entityId, @@ -6901,7 +9136,8 @@ const getExplicitListItemOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/{appId}/versions/{versionId}/patternanyentities/{entityId}/explicitlist/{itemId}", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.entityId, @@ -6922,7 +9158,8 @@ const updateExplicitListItemOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", path: "apps/{appId}/versions/{versionId}/patternanyentities/{entityId}/explicitlist/{itemId}", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.entityId, @@ -6950,7 +9187,8 @@ const deleteExplicitListItemOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", path: "apps/{appId}/versions/{versionId}/patternanyentities/{entityId}/explicitlist/{itemId}", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.entityId, diff --git a/packages/@azure/cognitiveservices-luis-authoring/lib/operations/pattern.ts b/packages/@azure/cognitiveservices-luis-authoring/lib/operations/pattern.ts index aa48bd88ebdf..0cd39386986c 100644 --- a/packages/@azure/cognitiveservices-luis-authoring/lib/operations/pattern.ts +++ b/packages/@azure/cognitiveservices-luis-authoring/lib/operations/pattern.ts @@ -27,32 +27,52 @@ export class Pattern { } /** - * @summary Adds one pattern to the specified application. + * @summary Adds a pattern to a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param pattern The input pattern. * @param [options] The optional parameters * @returns Promise */ - addPattern(appId: string, versionId: string, pattern: Models.PatternRuleCreateObject, options?: msRest.RequestOptionsBase): Promise; + addPattern(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, pattern: Models.PatternRuleCreateObject, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @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(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, pattern: Models.PatternRuleCreateObject, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param pattern The input 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(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, pattern: Models.PatternRuleCreateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + addPattern(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, pattern: Models.PatternRuleCreateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, pattern, @@ -63,64 +83,104 @@ export class Pattern { } /** - * @summary Returns an application version's patterns. + * @summary Gets patterns in a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - getPatterns(appId: string, versionId: string, options?: Models.PatternGetPatternsOptionalParams): Promise; + listPatterns(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, options?: Models.PatternListPatternsOptionalParams): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param callback The callback */ - getPatterns(appId: string, versionId: string, callback: msRest.ServiceCallback): void; + listPatterns(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param options The optional parameters * @param callback The callback */ - getPatterns(appId: string, versionId: string, options: Models.PatternGetPatternsOptionalParams, callback: msRest.ServiceCallback): void; - getPatterns(appId: string, versionId: string, options?: Models.PatternGetPatternsOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listPatterns(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, options: Models.PatternListPatternsOptionalParams, callback: msRest.ServiceCallback): void; + listPatterns(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, options?: Models.PatternListPatternsOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, options }, - getPatternsOperationSpec, - callback) as Promise; + listPatternsOperationSpec, + callback) as Promise; } /** - * @summary Updates patterns + * @summary Updates patterns in a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param patterns An array represents the patterns. * @param [options] The optional parameters * @returns Promise */ - updatePatterns(appId: string, versionId: string, patterns: Models.PatternRuleUpdateObject[], options?: msRest.RequestOptionsBase): Promise; + updatePatterns(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, patterns: Models.PatternRuleUpdateObject[], options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @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(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, patterns: Models.PatternRuleUpdateObject[], callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param patterns An array represents the patterns. * @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(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, patterns: Models.PatternRuleUpdateObject[], options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updatePatterns(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, patterns: Models.PatternRuleUpdateObject[], options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, patterns, @@ -131,32 +191,52 @@ export class Pattern { } /** - * @summary Adds a batch of patterns to the specified application. + * @summary Adds a batch of patterns in a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param patterns A JSON array containing patterns. * @param [options] The optional parameters * @returns Promise */ - batchAddPatterns(appId: string, versionId: string, patterns: Models.PatternRuleCreateObject[], options?: msRest.RequestOptionsBase): Promise; + batchAddPatterns(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, patterns: Models.PatternRuleCreateObject[], options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @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(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, patterns: Models.PatternRuleCreateObject[], callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param patterns A JSON array containing patterns. * @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(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, patterns: Models.PatternRuleCreateObject[], options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + batchAddPatterns(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, patterns: Models.PatternRuleCreateObject[], options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, patterns, @@ -167,32 +247,52 @@ export class Pattern { } /** - * @summary Deletes the patterns with the specified IDs. + * @summary Deletes a list of patterns in a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param patternIds The patterns IDs. * @param [options] The optional parameters * @returns Promise */ - deletePatterns(appId: string, versionId: string, patternIds: string[], options?: msRest.RequestOptionsBase): Promise; + deletePatterns(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, patternIds: string[], options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @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(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, patternIds: string[], callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param patternIds The patterns IDs. * @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(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, patternIds: string[], options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deletePatterns(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, patternIds: string[], options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, patternIds, @@ -203,7 +303,13 @@ export class Pattern { } /** - * @summary Updates a pattern + * @summary Updates a pattern in a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param patternId The pattern ID. @@ -211,16 +317,28 @@ 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(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, patternId: string, pattern: Models.PatternRuleUpdateObject, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param patternId The pattern ID. * @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(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, patternId: string, pattern: Models.PatternRuleUpdateObject, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param patternId The pattern ID. @@ -228,10 +346,12 @@ 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(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, patternId: string, pattern: Models.PatternRuleUpdateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updatePattern(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, patternId: string, pattern: Models.PatternRuleUpdateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, patternId, @@ -243,32 +363,52 @@ export class Pattern { } /** - * @summary Deletes the pattern with the specified ID. + * @summary Deletes the pattern with the specified ID from a version of the application.. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param patternId The pattern ID. * @param [options] The optional parameters * @returns Promise */ - deletePattern(appId: string, versionId: string, patternId: string, options?: msRest.RequestOptionsBase): Promise; + deletePattern(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, patternId: string, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @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(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, patternId: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param patternId The pattern ID. * @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(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, patternId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deletePattern(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, patternId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, patternId, @@ -279,39 +419,59 @@ export class Pattern { } /** - * @summary Returns patterns to be retrieved for the specific intent. + * @summary Returns patterns for the specific intent in a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param intentId The intent classifier ID. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - getIntentPatterns(appId: string, versionId: string, intentId: string, options?: Models.PatternGetIntentPatternsOptionalParams): Promise; + listIntentPatterns(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, intentId: string, options?: Models.PatternListIntentPatternsOptionalParams): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param intentId The intent classifier ID. * @param callback The callback */ - getIntentPatterns(appId: string, versionId: string, intentId: string, callback: msRest.ServiceCallback): void; + listIntentPatterns(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, intentId: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param intentId The intent classifier ID. * @param options The optional parameters * @param callback The callback */ - getIntentPatterns(appId: string, versionId: string, intentId: string, options: Models.PatternGetIntentPatternsOptionalParams, callback: msRest.ServiceCallback): void; - getIntentPatterns(appId: string, versionId: string, intentId: string, options?: Models.PatternGetIntentPatternsOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listIntentPatterns(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, intentId: string, options: Models.PatternListIntentPatternsOptionalParams, callback: msRest.ServiceCallback): void; + listIntentPatterns(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, intentId: string, options?: Models.PatternListIntentPatternsOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, intentId, options }, - getIntentPatternsOperationSpec, - callback) as Promise; + listIntentPatternsOperationSpec, + callback) as Promise; } } @@ -321,7 +481,8 @@ const addPatternOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "apps/{appId}/versions/{versionId}/patternrule", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0 ], @@ -343,11 +504,12 @@ const addPatternOperationSpec: msRest.OperationSpec = { serializer }; -const getPatternsOperationSpec: msRest.OperationSpec = { +const listPatternsOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/{appId}/versions/{versionId}/patternrules", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0 ], @@ -381,7 +543,8 @@ const updatePatternsOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", path: "apps/{appId}/versions/{versionId}/patternrules", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0 ], @@ -427,7 +590,8 @@ const batchAddPatternsOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "apps/{appId}/versions/{versionId}/patternrules", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0 ], @@ -473,7 +637,8 @@ const deletePatternsOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", path: "apps/{appId}/versions/{versionId}/patternrules", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0 ], @@ -507,7 +672,8 @@ const updatePatternOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", path: "apps/{appId}/versions/{versionId}/patternrules/{patternId}", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.patternId @@ -534,7 +700,8 @@ const deletePatternOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", path: "apps/{appId}/versions/{versionId}/patternrules/{patternId}", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.patternId @@ -550,11 +717,12 @@ const deletePatternOperationSpec: msRest.OperationSpec = { serializer }; -const getIntentPatternsOperationSpec: msRest.OperationSpec = { +const listIntentPatternsOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/{appId}/versions/{versionId}/intents/{intentId}/patternrules", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0, Parameters.intentId diff --git a/packages/@azure/cognitiveservices-luis-authoring/lib/operations/permissions.ts b/packages/@azure/cognitiveservices-luis-authoring/lib/operations/permissions.ts index 2089ce481d14..a5bdff89e601 100644 --- a/packages/@azure/cognitiveservices-luis-authoring/lib/operations/permissions.ts +++ b/packages/@azure/cognitiveservices-luis-authoring/lib/operations/permissions.ts @@ -28,25 +28,45 @@ export class Permissions { /** * Gets the list of user emails that have permissions to access your application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param [options] The optional parameters * @returns Promise */ - list(appId: string, options?: msRest.RequestOptionsBase): Promise; + list(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param callback The callback */ - list(appId: string, callback: msRest.ServiceCallback): void; + list(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @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(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, options }, @@ -57,28 +77,48 @@ export class Permissions { /** * Adds a user to the allowed list of users to access this LUIS application. Users are added using * their email address. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param userToAdd A model containing the user's email address. * @param [options] The optional parameters * @returns Promise */ - add(appId: string, userToAdd: Models.UserCollaborator, options?: msRest.RequestOptionsBase): Promise; + add(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, userToAdd: Models.UserCollaborator, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @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(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, userToAdd: Models.UserCollaborator, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @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(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, userToAdd: Models.UserCollaborator, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + add(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, userToAdd: Models.UserCollaborator, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, userToAdd, options @@ -90,28 +130,48 @@ export class Permissions { /** * Removes a user from the allowed list of users to access this LUIS application. Users are removed * using their email address. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param userToDelete A model containing the user's email address. * @param [options] The optional parameters * @returns Promise */ - deleteMethod(appId: string, userToDelete: Models.UserCollaborator, options?: msRest.RequestOptionsBase): Promise; + deleteMethod(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, userToDelete: Models.UserCollaborator, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @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(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, userToDelete: Models.UserCollaborator, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @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(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, userToDelete: Models.UserCollaborator, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, userToDelete: Models.UserCollaborator, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, userToDelete, options @@ -121,30 +181,50 @@ export class Permissions { } /** - * Replaces the current users access list with the one sent in the body. If an empty list is sent, - * all access to other users will be removed. + * Replaces the current user access list with the new list sent in the body. If an empty list is + * sent, all access to other users will be removed. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. - * @param collaborators A model containing a list of user's email addresses. + * @param collaborators A model containing a list of user email addresses. * @param [options] The optional parameters * @returns Promise */ - update(appId: string, collaborators: Models.CollaboratorsArray, options?: msRest.RequestOptionsBase): Promise; + update(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, collaborators: Models.CollaboratorsArray, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. - * @param collaborators A model containing a list of user's email addresses. + * @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(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, collaborators: Models.CollaboratorsArray, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. - * @param collaborators A model containing a list of user's email addresses. + * @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(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, collaborators: Models.CollaboratorsArray, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, collaborators: Models.CollaboratorsArray, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, collaborators, options @@ -160,7 +240,8 @@ const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/{appId}/permissions", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId ], responses: { @@ -178,7 +259,8 @@ const addOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "apps/{appId}/permissions", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId ], requestBody: { @@ -203,7 +285,8 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", path: "apps/{appId}/permissions", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId ], requestBody: { @@ -228,7 +311,8 @@ const updateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", path: "apps/{appId}/permissions", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId ], requestBody: { diff --git a/packages/@azure/cognitiveservices-luis-authoring/lib/operations/settings.ts b/packages/@azure/cognitiveservices-luis-authoring/lib/operations/settings.ts index 55d0ddfbc152..9f476e83fe95 100644 --- a/packages/@azure/cognitiveservices-luis-authoring/lib/operations/settings.ts +++ b/packages/@azure/cognitiveservices-luis-authoring/lib/operations/settings.ts @@ -27,29 +27,49 @@ export class Settings { } /** - * Gets the application version settings. + * Gets the settings in a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param [options] The optional parameters * @returns Promise */ - list(appId: string, versionId: string, options?: msRest.RequestOptionsBase): Promise; + list(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param callback The callback */ - list(appId: string, versionId: string, callback: msRest.ServiceCallback): void; + list(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @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(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, options @@ -59,32 +79,52 @@ export class Settings { } /** - * Updates the application version settings. + * Updates the settings in a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param listOfAppVersionSettingObject A list of the updated application version settings. * @param [options] The optional parameters * @returns Promise */ - update(appId: string, versionId: string, listOfAppVersionSettingObject: Models.AppVersionSettingObject, options?: msRest.RequestOptionsBase): Promise; + update(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, listOfAppVersionSettingObject: Models.AppVersionSettingObject[], options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @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(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, listOfAppVersionSettingObject: Models.AppVersionSettingObject[], callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param listOfAppVersionSettingObject A list of the updated application version 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(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, listOfAppVersionSettingObject: Models.AppVersionSettingObject[], options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, listOfAppVersionSettingObject: Models.AppVersionSettingObject[], options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, listOfAppVersionSettingObject, @@ -101,7 +141,8 @@ const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/{appId}/versions/{versionId}/settings", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0 ], @@ -131,15 +172,25 @@ const updateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", path: "apps/{appId}/versions/{versionId}/settings", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0 ], requestBody: { parameterPath: "listOfAppVersionSettingObject", mapper: { - ...Mappers.AppVersionSettingObject, - required: true + required: true, + serializedName: "listOfAppVersionSettingObject", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AppVersionSettingObject" + } + } + } } }, responses: { diff --git a/packages/@azure/cognitiveservices-luis-authoring/lib/operations/train.ts b/packages/@azure/cognitiveservices-luis-authoring/lib/operations/train.ts index 53d2c9848983..bd5035aab6bf 100644 --- a/packages/@azure/cognitiveservices-luis-authoring/lib/operations/train.ts +++ b/packages/@azure/cognitiveservices-luis-authoring/lib/operations/train.ts @@ -32,28 +32,48 @@ export class Train { * request to get training status. Note: The application version is not fully trained unless all * the models (intents and entities) are trained successfully or are up to date. To verify training * success, get the training status at least once after training is complete. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param [options] The optional parameters * @returns Promise */ - trainVersion(appId: string, versionId: string, options?: msRest.RequestOptionsBase): Promise; + trainVersion(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param callback The callback */ - trainVersion(appId: string, versionId: string, callback: msRest.ServiceCallback): void; + trainVersion(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @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(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + trainVersion(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, options @@ -67,28 +87,48 @@ export class Train { * must call the train API to train the LUIS app before you call this API to get training status. * "appID" specifies the LUIS app ID. "versionId" specifies the version number of the LUIS app. For * example, "0.1". + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param [options] The optional parameters * @returns Promise */ - getStatus(appId: string, versionId: string, options?: msRest.RequestOptionsBase): Promise; + getStatus(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param callback The callback */ - getStatus(appId: string, versionId: string, callback: msRest.ServiceCallback): void; + getStatus(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @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(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getStatus(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, options @@ -104,7 +144,8 @@ const trainVersionOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "apps/{appId}/versions/{versionId}/train", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0 ], @@ -123,7 +164,8 @@ const getStatusOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/{appId}/versions/{versionId}/train", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0 ], diff --git a/packages/@azure/cognitiveservices-luis-authoring/lib/operations/versions.ts b/packages/@azure/cognitiveservices-luis-authoring/lib/operations/versions.ts index b422bf38503f..f13b562342f3 100644 --- a/packages/@azure/cognitiveservices-luis-authoring/lib/operations/versions.ts +++ b/packages/@azure/cognitiveservices-luis-authoring/lib/operations/versions.ts @@ -27,31 +27,55 @@ export class Versions { } /** - * Creates a new version using the current snapshot of the selected application version. + * Creates a new version from the selected version. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. + * @param versionCloneObject A model containing the new version ID. * @param [options] The optional parameters * @returns Promise */ - clone(appId: string, versionId: string, options?: Models.VersionsCloneOptionalParams): Promise; + clone(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, versionCloneObject: Models.TaskUpdateObject, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @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, callback: msRest.ServiceCallback): void; + clone(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, versionCloneObject: Models.TaskUpdateObject, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. + * @param versionCloneObject A model containing the new version ID. * @param options The optional parameters * @param callback The callback */ - clone(appId: string, versionId: string, options: Models.VersionsCloneOptionalParams, callback: msRest.ServiceCallback): void; - clone(appId: string, versionId: string, options?: Models.VersionsCloneOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + clone(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, versionCloneObject: Models.TaskUpdateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + clone(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, versionCloneObject: Models.TaskUpdateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, + versionCloneObject, options }, cloneOperationSpec, @@ -59,26 +83,46 @@ export class Versions { } /** - * Gets the application versions info. + * Gets a list of versions for this application ID. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param [options] The optional parameters * @returns Promise */ - list(appId: string, options?: Models.VersionsListOptionalParams): Promise; + list(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, options?: Models.VersionsListOptionalParams): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param callback The callback */ - list(appId: string, callback: msRest.ServiceCallback): void; + list(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @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(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, options: Models.VersionsListOptionalParams, callback: msRest.ServiceCallback): void; + list(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, options?: Models.VersionsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, options }, @@ -87,29 +131,50 @@ export class Versions { } /** - * Gets the version info. + * Gets the version information such as date created, last modified date, endpoint URL, count of + * intents and entities, training and publishing status. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param [options] The optional parameters * @returns Promise */ - get(appId: string, versionId: string, options?: msRest.RequestOptionsBase): Promise; + get(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param callback The callback */ - get(appId: string, versionId: string, callback: msRest.ServiceCallback): void; + get(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @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(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, options @@ -120,31 +185,51 @@ export class Versions { /** * Updates the name or description of the application version. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param versionUpdateObject A model containing Name and Description of the application. * @param [options] The optional parameters * @returns Promise */ - update(appId: string, versionId: string, versionUpdateObject: Models.TaskUpdateObject, options?: msRest.RequestOptionsBase): Promise; + update(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, versionUpdateObject: Models.TaskUpdateObject, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @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(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, versionUpdateObject: Models.TaskUpdateObject, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param versionUpdateObject A model containing Name and Description of the application. * @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(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, versionUpdateObject: Models.TaskUpdateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, versionUpdateObject: Models.TaskUpdateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, versionUpdateObject, @@ -156,28 +241,48 @@ export class Versions { /** * Deletes an application version. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param [options] The optional parameters * @returns Promise */ - deleteMethod(appId: string, versionId: string, options?: msRest.RequestOptionsBase): Promise; + deleteMethod(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param callback The callback */ - deleteMethod(appId: string, versionId: string, callback: msRest.ServiceCallback): void; + deleteMethod(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @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(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, options @@ -188,28 +293,48 @@ export class Versions { /** * Exports a LUIS application to JSON format. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param [options] The optional parameters * @returns Promise */ - exportMethod(appId: string, versionId: string, options?: msRest.RequestOptionsBase): Promise; + exportMethod(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param callback The callback */ - exportMethod(appId: string, versionId: string, callback: msRest.ServiceCallback): void; + exportMethod(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @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(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + exportMethod(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, options @@ -220,28 +345,48 @@ export class Versions { /** * Imports a new version into a LUIS application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param luisApp A LUIS application structure. * @param [options] The optional parameters * @returns Promise */ - importMethod(appId: string, luisApp: Models.LuisApp, options?: Models.VersionsImportMethodOptionalParams): Promise; + importMethod(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, luisApp: Models.LuisApp, options?: Models.VersionsImportMethodOptionalParams): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @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(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, luisApp: Models.LuisApp, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @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(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, luisApp: Models.LuisApp, options: Models.VersionsImportMethodOptionalParams, callback: msRest.ServiceCallback): void; + importMethod(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, luisApp: Models.LuisApp, options?: Models.VersionsImportMethodOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, luisApp, options @@ -251,32 +396,52 @@ export class Versions { } /** - * Deleted an unlabelled utterance. + * Deleted an unlabelled utterance in a version of the application. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param utterance The utterance text to delete. * @param [options] The optional parameters * @returns Promise */ - deleteUnlabelledUtterance(appId: string, versionId: string, utterance: string, options?: msRest.RequestOptionsBase): Promise; + deleteUnlabelledUtterance(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, utterance: string, options?: msRest.RequestOptionsBase): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @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(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, utterance: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The application ID. * @param versionId The version ID. * @param utterance The utterance text to delete. * @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(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, utterance: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteUnlabelledUtterance(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, versionId: string, utterance: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, versionId, utterance, @@ -293,16 +458,17 @@ const cloneOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "apps/{appId}/versions/{versionId}/clone", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0 ], requestBody: { - parameterPath: [ - "options", - "versionCloneObject" - ], - mapper: Mappers.TaskUpdateObject + parameterPath: "versionCloneObject", + mapper: { + ...Mappers.TaskUpdateObject, + required: true + } }, responses: { 201: { @@ -324,7 +490,8 @@ const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/{appId}/versions", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId ], queryParameters: [ @@ -357,7 +524,8 @@ const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/{appId}/versions/{versionId}/", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0 ], @@ -376,7 +544,8 @@ const updateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", path: "apps/{appId}/versions/{versionId}/", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0 ], @@ -402,7 +571,8 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", path: "apps/{appId}/versions/{versionId}/", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0 ], @@ -421,7 +591,8 @@ const exportMethodOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "apps/{appId}/versions/{versionId}/export", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0 ], @@ -440,7 +611,8 @@ const importMethodOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "apps/{appId}/versions/import", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId ], queryParameters: [ @@ -473,7 +645,8 @@ const deleteUnlabelledUtteranceOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", path: "apps/{appId}/versions/{versionId}/suggest", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId, Parameters.versionId0 ], diff --git a/packages/@azure/cognitiveservices-luis-authoring/package.json b/packages/@azure/cognitiveservices-luis-authoring/package.json index 341ae0f9b372..00463167efcc 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": "2.1.0", "dependencies": { - "@azure/ms-rest-js": "^1.6.0", + "@azure/ms-rest-js": "^1.2.0", "tslib": "^1.9.3" }, "keywords": [ @@ -43,7 +43,6 @@ "esm/**/*.d.ts", "esm/**/*.d.ts.map", "lib/**/*.ts", - "README.md", "rollup.config.js", "tsconfig.json" ], @@ -52,6 +51,5 @@ "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" }, - "sideEffects": false, - "autoPublish": true + "sideEffects": false } diff --git a/packages/@azure/cognitiveservices-luis-runtime/README.md b/packages/@azure/cognitiveservices-luis-runtime/README.md index 53a4ab635ea2..c9716b319c75 100644 --- a/packages/@azure/cognitiveservices-luis-runtime/README.md +++ b/packages/@azure/cognitiveservices-luis-runtime/README.md @@ -33,7 +33,9 @@ const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; msRestNodeAuth.interactiveLogin().then((creds) => { const client = new LUISRuntimeClient(creds, subscriptionId); - const appId = "testappId"; + const azureRegion = "westus"; + const azureCloud = "com"; + const appId = ec7b1657-199d-4d8a-bbb2-89a11a42e02a; const query = "testquery"; const timezoneOffset = 1.01; const verbose = true; @@ -41,7 +43,7 @@ msRestNodeAuth.interactiveLogin().then((creds) => { const spellCheck = true; const bingSpellCheckSubscriptionKey = "testbingSpellCheckSubscriptionKey"; const log = true; - client.prediction.resolve(appId, query, timezoneOffset, verbose, staging, spellCheck, bingSpellCheckSubscriptionKey, log).then((result) => { + client.prediction.resolve(azureRegion, azureCloud, appId, query, timezoneOffset, verbose, staging, spellCheck, bingSpellCheckSubscriptionKey, log).then((result) => { console.log("The result is:"); console.log(result); }); @@ -83,7 +85,9 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to authManager.login(); } const client = new Azure.CognitiveservicesLuisRuntime.LUISRuntimeClient(res.creds, subscriptionId); - const appId = "testappId"; + const azureRegion = "westus"; + const azureCloud = "com"; + const appId = ec7b1657-199d-4d8a-bbb2-89a11a42e02a; const query = "testquery"; const timezoneOffset = 1.01; const verbose = true; @@ -91,7 +95,7 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to const spellCheck = true; const bingSpellCheckSubscriptionKey = "testbingSpellCheckSubscriptionKey"; const log = true; - client.prediction.resolve(appId, query, timezoneOffset, verbose, staging, spellCheck, bingSpellCheckSubscriptionKey, log).then((result) => { + client.prediction.resolve(azureRegion, azureCloud, appId, query, timezoneOffset, verbose, staging, spellCheck, bingSpellCheckSubscriptionKey, log).then((result) => { console.log("The result is:"); console.log(result); }).catch((err) => { @@ -108,6 +112,3 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to ## Related projects - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) - - -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fpackages%2F%40azure%2Fcognitiveservices-luis-runtime%2FREADME.png) diff --git a/packages/@azure/cognitiveservices-luis-runtime/lib/lUISRuntimeClient.ts b/packages/@azure/cognitiveservices-luis-runtime/lib/lUISRuntimeClient.ts index d55de41ebde8..22665eb6871d 100644 --- a/packages/@azure/cognitiveservices-luis-runtime/lib/lUISRuntimeClient.ts +++ b/packages/@azure/cognitiveservices-luis-runtime/lib/lUISRuntimeClient.ts @@ -20,13 +20,11 @@ class LUISRuntimeClient extends LUISRuntimeClientContext { /** * Initializes a new instance of the LUISRuntimeClient class. - * @param endpoint Supported Cognitive Services endpoints (protocol and hostname, for example: - * https://westus.api.cognitive.microsoft.com). * @param credentials Subscription credentials which uniquely identify client subscription. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, endpoint: string, options?: msRest.ServiceClientOptions) { - super(credentials, endpoint, options); + constructor(credentials: msRest.ServiceClientCredentials, options?: msRest.ServiceClientOptions) { + super(credentials, options); this.prediction = new operations.Prediction(this); } } diff --git a/packages/@azure/cognitiveservices-luis-runtime/lib/lUISRuntimeClientContext.ts b/packages/@azure/cognitiveservices-luis-runtime/lib/lUISRuntimeClientContext.ts index b8ca93e8fa8a..44c2b14001dd 100644 --- a/packages/@azure/cognitiveservices-luis-runtime/lib/lUISRuntimeClientContext.ts +++ b/packages/@azure/cognitiveservices-luis-runtime/lib/lUISRuntimeClientContext.ts @@ -14,38 +14,31 @@ const packageName = "@azure/cognitiveservices-luis-runtime"; const packageVersion = "2.0.0"; export class LUISRuntimeClientContext extends msRest.ServiceClient { - endpoint: string; credentials: msRest.ServiceClientCredentials; /** * Initializes a new instance of the LUISRuntimeClientContext class. - * @param endpoint Supported Cognitive Services endpoints (protocol and hostname, for example: - * https://westus.api.cognitive.microsoft.com). * @param credentials Subscription credentials which uniquely identify client subscription. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, endpoint: string, options?: msRest.ServiceClientOptions) { - if (endpoint == undefined) { - throw new Error("'endpoint' cannot be null."); - } - if (credentials == undefined) { - throw new Error("'credentials' cannot be null."); + constructor(credentials: msRest.ServiceClientCredentials, options?: msRest.ServiceClientOptions) { + if (credentials === null || credentials === undefined) { + throw new Error('\'credentials\' cannot be null.'); } if (!options) { options = {}; } - - if (!options.userAgent) { + if(!options.userAgent) { const defaultUserAgent = msRest.getDefaultUserAgentValue(); options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`; } super(credentials, options); - this.baseUri = "{Endpoint}/luis/v2.0"; + this.baseUri = "http://{AzureRegion}.api.cognitive.microsoft.{AzureCloud}"; this.requestContentType = "application/json; charset=utf-8"; - this.endpoint = endpoint; this.credentials = credentials; + } } diff --git a/packages/@azure/cognitiveservices-luis-runtime/lib/models/index.ts b/packages/@azure/cognitiveservices-luis-runtime/lib/models/index.ts index 93de9ea9fd06..2e4b14a27441 100644 --- a/packages/@azure/cognitiveservices-luis-runtime/lib/models/index.ts +++ b/packages/@azure/cognitiveservices-luis-runtime/lib/models/index.ts @@ -1,193 +1,264 @@ /* * 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. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. */ - import * as msRest from "@azure/ms-rest-js"; + /** + * @interface + * An interface representing IntentModel. * An intent detected from the utterance. + * */ export interface IntentModel { /** - * Name of the intent, as defined in LUIS. + * @member {string} [intent] Name of the intent, as defined in LUIS. */ intent?: string; /** - * Associated prediction score for the intent (float). + * @member {number} [score] Associated prediction score for the intent + * (float). */ score?: number; } /** + * @interface + * An interface representing EntityModel. * An entity extracted from the utterance. + * */ export interface EntityModel { /** - * Name of the entity, as defined in LUIS. + * @member {string} entity Name of the entity, as defined in LUIS. */ entity: string; /** - * Type of the entity, as defined in LUIS. + * @member {string} type Type of the entity, as defined in LUIS. */ type: string; /** - * The position of the first character of the matched entity within the utterance. + * @member {number} startIndex The position of the first character of the + * matched entity within the utterance. */ startIndex: number; /** - * The position of the last character of the matched entity within the utterance. + * @member {number} endIndex The position of the last character of the + * matched entity within the utterance. */ endIndex: number; /** - * Describes unknown properties. The value of an unknown property can be of "any" type. + * @property Describes unknown properties. The value of an unknown property + * can be of "any" type. */ [property: string]: any; } /** + * @interface + * An interface representing CompositeChildModel. * Child entity in a LUIS Composite Entity. + * */ export interface CompositeChildModel { /** - * Type of child entity. + * @member {string} type Type of child entity. */ type: string; /** - * Value extracted by LUIS. + * @member {string} value Value extracted by LUIS. */ value: string; } /** + * @interface + * An interface representing CompositeEntityModel. * LUIS Composite Entity. + * */ export interface CompositeEntityModel { /** - * Type/name of parent entity. + * @member {string} parentType Type/name of parent entity. */ parentType: string; /** - * Value for composite entity extracted by LUIS. + * @member {string} value Value for composite entity extracted by LUIS. */ value: string; /** - * Child entities. + * @member {CompositeChildModel[]} children Child entities. */ children: CompositeChildModel[]; } /** + * @interface + * An interface representing Sentiment. * Sentiment of the input utterance. + * */ export interface Sentiment { /** - * The polarity of the sentiment, can be positive, neutral or negative. + * @member {string} [label] The polarity of the sentiment, can be positive, + * neutral or negative. */ label?: string; /** - * Score of the sentiment, ranges from 0 (most negative) to 1 (most positive). + * @member {number} [score] Score of the sentiment, ranges from 0 (most + * negative) to 1 (most positive). */ score?: number; } /** + * @interface + * An interface representing LuisResult. * Prediction, based on the input query, containing intent(s) and entities. + * */ export interface LuisResult { /** - * The input utterance that was analyzed. + * @member {string} [query] The input utterance that was analyzed. */ query?: string; /** - * The corrected utterance (when spell checking was enabled). + * @member {string} [alteredQuery] The corrected utterance (when spell + * checking was enabled). */ alteredQuery?: string; + /** + * @member {IntentModel} [topScoringIntent] + */ topScoringIntent?: IntentModel; /** - * All the intents (and their score) that were detected from utterance. + * @member {IntentModel[]} [intents] All the intents (and their score) that + * were detected from utterance. */ intents?: IntentModel[]; /** - * The entities extracted from the utterance. + * @member {EntityModel[]} [entities] The entities extracted from the + * utterance. */ entities?: EntityModel[]; /** - * The composite entities extracted from the utterance. + * @member {CompositeEntityModel[]} [compositeEntities] The composite + * entities extracted from the utterance. */ compositeEntities?: CompositeEntityModel[]; + /** + * @member {Sentiment} [sentimentAnalysis] + */ sentimentAnalysis?: Sentiment; + /** + * @member {LuisResult} [connectedServiceResult] + */ connectedServiceResult?: LuisResult; } /** + * @interface * An interface representing EntityWithScore. + * @extends EntityModel */ export interface EntityWithScore extends EntityModel { /** - * Associated prediction score for the intent (float). + * @member {number} score Associated prediction score for the intent (float). */ score: number; } /** + * @interface * An interface representing EntityWithResolution. + * @extends EntityModel */ export interface EntityWithResolution extends EntityModel { /** - * Resolution values for pre-built LUIS entities. + * @member {any} resolution Resolution values for pre-built LUIS entities. */ resolution: any; } /** + * @interface + * An interface representing APIError. * Error information returned by the API + * */ export interface APIError { /** - * HTTP Status code + * @member {string} [statusCode] HTTP Status code */ statusCode?: string; /** - * Cause of the error. + * @member {string} [message] Cause of the error. */ message?: string; } /** + * @interface + * An interface representing PredictionResolveOptionalParams. * Optional Parameters. + * + * @extends RequestOptionsBase */ export interface PredictionResolveOptionalParams extends msRest.RequestOptionsBase { /** - * The timezone offset for the location of the request. + * @member {number} [timezoneOffset] The timezone offset for the location of + * the request. */ timezoneOffset?: number; /** - * If true, return all intents instead of just the top scoring intent. + * @member {boolean} [verbose] If true, return all intents instead of just + * the top scoring intent. */ verbose?: boolean; /** - * Use the staging endpoint slot. + * @member {boolean} [staging] Use the staging endpoint slot. */ staging?: boolean; /** - * Enable spell checking. + * @member {boolean} [spellCheck] Enable spell checking. */ spellCheck?: boolean; /** - * The subscription key to use when enabling bing spell check + * @member {string} [bingSpellCheckSubscriptionKey] The subscription key to + * use when enabling Bing spell check */ bingSpellCheckSubscriptionKey?: string; /** - * Log query (default is true) + * @member {boolean} [log] Log query (default is true) */ log?: boolean; } +/** + * Defines values for AzureRegions. + * Possible values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', + * 'westus2', 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', + * 'brazilsouth', 'virginia' + * @readonly + * @enum {string} + */ +export type AzureRegions = 'westus' | 'westeurope' | 'southeastasia' | 'eastus2' | 'westcentralus' | 'westus2' | 'eastus' | 'southcentralus' | 'northeurope' | 'eastasia' | 'australiaeast' | 'brazilsouth' | 'virginia'; + +/** + * Defines values for AzureClouds. + * Possible values include: 'com', 'us' + * @readonly + * @enum {string} + */ +export type AzureClouds = 'com' | 'us'; + /** * Contains response data for the resolve operation. */ @@ -200,7 +271,6 @@ export type PredictionResolveResponse = LuisResult & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ diff --git a/packages/@azure/cognitiveservices-luis-runtime/lib/models/mappers.ts b/packages/@azure/cognitiveservices-luis-runtime/lib/models/mappers.ts index fce7171486fd..adfb6e94ce82 100644 --- a/packages/@azure/cognitiveservices-luis-runtime/lib/models/mappers.ts +++ b/packages/@azure/cognitiveservices-luis-runtime/lib/models/mappers.ts @@ -1,9 +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. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. */ import * as msRest from "@azure/ms-rest-js"; diff --git a/packages/@azure/cognitiveservices-luis-runtime/lib/models/parameters.ts b/packages/@azure/cognitiveservices-luis-runtime/lib/models/parameters.ts index 064d94f1d936..7c84561f03f7 100644 --- a/packages/@azure/cognitiveservices-luis-runtime/lib/models/parameters.ts +++ b/packages/@azure/cognitiveservices-luis-runtime/lib/models/parameters.ts @@ -16,10 +16,53 @@ export const appId: msRest.OperationURLParameter = { required: true, serializedName: "appId", type: { - name: "String" + name: "Uuid" } } }; +export const azureCloud: msRest.OperationURLParameter = { + parameterPath: "azureCloud", + mapper: { + required: true, + serializedName: "AzureCloud", + defaultValue: 'com', + type: { + name: "Enum", + allowedValues: [ + "com", + "us" + ] + } + }, + skipEncoding: true +}; +export const azureRegion: msRest.OperationURLParameter = { + parameterPath: "azureRegion", + mapper: { + required: true, + serializedName: "AzureRegion", + defaultValue: 'westus', + type: { + name: "Enum", + allowedValues: [ + "westus", + "westeurope", + "southeastasia", + "eastus2", + "westcentralus", + "westus2", + "eastus", + "southcentralus", + "northeurope", + "eastasia", + "australiaeast", + "brazilsouth", + "virginia" + ] + } + }, + skipEncoding: true +}; export const bingSpellCheckSubscriptionKey: msRest.OperationQueryParameter = { parameterPath: [ "options", @@ -32,18 +75,6 @@ export const bingSpellCheckSubscriptionKey: msRest.OperationQueryParameter = { } } }; -export const endpoint: msRest.OperationURLParameter = { - parameterPath: "endpoint", - mapper: { - required: true, - serializedName: "Endpoint", - defaultValue: '', - type: { - name: "String" - } - }, - skipEncoding: true -}; export const log: msRest.OperationQueryParameter = { parameterPath: [ "options", diff --git a/packages/@azure/cognitiveservices-luis-runtime/lib/models/predictionMappers.ts b/packages/@azure/cognitiveservices-luis-runtime/lib/models/predictionMappers.ts index 51a31d9f8896..811d97c4ce62 100644 --- a/packages/@azure/cognitiveservices-luis-runtime/lib/models/predictionMappers.ts +++ b/packages/@azure/cognitiveservices-luis-runtime/lib/models/predictionMappers.ts @@ -1,19 +1,22 @@ /* * 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. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. */ export { - APIError, - CompositeChildModel, - CompositeEntityModel, + LuisResult, + IntentModel, EntityModel, - EntityWithResolution, + CompositeEntityModel, + CompositeChildModel, + Sentiment, + APIError, EntityWithScore, - IntentModel, - LuisResult, - Sentiment + EntityWithResolution } from "../models/mappers"; + diff --git a/packages/@azure/cognitiveservices-luis-runtime/lib/operations/prediction.ts b/packages/@azure/cognitiveservices-luis-runtime/lib/operations/prediction.ts index 6826d7a0b6b0..cf9ebc28798e 100644 --- a/packages/@azure/cognitiveservices-luis-runtime/lib/operations/prediction.ts +++ b/packages/@azure/cognitiveservices-luis-runtime/lib/operations/prediction.ts @@ -29,28 +29,48 @@ export class Prediction { /** * Gets predictions for a given utterance, in the form of intents and entities. The current maximum * query size is 500 characters. + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The LUIS application ID (Guid). * @param query The utterance to predict. * @param [options] The optional parameters * @returns Promise */ - resolve(appId: string, query: string, options?: Models.PredictionResolveOptionalParams): Promise; + resolve(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, query: string, options?: Models.PredictionResolveOptionalParams): Promise; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The LUIS application ID (Guid). * @param query The utterance to predict. * @param callback The callback */ - resolve(appId: string, query: string, callback: msRest.ServiceCallback): void; + resolve(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, query: string, callback: msRest.ServiceCallback): void; /** + * @param azureRegion Supported Azure regions for Cognitive Services endpoints. Possible values + * include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', + * 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + * 'virginia' + * @param azureCloud Supported Azure Clouds for Cognitive Services endpoints. Possible values + * include: 'com', 'us' * @param appId The LUIS application ID (Guid). * @param query The utterance to predict. * @param options The optional parameters * @param callback The callback */ - resolve(appId: string, query: string, options: Models.PredictionResolveOptionalParams, callback: msRest.ServiceCallback): void; - resolve(appId: string, query: string, options?: Models.PredictionResolveOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + resolve(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, query: string, options: Models.PredictionResolveOptionalParams, callback: msRest.ServiceCallback): void; + resolve(azureRegion: Models.AzureRegions, azureCloud: Models.AzureClouds, appId: string, query: string, options?: Models.PredictionResolveOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + azureRegion, + azureCloud, appId, query, options @@ -66,7 +86,8 @@ const resolveOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "apps/{appId}", urlParameters: [ - Parameters.endpoint, + Parameters.azureRegion, + Parameters.azureCloud, Parameters.appId ], queryParameters: [ diff --git a/packages/@azure/cognitiveservices-luis-runtime/package.json b/packages/@azure/cognitiveservices-luis-runtime/package.json index 72b0c12318c2..7364fde60a59 100644 --- a/packages/@azure/cognitiveservices-luis-runtime/package.json +++ b/packages/@azure/cognitiveservices-luis-runtime/package.json @@ -4,7 +4,7 @@ "description": "LUISRuntimeClient Library with typescript type definitions for node.js and browser.", "version": "2.0.0", "dependencies": { - "@azure/ms-rest-js": "^1.6.0", + "@azure/ms-rest-js": "^1.2.0", "tslib": "^1.9.3" }, "keywords": [ @@ -43,7 +43,6 @@ "esm/**/*.d.ts", "esm/**/*.d.ts.map", "lib/**/*.ts", - "README.md", "rollup.config.js", "tsconfig.json" ], @@ -52,6 +51,5 @@ "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/cognitiveservices-luis-runtime.js.map'\" -o ./dist/cognitiveservices-luis-runtime.min.js ./dist/cognitiveservices-luis-runtime.js", "prepack": "npm install && npm run build" }, - "sideEffects": false, - "autoPublish": true + "sideEffects": false }