diff --git a/lib/services/cognitiveServicesManagement/LICENSE.txt b/lib/services/cognitiveServicesManagement/LICENSE.txt index a70e8cf660..5431ba98b9 100644 --- a/lib/services/cognitiveServicesManagement/LICENSE.txt +++ b/lib/services/cognitiveServicesManagement/LICENSE.txt @@ -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. diff --git a/lib/services/cognitiveServicesManagement/README.md b/lib/services/cognitiveServicesManagement/README.md index 73fac33098..261bc6dbcf 100644 --- a/lib/services/cognitiveServicesManagement/README.md +++ b/lib/services/cognitiveServicesManagement/README.md @@ -1,42 +1,42 @@ ---- -uid: azure-arm-cognitiveservices -summary: *content - ---- -# Microsoft Azure SDK for Node.js - CognitiveServicesManagementClient -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-arm-cognitiveservices -``` - -## How to use - -### Authentication, client creation and getProperties accounts as an example. - -```javascript -const msRestAzure = require("ms-rest-azure"); -const CognitiveServicesManagementClient = require("azure-arm-cognitiveservices"); -msRestAzure.interactiveLogin().then((creds) => { - const subscriptionId = ""; - const client = new CognitiveServicesManagementClient(creds, subscriptionId); - const resourceGroupName = "testresourceGroupName"; - const accountName = "testaccountName"; - return client.accounts.getProperties(resourceGroupName, accountName).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-arm-cognitiveservices +summary: *content + +--- +# Microsoft Azure SDK for Node.js - CognitiveServicesManagementClient +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-arm-cognitiveservices +``` + +## How to use + +### Authentication, client creation and getProperties accounts as an example. + +```javascript +const msRestAzure = require("ms-rest-azure"); +const CognitiveServicesManagementClient = require("azure-arm-cognitiveservices"); +msRestAzure.interactiveLogin().then((creds) => { + const subscriptionId = ""; + const client = new CognitiveServicesManagementClient(creds, subscriptionId); + const resourceGroupName = "testresourceGroupName"; + const accountName = "testaccountName"; + return client.accounts.getProperties(resourceGroupName, accountName).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) diff --git a/lib/services/cognitiveServicesManagement/lib/models/checkSkuAvailabilityResultList.js b/lib/services/cognitiveServicesManagement/lib/models/checkSkuAvailabilityResultList.js index 1a2d14b1e4..e333e39b9b 100644 --- a/lib/services/cognitiveServicesManagement/lib/models/checkSkuAvailabilityResultList.js +++ b/lib/services/cognitiveServicesManagement/lib/models/checkSkuAvailabilityResultList.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Check SKU availability result list. * diff --git a/lib/services/cognitiveServicesManagement/lib/models/cognitiveServicesAccountCreateParameters.js b/lib/services/cognitiveServicesManagement/lib/models/cognitiveServicesAccountCreateParameters.js index 346d0fae38..2ec62d66e2 100644 --- a/lib/services/cognitiveServicesManagement/lib/models/cognitiveServicesAccountCreateParameters.js +++ b/lib/services/cognitiveServicesManagement/lib/models/cognitiveServicesAccountCreateParameters.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * The parameters to provide for the account. * diff --git a/lib/services/cognitiveServicesManagement/lib/models/cognitiveServicesAccountEnumerateSkusResult.js b/lib/services/cognitiveServicesManagement/lib/models/cognitiveServicesAccountEnumerateSkusResult.js index 26e53b533c..591c93a783 100644 --- a/lib/services/cognitiveServicesManagement/lib/models/cognitiveServicesAccountEnumerateSkusResult.js +++ b/lib/services/cognitiveServicesManagement/lib/models/cognitiveServicesAccountEnumerateSkusResult.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * The list of cognitive services accounts operation response. * diff --git a/lib/services/cognitiveServicesManagement/lib/models/cognitiveServicesAccountUpdateParameters.js b/lib/services/cognitiveServicesManagement/lib/models/cognitiveServicesAccountUpdateParameters.js index c47234c4ba..6a5d38e3a8 100644 --- a/lib/services/cognitiveServicesManagement/lib/models/cognitiveServicesAccountUpdateParameters.js +++ b/lib/services/cognitiveServicesManagement/lib/models/cognitiveServicesAccountUpdateParameters.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * The parameters to provide for the account. * diff --git a/lib/services/cognitiveServicesManagement/lib/models/cognitiveServicesResourceAndSku.js b/lib/services/cognitiveServicesManagement/lib/models/cognitiveServicesResourceAndSku.js index ffb115e3b0..81b63ce51f 100644 --- a/lib/services/cognitiveServicesManagement/lib/models/cognitiveServicesResourceAndSku.js +++ b/lib/services/cognitiveServicesManagement/lib/models/cognitiveServicesResourceAndSku.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Cognitive Services resource type and SKU. * diff --git a/lib/services/cognitiveServicesManagement/lib/models/errorModel.js b/lib/services/cognitiveServicesManagement/lib/models/errorModel.js index 8f7e45826c..7a6335a40b 100644 --- a/lib/services/cognitiveServicesManagement/lib/models/errorModel.js +++ b/lib/services/cognitiveServicesManagement/lib/models/errorModel.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Cognitive Services error object. * diff --git a/lib/services/cognitiveServicesManagement/lib/models/operationEntity.js b/lib/services/cognitiveServicesManagement/lib/models/operationEntity.js index 42e0ec8e86..094f95def8 100644 --- a/lib/services/cognitiveServicesManagement/lib/models/operationEntity.js +++ b/lib/services/cognitiveServicesManagement/lib/models/operationEntity.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * The operation supported by Cognitive Services. * diff --git a/lib/services/cognitiveServicesManagement/lib/models/resourceSku.js b/lib/services/cognitiveServicesManagement/lib/models/resourceSku.js index d2bb44d5aa..5393f6e1fa 100644 --- a/lib/services/cognitiveServicesManagement/lib/models/resourceSku.js +++ b/lib/services/cognitiveServicesManagement/lib/models/resourceSku.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Describes an available Cognitive Services SKU. * diff --git a/lib/services/cognitiveServicesManagement/lib/models/resourceSkuRestrictions.js b/lib/services/cognitiveServicesManagement/lib/models/resourceSkuRestrictions.js index 53d11db95d..cc185ce659 100644 --- a/lib/services/cognitiveServicesManagement/lib/models/resourceSkuRestrictions.js +++ b/lib/services/cognitiveServicesManagement/lib/models/resourceSkuRestrictions.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Describes restrictions of a SKU. * diff --git a/lib/services/cognitiveServicesManagement/lib/models/usage.js b/lib/services/cognitiveServicesManagement/lib/models/usage.js index 3d58370239..5cc262f172 100644 --- a/lib/services/cognitiveServicesManagement/lib/models/usage.js +++ b/lib/services/cognitiveServicesManagement/lib/models/usage.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * The usage data for a usage request. * diff --git a/lib/services/cognitiveServicesManagement/lib/models/usagesResult.js b/lib/services/cognitiveServicesManagement/lib/models/usagesResult.js index 6fb6f8a22a..df5c435f14 100644 --- a/lib/services/cognitiveServicesManagement/lib/models/usagesResult.js +++ b/lib/services/cognitiveServicesManagement/lib/models/usagesResult.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * The response to a list usage request. * diff --git a/lib/services/cognitiveServicesManagement/package.json b/lib/services/cognitiveServicesManagement/package.json index 870aaa31e4..0d7bd9030e 100644 --- a/lib/services/cognitiveServicesManagement/package.json +++ b/lib/services/cognitiveServicesManagement/package.json @@ -14,7 +14,7 @@ "license": "MIT", "main": "./lib/cognitiveServicesManagementClient.js", "types": "./lib/cognitiveServicesManagementClient.d.ts", - "homepage": "https://github.com/azure/azure-sdk-for-node/lib/services/cognitiveServicesManagement", + "homepage": "https://github.com/azure/azure-sdk-for-node/tree/master/lib/services/cognitiveServicesManagement", "repository": { "type": "git", "url": "https://github.com/azure/azure-sdk-for-node.git"