Skip to content
This repository has been archived by the owner on May 5, 2023. It is now read-only.

Commit

Permalink
[AutoPR cognitiveservices/data-plane/LUIS/Authoring] Adding azure acc…
Browse files Browse the repository at this point in the history
…ounts APIs (#4185)

* Generated from 431fadac7b30b7c33b9fa6468874fce839869345

fixing build errors

* Generated from 82cee8e19ad81e9d82d712cfabad1649b91b619a

Merge pull request #1 from omarelhariry/a-moghan/PublishingResponses

Adding Publishing To Regions Status

* Generated from 23a7c077da0b751b8ad2b246d8da041d0906f90d

Fixing formats

* Generated from 4289fc27afed08636bf27abb57ace4a1ff69b7ee

Fixing OAV errors

* Generated from 3b62ef631bbcf684da8597627f22d1869bb37c7d

Merge pull request #2 from omarelhariry/kayousef/Dispatch_APIs

Adding dispatch APIs

* Generated from 4289fc27afed08636bf27abb57ace4a1ff69b7ee

Fixing OAV errors

* Generated from c7d11c54fe4f164073a570f2dba2510ddbf91c76

Add application-json as a 2nd prdocues format for packaging APIs, to describe the error responses

* Generated from b8ee038af90c620395c27635c989a3a6364335a4

Updating operation ids

* Generated from 32e19a3f178eab8d32f3fd79316bbaf7569ca7c8

fix oav and remove error responses
  • Loading branch information
AutorestCI authored Dec 13, 2018
1 parent c39f1c1 commit ba13503
Show file tree
Hide file tree
Showing 119 changed files with 5,263 additions and 1,465 deletions.
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.
89 changes: 45 additions & 44 deletions lib/services/luis/authoring/README.md
Original file line number Diff line number Diff line change
@@ -1,44 +1,45 @@
---
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

---
**This SDK will be deprecated next year and will be replaced by a new TypeScript-based isomorphic SDK (found at https://github.com/Azure/azure-sdk-for-js) which works on Node.js and browsers.**
## 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)
2 changes: 2 additions & 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,8 @@ export default class LUISAuthoringClient extends ServiceClient {
train: operations.Train;
permissions: operations.Permissions;
pattern: operations.Pattern;
settings: operations.Settings;
azureAccounts: operations.AzureAccounts;
}

export { LUISAuthoringClient, models as LUISAuthoringModels };
2 changes: 2 additions & 0 deletions lib/services/luis/authoring/lib/lUISAuthoringClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ 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.azureAccounts = new operations.AzureAccounts(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.
* @property {string} [name] The application version setting name.
* @property {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 @@ -17,18 +17,18 @@
class ApplicationCreateObject {
/**
* Create a ApplicationCreateObject.
* @member {string} culture The culture for the new application. It is the
* @property {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.
* @member {string} [domain] The domain for the new application. Optional.
* @property {string} [domain] The domain for the new application. Optional.
* E.g.: Comics.
* @member {string} [description] Description of the new application.
* @property {string} [description] Description of the new application.
* Optional.
* @member {string} [initialVersionId] The initial version ID. Optional.
* @property {string} [initialVersionId] The initial version ID. Optional.
* Default value is: "0.1"
* @member {string} [usageScenario] Defines the scenario for the new
* @property {string} [usageScenario] Defines the scenario for the new
* application. Optional. E.g.: IoT.
* @member {string} name The name for the new application.
* @property {string} name The name for the new application.
*/
constructor() {
}
Expand Down
22 changes: 11 additions & 11 deletions lib/services/luis/authoring/lib/models/applicationInfoResponse.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,22 @@
class ApplicationInfoResponse {
/**
* Create a ApplicationInfoResponse.
* @member {uuid} [id] The ID (GUID) of the application.
* @member {string} [name] The name of the application.
* @member {string} [description] The description of the application.
* @member {string} [culture] The culture of the application. E.g.: en-us.
* @member {string} [usageScenario] Defines the scenario for the new
* @property {uuid} [id] The ID (GUID) of the application.
* @property {string} [name] The name of the application.
* @property {string} [description] The description of the application.
* @property {string} [culture] The culture of the application. E.g.: en-us.
* @property {string} [usageScenario] Defines the scenario for the new
* application. Optional. E.g.: IoT.
* @member {string} [domain] The domain for the new application. Optional.
* @property {string} [domain] The domain for the new application. Optional.
* E.g.: Comics.
* @member {number} [versionsCount] Amount of model versions within the
* @property {number} [versionsCount] Amount of model versions within the
* application.
* @member {string} [createdDateTime] The version's creation timestamp.
* @member {object} [endpoints] The Runtime endpoint URL for this model
* @property {string} [createdDateTime] The version's creation timestamp.
* @property {object} [endpoints] The Runtime endpoint URL for this model
* version.
* @member {number} [endpointHitsCount] Number of calls made to this
* @property {number} [endpointHitsCount] Number of calls made to this
* endpoint.
* @member {string} [activeVersion] The version ID currently marked as
* @property {string} [activeVersion] The version ID currently marked as
* active.
*/
constructor() {
Expand Down
13 changes: 2 additions & 11 deletions lib/services/luis/authoring/lib/models/applicationPublishObject.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,9 @@
class ApplicationPublishObject {
/**
* Create a ApplicationPublishObject.
* @member {string} [versionId] The version ID to publish.
* @member {boolean} [isStaging] Indicates if the staging slot should be
* @property {string} [versionId] The version ID to publish.
* @property {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
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
class ApplicationSettingUpdateObject {
/**
* Create a ApplicationSettingUpdateObject.
* @member {boolean} [publicProperty] Setting your application as public
* @property {boolean} [publicProperty] Setting your application as public
* allows other people to use your application's endpoint using their own
* keys.
*/
Expand Down
6 changes: 3 additions & 3 deletions lib/services/luis/authoring/lib/models/applicationSettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
class ApplicationSettings {
/**
* Create a ApplicationSettings.
* @member {uuid} id The application ID.
* @member {boolean} isPublic Setting your application as public allows other
* people to use your application's endpoint using their own keys.
* @property {uuid} id The application ID.
* @property {boolean} isPublic Setting your application as public allows
* other people to use your application's endpoint using their own keys.
*/
constructor() {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
class ApplicationUpdateObject {
/**
* Create a ApplicationUpdateObject.
* @member {string} [name] The application's new name.
* @member {string} [description] The application's new description.
* @property {string} [name] The application's new name.
* @property {string} [description] The application's new description.
*/
constructor() {
}
Expand Down
4 changes: 2 additions & 2 deletions lib/services/luis/authoring/lib/models/availableCulture.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
class AvailableCulture {
/**
* Create a AvailableCulture.
* @member {string} [name] The language name.
* @member {string} [code] The ISO value for the language.
* @property {string} [name] The language name.
* @property {string} [code] The ISO value for the language.
*/
constructor() {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
class AvailablePrebuiltEntityModel {
/**
* Create a AvailablePrebuiltEntityModel.
* @member {string} [name] The entity name.
* @member {string} [description] The entity description and usage
* @property {string} [name] The entity name.
* @property {string} [description] The entity description and usage
* information.
* @member {string} [examples] Usage examples.
* @property {string} [examples] Usage examples.
*/
constructor() {
}
Expand Down
Loading

0 comments on commit ba13503

Please sign in to comment.