Skip to content

Commit

Permalink
Generated from 58571b3e7758b12f19fec873785626ac9fe4f14f (#2435)
Browse files Browse the repository at this point in the history
Adjust enums of /definitions/ReadableType

- Add "Closed List Entity Extractor "to enum list
- Add "Regex Entity Extractor" to enum list
  • Loading branch information
AutorestCI authored Apr 23, 2019
1 parent 89bc8b6 commit 70602af
Show file tree
Hide file tree
Showing 29 changed files with 21,320 additions and 14 deletions.
11 changes: 4 additions & 7 deletions sdk/cognitiveservices/cognitiveservices-luis-authoring/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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);
});
Expand All @@ -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

Expand Down Expand Up @@ -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) => {
Expand All @@ -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)
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";
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;

}
}
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";

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";

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";

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";

Loading

0 comments on commit 70602af

Please sign in to comment.