Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 21 additions & 21 deletions lib/services/luis/authoring/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
The MIT License (MIT)

Copyright (c) 2018 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
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
The MIT License (MIT)
Copyright (c) 2018 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
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
88 changes: 44 additions & 44 deletions lib/services/luis/authoring/README.md
Original file line number Diff line number Diff line change
@@ -1,44 +1,44 @@
---
uid: azure-cognitiveservices-luis-authoring
summary: *content

---
# Microsoft Azure SDK for Node.js - LUISAuthoringClient
This project provides a Node.js package for accessing Azure. Right now it supports:
- **Node.js version 6.x.x or higher**

## Features


## How to Install

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

## How to use

### Authentication, client creation and listPhraseLists features as an example.

```javascript
const msRest = require("ms-rest");
const LUISAuthoringClient = require("azure-cognitiveservices-luis-authoring");
const token = "<access_token>";
const creds = new msRest.TokenCredentials(token);
const subscriptionId = "<Subscription_Id>";
const client = new LUISAuthoringClient(creds, subscriptionId);
const appId = ec7b1657-199d-4d8a-bbb2-89a11a42e02a;
const versionId = "testversionId";
const skip = 1;
const take = 1;
client.features.listPhraseLists(appId, versionId, skip, take).then((result) => {
console.log("The result is:");
console.log(result);
}).catch((err) => {
console.log('An error occurred:');
console.dir(err, {depth: null, colors: true});
});

## Related projects

- [Microsoft Azure SDK for Node.js](https://github.com/Azure/azure-sdk-for-node)
---
uid: azure-cognitiveservices-luis-authoring
summary: *content
---
# Microsoft Azure SDK for Node.js - LUISAuthoringClient
This project provides a Node.js package for accessing Azure. Right now it supports:
- **Node.js version 6.x.x or higher**
## Features
## How to Install
```bash
npm install azure-cognitiveservices-luis-authoring
```
## How to use
### Authentication, client creation and listPhraseLists features as an example.
```javascript
const msRest = require("ms-rest");
const LUISAuthoringClient = require("azure-cognitiveservices-luis-authoring");
const token = "<access_token>";
const creds = new msRest.TokenCredentials(token);
const subscriptionId = "<Subscription_Id>";
const client = new LUISAuthoringClient(creds, subscriptionId);
const appId = ec7b1657-199d-4d8a-bbb2-89a11a42e02a;
const versionId = "testversionId";
const skip = 1;
const take = 1;
client.features.listPhraseLists(appId, versionId, skip, take).then((result) => {
console.log("The result is:");
console.log(result);
}).catch((err) => {
console.log('An error occurred:');
console.dir(err, {depth: null, colors: true});
});
## Related projects
- [Microsoft Azure SDK for Node.js](https://github.com/Azure/azure-sdk-for-node)
1 change: 1 addition & 0 deletions lib/services/luis/authoring/lib/lUISAuthoringClient.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export default class LUISAuthoringClient extends ServiceClient {
train: operations.Train;
permissions: operations.Permissions;
pattern: operations.Pattern;
settings: operations.Settings;
}

export { LUISAuthoringClient, models as LUISAuthoringModels };
1 change: 1 addition & 0 deletions lib/services/luis/authoring/lib/lUISAuthoringClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ class LUISAuthoringClient extends ServiceClient {
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.models = models;
msRest.addSerializationMixin(this);
}
Expand Down
60 changes: 60 additions & 0 deletions lib/services/luis/authoring/lib/models/appVersionSettingObject.js
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.
*/

'use strict';

/**
* Object model of an application version setting.
*
*/
class AppVersionSettingObject {
/**
* Create a AppVersionSettingObject.
* @member {string} [name] The application version setting name.
* @member {string} [value] The application version setting value.
*/
constructor() {
}

/**
* Defines the metadata of AppVersionSettingObject
*
* @returns {object} metadata of AppVersionSettingObject
*
*/
mapper() {
return {
required: false,
serializedName: 'AppVersionSettingObject',
type: {
name: 'Composite',
className: 'AppVersionSettingObject',
modelProperties: {
name: {
required: false,
serializedName: 'name',
type: {
name: 'String'
}
},
value: {
required: false,
serializedName: 'value',
type: {
name: 'String'
}
}
}
}
};
}
}

module.exports = AppVersionSettingObject;
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ class ApplicationPublishObject {
* @member {string} [versionId] The version ID to publish.
* @member {boolean} [isStaging] Indicates if the staging slot should be
* used, instead of the Production one. Default value: false .
* @member {string} [region] The target region that the application is
* published to.
*/
constructor() {
}
Expand Down Expand Up @@ -54,13 +52,6 @@ class ApplicationPublishObject {
type: {
name: 'Boolean'
}
},
region: {
required: false,
serializedName: 'region',
type: {
name: 'String'
}
}
}
}
Expand Down
17 changes: 14 additions & 3 deletions lib/services/luis/authoring/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -580,13 +580,10 @@ export interface HierarchicalModel {
* @member {string} [versionId] The version ID to publish.
* @member {boolean} [isStaging] Indicates if the staging slot should be used,
* instead of the Production one. Default value: false .
* @member {string} [region] The target region that the application is
* published to.
*/
export interface ApplicationPublishObject {
versionId?: string;
isStaging?: boolean;
region?: string;
}

/**
Expand Down Expand Up @@ -1756,6 +1753,20 @@ export interface LabelTextObject {
text?: string;
}

/**
* @class
* Initializes a new instance of the AppVersionSettingObject class.
* @constructor
* Object model of an application version setting.
*
* @member {string} [name] The application version setting name.
* @member {string} [value] The application version setting value.
*/
export interface AppVersionSettingObject {
name?: string;
value?: string;
}

/**
* @class
* Initializes a new instance of the HierarchicalChildModelUpdateObject class.
Expand Down
1 change: 1 addition & 0 deletions lib/services/luis/authoring/lib/models/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ exports.RegexEntityExtractor = require('./regexEntityExtractor');
exports.PatternAnyEntityExtractor = require('./patternAnyEntityExtractor');
exports.PatternRuleInfo = require('./patternRuleInfo');
exports.LabelTextObject = require('./labelTextObject');
exports.AppVersionSettingObject = require('./appVersionSettingObject');
exports.HierarchicalChildModelUpdateObject = require('./hierarchicalChildModelUpdateObject');
exports.HierarchicalChildModelCreateObject = require('./hierarchicalChildModelCreateObject');
exports.CompositeChildModelCreateObject = require('./compositeChildModelCreateObject');
9 changes: 0 additions & 9 deletions lib/services/luis/authoring/lib/operations/apps.js
Original file line number Diff line number Diff line change
Expand Up @@ -1552,9 +1552,6 @@ function _deleteMethod(appId, options, callback) {
* @param {boolean} [applicationPublishObject.isStaging] Indicates if the
* staging slot should be used, instead of the Production one.
*
* @param {string} [applicationPublishObject.region] The target region that the
* application is published to.
*
* @param {object} [options] Optional Parameters.
*
* @param {object} [options.customHeaders] Headers that will be added to the
Expand Down Expand Up @@ -3852,9 +3849,6 @@ class Apps {
* @param {boolean} [applicationPublishObject.isStaging] Indicates if the
* staging slot should be used, instead of the Production one.
*
* @param {string} [applicationPublishObject.region] The target region that the
* application is published to.
*
* @param {object} [options] Optional Parameters.
*
* @param {object} [options.customHeaders] Headers that will be added to the
Expand Down Expand Up @@ -3894,9 +3888,6 @@ class Apps {
* @param {boolean} [applicationPublishObject.isStaging] Indicates if the
* staging slot should be used, instead of the Production one.
*
* @param {string} [applicationPublishObject.region] The target region that the
* application is published to.
*
* @param {object} [options] Optional Parameters.
*
* @param {object} [options.customHeaders] Headers that will be added to the
Expand Down
Loading