diff --git a/sdk/cognitiveservices/cognitiveservices-luis-authoring/README.md b/sdk/cognitiveservices/cognitiveservices-luis-authoring/README.md index 0ced44ecc0fd..42797ff9903d 100644 --- a/sdk/cognitiveservices/cognitiveservices-luis-authoring/README.md +++ b/sdk/cognitiveservices/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 @@ -37,7 +37,7 @@ msRestNodeAuth.interactiveLogin().then((creds) => { const versionId = "testversionId"; const skip = 1; const take = 1; - client.features.listPhraseLists(appId, versionId, skip, take).then((result) => { + client.features.listApplicationVersionPatternFeatures(appId, versionId, skip, take).then((result) => { console.log("The result is:"); console.log(result); }); @@ -46,7 +46,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 @@ -83,7 +83,7 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to const versionId = "testversionId"; const skip = 1; const take = 1; - client.features.listPhraseLists(appId, versionId, skip, take).then((result) => { + client.features.listApplicationVersionPatternFeatures(appId, versionId, skip, take).then((result) => { console.log("The result is:"); console.log(result); }).catch((err) => { @@ -100,6 +100,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/sdk/cognitiveservices/cognitiveservices-luis-authoring/README.png) diff --git a/sdk/cognitiveservices/cognitiveservices-luis-authoring/lib/lUISAuthoringClient.ts b/sdk/cognitiveservices/cognitiveservices-luis-authoring/lib/lUISAuthoringClient.ts new file mode 100644 index 000000000000..4f3ceab4cdff --- /dev/null +++ b/sdk/cognitiveservices/cognitiveservices-luis-authoring/lib/lUISAuthoringClient.ts @@ -0,0 +1,60 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "./models"; +import * as Mappers from "./models/mappers"; +import * as operations from "./operations"; +import { LUISAuthoringClientContext } from "./lUISAuthoringClientContext"; + +class LUISAuthoringClient extends LUISAuthoringClientContext { + // Operation groups + features: operations.Features; + examples: operations.Examples; + model: operations.Model; + apps: operations.Apps; + versions: operations.Versions; + train: operations.Train; + permissions: operations.Permissions; + pattern: operations.Pattern; + settings: operations.Settings; + azureAccounts: operations.AzureAccounts; + + /** + * 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); + this.features = new operations.Features(this); + this.examples = new operations.Examples(this); + this.model = new operations.Model(this); + this.apps = new operations.Apps(this); + this.versions = new operations.Versions(this); + this.train = new operations.Train(this); + this.permissions = new operations.Permissions(this); + this.pattern = new operations.Pattern(this); + this.settings = new operations.Settings(this); + this.azureAccounts = new operations.AzureAccounts(this); + } +} + +// Operation Specifications + +export { + LUISAuthoringClient, + LUISAuthoringClientContext, + Models as LUISAuthoringModels, + Mappers as LUISAuthoringMappers +}; +export * from "./operations"; diff --git a/sdk/cognitiveservices/cognitiveservices-luis-authoring/lib/lUISAuthoringClientContext.ts b/sdk/cognitiveservices/cognitiveservices-luis-authoring/lib/lUISAuthoringClientContext.ts new file mode 100644 index 000000000000..0cde369f5022 --- /dev/null +++ b/sdk/cognitiveservices/cognitiveservices-luis-authoring/lib/lUISAuthoringClientContext.ts @@ -0,0 +1,51 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; + +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.'); + } + if (credentials === null || credentials === undefined) { + throw new Error('\'credentials\' cannot be null.'); + } + + if (!options) { + options = {}; + } + if(!options.userAgent) { + const defaultUserAgent = msRest.getDefaultUserAgentValue(); + options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`; + } + + super(credentials, options); + + this.baseUri = "{Endpoint}"; + this.requestContentType = "application/json; charset=utf-8"; + this.endpoint = endpoint; + this.credentials = credentials; + + } +} diff --git a/sdk/cognitiveservices/cognitiveservices-luis-authoring/lib/models/appsMappers.ts b/sdk/cognitiveservices/cognitiveservices-luis-authoring/lib/models/appsMappers.ts new file mode 100644 index 000000000000..02a233a2e700 --- /dev/null +++ b/sdk/cognitiveservices/cognitiveservices-luis-authoring/lib/models/appsMappers.ts @@ -0,0 +1,44 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + ApplicationCreateObject, + ErrorResponse, + ApplicationInfoResponse, + LuisApp, + HierarchicalModel, + PrebuiltDomainObject, + ClosedList, + SubClosedList, + PatternAny, + RegexEntity, + PrebuiltEntity, + JSONRegexFeature, + JSONModelFeature, + PatternRule, + JSONUtterance, + JSONEntity, + PersonalAssistantsResponse, + AvailableCulture, + ApplicationUpdateObject, + OperationStatus, + ApplicationPublishObject, + ProductionOrStagingEndpointInfo, + EndpointInfo, + ApplicationSettings, + ApplicationSettingUpdateObject, + PublishSettings, + PublishSettingUpdateObject, + PrebuiltDomain, + PrebuiltDomainItem, + PrebuiltDomainCreateObject, + SubClosedListResponse +} from "../models/mappers"; + diff --git a/sdk/cognitiveservices/cognitiveservices-luis-authoring/lib/models/azureAccountsMappers.ts b/sdk/cognitiveservices/cognitiveservices-luis-authoring/lib/models/azureAccountsMappers.ts new file mode 100644 index 000000000000..98a20816f7f3 --- /dev/null +++ b/sdk/cognitiveservices/cognitiveservices-luis-authoring/lib/models/azureAccountsMappers.ts @@ -0,0 +1,16 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + AzureAccountInfoObject, + OperationStatus, + ErrorResponse +} from "../models/mappers"; + diff --git a/sdk/cognitiveservices/cognitiveservices-luis-authoring/lib/models/examplesMappers.ts b/sdk/cognitiveservices/cognitiveservices-luis-authoring/lib/models/examplesMappers.ts new file mode 100644 index 000000000000..60a7199bfda1 --- /dev/null +++ b/sdk/cognitiveservices/cognitiveservices-luis-authoring/lib/models/examplesMappers.ts @@ -0,0 +1,23 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + ExampleLabelObject, + EntityLabelObject, + LabelExampleResponse, + ErrorResponse, + BatchLabelExample, + OperationStatus, + LabeledUtterance, + EntityLabel, + IntentPrediction, + EntityPrediction +} from "../models/mappers"; + diff --git a/sdk/cognitiveservices/cognitiveservices-luis-authoring/lib/models/featuresMappers.ts b/sdk/cognitiveservices/cognitiveservices-luis-authoring/lib/models/featuresMappers.ts new file mode 100644 index 000000000000..6b7bf9523a76 --- /dev/null +++ b/sdk/cognitiveservices/cognitiveservices-luis-authoring/lib/models/featuresMappers.ts @@ -0,0 +1,21 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + PatternFeatureInfo, + FeatureInfoObject, + ErrorResponse, + PhraselistCreateObject, + PhraseListFeatureInfo, + FeaturesResponseObject, + PhraselistUpdateObject, + OperationStatus +} from "../models/mappers"; + diff --git a/sdk/cognitiveservices/cognitiveservices-luis-authoring/lib/models/index.ts b/sdk/cognitiveservices/cognitiveservices-luis-authoring/lib/models/index.ts new file mode 100644 index 000000000000..c4ddf59dc3fa --- /dev/null +++ b/sdk/cognitiveservices/cognitiveservices-luis-authoring/lib/models/index.ts @@ -0,0 +1,6316 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; + + +/** + * @interface + * An interface representing EntityLabelObject. + * Defines the entity type and position of the extracted entity within the + * example. + * + */ +export interface EntityLabelObject { + /** + * @member {string} entityName The entity type. + */ + entityName: string; + /** + * @member {number} startCharIndex The index within the utterance where the + * extracted entity starts. + */ + startCharIndex: number; + /** + * @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 { + /** + * @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; + /** + * @member {string} [domain] The domain for the new application. Optional. + * E.g.: Comics. + */ + domain?: string; + /** + * @member {string} [description] Description of the new application. + * Optional. + */ + description?: string; + /** + * @member {string} [initialVersionId] The initial version ID. Optional. + * Default value is: "0.1" + */ + initialVersionId?: string; + /** + * @member {string} [usageScenario] Defines the scenario for the new + * application. Optional. E.g.: IoT. + */ + usageScenario?: string; + /** + * @member {string} name The name for the new application. + */ + name: string; +} + +/** + * @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 { + /** + * @member {string} [domainName] The domain name. + */ + domainName?: string; +} + +/** + * @interface + * An interface representing PrebuiltDomainCreateObject. + * A prebuilt domain create object containing the name and culture of the + * domain. + * + */ +export interface PrebuiltDomainCreateObject { + /** + * @member {string} [domainName] The domain name. + */ + domainName?: string; + /** + * @member {string} [culture] The culture of the new domain. + */ + culture?: string; +} + +/** + * @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 { + /** + * @member {string} [domainName] The domain name. + */ + domainName?: string; + /** + * @member {string} [modelName] The intent name or entity name. + */ + modelName?: string; +} + +/** + * @interface + * An interface representing HierarchicalEntityModel. + * A hierarchical entity extractor. + * + */ +export interface HierarchicalEntityModel { + /** + * @member {string[]} [children] Child entities. + */ + children?: string[]; + /** + * @member {string} [name] Entity name. + */ + name?: string; +} + +/** + * @interface + * An interface representing CompositeEntityModel. + * A composite entity extractor. + * + */ +export interface CompositeEntityModel { + /** + * @member {string[]} [children] Child entities. + */ + children?: string[]; + /** + * @member {string} [name] Entity name. + */ + name?: string; +} + +/** + * @interface + * An interface representing JSONEntity. + * Exported Model - Extracted Entity from utterance. + * + */ +export interface JSONEntity { + /** + * @member {number} startPos The index within the utterance where the + * extracted entity starts. + */ + startPos: number; + /** + * @member {number} endPos The index within the utterance where the extracted + * entity ends. + */ + endPos: number; + /** + * @member {string} entity The entity name. + */ + entity: string; +} + +/** + * @interface + * An interface representing ApplicationSettingUpdateObject. + * Object model for updating an application's settings. + * + */ +export interface ApplicationSettingUpdateObject { + /** + * @member {boolean} [isPublic] Setting your application as public allows + * other people to use your application's endpoint using their own keys. + */ + isPublic?: boolean; +} + +/** + * @interface + * An interface representing PublishSettingUpdateObject. + * Object model for updating an application's publish settings. + * + */ +export interface PublishSettingUpdateObject { + /** + * @member {boolean} [sentimentAnalysis] Setting sentiment analysis as true + * returns the Sentiment of the input utterance along with the response + */ + sentimentAnalysis?: boolean; + /** + * @member {boolean} [speech] Setting speech as public enables speech priming + * in your app + */ + speech?: boolean; + /** + * @member {boolean} [spellChecker] Setting spell checker as public enables + * spell checking the input utterance. + */ + spellChecker?: boolean; +} + +/** + * @interface + * An interface representing ExampleLabelObject. + * A labeled example utterance. + * + */ +export interface ExampleLabelObject { + /** + * @member {string} [text] The example utterance. + */ + text?: string; + /** + * @member {EntityLabelObject[]} [entityLabels] The identified entities + * within the example utterance. + */ + entityLabels?: EntityLabelObject[]; + /** + * @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 { + /** + * @member {string} [phrases] List of comma-separated phrases that represent + * the Phraselist. + */ + phrases?: string; + /** + * @member {string} [name] The Phraselist name. + */ + name?: string; + /** + * @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; +} + +/** + * @interface + * An interface representing SubClosedList. + * Sublist of items for a list entity. + * + */ +export interface SubClosedList { + /** + * @member {string} [canonicalForm] The standard form that the list + * represents. + */ + canonicalForm?: string; + /** + * @member {string[]} [list] List of synonym words. + */ + list?: string[]; +} + +/** + * @interface + * An interface representing SubClosedListResponse. + * Sublist of items for a list entity. + * + * @extends SubClosedList + */ +export interface SubClosedListResponse extends SubClosedList { + /** + * @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 { + /** + * @member {string} [name] The application's new name. + */ + name?: string; + /** + * @member {string} [description] The application's new description. + */ + description?: string; +} + +/** + * @interface + * An interface representing JSONRegexFeature. + * Exported Model - A Pattern feature. + * + */ +export interface JSONRegexFeature { + /** + * @member {string} [pattern] The Regular Expression to match. + */ + pattern?: string; + /** + * @member {boolean} [activated] Indicates if the Pattern feature is enabled. + */ + activated?: boolean; + /** + * @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 { + /** + * @member {string} [pattern] The Regular Expression to match. + */ + pattern?: string; + /** + * @member {string} [name] Name of the feature. + */ + name?: string; + /** + * @member {boolean} [isActive] Indicates if the Pattern feature is enabled. + * Default value: true . + */ + isActive?: boolean; +} + +/** + * @interface + * An interface representing ClosedList. + * Exported Model - A list entity. + * + */ +export interface ClosedList { + /** + * @member {string} [name] Name of the list entity. + */ + name?: string; + /** + * @member {SubClosedList[]} [subLists] Sublists for the list entity. + */ + subLists?: SubClosedList[]; + /** + * @member {string[]} [roles] + */ + roles?: string[]; +} + +/** + * @interface + * An interface representing WordListObject. + * Sublist of items for a list entity. + * + */ +export interface WordListObject { + /** + * @member {string} [canonicalForm] The standard form that the list + * represents. + */ + canonicalForm?: string; + /** + * @member {string[]} [list] List of synonym words. + */ + list?: string[]; +} + +/** + * @interface + * An interface representing ClosedListModelPatchObject. + * Object model for adding a batch of sublists to an existing list entity. + * + */ +export interface ClosedListModelPatchObject { + /** + * @member {WordListObject[]} [subLists] Sublists to add. + */ + subLists?: WordListObject[]; +} + +/** + * @interface + * An interface representing JSONModelFeature. + * Exported Model - Phraselist Model Feature. + * + */ +export interface JSONModelFeature { + /** + * @member {boolean} [activated] Indicates if the feature is enabled. + */ + activated?: boolean; + /** + * @member {string} [name] The Phraselist name. + */ + name?: string; + /** + * @member {string} [words] List of comma-separated phrases that represent + * the Phraselist. + */ + words?: string; + /** + * @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 { + /** + * @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 { + /** + * @member {string} [pattern] The Regular Expression to match. + */ + pattern?: string; + /** + * @member {string} [name] Name of the feature. + */ + name?: string; +} + +/** + * @interface + * An interface representing WordListBaseUpdateObject. + * Object model for updating one of the list entity's sublists. + * + */ +export interface WordListBaseUpdateObject { + /** + * @member {string} [canonicalForm] The standard form that the list + * represents. + */ + canonicalForm?: string; + /** + * @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 { + /** + * @member {string} [text] The utterance. + */ + text?: string; + /** + * @member {string} [intent] The matched intent. + */ + intent?: string; + /** + * @member {JSONEntity[]} [entities] The matched entities. + */ + entities?: JSONEntity[]; +} + +/** + * @interface + * An interface representing ModelUpdateObject. + * Object model for updating an intent classifier. + * + */ +export interface ModelUpdateObject { + /** + * @member {string} [name] The entity's new name. + */ + name?: string; +} + +/** + * @interface + * An interface representing ClosedListModelUpdateObject. + * Object model for updating a list entity. + * + */ +export interface ClosedListModelUpdateObject { + /** + * @member {WordListObject[]} [subLists] The new sublists for the feature. + */ + subLists?: WordListObject[]; + /** + * @member {string} [name] The new name of the list entity. + */ + name?: string; +} + +/** + * @interface + * An interface representing ClosedListModelCreateObject. + * Object model for creating a list entity. + * + */ +export interface ClosedListModelCreateObject { + /** + * @member {WordListObject[]} [subLists] Sublists for the feature. + */ + subLists?: WordListObject[]; + /** + * @member {string} [name] Name of the list entity. + */ + name?: string; +} + +/** + * @interface + * An interface representing VersionInfo. + * Object model of an application version. + * + */ +export interface VersionInfo { + /** + * @member {string} version The version ID. E.g.: "0.1" + */ + version: string; + /** + * @member {Date} [createdDateTime] The version's creation timestamp. + */ + createdDateTime?: Date; + /** + * @member {Date} [lastModifiedDateTime] Timestamp of the last update. + */ + lastModifiedDateTime?: Date; + /** + * @member {Date} [lastTrainedDateTime] Timestamp of the last time the model + * was trained. + */ + lastTrainedDateTime?: Date; + /** + * @member {Date} [lastPublishedDateTime] Timestamp when was last published. + */ + lastPublishedDateTime?: Date; + /** + * @member {string} [endpointUrl] The Runtime endpoint URL for this model + * version. + */ + endpointUrl?: string; + /** + * @member {{ [propertyName: string]: string }} [assignedEndpointKey] The + * endpoint key. + */ + assignedEndpointKey?: { [propertyName: string]: string }; + /** + * @member {any} [externalApiKeys] External keys. + */ + externalApiKeys?: any; + /** + * @member {number} [intentsCount] Number of intents in this model. + */ + intentsCount?: number; + /** + * @member {number} [entitiesCount] Number of entities in this model. + */ + entitiesCount?: number; + /** + * @member {number} [endpointHitsCount] Number of calls made to this + * endpoint. + */ + endpointHitsCount?: number; + /** + * @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 { + /** + * @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 { + /** + * @member {string} [phrases] List of comma-separated phrases that represent + * the Phraselist. + */ + phrases?: string; + /** + * @member {string} [name] The Phraselist name. + */ + name?: string; + /** + * @member {boolean} [isActive] Indicates if the Phraselist is enabled. + * Default value: true . + */ + isActive?: boolean; + /** + * @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 { + /** + * @member {string} [versionId] The version ID to publish. + */ + versionId?: string; + /** + * @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 { + /** + * @member {string} [pattern] The pattern text. + */ + pattern?: string; + /** + * @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 { + /** + * @member {string} [name] The name of the application. + */ + name?: string; + /** + * @member {string} [versionId] The version ID of the application that was + * exported. + */ + versionId?: string; + /** + * @member {string} [desc] The description of the application. + */ + desc?: string; + /** + * @member {string} [culture] The culture of the application. E.g.: en-us. + */ + culture?: string; + /** + * @member {HierarchicalModel[]} [intents] List of intents. + */ + intents?: HierarchicalModel[]; + /** + * @member {HierarchicalModel[]} [entities] List of entities. + */ + entities?: HierarchicalModel[]; + /** + * @member {ClosedList[]} [closedLists] List of list entities. + */ + closedLists?: ClosedList[]; + /** + * @member {HierarchicalModel[]} [composites] List of composite entities. + */ + composites?: HierarchicalModel[]; + /** + * @member {PatternAny[]} [patternAnyEntities] List of Pattern.Any entities. + */ + patternAnyEntities?: PatternAny[]; + /** + * @member {RegexEntity[]} [regexEntities] List of regular expression + * entities. + */ + regexEntities?: RegexEntity[]; + /** + * @member {PrebuiltEntity[]} [prebuiltEntities] List of prebuilt entities. + */ + prebuiltEntities?: PrebuiltEntity[]; + /** + * @member {JSONRegexFeature[]} [regexFeatures] List of pattern features. + */ + regexFeatures?: JSONRegexFeature[]; + /** + * @member {JSONModelFeature[]} [modelFeatures] List of model features. + */ + modelFeatures?: JSONModelFeature[]; + /** + * @member {PatternRule[]} [patterns] List of patterns. + */ + patterns?: PatternRule[]; + /** + * @member {JSONUtterance[]} [utterances] List of example utterances. + */ + utterances?: JSONUtterance[]; + /** + * @property Describes unknown properties. The value of an unknown property + * can be of "any" type. + */ + [property: string]: any; +} + +/** + * @interface + * An interface representing EntityLabel. + * Defines the entity type and position of the extracted entity within the + * example. + * + */ +export interface EntityLabel { + /** + * @member {string} entityName The entity type. + */ + entityName: string; + /** + * @member {number} startTokenIndex The index within the utterance where the + * extracted entity starts. + */ + startTokenIndex: number; + /** + * @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 { + /** + * @member {string} [name] The intent's name + */ + name?: string; + /** + * @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 { + /** + * @member {string} entityName The entity's name + */ + entityName: string; + /** + * @member {number} startTokenIndex The index within the utterance where the + * extracted entity starts. + */ + startTokenIndex: number; + /** + * @member {number} endTokenIndex The index within the utterance where the + * extracted entity ends. + */ + endTokenIndex: number; + /** + * @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 { + /** + * @member {number} [id] ID of Labeled Utterance. + */ + id?: number; + /** + * @member {string} [text] The utterance. For example, "What's the weather + * like in seattle?" + */ + text?: string; + /** + * @member {string[]} [tokenizedText] The utterance tokenized. + */ + tokenizedText?: string[]; + /** + * @member {string} [intentLabel] The intent matching the example. + */ + intentLabel?: string; + /** + * @member {EntityLabel[]} [entityLabels] The entities matching the example. + */ + entityLabels?: EntityLabel[]; + /** + * @member {IntentPrediction[]} [intentPredictions] List of suggested + * intents. + */ + intentPredictions?: IntentPrediction[]; + /** + * @member {EntityPrediction[]} [entityPredictions] List of suggested + * entities. + */ + entityPredictions?: EntityPrediction[]; +} + +/** + * @interface + * An interface representing IntentsSuggestionExample. + * Predicted/suggested intent. + * + */ +export interface IntentsSuggestionExample { + /** + * @member {string} [text] The utterance. For example, "What's the weather + * like in seattle?" + */ + text?: string; + /** + * @member {string[]} [tokenizedText] The tokenized utterance. + */ + tokenizedText?: string[]; + /** + * @member {IntentPrediction[]} [intentPredictions] Predicted/suggested + * intents. + */ + intentPredictions?: IntentPrediction[]; + /** + * @member {EntityPrediction[]} [entityPredictions] Predicted/suggested + * entities. + */ + entityPredictions?: EntityPrediction[]; +} + +/** + * @interface + * An interface representing EntitiesSuggestionExample. + * Predicted/suggested entity. + * + */ +export interface EntitiesSuggestionExample { + /** + * @member {string} [text] The utterance. For example, "What's the weather + * like in seattle?" + */ + text?: string; + /** + * @member {string[]} [tokenizedText] The utterance tokenized. + */ + tokenizedText?: string[]; + /** + * @member {IntentPrediction[]} [intentPredictions] Predicted/suggested + * intents. + */ + intentPredictions?: IntentPrediction[]; + /** + * @member {EntityPrediction[]} [entityPredictions] Predicted/suggested + * entities. + */ + entityPredictions?: EntityPrediction[]; +} + +/** + * @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 { + /** + * @member {string} id The ID of the Entity Model. + */ + id: string; + /** + * @member {string} [name] Name of the Entity Model. + */ + name?: string; + /** + * @member {number} [typeId] The type ID of the Entity Model. + */ + typeId?: number; + /** + * @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', 'Closed List Entity + * Extractor', 'Regex Entity Extractor' + */ + readableType: ReadableType; +} + +/** + * @interface + * An interface representing EntityRole. + * Entity extractor role + * + */ +export interface EntityRole { + /** + * @member {string} [id] The entity role ID. + */ + id?: string; + /** + * @member {string} [name] The entity role name. + */ + name?: string; +} + +/** + * @interface + * An interface representing ChildEntity. + * The base child entity type. + * + */ +export interface ChildEntity { + /** + * @member {string} id The ID (GUID) belonging to a child entity. + */ + id: string; + /** + * @member {string} [name] The name of a child entity. + */ + name?: string; +} + +/** + * @interface + * An interface representing ExplicitListItem. + * Explicit (exception) list item + * + */ +export interface ExplicitListItem { + /** + * @member {number} [id] The explicit list item ID. + */ + id?: number; + /** + * @member {string} [explicitListItem] The explicit list item value. + */ + explicitListItem?: string; +} + +/** + * @interface + * An interface representing ModelInfoResponse. + * An application model info. + * + */ +export interface ModelInfoResponse { + /** + * @member {string} id The ID of the Entity Model. + */ + id: string; + /** + * @member {string} [name] Name of the Entity Model. + */ + name?: string; + /** + * @member {number} [typeId] The type ID of the Entity Model. + */ + typeId?: number; + /** + * @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', 'Closed List Entity + * Extractor', 'Regex Entity Extractor' + */ + readableType: ReadableType1; + /** + * @member {EntityRole[]} [roles] + */ + roles?: EntityRole[]; + /** + * @member {ChildEntity[]} [children] List of child entities. + */ + children?: ChildEntity[]; + /** + * @member {SubClosedListResponse[]} [subLists] List of sublists. + */ + subLists?: SubClosedListResponse[]; + /** + * @member {string} [customPrebuiltDomainName] The domain name. + */ + customPrebuiltDomainName?: string; + /** + * @member {string} [customPrebuiltModelName] The intent name or entity name. + */ + customPrebuiltModelName?: string; + /** + * @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 { + /** + * @member {string} id The ID of the Entity Model. + */ + id: string; + /** + * @member {string} [name] Name of the Entity Model. + */ + name?: string; + /** + * @member {number} [typeId] The type ID of the Entity Model. + */ + typeId?: number; + /** + * @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', 'Closed List Entity + * Extractor', 'Regex Entity Extractor' + */ + readableType: ReadableType2; + /** + * @member {EntityRole[]} [roles] + */ + roles?: EntityRole[]; + /** + * @member {ChildEntity[]} [children] List of child entities. + */ + children?: ChildEntity[]; +} + +/** + * @interface + * An interface representing CompositeEntityExtractor. + * A Composite Entity Extractor. + * + */ +export interface CompositeEntityExtractor { + /** + * @member {string} id The ID of the Entity Model. + */ + id: string; + /** + * @member {string} [name] Name of the Entity Model. + */ + name?: string; + /** + * @member {number} [typeId] The type ID of the Entity Model. + */ + typeId?: number; + /** + * @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', 'Closed List Entity + * Extractor', 'Regex Entity Extractor' + */ + readableType: ReadableType3; + /** + * @member {EntityRole[]} [roles] + */ + roles?: EntityRole[]; + /** + * @member {ChildEntity[]} [children] List of child entities. + */ + children?: ChildEntity[]; +} + +/** + * @interface + * An interface representing ClosedListEntityExtractor. + * List Entity Extractor. + * + */ +export interface ClosedListEntityExtractor { + /** + * @member {string} id The ID of the Entity Model. + */ + id: string; + /** + * @member {string} [name] Name of the Entity Model. + */ + name?: string; + /** + * @member {number} [typeId] The type ID of the Entity Model. + */ + typeId?: number; + /** + * @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', 'Closed List Entity + * Extractor', 'Regex Entity Extractor' + */ + readableType: ReadableType4; + /** + * @member {EntityRole[]} [roles] + */ + roles?: EntityRole[]; + /** + * @member {SubClosedListResponse[]} [subLists] List of sublists. + */ + subLists?: SubClosedListResponse[]; +} + +/** + * @interface + * An interface representing PrebuiltEntityExtractor. + * Prebuilt Entity Extractor. + * + */ +export interface PrebuiltEntityExtractor { + /** + * @member {string} id The ID of the Entity Model. + */ + id: string; + /** + * @member {string} [name] Name of the Entity Model. + */ + name?: string; + /** + * @member {number} [typeId] The type ID of the Entity Model. + */ + typeId?: number; + /** + * @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', 'Closed List Entity + * Extractor', 'Regex 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 { + /** + * @member {number} [typeId] The type ID of the Entity Model. + */ + typeId?: number; + /** + * @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', 'Closed List Entity + * Extractor', 'Regex Entity Extractor' + */ + readableType?: ReadableType6; +} + +/** + * @interface + * An interface representing CustomPrebuiltModel. + * A Custom Prebuilt model. + * + */ +export interface CustomPrebuiltModel { + /** + * @member {string} id The ID of the Entity Model. + */ + id: string; + /** + * @member {string} [name] Name of the Entity Model. + */ + name?: string; + /** + * @member {number} [typeId] The type ID of the Entity Model. + */ + typeId?: number; + /** + * @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', 'Closed List Entity + * Extractor', 'Regex Entity Extractor' + */ + readableType: ReadableType7; + /** + * @member {string} [customPrebuiltDomainName] The domain name. + */ + customPrebuiltDomainName?: string; + /** + * @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 { + /** + * @member {string} [customPrebuiltDomainName] The domain name. + */ + customPrebuiltDomainName?: string; + /** + * @member {string} [customPrebuiltModelName] The intent name or entity name. + */ + customPrebuiltModelName?: string; +} + +/** + * @interface + * An interface representing EntityExtractor. + * Entity Extractor. + * + */ +export interface EntityExtractor { + /** + * @member {string} id The ID of the Entity Model. + */ + id: string; + /** + * @member {string} [name] Name of the Entity Model. + */ + name?: string; + /** + * @member {number} [typeId] The type ID of the Entity Model. + */ + typeId?: number; + /** + * @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', 'Closed List Entity + * Extractor', 'Regex Entity Extractor' + */ + readableType: ReadableType8; + /** + * @member {EntityRole[]} [roles] + */ + roles?: EntityRole[]; + /** + * @member {string} [customPrebuiltDomainName] The domain name. + */ + customPrebuiltDomainName?: string; + /** + * @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 { + /** + * @member {number} [id] A six-digit ID used for Features. + */ + id?: number; + /** + * @member {string} [name] The name of the Feature. + */ + name?: string; + /** + * @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 { + /** + * @member {string} [phrases] A list of comma-separated values. + */ + phrases?: string; + /** + * @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 { + /** + * @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[]; +} + +/** + * @interface + * An interface representing LabelExampleResponse. + * Response when adding a labeled example utterance. + * + */ +export interface LabelExampleResponse { + /** + * @member {string} [utteranceText] The example utterance. + */ + utteranceText?: string; + /** + * @member {number} [exampleId] The newly created sample ID. + */ + exampleId?: number; +} + +/** + * @interface + * An interface representing OperationStatus. + * Response of an Operation status. + * + */ +export interface OperationStatus { + /** + * @member {OperationStatusType} [code] Status Code. Possible values include: + * 'Failed', 'FAILED', 'Success' + */ + code?: OperationStatusType; + /** + * @member {string} [message] Status details. + */ + message?: string; +} + +/** + * @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 { + /** + * @member {string} [id] The ID (GUID) of the application. + */ + id?: string; + /** + * @member {string} [name] The name of the application. + */ + name?: string; + /** + * @member {string} [description] The description of the application. + */ + description?: string; + /** + * @member {string} [culture] The culture of the application. For example, + * "en-us". + */ + culture?: string; + /** + * @member {string} [usageScenario] Defines the scenario for the new + * application. Optional. For example, IoT. + */ + usageScenario?: string; + /** + * @member {string} [domain] The domain for the new application. Optional. + * For example, Comics. + */ + domain?: string; + /** + * @member {number} [versionsCount] Amount of model versions within the + * application. + */ + versionsCount?: number; + /** + * @member {string} [createdDateTime] The version's creation timestamp. + */ + createdDateTime?: string; + /** + * @member {any} [endpoints] The Runtime endpoint URL for this model version. + */ + endpoints?: any; + /** + * @member {number} [endpointHitsCount] Number of calls made to this + * endpoint. + */ + endpointHitsCount?: number; + /** + * @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 { + /** + * @member {string} [versionId] The version ID to publish. + */ + versionId?: string; + /** + * @member {boolean} [isStaging] Indicates if the staging slot should be + * used, instead of the Production one. + */ + isStaging?: boolean; + /** + * @member {string} [endpointUrl] The Runtime endpoint URL for this model + * version. + */ + endpointUrl?: string; + /** + * @member {string} [region] The target region that the application is + * published to. + */ + region?: string; + /** + * @member {string} [assignedEndpointKey] The endpoint key. + */ + assignedEndpointKey?: string; + /** + * @member {string} [endpointRegion] The endpoint's region. + */ + endpointRegion?: string; + /** + * @member {string} [failedRegions] Regions where publishing failed. + */ + failedRegions?: string; + /** + * @member {string} [publishedDateTime] Timestamp when was last published. + */ + 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 { + /** + * @member {string} [name] The language name. + */ + name?: string; + /** + * @member {string} [code] The ISO value for the language. + */ + code?: string; +} + +/** + * @interface + * An interface representing ApplicationSettings. + * The application settings. + * + */ +export interface ApplicationSettings { + /** + * @member {string} id The application ID. + */ + id: string; + /** + * @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 { + /** + * @member {string} id The application ID. + */ + id: string; + /** + * @member {boolean} isSentimentAnalysisEnabled Setting sentiment analysis as + * true returns the sentiment of the input utterance along with the response + */ + isSentimentAnalysisEnabled: boolean; + /** + * @member {boolean} isSpeechEnabled Enables speech priming in your app + */ + isSpeechEnabled: boolean; + /** + * @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 { + /** + * @member {string} [name] The entity name. + */ + name?: string; + /** + * @member {string} [description] The entity description and usage + * information. + */ + description?: string; + /** + * @member {string} [examples] Usage examples. + */ + examples?: string; +} + +/** + * @interface + * An interface representing EnqueueTrainingResponse. + * Response model when requesting to train the model. + * + */ +export interface EnqueueTrainingResponse { + /** + * @member {number} [statusId] The train request status ID. + */ + statusId?: number; + /** + * @member {Status} [status] Possible values include: 'Queued', 'InProgress', + * 'UpToDate', 'Fail', 'Success' + */ + status?: Status; +} + +/** + * @interface + * An interface representing ModelTrainingDetails. + * Model Training Details. + * + */ +export interface ModelTrainingDetails { + /** + * @member {number} [statusId] The train request status ID. + */ + statusId?: number; + /** + * @member {Status1} [status] Possible values include: 'Queued', + * 'InProgress', 'UpToDate', 'Fail', 'Success' + */ + status?: Status1; + /** + * @member {number} [exampleCount] The count of examples used to train the + * model. + */ + exampleCount?: number; + /** + * @member {Date} [trainingDateTime] When the model was trained. + */ + trainingDateTime?: Date; + /** + * @member {string} [failureReason] Reason for the training failure. + */ + failureReason?: string; +} + +/** + * @interface + * An interface representing ModelTrainingInfo. + * Model Training Info. + * + */ +export interface ModelTrainingInfo { + /** + * @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 { + /** + * @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 { + /** + * @member {string} [email] The email address of the user. + */ + email?: string; +} + +/** + * @interface + * An interface representing CollaboratorsArray. + */ +export interface CollaboratorsArray { + /** + * @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; + /** + * @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 { + /** + * @member {string} [name] The entity role name. + */ + name?: string; +} + +/** + * @interface + * An interface representing RegexModelCreateObject. + * Model object for creating a regular expression entity model. + * + */ +export interface RegexModelCreateObject { + /** + * @member {string} [regexPattern] The regular expression entity pattern. + */ + regexPattern?: string; + /** + * @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 { + /** + * @member {string} [name] The model name. + */ + name?: string; + /** + * @member {string[]} [explicitList] The Pattern.Any explicit list. + */ + explicitList?: string[]; +} + +/** + * @interface + * An interface representing ExplicitListItemCreateObject. + * Object model for creating an explicit (exception) list item. + * + */ +export interface ExplicitListItemCreateObject { + /** + * @member {string} [explicitListItem] The explicit list item. + */ + explicitListItem?: string; +} + +/** + * @interface + * An interface representing RegexModelUpdateObject. + * Model object for updating a regular expression entity model. + * + */ +export interface RegexModelUpdateObject { + /** + * @member {string} [regexPattern] The regular expression entity pattern. + */ + regexPattern?: string; + /** + * @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 { + /** + * @member {string} [name] The model name. + */ + name?: string; + /** + * @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 { + /** + * @member {string} [name] The entity role name. + */ + name?: string; +} + +/** + * @interface + * An interface representing ExplicitListItemUpdateObject. + * Model object for updating an explicit (exception) list item. + * + */ +export interface ExplicitListItemUpdateObject { + /** + * @member {string} [explicitListItem] The explicit list item. + */ + explicitListItem?: string; +} + +/** + * @interface + * An interface representing PatternRuleCreateObject. + * Object model for creating a pattern + * + */ +export interface PatternRuleCreateObject { + /** + * @member {string} [pattern] The pattern text. + */ + pattern?: string; + /** + * @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 { + /** + * @member {string} [id] The pattern ID. + */ + id?: string; + /** + * @member {string} [pattern] The pattern text. + */ + pattern?: string; + /** + * @member {string} [intent] The intent's name which the pattern belongs to. + */ + intent?: string; +} + +/** + * @interface + * An interface representing RegexEntityExtractor. + * Regular Expression Entity Extractor. + * + */ +export interface RegexEntityExtractor { + /** + * @member {string} id The ID of the Entity Model. + */ + id: string; + /** + * @member {string} [name] Name of the Entity Model. + */ + name?: string; + /** + * @member {number} [typeId] The type ID of the Entity Model. + */ + typeId?: number; + /** + * @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', 'Closed List Entity + * Extractor', 'Regex Entity Extractor' + */ + readableType: ReadableType9; + /** + * @member {EntityRole[]} [roles] + */ + roles?: EntityRole[]; + /** + * @member {string} [regexPattern] The Regular Expression entity pattern. + */ + regexPattern?: string; +} + +/** + * @interface + * An interface representing PatternAnyEntityExtractor. + * Pattern.Any Entity Extractor. + * + */ +export interface PatternAnyEntityExtractor { + /** + * @member {string} id The ID of the Entity Model. + */ + id: string; + /** + * @member {string} [name] Name of the Entity Model. + */ + name?: string; + /** + * @member {number} [typeId] The type ID of the Entity Model. + */ + typeId?: number; + /** + * @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', 'Closed List Entity + * Extractor', 'Regex Entity Extractor' + */ + readableType: ReadableType10; + /** + * @member {EntityRole[]} [roles] + */ + roles?: EntityRole[]; + /** + * @member {ExplicitListItem[]} [explicitList] + */ + explicitList?: ExplicitListItem[]; +} + +/** + * @interface + * An interface representing PatternRuleInfo. + * Pattern rule + * + */ +export interface PatternRuleInfo { + /** + * @member {string} [id] The pattern ID. + */ + id?: string; + /** + * @member {string} [pattern] The pattern text. + */ + pattern?: string; + /** + * @member {string} [intent] The intent's name where the pattern belongs to. + */ + intent?: string; +} + +/** + * @interface + * An interface representing LabelTextObject. + * An object containing the example utterance's text. + * + */ +export interface LabelTextObject { + /** + * @member {number} [id] The ID of the Label. + */ + id?: number; + /** + * @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 { + /** + * @member {string} [name] The application version setting name. + */ + name?: string; + /** + * @member {string} [value] The application version setting value. + */ + value?: string; +} + +/** + * @interface + * An interface representing AzureAccountInfoObject. + * Defines the Azure account information object. + * + */ +export interface AzureAccountInfoObject { + /** + * @member {string} azureSubscriptionId The id for the Azure subscription. + */ + azureSubscriptionId: string; + /** + * @member {string} resourceGroup The Azure resource group name. + */ + resourceGroup: string; + /** + * @member {string} accountName The Azure account name. + */ + accountName: string; +} + +/** + * @interface + * An interface representing HierarchicalChildModelUpdateObject. + */ +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 { + /** + * @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 FeaturesListOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface FeaturesListOptionalParams 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 FeaturesUpdatePhraseListOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface FeaturesUpdatePhraseListOptionalParams extends msRest.RequestOptionsBase { + /** + * @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 { + /** + * @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 ModelListIntentsOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ModelListIntentsOptionalParams 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 ModelListEntitiesOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ModelListEntitiesOptionalParams 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 ModelListHierarchicalEntitiesOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ModelListHierarchicalEntitiesOptionalParams 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 ModelListCompositeEntitiesOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ModelListCompositeEntitiesOptionalParams 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 ModelListClosedListsOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ModelListClosedListsOptionalParams 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 ModelListPrebuiltsOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ModelListPrebuiltsOptionalParams 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 ModelListModelsOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ModelListModelsOptionalParams 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 ModelExamplesMethodOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ModelExamplesMethodOptionalParams 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 ModelDeleteIntentOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ModelDeleteIntentOptionalParams extends msRest.RequestOptionsBase { + /** + * @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 ModelListIntentSuggestionsOptionalParams extends msRest.RequestOptionsBase { + /** + * @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 ModelListEntitySuggestionsOptionalParams extends msRest.RequestOptionsBase { + /** + * @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 ModelListRegexEntityInfosOptionalParams 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 ModelListPatternAnyEntityInfosOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ModelListPatternAnyEntityInfosOptionalParams 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 AppsListOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface AppsListOptionalParams 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 AppsImportMethodOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface AppsImportMethodOptionalParams extends msRest.RequestOptionsBase { + /** + * @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 { + /** + * @member {boolean} [force] A flag to indicate whether to force an + * operation. Default value: false . + */ + force?: boolean; +} + +/** + * @interface + * An interface representing VersionsListOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface VersionsListOptionalParams 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 VersionsImportMethodOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface VersionsImportMethodOptionalParams extends msRest.RequestOptionsBase { + /** + * @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 PatternListPatternsOptionalParams 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 PatternListIntentPatternsOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface PatternListIntentPatternsOptionalParams 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 AzureAccountsAssignToAppOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface AzureAccountsAssignToAppOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {AzureAccountInfoObject} [azureAccountInfoObject] The Azure + * account information object. + */ + azureAccountInfoObject?: AzureAccountInfoObject; +} + +/** + * @interface + * An interface representing AzureAccountsRemoveFromAppOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface AzureAccountsRemoveFromAppOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {AzureAccountInfoObject} [azureAccountInfoObject] The Azure + * account information object. + */ + azureAccountInfoObject?: AzureAccountInfoObject; +} + +/** + * Defines values for TrainingStatus. + * Possible values include: 'NeedsTraining', 'InProgress', 'Trained' + * @readonly + * @enum {string} + */ +export type TrainingStatus = 'NeedsTraining' | 'InProgress' | 'Trained'; + +/** + * Defines values for OperationStatusType. + * Possible values include: 'Failed', 'FAILED', 'Success' + * @readonly + * @enum {string} + */ +export type OperationStatusType = 'Failed' | 'FAILED' | 'Success'; + +/** + * Defines values for 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', 'Closed List Entity Extractor', 'Regex Entity Extractor' + * @readonly + * @enum {string} + */ +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' | 'Closed List Entity Extractor' | 'Regex Entity Extractor'; + +/** + * Defines values for ReadableType1. + * 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', 'Closed List Entity Extractor', 'Regex Entity Extractor' + * @readonly + * @enum {string} + */ +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' | 'Closed List Entity Extractor' | 'Regex Entity Extractor'; + +/** + * Defines values for ReadableType2. + * 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', 'Closed List Entity Extractor', 'Regex Entity Extractor' + * @readonly + * @enum {string} + */ +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' | 'Closed List Entity Extractor' | 'Regex Entity Extractor'; + +/** + * Defines values for ReadableType3. + * 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', 'Closed List Entity Extractor', 'Regex Entity Extractor' + * @readonly + * @enum {string} + */ +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' | 'Closed List Entity Extractor' | 'Regex Entity Extractor'; + +/** + * Defines values for ReadableType4. + * 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', 'Closed List Entity Extractor', 'Regex Entity Extractor' + * @readonly + * @enum {string} + */ +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' | 'Closed List Entity Extractor' | 'Regex Entity Extractor'; + +/** + * Defines values for ReadableType5. + * 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', 'Closed List Entity Extractor', 'Regex Entity Extractor' + * @readonly + * @enum {string} + */ +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' | 'Closed List Entity Extractor' | 'Regex Entity Extractor'; + +/** + * Defines values for ReadableType6. + * 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', 'Closed List Entity Extractor', 'Regex Entity Extractor' + * @readonly + * @enum {string} + */ +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' | 'Closed List Entity Extractor' | 'Regex Entity Extractor'; + +/** + * Defines values for ReadableType7. + * 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', 'Closed List Entity Extractor', 'Regex Entity Extractor' + * @readonly + * @enum {string} + */ +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' | 'Closed List Entity Extractor' | 'Regex Entity Extractor'; + +/** + * Defines values for ReadableType8. + * 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', 'Closed List Entity Extractor', 'Regex Entity Extractor' + * @readonly + * @enum {string} + */ +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' | 'Closed List Entity Extractor' | 'Regex Entity Extractor'; + +/** + * Defines values for Status. + * Possible values include: 'Queued', 'InProgress', 'UpToDate', 'Fail', 'Success' + * @readonly + * @enum {string} + */ +export type Status = 'Queued' | 'InProgress' | 'UpToDate' | 'Fail' | 'Success'; + +/** + * Defines values for Status1. + * Possible values include: 'Queued', 'InProgress', 'UpToDate', 'Fail', 'Success' + * @readonly + * @enum {string} + */ +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', 'List Entity Extractor', 'Prebuilt Entity + * Extractor', 'Intent Classifier', 'Pattern.Any Entity Extractor', 'Regular Expression Entity + * Extractor', 'Closed List Entity Extractor', 'Regex Entity Extractor' + * @readonly + * @enum {string} + */ +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' | 'Closed List Entity Extractor' | 'Regex Entity Extractor'; + +/** + * Defines values for ReadableType10. + * 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', 'Closed List Entity Extractor', 'Regex Entity Extractor' + * @readonly + * @enum {string} + */ +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' | 'Closed List Entity Extractor' | 'Regex 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. + */ +export type FeaturesAddPhraseListResponse = { + /** + * The parsed response body. + */ + body: number; + /** + * 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: number; + }; +}; + +/** + * Contains response data for the listPhraseLists operation. + */ +export type FeaturesListPhraseListsResponse = 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: PhraseListFeatureInfo[]; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type FeaturesListResponse = FeaturesResponseObject & { + /** + * 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: FeaturesResponseObject; + }; +}; + +/** + * Contains response data for the getPhraseList operation. + */ +export type FeaturesGetPhraseListResponse = PhraseListFeatureInfo & { + /** + * 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: PhraseListFeatureInfo; + }; +}; + +/** + * Contains response data for the updatePhraseList operation. + */ +export type FeaturesUpdatePhraseListResponse = OperationStatus & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; +}; + +/** + * Contains response data for the deletePhraseList operation. + */ +export type FeaturesDeletePhraseListResponse = OperationStatus & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; +}; + +/** + * Contains response data for the add operation. + */ +export type ExamplesAddResponse = LabelExampleResponse & { + /** + * 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: LabelExampleResponse; + }; +}; + +/** + * Contains response data for the batch operation. + */ +export type ExamplesBatchResponse = 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: BatchLabelExample[]; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type ExamplesListResponse = 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: LabeledUtterance[]; + }; +}; + +/** + * Contains response data for the deleteMethod operation. + */ +export type ExamplesDeleteMethodResponse = OperationStatus & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; +}; + +/** + * Contains response data for the addIntent operation. + */ +export type ModelAddIntentResponse = { + /** + * The parsed response body. + */ + body: string; + /** + * 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: string; + }; +}; + +/** + * Contains response data for the listIntents operation. + */ +export type ModelListIntentsResponse = 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: IntentClassifier[]; + }; +}; + +/** + * Contains response data for the addEntity operation. + */ +export type ModelAddEntityResponse = { + /** + * The parsed response body. + */ + body: string; + /** + * 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: string; + }; +}; + +/** + * Contains response data for the listEntities operation. + */ +export type ModelListEntitiesResponse = 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: EntityExtractor[]; + }; +}; + +/** + * Contains response data for the addHierarchicalEntity operation. + */ +export type ModelAddHierarchicalEntityResponse = { + /** + * The parsed response body. + */ + body: string; + /** + * 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: string; + }; +}; + +/** + * Contains response data for the listHierarchicalEntities operation. + */ +export type ModelListHierarchicalEntitiesResponse = 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: HierarchicalEntityExtractor[]; + }; +}; + +/** + * Contains response data for the addCompositeEntity operation. + */ +export type ModelAddCompositeEntityResponse = { + /** + * The parsed response body. + */ + body: string; + /** + * 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: string; + }; +}; + +/** + * Contains response data for the listCompositeEntities operation. + */ +export type ModelListCompositeEntitiesResponse = 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: CompositeEntityExtractor[]; + }; +}; + +/** + * Contains response data for the listClosedLists operation. + */ +export type ModelListClosedListsResponse = 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: ClosedListEntityExtractor[]; + }; +}; + +/** + * Contains response data for the addClosedList operation. + */ +export type ModelAddClosedListResponse = { + /** + * The parsed response body. + */ + body: string; + /** + * 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: string; + }; +}; + +/** + * Contains response data for the addPrebuilt operation. + */ +export type ModelAddPrebuiltResponse = 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: PrebuiltEntityExtractor[]; + }; +}; + +/** + * Contains response data for the listPrebuilts operation. + */ +export type ModelListPrebuiltsResponse = 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: PrebuiltEntityExtractor[]; + }; +}; + +/** + * Contains response data for the listPrebuiltEntities operation. + */ +export type ModelListPrebuiltEntitiesResponse = 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: AvailablePrebuiltEntityModel[]; + }; +}; + +/** + * Contains response data for the listModels operation. + */ +export type ModelListModelsResponse = 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: ModelInfoResponse[]; + }; +}; + +/** + * Contains response data for the examplesMethod operation. + */ +export type ModelExamplesMethodResponse = 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: LabelTextObject[]; + }; +}; + +/** + * Contains response data for the getIntent operation. + */ +export type ModelGetIntentResponse = IntentClassifier & { + /** + * 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: IntentClassifier; + }; +}; + +/** + * Contains response data for the updateIntent operation. + */ +export type ModelUpdateIntentResponse = OperationStatus & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; +}; + +/** + * Contains response data for the deleteIntent operation. + */ +export type ModelDeleteIntentResponse = OperationStatus & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; +}; + +/** + * Contains response data for the getEntity operation. + */ +export type ModelGetEntityResponse = EntityExtractor & { + /** + * 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: EntityExtractor; + }; +}; + +/** + * Contains response data for the updateEntity operation. + */ +export type ModelUpdateEntityResponse = OperationStatus & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; +}; + +/** + * Contains response data for the deleteEntity operation. + */ +export type ModelDeleteEntityResponse = OperationStatus & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; +}; + +/** + * Contains response data for the getHierarchicalEntity operation. + */ +export type ModelGetHierarchicalEntityResponse = HierarchicalEntityExtractor & { + /** + * 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: HierarchicalEntityExtractor; + }; +}; + +/** + * Contains response data for the updateHierarchicalEntity operation. + */ +export type ModelUpdateHierarchicalEntityResponse = OperationStatus & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; +}; + +/** + * Contains response data for the deleteHierarchicalEntity operation. + */ +export type ModelDeleteHierarchicalEntityResponse = OperationStatus & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; +}; + +/** + * Contains response data for the getCompositeEntity operation. + */ +export type ModelGetCompositeEntityResponse = CompositeEntityExtractor & { + /** + * 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: CompositeEntityExtractor; + }; +}; + +/** + * Contains response data for the updateCompositeEntity operation. + */ +export type ModelUpdateCompositeEntityResponse = OperationStatus & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; +}; + +/** + * Contains response data for the deleteCompositeEntity operation. + */ +export type ModelDeleteCompositeEntityResponse = OperationStatus & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; +}; + +/** + * Contains response data for the getClosedList operation. + */ +export type ModelGetClosedListResponse = ClosedListEntityExtractor & { + /** + * 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: ClosedListEntityExtractor; + }; +}; + +/** + * Contains response data for the updateClosedList operation. + */ +export type ModelUpdateClosedListResponse = OperationStatus & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; +}; + +/** + * Contains response data for the patchClosedList operation. + */ +export type ModelPatchClosedListResponse = OperationStatus & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; +}; + +/** + * Contains response data for the deleteClosedList operation. + */ +export type ModelDeleteClosedListResponse = OperationStatus & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; +}; + +/** + * Contains response data for the getPrebuilt operation. + */ +export type ModelGetPrebuiltResponse = PrebuiltEntityExtractor & { + /** + * 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: PrebuiltEntityExtractor; + }; +}; + +/** + * Contains response data for the deletePrebuilt operation. + */ +export type ModelDeletePrebuiltResponse = OperationStatus & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; +}; + +/** + * Contains response data for the deleteSubList operation. + */ +export type ModelDeleteSubListResponse = OperationStatus & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; +}; + +/** + * Contains response data for the updateSubList operation. + */ +export type ModelUpdateSubListResponse = OperationStatus & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; +}; + +/** + * Contains response data for the listIntentSuggestions operation. + */ +export type ModelListIntentSuggestionsResponse = 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: IntentsSuggestionExample[]; + }; +}; + +/** + * Contains response data for the listEntitySuggestions operation. + */ +export type ModelListEntitySuggestionsResponse = 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: EntitiesSuggestionExample[]; + }; +}; + +/** + * Contains response data for the addSubList operation. + */ +export type ModelAddSubListResponse = { + /** + * The parsed response body. + */ + body: number; + /** + * 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: number; + }; +}; + +/** + * Contains response data for the addCustomPrebuiltDomain operation. + */ +export type ModelAddCustomPrebuiltDomainResponse = 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: string[]; + }; +}; + +/** + * Contains response data for the addCustomPrebuiltIntent operation. + */ +export type ModelAddCustomPrebuiltIntentResponse = { + /** + * The parsed response body. + */ + body: string; + /** + * 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: string; + }; +}; + +/** + * Contains response data for the listCustomPrebuiltIntents operation. + */ +export type ModelListCustomPrebuiltIntentsResponse = 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: IntentClassifier[]; + }; +}; + +/** + * Contains response data for the addCustomPrebuiltEntity operation. + */ +export type ModelAddCustomPrebuiltEntityResponse = { + /** + * The parsed response body. + */ + body: string; + /** + * 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: string; + }; +}; + +/** + * Contains response data for the listCustomPrebuiltEntities operation. + */ +export type ModelListCustomPrebuiltEntitiesResponse = 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: EntityExtractor[]; + }; +}; + +/** + * Contains response data for the listCustomPrebuiltModels operation. + */ +export type ModelListCustomPrebuiltModelsResponse = 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: CustomPrebuiltModel[]; + }; +}; + +/** + * Contains response data for the deleteCustomPrebuiltDomain operation. + */ +export type ModelDeleteCustomPrebuiltDomainResponse = OperationStatus & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; +}; + +/** + * Contains response data for the getHierarchicalEntityChild operation. + */ +export type ModelGetHierarchicalEntityChildResponse = HierarchicalChildEntity & { + /** + * 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: HierarchicalChildEntity; + }; +}; + +/** + * Contains response data for the updateHierarchicalEntityChild operation. + */ +export type ModelUpdateHierarchicalEntityChildResponse = OperationStatus & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; +}; + +/** + * Contains response data for the deleteHierarchicalEntityChild operation. + */ +export type ModelDeleteHierarchicalEntityChildResponse = OperationStatus & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; +}; + +/** + * Contains response data for the addHierarchicalEntityChild operation. + */ +export type ModelAddHierarchicalEntityChildResponse = { + /** + * The parsed response body. + */ + body: string; + /** + * 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: string; + }; +}; + +/** + * Contains response data for the addCompositeEntityChild operation. + */ +export type ModelAddCompositeEntityChildResponse = { + /** + * The parsed response body. + */ + body: string; + /** + * 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: string; + }; +}; + +/** + * Contains response data for the deleteCompositeEntityChild operation. + */ +export type ModelDeleteCompositeEntityChildResponse = OperationStatus & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; +}; + +/** + * Contains response data for the listRegexEntityInfos operation. + */ +export type ModelListRegexEntityInfosResponse = 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: RegexEntityExtractor[]; + }; +}; + +/** + * Contains response data for the createRegexEntityModel operation. + */ +export type ModelCreateRegexEntityModelResponse = { + /** + * The parsed response body. + */ + body: string; + /** + * 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: string; + }; +}; + +/** + * Contains response data for the listPatternAnyEntityInfos operation. + */ +export type ModelListPatternAnyEntityInfosResponse = 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: PatternAnyEntityExtractor[]; + }; +}; + +/** + * Contains response data for the createPatternAnyEntityModel operation. + */ +export type ModelCreatePatternAnyEntityModelResponse = { + /** + * The parsed response body. + */ + body: string; + /** + * 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: string; + }; +}; + +/** + * Contains response data for the listEntityRoles operation. + */ +export type ModelListEntityRolesResponse = 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: EntityRole[]; + }; +}; + +/** + * Contains response data for the createEntityRole operation. + */ +export type ModelCreateEntityRoleResponse = { + /** + * The parsed response body. + */ + body: string; + /** + * 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: string; + }; +}; + +/** + * Contains response data for the listPrebuiltEntityRoles operation. + */ +export type ModelListPrebuiltEntityRolesResponse = 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: EntityRole[]; + }; +}; + +/** + * Contains response data for the createPrebuiltEntityRole operation. + */ +export type ModelCreatePrebuiltEntityRoleResponse = { + /** + * The parsed response body. + */ + body: string; + /** + * 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: string; + }; +}; + +/** + * Contains response data for the listClosedListEntityRoles operation. + */ +export type ModelListClosedListEntityRolesResponse = 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: EntityRole[]; + }; +}; + +/** + * Contains response data for the createClosedListEntityRole operation. + */ +export type ModelCreateClosedListEntityRoleResponse = { + /** + * The parsed response body. + */ + body: string; + /** + * 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: string; + }; +}; + +/** + * Contains response data for the listRegexEntityRoles operation. + */ +export type ModelListRegexEntityRolesResponse = 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: EntityRole[]; + }; +}; + +/** + * Contains response data for the createRegexEntityRole operation. + */ +export type ModelCreateRegexEntityRoleResponse = { + /** + * The parsed response body. + */ + body: string; + /** + * 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: string; + }; +}; + +/** + * Contains response data for the listCompositeEntityRoles operation. + */ +export type ModelListCompositeEntityRolesResponse = 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: EntityRole[]; + }; +}; + +/** + * Contains response data for the createCompositeEntityRole operation. + */ +export type ModelCreateCompositeEntityRoleResponse = { + /** + * The parsed response body. + */ + body: string; + /** + * 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: string; + }; +}; + +/** + * Contains response data for the listPatternAnyEntityRoles operation. + */ +export type ModelListPatternAnyEntityRolesResponse = 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: EntityRole[]; + }; +}; + +/** + * Contains response data for the createPatternAnyEntityRole operation. + */ +export type ModelCreatePatternAnyEntityRoleResponse = { + /** + * The parsed response body. + */ + body: string; + /** + * 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: string; + }; +}; + +/** + * Contains response data for the listHierarchicalEntityRoles operation. + */ +export type ModelListHierarchicalEntityRolesResponse = 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: EntityRole[]; + }; +}; + +/** + * Contains response data for the createHierarchicalEntityRole operation. + */ +export type ModelCreateHierarchicalEntityRoleResponse = { + /** + * The parsed response body. + */ + body: string; + /** + * 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: string; + }; +}; + +/** + * Contains response data for the listCustomPrebuiltEntityRoles operation. + */ +export type ModelListCustomPrebuiltEntityRolesResponse = 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: EntityRole[]; + }; +}; + +/** + * Contains response data for the createCustomPrebuiltEntityRole operation. + */ +export type ModelCreateCustomPrebuiltEntityRoleResponse = { + /** + * The parsed response body. + */ + body: string; + /** + * 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: string; + }; +}; + +/** + * Contains response data for the getExplicitList operation. + */ +export type ModelGetExplicitListResponse = 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: ExplicitListItem[]; + }; +}; + +/** + * Contains response data for the addExplicitListItem operation. + */ +export type ModelAddExplicitListItemResponse = { + /** + * The parsed response body. + */ + body: number; + /** + * 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: number; + }; +}; + +/** + * Contains response data for the getRegexEntityEntityInfo operation. + */ +export type ModelGetRegexEntityEntityInfoResponse = RegexEntityExtractor & { + /** + * 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: RegexEntityExtractor; + }; +}; + +/** + * Contains response data for the updateRegexEntityModel operation. + */ +export type ModelUpdateRegexEntityModelResponse = OperationStatus & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; +}; + +/** + * Contains response data for the deleteRegexEntityModel operation. + */ +export type ModelDeleteRegexEntityModelResponse = OperationStatus & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; +}; + +/** + * Contains response data for the getPatternAnyEntityInfo operation. + */ +export type ModelGetPatternAnyEntityInfoResponse = PatternAnyEntityExtractor & { + /** + * 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: PatternAnyEntityExtractor; + }; +}; + +/** + * Contains response data for the updatePatternAnyEntityModel operation. + */ +export type ModelUpdatePatternAnyEntityModelResponse = OperationStatus & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; +}; + +/** + * Contains response data for the deletePatternAnyEntityModel operation. + */ +export type ModelDeletePatternAnyEntityModelResponse = OperationStatus & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; +}; + +/** + * Contains response data for the getEntityRole operation. + */ +export type ModelGetEntityRoleResponse = EntityRole & { + /** + * 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: EntityRole; + }; +}; + +/** + * Contains response data for the updateEntityRole operation. + */ +export type ModelUpdateEntityRoleResponse = OperationStatus & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; +}; + +/** + * Contains response data for the deleteEntityRole operation. + */ +export type ModelDeleteEntityRoleResponse = OperationStatus & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; +}; + +/** + * Contains response data for the getPrebuiltEntityRole operation. + */ +export type ModelGetPrebuiltEntityRoleResponse = EntityRole & { + /** + * 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: EntityRole; + }; +}; + +/** + * Contains response data for the updatePrebuiltEntityRole operation. + */ +export type ModelUpdatePrebuiltEntityRoleResponse = OperationStatus & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; +}; + +/** + * Contains response data for the deletePrebuiltEntityRole operation. + */ +export type ModelDeletePrebuiltEntityRoleResponse = OperationStatus & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; +}; + +/** + * Contains response data for the getClosedListEntityRole operation. + */ +export type ModelGetClosedListEntityRoleResponse = EntityRole & { + /** + * 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: EntityRole; + }; +}; + +/** + * Contains response data for the updateClosedListEntityRole operation. + */ +export type ModelUpdateClosedListEntityRoleResponse = OperationStatus & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; +}; + +/** + * Contains response data for the deleteClosedListEntityRole operation. + */ +export type ModelDeleteClosedListEntityRoleResponse = OperationStatus & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; +}; + +/** + * Contains response data for the getRegexEntityRole operation. + */ +export type ModelGetRegexEntityRoleResponse = EntityRole & { + /** + * 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: EntityRole; + }; +}; + +/** + * Contains response data for the updateRegexEntityRole operation. + */ +export type ModelUpdateRegexEntityRoleResponse = OperationStatus & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; +}; + +/** + * Contains response data for the deleteRegexEntityRole operation. + */ +export type ModelDeleteRegexEntityRoleResponse = OperationStatus & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; +}; + +/** + * Contains response data for the getCompositeEntityRole operation. + */ +export type ModelGetCompositeEntityRoleResponse = EntityRole & { + /** + * 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: EntityRole; + }; +}; + +/** + * Contains response data for the updateCompositeEntityRole operation. + */ +export type ModelUpdateCompositeEntityRoleResponse = OperationStatus & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; +}; + +/** + * Contains response data for the deleteCompositeEntityRole operation. + */ +export type ModelDeleteCompositeEntityRoleResponse = OperationStatus & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; +}; + +/** + * Contains response data for the getPatternAnyEntityRole operation. + */ +export type ModelGetPatternAnyEntityRoleResponse = EntityRole & { + /** + * 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: EntityRole; + }; +}; + +/** + * Contains response data for the updatePatternAnyEntityRole operation. + */ +export type ModelUpdatePatternAnyEntityRoleResponse = OperationStatus & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; +}; + +/** + * Contains response data for the deletePatternAnyEntityRole operation. + */ +export type ModelDeletePatternAnyEntityRoleResponse = OperationStatus & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; +}; + +/** + * Contains response data for the getHierarchicalEntityRole operation. + */ +export type ModelGetHierarchicalEntityRoleResponse = EntityRole & { + /** + * 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: EntityRole; + }; +}; + +/** + * Contains response data for the updateHierarchicalEntityRole operation. + */ +export type ModelUpdateHierarchicalEntityRoleResponse = OperationStatus & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; +}; + +/** + * Contains response data for the deleteHierarchicalEntityRole operation. + */ +export type ModelDeleteHierarchicalEntityRoleResponse = OperationStatus & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; +}; + +/** + * Contains response data for the getCustomEntityRole operation. + */ +export type ModelGetCustomEntityRoleResponse = EntityRole & { + /** + * 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: EntityRole; + }; +}; + +/** + * Contains response data for the updateCustomPrebuiltEntityRole operation. + */ +export type ModelUpdateCustomPrebuiltEntityRoleResponse = OperationStatus & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; +}; + +/** + * Contains response data for the deleteCustomEntityRole operation. + */ +export type ModelDeleteCustomEntityRoleResponse = OperationStatus & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; +}; + +/** + * Contains response data for the getExplicitListItem operation. + */ +export type ModelGetExplicitListItemResponse = ExplicitListItem & { + /** + * 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: ExplicitListItem; + }; +}; + +/** + * Contains response data for the updateExplicitListItem operation. + */ +export type ModelUpdateExplicitListItemResponse = OperationStatus & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; +}; + +/** + * Contains response data for the deleteExplicitListItem operation. + */ +export type ModelDeleteExplicitListItemResponse = OperationStatus & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; +}; + +/** + * Contains response data for the add operation. + */ +export type AppsAddResponse = { + /** + * The parsed response body. + */ + body: string; + /** + * 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: string; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type AppsListResponse = 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: ApplicationInfoResponse[]; + }; +}; + +/** + * Contains response data for the importMethod operation. + */ +export type AppsImportMethodResponse = { + /** + * The parsed response body. + */ + body: string; + /** + * 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: string; + }; +}; + +/** + * Contains response data for the listCortanaEndpoints operation. + */ +export type AppsListCortanaEndpointsResponse = PersonalAssistantsResponse & { + /** + * 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: PersonalAssistantsResponse; + }; +}; + +/** + * Contains response data for the listDomains operation. + */ +export type AppsListDomainsResponse = 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: string[]; + }; +}; + +/** + * Contains response data for the listUsageScenarios operation. + */ +export type AppsListUsageScenariosResponse = 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: string[]; + }; +}; + +/** + * Contains response data for the listSupportedCultures operation. + */ +export type AppsListSupportedCulturesResponse = 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: AvailableCulture[]; + }; +}; + +/** + * Contains response data for the downloadQueryLogs operation. + */ +export type AppsDownloadQueryLogsResponse = { + /** + * BROWSER ONLY + * + * The response body as a browser Blob. + * Always undefined in node.js. + */ + blobBody?: Promise; + /** + * NODEJS ONLY + * + * The response body as a node.js Readable stream. + * Always undefined in the browser. + */ + readableStreamBody?: NodeJS.ReadableStream; + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse; +}; + +/** + * Contains response data for the get operation. + */ +export type AppsGetResponse = ApplicationInfoResponse & { + /** + * 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: ApplicationInfoResponse; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type AppsUpdateResponse = OperationStatus & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; +}; + +/** + * Contains response data for the deleteMethod operation. + */ +export type AppsDeleteMethodResponse = OperationStatus & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; +}; + +/** + * Contains response data for the publish operation. + */ +export type AppsPublishResponse = ProductionOrStagingEndpointInfo & { + /** + * 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: ProductionOrStagingEndpointInfo; + }; +}; + +/** + * Contains response data for the getSettings operation. + */ +export type AppsGetSettingsResponse = ApplicationSettings & { + /** + * 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: ApplicationSettings; + }; +}; + +/** + * Contains response data for the updateSettings operation. + */ +export type AppsUpdateSettingsResponse = OperationStatus & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; +}; + +/** + * Contains response data for the getPublishSettings operation. + */ +export type AppsGetPublishSettingsResponse = PublishSettings & { + /** + * 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: PublishSettings; + }; +}; + +/** + * Contains response data for the updatePublishSettings operation. + */ +export type AppsUpdatePublishSettingsResponse = OperationStatus & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; +}; + +/** + * Contains response data for the listEndpoints operation. + */ +export type AppsListEndpointsResponse = { + /** + * The response body properties. + */ + [propertyName: string]: string; +} & { + /** + * 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: { [propertyName: string]: string }; + }; +}; + +/** + * Contains response data for the listAvailableCustomPrebuiltDomains operation. + */ +export type AppsListAvailableCustomPrebuiltDomainsResponse = 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: PrebuiltDomain[]; + }; +}; + +/** + * Contains response data for the addCustomPrebuiltDomain operation. + */ +export type AppsAddCustomPrebuiltDomainResponse = { + /** + * The parsed response body. + */ + body: string; + /** + * 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: string; + }; +}; + +/** + * Contains response data for the listAvailableCustomPrebuiltDomainsForCulture operation. + */ +export type AppsListAvailableCustomPrebuiltDomainsForCultureResponse = 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: PrebuiltDomain[]; + }; +}; + +/** + * Contains response data for the packagePublishedApplicationAsGzip operation. + */ +export type AppsPackagePublishedApplicationAsGzipResponse = { + /** + * BROWSER ONLY + * + * The response body as a browser Blob. + * Always undefined in node.js. + */ + blobBody?: Promise; + /** + * NODEJS ONLY + * + * The response body as a node.js Readable stream. + * Always undefined in the browser. + */ + readableStreamBody?: NodeJS.ReadableStream; + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse; +}; + +/** + * Contains response data for the packageTrainedApplicationAsGzip operation. + */ +export type AppsPackageTrainedApplicationAsGzipResponse = { + /** + * BROWSER ONLY + * + * The response body as a browser Blob. + * Always undefined in node.js. + */ + blobBody?: Promise; + /** + * NODEJS ONLY + * + * The response body as a node.js Readable stream. + * Always undefined in the browser. + */ + readableStreamBody?: NodeJS.ReadableStream; + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse; +}; + +/** + * Contains response data for the clone operation. + */ +export type VersionsCloneResponse = { + /** + * The parsed response body. + */ + body: string; + /** + * 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: string; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type VersionsListResponse = 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: VersionInfo[]; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type VersionsGetResponse = VersionInfo & { + /** + * 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: VersionInfo; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type VersionsUpdateResponse = OperationStatus & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; +}; + +/** + * Contains response data for the deleteMethod operation. + */ +export type VersionsDeleteMethodResponse = OperationStatus & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; +}; + +/** + * Contains response data for the exportMethod operation. + */ +export type VersionsExportMethodResponse = LuisApp & { + /** + * 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: LuisApp; + }; +}; + +/** + * Contains response data for the importMethod operation. + */ +export type VersionsImportMethodResponse = { + /** + * The parsed response body. + */ + body: string; + /** + * 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: string; + }; +}; + +/** + * Contains response data for the deleteUnlabelledUtterance operation. + */ +export type VersionsDeleteUnlabelledUtteranceResponse = OperationStatus & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; +}; + +/** + * Contains response data for the trainVersion operation. + */ +export type TrainTrainVersionResponse = EnqueueTrainingResponse & { + /** + * 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: EnqueueTrainingResponse; + }; +}; + +/** + * Contains response data for the getStatus operation. + */ +export type TrainGetStatusResponse = 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: ModelTrainingInfo[]; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type PermissionsListResponse = UserAccessList & { + /** + * 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: UserAccessList; + }; +}; + +/** + * Contains response data for the add operation. + */ +export type PermissionsAddResponse = OperationStatus & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; +}; + +/** + * Contains response data for the deleteMethod operation. + */ +export type PermissionsDeleteMethodResponse = OperationStatus & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type PermissionsUpdateResponse = OperationStatus & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; +}; + +/** + * Contains response data for the addPattern operation. + */ +export type PatternAddPatternResponse = PatternRuleInfo & { + /** + * 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: PatternRuleInfo; + }; +}; + +/** + * Contains response data for the listPatterns operation. + */ +export type PatternListPatternsResponse = 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: PatternRuleInfo[]; + }; +}; + +/** + * Contains response data for the updatePatterns operation. + */ +export type PatternUpdatePatternsResponse = 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: PatternRuleInfo[]; + }; +}; + +/** + * Contains response data for the batchAddPatterns operation. + */ +export type PatternBatchAddPatternsResponse = 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: PatternRuleInfo[]; + }; +}; + +/** + * Contains response data for the deletePatterns operation. + */ +export type PatternDeletePatternsResponse = OperationStatus & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; +}; + +/** + * Contains response data for the updatePattern operation. + */ +export type PatternUpdatePatternResponse = PatternRuleInfo & { + /** + * 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: PatternRuleInfo; + }; +}; + +/** + * Contains response data for the deletePattern operation. + */ +export type PatternDeletePatternResponse = OperationStatus & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; +}; + +/** + * Contains response data for the listIntentPatterns operation. + */ +export type PatternListIntentPatternsResponse = 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: PatternRuleInfo[]; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type SettingsListResponse = 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: AppVersionSettingObject[]; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type SettingsUpdateResponse = OperationStatus & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; +}; + +/** + * Contains response data for the assignToApp operation. + */ +export type AzureAccountsAssignToAppResponse = OperationStatus & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; +}; + +/** + * Contains response data for the getAssigned operation. + */ +export type AzureAccountsGetAssignedResponse = Array & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: AzureAccountInfoObject[]; + }; +}; + +/** + * Contains response data for the removeFromApp operation. + */ +export type AzureAccountsRemoveFromAppResponse = OperationStatus & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; +}; + +/** + * Contains response data for the listUserLUISAccounts operation. + */ +export type AzureAccountsListUserLUISAccountsResponse = Array & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: AzureAccountInfoObject[]; + }; +}; diff --git a/sdk/cognitiveservices/cognitiveservices-luis-authoring/lib/models/mappers.ts b/sdk/cognitiveservices/cognitiveservices-luis-authoring/lib/models/mappers.ts new file mode 100644 index 000000000000..8d237a8d175d --- /dev/null +++ b/sdk/cognitiveservices/cognitiveservices-luis-authoring/lib/models/mappers.ts @@ -0,0 +1,3405 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; + + +export const EntityLabelObject: msRest.CompositeMapper = { + serializedName: "EntityLabelObject", + type: { + name: "Composite", + className: "EntityLabelObject", + modelProperties: { + entityName: { + required: true, + serializedName: "entityName", + type: { + name: "String" + } + }, + startCharIndex: { + required: true, + serializedName: "startCharIndex", + type: { + name: "Number" + } + }, + endCharIndex: { + required: true, + serializedName: "endCharIndex", + type: { + name: "Number" + } + } + } + } +}; + +export const ApplicationCreateObject: msRest.CompositeMapper = { + serializedName: "ApplicationCreateObject", + type: { + name: "Composite", + className: "ApplicationCreateObject", + modelProperties: { + culture: { + required: true, + serializedName: "culture", + type: { + name: "String" + } + }, + domain: { + serializedName: "domain", + type: { + name: "String" + } + }, + description: { + serializedName: "description", + type: { + name: "String" + } + }, + initialVersionId: { + serializedName: "initialVersionId", + type: { + name: "String" + } + }, + usageScenario: { + serializedName: "usageScenario", + type: { + name: "String" + } + }, + name: { + required: true, + serializedName: "name", + type: { + name: "String" + } + } + } + } +}; + +export const PrebuiltDomainCreateBaseObject: msRest.CompositeMapper = { + serializedName: "PrebuiltDomainCreateBaseObject", + type: { + name: "Composite", + className: "PrebuiltDomainCreateBaseObject", + modelProperties: { + domainName: { + serializedName: "domainName", + type: { + name: "String" + } + } + } + } +}; + +export const PrebuiltDomainCreateObject: msRest.CompositeMapper = { + serializedName: "PrebuiltDomainCreateObject", + type: { + name: "Composite", + className: "PrebuiltDomainCreateObject", + modelProperties: { + domainName: { + serializedName: "domainName", + type: { + name: "String" + } + }, + culture: { + serializedName: "culture", + type: { + name: "String" + } + } + } + } +}; + +export const PrebuiltDomainModelCreateObject: msRest.CompositeMapper = { + serializedName: "PrebuiltDomainModelCreateObject", + type: { + name: "Composite", + className: "PrebuiltDomainModelCreateObject", + modelProperties: { + domainName: { + serializedName: "domainName", + type: { + name: "String" + } + }, + modelName: { + serializedName: "modelName", + type: { + name: "String" + } + } + } + } +}; + +export const HierarchicalEntityModel: msRest.CompositeMapper = { + serializedName: "HierarchicalEntityModel", + type: { + name: "Composite", + className: "HierarchicalEntityModel", + modelProperties: { + children: { + serializedName: "children", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + } + } + } +}; + +export const CompositeEntityModel: msRest.CompositeMapper = { + serializedName: "CompositeEntityModel", + type: { + name: "Composite", + className: "CompositeEntityModel", + modelProperties: { + children: { + serializedName: "children", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + } + } + } +}; + +export const JSONEntity: msRest.CompositeMapper = { + serializedName: "JSONEntity", + type: { + name: "Composite", + className: "JSONEntity", + modelProperties: { + startPos: { + required: true, + serializedName: "startPos", + type: { + name: "Number" + } + }, + endPos: { + required: true, + serializedName: "endPos", + type: { + name: "Number" + } + }, + entity: { + required: true, + serializedName: "entity", + type: { + name: "String" + } + } + } + } +}; + +export const ApplicationSettingUpdateObject: msRest.CompositeMapper = { + serializedName: "ApplicationSettingUpdateObject", + type: { + name: "Composite", + className: "ApplicationSettingUpdateObject", + modelProperties: { + isPublic: { + nullable: false, + serializedName: "public", + type: { + name: "Boolean" + } + } + } + } +}; + +export const PublishSettingUpdateObject: msRest.CompositeMapper = { + serializedName: "PublishSettingUpdateObject", + type: { + name: "Composite", + className: "PublishSettingUpdateObject", + modelProperties: { + sentimentAnalysis: { + nullable: false, + serializedName: "sentimentAnalysis", + type: { + name: "Boolean" + } + }, + speech: { + nullable: false, + serializedName: "speech", + type: { + name: "Boolean" + } + }, + spellChecker: { + nullable: false, + serializedName: "spellChecker", + type: { + name: "Boolean" + } + } + } + } +}; + +export const ExampleLabelObject: msRest.CompositeMapper = { + serializedName: "ExampleLabelObject", + type: { + name: "Composite", + className: "ExampleLabelObject", + modelProperties: { + text: { + serializedName: "text", + type: { + name: "String" + } + }, + entityLabels: { + serializedName: "entityLabels", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EntityLabelObject" + } + } + } + }, + intentName: { + serializedName: "intentName", + type: { + name: "String" + } + } + } + } +}; + +export const PhraselistCreateObject: msRest.CompositeMapper = { + serializedName: "PhraselistCreateObject", + type: { + name: "Composite", + className: "PhraselistCreateObject", + modelProperties: { + phrases: { + serializedName: "phrases", + type: { + name: "String" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + isExchangeable: { + serializedName: "isExchangeable", + defaultValue: true, + type: { + name: "Boolean" + } + } + } + } +}; + +export const SubClosedList: msRest.CompositeMapper = { + serializedName: "SubClosedList", + type: { + name: "Composite", + className: "SubClosedList", + modelProperties: { + canonicalForm: { + serializedName: "canonicalForm", + type: { + name: "String" + } + }, + list: { + serializedName: "list", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const SubClosedListResponse: msRest.CompositeMapper = { + serializedName: "SubClosedListResponse", + type: { + name: "Composite", + className: "SubClosedListResponse", + modelProperties: { + ...SubClosedList.type.modelProperties, + id: { + nullable: false, + serializedName: "id", + type: { + name: "Number" + } + } + } + } +}; + +export const ApplicationUpdateObject: msRest.CompositeMapper = { + serializedName: "ApplicationUpdateObject", + type: { + name: "Composite", + className: "ApplicationUpdateObject", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + description: { + serializedName: "description", + type: { + name: "String" + } + } + } + } +}; + +export const JSONRegexFeature: msRest.CompositeMapper = { + serializedName: "JSONRegexFeature", + type: { + name: "Composite", + className: "JSONRegexFeature", + modelProperties: { + pattern: { + serializedName: "pattern", + type: { + name: "String" + } + }, + activated: { + serializedName: "activated", + type: { + name: "Boolean" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + } + } + } +}; + +export const PatternUpdateObject: msRest.CompositeMapper = { + serializedName: "PatternUpdateObject", + type: { + name: "Composite", + className: "PatternUpdateObject", + modelProperties: { + pattern: { + serializedName: "pattern", + type: { + name: "String" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + isActive: { + serializedName: "isActive", + defaultValue: true, + type: { + name: "Boolean" + } + } + } + } +}; + +export const ClosedList: msRest.CompositeMapper = { + serializedName: "ClosedList", + type: { + name: "Composite", + className: "ClosedList", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + subLists: { + serializedName: "subLists", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubClosedList" + } + } + } + }, + roles: { + serializedName: "roles", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const WordListObject: msRest.CompositeMapper = { + serializedName: "WordListObject", + type: { + name: "Composite", + className: "WordListObject", + modelProperties: { + canonicalForm: { + serializedName: "canonicalForm", + type: { + name: "String" + } + }, + list: { + serializedName: "list", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const ClosedListModelPatchObject: msRest.CompositeMapper = { + serializedName: "ClosedListModelPatchObject", + type: { + name: "Composite", + className: "ClosedListModelPatchObject", + modelProperties: { + subLists: { + serializedName: "subLists", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "WordListObject" + } + } + } + } + } + } +}; + +export const JSONModelFeature: msRest.CompositeMapper = { + serializedName: "JSONModelFeature", + type: { + name: "Composite", + className: "JSONModelFeature", + modelProperties: { + activated: { + serializedName: "activated", + type: { + name: "Boolean" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + words: { + serializedName: "words", + type: { + name: "String" + } + }, + mode: { + serializedName: "mode", + type: { + name: "Boolean" + } + } + } + } +}; + +export const ModelCreateObject: msRest.CompositeMapper = { + serializedName: "ModelCreateObject", + type: { + name: "Composite", + className: "ModelCreateObject", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + } + } + } +}; + +export const PatternCreateObject: msRest.CompositeMapper = { + serializedName: "PatternCreateObject", + type: { + name: "Composite", + className: "PatternCreateObject", + modelProperties: { + pattern: { + serializedName: "pattern", + type: { + name: "String" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + } + } + } +}; + +export const WordListBaseUpdateObject: msRest.CompositeMapper = { + serializedName: "WordListBaseUpdateObject", + type: { + name: "Composite", + className: "WordListBaseUpdateObject", + modelProperties: { + canonicalForm: { + serializedName: "canonicalForm", + type: { + name: "String" + } + }, + list: { + serializedName: "list", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const JSONUtterance: msRest.CompositeMapper = { + serializedName: "JSONUtterance", + type: { + name: "Composite", + className: "JSONUtterance", + modelProperties: { + text: { + serializedName: "text", + type: { + name: "String" + } + }, + intent: { + serializedName: "intent", + type: { + name: "String" + } + }, + entities: { + serializedName: "entities", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "JSONEntity" + } + } + } + } + } + } +}; + +export const ModelUpdateObject: msRest.CompositeMapper = { + serializedName: "ModelUpdateObject", + type: { + name: "Composite", + className: "ModelUpdateObject", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + } + } + } +}; + +export const ClosedListModelUpdateObject: msRest.CompositeMapper = { + serializedName: "ClosedListModelUpdateObject", + type: { + name: "Composite", + className: "ClosedListModelUpdateObject", + modelProperties: { + subLists: { + serializedName: "subLists", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "WordListObject" + } + } + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + } + } + } +}; + +export const ClosedListModelCreateObject: msRest.CompositeMapper = { + serializedName: "ClosedListModelCreateObject", + type: { + name: "Composite", + className: "ClosedListModelCreateObject", + modelProperties: { + subLists: { + serializedName: "subLists", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "WordListObject" + } + } + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + } + } + } +}; + +export const VersionInfo: msRest.CompositeMapper = { + serializedName: "VersionInfo", + type: { + name: "Composite", + className: "VersionInfo", + modelProperties: { + version: { + required: true, + serializedName: "version", + type: { + name: "String" + } + }, + createdDateTime: { + serializedName: "createdDateTime", + type: { + name: "DateTime" + } + }, + lastModifiedDateTime: { + serializedName: "lastModifiedDateTime", + type: { + name: "DateTime" + } + }, + lastTrainedDateTime: { + serializedName: "lastTrainedDateTime", + type: { + name: "DateTime" + } + }, + lastPublishedDateTime: { + serializedName: "lastPublishedDateTime", + type: { + name: "DateTime" + } + }, + endpointUrl: { + serializedName: "endpointUrl", + type: { + name: "String" + } + }, + assignedEndpointKey: { + serializedName: "assignedEndpointKey", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + externalApiKeys: { + serializedName: "externalApiKeys", + type: { + name: "Object" + } + }, + intentsCount: { + serializedName: "intentsCount", + type: { + name: "Number" + } + }, + entitiesCount: { + serializedName: "entitiesCount", + type: { + name: "Number" + } + }, + endpointHitsCount: { + serializedName: "endpointHitsCount", + type: { + name: "Number" + } + }, + trainingStatus: { + required: true, + serializedName: "trainingStatus", + type: { + name: "Enum", + allowedValues: [ + "NeedsTraining", + "InProgress", + "Trained" + ] + } + } + } + } +}; + +export const TaskUpdateObject: msRest.CompositeMapper = { + serializedName: "TaskUpdateObject", + type: { + name: "Composite", + className: "TaskUpdateObject", + modelProperties: { + version: { + serializedName: "version", + type: { + name: "String" + } + } + } + } +}; + +export const PhraselistUpdateObject: msRest.CompositeMapper = { + serializedName: "PhraselistUpdateObject", + type: { + name: "Composite", + className: "PhraselistUpdateObject", + modelProperties: { + phrases: { + serializedName: "phrases", + type: { + name: "String" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + isActive: { + serializedName: "isActive", + defaultValue: true, + type: { + name: "Boolean" + } + }, + isExchangeable: { + serializedName: "isExchangeable", + defaultValue: true, + type: { + name: "Boolean" + } + } + } + } +}; + +export const PrebuiltDomainObject: msRest.CompositeMapper = { + serializedName: "PrebuiltDomainObject", + type: { + name: "Composite", + className: "PrebuiltDomainObject", + modelProperties: { + domainName: { + serializedName: "domain_name", + type: { + name: "String" + } + }, + modelName: { + serializedName: "model_name", + type: { + name: "String" + } + } + } + } +}; + +export const HierarchicalModel: msRest.CompositeMapper = { + serializedName: "HierarchicalModel", + type: { + name: "Composite", + className: "HierarchicalModel", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + children: { + serializedName: "children", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + inherits: { + serializedName: "inherits", + type: { + name: "Composite", + className: "PrebuiltDomainObject" + } + }, + roles: { + serializedName: "roles", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const ApplicationPublishObject: msRest.CompositeMapper = { + serializedName: "ApplicationPublishObject", + type: { + name: "Composite", + className: "ApplicationPublishObject", + modelProperties: { + versionId: { + serializedName: "versionId", + type: { + name: "String" + } + }, + isStaging: { + serializedName: "isStaging", + defaultValue: false, + type: { + name: "Boolean" + } + } + } + } +}; + +export const PatternAny: msRest.CompositeMapper = { + serializedName: "PatternAny", + type: { + name: "Composite", + className: "PatternAny", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + explicitList: { + serializedName: "explicitList", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + roles: { + serializedName: "roles", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const RegexEntity: msRest.CompositeMapper = { + serializedName: "RegexEntity", + type: { + name: "Composite", + className: "RegexEntity", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + regexPattern: { + serializedName: "regexPattern", + type: { + name: "String" + } + }, + roles: { + serializedName: "roles", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const PrebuiltEntity: msRest.CompositeMapper = { + serializedName: "PrebuiltEntity", + type: { + name: "Composite", + className: "PrebuiltEntity", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + roles: { + serializedName: "roles", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const PatternRule: msRest.CompositeMapper = { + serializedName: "PatternRule", + type: { + name: "Composite", + className: "PatternRule", + modelProperties: { + pattern: { + serializedName: "pattern", + type: { + name: "String" + } + }, + intent: { + serializedName: "intent", + type: { + name: "String" + } + } + } + } +}; + +export const LuisApp: msRest.CompositeMapper = { + serializedName: "LuisApp", + type: { + name: "Composite", + className: "LuisApp", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + versionId: { + serializedName: "versionId", + type: { + name: "String" + } + }, + desc: { + serializedName: "desc", + type: { + name: "String" + } + }, + culture: { + serializedName: "culture", + type: { + name: "String" + } + }, + intents: { + serializedName: "intents", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "HierarchicalModel" + } + } + } + }, + entities: { + serializedName: "entities", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "HierarchicalModel" + } + } + } + }, + closedLists: { + serializedName: "closedLists", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ClosedList" + } + } + } + }, + composites: { + serializedName: "composites", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "HierarchicalModel" + } + } + } + }, + patternAnyEntities: { + serializedName: "patternAnyEntities", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PatternAny" + } + } + } + }, + regexEntities: { + serializedName: "regex_entities", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RegexEntity" + } + } + } + }, + prebuiltEntities: { + serializedName: "prebuiltEntities", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrebuiltEntity" + } + } + } + }, + regexFeatures: { + serializedName: "regex_features", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "JSONRegexFeature" + } + } + } + }, + modelFeatures: { + serializedName: "model_features", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "JSONModelFeature" + } + } + } + }, + patterns: { + serializedName: "patterns", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PatternRule" + } + } + } + }, + utterances: { + serializedName: "utterances", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "JSONUtterance" + } + } + } + } + }, + additionalProperties: { + type: { + name: "Object" + } + } + } +}; + +export const EntityLabel: msRest.CompositeMapper = { + serializedName: "EntityLabel", + type: { + name: "Composite", + className: "EntityLabel", + modelProperties: { + entityName: { + required: true, + serializedName: "entityName", + type: { + name: "String" + } + }, + startTokenIndex: { + required: true, + serializedName: "startTokenIndex", + type: { + name: "Number" + } + }, + endTokenIndex: { + required: true, + serializedName: "endTokenIndex", + type: { + name: "Number" + } + } + } + } +}; + +export const IntentPrediction: msRest.CompositeMapper = { + serializedName: "IntentPrediction", + type: { + name: "Composite", + className: "IntentPrediction", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + score: { + serializedName: "score", + type: { + name: "Number" + } + } + } + } +}; + +export const EntityPrediction: msRest.CompositeMapper = { + serializedName: "EntityPrediction", + type: { + name: "Composite", + className: "EntityPrediction", + modelProperties: { + entityName: { + required: true, + serializedName: "entityName", + type: { + name: "String" + } + }, + startTokenIndex: { + required: true, + serializedName: "startTokenIndex", + type: { + name: "Number" + } + }, + endTokenIndex: { + required: true, + serializedName: "endTokenIndex", + type: { + name: "Number" + } + }, + phrase: { + required: true, + serializedName: "phrase", + type: { + name: "String" + } + } + } + } +}; + +export const LabeledUtterance: msRest.CompositeMapper = { + serializedName: "LabeledUtterance", + type: { + name: "Composite", + className: "LabeledUtterance", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "Number" + } + }, + text: { + serializedName: "text", + type: { + name: "String" + } + }, + tokenizedText: { + serializedName: "tokenizedText", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + intentLabel: { + serializedName: "intentLabel", + type: { + name: "String" + } + }, + entityLabels: { + serializedName: "entityLabels", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EntityLabel" + } + } + } + }, + intentPredictions: { + serializedName: "intentPredictions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IntentPrediction" + } + } + } + }, + entityPredictions: { + serializedName: "entityPredictions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EntityPrediction" + } + } + } + } + } + } +}; + +export const IntentsSuggestionExample: msRest.CompositeMapper = { + serializedName: "IntentsSuggestionExample", + type: { + name: "Composite", + className: "IntentsSuggestionExample", + modelProperties: { + text: { + serializedName: "text", + type: { + name: "String" + } + }, + tokenizedText: { + serializedName: "tokenizedText", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + intentPredictions: { + serializedName: "intentPredictions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IntentPrediction" + } + } + } + }, + entityPredictions: { + serializedName: "entityPredictions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EntityPrediction" + } + } + } + } + } + } +}; + +export const EntitiesSuggestionExample: msRest.CompositeMapper = { + serializedName: "EntitiesSuggestionExample", + type: { + name: "Composite", + className: "EntitiesSuggestionExample", + modelProperties: { + text: { + serializedName: "text", + type: { + name: "String" + } + }, + tokenizedText: { + serializedName: "tokenizedText", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + intentPredictions: { + serializedName: "intentPredictions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IntentPrediction" + } + } + } + }, + entityPredictions: { + serializedName: "entityPredictions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EntityPrediction" + } + } + } + } + } + } +}; + +export const PersonalAssistantsResponse: msRest.CompositeMapper = { + serializedName: "PersonalAssistantsResponse", + type: { + name: "Composite", + className: "PersonalAssistantsResponse", + modelProperties: { + endpointKeys: { + serializedName: "endpointKeys", + type: { + name: "Sequence", + element: { + type: { + name: "Uuid" + } + } + } + }, + endpointUrls: { + serializedName: "endpointUrls", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const ModelInfo: msRest.CompositeMapper = { + serializedName: "ModelInfo", + type: { + name: "Composite", + className: "ModelInfo", + modelProperties: { + id: { + required: true, + serializedName: "id", + type: { + name: "Uuid" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + typeId: { + serializedName: "typeId", + type: { + name: "Number" + } + }, + readableType: { + required: true, + serializedName: "readableType", + type: { + name: "String" + } + } + } + } +}; + +export const EntityRole: msRest.CompositeMapper = { + serializedName: "EntityRole", + type: { + name: "Composite", + className: "EntityRole", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "Uuid" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + } + } + } +}; + +export const ChildEntity: msRest.CompositeMapper = { + serializedName: "ChildEntity", + type: { + name: "Composite", + className: "ChildEntity", + modelProperties: { + id: { + required: true, + serializedName: "id", + type: { + name: "Uuid" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + } + } + } +}; + +export const ExplicitListItem: msRest.CompositeMapper = { + serializedName: "ExplicitListItem", + type: { + name: "Composite", + className: "ExplicitListItem", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "Number" + } + }, + explicitListItem: { + serializedName: "explicitListItem", + type: { + name: "String" + } + } + } + } +}; + +export const ModelInfoResponse: msRest.CompositeMapper = { + serializedName: "ModelInfoResponse", + type: { + name: "Composite", + className: "ModelInfoResponse", + modelProperties: { + id: { + required: true, + serializedName: "id", + type: { + name: "Uuid" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + typeId: { + serializedName: "typeId", + type: { + name: "Number" + } + }, + readableType: { + required: true, + serializedName: "readableType", + type: { + name: "String" + } + }, + roles: { + serializedName: "roles", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EntityRole" + } + } + } + }, + children: { + serializedName: "children", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ChildEntity" + } + } + } + }, + subLists: { + serializedName: "subLists", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubClosedListResponse" + } + } + } + }, + customPrebuiltDomainName: { + serializedName: "customPrebuiltDomainName", + type: { + name: "String" + } + }, + customPrebuiltModelName: { + serializedName: "customPrebuiltModelName", + type: { + name: "String" + } + }, + regexPattern: { + serializedName: "regexPattern", + type: { + name: "String" + } + }, + explicitList: { + serializedName: "explicitList", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ExplicitListItem" + } + } + } + } + } + } +}; + +export const EntityModelInfo: msRest.CompositeMapper = { + serializedName: "EntityModelInfo", + type: { + name: "Composite", + className: "EntityModelInfo", + modelProperties: { + ...ModelInfo.type.modelProperties, + roles: { + serializedName: "roles", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EntityRole" + } + } + } + } + } + } +}; + +export const HierarchicalEntityExtractor: msRest.CompositeMapper = { + serializedName: "Hierarchical Entity Extractor", + type: { + name: "Composite", + className: "HierarchicalEntityExtractor", + modelProperties: { + id: { + required: true, + serializedName: "id", + type: { + name: "Uuid" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + typeId: { + serializedName: "typeId", + type: { + name: "Number" + } + }, + readableType: { + required: true, + serializedName: "readableType", + type: { + name: "String" + } + }, + roles: { + serializedName: "roles", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EntityRole" + } + } + } + }, + children: { + serializedName: "children", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ChildEntity" + } + } + } + } + } + } +}; + +export const CompositeEntityExtractor: msRest.CompositeMapper = { + serializedName: "Composite Entity Extractor", + type: { + name: "Composite", + className: "CompositeEntityExtractor", + modelProperties: { + id: { + required: true, + serializedName: "id", + type: { + name: "Uuid" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + typeId: { + serializedName: "typeId", + type: { + name: "Number" + } + }, + readableType: { + required: true, + serializedName: "readableType", + type: { + name: "String" + } + }, + roles: { + serializedName: "roles", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EntityRole" + } + } + } + }, + children: { + serializedName: "children", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ChildEntity" + } + } + } + } + } + } +}; + +export const ClosedListEntityExtractor: msRest.CompositeMapper = { + serializedName: "List Entity Extractor", + type: { + name: "Composite", + className: "ClosedListEntityExtractor", + modelProperties: { + id: { + required: true, + serializedName: "id", + type: { + name: "Uuid" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + typeId: { + serializedName: "typeId", + type: { + name: "Number" + } + }, + readableType: { + required: true, + serializedName: "readableType", + type: { + name: "String" + } + }, + roles: { + serializedName: "roles", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EntityRole" + } + } + } + }, + subLists: { + serializedName: "subLists", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubClosedListResponse" + } + } + } + } + } + } +}; + +export const PrebuiltEntityExtractor: msRest.CompositeMapper = { + serializedName: "Prebuilt Entity Extractor", + type: { + name: "Composite", + className: "PrebuiltEntityExtractor", + modelProperties: { + id: { + required: true, + serializedName: "id", + type: { + name: "Uuid" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + typeId: { + serializedName: "typeId", + type: { + name: "Number" + } + }, + readableType: { + required: true, + serializedName: "readableType", + type: { + name: "String" + } + }, + roles: { + serializedName: "roles", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EntityRole" + } + } + } + } + } + } +}; + +export const HierarchicalChildEntity: msRest.CompositeMapper = { + serializedName: "HierarchicalChildEntity", + type: { + name: "Composite", + className: "HierarchicalChildEntity", + modelProperties: { + ...ChildEntity.type.modelProperties, + typeId: { + serializedName: "typeId", + type: { + name: "Number" + } + }, + readableType: { + serializedName: "readableType", + type: { + name: "String" + } + } + } + } +}; + +export const CustomPrebuiltModel: msRest.CompositeMapper = { + serializedName: "CustomPrebuiltModel", + type: { + name: "Composite", + className: "CustomPrebuiltModel", + modelProperties: { + id: { + required: true, + serializedName: "id", + type: { + name: "Uuid" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + typeId: { + serializedName: "typeId", + type: { + name: "Number" + } + }, + readableType: { + required: true, + serializedName: "readableType", + type: { + name: "String" + } + }, + customPrebuiltDomainName: { + serializedName: "customPrebuiltDomainName", + type: { + name: "String" + } + }, + customPrebuiltModelName: { + serializedName: "customPrebuiltModelName", + type: { + name: "String" + } + }, + roles: { + serializedName: "roles", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EntityRole" + } + } + } + } + } + } +}; + +export const IntentClassifier: msRest.CompositeMapper = { + serializedName: "Intent Classifier", + type: { + name: "Composite", + className: "IntentClassifier", + modelProperties: { + ...ModelInfo.type.modelProperties, + customPrebuiltDomainName: { + serializedName: "customPrebuiltDomainName", + type: { + name: "String" + } + }, + customPrebuiltModelName: { + serializedName: "customPrebuiltModelName", + type: { + name: "String" + } + } + } + } +}; + +export const EntityExtractor: msRest.CompositeMapper = { + serializedName: "Entity Extractor", + type: { + name: "Composite", + className: "EntityExtractor", + modelProperties: { + id: { + required: true, + serializedName: "id", + type: { + name: "Uuid" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + typeId: { + serializedName: "typeId", + type: { + name: "Number" + } + }, + readableType: { + required: true, + serializedName: "readableType", + type: { + name: "String" + } + }, + roles: { + serializedName: "roles", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EntityRole" + } + } + } + }, + customPrebuiltDomainName: { + serializedName: "customPrebuiltDomainName", + type: { + name: "String" + } + }, + customPrebuiltModelName: { + serializedName: "customPrebuiltModelName", + type: { + name: "String" + } + } + } + } +}; + +export const FeatureInfoObject: msRest.CompositeMapper = { + serializedName: "FeatureInfoObject", + type: { + name: "Composite", + className: "FeatureInfoObject", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "Number" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + isActive: { + serializedName: "isActive", + type: { + name: "Boolean" + } + } + } + } +}; + +export const PhraseListFeatureInfo: msRest.CompositeMapper = { + serializedName: "PhraseListFeatureInfo", + type: { + name: "Composite", + className: "PhraseListFeatureInfo", + modelProperties: { + ...FeatureInfoObject.type.modelProperties, + phrases: { + serializedName: "phrases", + type: { + name: "String" + } + }, + isExchangeable: { + serializedName: "isExchangeable", + type: { + name: "Boolean" + } + } + } + } +}; + +export const PatternFeatureInfo: msRest.CompositeMapper = { + serializedName: "PatternFeatureInfo", + type: { + name: "Composite", + className: "PatternFeatureInfo", + modelProperties: { + ...FeatureInfoObject.type.modelProperties, + pattern: { + serializedName: "pattern", + type: { + name: "String" + } + } + } + } +}; + +export const FeaturesResponseObject: msRest.CompositeMapper = { + serializedName: "FeaturesResponseObject", + type: { + name: "Composite", + className: "FeaturesResponseObject", + modelProperties: { + phraselistFeatures: { + serializedName: "phraselistFeatures", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PhraseListFeatureInfo" + } + } + } + }, + patternFeatures: { + serializedName: "patternFeatures", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PatternFeatureInfo" + } + } + } + } + } + } +}; + +export const LabelExampleResponse: msRest.CompositeMapper = { + serializedName: "LabelExampleResponse", + type: { + name: "Composite", + className: "LabelExampleResponse", + modelProperties: { + utteranceText: { + serializedName: "UtteranceText", + type: { + name: "String" + } + }, + exampleId: { + serializedName: "ExampleId", + type: { + name: "Number" + } + } + } + } +}; + +export const OperationStatus: msRest.CompositeMapper = { + serializedName: "OperationStatus", + type: { + name: "Composite", + className: "OperationStatus", + modelProperties: { + code: { + serializedName: "code", + type: { + name: "String" + } + }, + message: { + serializedName: "message", + type: { + name: "String" + } + } + } + } +}; + +export const BatchLabelExample: msRest.CompositeMapper = { + serializedName: "BatchLabelExample", + type: { + name: "Composite", + className: "BatchLabelExample", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Composite", + className: "LabelExampleResponse" + } + }, + hasError: { + serializedName: "hasError", + type: { + name: "Boolean" + } + }, + error: { + serializedName: "error", + type: { + name: "Composite", + className: "OperationStatus" + } + } + } + } +}; + +export const ApplicationInfoResponse: msRest.CompositeMapper = { + serializedName: "ApplicationInfoResponse", + type: { + name: "Composite", + className: "ApplicationInfoResponse", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "Uuid" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + description: { + serializedName: "description", + type: { + name: "String" + } + }, + culture: { + serializedName: "culture", + type: { + name: "String" + } + }, + usageScenario: { + serializedName: "usageScenario", + type: { + name: "String" + } + }, + domain: { + serializedName: "domain", + type: { + name: "String" + } + }, + versionsCount: { + serializedName: "versionsCount", + type: { + name: "Number" + } + }, + createdDateTime: { + serializedName: "createdDateTime", + type: { + name: "String" + } + }, + endpoints: { + serializedName: "endpoints", + type: { + name: "Object" + } + }, + endpointHitsCount: { + serializedName: "endpointHitsCount", + type: { + name: "Number" + } + }, + activeVersion: { + serializedName: "activeVersion", + type: { + name: "String" + } + } + } + } +}; + +export const EndpointInfo: msRest.CompositeMapper = { + serializedName: "EndpointInfo", + type: { + name: "Composite", + className: "EndpointInfo", + modelProperties: { + versionId: { + serializedName: "versionId", + type: { + name: "String" + } + }, + isStaging: { + serializedName: "isStaging", + type: { + name: "Boolean" + } + }, + endpointUrl: { + serializedName: "endpointUrl", + type: { + name: "String" + } + }, + region: { + serializedName: "region", + type: { + name: "String" + } + }, + assignedEndpointKey: { + serializedName: "assignedEndpointKey", + type: { + name: "String" + } + }, + endpointRegion: { + serializedName: "endpointRegion", + type: { + name: "String" + } + }, + failedRegions: { + serializedName: "failedRegions", + type: { + name: "String" + } + }, + publishedDateTime: { + serializedName: "publishedDateTime", + type: { + name: "String" + } + } + } + } +}; + +export const ProductionOrStagingEndpointInfo: msRest.CompositeMapper = { + serializedName: "ProductionOrStagingEndpointInfo", + type: { + name: "Composite", + className: "ProductionOrStagingEndpointInfo", + modelProperties: { + ...EndpointInfo.type.modelProperties + } + } +}; + +export const AvailableCulture: msRest.CompositeMapper = { + serializedName: "AvailableCulture", + type: { + name: "Composite", + className: "AvailableCulture", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + code: { + serializedName: "code", + type: { + name: "String" + } + } + } + } +}; + +export const ApplicationSettings: msRest.CompositeMapper = { + serializedName: "ApplicationSettings", + type: { + name: "Composite", + className: "ApplicationSettings", + modelProperties: { + id: { + required: true, + serializedName: "id", + type: { + name: "Uuid" + } + }, + isPublic: { + required: true, + nullable: false, + serializedName: "public", + type: { + name: "Boolean" + } + } + } + } +}; + +export const PublishSettings: msRest.CompositeMapper = { + serializedName: "PublishSettings", + type: { + name: "Composite", + className: "PublishSettings", + modelProperties: { + id: { + required: true, + serializedName: "id", + type: { + name: "Uuid" + } + }, + isSentimentAnalysisEnabled: { + required: true, + nullable: false, + serializedName: "sentimentAnalysis", + type: { + name: "Boolean" + } + }, + isSpeechEnabled: { + required: true, + nullable: false, + serializedName: "speech", + type: { + name: "Boolean" + } + }, + isSpellCheckerEnabled: { + required: true, + nullable: false, + serializedName: "spellChecker", + type: { + name: "Boolean" + } + } + } + } +}; + +export const AvailablePrebuiltEntityModel: msRest.CompositeMapper = { + serializedName: "AvailablePrebuiltEntityModel", + type: { + name: "Composite", + className: "AvailablePrebuiltEntityModel", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + description: { + serializedName: "description", + type: { + name: "String" + } + }, + examples: { + serializedName: "examples", + type: { + name: "String" + } + } + } + } +}; + +export const EnqueueTrainingResponse: msRest.CompositeMapper = { + serializedName: "EnqueueTrainingResponse", + type: { + name: "Composite", + className: "EnqueueTrainingResponse", + modelProperties: { + statusId: { + serializedName: "statusId", + type: { + name: "Number" + } + }, + status: { + serializedName: "status", + type: { + name: "String" + } + } + } + } +}; + +export const ModelTrainingDetails: msRest.CompositeMapper = { + serializedName: "ModelTrainingDetails", + type: { + name: "Composite", + className: "ModelTrainingDetails", + modelProperties: { + statusId: { + serializedName: "statusId", + type: { + name: "Number" + } + }, + status: { + serializedName: "status", + type: { + name: "String" + } + }, + exampleCount: { + serializedName: "exampleCount", + type: { + name: "Number" + } + }, + trainingDateTime: { + serializedName: "trainingDateTime", + type: { + name: "DateTime" + } + }, + failureReason: { + serializedName: "failureReason", + type: { + name: "String" + } + } + } + } +}; + +export const ModelTrainingInfo: msRest.CompositeMapper = { + serializedName: "ModelTrainingInfo", + type: { + name: "Composite", + className: "ModelTrainingInfo", + modelProperties: { + modelId: { + serializedName: "modelId", + type: { + name: "Uuid" + } + }, + details: { + serializedName: "details", + type: { + name: "Composite", + className: "ModelTrainingDetails" + } + } + } + } +}; + +export const UserAccessList: msRest.CompositeMapper = { + serializedName: "UserAccessList", + type: { + name: "Composite", + className: "UserAccessList", + modelProperties: { + owner: { + serializedName: "owner", + type: { + name: "String" + } + }, + emails: { + serializedName: "emails", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const UserCollaborator: msRest.CompositeMapper = { + serializedName: "UserCollaborator", + type: { + name: "Composite", + className: "UserCollaborator", + modelProperties: { + email: { + serializedName: "email", + type: { + name: "String" + } + } + } + } +}; + +export const CollaboratorsArray: msRest.CompositeMapper = { + serializedName: "CollaboratorsArray", + type: { + name: "Composite", + className: "CollaboratorsArray", + modelProperties: { + emails: { + serializedName: "emails", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const ErrorResponse: msRest.CompositeMapper = { + serializedName: "ErrorResponse", + type: { + name: "Composite", + className: "ErrorResponse", + modelProperties: { + errorType: { + serializedName: "errorType", + type: { + name: "String" + } + } + }, + additionalProperties: { + type: { + name: "Object" + } + } + } +}; + +export const OperationError: msRest.CompositeMapper = { + serializedName: "OperationError", + type: { + name: "Composite", + className: "OperationError", + modelProperties: { + code: { + serializedName: "code", + type: { + name: "String" + } + }, + message: { + serializedName: "message", + type: { + name: "String" + } + } + } + } +}; + +export const PrebuiltDomainItem: msRest.CompositeMapper = { + serializedName: "PrebuiltDomainItem", + type: { + name: "Composite", + className: "PrebuiltDomainItem", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + description: { + serializedName: "description", + type: { + name: "String" + } + }, + examples: { + serializedName: "examples", + type: { + name: "String" + } + } + } + } +}; + +export const PrebuiltDomain: msRest.CompositeMapper = { + serializedName: "PrebuiltDomain", + type: { + name: "Composite", + className: "PrebuiltDomain", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + culture: { + serializedName: "culture", + type: { + name: "String" + } + }, + description: { + serializedName: "description", + type: { + name: "String" + } + }, + examples: { + serializedName: "examples", + type: { + name: "String" + } + }, + intents: { + serializedName: "intents", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrebuiltDomainItem" + } + } + } + }, + entities: { + serializedName: "entities", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrebuiltDomainItem" + } + } + } + } + } + } +}; + +export const EntityRoleCreateObject: msRest.CompositeMapper = { + serializedName: "EntityRoleCreateObject", + type: { + name: "Composite", + className: "EntityRoleCreateObject", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + } + } + } +}; + +export const RegexModelCreateObject: msRest.CompositeMapper = { + serializedName: "RegexModelCreateObject", + type: { + name: "Composite", + className: "RegexModelCreateObject", + modelProperties: { + regexPattern: { + serializedName: "regexPattern", + type: { + name: "String" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + } + } + } +}; + +export const PatternAnyModelCreateObject: msRest.CompositeMapper = { + serializedName: "PatternAnyModelCreateObject", + type: { + name: "Composite", + className: "PatternAnyModelCreateObject", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + explicitList: { + serializedName: "explicitList", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const ExplicitListItemCreateObject: msRest.CompositeMapper = { + serializedName: "ExplicitListItemCreateObject", + type: { + name: "Composite", + className: "ExplicitListItemCreateObject", + modelProperties: { + explicitListItem: { + serializedName: "explicitListItem", + type: { + name: "String" + } + } + } + } +}; + +export const RegexModelUpdateObject: msRest.CompositeMapper = { + serializedName: "RegexModelUpdateObject", + type: { + name: "Composite", + className: "RegexModelUpdateObject", + modelProperties: { + regexPattern: { + serializedName: "regexPattern", + type: { + name: "String" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + } + } + } +}; + +export const PatternAnyModelUpdateObject: msRest.CompositeMapper = { + serializedName: "PatternAnyModelUpdateObject", + type: { + name: "Composite", + className: "PatternAnyModelUpdateObject", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + explicitList: { + serializedName: "explicitList", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const EntityRoleUpdateObject: msRest.CompositeMapper = { + serializedName: "EntityRoleUpdateObject", + type: { + name: "Composite", + className: "EntityRoleUpdateObject", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + } + } + } +}; + +export const ExplicitListItemUpdateObject: msRest.CompositeMapper = { + serializedName: "ExplicitListItemUpdateObject", + type: { + name: "Composite", + className: "ExplicitListItemUpdateObject", + modelProperties: { + explicitListItem: { + serializedName: "explicitListItem", + type: { + name: "String" + } + } + } + } +}; + +export const PatternRuleCreateObject: msRest.CompositeMapper = { + serializedName: "PatternRuleCreateObject", + type: { + name: "Composite", + className: "PatternRuleCreateObject", + modelProperties: { + pattern: { + serializedName: "pattern", + type: { + name: "String" + } + }, + intent: { + serializedName: "intent", + type: { + name: "String" + } + } + } + } +}; + +export const PatternRuleUpdateObject: msRest.CompositeMapper = { + serializedName: "PatternRuleUpdateObject", + type: { + name: "Composite", + className: "PatternRuleUpdateObject", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "Uuid" + } + }, + pattern: { + serializedName: "pattern", + type: { + name: "String" + } + }, + intent: { + serializedName: "intent", + type: { + name: "String" + } + } + } + } +}; + +export const RegexEntityExtractor: msRest.CompositeMapper = { + serializedName: "Regex Entity Extractor", + type: { + name: "Composite", + className: "RegexEntityExtractor", + modelProperties: { + id: { + required: true, + serializedName: "id", + type: { + name: "Uuid" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + typeId: { + serializedName: "typeId", + type: { + name: "Number" + } + }, + readableType: { + required: true, + serializedName: "readableType", + type: { + name: "String" + } + }, + roles: { + serializedName: "roles", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EntityRole" + } + } + } + }, + regexPattern: { + serializedName: "regexPattern", + type: { + name: "String" + } + } + } + } +}; + +export const PatternAnyEntityExtractor: msRest.CompositeMapper = { + serializedName: "Pattern.Any Entity Extractor", + type: { + name: "Composite", + className: "PatternAnyEntityExtractor", + modelProperties: { + id: { + required: true, + serializedName: "id", + type: { + name: "Uuid" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + typeId: { + serializedName: "typeId", + type: { + name: "Number" + } + }, + readableType: { + required: true, + serializedName: "readableType", + type: { + name: "String" + } + }, + roles: { + serializedName: "roles", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EntityRole" + } + } + } + }, + explicitList: { + serializedName: "explicitList", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ExplicitListItem" + } + } + } + } + } + } +}; + +export const PatternRuleInfo: msRest.CompositeMapper = { + serializedName: "PatternRuleInfo", + type: { + name: "Composite", + className: "PatternRuleInfo", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "Uuid" + } + }, + pattern: { + serializedName: "pattern", + type: { + name: "String" + } + }, + intent: { + serializedName: "intent", + type: { + name: "String" + } + } + } + } +}; + +export const LabelTextObject: msRest.CompositeMapper = { + serializedName: "LabelTextObject", + type: { + name: "Composite", + className: "LabelTextObject", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "Number" + } + }, + text: { + serializedName: "text", + type: { + name: "String" + } + } + } + } +}; + +export const AppVersionSettingObject: msRest.CompositeMapper = { + serializedName: "AppVersionSettingObject", + type: { + name: "Composite", + className: "AppVersionSettingObject", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + value: { + serializedName: "value", + type: { + name: "String" + } + } + } + } +}; + +export const AzureAccountInfoObject: msRest.CompositeMapper = { + serializedName: "AzureAccountInfoObject", + type: { + name: "Composite", + className: "AzureAccountInfoObject", + modelProperties: { + azureSubscriptionId: { + required: true, + serializedName: "azureSubscriptionId", + type: { + name: "String" + } + }, + resourceGroup: { + required: true, + serializedName: "resourceGroup", + type: { + name: "String" + } + }, + accountName: { + required: true, + serializedName: "accountName", + type: { + name: "String" + } + } + } + } +}; + +export const HierarchicalChildModelUpdateObject: msRest.CompositeMapper = { + serializedName: "hierarchicalChildModelUpdateObject", + type: { + name: "Composite", + className: "HierarchicalChildModelUpdateObject", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + } + } + } +}; + +export const HierarchicalChildModelCreateObject: msRest.CompositeMapper = { + serializedName: "hierarchicalChildModelCreateObject", + type: { + name: "Composite", + className: "HierarchicalChildModelCreateObject", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + } + } + } +}; + +export const CompositeChildModelCreateObject: msRest.CompositeMapper = { + serializedName: "compositeChildModelCreateObject", + type: { + name: "Composite", + className: "CompositeChildModelCreateObject", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + } + } + } +}; diff --git a/sdk/cognitiveservices/cognitiveservices-luis-authoring/lib/models/modelMappers.ts b/sdk/cognitiveservices/cognitiveservices-luis-authoring/lib/models/modelMappers.ts new file mode 100644 index 000000000000..0913c9e93313 --- /dev/null +++ b/sdk/cognitiveservices/cognitiveservices-luis-authoring/lib/models/modelMappers.ts @@ -0,0 +1,61 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + ModelCreateObject, + ErrorResponse, + IntentClassifier, + ModelInfo, + EntityExtractor, + EntityRole, + HierarchicalEntityModel, + HierarchicalEntityExtractor, + ChildEntity, + CompositeEntityModel, + CompositeEntityExtractor, + ClosedListEntityExtractor, + SubClosedListResponse, + SubClosedList, + ClosedListModelCreateObject, + WordListObject, + PrebuiltEntityExtractor, + AvailablePrebuiltEntityModel, + ModelInfoResponse, + ExplicitListItem, + LabelTextObject, + ModelUpdateObject, + OperationStatus, + ClosedListModelUpdateObject, + ClosedListModelPatchObject, + WordListBaseUpdateObject, + IntentsSuggestionExample, + IntentPrediction, + EntityPrediction, + EntitiesSuggestionExample, + PrebuiltDomainCreateBaseObject, + PrebuiltDomainModelCreateObject, + CustomPrebuiltModel, + HierarchicalChildEntity, + HierarchicalChildModelUpdateObject, + HierarchicalChildModelCreateObject, + CompositeChildModelCreateObject, + RegexEntityExtractor, + RegexModelCreateObject, + PatternAnyEntityExtractor, + PatternAnyModelCreateObject, + EntityRoleCreateObject, + ExplicitListItemCreateObject, + RegexModelUpdateObject, + PatternAnyModelUpdateObject, + EntityRoleUpdateObject, + ExplicitListItemUpdateObject, + EntityModelInfo +} from "../models/mappers"; + diff --git a/sdk/cognitiveservices/cognitiveservices-luis-authoring/lib/models/parameters.ts b/sdk/cognitiveservices/cognitiveservices-luis-authoring/lib/models/parameters.ts new file mode 100644 index 000000000000..1b51a140b33d --- /dev/null +++ b/sdk/cognitiveservices/cognitiveservices-luis-authoring/lib/models/parameters.ts @@ -0,0 +1,317 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; + +export const appId: msRest.OperationURLParameter = { + parameterPath: "appId", + mapper: { + required: true, + serializedName: "appId", + type: { + name: "Uuid" + } + } +}; +export const appName: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "appName" + ], + mapper: { + serializedName: "appName", + type: { + name: "String" + } + } +}; +export const cChildId: msRest.OperationURLParameter = { + parameterPath: "cChildId", + mapper: { + required: true, + serializedName: "cChildId", + type: { + name: "Uuid" + } + } +}; +export const cEntityId: msRest.OperationURLParameter = { + parameterPath: "cEntityId", + mapper: { + required: true, + serializedName: "cEntityId", + type: { + name: "Uuid" + } + } +}; +export const clEntityId: msRest.OperationURLParameter = { + parameterPath: "clEntityId", + mapper: { + required: true, + serializedName: "clEntityId", + type: { + name: "Uuid" + } + } +}; +export const culture: msRest.OperationURLParameter = { + parameterPath: "culture", + mapper: { + required: true, + serializedName: "culture", + type: { + name: "String" + } + } +}; +export const deleteUtterances: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "deleteUtterances" + ], + mapper: { + serializedName: "deleteUtterances", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const domainName: msRest.OperationURLParameter = { + parameterPath: "domainName", + mapper: { + required: true, + serializedName: "domainName", + type: { + name: "String" + } + } +}; +export const endpoint: msRest.OperationURLParameter = { + parameterPath: "endpoint", + mapper: { + required: true, + serializedName: "Endpoint", + defaultValue: '', + type: { + name: "String" + } + }, + skipEncoding: true +}; +export const entityId: msRest.OperationURLParameter = { + parameterPath: "entityId", + mapper: { + required: true, + serializedName: "entityId", + type: { + name: "Uuid" + } + } +}; +export const exampleId: msRest.OperationURLParameter = { + parameterPath: "exampleId", + mapper: { + required: true, + serializedName: "exampleId", + type: { + name: "Number" + } + } +}; +export const force: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "force" + ], + mapper: { + serializedName: "force", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const hChildId: msRest.OperationURLParameter = { + parameterPath: "hChildId", + mapper: { + required: true, + serializedName: "hChildId", + type: { + name: "Uuid" + } + } +}; +export const hEntityId: msRest.OperationURLParameter = { + parameterPath: "hEntityId", + mapper: { + required: true, + serializedName: "hEntityId", + type: { + name: "Uuid" + } + } +}; +export const intentId: msRest.OperationURLParameter = { + parameterPath: "intentId", + mapper: { + required: true, + serializedName: "intentId", + type: { + name: "Uuid" + } + } +}; +export const itemId: msRest.OperationURLParameter = { + parameterPath: "itemId", + mapper: { + required: true, + serializedName: "itemId", + type: { + name: "Number" + } + } +}; +export const modelId: msRest.OperationURLParameter = { + parameterPath: "modelId", + mapper: { + required: true, + serializedName: "modelId", + type: { + name: "String" + } + } +}; +export const patternId: msRest.OperationURLParameter = { + parameterPath: "patternId", + mapper: { + required: true, + serializedName: "patternId", + type: { + name: "Uuid" + } + } +}; +export const phraselistId: msRest.OperationURLParameter = { + parameterPath: "phraselistId", + mapper: { + required: true, + serializedName: "phraselistId", + type: { + name: "Number" + } + } +}; +export const prebuiltId: msRest.OperationURLParameter = { + parameterPath: "prebuiltId", + mapper: { + required: true, + serializedName: "prebuiltId", + type: { + name: "Uuid" + } + } +}; +export const regexEntityId: msRest.OperationURLParameter = { + parameterPath: "regexEntityId", + mapper: { + required: true, + serializedName: "regexEntityId", + type: { + name: "Uuid" + } + } +}; +export const roleId: msRest.OperationURLParameter = { + parameterPath: "roleId", + mapper: { + required: true, + serializedName: "roleId", + type: { + name: "Uuid" + } + } +}; +export const skip: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "skip" + ], + mapper: { + serializedName: "skip", + defaultValue: 0, + constraints: { + InclusiveMinimum: 0 + }, + type: { + name: "Number" + } + } +}; +export const slotName: msRest.OperationURLParameter = { + parameterPath: "slotName", + mapper: { + required: true, + serializedName: "slotName", + type: { + name: "String" + } + } +}; +export const subListId: msRest.OperationURLParameter = { + parameterPath: "subListId", + mapper: { + required: true, + serializedName: "subListId", + type: { + name: "Number" + } + } +}; +export const take: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "take" + ], + mapper: { + serializedName: "take", + defaultValue: 100, + constraints: { + InclusiveMaximum: 500, + InclusiveMinimum: 0 + }, + type: { + name: "Number" + } + } +}; +export const versionId0: msRest.OperationURLParameter = { + parameterPath: "versionId", + mapper: { + required: true, + serializedName: "versionId", + type: { + name: "String" + } + } +}; +export const versionId1: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "versionId" + ], + mapper: { + serializedName: "versionId", + type: { + name: "String" + } + } +}; diff --git a/sdk/cognitiveservices/cognitiveservices-luis-authoring/lib/models/patternMappers.ts b/sdk/cognitiveservices/cognitiveservices-luis-authoring/lib/models/patternMappers.ts new file mode 100644 index 000000000000..5c345ee4df01 --- /dev/null +++ b/sdk/cognitiveservices/cognitiveservices-luis-authoring/lib/models/patternMappers.ts @@ -0,0 +1,18 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + PatternRuleCreateObject, + PatternRuleInfo, + ErrorResponse, + PatternRuleUpdateObject, + OperationStatus +} from "../models/mappers"; + diff --git a/sdk/cognitiveservices/cognitiveservices-luis-authoring/lib/models/permissionsMappers.ts b/sdk/cognitiveservices/cognitiveservices-luis-authoring/lib/models/permissionsMappers.ts new file mode 100644 index 000000000000..bbdce51ba195 --- /dev/null +++ b/sdk/cognitiveservices/cognitiveservices-luis-authoring/lib/models/permissionsMappers.ts @@ -0,0 +1,18 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + UserAccessList, + ErrorResponse, + UserCollaborator, + OperationStatus, + CollaboratorsArray +} from "../models/mappers"; + diff --git a/sdk/cognitiveservices/cognitiveservices-luis-authoring/lib/models/settingsMappers.ts b/sdk/cognitiveservices/cognitiveservices-luis-authoring/lib/models/settingsMappers.ts new file mode 100644 index 000000000000..a59aab16aea2 --- /dev/null +++ b/sdk/cognitiveservices/cognitiveservices-luis-authoring/lib/models/settingsMappers.ts @@ -0,0 +1,16 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + AppVersionSettingObject, + ErrorResponse, + OperationStatus +} from "../models/mappers"; + diff --git a/sdk/cognitiveservices/cognitiveservices-luis-authoring/lib/models/trainMappers.ts b/sdk/cognitiveservices/cognitiveservices-luis-authoring/lib/models/trainMappers.ts new file mode 100644 index 000000000000..2e32aae652ff --- /dev/null +++ b/sdk/cognitiveservices/cognitiveservices-luis-authoring/lib/models/trainMappers.ts @@ -0,0 +1,17 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + EnqueueTrainingResponse, + ErrorResponse, + ModelTrainingInfo, + ModelTrainingDetails +} from "../models/mappers"; + diff --git a/sdk/cognitiveservices/cognitiveservices-luis-authoring/lib/models/versionsMappers.ts b/sdk/cognitiveservices/cognitiveservices-luis-authoring/lib/models/versionsMappers.ts new file mode 100644 index 000000000000..0863b09c65bf --- /dev/null +++ b/sdk/cognitiveservices/cognitiveservices-luis-authoring/lib/models/versionsMappers.ts @@ -0,0 +1,31 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + TaskUpdateObject, + ErrorResponse, + VersionInfo, + OperationStatus, + LuisApp, + HierarchicalModel, + PrebuiltDomainObject, + ClosedList, + SubClosedList, + PatternAny, + RegexEntity, + PrebuiltEntity, + JSONRegexFeature, + JSONModelFeature, + PatternRule, + JSONUtterance, + JSONEntity, + SubClosedListResponse +} from "../models/mappers"; + diff --git a/sdk/cognitiveservices/cognitiveservices-luis-authoring/lib/operations/apps.ts b/sdk/cognitiveservices/cognitiveservices-luis-authoring/lib/operations/apps.ts new file mode 100644 index 000000000000..5104935d45b6 --- /dev/null +++ b/sdk/cognitiveservices/cognitiveservices-luis-authoring/lib/operations/apps.ts @@ -0,0 +1,1217 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/appsMappers"; +import * as Parameters from "../models/parameters"; +import { LUISAuthoringClientContext } from "../lUISAuthoringClientContext"; + +/** Class representing a Apps. */ +export class Apps { + private readonly client: LUISAuthoringClientContext; + + /** + * Create a Apps. + * @param {LUISAuthoringClientContext} client Reference to the service client. + */ + constructor(client: LUISAuthoringClientContext) { + this.client = client; + } + + /** + * Creates a new LUIS app. + * @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 + * @returns Promise + */ + add(applicationCreateObject: Models.ApplicationCreateObject, options?: msRest.RequestOptionsBase): Promise; + /** + * @param applicationCreateObject An application containing Name, Description (optional), Culture, + * Usage Scenario (optional), Domain (optional) and initial version ID (optional) of the + * 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 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 { + return this.client.sendOperationRequest( + { + applicationCreateObject, + options + }, + addOperationSpec, + callback) as Promise; + } + + /** + * Lists all of the user's applications. + * @param [options] The optional parameters + * @returns Promise + */ + list(options?: Models.AppsListOptionalParams): Promise; + /** + * @param callback The callback + */ + list(callback: msRest.ServiceCallback): void; + /** + * @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 { + return this.client.sendOperationRequest( + { + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Imports an application to LUIS, the application's structure is included in the request body. + * @param luisApp A LUIS application structure. + * @param [options] The optional parameters + * @returns Promise + */ + importMethod(luisApp: Models.LuisApp, options?: Models.AppsImportMethodOptionalParams): Promise; + /** + * @param luisApp A LUIS application structure. + * @param callback The callback + */ + importMethod(luisApp: Models.LuisApp, callback: msRest.ServiceCallback): void; + /** + * @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 { + return this.client.sendOperationRequest( + { + luisApp, + options + }, + importMethodOperationSpec, + callback) as Promise; + } + + /** + * Gets the endpoint URLs for the prebuilt Cortana applications. + * @param [options] The optional parameters + * @returns Promise + */ + listCortanaEndpoints(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + listCortanaEndpoints(callback: msRest.ServiceCallback): void; + /** + * @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 { + return this.client.sendOperationRequest( + { + options + }, + listCortanaEndpointsOperationSpec, + callback) as Promise; + } + + /** + * Gets the available application domains. + * @param [options] The optional parameters + * @returns Promise + */ + listDomains(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + listDomains(callback: msRest.ServiceCallback): void; + /** + * @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 { + return this.client.sendOperationRequest( + { + options + }, + listDomainsOperationSpec, + callback) as Promise; + } + + /** + * Gets the application available usage scenarios. + * @param [options] The optional parameters + * @returns Promise + */ + listUsageScenarios(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + listUsageScenarios(callback: msRest.ServiceCallback): void; + /** + * @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 { + return this.client.sendOperationRequest( + { + options + }, + listUsageScenariosOperationSpec, + callback) as Promise; + } + + /** + * 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 [options] The optional parameters + * @returns Promise + */ + listSupportedCultures(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + listSupportedCultures(callback: msRest.ServiceCallback): void; + /** + * @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 { + return this.client.sendOperationRequest( + { + options + }, + listSupportedCulturesOperationSpec, + callback) as Promise; + } + + /** + * Gets the logs of the past month's endpoint queries for the application. + * @param appId The application ID. + * @param [options] The optional parameters + * @returns Promise + */ + downloadQueryLogs(appId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param appId The application ID. + * @param callback The callback + */ + downloadQueryLogs(appId: string, callback: msRest.ServiceCallback): void; + /** + * @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 { + return this.client.sendOperationRequest( + { + appId, + options + }, + downloadQueryLogsOperationSpec, + callback) as Promise; + } + + /** + * Gets the application info. + * @param appId The application ID. + * @param [options] The optional parameters + * @returns Promise + */ + get(appId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param appId The application ID. + * @param callback The callback + */ + get(appId: string, callback: msRest.ServiceCallback): void; + /** + * @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 { + return this.client.sendOperationRequest( + { + appId, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Updates the name or description of the application. + * @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; + /** + * @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; + /** + * @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 { + return this.client.sendOperationRequest( + { + appId, + applicationUpdateObject, + options + }, + updateOperationSpec, + callback) as Promise; + } + + /** + * Deletes an application. + * @param appId The application ID. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(appId: string, options?: Models.AppsDeleteMethodOptionalParams): Promise; + /** + * @param appId The application ID. + * @param callback The callback + */ + deleteMethod(appId: string, callback: msRest.ServiceCallback): void; + /** + * @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 { + return this.client.sendOperationRequest( + { + appId, + options + }, + deleteMethodOperationSpec, + callback) as Promise; + } + + /** + * Publishes a specific version of the application. + * @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; + /** + * @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; + /** + * @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 { + return this.client.sendOperationRequest( + { + appId, + applicationPublishObject, + options + }, + publishOperationSpec, + callback) as Promise; + } + + /** + * Get the application settings including 'UseAllTrainingData'. + * @param appId The application ID. + * @param [options] The optional parameters + * @returns Promise + */ + getSettings(appId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param appId The application ID. + * @param callback The callback + */ + getSettings(appId: string, callback: msRest.ServiceCallback): void; + /** + * @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 { + return this.client.sendOperationRequest( + { + appId, + options + }, + getSettingsOperationSpec, + callback) as Promise; + } + + /** + * Updates the application settings including 'UseAllTrainingData'. + * @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; + /** + * @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; + /** + * @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 { + return this.client.sendOperationRequest( + { + appId, + applicationSettingUpdateObject, + options + }, + updateSettingsOperationSpec, + callback) as Promise; + } + + /** + * Get the application publish settings including 'UseAllTrainingData'. + * @param appId The application ID. + * @param [options] The optional parameters + * @returns Promise + */ + getPublishSettings(appId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param appId The application ID. + * @param callback The callback + */ + getPublishSettings(appId: string, callback: msRest.ServiceCallback): void; + /** + * @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 { + return this.client.sendOperationRequest( + { + appId, + options + }, + getPublishSettingsOperationSpec, + callback) as Promise; + } + + /** + * Updates the application publish settings including 'UseAllTrainingData'. + * @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; + /** + * @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; + /** + * @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 { + return this.client.sendOperationRequest( + { + appId, + publishSettingUpdateObject, + options + }, + updatePublishSettingsOperationSpec, + callback) as Promise; + } + + /** + * Returns the available endpoint deployment regions and URLs. + * @param appId The application ID. + * @param [options] The optional parameters + * @returns Promise + */ + listEndpoints(appId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param appId The application ID. + * @param callback The callback + */ + listEndpoints(appId: string, callback: msRest.ServiceCallback<{ [propertyName: string]: string }>): void; + /** + * @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 { + return this.client.sendOperationRequest( + { + appId, + options + }, + listEndpointsOperationSpec, + callback) as Promise; + } + + /** + * Gets all the available custom prebuilt domains for all cultures. + * @param [options] The optional parameters + * @returns Promise + */ + listAvailableCustomPrebuiltDomains(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + listAvailableCustomPrebuiltDomains(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + listAvailableCustomPrebuiltDomains(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listAvailableCustomPrebuiltDomains(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listAvailableCustomPrebuiltDomainsOperationSpec, + callback) as Promise; + } + + /** + * Adds a prebuilt domain along with its intent and entity models as a new application. + * @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; + /** + * @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; + /** + * @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 { + return this.client.sendOperationRequest( + { + prebuiltDomainCreateObject, + options + }, + addCustomPrebuiltDomainOperationSpec, + callback) as Promise; + } + + /** + * Gets all the available prebuilt domains for a specific culture. + * @param culture Culture. + * @param [options] The optional parameters + * @returns Promise + */ + listAvailableCustomPrebuiltDomainsForCulture(culture: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param culture Culture. + * @param callback The callback + */ + listAvailableCustomPrebuiltDomainsForCulture(culture: string, callback: msRest.ServiceCallback): void; + /** + * @param culture Culture. + * @param options The optional parameters + * @param callback The callback + */ + listAvailableCustomPrebuiltDomainsForCulture(culture: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listAvailableCustomPrebuiltDomainsForCulture(culture: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + culture, + options + }, + listAvailableCustomPrebuiltDomainsForCultureOperationSpec, + callback) as Promise; + } + + /** + * 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 appId The application ID. + * @param slotName The publishing slot name. + * @param [options] The optional parameters + * @returns Promise + */ + packagePublishedApplicationAsGzip(appId: string, slotName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param appId The application ID. + * @param slotName The publishing slot name. + * @param callback The callback + */ + packagePublishedApplicationAsGzip(appId: string, slotName: string, callback: msRest.ServiceCallback): void; + /** + * @param appId The application ID. + * @param slotName The publishing slot name. + * @param options The optional parameters + * @param callback The callback + */ + packagePublishedApplicationAsGzip(appId: string, slotName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + packagePublishedApplicationAsGzip(appId: string, slotName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + appId, + slotName, + options + }, + packagePublishedApplicationAsGzipOperationSpec, + callback) as Promise; + } + + /** + * Packages trained LUIS application as GZip file to be used in the LUIS container. + * @summary package - Gets trained LUIS application package in binary stream GZip format + * @param appId The application ID. + * @param versionId The version ID. + * @param [options] The optional parameters + * @returns Promise + */ + packageTrainedApplicationAsGzip(appId: string, versionId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param callback The callback + */ + packageTrainedApplicationAsGzip(appId: string, versionId: string, callback: msRest.ServiceCallback): void; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param options The optional parameters + * @param callback The callback + */ + packageTrainedApplicationAsGzip(appId: string, versionId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + packageTrainedApplicationAsGzip(appId: string, versionId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + appId, + versionId, + options + }, + packageTrainedApplicationAsGzipOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const addOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "apps/", + urlParameters: [ + Parameters.endpoint + ], + requestBody: { + parameterPath: "applicationCreateObject", + mapper: { + ...Mappers.ApplicationCreateObject, + required: true + } + }, + responses: { + 201: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Uuid" + } + } + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "apps/", + urlParameters: [ + Parameters.endpoint + ], + queryParameters: [ + Parameters.skip, + Parameters.take + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApplicationInfoResponse" + } + } + } + } + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const importMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "apps/import", + urlParameters: [ + Parameters.endpoint + ], + queryParameters: [ + Parameters.appName + ], + requestBody: { + parameterPath: "luisApp", + mapper: { + ...Mappers.LuisApp, + required: true + } + }, + responses: { + 201: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Uuid" + } + } + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listCortanaEndpointsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "apps/assistants", + urlParameters: [ + Parameters.endpoint + ], + responses: { + 200: { + bodyMapper: Mappers.PersonalAssistantsResponse + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listDomainsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "apps/domains", + urlParameters: [ + Parameters.endpoint + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listUsageScenariosOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "apps/usagescenarios", + urlParameters: [ + Parameters.endpoint + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listSupportedCulturesOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "apps/cultures", + urlParameters: [ + Parameters.endpoint + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AvailableCulture" + } + } + } + } + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const downloadQueryLogsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "apps/{appId}/querylogs", + urlParameters: [ + Parameters.endpoint, + Parameters.appId + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Stream" + } + } + }, + default: {} + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "apps/{appId}", + urlParameters: [ + Parameters.endpoint, + Parameters.appId + ], + responses: { + 200: { + bodyMapper: Mappers.ApplicationInfoResponse + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "apps/{appId}", + urlParameters: [ + Parameters.endpoint, + Parameters.appId + ], + requestBody: { + parameterPath: "applicationUpdateObject", + mapper: { + ...Mappers.ApplicationUpdateObject, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.OperationStatus + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "apps/{appId}", + urlParameters: [ + Parameters.endpoint, + Parameters.appId + ], + queryParameters: [ + Parameters.force + ], + responses: { + 200: { + bodyMapper: Mappers.OperationStatus + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const publishOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "apps/{appId}/publish", + urlParameters: [ + Parameters.endpoint, + Parameters.appId + ], + requestBody: { + parameterPath: "applicationPublishObject", + mapper: { + ...Mappers.ApplicationPublishObject, + required: true + } + }, + responses: { + 201: { + bodyMapper: Mappers.ProductionOrStagingEndpointInfo + }, + 207: { + bodyMapper: Mappers.ProductionOrStagingEndpointInfo + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getSettingsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "apps/{appId}/settings", + urlParameters: [ + Parameters.endpoint, + Parameters.appId + ], + responses: { + 200: { + bodyMapper: Mappers.ApplicationSettings + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const updateSettingsOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "apps/{appId}/settings", + urlParameters: [ + Parameters.endpoint, + Parameters.appId + ], + requestBody: { + parameterPath: "applicationSettingUpdateObject", + mapper: { + ...Mappers.ApplicationSettingUpdateObject, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.OperationStatus + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getPublishSettingsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "apps/{appId}/publishsettings", + urlParameters: [ + Parameters.endpoint, + Parameters.appId + ], + responses: { + 200: { + bodyMapper: Mappers.PublishSettings + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const updatePublishSettingsOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "apps/{appId}/publishsettings", + urlParameters: [ + Parameters.endpoint, + Parameters.appId + ], + requestBody: { + parameterPath: "publishSettingUpdateObject", + mapper: { + ...Mappers.PublishSettingUpdateObject, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.OperationStatus + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listEndpointsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "apps/{appId}/endpoints", + urlParameters: [ + Parameters.endpoint, + Parameters.appId + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + } + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listAvailableCustomPrebuiltDomainsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "apps/customprebuiltdomains", + urlParameters: [ + Parameters.endpoint + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrebuiltDomain" + } + } + } + } + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const addCustomPrebuiltDomainOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "apps/customprebuiltdomains", + urlParameters: [ + Parameters.endpoint + ], + requestBody: { + parameterPath: "prebuiltDomainCreateObject", + mapper: { + ...Mappers.PrebuiltDomainCreateObject, + required: true + } + }, + responses: { + 201: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Uuid" + } + } + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listAvailableCustomPrebuiltDomainsForCultureOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "apps/customprebuiltdomains/{culture}", + urlParameters: [ + Parameters.endpoint, + Parameters.culture + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrebuiltDomain" + } + } + } + } + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const packagePublishedApplicationAsGzipOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "package/{appId}/slot/{slotName}/gzip", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.slotName + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Stream" + } + } + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const packageTrainedApplicationAsGzipOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "package/{appId}/versions/{versionId}/gzip", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0 + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Stream" + } + } + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/cognitiveservices/cognitiveservices-luis-authoring/lib/operations/azureAccounts.ts b/sdk/cognitiveservices/cognitiveservices-luis-authoring/lib/operations/azureAccounts.ts new file mode 100644 index 000000000000..e1cfd31a3720 --- /dev/null +++ b/sdk/cognitiveservices/cognitiveservices-luis-authoring/lib/operations/azureAccounts.ts @@ -0,0 +1,249 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/azureAccountsMappers"; +import * as Parameters from "../models/parameters"; +import { LUISAuthoringClientContext } from "../lUISAuthoringClientContext"; + +/** Class representing a AzureAccounts. */ +export class AzureAccounts { + private readonly client: LUISAuthoringClientContext; + + /** + * Create a AzureAccounts. + * @param {LUISAuthoringClientContext} client Reference to the service client. + */ + constructor(client: LUISAuthoringClientContext) { + this.client = client; + } + + /** + * Assigns an Azure account to the application. + * @summary apps - Assign a LUIS Azure account to an application + * @param appId The application ID. + * @param [options] The optional parameters + * @returns Promise + */ + assignToApp(appId: string, options?: Models.AzureAccountsAssignToAppOptionalParams): Promise; + /** + * @param appId The application ID. + * @param callback The callback + */ + assignToApp(appId: string, callback: msRest.ServiceCallback): void; + /** + * @param appId The application ID. + * @param options The optional parameters + * @param callback The callback + */ + assignToApp(appId: string, options: Models.AzureAccountsAssignToAppOptionalParams, callback: msRest.ServiceCallback): void; + assignToApp(appId: string, options?: Models.AzureAccountsAssignToAppOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + appId, + options + }, + assignToAppOperationSpec, + callback) as Promise; + } + + /** + * Gets the LUIS Azure accounts assigned to the application for the user using his ARM token. + * @summary apps - Get LUIS Azure accounts assigned to the application + * @param appId The application ID. + * @param [options] The optional parameters + * @returns Promise + */ + getAssigned(appId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param appId The application ID. + * @param callback The callback + */ + getAssigned(appId: string, callback: msRest.ServiceCallback): void; + /** + * @param appId The application ID. + * @param options The optional parameters + * @param callback The callback + */ + getAssigned(appId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getAssigned(appId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + appId, + options + }, + getAssignedOperationSpec, + callback) as Promise; + } + + /** + * Removes assigned Azure account from the application. + * @summary apps - Removes an assigned LUIS Azure account from an application + * @param appId The application ID. + * @param [options] The optional parameters + * @returns Promise + */ + removeFromApp(appId: string, options?: Models.AzureAccountsRemoveFromAppOptionalParams): Promise; + /** + * @param appId The application ID. + * @param callback The callback + */ + removeFromApp(appId: string, callback: msRest.ServiceCallback): void; + /** + * @param appId The application ID. + * @param options The optional parameters + * @param callback The callback + */ + removeFromApp(appId: string, options: Models.AzureAccountsRemoveFromAppOptionalParams, callback: msRest.ServiceCallback): void; + removeFromApp(appId: string, options?: Models.AzureAccountsRemoveFromAppOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + appId, + options + }, + removeFromAppOperationSpec, + callback) as Promise; + } + + /** + * Gets the LUIS Azure accounts for the user using his ARM token. + * @summary user - Get LUIS Azure accounts + * @param [options] The optional parameters + * @returns Promise + */ + listUserLUISAccounts(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + listUserLUISAccounts(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + listUserLUISAccounts(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listUserLUISAccounts(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listUserLUISAccountsOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const assignToAppOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "apps/{appId}/azureaccounts", + urlParameters: [ + Parameters.endpoint, + Parameters.appId + ], + requestBody: { + parameterPath: [ + "options", + "azureAccountInfoObject" + ], + mapper: Mappers.AzureAccountInfoObject + }, + responses: { + 201: { + bodyMapper: Mappers.OperationStatus + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getAssignedOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "apps/{appId}/azureaccounts", + urlParameters: [ + Parameters.endpoint, + Parameters.appId + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AzureAccountInfoObject" + } + } + } + } + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const removeFromAppOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "apps/{appId}/azureaccounts", + urlParameters: [ + Parameters.endpoint, + Parameters.appId + ], + requestBody: { + parameterPath: [ + "options", + "azureAccountInfoObject" + ], + mapper: Mappers.AzureAccountInfoObject + }, + responses: { + 200: { + bodyMapper: Mappers.OperationStatus + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listUserLUISAccountsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "azureaccounts", + urlParameters: [ + Parameters.endpoint + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AzureAccountInfoObject" + } + } + } + } + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/cognitiveservices/cognitiveservices-luis-authoring/lib/operations/examples.ts b/sdk/cognitiveservices/cognitiveservices-luis-authoring/lib/operations/examples.ts new file mode 100644 index 000000000000..4e2903a5248a --- /dev/null +++ b/sdk/cognitiveservices/cognitiveservices-luis-authoring/lib/operations/examples.ts @@ -0,0 +1,310 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/examplesMappers"; +import * as Parameters from "../models/parameters"; +import { LUISAuthoringClientContext } from "../lUISAuthoringClientContext"; + +/** Class representing a Examples. */ +export class Examples { + private readonly client: LUISAuthoringClientContext; + + /** + * Create a Examples. + * @param {LUISAuthoringClientContext} client Reference to the service client. + */ + constructor(client: LUISAuthoringClientContext) { + this.client = client; + } + + /** + * Adds a labeled example utterance in a version of the application. + * @param appId The application ID. + * @param versionId The version ID. + * @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; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param exampleLabelObject A labeled example utterance with the expected intent and entities. + * @param callback The callback + */ + add(appId: string, versionId: string, exampleLabelObject: Models.ExampleLabelObject, callback: msRest.ServiceCallback): void; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + exampleLabelObject, + options + }, + addOperationSpec, + callback) as Promise; + } + + /** + * Adds a batch of labeled example utterances to a version of the application. + * @param appId The application ID. + * @param versionId The version ID. + * @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; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param exampleLabelObjectArray Array of example utterances. + * @param callback The callback + */ + batch(appId: string, versionId: string, exampleLabelObjectArray: Models.ExampleLabelObject[], callback: msRest.ServiceCallback): void; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + exampleLabelObjectArray, + options + }, + batchOperationSpec, + callback) as Promise; + } + + /** + * Returns example utterances to be reviewed from a version of the application. + * @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; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param callback The callback + */ + list(appId: string, versionId: string, callback: msRest.ServiceCallback): void; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param options The optional parameters + * @param callback The callback + */ + list(appId: string, versionId: string, options: Models.ExamplesListOptionalParams, callback: msRest.ServiceCallback): void; + list(appId: string, versionId: string, options?: Models.ExamplesListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + appId, + versionId, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Deletes the labeled example utterances with the specified ID from a version of the application. + * @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; + /** + * @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; + /** + * @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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + exampleId, + options + }, + deleteMethodOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const addOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "apps/{appId}/versions/{versionId}/example", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0 + ], + requestBody: { + parameterPath: "exampleLabelObject", + mapper: { + ...Mappers.ExampleLabelObject, + required: true + } + }, + responses: { + 201: { + bodyMapper: Mappers.LabelExampleResponse + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const batchOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "apps/{appId}/versions/{versionId}/examples", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0 + ], + requestBody: { + parameterPath: "exampleLabelObjectArray", + mapper: { + required: true, + serializedName: "exampleLabelObjectArray", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ExampleLabelObject" + } + } + } + } + }, + responses: { + 201: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "BatchLabelExample" + } + } + } + } + }, + 207: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "BatchLabelExample" + } + } + } + } + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "apps/{appId}/versions/{versionId}/examples", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0 + ], + queryParameters: [ + Parameters.skip, + Parameters.take + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "LabeledUtterance" + } + } + } + } + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "apps/{appId}/versions/{versionId}/examples/{exampleId}", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.exampleId + ], + responses: { + 200: { + bodyMapper: Mappers.OperationStatus + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/cognitiveservices/cognitiveservices-luis-authoring/lib/operations/features.ts b/sdk/cognitiveservices/cognitiveservices-luis-authoring/lib/operations/features.ts new file mode 100644 index 000000000000..35a89aea96de --- /dev/null +++ b/sdk/cognitiveservices/cognitiveservices-luis-authoring/lib/operations/features.ts @@ -0,0 +1,466 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/featuresMappers"; +import * as Parameters from "../models/parameters"; +import { LUISAuthoringClientContext } from "../lUISAuthoringClientContext"; + +/** Class representing a Features. */ +export class Features { + private readonly client: LUISAuthoringClientContext; + + /** + * Create a Features. + * @param {LUISAuthoringClientContext} client Reference to the service client. + */ + constructor(client: LUISAuthoringClientContext) { + this.client = client; + } + + /** + * [DEPRECATED NOTICE: This operation will soon be removed] Gets all the pattern features. + * @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(appId: string, versionId: string, options?: Models.FeaturesListApplicationVersionPatternFeaturesOptionalParams): Promise; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param callback The callback + * @deprecated This operation is deprecated. Please do not use it any longer. + */ + listApplicationVersionPatternFeatures(appId: string, versionId: string, callback: msRest.ServiceCallback): void; + /** + * @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(appId: string, versionId: string, options: Models.FeaturesListApplicationVersionPatternFeaturesOptionalParams, callback: msRest.ServiceCallback): void; + listApplicationVersionPatternFeatures(appId: string, versionId: string, options?: Models.FeaturesListApplicationVersionPatternFeaturesOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + appId, + versionId, + options + }, + listApplicationVersionPatternFeaturesOperationSpec, + callback) as Promise; + } + + /** + * Creates a new phraselist feature in a version of the application. + * @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 [options] The optional parameters + * @returns Promise + */ + addPhraseList(appId: string, versionId: string, phraselistCreateObject: Models.PhraselistCreateObject, options?: msRest.RequestOptionsBase): Promise; + /** + * @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; + /** + * @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 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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + phraselistCreateObject, + options + }, + addPhraseListOperationSpec, + callback) as Promise; + } + + /** + * Gets all the phraselist features in a version of the application. + * @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; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param callback The callback + */ + listPhraseLists(appId: string, versionId: string, callback: msRest.ServiceCallback): void; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param options The optional parameters + * @param callback The callback + */ + listPhraseLists(appId: string, versionId: string, options: Models.FeaturesListPhraseListsOptionalParams, callback: msRest.ServiceCallback): void; + listPhraseLists(appId: string, versionId: string, options?: Models.FeaturesListPhraseListsOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + appId, + versionId, + options + }, + listPhraseListsOperationSpec, + callback) as Promise; + } + + /** + * Gets all the extraction phraselist and pattern features in a version of the application. + * @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; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param callback The callback + */ + list(appId: string, versionId: string, callback: msRest.ServiceCallback): void; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param options The optional parameters + * @param callback The callback + */ + list(appId: string, versionId: string, options: Models.FeaturesListOptionalParams, callback: msRest.ServiceCallback): void; + list(appId: string, versionId: string, options?: Models.FeaturesListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + appId, + versionId, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Gets phraselist feature info in a version of the application. + * @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; + /** + * @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; + /** + * @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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + phraselistId, + options + }, + getPhraseListOperationSpec, + callback) as Promise; + } + + /** + * Updates the phrases, the state and the name of the phraselist feature in a version of the + * application. + * @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; + /** + * @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; + /** + * @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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + phraselistId, + options + }, + updatePhraseListOperationSpec, + callback) as Promise; + } + + /** + * Deletes a phraselist feature from a version of the application. + * @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; + /** + * @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; + /** + * @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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + phraselistId, + options + }, + deletePhraseListOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listApplicationVersionPatternFeaturesOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "apps/{appId}/versions/{versionId}/patterns", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0 + ], + queryParameters: [ + Parameters.skip, + Parameters.take + ], + 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.appId, + Parameters.versionId0 + ], + requestBody: { + parameterPath: "phraselistCreateObject", + mapper: { + ...Mappers.PhraselistCreateObject, + required: true + } + }, + responses: { + 201: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Number" + } + } + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listPhraseListsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "apps/{appId}/versions/{versionId}/phraselists", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0 + ], + queryParameters: [ + Parameters.skip, + Parameters.take + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PhraseListFeatureInfo" + } + } + } + } + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "apps/{appId}/versions/{versionId}/features", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0 + ], + queryParameters: [ + Parameters.skip, + Parameters.take + ], + responses: { + 200: { + bodyMapper: Mappers.FeaturesResponseObject + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getPhraseListOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "apps/{appId}/versions/{versionId}/phraselists/{phraselistId}", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.phraselistId + ], + responses: { + 200: { + bodyMapper: Mappers.PhraseListFeatureInfo + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const updatePhraseListOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "apps/{appId}/versions/{versionId}/phraselists/{phraselistId}", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.phraselistId + ], + requestBody: { + parameterPath: [ + "options", + "phraselistUpdateObject" + ], + mapper: Mappers.PhraselistUpdateObject + }, + responses: { + 200: { + bodyMapper: Mappers.OperationStatus + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const deletePhraseListOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "apps/{appId}/versions/{versionId}/phraselists/{phraselistId}", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.phraselistId + ], + responses: { + 200: { + bodyMapper: Mappers.OperationStatus + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/cognitiveservices/cognitiveservices-luis-authoring/lib/operations/index.ts b/sdk/cognitiveservices/cognitiveservices-luis-authoring/lib/operations/index.ts new file mode 100644 index 000000000000..213f356bb13f --- /dev/null +++ b/sdk/cognitiveservices/cognitiveservices-luis-authoring/lib/operations/index.ts @@ -0,0 +1,20 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export * from "./features"; +export * from "./examples"; +export * from "./model"; +export * from "./apps"; +export * from "./versions"; +export * from "./train"; +export * from "./permissions"; +export * from "./pattern"; +export * from "./settings"; +export * from "./azureAccounts"; diff --git a/sdk/cognitiveservices/cognitiveservices-luis-authoring/lib/operations/model.ts b/sdk/cognitiveservices/cognitiveservices-luis-authoring/lib/operations/model.ts new file mode 100644 index 000000000000..58d0aa356fd8 --- /dev/null +++ b/sdk/cognitiveservices/cognitiveservices-luis-authoring/lib/operations/model.ts @@ -0,0 +1,6982 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/modelMappers"; +import * as Parameters from "../models/parameters"; +import { LUISAuthoringClientContext } from "../lUISAuthoringClientContext"; + +/** Class representing a Model. */ +export class Model { + private readonly client: LUISAuthoringClientContext; + + /** + * Create a Model. + * @param {LUISAuthoringClientContext} client Reference to the service client. + */ + constructor(client: LUISAuthoringClientContext) { + this.client = client; + } + + /** + * Adds an intent to a version of the application. + * @param appId The application ID. + * @param versionId The version ID. + * @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; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @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; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + intentCreateObject, + options + }, + addIntentOperationSpec, + callback) as Promise; + } + + /** + * Gets information about the intent models in a version of the application. + * @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; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param callback The callback + */ + listIntents(appId: string, versionId: string, callback: msRest.ServiceCallback): void; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param options The optional parameters + * @param callback The callback + */ + 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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + options + }, + listIntentsOperationSpec, + callback) as Promise; + } + + /** + * Adds a simple entity extractor to a version of the application. + * @param appId The application ID. + * @param versionId The version ID. + * @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; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @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; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + modelCreateObject, + options + }, + addEntityOperationSpec, + callback) as Promise; + } + + /** + * Gets information about all the simple entity models in a version of the application. + * @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; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param callback The callback + */ + listEntities(appId: string, versionId: string, callback: msRest.ServiceCallback): void; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param options The optional parameters + * @param callback The callback + */ + 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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + options + }, + listEntitiesOperationSpec, + callback) as Promise; + } + + /** + * Adds a hierarchical entity extractor to a version of the application. + * @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 [options] The optional parameters + * @returns Promise + */ + addHierarchicalEntity(appId: string, versionId: string, hierarchicalModelCreateObject: Models.HierarchicalEntityModel, options?: msRest.RequestOptionsBase): Promise; + /** + * @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; + /** + * @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 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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + hierarchicalModelCreateObject, + options + }, + addHierarchicalEntityOperationSpec, + callback) as Promise; + } + + /** + * Gets information about all the hierarchical entity models in a version of the application. + * @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; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param callback The callback + */ + listHierarchicalEntities(appId: string, versionId: string, callback: msRest.ServiceCallback): void; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param options The optional parameters + * @param callback The callback + */ + 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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + options + }, + listHierarchicalEntitiesOperationSpec, + callback) as Promise; + } + + /** + * Adds a composite entity extractor to a version of the application. + * @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 [options] The optional parameters + * @returns Promise + */ + addCompositeEntity(appId: string, versionId: string, compositeModelCreateObject: Models.CompositeEntityModel, options?: msRest.RequestOptionsBase): Promise; + /** + * @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; + /** + * @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 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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + compositeModelCreateObject, + options + }, + addCompositeEntityOperationSpec, + callback) as Promise; + } + + /** + * Gets information about all the composite entity models in a version of the application. + * @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; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param callback The callback + */ + listCompositeEntities(appId: string, versionId: string, callback: msRest.ServiceCallback): void; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param options The optional parameters + * @param callback The callback + */ + 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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + options + }, + listCompositeEntitiesOperationSpec, + callback) as Promise; + } + + /** + * Gets information about all the list entity models in a version of the application. + * @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; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param callback The callback + */ + listClosedLists(appId: string, versionId: string, callback: msRest.ServiceCallback): void; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param options The optional parameters + * @param callback The callback + */ + 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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + options + }, + listClosedListsOperationSpec, + callback) as Promise; + } + + /** + * Adds a list entity model to a version of the application. + * @param appId The application ID. + * @param versionId The version ID. + * @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; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @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; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + closedListModelCreateObject, + options + }, + addClosedListOperationSpec, + callback) as Promise; + } + + /** + * Adds a list of prebuilt entities to a version of the application. + * @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; + /** + * @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; + /** + * @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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + prebuiltExtractorNames, + options + }, + addPrebuiltOperationSpec, + callback) as Promise; + } + + /** + * Gets information about all the prebuilt entities in a version of the application. + * @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; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param callback The callback + */ + listPrebuilts(appId: string, versionId: string, callback: msRest.ServiceCallback): void; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param options The optional parameters + * @param callback The callback + */ + 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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + options + }, + listPrebuiltsOperationSpec, + callback) as Promise; + } + + /** + * Gets all the available prebuilt entities in a version of the application. + * @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; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param callback The callback + */ + listPrebuiltEntities(appId: string, versionId: string, callback: msRest.ServiceCallback): void; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param options The optional parameters + * @param callback The callback + */ + 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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + options + }, + listPrebuiltEntitiesOperationSpec, + callback) as Promise; + } + + /** + * Gets information about all the intent and entity models in a version of the application. + * @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; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param callback The callback + */ + listModels(appId: string, versionId: string, callback: msRest.ServiceCallback): void; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param options The optional parameters + * @param callback The callback + */ + 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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + options + }, + listModelsOperationSpec, + callback) as Promise; + } + + /** + * Gets the example utterances for the given intent or entity model in a version of the + * application. + * @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; + /** + * @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; + /** + * @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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + modelId, + options + }, + examplesMethodOperationSpec, + callback) as Promise; + } + + /** + * Gets information about the intent model in a version of the application. + * @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; + /** + * @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; + /** + * @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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + intentId, + options + }, + getIntentOperationSpec, + callback) as Promise; + } + + /** + * Updates the name of an intent in a version of the application. + * @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 name. + * @param [options] The optional parameters + * @returns Promise + */ + updateIntent(appId: string, versionId: string, intentId: string, modelUpdateObject: Models.ModelUpdateObject, options?: msRest.RequestOptionsBase): Promise; + /** + * @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 name. + * @param callback The callback + */ + updateIntent(appId: string, versionId: string, intentId: string, modelUpdateObject: Models.ModelUpdateObject, callback: msRest.ServiceCallback): void; + /** + * @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 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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + intentId, + modelUpdateObject, + options + }, + updateIntentOperationSpec, + callback) as Promise; + } + + /** + * Deletes an intent from a version of the application. + * @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; + /** + * @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; + /** + * @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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + intentId, + options + }, + deleteIntentOperationSpec, + callback) as Promise; + } + + /** + * Gets information about an entity model in a version of the application. + * @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; + /** + * @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; + /** + * @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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + entityId, + options + }, + getEntityOperationSpec, + callback) as Promise; + } + + /** + * Updates the name of an entity in a version of the application. + * @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 [options] The optional parameters + * @returns Promise + */ + updateEntity(appId: string, versionId: string, entityId: string, modelUpdateObject: Models.ModelUpdateObject, options?: msRest.RequestOptionsBase): Promise; + /** + * @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; + /** + * @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 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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + entityId, + modelUpdateObject, + options + }, + updateEntityOperationSpec, + callback) as Promise; + } + + /** + * Deletes an entity from a version of the application. + * @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; + /** + * @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; + /** + * @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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + entityId, + options + }, + deleteEntityOperationSpec, + callback) as Promise; + } + + /** + * Gets information about a hierarchical entity in a version of the application. + * @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; + /** + * @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; + /** + * @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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + hEntityId, + options + }, + getHierarchicalEntityOperationSpec, + callback) as Promise; + } + + /** + * Updates the name and children of a hierarchical entity model in a version of the application. + * @param appId The application ID. + * @param versionId The version ID. + * @param hEntityId The hierarchical entity extractor ID. + * @param hierarchicalModelUpdateObject Model containing names of the children of the hierarchical + * entity. + * @param [options] The optional parameters + * @returns Promise + */ + updateHierarchicalEntity(appId: string, versionId: string, hEntityId: string, hierarchicalModelUpdateObject: Models.HierarchicalEntityModel, options?: msRest.RequestOptionsBase): Promise; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param hEntityId The hierarchical entity extractor ID. + * @param hierarchicalModelUpdateObject Model containing names of the children of the hierarchical + * entity. + * @param callback The callback + */ + updateHierarchicalEntity(appId: string, versionId: string, hEntityId: string, hierarchicalModelUpdateObject: Models.HierarchicalEntityModel, callback: msRest.ServiceCallback): void; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param hEntityId The hierarchical entity extractor ID. + * @param hierarchicalModelUpdateObject Model containing names of the children of the hierarchical + * entity. + * @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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + hEntityId, + hierarchicalModelUpdateObject, + options + }, + updateHierarchicalEntityOperationSpec, + callback) as Promise; + } + + /** + * Deletes a hierarchical entity from a version of the application. + * @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; + /** + * @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; + /** + * @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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + hEntityId, + options + }, + deleteHierarchicalEntityOperationSpec, + callback) as Promise; + } + + /** + * Gets information about a composite entity in a version of the application. + * @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; + /** + * @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; + /** + * @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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + cEntityId, + options + }, + getCompositeEntityOperationSpec, + callback) as Promise; + } + + /** + * Updates a composite entity in a version of the application. + * @param appId The application ID. + * @param versionId The version ID. + * @param cEntityId The composite entity extractor ID. + * @param compositeModelUpdateObject A model object containing the new entity extractor name and + * children. + * @param [options] The optional parameters + * @returns Promise + */ + updateCompositeEntity(appId: string, versionId: string, cEntityId: string, compositeModelUpdateObject: Models.CompositeEntityModel, options?: msRest.RequestOptionsBase): Promise; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param cEntityId The composite entity extractor ID. + * @param compositeModelUpdateObject A model object containing the new entity extractor name and + * children. + * @param callback The callback + */ + updateCompositeEntity(appId: string, versionId: string, cEntityId: string, compositeModelUpdateObject: Models.CompositeEntityModel, callback: msRest.ServiceCallback): void; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param cEntityId The composite entity extractor ID. + * @param compositeModelUpdateObject A model object containing the new entity extractor name and + * children. + * @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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + cEntityId, + compositeModelUpdateObject, + options + }, + updateCompositeEntityOperationSpec, + callback) as Promise; + } + + /** + * Deletes a composite entity from a version of the application. + * @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; + /** + * @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; + /** + * @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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + cEntityId, + options + }, + deleteCompositeEntityOperationSpec, + callback) as Promise; + } + + /** + * Gets information about a list entity in a version of the application. + * @param appId The application ID. + * @param versionId The version 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; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param clEntityId The list model ID. + * @param callback The callback + */ + getClosedList(appId: string, versionId: string, clEntityId: string, callback: msRest.ServiceCallback): void; + /** + * @param appId The application ID. + * @param versionId The version 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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + clEntityId, + options + }, + getClosedListOperationSpec, + callback) as Promise; + } + + /** + * Updates the list entity in a version of the application. + * @param appId The application ID. + * @param versionId The version ID. + * @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; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @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; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + clEntityId, + closedListModelUpdateObject, + options + }, + updateClosedListOperationSpec, + callback) as Promise; + } + + /** + * Adds a batch of sublists to an existing list entity in a version of the application. + * @param appId The application ID. + * @param versionId The version 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; + /** + * @param appId The application ID. + * @param versionId The version 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; + /** + * @param appId The application ID. + * @param versionId The version 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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + clEntityId, + closedListModelPatchObject, + options + }, + patchClosedListOperationSpec, + callback) as Promise; + } + + /** + * Deletes a list entity model from a version of the application. + * @param appId The application ID. + * @param versionId The version 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; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param clEntityId The list entity model ID. + * @param callback The callback + */ + deleteClosedList(appId: string, versionId: string, clEntityId: string, callback: msRest.ServiceCallback): void; + /** + * @param appId The application ID. + * @param versionId The version 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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + clEntityId, + options + }, + deleteClosedListOperationSpec, + callback) as Promise; + } + + /** + * Gets information about a prebuilt entity model in a version of the application. + * @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; + /** + * @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; + /** + * @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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + prebuiltId, + options + }, + getPrebuiltOperationSpec, + callback) as Promise; + } + + /** + * Deletes a prebuilt entity extractor from a version of the application. + * @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; + /** + * @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; + /** + * @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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + prebuiltId, + options + }, + deletePrebuiltOperationSpec, + callback) as Promise; + } + + /** + * Deletes a sublist of a specific list entity model from a version of the application. + * @param appId The application ID. + * @param versionId The version 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; + /** + * @param appId The application ID. + * @param versionId The version 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; + /** + * @param appId The application ID. + * @param versionId The version 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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + clEntityId, + subListId, + options + }, + deleteSubListOperationSpec, + callback) as Promise; + } + + /** + * Updates one of the list entity's sublists in a version of the application. + * @param appId The application ID. + * @param versionId The version 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; + /** + * @param appId The application ID. + * @param versionId The version 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; + /** + * @param appId The application ID. + * @param versionId The version 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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + clEntityId, + subListId, + wordListBaseUpdateObject, + options + }, + updateSubListOperationSpec, + callback) as Promise; + } + + /** + * Suggests example utterances that would improve the accuracy of the intent model in a version of + * the application. + * @param appId The application ID. + * @param versionId The version ID. + * @param intentId The intent classifier ID. + * @param [options] The optional parameters + * @returns Promise + */ + listIntentSuggestions(appId: string, versionId: string, intentId: string, options?: Models.ModelListIntentSuggestionsOptionalParams): Promise; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param intentId The intent classifier ID. + * @param callback The callback + */ + listIntentSuggestions(appId: string, versionId: string, intentId: string, callback: msRest.ServiceCallback): void; + /** + * @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 + */ + listIntentSuggestions(appId: string, versionId: string, intentId: string, options: Models.ModelListIntentSuggestionsOptionalParams, callback: msRest.ServiceCallback): void; + listIntentSuggestions(appId: string, versionId: string, intentId: string, options?: Models.ModelListIntentSuggestionsOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + appId, + versionId, + intentId, + options + }, + listIntentSuggestionsOperationSpec, + callback) as Promise; + } + + /** + * Get suggested example utterances that would improve the accuracy of the entity model in a + * version of the application. + * @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 + */ + listEntitySuggestions(appId: string, versionId: string, entityId: string, options?: Models.ModelListEntitySuggestionsOptionalParams): Promise; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId The target entity extractor model to enhance. + * @param callback The callback + */ + listEntitySuggestions(appId: string, versionId: string, entityId: string, callback: msRest.ServiceCallback): void; + /** + * @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 + */ + listEntitySuggestions(appId: string, versionId: string, entityId: string, options: Models.ModelListEntitySuggestionsOptionalParams, callback: msRest.ServiceCallback): void; + listEntitySuggestions(appId: string, versionId: string, entityId: string, options?: Models.ModelListEntitySuggestionsOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + appId, + versionId, + entityId, + options + }, + listEntitySuggestionsOperationSpec, + callback) as Promise; + } + + /** + * Adds a sublist to an existing list entity in a version of the application. + * @param appId The application ID. + * @param versionId The version 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; + /** + * @param appId The application ID. + * @param versionId The version 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; + /** + * @param appId The application ID. + * @param versionId The version 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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + clEntityId, + wordListCreateObject, + options + }, + addSubListOperationSpec, + callback) as Promise; + } + + /** + * Adds a customizable prebuilt domain along with all of its intent and entity models in a version + * of the application. + * @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; + /** + * @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; + /** + * @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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + prebuiltDomainObject, + options + }, + addCustomPrebuiltDomainOperationSpec, + callback) as Promise; + } + + /** + * Adds a customizable prebuilt intent model to a version of the application. + * @param appId The application ID. + * @param versionId The version ID. + * @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; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @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; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + prebuiltDomainModelCreateObject, + options + }, + addCustomPrebuiltIntentOperationSpec, + callback) as Promise; + } + + /** + * Gets information about customizable prebuilt intents added to a version of the application. + * @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; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param callback The callback + */ + listCustomPrebuiltIntents(appId: string, versionId: string, callback: msRest.ServiceCallback): void; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param options The optional parameters + * @param callback The callback + */ + 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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + options + }, + listCustomPrebuiltIntentsOperationSpec, + callback) as Promise; + } + + /** + * Adds a prebuilt entity model to a version of the application. + * @param appId The application ID. + * @param versionId The version ID. + * @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; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @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; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + prebuiltDomainModelCreateObject, + options + }, + addCustomPrebuiltEntityOperationSpec, + callback) as Promise; + } + + /** + * Gets all prebuilt entities used in a version of the application. + * @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; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param callback The callback + */ + listCustomPrebuiltEntities(appId: string, versionId: string, callback: msRest.ServiceCallback): void; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param options The optional parameters + * @param callback The callback + */ + 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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + options + }, + listCustomPrebuiltEntitiesOperationSpec, + callback) as Promise; + } + + /** + * Gets all prebuilt intent and entity model information used in a version of this application. + * @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; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param callback The callback + */ + listCustomPrebuiltModels(appId: string, versionId: string, callback: msRest.ServiceCallback): void; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param options The optional parameters + * @param callback The callback + */ + 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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + options + }, + listCustomPrebuiltModelsOperationSpec, + callback) as Promise; + } + + /** + * Deletes a prebuilt domain's models in a version of the application. + * @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; + /** + * @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; + /** + * @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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + domainName, + options + }, + deleteCustomPrebuiltDomainOperationSpec, + callback) as Promise; + } + + /** + * Gets information about the child's model contained in an hierarchical entity child model in a + * version of the application. + * @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 [options] The optional parameters + * @returns Promise + */ + getHierarchicalEntityChild(appId: string, versionId: string, hEntityId: string, hChildId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @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; + /** + * @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 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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + hEntityId, + hChildId, + options + }, + getHierarchicalEntityChildOperationSpec, + callback) as Promise; + } + + /** + * Renames a single child in an existing hierarchical entity model in a version of the application. + * @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 hierarchicalChildModelUpdateObject Model object containing new name of the hierarchical + * entity child. + * @param [options] The optional parameters + * @returns Promise + */ + updateHierarchicalEntityChild(appId: string, versionId: string, hEntityId: string, hChildId: string, hierarchicalChildModelUpdateObject: Models.HierarchicalChildModelUpdateObject, options?: msRest.RequestOptionsBase): Promise; + /** + * @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 hierarchicalChildModelUpdateObject Model object containing new name of the hierarchical + * entity child. + * @param callback The callback + */ + updateHierarchicalEntityChild(appId: string, versionId: string, hEntityId: string, hChildId: string, hierarchicalChildModelUpdateObject: Models.HierarchicalChildModelUpdateObject, callback: msRest.ServiceCallback): void; + /** + * @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 hierarchicalChildModelUpdateObject Model object containing new name of the hierarchical + * entity child. + * @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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + hEntityId, + hChildId, + hierarchicalChildModelUpdateObject, + options + }, + updateHierarchicalEntityChildOperationSpec, + callback) as Promise; + } + + /** + * Deletes a hierarchical entity extractor child in a version of the application. + * @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 [options] The optional parameters + * @returns Promise + */ + deleteHierarchicalEntityChild(appId: string, versionId: string, hEntityId: string, hChildId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @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; + /** + * @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 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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + hEntityId, + hChildId, + options + }, + deleteHierarchicalEntityChildOperationSpec, + callback) as Promise; + } + + /** + * Creates a single child in an existing hierarchical entity model in a version of the application. + * @param appId The application ID. + * @param versionId The version ID. + * @param hEntityId The hierarchical entity extractor ID. + * @param hierarchicalChildModelCreateObject A model object containing the name of the new + * hierarchical child model. + * @param [options] The optional parameters + * @returns Promise + */ + addHierarchicalEntityChild(appId: string, versionId: string, hEntityId: string, hierarchicalChildModelCreateObject: Models.HierarchicalChildModelCreateObject, options?: msRest.RequestOptionsBase): Promise; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param hEntityId The hierarchical entity extractor ID. + * @param hierarchicalChildModelCreateObject A model object containing the name of the new + * hierarchical child model. + * @param callback The callback + */ + addHierarchicalEntityChild(appId: string, versionId: string, hEntityId: string, hierarchicalChildModelCreateObject: Models.HierarchicalChildModelCreateObject, callback: msRest.ServiceCallback): void; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param hEntityId The hierarchical entity extractor ID. + * @param hierarchicalChildModelCreateObject A model object containing the name of the new + * hierarchical child 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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + hEntityId, + hierarchicalChildModelCreateObject, + options + }, + addHierarchicalEntityChildOperationSpec, + callback) as Promise; + } + + /** + * Creates a single child in an existing composite entity model in a version of the application. + * @param appId The application ID. + * @param versionId The version ID. + * @param cEntityId The composite entity extractor ID. + * @param compositeChildModelCreateObject A model object containing the name of the new composite + * child model. + * @param [options] The optional parameters + * @returns Promise + */ + addCompositeEntityChild(appId: string, versionId: string, cEntityId: string, compositeChildModelCreateObject: Models.CompositeChildModelCreateObject, options?: msRest.RequestOptionsBase): Promise; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param cEntityId The composite entity extractor ID. + * @param compositeChildModelCreateObject A model object containing the name of the new composite + * child model. + * @param callback The callback + */ + addCompositeEntityChild(appId: string, versionId: string, cEntityId: string, compositeChildModelCreateObject: Models.CompositeChildModelCreateObject, callback: msRest.ServiceCallback): void; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param cEntityId The composite entity extractor ID. + * @param compositeChildModelCreateObject A model object containing the name of the new composite + * child 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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + cEntityId, + compositeChildModelCreateObject, + options + }, + addCompositeEntityChildOperationSpec, + callback) as Promise; + } + + /** + * Deletes a composite entity extractor child from a version of the application. + * @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 [options] The optional parameters + * @returns Promise + */ + deleteCompositeEntityChild(appId: string, versionId: string, cEntityId: string, cChildId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @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; + /** + * @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 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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + cEntityId, + cChildId, + options + }, + deleteCompositeEntityChildOperationSpec, + callback) as Promise; + } + + /** + * @summary Gets information about the regular expression entity models in a version of the + * application. + * @param appId The application ID. + * @param versionId The version ID. + * @param [options] The optional parameters + * @returns Promise + */ + listRegexEntityInfos(appId: string, versionId: string, options?: Models.ModelListRegexEntityInfosOptionalParams): Promise; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param callback The callback + */ + listRegexEntityInfos(appId: string, versionId: string, callback: msRest.ServiceCallback): void; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param options The optional parameters + * @param callback The callback + */ + listRegexEntityInfos(appId: string, versionId: string, options: Models.ModelListRegexEntityInfosOptionalParams, callback: msRest.ServiceCallback): void; + listRegexEntityInfos(appId: string, versionId: string, options?: Models.ModelListRegexEntityInfosOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + appId, + versionId, + options + }, + listRegexEntityInfosOperationSpec, + callback) as Promise; + } + + /** + * @summary Adds a regular expression entity model to a version of the application. + * @param appId The application ID. + * @param versionId The version ID. + * @param regexEntityExtractorCreateObj A model object containing the name and regex pattern for + * 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; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param regexEntityExtractorCreateObj A model object containing the name and regex pattern for + * the new regular expression entity extractor. + * @param callback The callback + */ + createRegexEntityModel(appId: string, versionId: string, regexEntityExtractorCreateObj: Models.RegexModelCreateObject, callback: msRest.ServiceCallback): void; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param regexEntityExtractorCreateObj A model object containing the name and regex pattern for + * 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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + regexEntityExtractorCreateObj, + options + }, + createRegexEntityModelOperationSpec, + callback) as Promise; + } + + /** + * @summary Get information about the Pattern.Any entity models in a version of the application. + * @param appId The application ID. + * @param versionId The version ID. + * @param [options] The optional parameters + * @returns Promise + */ + listPatternAnyEntityInfos(appId: string, versionId: string, options?: Models.ModelListPatternAnyEntityInfosOptionalParams): Promise; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param callback The callback + */ + listPatternAnyEntityInfos(appId: string, versionId: string, callback: msRest.ServiceCallback): void; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param options The optional parameters + * @param callback The callback + */ + listPatternAnyEntityInfos(appId: string, versionId: string, options: Models.ModelListPatternAnyEntityInfosOptionalParams, callback: msRest.ServiceCallback): void; + listPatternAnyEntityInfos(appId: string, versionId: string, options?: Models.ModelListPatternAnyEntityInfosOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + appId, + versionId, + options + }, + listPatternAnyEntityInfosOperationSpec, + callback) as Promise; + } + + /** + * @summary Adds a pattern.any entity extractor to a version of the application. + * @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 [options] The optional parameters + * @returns Promise + */ + createPatternAnyEntityModel(appId: string, versionId: string, extractorCreateObject: Models.PatternAnyModelCreateObject, options?: msRest.RequestOptionsBase): Promise; + /** + * @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; + /** + * @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 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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + extractorCreateObject, + options + }, + createPatternAnyEntityModelOperationSpec, + callback) as Promise; + } + + /** + * @summary Get all roles for an entity in a version of the application + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId entity Id + * @param [options] The optional parameters + * @returns Promise + */ + listEntityRoles(appId: string, versionId: string, entityId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId entity Id + * @param callback The callback + */ + listEntityRoles(appId: string, versionId: string, entityId: string, callback: msRest.ServiceCallback): void; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId entity Id + * @param options The optional parameters + * @param callback The callback + */ + listEntityRoles(appId: string, versionId: string, entityId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listEntityRoles(appId: string, versionId: string, entityId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + appId, + versionId, + entityId, + options + }, + listEntityRolesOperationSpec, + callback) as Promise; + } + + /** + * @summary Create an entity role in a version of the application. + * @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 [options] The optional parameters + * @returns Promise + */ + createEntityRole(appId: string, versionId: string, entityId: string, entityRoleCreateObject: Models.EntityRoleCreateObject, options?: msRest.RequestOptionsBase): Promise; + /** + * @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; + /** + * @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 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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + entityId, + entityRoleCreateObject, + options + }, + createEntityRoleOperationSpec, + callback) as Promise; + } + + /** + * @summary Get a prebuilt entity's roles in a version of the application. + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId entity Id + * @param [options] The optional parameters + * @returns Promise + */ + listPrebuiltEntityRoles(appId: string, versionId: string, entityId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId entity Id + * @param callback The callback + */ + listPrebuiltEntityRoles(appId: string, versionId: string, entityId: string, callback: msRest.ServiceCallback): void; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId entity Id + * @param options The optional parameters + * @param callback The callback + */ + listPrebuiltEntityRoles(appId: string, versionId: string, entityId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listPrebuiltEntityRoles(appId: string, versionId: string, entityId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + appId, + versionId, + entityId, + options + }, + listPrebuiltEntityRolesOperationSpec, + callback) as Promise; + } + + /** + * @summary Create a role for a prebuilt entity in a version of the application. + * @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 [options] The optional parameters + * @returns Promise + */ + createPrebuiltEntityRole(appId: string, versionId: string, entityId: string, entityRoleCreateObject: Models.EntityRoleCreateObject, options?: msRest.RequestOptionsBase): Promise; + /** + * @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; + /** + * @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 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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + entityId, + entityRoleCreateObject, + options + }, + createPrebuiltEntityRoleOperationSpec, + callback) as Promise; + } + + /** + * @summary Get all roles for a list entity in a version of the application. + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId entity Id + * @param [options] The optional parameters + * @returns Promise + */ + listClosedListEntityRoles(appId: string, versionId: string, entityId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId entity Id + * @param callback The callback + */ + listClosedListEntityRoles(appId: string, versionId: string, entityId: string, callback: msRest.ServiceCallback): void; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId entity Id + * @param options The optional parameters + * @param callback The callback + */ + listClosedListEntityRoles(appId: string, versionId: string, entityId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listClosedListEntityRoles(appId: string, versionId: string, entityId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + appId, + versionId, + entityId, + options + }, + listClosedListEntityRolesOperationSpec, + callback) as Promise; + } + + /** + * @summary Create a role for a list entity in a version of the application. + * @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 [options] The optional parameters + * @returns Promise + */ + createClosedListEntityRole(appId: string, versionId: string, entityId: string, entityRoleCreateObject: Models.EntityRoleCreateObject, options?: msRest.RequestOptionsBase): Promise; + /** + * @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; + /** + * @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 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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + entityId, + entityRoleCreateObject, + options + }, + createClosedListEntityRoleOperationSpec, + callback) as Promise; + } + + /** + * @summary Get all roles for a regular expression entity in a version of the application. + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId entity Id + * @param [options] The optional parameters + * @returns Promise + */ + listRegexEntityRoles(appId: string, versionId: string, entityId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId entity Id + * @param callback The callback + */ + listRegexEntityRoles(appId: string, versionId: string, entityId: string, callback: msRest.ServiceCallback): void; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId entity Id + * @param options The optional parameters + * @param callback The callback + */ + listRegexEntityRoles(appId: string, versionId: string, entityId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listRegexEntityRoles(appId: string, versionId: string, entityId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + appId, + versionId, + entityId, + options + }, + listRegexEntityRolesOperationSpec, + callback) as Promise; + } + + /** + * @summary Create a role for an regular expression entity in a version of the application. + * @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 [options] The optional parameters + * @returns Promise + */ + createRegexEntityRole(appId: string, versionId: string, entityId: string, entityRoleCreateObject: Models.EntityRoleCreateObject, options?: msRest.RequestOptionsBase): Promise; + /** + * @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; + /** + * @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 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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + entityId, + entityRoleCreateObject, + options + }, + createRegexEntityRoleOperationSpec, + callback) as Promise; + } + + /** + * @summary Get all roles for a composite entity in a version of the application + * @param appId The application ID. + * @param versionId The version ID. + * @param cEntityId The composite entity extractor ID. + * @param [options] The optional parameters + * @returns Promise + */ + listCompositeEntityRoles(appId: string, versionId: string, cEntityId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param cEntityId The composite entity extractor ID. + * @param callback The callback + */ + listCompositeEntityRoles(appId: string, versionId: string, cEntityId: string, callback: msRest.ServiceCallback): void; + /** + * @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 + */ + listCompositeEntityRoles(appId: string, versionId: string, cEntityId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listCompositeEntityRoles(appId: string, versionId: string, cEntityId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + appId, + versionId, + cEntityId, + options + }, + listCompositeEntityRolesOperationSpec, + callback) as Promise; + } + + /** + * @summary Create a role for a composite entity in a version of the application. + * @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 [options] The optional parameters + * @returns Promise + */ + createCompositeEntityRole(appId: string, versionId: string, cEntityId: string, entityRoleCreateObject: Models.EntityRoleCreateObject, options?: msRest.RequestOptionsBase): Promise; + /** + * @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; + /** + * @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 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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + cEntityId, + entityRoleCreateObject, + options + }, + createCompositeEntityRoleOperationSpec, + callback) as Promise; + } + + /** + * @summary Get all roles for a Pattern.any entity in a version of the application + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId entity Id + * @param [options] The optional parameters + * @returns Promise + */ + listPatternAnyEntityRoles(appId: string, versionId: string, entityId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId entity Id + * @param callback The callback + */ + listPatternAnyEntityRoles(appId: string, versionId: string, entityId: string, callback: msRest.ServiceCallback): void; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId entity Id + * @param options The optional parameters + * @param callback The callback + */ + listPatternAnyEntityRoles(appId: string, versionId: string, entityId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listPatternAnyEntityRoles(appId: string, versionId: string, entityId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + appId, + versionId, + entityId, + options + }, + listPatternAnyEntityRolesOperationSpec, + callback) as Promise; + } + + /** + * @summary Create a role for an Pattern.any entity in a version of the application. + * @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 [options] The optional parameters + * @returns Promise + */ + createPatternAnyEntityRole(appId: string, versionId: string, entityId: string, entityRoleCreateObject: Models.EntityRoleCreateObject, options?: msRest.RequestOptionsBase): Promise; + /** + * @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; + /** + * @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 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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + entityId, + entityRoleCreateObject, + options + }, + createPatternAnyEntityRoleOperationSpec, + callback) as Promise; + } + + /** + * @summary Get all roles for a hierarchical entity in a version of the application + * @param appId The application ID. + * @param versionId The version ID. + * @param hEntityId The hierarchical entity extractor ID. + * @param [options] The optional parameters + * @returns Promise + */ + listHierarchicalEntityRoles(appId: string, versionId: string, hEntityId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param hEntityId The hierarchical entity extractor ID. + * @param callback The callback + */ + listHierarchicalEntityRoles(appId: string, versionId: string, hEntityId: string, callback: msRest.ServiceCallback): void; + /** + * @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 + */ + listHierarchicalEntityRoles(appId: string, versionId: string, hEntityId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listHierarchicalEntityRoles(appId: string, versionId: string, hEntityId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + appId, + versionId, + hEntityId, + options + }, + listHierarchicalEntityRolesOperationSpec, + callback) as Promise; + } + + /** + * @summary Create a role for an hierarchical entity in a version of the application. + * @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 [options] The optional parameters + * @returns Promise + */ + createHierarchicalEntityRole(appId: string, versionId: string, hEntityId: string, entityRoleCreateObject: Models.EntityRoleCreateObject, options?: msRest.RequestOptionsBase): Promise; + /** + * @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; + /** + * @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 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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + hEntityId, + entityRoleCreateObject, + options + }, + createHierarchicalEntityRoleOperationSpec, + callback) as Promise; + } + + /** + * @summary Get all roles for a prebuilt entity in a version of the application + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId entity Id + * @param [options] The optional parameters + * @returns Promise + */ + listCustomPrebuiltEntityRoles(appId: string, versionId: string, entityId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId entity Id + * @param callback The callback + */ + listCustomPrebuiltEntityRoles(appId: string, versionId: string, entityId: string, callback: msRest.ServiceCallback): void; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId entity Id + * @param options The optional parameters + * @param callback The callback + */ + listCustomPrebuiltEntityRoles(appId: string, versionId: string, entityId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listCustomPrebuiltEntityRoles(appId: string, versionId: string, entityId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + appId, + versionId, + entityId, + options + }, + listCustomPrebuiltEntityRolesOperationSpec, + callback) as Promise; + } + + /** + * @summary Create a role for a prebuilt entity in a version of the application. + * @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 [options] The optional parameters + * @returns Promise + */ + createCustomPrebuiltEntityRole(appId: string, versionId: string, entityId: string, entityRoleCreateObject: Models.EntityRoleCreateObject, options?: msRest.RequestOptionsBase): Promise; + /** + * @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; + /** + * @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 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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + entityId, + entityRoleCreateObject, + options + }, + createCustomPrebuiltEntityRoleOperationSpec, + callback) as Promise; + } + + /** + * @summary Get the explicit (exception) list of the pattern.any entity in a version of the + * application. + * @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; + /** + * @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; + /** + * @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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + entityId, + options + }, + getExplicitListOperationSpec, + callback) as Promise; + } + + /** + * @summary Add a new exception to the explicit list for the Pattern.Any entity in a version of the + * application. + * @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 [options] The optional parameters + * @returns Promise + */ + addExplicitListItem(appId: string, versionId: string, entityId: string, item: Models.ExplicitListItemCreateObject, options?: msRest.RequestOptionsBase): Promise; + /** + * @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; + /** + * @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 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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + entityId, + item, + options + }, + addExplicitListItemOperationSpec, + callback) as Promise; + } + + /** + * @summary Gets information about a regular expression entity in a version of the application. + * @param appId The application ID. + * @param versionId The version 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; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param regexEntityId The regular expression entity model ID. + * @param callback The callback + */ + getRegexEntityEntityInfo(appId: string, versionId: string, regexEntityId: string, callback: msRest.ServiceCallback): void; + /** + * @param appId The application ID. + * @param versionId The version 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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + regexEntityId, + options + }, + getRegexEntityEntityInfoOperationSpec, + callback) as Promise; + } + + /** + * @summary Updates the regular expression entity in a version of the application. + * @param appId The application ID. + * @param versionId The version 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; + /** + * @param appId The application ID. + * @param versionId The version 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; + /** + * @param appId The application ID. + * @param versionId The version 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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + regexEntityId, + regexEntityUpdateObject, + options + }, + updateRegexEntityModelOperationSpec, + callback) as Promise; + } + + /** + * @summary Deletes a regular expression entity from a version of the application. + * @param appId The application ID. + * @param versionId The version 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; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param regexEntityId The regular expression entity extractor ID. + * @param callback The callback + */ + deleteRegexEntityModel(appId: string, versionId: string, regexEntityId: string, callback: msRest.ServiceCallback): void; + /** + * @param appId The application ID. + * @param versionId The version 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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + regexEntityId, + options + }, + deleteRegexEntityModelOperationSpec, + callback) as Promise; + } + + /** + * @summary Gets information about the Pattern.Any model in a version of the application. + * @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; + /** + * @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; + /** + * @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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + entityId, + options + }, + getPatternAnyEntityInfoOperationSpec, + callback) as Promise; + } + + /** + * @summary Updates the name and explicit (exception) list of a Pattern.Any entity model in a + * version of the application. + * @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 [options] The optional parameters + * @returns Promise + */ + updatePatternAnyEntityModel(appId: string, versionId: string, entityId: string, patternAnyUpdateObject: Models.PatternAnyModelUpdateObject, options?: msRest.RequestOptionsBase): Promise; + /** + * @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; + /** + * @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 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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + entityId, + patternAnyUpdateObject, + options + }, + updatePatternAnyEntityModelOperationSpec, + callback) as Promise; + } + + /** + * @summary Deletes a Pattern.Any entity extractor from a version of the application. + * @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; + /** + * @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; + /** + * @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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + entityId, + options + }, + deletePatternAnyEntityModelOperationSpec, + callback) as Promise; + } + + /** + * @summary Get one role for a given entity in a version of the application + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId entity ID. + * @param roleId entity role ID. + * @param [options] The optional parameters + * @returns Promise + */ + getEntityRole(appId: string, versionId: string, entityId: string, roleId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @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; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId entity ID. + * @param roleId entity role ID. + * @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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + entityId, + roleId, + options + }, + getEntityRoleOperationSpec, + callback) as Promise; + } + + /** + * @summary Update a role for a given entity in a version of the application. + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId The entity ID. + * @param roleId The entity role ID. + * @param entityRoleUpdateObject The new entity role. + * @param [options] The optional parameters + * @returns Promise + */ + updateEntityRole(appId: string, versionId: string, entityId: string, roleId: string, entityRoleUpdateObject: Models.EntityRoleUpdateObject, options?: msRest.RequestOptionsBase): Promise; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId The entity ID. + * @param roleId The entity role ID. + * @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; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId The entity ID. + * @param roleId The entity role ID. + * @param entityRoleUpdateObject The new entity role. + * @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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + entityId, + roleId, + entityRoleUpdateObject, + options + }, + updateEntityRoleOperationSpec, + callback) as Promise; + } + + /** + * @summary Delete an entity role in a version of the application. + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId The entity ID. + * @param roleId The entity role Id. + * @param [options] The optional parameters + * @returns Promise + */ + deleteEntityRole(appId: string, versionId: string, entityId: string, roleId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @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; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId The entity ID. + * @param roleId The entity role Id. + * @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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + entityId, + roleId, + options + }, + deleteEntityRoleOperationSpec, + callback) as Promise; + } + + /** + * @summary Get one role for a given prebuilt entity in a version of the application + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId entity ID. + * @param roleId entity role ID. + * @param [options] The optional parameters + * @returns Promise + */ + getPrebuiltEntityRole(appId: string, versionId: string, entityId: string, roleId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @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; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId entity ID. + * @param roleId entity role ID. + * @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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + entityId, + roleId, + options + }, + getPrebuiltEntityRoleOperationSpec, + callback) as Promise; + } + + /** + * @summary Update a role for a given prebuilt entity in a version of the application + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId The entity ID. + * @param roleId The entity role ID. + * @param entityRoleUpdateObject The new entity role. + * @param [options] The optional parameters + * @returns Promise + */ + updatePrebuiltEntityRole(appId: string, versionId: string, entityId: string, roleId: string, entityRoleUpdateObject: Models.EntityRoleUpdateObject, options?: msRest.RequestOptionsBase): Promise; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId The entity ID. + * @param roleId The entity role ID. + * @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; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId The entity ID. + * @param roleId The entity role ID. + * @param entityRoleUpdateObject The new entity role. + * @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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + entityId, + roleId, + entityRoleUpdateObject, + options + }, + updatePrebuiltEntityRoleOperationSpec, + callback) as Promise; + } + + /** + * @summary Delete a role in a prebuilt entity in a version of the application. + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId The entity ID. + * @param roleId The entity role Id. + * @param [options] The optional parameters + * @returns Promise + */ + deletePrebuiltEntityRole(appId: string, versionId: string, entityId: string, roleId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @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; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId The entity ID. + * @param roleId The entity role Id. + * @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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + entityId, + roleId, + options + }, + deletePrebuiltEntityRoleOperationSpec, + callback) as Promise; + } + + /** + * @summary Get one role for a given list entity in a version of the application. + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId entity ID. + * @param roleId entity role ID. + * @param [options] The optional parameters + * @returns Promise + */ + getClosedListEntityRole(appId: string, versionId: string, entityId: string, roleId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @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; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId entity ID. + * @param roleId entity role ID. + * @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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + entityId, + roleId, + options + }, + getClosedListEntityRoleOperationSpec, + callback) as Promise; + } + + /** + * @summary Update a role for a given list entity in a version of the application. + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId The entity ID. + * @param roleId The entity role ID. + * @param entityRoleUpdateObject The new entity role. + * @param [options] The optional parameters + * @returns Promise + */ + updateClosedListEntityRole(appId: string, versionId: string, entityId: string, roleId: string, entityRoleUpdateObject: Models.EntityRoleUpdateObject, options?: msRest.RequestOptionsBase): Promise; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId The entity ID. + * @param roleId The entity role ID. + * @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; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId The entity ID. + * @param roleId The entity role ID. + * @param entityRoleUpdateObject The new entity role. + * @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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + entityId, + roleId, + entityRoleUpdateObject, + options + }, + updateClosedListEntityRoleOperationSpec, + callback) as Promise; + } + + /** + * @summary Delete a role for a given list entity in a version of the application. + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId The entity ID. + * @param roleId The entity role Id. + * @param [options] The optional parameters + * @returns Promise + */ + deleteClosedListEntityRole(appId: string, versionId: string, entityId: string, roleId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @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; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId The entity ID. + * @param roleId The entity role Id. + * @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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + entityId, + roleId, + options + }, + deleteClosedListEntityRoleOperationSpec, + callback) as Promise; + } + + /** + * @summary Get one role for a given regular expression entity in a version of the application. + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId entity ID. + * @param roleId entity role ID. + * @param [options] The optional parameters + * @returns Promise + */ + getRegexEntityRole(appId: string, versionId: string, entityId: string, roleId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @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; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId entity ID. + * @param roleId entity role ID. + * @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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + entityId, + roleId, + options + }, + getRegexEntityRoleOperationSpec, + callback) as Promise; + } + + /** + * @summary Update a role for a given regular expression entity in a version of the application + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId The entity ID. + * @param roleId The entity role ID. + * @param entityRoleUpdateObject The new entity role. + * @param [options] The optional parameters + * @returns Promise + */ + updateRegexEntityRole(appId: string, versionId: string, entityId: string, roleId: string, entityRoleUpdateObject: Models.EntityRoleUpdateObject, options?: msRest.RequestOptionsBase): Promise; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId The entity ID. + * @param roleId The entity role ID. + * @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; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId The entity ID. + * @param roleId The entity role ID. + * @param entityRoleUpdateObject The new entity role. + * @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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + entityId, + roleId, + entityRoleUpdateObject, + options + }, + updateRegexEntityRoleOperationSpec, + callback) as Promise; + } + + /** + * @summary Delete a role for a given regular expression in a version of the application. + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId The entity ID. + * @param roleId The entity role Id. + * @param [options] The optional parameters + * @returns Promise + */ + deleteRegexEntityRole(appId: string, versionId: string, entityId: string, roleId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @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; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId The entity ID. + * @param roleId The entity role Id. + * @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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + entityId, + roleId, + options + }, + deleteRegexEntityRoleOperationSpec, + callback) as Promise; + } + + /** + * @summary Get one role for a given composite entity in a version of the application + * @param appId The application ID. + * @param versionId The version ID. + * @param cEntityId The composite entity extractor ID. + * @param roleId entity role ID. + * @param [options] The optional parameters + * @returns Promise + */ + getCompositeEntityRole(appId: string, versionId: string, cEntityId: string, roleId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @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; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param cEntityId The composite entity extractor ID. + * @param roleId entity role ID. + * @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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + cEntityId, + roleId, + options + }, + getCompositeEntityRoleOperationSpec, + callback) as Promise; + } + + /** + * @summary Update a role for a given composite entity in a version of the application + * @param appId The application ID. + * @param versionId The version ID. + * @param cEntityId The composite entity extractor ID. + * @param roleId The entity role ID. + * @param entityRoleUpdateObject The new entity role. + * @param [options] The optional parameters + * @returns Promise + */ + updateCompositeEntityRole(appId: string, versionId: string, cEntityId: string, roleId: string, entityRoleUpdateObject: Models.EntityRoleUpdateObject, options?: msRest.RequestOptionsBase): Promise; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param cEntityId The composite entity extractor ID. + * @param roleId The entity role ID. + * @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; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param cEntityId The composite entity extractor ID. + * @param roleId The entity role ID. + * @param entityRoleUpdateObject The new entity role. + * @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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + cEntityId, + roleId, + entityRoleUpdateObject, + options + }, + updateCompositeEntityRoleOperationSpec, + callback) as Promise; + } + + /** + * @summary Delete a role for a given composite entity in a version of the application. + * @param appId The application ID. + * @param versionId The version ID. + * @param cEntityId The composite entity extractor ID. + * @param roleId The entity role Id. + * @param [options] The optional parameters + * @returns Promise + */ + deleteCompositeEntityRole(appId: string, versionId: string, cEntityId: string, roleId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @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; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param cEntityId The composite entity extractor ID. + * @param roleId The entity role Id. + * @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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + cEntityId, + roleId, + options + }, + deleteCompositeEntityRoleOperationSpec, + callback) as Promise; + } + + /** + * @summary Get one role for a given Pattern.any entity in a version of the application. + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId entity ID. + * @param roleId entity role ID. + * @param [options] The optional parameters + * @returns Promise + */ + getPatternAnyEntityRole(appId: string, versionId: string, entityId: string, roleId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @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; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId entity ID. + * @param roleId entity role ID. + * @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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + entityId, + roleId, + options + }, + getPatternAnyEntityRoleOperationSpec, + callback) as Promise; + } + + /** + * @summary Update a role for a given Pattern.any entity in a version of the application. + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId The entity ID. + * @param roleId The entity role ID. + * @param entityRoleUpdateObject The new entity role. + * @param [options] The optional parameters + * @returns Promise + */ + updatePatternAnyEntityRole(appId: string, versionId: string, entityId: string, roleId: string, entityRoleUpdateObject: Models.EntityRoleUpdateObject, options?: msRest.RequestOptionsBase): Promise; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId The entity ID. + * @param roleId The entity role ID. + * @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; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId The entity ID. + * @param roleId The entity role ID. + * @param entityRoleUpdateObject The new entity role. + * @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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + entityId, + roleId, + entityRoleUpdateObject, + options + }, + updatePatternAnyEntityRoleOperationSpec, + callback) as Promise; + } + + /** + * @summary Delete a role for a given Pattern.any entity in a version of the application. + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId The entity ID. + * @param roleId The entity role Id. + * @param [options] The optional parameters + * @returns Promise + */ + deletePatternAnyEntityRole(appId: string, versionId: string, entityId: string, roleId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @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; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId The entity ID. + * @param roleId The entity role Id. + * @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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + entityId, + roleId, + options + }, + deletePatternAnyEntityRoleOperationSpec, + callback) as Promise; + } + + /** + * @summary Get one role for a given hierarchical entity in a version of the application. + * @param appId The application ID. + * @param versionId The version ID. + * @param hEntityId The hierarchical entity extractor ID. + * @param roleId entity role ID. + * @param [options] The optional parameters + * @returns Promise + */ + getHierarchicalEntityRole(appId: string, versionId: string, hEntityId: string, roleId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @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; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param hEntityId The hierarchical entity extractor ID. + * @param roleId entity role ID. + * @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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + hEntityId, + roleId, + options + }, + getHierarchicalEntityRoleOperationSpec, + callback) as Promise; + } + + /** + * @summary Update a role for a given hierarchical entity in a version of the application. + * @param appId The application ID. + * @param versionId The version ID. + * @param hEntityId The hierarchical entity extractor ID. + * @param roleId The entity role ID. + * @param entityRoleUpdateObject The new entity role. + * @param [options] The optional parameters + * @returns Promise + */ + updateHierarchicalEntityRole(appId: string, versionId: string, hEntityId: string, roleId: string, entityRoleUpdateObject: Models.EntityRoleUpdateObject, options?: msRest.RequestOptionsBase): Promise; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param hEntityId The hierarchical entity extractor ID. + * @param roleId The entity role ID. + * @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; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param hEntityId The hierarchical entity extractor ID. + * @param roleId The entity role ID. + * @param entityRoleUpdateObject The new entity role. + * @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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + hEntityId, + roleId, + entityRoleUpdateObject, + options + }, + updateHierarchicalEntityRoleOperationSpec, + callback) as Promise; + } + + /** + * @summary Delete a role for a given hierarchical role in a version of the application. + * @param appId The application ID. + * @param versionId The version ID. + * @param hEntityId The hierarchical entity extractor ID. + * @param roleId The entity role Id. + * @param [options] The optional parameters + * @returns Promise + */ + deleteHierarchicalEntityRole(appId: string, versionId: string, hEntityId: string, roleId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @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; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param hEntityId The hierarchical entity extractor ID. + * @param roleId The entity role Id. + * @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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + hEntityId, + roleId, + options + }, + deleteHierarchicalEntityRoleOperationSpec, + callback) as Promise; + } + + /** + * @summary Get one role for a given prebuilt entity in a version of the application. + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId entity ID. + * @param roleId entity role ID. + * @param [options] The optional parameters + * @returns Promise + */ + getCustomEntityRole(appId: string, versionId: string, entityId: string, roleId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @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; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId entity ID. + * @param roleId entity role ID. + * @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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + entityId, + roleId, + options + }, + getCustomEntityRoleOperationSpec, + callback) as Promise; + } + + /** + * @summary Update a role for a given prebuilt entity in a version of the application. + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId The entity ID. + * @param roleId The entity role ID. + * @param entityRoleUpdateObject The new entity role. + * @param [options] The optional parameters + * @returns Promise + */ + updateCustomPrebuiltEntityRole(appId: string, versionId: string, entityId: string, roleId: string, entityRoleUpdateObject: Models.EntityRoleUpdateObject, options?: msRest.RequestOptionsBase): Promise; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId The entity ID. + * @param roleId The entity role ID. + * @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; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId The entity ID. + * @param roleId The entity role ID. + * @param entityRoleUpdateObject The new entity role. + * @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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + entityId, + roleId, + entityRoleUpdateObject, + options + }, + updateCustomPrebuiltEntityRoleOperationSpec, + callback) as Promise; + } + + /** + * @summary Delete a role for a given prebuilt entity in a version of the application. + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId The entity ID. + * @param roleId The entity role Id. + * @param [options] The optional parameters + * @returns Promise + */ + deleteCustomEntityRole(appId: string, versionId: string, entityId: string, roleId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @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; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId The entity ID. + * @param roleId The entity role Id. + * @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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + entityId, + roleId, + options + }, + deleteCustomEntityRoleOperationSpec, + callback) as Promise; + } + + /** + * @summary Get the explicit (exception) list of the pattern.any entity in a version of the + * application. + * @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 [options] The optional parameters + * @returns Promise + */ + getExplicitListItem(appId: string, versionId: string, entityId: string, itemId: number, options?: msRest.RequestOptionsBase): Promise; + /** + * @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; + /** + * @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 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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + entityId, + itemId, + options + }, + getExplicitListItemOperationSpec, + callback) as Promise; + } + + /** + * @summary Updates an explicit (exception) list item for a Pattern.Any entity in a version of the + * application. + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId The Pattern.Any entity extractor ID. + * @param itemId The explicit list item ID. + * @param item The new explicit list item. + * @param [options] The optional parameters + * @returns Promise + */ + updateExplicitListItem(appId: string, versionId: string, entityId: string, itemId: number, item: Models.ExplicitListItemUpdateObject, options?: msRest.RequestOptionsBase): Promise; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId The Pattern.Any entity extractor ID. + * @param itemId The explicit list item ID. + * @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; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId The Pattern.Any entity extractor ID. + * @param itemId The explicit list item ID. + * @param item The new explicit list item. + * @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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + entityId, + itemId, + item, + options + }, + updateExplicitListItemOperationSpec, + callback) as Promise; + } + + /** + * @summary Delete an item from the explicit (exception) list for a Pattern.any entity in a version + * of the application. + * @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 [options] The optional parameters + * @returns Promise + */ + deleteExplicitListItem(appId: string, versionId: string, entityId: string, itemId: number, options?: msRest.RequestOptionsBase): Promise; + /** + * @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; + /** + * @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 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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + entityId, + itemId, + options + }, + deleteExplicitListItemOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const addIntentOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "apps/{appId}/versions/{versionId}/intents", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0 + ], + requestBody: { + parameterPath: "intentCreateObject", + mapper: { + ...Mappers.ModelCreateObject, + required: true + } + }, + responses: { + 201: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Uuid" + } + } + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listIntentsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "apps/{appId}/versions/{versionId}/intents", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0 + ], + queryParameters: [ + Parameters.skip, + Parameters.take + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IntentClassifier" + } + } + } + } + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const addEntityOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "apps/{appId}/versions/{versionId}/entities", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0 + ], + requestBody: { + parameterPath: "modelCreateObject", + mapper: { + ...Mappers.ModelCreateObject, + required: true + } + }, + responses: { + 201: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Uuid" + } + } + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listEntitiesOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "apps/{appId}/versions/{versionId}/entities", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0 + ], + queryParameters: [ + Parameters.skip, + Parameters.take + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EntityExtractor" + } + } + } + } + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const addHierarchicalEntityOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "apps/{appId}/versions/{versionId}/hierarchicalentities", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0 + ], + requestBody: { + parameterPath: "hierarchicalModelCreateObject", + mapper: { + ...Mappers.HierarchicalEntityModel, + required: true + } + }, + responses: { + 201: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Uuid" + } + } + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listHierarchicalEntitiesOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "apps/{appId}/versions/{versionId}/hierarchicalentities", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0 + ], + queryParameters: [ + Parameters.skip, + Parameters.take + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "HierarchicalEntityExtractor" + } + } + } + } + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const addCompositeEntityOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "apps/{appId}/versions/{versionId}/compositeentities", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0 + ], + requestBody: { + parameterPath: "compositeModelCreateObject", + mapper: { + ...Mappers.CompositeEntityModel, + required: true + } + }, + responses: { + 201: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Uuid" + } + } + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listCompositeEntitiesOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "apps/{appId}/versions/{versionId}/compositeentities", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0 + ], + queryParameters: [ + Parameters.skip, + Parameters.take + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CompositeEntityExtractor" + } + } + } + } + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listClosedListsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "apps/{appId}/versions/{versionId}/closedlists", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0 + ], + queryParameters: [ + Parameters.skip, + Parameters.take + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ClosedListEntityExtractor" + } + } + } + } + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const addClosedListOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "apps/{appId}/versions/{versionId}/closedlists", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0 + ], + requestBody: { + parameterPath: "closedListModelCreateObject", + mapper: { + ...Mappers.ClosedListModelCreateObject, + required: true + } + }, + responses: { + 201: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Uuid" + } + } + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const addPrebuiltOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "apps/{appId}/versions/{versionId}/prebuilts", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0 + ], + requestBody: { + parameterPath: "prebuiltExtractorNames", + mapper: { + required: true, + serializedName: "prebuiltExtractorNames", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + }, + responses: { + 201: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrebuiltEntityExtractor" + } + } + } + } + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listPrebuiltsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "apps/{appId}/versions/{versionId}/prebuilts", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0 + ], + queryParameters: [ + Parameters.skip, + Parameters.take + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrebuiltEntityExtractor" + } + } + } + } + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listPrebuiltEntitiesOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "apps/{appId}/versions/{versionId}/listprebuilts", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0 + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AvailablePrebuiltEntityModel" + } + } + } + } + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listModelsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "apps/{appId}/versions/{versionId}/models", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0 + ], + queryParameters: [ + Parameters.skip, + Parameters.take + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ModelInfoResponse" + } + } + } + } + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const examplesMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "apps/{appId}/versions/{versionId}/models/{modelId}/examples", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.modelId + ], + queryParameters: [ + Parameters.skip, + Parameters.take + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "LabelTextObject" + } + } + } + } + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getIntentOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "apps/{appId}/versions/{versionId}/intents/{intentId}", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.intentId + ], + responses: { + 200: { + bodyMapper: Mappers.IntentClassifier + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const updateIntentOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "apps/{appId}/versions/{versionId}/intents/{intentId}", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.intentId + ], + requestBody: { + parameterPath: "modelUpdateObject", + mapper: { + ...Mappers.ModelUpdateObject, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.OperationStatus + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const deleteIntentOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "apps/{appId}/versions/{versionId}/intents/{intentId}", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.intentId + ], + queryParameters: [ + Parameters.deleteUtterances + ], + responses: { + 200: { + bodyMapper: Mappers.OperationStatus + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getEntityOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "apps/{appId}/versions/{versionId}/entities/{entityId}", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.entityId + ], + responses: { + 200: { + bodyMapper: Mappers.EntityExtractor + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const updateEntityOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "apps/{appId}/versions/{versionId}/entities/{entityId}", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.entityId + ], + requestBody: { + parameterPath: "modelUpdateObject", + mapper: { + ...Mappers.ModelUpdateObject, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.OperationStatus + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const deleteEntityOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "apps/{appId}/versions/{versionId}/entities/{entityId}", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.entityId + ], + responses: { + 200: { + bodyMapper: Mappers.OperationStatus + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getHierarchicalEntityOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.hEntityId + ], + responses: { + 200: { + bodyMapper: Mappers.HierarchicalEntityExtractor + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const updateHierarchicalEntityOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.hEntityId + ], + requestBody: { + parameterPath: "hierarchicalModelUpdateObject", + mapper: { + ...Mappers.HierarchicalEntityModel, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.OperationStatus + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const deleteHierarchicalEntityOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.hEntityId + ], + responses: { + 200: { + bodyMapper: Mappers.OperationStatus + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getCompositeEntityOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "apps/{appId}/versions/{versionId}/compositeentities/{cEntityId}", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.cEntityId + ], + responses: { + 200: { + bodyMapper: Mappers.CompositeEntityExtractor + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const updateCompositeEntityOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "apps/{appId}/versions/{versionId}/compositeentities/{cEntityId}", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.cEntityId + ], + requestBody: { + parameterPath: "compositeModelUpdateObject", + mapper: { + ...Mappers.CompositeEntityModel, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.OperationStatus + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const deleteCompositeEntityOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "apps/{appId}/versions/{versionId}/compositeentities/{cEntityId}", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.cEntityId + ], + responses: { + 200: { + bodyMapper: Mappers.OperationStatus + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getClosedListOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "apps/{appId}/versions/{versionId}/closedlists/{clEntityId}", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.clEntityId + ], + responses: { + 200: { + bodyMapper: Mappers.ClosedListEntityExtractor + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const updateClosedListOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "apps/{appId}/versions/{versionId}/closedlists/{clEntityId}", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.clEntityId + ], + requestBody: { + parameterPath: "closedListModelUpdateObject", + mapper: { + ...Mappers.ClosedListModelUpdateObject, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.OperationStatus + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const patchClosedListOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "apps/{appId}/versions/{versionId}/closedlists/{clEntityId}", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.clEntityId + ], + requestBody: { + parameterPath: "closedListModelPatchObject", + mapper: { + ...Mappers.ClosedListModelPatchObject, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.OperationStatus + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const deleteClosedListOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "apps/{appId}/versions/{versionId}/closedlists/{clEntityId}", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.clEntityId + ], + responses: { + 200: { + bodyMapper: Mappers.OperationStatus + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getPrebuiltOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "apps/{appId}/versions/{versionId}/prebuilts/{prebuiltId}", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.prebuiltId + ], + responses: { + 200: { + bodyMapper: Mappers.PrebuiltEntityExtractor + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const deletePrebuiltOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "apps/{appId}/versions/{versionId}/prebuilts/{prebuiltId}", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.prebuiltId + ], + responses: { + 200: { + bodyMapper: Mappers.OperationStatus + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const deleteSubListOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "apps/{appId}/versions/{versionId}/closedlists/{clEntityId}/sublists/{subListId}", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.clEntityId, + Parameters.subListId + ], + responses: { + 200: { + bodyMapper: Mappers.OperationStatus + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const updateSubListOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "apps/{appId}/versions/{versionId}/closedlists/{clEntityId}/sublists/{subListId}", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.clEntityId, + Parameters.subListId + ], + requestBody: { + parameterPath: "wordListBaseUpdateObject", + mapper: { + ...Mappers.WordListBaseUpdateObject, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.OperationStatus + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listIntentSuggestionsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "apps/{appId}/versions/{versionId}/intents/{intentId}/suggest", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.intentId + ], + queryParameters: [ + Parameters.take + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IntentsSuggestionExample" + } + } + } + } + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listEntitySuggestionsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "apps/{appId}/versions/{versionId}/entities/{entityId}/suggest", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.entityId + ], + queryParameters: [ + Parameters.take + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EntitiesSuggestionExample" + } + } + } + } + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const addSubListOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "apps/{appId}/versions/{versionId}/closedlists/{clEntityId}/sublists", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.clEntityId + ], + requestBody: { + parameterPath: "wordListCreateObject", + mapper: { + ...Mappers.WordListObject, + required: true + } + }, + responses: { + 201: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Number" + } + } + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const addCustomPrebuiltDomainOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "apps/{appId}/versions/{versionId}/customprebuiltdomains", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0 + ], + requestBody: { + parameterPath: "prebuiltDomainObject", + mapper: { + ...Mappers.PrebuiltDomainCreateBaseObject, + required: true + } + }, + responses: { + 201: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Uuid" + } + } + } + } + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const addCustomPrebuiltIntentOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "apps/{appId}/versions/{versionId}/customprebuiltintents", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0 + ], + requestBody: { + parameterPath: "prebuiltDomainModelCreateObject", + mapper: { + ...Mappers.PrebuiltDomainModelCreateObject, + required: true + } + }, + responses: { + 201: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Uuid" + } + } + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listCustomPrebuiltIntentsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "apps/{appId}/versions/{versionId}/customprebuiltintents", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0 + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IntentClassifier" + } + } + } + } + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const addCustomPrebuiltEntityOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "apps/{appId}/versions/{versionId}/customprebuiltentities", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0 + ], + requestBody: { + parameterPath: "prebuiltDomainModelCreateObject", + mapper: { + ...Mappers.PrebuiltDomainModelCreateObject, + required: true + } + }, + responses: { + 201: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Uuid" + } + } + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listCustomPrebuiltEntitiesOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "apps/{appId}/versions/{versionId}/customprebuiltentities", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0 + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EntityExtractor" + } + } + } + } + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listCustomPrebuiltModelsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "apps/{appId}/versions/{versionId}/customprebuiltmodels", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0 + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CustomPrebuiltModel" + } + } + } + } + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const deleteCustomPrebuiltDomainOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "apps/{appId}/versions/{versionId}/customprebuiltdomains/{domainName}", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.domainName + ], + responses: { + 200: { + bodyMapper: Mappers.OperationStatus + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getHierarchicalEntityChildOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}/children/{hChildId}", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.hEntityId, + Parameters.hChildId + ], + responses: { + 200: { + bodyMapper: Mappers.HierarchicalChildEntity + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const updateHierarchicalEntityChildOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}/children/{hChildId}", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.hEntityId, + Parameters.hChildId + ], + requestBody: { + parameterPath: "hierarchicalChildModelUpdateObject", + mapper: { + ...Mappers.HierarchicalChildModelUpdateObject, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.OperationStatus + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const deleteHierarchicalEntityChildOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}/children/{hChildId}", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.hEntityId, + Parameters.hChildId + ], + responses: { + 200: { + bodyMapper: Mappers.OperationStatus + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const addHierarchicalEntityChildOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}/children", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.hEntityId + ], + requestBody: { + parameterPath: "hierarchicalChildModelCreateObject", + mapper: { + ...Mappers.HierarchicalChildModelCreateObject, + required: true + } + }, + responses: { + 201: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Uuid" + } + } + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const addCompositeEntityChildOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "apps/{appId}/versions/{versionId}/compositeentities/{cEntityId}/children", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.cEntityId + ], + requestBody: { + parameterPath: "compositeChildModelCreateObject", + mapper: { + ...Mappers.CompositeChildModelCreateObject, + required: true + } + }, + responses: { + 201: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Uuid" + } + } + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const deleteCompositeEntityChildOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "apps/{appId}/versions/{versionId}/compositeentities/{cEntityId}/children/{cChildId}", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.cEntityId, + Parameters.cChildId + ], + responses: { + 200: { + bodyMapper: Mappers.OperationStatus + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listRegexEntityInfosOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "apps/{appId}/versions/{versionId}/regexentities", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0 + ], + queryParameters: [ + Parameters.skip, + Parameters.take + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RegexEntityExtractor" + } + } + } + } + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const createRegexEntityModelOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "apps/{appId}/versions/{versionId}/regexentities", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0 + ], + requestBody: { + parameterPath: "regexEntityExtractorCreateObj", + mapper: { + ...Mappers.RegexModelCreateObject, + required: true + } + }, + responses: { + 201: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Uuid" + } + } + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listPatternAnyEntityInfosOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "apps/{appId}/versions/{versionId}/patternanyentities", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0 + ], + queryParameters: [ + Parameters.skip, + Parameters.take + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PatternAnyEntityExtractor" + } + } + } + } + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const createPatternAnyEntityModelOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "apps/{appId}/versions/{versionId}/patternanyentities", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0 + ], + requestBody: { + parameterPath: "extractorCreateObject", + mapper: { + ...Mappers.PatternAnyModelCreateObject, + required: true + } + }, + responses: { + 201: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Uuid" + } + } + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listEntityRolesOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "apps/{appId}/versions/{versionId}/entities/{entityId}/roles", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.entityId + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EntityRole" + } + } + } + } + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const createEntityRoleOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "apps/{appId}/versions/{versionId}/entities/{entityId}/roles", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.entityId + ], + requestBody: { + parameterPath: "entityRoleCreateObject", + mapper: { + ...Mappers.EntityRoleCreateObject, + required: true + } + }, + responses: { + 201: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Uuid" + } + } + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listPrebuiltEntityRolesOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "apps/{appId}/versions/{versionId}/prebuilts/{entityId}/roles", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.entityId + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EntityRole" + } + } + } + } + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const createPrebuiltEntityRoleOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "apps/{appId}/versions/{versionId}/prebuilts/{entityId}/roles", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.entityId + ], + requestBody: { + parameterPath: "entityRoleCreateObject", + mapper: { + ...Mappers.EntityRoleCreateObject, + required: true + } + }, + responses: { + 201: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Uuid" + } + } + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listClosedListEntityRolesOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "apps/{appId}/versions/{versionId}/closedlists/{entityId}/roles", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.entityId + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EntityRole" + } + } + } + } + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const createClosedListEntityRoleOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "apps/{appId}/versions/{versionId}/closedlists/{entityId}/roles", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.entityId + ], + requestBody: { + parameterPath: "entityRoleCreateObject", + mapper: { + ...Mappers.EntityRoleCreateObject, + required: true + } + }, + responses: { + 201: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Uuid" + } + } + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listRegexEntityRolesOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "apps/{appId}/versions/{versionId}/regexentities/{entityId}/roles", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.entityId + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EntityRole" + } + } + } + } + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const createRegexEntityRoleOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "apps/{appId}/versions/{versionId}/regexentities/{entityId}/roles", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.entityId + ], + requestBody: { + parameterPath: "entityRoleCreateObject", + mapper: { + ...Mappers.EntityRoleCreateObject, + required: true + } + }, + responses: { + 201: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Uuid" + } + } + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listCompositeEntityRolesOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "apps/{appId}/versions/{versionId}/compositeentities/{cEntityId}/roles", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.cEntityId + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EntityRole" + } + } + } + } + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const createCompositeEntityRoleOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "apps/{appId}/versions/{versionId}/compositeentities/{cEntityId}/roles", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.cEntityId + ], + requestBody: { + parameterPath: "entityRoleCreateObject", + mapper: { + ...Mappers.EntityRoleCreateObject, + required: true + } + }, + responses: { + 201: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Uuid" + } + } + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listPatternAnyEntityRolesOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "apps/{appId}/versions/{versionId}/patternanyentities/{entityId}/roles", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.entityId + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EntityRole" + } + } + } + } + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const createPatternAnyEntityRoleOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "apps/{appId}/versions/{versionId}/patternanyentities/{entityId}/roles", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.entityId + ], + requestBody: { + parameterPath: "entityRoleCreateObject", + mapper: { + ...Mappers.EntityRoleCreateObject, + required: true + } + }, + responses: { + 201: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Uuid" + } + } + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listHierarchicalEntityRolesOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}/roles", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.hEntityId + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EntityRole" + } + } + } + } + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const createHierarchicalEntityRoleOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}/roles", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.hEntityId + ], + requestBody: { + parameterPath: "entityRoleCreateObject", + mapper: { + ...Mappers.EntityRoleCreateObject, + required: true + } + }, + responses: { + 201: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Uuid" + } + } + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listCustomPrebuiltEntityRolesOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "apps/{appId}/versions/{versionId}/customprebuiltentities/{entityId}/roles", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.entityId + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EntityRole" + } + } + } + } + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const createCustomPrebuiltEntityRoleOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "apps/{appId}/versions/{versionId}/customprebuiltentities/{entityId}/roles", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.entityId + ], + requestBody: { + parameterPath: "entityRoleCreateObject", + mapper: { + ...Mappers.EntityRoleCreateObject, + required: true + } + }, + responses: { + 201: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Uuid" + } + } + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getExplicitListOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "apps/{appId}/versions/{versionId}/patternanyentities/{entityId}/explicitlist", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.entityId + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ExplicitListItem" + } + } + } + } + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const addExplicitListItemOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "apps/{appId}/versions/{versionId}/patternanyentities/{entityId}/explicitlist", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.entityId + ], + requestBody: { + parameterPath: "item", + mapper: { + ...Mappers.ExplicitListItemCreateObject, + required: true + } + }, + responses: { + 201: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Number" + } + } + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getRegexEntityEntityInfoOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "apps/{appId}/versions/{versionId}/regexentities/{regexEntityId}", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.regexEntityId + ], + responses: { + 200: { + bodyMapper: Mappers.RegexEntityExtractor + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const updateRegexEntityModelOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "apps/{appId}/versions/{versionId}/regexentities/{regexEntityId}", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.regexEntityId + ], + requestBody: { + parameterPath: "regexEntityUpdateObject", + mapper: { + ...Mappers.RegexModelUpdateObject, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.OperationStatus + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const deleteRegexEntityModelOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "apps/{appId}/versions/{versionId}/regexentities/{regexEntityId}", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.regexEntityId + ], + responses: { + 200: { + bodyMapper: Mappers.OperationStatus + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getPatternAnyEntityInfoOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "apps/{appId}/versions/{versionId}/patternanyentities/{entityId}", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.entityId + ], + responses: { + 200: { + bodyMapper: Mappers.PatternAnyEntityExtractor + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const updatePatternAnyEntityModelOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "apps/{appId}/versions/{versionId}/patternanyentities/{entityId}", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.entityId + ], + requestBody: { + parameterPath: "patternAnyUpdateObject", + mapper: { + ...Mappers.PatternAnyModelUpdateObject, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.OperationStatus + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const deletePatternAnyEntityModelOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "apps/{appId}/versions/{versionId}/patternanyentities/{entityId}", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.entityId + ], + responses: { + 200: { + bodyMapper: Mappers.OperationStatus + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getEntityRoleOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "apps/{appId}/versions/{versionId}/entities/{entityId}/roles/{roleId}", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.entityId, + Parameters.roleId + ], + responses: { + 200: { + bodyMapper: Mappers.EntityRole + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const updateEntityRoleOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "apps/{appId}/versions/{versionId}/entities/{entityId}/roles/{roleId}", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.entityId, + Parameters.roleId + ], + requestBody: { + parameterPath: "entityRoleUpdateObject", + mapper: { + ...Mappers.EntityRoleUpdateObject, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.OperationStatus + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const deleteEntityRoleOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "apps/{appId}/versions/{versionId}/entities/{entityId}/roles/{roleId}", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.entityId, + Parameters.roleId + ], + responses: { + 200: { + bodyMapper: Mappers.OperationStatus + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getPrebuiltEntityRoleOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "apps/{appId}/versions/{versionId}/prebuilts/{entityId}/roles/{roleId}", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.entityId, + Parameters.roleId + ], + responses: { + 200: { + bodyMapper: Mappers.EntityRole + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const updatePrebuiltEntityRoleOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "apps/{appId}/versions/{versionId}/prebuilts/{entityId}/roles/{roleId}", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.entityId, + Parameters.roleId + ], + requestBody: { + parameterPath: "entityRoleUpdateObject", + mapper: { + ...Mappers.EntityRoleUpdateObject, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.OperationStatus + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const deletePrebuiltEntityRoleOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "apps/{appId}/versions/{versionId}/prebuilts/{entityId}/roles/{roleId}", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.entityId, + Parameters.roleId + ], + responses: { + 200: { + bodyMapper: Mappers.OperationStatus + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getClosedListEntityRoleOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "apps/{appId}/versions/{versionId}/closedlists/{entityId}/roles/{roleId}", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.entityId, + Parameters.roleId + ], + responses: { + 200: { + bodyMapper: Mappers.EntityRole + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const updateClosedListEntityRoleOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "apps/{appId}/versions/{versionId}/closedlists/{entityId}/roles/{roleId}", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.entityId, + Parameters.roleId + ], + requestBody: { + parameterPath: "entityRoleUpdateObject", + mapper: { + ...Mappers.EntityRoleUpdateObject, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.OperationStatus + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const deleteClosedListEntityRoleOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "apps/{appId}/versions/{versionId}/closedlists/{entityId}/roles/{roleId}", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.entityId, + Parameters.roleId + ], + responses: { + 200: { + bodyMapper: Mappers.OperationStatus + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getRegexEntityRoleOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "apps/{appId}/versions/{versionId}/regexentities/{entityId}/roles/{roleId}", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.entityId, + Parameters.roleId + ], + responses: { + 200: { + bodyMapper: Mappers.EntityRole + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const updateRegexEntityRoleOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "apps/{appId}/versions/{versionId}/regexentities/{entityId}/roles/{roleId}", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.entityId, + Parameters.roleId + ], + requestBody: { + parameterPath: "entityRoleUpdateObject", + mapper: { + ...Mappers.EntityRoleUpdateObject, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.OperationStatus + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const deleteRegexEntityRoleOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "apps/{appId}/versions/{versionId}/regexentities/{entityId}/roles/{roleId}", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.entityId, + Parameters.roleId + ], + responses: { + 200: { + bodyMapper: Mappers.OperationStatus + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getCompositeEntityRoleOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "apps/{appId}/versions/{versionId}/compositeentities/{cEntityId}/roles/{roleId}", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.cEntityId, + Parameters.roleId + ], + responses: { + 200: { + bodyMapper: Mappers.EntityRole + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const updateCompositeEntityRoleOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "apps/{appId}/versions/{versionId}/compositeentities/{cEntityId}/roles/{roleId}", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.cEntityId, + Parameters.roleId + ], + requestBody: { + parameterPath: "entityRoleUpdateObject", + mapper: { + ...Mappers.EntityRoleUpdateObject, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.OperationStatus + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const deleteCompositeEntityRoleOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "apps/{appId}/versions/{versionId}/compositeentities/{cEntityId}/roles/{roleId}", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.cEntityId, + Parameters.roleId + ], + responses: { + 200: { + bodyMapper: Mappers.OperationStatus + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getPatternAnyEntityRoleOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "apps/{appId}/versions/{versionId}/patternanyentities/{entityId}/roles/{roleId}", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.entityId, + Parameters.roleId + ], + responses: { + 200: { + bodyMapper: Mappers.EntityRole + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const updatePatternAnyEntityRoleOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "apps/{appId}/versions/{versionId}/patternanyentities/{entityId}/roles/{roleId}", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.entityId, + Parameters.roleId + ], + requestBody: { + parameterPath: "entityRoleUpdateObject", + mapper: { + ...Mappers.EntityRoleUpdateObject, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.OperationStatus + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const deletePatternAnyEntityRoleOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "apps/{appId}/versions/{versionId}/patternanyentities/{entityId}/roles/{roleId}", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.entityId, + Parameters.roleId + ], + responses: { + 200: { + bodyMapper: Mappers.OperationStatus + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getHierarchicalEntityRoleOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}/roles/{roleId}", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.hEntityId, + Parameters.roleId + ], + responses: { + 200: { + bodyMapper: Mappers.EntityRole + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const updateHierarchicalEntityRoleOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}/roles/{roleId}", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.hEntityId, + Parameters.roleId + ], + requestBody: { + parameterPath: "entityRoleUpdateObject", + mapper: { + ...Mappers.EntityRoleUpdateObject, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.OperationStatus + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const deleteHierarchicalEntityRoleOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}/roles/{roleId}", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.hEntityId, + Parameters.roleId + ], + responses: { + 200: { + bodyMapper: Mappers.OperationStatus + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getCustomEntityRoleOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "apps/{appId}/versions/{versionId}/customprebuiltentities/{entityId}/roles/{roleId}", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.entityId, + Parameters.roleId + ], + responses: { + 200: { + bodyMapper: Mappers.EntityRole + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const updateCustomPrebuiltEntityRoleOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "apps/{appId}/versions/{versionId}/customprebuiltentities/{entityId}/roles/{roleId}", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.entityId, + Parameters.roleId + ], + requestBody: { + parameterPath: "entityRoleUpdateObject", + mapper: { + ...Mappers.EntityRoleUpdateObject, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.OperationStatus + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const deleteCustomEntityRoleOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "apps/{appId}/versions/{versionId}/customprebuiltentities/{entityId}/roles/{roleId}", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.entityId, + Parameters.roleId + ], + responses: { + 200: { + bodyMapper: Mappers.OperationStatus + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getExplicitListItemOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "apps/{appId}/versions/{versionId}/patternanyentities/{entityId}/explicitlist/{itemId}", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.entityId, + Parameters.itemId + ], + responses: { + 200: { + bodyMapper: Mappers.ExplicitListItem + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const updateExplicitListItemOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "apps/{appId}/versions/{versionId}/patternanyentities/{entityId}/explicitlist/{itemId}", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.entityId, + Parameters.itemId + ], + requestBody: { + parameterPath: "item", + mapper: { + ...Mappers.ExplicitListItemUpdateObject, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.OperationStatus + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const deleteExplicitListItemOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "apps/{appId}/versions/{versionId}/patternanyentities/{entityId}/explicitlist/{itemId}", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.entityId, + Parameters.itemId + ], + responses: { + 200: { + bodyMapper: Mappers.OperationStatus + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/cognitiveservices/cognitiveservices-luis-authoring/lib/operations/pattern.ts b/sdk/cognitiveservices/cognitiveservices-luis-authoring/lib/operations/pattern.ts new file mode 100644 index 000000000000..3ad7620eff42 --- /dev/null +++ b/sdk/cognitiveservices/cognitiveservices-luis-authoring/lib/operations/pattern.ts @@ -0,0 +1,586 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/patternMappers"; +import * as Parameters from "../models/parameters"; +import { LUISAuthoringClientContext } from "../lUISAuthoringClientContext"; + +/** Class representing a Pattern. */ +export class Pattern { + private readonly client: LUISAuthoringClientContext; + + /** + * Create a Pattern. + * @param {LUISAuthoringClientContext} client Reference to the service client. + */ + constructor(client: LUISAuthoringClientContext) { + this.client = client; + } + + /** + * @summary Adds a pattern to a version of the application. + * @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; + /** + * @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; + /** + * @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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + pattern, + options + }, + addPatternOperationSpec, + callback) as Promise; + } + + /** + * @summary Gets patterns in a version of the application. + * @param appId The application ID. + * @param versionId The version ID. + * @param [options] The optional parameters + * @returns Promise + */ + listPatterns(appId: string, versionId: string, options?: Models.PatternListPatternsOptionalParams): Promise; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param callback The callback + */ + listPatterns(appId: string, versionId: string, callback: msRest.ServiceCallback): void; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param options The optional parameters + * @param callback The callback + */ + listPatterns(appId: string, versionId: string, options: Models.PatternListPatternsOptionalParams, callback: msRest.ServiceCallback): void; + listPatterns(appId: string, versionId: string, options?: Models.PatternListPatternsOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + appId, + versionId, + options + }, + listPatternsOperationSpec, + callback) as Promise; + } + + /** + * @summary Updates patterns in a version of the application. + * @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; + /** + * @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; + /** + * @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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + patterns, + options + }, + updatePatternsOperationSpec, + callback) as Promise; + } + + /** + * @summary Adds a batch of patterns in a version of the application. + * @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; + /** + * @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; + /** + * @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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + patterns, + options + }, + batchAddPatternsOperationSpec, + callback) as Promise; + } + + /** + * @summary Deletes a list of patterns in a version of the application. + * @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; + /** + * @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; + /** + * @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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + patternIds, + options + }, + deletePatternsOperationSpec, + callback) as Promise; + } + + /** + * @summary Updates a pattern in a version of the application. + * @param appId The application ID. + * @param versionId The version ID. + * @param patternId The pattern ID. + * @param pattern An object representing a pattern. + * @param [options] The optional parameters + * @returns Promise + */ + updatePattern(appId: string, versionId: string, patternId: string, pattern: Models.PatternRuleUpdateObject, options?: msRest.RequestOptionsBase): Promise; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @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; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param patternId The pattern ID. + * @param pattern An object representing a 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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + patternId, + pattern, + options + }, + updatePatternOperationSpec, + callback) as Promise; + } + + /** + * @summary Deletes the pattern with the specified ID from a version of the application.. + * @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; + /** + * @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; + /** + * @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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + patternId, + options + }, + deletePatternOperationSpec, + callback) as Promise; + } + + /** + * @summary Returns patterns for the specific intent in a version of the application. + * @param appId The application ID. + * @param versionId The version ID. + * @param intentId The intent classifier ID. + * @param [options] The optional parameters + * @returns Promise + */ + listIntentPatterns(appId: string, versionId: string, intentId: string, options?: Models.PatternListIntentPatternsOptionalParams): Promise; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param intentId The intent classifier ID. + * @param callback The callback + */ + listIntentPatterns(appId: string, versionId: string, intentId: string, callback: msRest.ServiceCallback): void; + /** + * @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 + */ + listIntentPatterns(appId: string, versionId: string, intentId: string, options: Models.PatternListIntentPatternsOptionalParams, callback: msRest.ServiceCallback): void; + listIntentPatterns(appId: string, versionId: string, intentId: string, options?: Models.PatternListIntentPatternsOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + appId, + versionId, + intentId, + options + }, + listIntentPatternsOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const addPatternOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "apps/{appId}/versions/{versionId}/patternrule", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0 + ], + requestBody: { + parameterPath: "pattern", + mapper: { + ...Mappers.PatternRuleCreateObject, + required: true + } + }, + responses: { + 201: { + bodyMapper: Mappers.PatternRuleInfo + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listPatternsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "apps/{appId}/versions/{versionId}/patternrules", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0 + ], + queryParameters: [ + Parameters.skip, + Parameters.take + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PatternRuleInfo" + } + } + } + } + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const updatePatternsOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "apps/{appId}/versions/{versionId}/patternrules", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0 + ], + requestBody: { + parameterPath: "patterns", + mapper: { + required: true, + serializedName: "patterns", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PatternRuleUpdateObject" + } + } + } + } + }, + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PatternRuleInfo" + } + } + } + } + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const batchAddPatternsOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "apps/{appId}/versions/{versionId}/patternrules", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0 + ], + requestBody: { + parameterPath: "patterns", + mapper: { + required: true, + serializedName: "patterns", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PatternRuleCreateObject" + } + } + } + } + }, + responses: { + 201: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PatternRuleInfo" + } + } + } + } + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const deletePatternsOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "apps/{appId}/versions/{versionId}/patternrules", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0 + ], + requestBody: { + parameterPath: "patternIds", + mapper: { + required: true, + serializedName: "patternIds", + type: { + name: "Sequence", + element: { + type: { + name: "Uuid" + } + } + } + } + }, + responses: { + 200: { + bodyMapper: Mappers.OperationStatus + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const updatePatternOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "apps/{appId}/versions/{versionId}/patternrules/{patternId}", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.patternId + ], + requestBody: { + parameterPath: "pattern", + mapper: { + ...Mappers.PatternRuleUpdateObject, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.PatternRuleInfo + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const deletePatternOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "apps/{appId}/versions/{versionId}/patternrules/{patternId}", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.patternId + ], + responses: { + 200: { + bodyMapper: Mappers.OperationStatus + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listIntentPatternsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "apps/{appId}/versions/{versionId}/intents/{intentId}/patternrules", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0, + Parameters.intentId + ], + queryParameters: [ + Parameters.skip, + Parameters.take + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PatternRuleInfo" + } + } + } + } + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/cognitiveservices/cognitiveservices-luis-authoring/lib/operations/permissions.ts b/sdk/cognitiveservices/cognitiveservices-luis-authoring/lib/operations/permissions.ts new file mode 100644 index 000000000000..81a1b15f8103 --- /dev/null +++ b/sdk/cognitiveservices/cognitiveservices-luis-authoring/lib/operations/permissions.ts @@ -0,0 +1,250 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/permissionsMappers"; +import * as Parameters from "../models/parameters"; +import { LUISAuthoringClientContext } from "../lUISAuthoringClientContext"; + +/** Class representing a Permissions. */ +export class Permissions { + private readonly client: LUISAuthoringClientContext; + + /** + * Create a Permissions. + * @param {LUISAuthoringClientContext} client Reference to the service client. + */ + constructor(client: LUISAuthoringClientContext) { + this.client = client; + } + + /** + * Gets the list of user emails that have permissions to access your application. + * @param appId The application ID. + * @param [options] The optional parameters + * @returns Promise + */ + list(appId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param appId The application ID. + * @param callback The callback + */ + list(appId: string, callback: msRest.ServiceCallback): void; + /** + * @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 { + return this.client.sendOperationRequest( + { + appId, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Adds a user to the allowed list of users to access this LUIS application. Users are added using + * their email address. + * @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; + /** + * @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; + /** + * @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 { + return this.client.sendOperationRequest( + { + appId, + userToAdd, + options + }, + addOperationSpec, + callback) as Promise; + } + + /** + * Removes a user from the allowed list of users to access this LUIS application. Users are removed + * using their email address. + * @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; + /** + * @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; + /** + * @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 { + return this.client.sendOperationRequest( + { + appId, + userToDelete, + options + }, + deleteMethodOperationSpec, + callback) as Promise; + } + + /** + * 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 appId The application ID. + * @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; + /** + * @param appId The application ID. + * @param collaborators A model containing a list of user email addresses. + * @param callback The callback + */ + update(appId: string, collaborators: Models.CollaboratorsArray, callback: msRest.ServiceCallback): void; + /** + * @param appId The application ID. + * @param collaborators A model containing a list of user email addresses. + * @param options The optional parameters + * @param callback The callback + */ + update(appId: string, collaborators: Models.CollaboratorsArray, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(appId: string, collaborators: Models.CollaboratorsArray, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + appId, + collaborators, + options + }, + updateOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "apps/{appId}/permissions", + urlParameters: [ + Parameters.endpoint, + Parameters.appId + ], + responses: { + 200: { + bodyMapper: Mappers.UserAccessList + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const addOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "apps/{appId}/permissions", + urlParameters: [ + Parameters.endpoint, + Parameters.appId + ], + requestBody: { + parameterPath: "userToAdd", + mapper: { + ...Mappers.UserCollaborator, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.OperationStatus + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "apps/{appId}/permissions", + urlParameters: [ + Parameters.endpoint, + Parameters.appId + ], + requestBody: { + parameterPath: "userToDelete", + mapper: { + ...Mappers.UserCollaborator, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.OperationStatus + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "apps/{appId}/permissions", + urlParameters: [ + Parameters.endpoint, + Parameters.appId + ], + requestBody: { + parameterPath: "collaborators", + mapper: { + ...Mappers.CollaboratorsArray, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.OperationStatus + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/cognitiveservices/cognitiveservices-luis-authoring/lib/operations/settings.ts b/sdk/cognitiveservices/cognitiveservices-luis-authoring/lib/operations/settings.ts new file mode 100644 index 000000000000..d4d28d088bc1 --- /dev/null +++ b/sdk/cognitiveservices/cognitiveservices-luis-authoring/lib/operations/settings.ts @@ -0,0 +1,163 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/settingsMappers"; +import * as Parameters from "../models/parameters"; +import { LUISAuthoringClientContext } from "../lUISAuthoringClientContext"; + +/** Class representing a Settings. */ +export class Settings { + private readonly client: LUISAuthoringClientContext; + + /** + * Create a Settings. + * @param {LUISAuthoringClientContext} client Reference to the service client. + */ + constructor(client: LUISAuthoringClientContext) { + this.client = client; + } + + /** + * Gets the settings in a version of the application. + * @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; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param callback The callback + */ + list(appId: string, versionId: string, callback: msRest.ServiceCallback): void; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param options The optional parameters + * @param callback The callback + */ + list(appId: string, versionId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(appId: string, versionId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + appId, + versionId, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Updates the settings in a version of the application. + * @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; + /** + * @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; + /** + * @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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + listOfAppVersionSettingObject, + options + }, + updateOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "apps/{appId}/versions/{versionId}/settings", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0 + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AppVersionSettingObject" + } + } + } + } + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "apps/{appId}/versions/{versionId}/settings", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0 + ], + requestBody: { + parameterPath: "listOfAppVersionSettingObject", + mapper: { + required: true, + serializedName: "listOfAppVersionSettingObject", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AppVersionSettingObject" + } + } + } + } + }, + responses: { + 200: { + bodyMapper: Mappers.OperationStatus + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/cognitiveservices/cognitiveservices-luis-authoring/lib/operations/train.ts b/sdk/cognitiveservices/cognitiveservices-luis-authoring/lib/operations/train.ts new file mode 100644 index 000000000000..53d2c9848983 --- /dev/null +++ b/sdk/cognitiveservices/cognitiveservices-luis-authoring/lib/operations/train.ts @@ -0,0 +1,150 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/trainMappers"; +import * as Parameters from "../models/parameters"; +import { LUISAuthoringClientContext } from "../lUISAuthoringClientContext"; + +/** Class representing a Train. */ +export class Train { + private readonly client: LUISAuthoringClientContext; + + /** + * Create a Train. + * @param {LUISAuthoringClientContext} client Reference to the service client. + */ + constructor(client: LUISAuthoringClientContext) { + this.client = client; + } + + /** + * Sends a training request for a version of a specified LUIS app. This POST request initiates a + * request asynchronously. To determine whether the training request is successful, submit a GET + * 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 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; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param callback The callback + */ + trainVersion(appId: string, versionId: string, callback: msRest.ServiceCallback): void; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param options The optional parameters + * @param callback The callback + */ + trainVersion(appId: string, versionId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + trainVersion(appId: string, versionId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + appId, + versionId, + options + }, + trainVersionOperationSpec, + callback) as Promise; + } + + /** + * Gets the training status of all models (intents and entities) for the specified LUIS app. You + * 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 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; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param callback The callback + */ + getStatus(appId: string, versionId: string, callback: msRest.ServiceCallback): void; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param options The optional parameters + * @param callback The callback + */ + getStatus(appId: string, versionId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getStatus(appId: string, versionId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + appId, + versionId, + options + }, + getStatusOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const trainVersionOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "apps/{appId}/versions/{versionId}/train", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0 + ], + responses: { + 202: { + bodyMapper: Mappers.EnqueueTrainingResponse + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getStatusOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "apps/{appId}/versions/{versionId}/train", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0 + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ModelTrainingInfo" + } + } + } + } + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/cognitiveservices/cognitiveservices-luis-authoring/lib/operations/versions.ts b/sdk/cognitiveservices/cognitiveservices-luis-authoring/lib/operations/versions.ts new file mode 100644 index 000000000000..c1ce1801e57c --- /dev/null +++ b/sdk/cognitiveservices/cognitiveservices-luis-authoring/lib/operations/versions.ts @@ -0,0 +1,504 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/versionsMappers"; +import * as Parameters from "../models/parameters"; +import { LUISAuthoringClientContext } from "../lUISAuthoringClientContext"; + +/** Class representing a Versions. */ +export class Versions { + private readonly client: LUISAuthoringClientContext; + + /** + * Create a Versions. + * @param {LUISAuthoringClientContext} client Reference to the service client. + */ + constructor(client: LUISAuthoringClientContext) { + this.client = client; + } + + /** + * Creates a new version from the selected version. + * @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, versionCloneObject: Models.TaskUpdateObject, options?: msRest.RequestOptionsBase): Promise; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param versionCloneObject A model containing the new version ID. + * @param callback The callback + */ + clone(appId: string, versionId: string, versionCloneObject: Models.TaskUpdateObject, callback: msRest.ServiceCallback): void; + /** + * @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, versionCloneObject: Models.TaskUpdateObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + clone(appId: string, versionId: string, versionCloneObject: Models.TaskUpdateObject, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + appId, + versionId, + versionCloneObject, + options + }, + cloneOperationSpec, + callback) as Promise; + } + + /** + * Gets a list of versions for this application ID. + * @param appId The application ID. + * @param [options] The optional parameters + * @returns Promise + */ + list(appId: string, options?: Models.VersionsListOptionalParams): Promise; + /** + * @param appId The application ID. + * @param callback The callback + */ + list(appId: string, callback: msRest.ServiceCallback): void; + /** + * @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 { + return this.client.sendOperationRequest( + { + appId, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Gets the version information such as date created, last modified date, endpoint URL, count of + * intents and entities, training and publishing status. + * @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; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param callback The callback + */ + get(appId: string, versionId: string, callback: msRest.ServiceCallback): void; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param options The optional parameters + * @param callback The callback + */ + get(appId: string, versionId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(appId: string, versionId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + appId, + versionId, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Updates the name or description of the application version. + * @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; + /** + * @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; + /** + * @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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + versionUpdateObject, + options + }, + updateOperationSpec, + callback) as Promise; + } + + /** + * Deletes an application version. + * @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; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param callback The callback + */ + deleteMethod(appId: string, versionId: string, callback: msRest.ServiceCallback): void; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(appId: string, versionId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(appId: string, versionId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + appId, + versionId, + options + }, + deleteMethodOperationSpec, + callback) as Promise; + } + + /** + * Exports a LUIS application to JSON format. + * @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; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param callback The callback + */ + exportMethod(appId: string, versionId: string, callback: msRest.ServiceCallback): void; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param options The optional parameters + * @param callback The callback + */ + exportMethod(appId: string, versionId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + exportMethod(appId: string, versionId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + appId, + versionId, + options + }, + exportMethodOperationSpec, + callback) as Promise; + } + + /** + * Imports a new version into a LUIS application. + * @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; + /** + * @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; + /** + * @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 { + return this.client.sendOperationRequest( + { + appId, + luisApp, + options + }, + importMethodOperationSpec, + callback) as Promise; + } + + /** + * Deleted an unlabelled utterance in a version of the application. + * @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; + /** + * @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; + /** + * @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 { + return this.client.sendOperationRequest( + { + appId, + versionId, + utterance, + options + }, + deleteUnlabelledUtteranceOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const cloneOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "apps/{appId}/versions/{versionId}/clone", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0 + ], + requestBody: { + parameterPath: "versionCloneObject", + mapper: { + ...Mappers.TaskUpdateObject, + required: true + } + }, + responses: { + 201: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "String" + } + } + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "apps/{appId}/versions", + urlParameters: [ + Parameters.endpoint, + Parameters.appId + ], + queryParameters: [ + Parameters.skip, + Parameters.take + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VersionInfo" + } + } + } + } + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "apps/{appId}/versions/{versionId}/", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0 + ], + responses: { + 200: { + bodyMapper: Mappers.VersionInfo + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "apps/{appId}/versions/{versionId}/", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0 + ], + requestBody: { + parameterPath: "versionUpdateObject", + mapper: { + ...Mappers.TaskUpdateObject, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.OperationStatus + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "apps/{appId}/versions/{versionId}/", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0 + ], + responses: { + 200: { + bodyMapper: Mappers.OperationStatus + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const exportMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "apps/{appId}/versions/{versionId}/export", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0 + ], + responses: { + 200: { + bodyMapper: Mappers.LuisApp + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const importMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "apps/{appId}/versions/import", + urlParameters: [ + Parameters.endpoint, + Parameters.appId + ], + queryParameters: [ + Parameters.versionId1 + ], + requestBody: { + parameterPath: "luisApp", + mapper: { + ...Mappers.LuisApp, + required: true + } + }, + responses: { + 201: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "String" + } + } + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const deleteUnlabelledUtteranceOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "apps/{appId}/versions/{versionId}/suggest", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0 + ], + requestBody: { + parameterPath: "utterance", + mapper: { + required: true, + serializedName: "utterance", + type: { + name: "String" + } + } + }, + responses: { + 200: { + bodyMapper: Mappers.OperationStatus + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/cognitiveservices/cognitiveservices-luis-authoring/package.json b/sdk/cognitiveservices/cognitiveservices-luis-authoring/package.json index a9d58d35c4b6..b8f76a16c9aa 100644 --- a/sdk/cognitiveservices/cognitiveservices-luis-authoring/package.json +++ b/sdk/cognitiveservices/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": [ @@ -25,7 +25,7 @@ "rollup-plugin-sourcemaps": "^0.4.2", "uglify-js": "^3.4.9" }, - "homepage": "https://github.com/azure/azure-sdk-for-js/tree/master/sdk/cognitiveservices/cognitiveservices-luis-authoring", + "homepage": "https://github.com/azure/azure-sdk-for-js", "repository": { "type": "git", "url": "https://github.com/azure/azure-sdk-for-js.git" @@ -42,8 +42,7 @@ "esm/**/*.js.map", "esm/**/*.d.ts", "esm/**/*.d.ts.map", - "src/**/*.ts", - "README.md", + "lib/**/*.ts", "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/sdk/cognitiveservices/cognitiveservices-luis-authoring/tsconfig.json b/sdk/cognitiveservices/cognitiveservices-luis-authoring/tsconfig.json index 87bbf5b5fa49..51ea90961ce5 100644 --- a/sdk/cognitiveservices/cognitiveservices-luis-authoring/tsconfig.json +++ b/sdk/cognitiveservices/cognitiveservices-luis-authoring/tsconfig.json @@ -14,6 +14,6 @@ "outDir": "./esm", "importHelpers": true }, - "include": ["./src/**/*.ts"], + "include": ["./lib/**/*.ts"], "exclude": ["node_modules"] }