-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generated from 58571b3e7758b12f19fec873785626ac9fe4f14f (#2435)
Adjust enums of /definitions/ReadableType - Add "Closed List Entity Extractor "to enum list - Add "Regex Entity Extractor" to enum list
- Loading branch information
1 parent
89bc8b6
commit 70602af
Showing
29 changed files
with
21,320 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
60 changes: 60 additions & 0 deletions
60
sdk/cognitiveservices/cognitiveservices-luis-authoring/lib/lUISAuthoringClient.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"; |
51 changes: 51 additions & 0 deletions
51
sdk/cognitiveservices/cognitiveservices-luis-authoring/lib/lUISAuthoringClientContext.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
|
||
} | ||
} |
44 changes: 44 additions & 0 deletions
44
sdk/cognitiveservices/cognitiveservices-luis-authoring/lib/models/appsMappers.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"; | ||
|
16 changes: 16 additions & 0 deletions
16
sdk/cognitiveservices/cognitiveservices-luis-authoring/lib/models/azureAccountsMappers.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"; | ||
|
23 changes: 23 additions & 0 deletions
23
sdk/cognitiveservices/cognitiveservices-luis-authoring/lib/models/examplesMappers.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"; | ||
|
21 changes: 21 additions & 0 deletions
21
sdk/cognitiveservices/cognitiveservices-luis-authoring/lib/models/featuresMappers.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"; | ||
|
Oops, something went wrong.