From b290c2bb3fdef71ad1eb4d40aea858e60cc24c0e Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Sun, 2 Dec 2018 19:52:11 +0000 Subject: [PATCH] Generated from 75faf054091cf3933d71f90afdb9c46004752ab6 typo: migrate/resource-manager/Microsoft.Migrate - Wheter -> Whether - assesment -> assessment - identiefier -> identifier - estimnate -> estimate --- packages/@azure/arm-migrate/LICENSE.txt | 42 ++--- packages/@azure/arm-migrate/README.md | 177 ++++++++---------- .../@azure/arm-migrate/lib/azureMigrate.ts | 2 +- .../arm-migrate/lib/azureMigrateContext.ts | 4 +- .../@azure/arm-migrate/lib/models/index.ts | 10 +- .../@azure/arm-migrate/lib/models/mappers.ts | 4 +- .../arm-migrate/lib/models/parameters.ts | 2 +- .../lib/operations/assessedMachines.ts | 4 +- .../lib/operations/assessmentOptions.ts | 2 +- .../arm-migrate/lib/operations/assessments.ts | 4 +- .../arm-migrate/lib/operations/groups.ts | 2 +- .../arm-migrate/lib/operations/location.ts | 2 +- .../arm-migrate/lib/operations/machines.ts | 2 +- .../arm-migrate/lib/operations/operations.ts | 2 +- .../arm-migrate/lib/operations/projects.ts | 2 +- packages/@azure/arm-migrate/package.json | 4 +- packages/@azure/arm-migrate/rollup.config.js | 6 +- packages/@azure/arm-migrate/tsconfig.json | 2 +- 18 files changed, 127 insertions(+), 146 deletions(-) diff --git a/packages/@azure/arm-migrate/LICENSE.txt b/packages/@azure/arm-migrate/LICENSE.txt index a70e8cf66038..5431ba98b936 100644 --- a/packages/@azure/arm-migrate/LICENSE.txt +++ b/packages/@azure/arm-migrate/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/packages/@azure/arm-migrate/README.md b/packages/@azure/arm-migrate/README.md index 1410bc5f17c7..d57169474343 100644 --- a/packages/@azure/arm-migrate/README.md +++ b/packages/@azure/arm-migrate/README.md @@ -1,98 +1,79 @@ -## Azure AzureMigrate SDK for JavaScript - -This package contains an isomorphic SDK for AzureMigrate. - -### Currently supported environments - -- Node.js version 6.x.x or higher -- Browser JavaScript - -### How to Install - -``` -npm install @azure/arm-migrate -``` - -### How to use - -#### nodejs - Authentication, client creation and get assessmentOptions as an example written in TypeScript. - -##### Install @azure/ms-rest-nodeauth - -``` -npm install @azure/ms-rest-nodeauth -``` - -##### Sample code - -```ts -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { AzureMigrate, AzureMigrateModels, AzureMigrateMappers } from "@azure/arm-migrate"; -const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; - -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new AzureMigrate(creds, subscriptionId); - const locationName = "testlocationName"; - client.assessmentOptions.get(locationName).then((result) => { - console.log("The result is:"); - console.log(result); - }); -}).catch((err) => { - console.error(err); -}); -``` - -#### browser - Authentication, client creation and get assessmentOptions as an example written in JavaScript. - -##### Install @azure/ms-rest-browserauth - -``` -npm install @azure/ms-rest-browserauth -``` - -##### Sample code - -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - -- index.html -```html - - - - @azure/arm-migrate sample - - - - - - - - -``` - -## Related projects - -- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) +# Azure AzureMigrate SDK for JavaScript +This package contains an isomorphic SDK for AzureMigrate. + +## Currently supported environments +- Node.js version 6.x.x or higher +- Browser JavaScript + +## How to Install +``` +npm install @azure/arm-migrate +``` + + +## How to use + +### nodejs - Authentication, client creation and get assessmentOptions as an example written in TypeScript. + +```ts +import * as msRest from "ms-rest-js"; +import * as msRestAzure from "ms-rest-azure-js"; +import * as msRestNodeAuth from "ms-rest-nodeauth"; +import { AzureMigrate, AzureMigrateModels, AzureMigrateMappers } from "@azure/arm-migrate"; +const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; + +msRestNodeAuth.interactiveLogin().then((creds) => { + const client = new AzureMigrate(creds, subscriptionId); + const locationName = "testlocationName"; + client.assessmentOptions.get(locationName).then((result) => { + console.log("The result is:"); + console.log(result); + }); +}).catch((err) => { + console.error(err); +}); +``` + +### browser - Authentication, client creation and get assessmentOptions as an example written in JavaScript. +See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. + +- index.html +```html + + + + @azure/arm-migrate sample + + + + + + + + + +``` + +# Related projects + - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) diff --git a/packages/@azure/arm-migrate/lib/azureMigrate.ts b/packages/@azure/arm-migrate/lib/azureMigrate.ts index 48e178cca807..2ce93f23ec53 100644 --- a/packages/@azure/arm-migrate/lib/azureMigrate.ts +++ b/packages/@azure/arm-migrate/lib/azureMigrate.ts @@ -8,7 +8,7 @@ * regenerated. */ -import * as msRest from "@azure/ms-rest-js"; +import * as msRest from "ms-rest-js"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as operations from "./operations"; diff --git a/packages/@azure/arm-migrate/lib/azureMigrateContext.ts b/packages/@azure/arm-migrate/lib/azureMigrateContext.ts index 72bc3b910a84..1f1842d84865 100644 --- a/packages/@azure/arm-migrate/lib/azureMigrateContext.ts +++ b/packages/@azure/arm-migrate/lib/azureMigrateContext.ts @@ -9,8 +9,8 @@ */ import * as Models from "./models"; -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as msRest from "ms-rest-js"; +import * as msRestAzure from "ms-rest-azure-js"; const packageName = "@azure/arm-migrate"; const packageVersion = "0.1.0"; diff --git a/packages/@azure/arm-migrate/lib/models/index.ts b/packages/@azure/arm-migrate/lib/models/index.ts index d99928f20305..205b1cf6624d 100644 --- a/packages/@azure/arm-migrate/lib/models/index.ts +++ b/packages/@azure/arm-migrate/lib/models/index.ts @@ -8,8 +8,8 @@ * regenerated. */ -import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js"; -import * as msRest from "@azure/ms-rest-js"; +import { BaseResource, CloudError, AzureServiceClientOptions } from "ms-rest-azure-js"; +import * as msRest from "ms-rest-js"; export { BaseResource, CloudError }; @@ -362,9 +362,9 @@ export interface Assessment extends BaseResource { */ readonly monthlyStorageCost?: number; /** - * @member {AssessmentStatus} [status] Wheter the assessment has been created - * and is valid. Possible values include: 'Created', 'Updated', 'Running', - * 'Completed', 'Invalid' + * @member {AssessmentStatus} [status] Whether the assessment has been + * created and is valid. Possible values include: 'Created', 'Updated', + * 'Running', 'Completed', 'Invalid' * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ diff --git a/packages/@azure/arm-migrate/lib/models/mappers.ts b/packages/@azure/arm-migrate/lib/models/mappers.ts index 8c7c268ffbb9..4a9f81fd568d 100644 --- a/packages/@azure/arm-migrate/lib/models/mappers.ts +++ b/packages/@azure/arm-migrate/lib/models/mappers.ts @@ -8,8 +8,8 @@ * regenerated. */ -import { CloudErrorMapper, BaseResourceMapper } from "@azure/ms-rest-azure-js"; -import * as msRest from "@azure/ms-rest-js"; +import { CloudErrorMapper, BaseResourceMapper } from "ms-rest-azure-js"; +import * as msRest from "ms-rest-js"; export const CloudError = CloudErrorMapper; export const BaseResource = BaseResourceMapper; diff --git a/packages/@azure/arm-migrate/lib/models/parameters.ts b/packages/@azure/arm-migrate/lib/models/parameters.ts index 619bf688f870..4bfcee488eae 100644 --- a/packages/@azure/arm-migrate/lib/models/parameters.ts +++ b/packages/@azure/arm-migrate/lib/models/parameters.ts @@ -8,7 +8,7 @@ * regenerated. */ -import * as msRest from "@azure/ms-rest-js"; +import * as msRest from "ms-rest-js"; export const acceptLanguage: msRest.OperationParameter = { parameterPath: "acceptLanguage", diff --git a/packages/@azure/arm-migrate/lib/operations/assessedMachines.ts b/packages/@azure/arm-migrate/lib/operations/assessedMachines.ts index 505c9c19c2fa..c048777398d5 100644 --- a/packages/@azure/arm-migrate/lib/operations/assessedMachines.ts +++ b/packages/@azure/arm-migrate/lib/operations/assessedMachines.ts @@ -8,7 +8,7 @@ * regenerated. */ -import * as msRest from "@azure/ms-rest-js"; +import * as msRest from "ms-rest-js"; import * as Models from "../models"; import * as Mappers from "../models/assessedMachinesMappers"; import * as Parameters from "../models/parameters"; @@ -74,7 +74,7 @@ export class AssessedMachines { } /** - * Get an assessed machine with its size & cost estimnate that was evaluated in the specified + * Get an assessed machine with its size & cost estimate that was evaluated in the specified * assessment. * @summary Get an assessed machine. * @param resourceGroupName Name of the Azure Resource Group that project is part of. diff --git a/packages/@azure/arm-migrate/lib/operations/assessmentOptions.ts b/packages/@azure/arm-migrate/lib/operations/assessmentOptions.ts index 763193a07fcf..f77c5e042738 100644 --- a/packages/@azure/arm-migrate/lib/operations/assessmentOptions.ts +++ b/packages/@azure/arm-migrate/lib/operations/assessmentOptions.ts @@ -8,7 +8,7 @@ * regenerated. */ -import * as msRest from "@azure/ms-rest-js"; +import * as msRest from "ms-rest-js"; import * as Models from "../models"; import * as Mappers from "../models/assessmentOptionsMappers"; import * as Parameters from "../models/parameters"; diff --git a/packages/@azure/arm-migrate/lib/operations/assessments.ts b/packages/@azure/arm-migrate/lib/operations/assessments.ts index 839f1b3d5677..02b682c01d94 100644 --- a/packages/@azure/arm-migrate/lib/operations/assessments.ts +++ b/packages/@azure/arm-migrate/lib/operations/assessments.ts @@ -8,7 +8,7 @@ * regenerated. */ -import * as msRest from "@azure/ms-rest-js"; +import * as msRest from "ms-rest-js"; import * as Models from "../models"; import * as Mappers from "../models/assessmentsMappers"; import * as Parameters from "../models/parameters"; @@ -144,7 +144,7 @@ export class Assessments { /** * Create a new assessment with the given name and the specified settings. Since name of an - * assessment in a project is a unique identiefier, if an assessment with the name provided already + * assessment in a project is a unique identifier, if an assessment with the name provided already * exists, then the existing assessment is updated. * * Any PUT operation, resulting in either create or update on an assessment, will cause the diff --git a/packages/@azure/arm-migrate/lib/operations/groups.ts b/packages/@azure/arm-migrate/lib/operations/groups.ts index 2991d0648132..d2f6cd28f5ce 100644 --- a/packages/@azure/arm-migrate/lib/operations/groups.ts +++ b/packages/@azure/arm-migrate/lib/operations/groups.ts @@ -8,7 +8,7 @@ * regenerated. */ -import * as msRest from "@azure/ms-rest-js"; +import * as msRest from "ms-rest-js"; import * as Models from "../models"; import * as Mappers from "../models/groupsMappers"; import * as Parameters from "../models/parameters"; diff --git a/packages/@azure/arm-migrate/lib/operations/location.ts b/packages/@azure/arm-migrate/lib/operations/location.ts index 16e5e0b3c27e..29f5cb5e42ef 100644 --- a/packages/@azure/arm-migrate/lib/operations/location.ts +++ b/packages/@azure/arm-migrate/lib/operations/location.ts @@ -8,7 +8,7 @@ * regenerated. */ -import * as msRest from "@azure/ms-rest-js"; +import * as msRest from "ms-rest-js"; import * as Models from "../models"; import * as Mappers from "../models/locationMappers"; import * as Parameters from "../models/parameters"; diff --git a/packages/@azure/arm-migrate/lib/operations/machines.ts b/packages/@azure/arm-migrate/lib/operations/machines.ts index bc4a42f22626..3ada3e08b531 100644 --- a/packages/@azure/arm-migrate/lib/operations/machines.ts +++ b/packages/@azure/arm-migrate/lib/operations/machines.ts @@ -8,7 +8,7 @@ * regenerated. */ -import * as msRest from "@azure/ms-rest-js"; +import * as msRest from "ms-rest-js"; import * as Models from "../models"; import * as Mappers from "../models/machinesMappers"; import * as Parameters from "../models/parameters"; diff --git a/packages/@azure/arm-migrate/lib/operations/operations.ts b/packages/@azure/arm-migrate/lib/operations/operations.ts index 225b0aa45391..7741404a1f0a 100644 --- a/packages/@azure/arm-migrate/lib/operations/operations.ts +++ b/packages/@azure/arm-migrate/lib/operations/operations.ts @@ -8,7 +8,7 @@ * regenerated. */ -import * as msRest from "@azure/ms-rest-js"; +import * as msRest from "ms-rest-js"; import * as Models from "../models"; import * as Mappers from "../models/operationsMappers"; import * as Parameters from "../models/parameters"; diff --git a/packages/@azure/arm-migrate/lib/operations/projects.ts b/packages/@azure/arm-migrate/lib/operations/projects.ts index 1f9b4eabb1b4..d927622cf364 100644 --- a/packages/@azure/arm-migrate/lib/operations/projects.ts +++ b/packages/@azure/arm-migrate/lib/operations/projects.ts @@ -8,7 +8,7 @@ * regenerated. */ -import * as msRest from "@azure/ms-rest-js"; +import * as msRest from "ms-rest-js"; import * as Models from "../models"; import * as Mappers from "../models/projectsMappers"; import * as Parameters from "../models/parameters"; diff --git a/packages/@azure/arm-migrate/package.json b/packages/@azure/arm-migrate/package.json index caac0691f76f..72c3d7741ba6 100644 --- a/packages/@azure/arm-migrate/package.json +++ b/packages/@azure/arm-migrate/package.json @@ -4,8 +4,8 @@ "description": "AzureMigrate Library with typescript type definitions for node.js and browser.", "version": "0.1.0", "dependencies": { - "@azure/ms-rest-azure-js": "^1.1.0", - "@azure/ms-rest-js": "^1.1.0", + "ms-rest-azure-js": "^1.0.181", + "ms-rest-js": "^1.0.460", "tslib": "^1.9.3" }, "keywords": [ diff --git a/packages/@azure/arm-migrate/rollup.config.js b/packages/@azure/arm-migrate/rollup.config.js index e7a076f80d75..986e4c4a2270 100644 --- a/packages/@azure/arm-migrate/rollup.config.js +++ b/packages/@azure/arm-migrate/rollup.config.js @@ -4,15 +4,15 @@ import nodeResolve from "rollup-plugin-node-resolve"; */ const config = { input: './esm/azureMigrate.js', - external: ["@azure/ms-rest-js", "@azure/ms-rest-azure-js"], + external: ["ms-rest-js", "ms-rest-azure-js"], output: { file: "./dist/arm-migrate.js", format: "umd", name: "Azure.ArmMigrate", sourcemap: true, globals: { - "@azure/ms-rest-js": "msRest", - "@azure/ms-rest-azure-js": "msRestAzure" + "ms-rest-js": "msRest", + "ms-rest-azure-js": "msRestAzure" }, banner: `/* * Copyright (c) Microsoft Corporation. All rights reserved. diff --git a/packages/@azure/arm-migrate/tsconfig.json b/packages/@azure/arm-migrate/tsconfig.json index 51ea90961ce5..f32d1664f320 100644 --- a/packages/@azure/arm-migrate/tsconfig.json +++ b/packages/@azure/arm-migrate/tsconfig.json @@ -14,6 +14,6 @@ "outDir": "./esm", "importHelpers": true }, - "include": ["./lib/**/*.ts"], + "include": ["./lib/**/*"], "exclude": ["node_modules"] }