Skip to content

Commit

Permalink
Regenerate @azure/cognitiveservices-luis-authoring package (Azure#1249)
Browse files Browse the repository at this point in the history
  • Loading branch information
kpajdzik authored Feb 15, 2019
1 parent 07d7580 commit 5892f6c
Show file tree
Hide file tree
Showing 22 changed files with 1,349 additions and 1,223 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2018 Microsoft
Copyright (c) 2019 Microsoft

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
8 changes: 4 additions & 4 deletions packages/@azure/cognitiveservices-luis-authoring/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ This package contains an isomorphic SDK for LUISAuthoringClient.

### How to Install

```
```bash
npm install @azure/cognitiveservices-luis-authoring
```

Expand All @@ -19,13 +19,13 @@ npm install @azure/cognitiveservices-luis-authoring

##### Install @azure/ms-rest-nodeauth

```
```bash
npm install @azure/ms-rest-nodeauth
```

##### Sample code

```ts
```typescript
import * as msRest from "@azure/ms-rest-js";
import * as msRestNodeAuth from "@azure/ms-rest-nodeauth";
import { LUISAuthoringClient, LUISAuthoringModels, LUISAuthoringMappers } from "@azure/cognitiveservices-luis-authoring";
Expand All @@ -50,7 +50,7 @@ msRestNodeAuth.interactiveLogin().then((creds) => {

##### Install @azure/ms-rest-browserauth

```
```bash
npm install @azure/ms-rest-browserauth
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ class LUISAuthoringClient extends LUISAuthoringClientContext {
permissions: operations.Permissions;
pattern: operations.Pattern;
settings: operations.Settings;
azureAccounts: operations.AzureAccounts;

/**
* Initializes a new instance of the LUISAuthoringClient class.
Expand All @@ -44,6 +45,7 @@ class LUISAuthoringClient extends LUISAuthoringClientContext {
this.permissions = new operations.Permissions(this);
this.pattern = new operations.Pattern(this);
this.settings = new operations.Settings(this);
this.azureAccounts = new operations.AzureAccounts(this);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import * as msRest from "@azure/ms-rest-js";

const packageName = "@azure/cognitiveservices-luis-authoring";
const packageVersion = "0.1.0";
const packageVersion = "2.1.0";

export class LUISAuthoringClientContext extends msRest.ServiceClient {
endpoint: string;
Expand All @@ -35,7 +35,8 @@ export class LUISAuthoringClientContext extends msRest.ServiceClient {
if (!options) {
options = {};
}
if(!options.userAgent) {

if (!options.userAgent) {
const defaultUserAgent = msRest.getDefaultUserAgentValue();
options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;
}
Expand All @@ -46,6 +47,5 @@ export class LUISAuthoringClientContext extends msRest.ServiceClient {
this.requestContentType = "application/json; charset=utf-8";
this.endpoint = endpoint;
this.credentials = credentials;

}
}
Original file line number Diff line number Diff line change
@@ -1,44 +1,41 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
* Licensed under the MIT License. See License.txt in the project root for license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/

export {
ApplicationCreateObject,
ErrorResponse,
ApplicationInfoResponse,
LuisApp,
HierarchicalModel,
PrebuiltDomainObject,
ApplicationPublishObject,
ApplicationSettings,
ApplicationSettingUpdateObject,
ApplicationUpdateObject,
AvailableCulture,
ClosedList,
SubClosedList,
PatternAny,
RegexEntity,
PrebuiltEntity,
JSONRegexFeature,
EndpointInfo,
ErrorResponse,
HierarchicalModel,
JSONEntity,
JSONModelFeature,
PatternRule,
JSONRegexFeature,
JSONUtterance,
JSONEntity,
PersonalAssistantsResponse,
AvailableCulture,
ApplicationUpdateObject,
LuisApp,
OperationStatus,
ApplicationPublishObject,
PatternAny,
PatternRule,
PersonalAssistantsResponse,
PrebuiltDomain,
PrebuiltDomainCreateObject,
PrebuiltDomainItem,
PrebuiltDomainObject,
PrebuiltEntity,
ProductionOrStagingEndpointInfo,
EndpointInfo,
ApplicationSettings,
ApplicationSettingUpdateObject,
PublishSettings,
PublishSettingUpdateObject,
PrebuiltDomain,
PrebuiltDomainItem,
PrebuiltDomainCreateObject,
RegexEntity,
SubClosedList,
SubClosedListResponse
} from "../models/mappers";

Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/*
* 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,
ErrorResponse,
OperationStatus
} from "../models/mappers";
Original file line number Diff line number Diff line change
@@ -1,23 +1,20 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
* Licensed under the MIT License. See License.txt in the project root for license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/

export {
ExampleLabelObject,
EntityLabelObject,
LabelExampleResponse,
ErrorResponse,
BatchLabelExample,
OperationStatus,
LabeledUtterance,
EntityLabel,
EntityLabelObject,
EntityPrediction,
ErrorResponse,
ExampleLabelObject,
IntentPrediction,
EntityPrediction
LabeledUtterance,
LabelExampleResponse,
OperationStatus
} from "../models/mappers";

Original file line number Diff line number Diff line change
@@ -1,21 +1,18 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
* Licensed under the MIT License. See License.txt in the project root for license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/

export {
PhraselistCreateObject,
ErrorResponse,
PhraseListFeatureInfo,
FeatureInfoObject,
FeaturesResponseObject,
OperationStatus,
PatternFeatureInfo,
PhraselistUpdateObject,
OperationStatus
PhraselistCreateObject,
PhraseListFeatureInfo,
PhraselistUpdateObject
} from "../models/mappers";

Loading

0 comments on commit 5892f6c

Please sign in to comment.