diff --git a/lib/services/serviceMapManagement/LICENSE.txt b/lib/services/serviceMapManagement/LICENSE.txt index a70e8cf660..5431ba98b9 100644 --- a/lib/services/serviceMapManagement/LICENSE.txt +++ b/lib/services/serviceMapManagement/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/serviceMapManagement/README.md b/lib/services/serviceMapManagement/README.md index bdd58aad6a..6de178a5c5 100644 --- a/lib/services/serviceMapManagement/README.md +++ b/lib/services/serviceMapManagement/README.md @@ -1,42 +1,47 @@ -# Microsoft Azure SDK for Node.js - ServicemapManagementClient -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-servicemap -``` - -## How to use - -### Authentication, client creation and listByWorkspace machines as an example. - -```javascript -const msRestAzure = require("ms-rest-azure"); -const ServicemapManagementClient = require("azure-arm-servicemap"); -msRestAzure.interactiveLogin().then((creds) => { - const subscriptionId = ""; - const client = new ServicemapManagementClient(creds, subscriptionId); - const resourceGroupName = "testresourceGroupName"; - const workspaceName = "testworkspaceName"; - const live = true; - const startTime = new Date().toISOString(); - const endTime = new Date().toISOString(); - const timestamp = new Date().toISOString(); - const top = 1; - return client.machines.listByWorkspace(resourceGroupName, workspaceName, live, startTime, endTime, timestamp, top).then((result) => { - console.log("The result is:"); - console.log(result); - }); -}).catch((err) => { - console.log('An error ocurred:'); - 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-servicemap +summary: *content + +--- +# Microsoft Azure SDK for Node.js - ServicemapManagementClient +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-servicemap +``` + +## How to use + +### Authentication, client creation and listByWorkspace machines as an example. + +```javascript +const msRestAzure = require("ms-rest-azure"); +const ServicemapManagementClient = require("azure-arm-servicemap"); +msRestAzure.interactiveLogin().then((creds) => { + const subscriptionId = ""; + const client = new ServicemapManagementClient(creds, subscriptionId); + const resourceGroupName = "testresourceGroupName"; + const workspaceName = "testworkspaceName"; + const live = true; + const startTime = new Date().toISOString(); + const endTime = new Date().toISOString(); + const timestamp = new Date().toISOString(); + const top = 1; + return client.machines.listByWorkspace(resourceGroupName, workspaceName, live, startTime, endTime, timestamp, top).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/serviceMapManagement/lib/models/errorResponse.js b/lib/services/serviceMapManagement/lib/models/errorResponse.js index 36baa7937d..3ea5e422aa 100644 --- a/lib/services/serviceMapManagement/lib/models/errorResponse.js +++ b/lib/services/serviceMapManagement/lib/models/errorResponse.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * An error response from the API. * diff --git a/lib/services/serviceMapManagement/lib/models/map.js b/lib/services/serviceMapManagement/lib/models/map.js index 06c58e2ad7..f6bd5291ef 100644 --- a/lib/services/serviceMapManagement/lib/models/map.js +++ b/lib/services/serviceMapManagement/lib/models/map.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * A map of resources and relationships between them. * diff --git a/lib/services/serviceMapManagement/lib/models/mapEdges.js b/lib/services/serviceMapManagement/lib/models/mapEdges.js index 0f9677007e..57d38e949a 100644 --- a/lib/services/serviceMapManagement/lib/models/mapEdges.js +++ b/lib/services/serviceMapManagement/lib/models/mapEdges.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * The edges (relationships) of a map. * diff --git a/lib/services/serviceMapManagement/lib/models/mapNodes.js b/lib/services/serviceMapManagement/lib/models/mapNodes.js index 292ce42c1f..727097c342 100644 --- a/lib/services/serviceMapManagement/lib/models/mapNodes.js +++ b/lib/services/serviceMapManagement/lib/models/mapNodes.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * The nodes (entities) of a map. * diff --git a/lib/services/serviceMapManagement/lib/models/mapResponse.js b/lib/services/serviceMapManagement/lib/models/mapResponse.js index a0cd91539e..594d1fd48f 100644 --- a/lib/services/serviceMapManagement/lib/models/mapResponse.js +++ b/lib/services/serviceMapManagement/lib/models/mapResponse.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Specified the contents of a map response. * diff --git a/lib/services/serviceMapManagement/lib/models/networkConfiguration.js b/lib/services/serviceMapManagement/lib/models/networkConfiguration.js index 0cbefe383f..52370e3618 100644 --- a/lib/services/serviceMapManagement/lib/models/networkConfiguration.js +++ b/lib/services/serviceMapManagement/lib/models/networkConfiguration.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Describes the network configuration of a machine. * diff --git a/lib/services/serviceMapManagement/lib/models/processDetails.js b/lib/services/serviceMapManagement/lib/models/processDetails.js index 2507b2a02e..54e3ed0615 100644 --- a/lib/services/serviceMapManagement/lib/models/processDetails.js +++ b/lib/services/serviceMapManagement/lib/models/processDetails.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Describes process metadata. * diff --git a/lib/services/serviceMapManagement/lib/models/relationshipProperties.js b/lib/services/serviceMapManagement/lib/models/relationshipProperties.js index 2a96aa38d9..2c55f9ae59 100644 --- a/lib/services/serviceMapManagement/lib/models/relationshipProperties.js +++ b/lib/services/serviceMapManagement/lib/models/relationshipProperties.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Relationship properties. * diff --git a/lib/services/serviceMapManagement/lib/servicemapManagementClient.d.ts b/lib/services/serviceMapManagement/lib/servicemapManagementClient.d.ts index b3c9042f3e..4ce845ebf2 100644 --- a/lib/services/serviceMapManagement/lib/servicemapManagementClient.d.ts +++ b/lib/services/serviceMapManagement/lib/servicemapManagementClient.d.ts @@ -34,11 +34,11 @@ export default class ServicemapManagementClient extends AzureServiceClient { * * @param {boolean} [options.noRetryPolicy] - If set to true, turn off default retry policy * - * @param {string} [options.acceptLanguage] - Gets or sets the preferred language for the response. + * @param {string} [options.acceptLanguage] - The preferred language for the response. * - * @param {number} [options.longRunningOperationRetryTimeout] - Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. + * @param {number} [options.longRunningOperationRetryTimeout] - The retry timeout in seconds for Long Running Operations. Default value is 30. * - * @param {boolean} [options.generateClientRequestId] - When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. + * @param {boolean} [options.generateClientRequestId] - Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. * */ constructor(credentials: ServiceClientCredentials, subscriptionId: string, baseUri?: string, options?: AzureServiceClientOptions); diff --git a/lib/services/serviceMapManagement/lib/servicemapManagementClient.js b/lib/services/serviceMapManagement/lib/servicemapManagementClient.js index c4da670d07..cb171f6f78 100644 --- a/lib/services/serviceMapManagement/lib/servicemapManagementClient.js +++ b/lib/services/serviceMapManagement/lib/servicemapManagementClient.js @@ -34,9 +34,9 @@ class ServicemapManagementClient extends ServiceClient { * @param {object} [options.requestOptions] - Options for the underlying request object * {@link https://github.com/request/request#requestoptions-callback Options doc} * @param {boolean} [options.noRetryPolicy] - If set to true, turn off default retry policy - * @param {string} [options.acceptLanguage] - Gets or sets the preferred language for the response. - * @param {number} [options.longRunningOperationRetryTimeout] - Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. - * @param {boolean} [options.generateClientRequestId] - When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. + * @param {string} [options.acceptLanguage] - The preferred language for the response. + * @param {number} [options.longRunningOperationRetryTimeout] - The retry timeout in seconds for Long Running Operations. Default value is 30. + * @param {boolean} [options.generateClientRequestId] - Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. */ constructor(credentials, subscriptionId, baseUri, options) { if (credentials === null || credentials === undefined) { diff --git a/lib/services/serviceMapManagement/package.json b/lib/services/serviceMapManagement/package.json index 83f0e45201..ad252a562c 100644 --- a/lib/services/serviceMapManagement/package.json +++ b/lib/services/serviceMapManagement/package.json @@ -7,16 +7,19 @@ "ms-rest": "^2.3.3", "ms-rest-azure": "^2.5.5" }, - "keywords": [ "node", "azure" ], + "keywords": [ + "node", + "azure" + ], "license": "MIT", "main": "./lib/servicemapManagementClient.js", "types": "./lib/servicemapManagementClient.d.ts", - "homepage": "http://github.com/azure/azure-sdk-for-node", + "homepage": "https://github.com/azure/azure-sdk-for-node/tree/master/lib/services/serviceMapManagement", "repository": { "type": "git", "url": "https://github.com/azure/azure-sdk-for-node.git" }, "bugs": { - "url": "http://github.com/Azure/azure-sdk-for-node/issues" + "url": "https://github.com/azure/azure-sdk-for-node/issues" } }