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/migrateManagement/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.
78 changes: 42 additions & 36 deletions lib/services/migrateManagement/README.md
Original file line number Diff line number Diff line change
@@ -1,36 +1,42 @@
# Microsoft Azure SDK for Node.js - AzureMigrate
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-migrate
```

## How to use

### Authentication, client creation and list projects as an example.

```javascript
const msRestAzure = require("ms-rest-azure");
const AzureMigrate = require("azure-arm-migrate");
msRestAzure.interactiveLogin().then((creds) => {
const subscriptionId = "<Subscription_Id>";
const client = new AzureMigrate(creds, subscriptionId);
const resourceGroupName = "testresourceGroupName";
return client.projects.list(resourceGroupName).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-migrate
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 - AzureMigrate
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-migrate
```

### How to use

#### Authentication, client creation and get assessmentOptions as an example.

```javascript
const msRestAzure = require("ms-rest-azure");
const AzureMigrate = require("azure-arm-migrate");
msRestAzure.interactiveLogin().then((creds) => {
const subscriptionId = "<Subscription_Id>";
const client = new AzureMigrate(creds, subscriptionId);
const locationName = "testlocationName";
return client.assessmentOptions.get(locationName).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)
6 changes: 4 additions & 2 deletions lib/services/migrateManagement/lib/azureMigrate.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ export default class AzureMigrate extends AzureServiceClient {
*
* @param {string} [options.acceptLanguage] - Standard request header. Used by service to respond to client in appropriate language.
*
* @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);
Expand All @@ -56,6 +56,8 @@ export default class AzureMigrate extends AzureServiceClient {
generateClientRequestId: boolean;

// Operation groups
location: operations.Location;
assessmentOptions: operations.AssessmentOptions;
projects: operations.Projects;
machines: operations.Machines;
groups: operations.Groups;
Expand Down
6 changes: 4 additions & 2 deletions lib/services/migrateManagement/lib/azureMigrate.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ class AzureMigrate extends ServiceClient {
* {@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] - Standard request header. Used by service to respond to client in appropriate language.
* @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 {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) {
Expand Down Expand Up @@ -71,6 +71,8 @@ class AzureMigrate extends ServiceClient {
if(options.generateClientRequestId !== null && options.generateClientRequestId !== undefined) {
this.generateClientRequestId = options.generateClientRequestId;
}
this.location = new operations.Location(this);
this.assessmentOptions = new operations.AssessmentOptions(this);
this.projects = new operations.Projects(this);
this.machines = new operations.Machines(this);
this.groups = new operations.Groups(this);
Expand Down
56 changes: 32 additions & 24 deletions lib/services/migrateManagement/lib/models/assessedDisk.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,51 +17,51 @@
class AssessedDisk {
/**
* Create a AssessedDisk.
* @member {string} [name] Name of the assessed disk.
* @member {number} [gigabytesProvisioned] Gigabytes of storage provisioned
* @property {string} [name] Name of the assessed disk.
* @property {number} [gigabytesProvisioned] Gigabytes of storage provisioned
* for this disk.
* @member {number} [gigabytesConsumed] Gigabytes of storage consumed by this
* disk.
* @member {number} [megabytesPerSecondOfRead] Disk throughput in MegaBytes
* @property {number} [gigabytesConsumed] Gigabytes of storage consumed by
* this disk.
* @property {number} [megabytesPerSecondOfRead] Disk throughput in MegaBytes
* per second.
* @member {number} [megabytesPerSecondOfReadDataPointsExpected] Expected
* @property {number} [megabytesPerSecondOfReadDataPointsExpected] Expected
* data points for MegaBytes per second of read.
* @member {number} [megabytesPerSecondOfReadDataPointsReceived] Received
* @property {number} [megabytesPerSecondOfReadDataPointsReceived] Received
* data points for MegaBytes per second of read.
* @member {number} [megabytesPerSecondOfWrite] Disk throughput in MegaBytes
* per second.
* @member {number} [megabytesPerSecondOfWriteDataPointsExpected] Expected
* @property {number} [megabytesPerSecondOfWrite] Disk throughput in
* MegaBytes per second.
* @property {number} [megabytesPerSecondOfWriteDataPointsExpected] Expected
* data points for MegaBytes per second of write.
* @member {number} [megabytesPerSecondOfWriteDataPointsReceived] Received
* @property {number} [megabytesPerSecondOfWriteDataPointsReceived] Received
* data points for MegaBytes per second of write.
* @member {number} [numberOfReadOperationsPerSecond] Number of read
* @property {number} [numberOfReadOperationsPerSecond] Number of read
* operations per second for the disk.
* @member {number} [numberOfReadOperationsPerSecondDataPointsExpected]
* @property {number} [numberOfReadOperationsPerSecondDataPointsExpected]
* Expected number of data points for read operations per second.
* @member {number} [numberOfReadOperationsPerSecondDataPointsReceived]
* @property {number} [numberOfReadOperationsPerSecondDataPointsReceived]
* Received number of data points for read operations per second.
* @member {number} [numberOfWriteOperationsPerSecond] Number of read and
* @property {number} [numberOfWriteOperationsPerSecond] Number of read and
* write operations per second for the disk.
* @member {number} [numberOfWriteOperationsPerSecondDataPointsExpected]
* @property {number} [numberOfWriteOperationsPerSecondDataPointsExpected]
* Expected number of data points for write operations per second.
* @member {number} [numberOfWriteOperationsPerSecondDataPointsReceived]
* @property {number} [numberOfWriteOperationsPerSecondDataPointsReceived]
* Received number of data points for write operations per second.
* @member {number} [monthlyStorageCost] Estimated aggregate storage cost for
* a 31-day month for this disk.
* @member {string} [recommendedDiskType] Storage type selected for this
* @property {number} [monthlyStorageCost] Estimated aggregate storage cost
* for a 31-day month for this disk.
* @property {string} [recommendedDiskType] Storage type selected for this
* disk. Possible values include: 'Unknown', 'Standard', 'Premium'
* @member {string} [recommendedDiskSize] Recommended Azure size for the
* @property {string} [recommendedDiskSize] Recommended Azure size for the
* disk, given utilization data and preferences set on Assessment. Possible
* values include: 'Unknown', 'Standard_S4', 'Standard_S6', 'Standard_S10',
* 'Standard_S20', 'Standard_S30', 'Standard_S40', 'Standard_S50',
* 'Premium_P4', 'Premium_P6', 'Premium_P10', 'Premium_P20', 'Premium_P30',
* 'Premium_P40', 'Premium_P50'
* @member {number} [gigabytesForRecommendedDiskSize] Gigabytes of storage
* @property {number} [gigabytesForRecommendedDiskSize] Gigabytes of storage
* provided by the recommended Azure disk size.
* @member {string} [suitability] Whether this disk is suitable for Azure.
* @property {string} [suitability] Whether this disk is suitable for Azure.
* Possible values include: 'Unknown', 'NotSuitable', 'Suitable',
* 'ConditionallySuitable', 'ReadinessUnknown'
* @member {string} [suitabilityExplanation] If disk is suitable, this
* @property {string} [suitabilityExplanation] If disk is suitable, this
* explains the reasons and mitigation steps. Possible values include:
* 'Unknown', 'NotApplicable', 'DiskSizeGreaterThanSupported',
* 'NoSuitableDiskSizeForIops', 'NoSuitableDiskSizeForThroughput',
Expand Down Expand Up @@ -120,6 +120,7 @@ class AssessedDisk {
},
megabytesPerSecondOfReadDataPointsExpected: {
required: false,
nullable: true,
readOnly: true,
serializedName: 'megabytesPerSecondOfReadDataPointsExpected',
type: {
Expand All @@ -128,6 +129,7 @@ class AssessedDisk {
},
megabytesPerSecondOfReadDataPointsReceived: {
required: false,
nullable: true,
readOnly: true,
serializedName: 'megabytesPerSecondOfReadDataPointsReceived',
type: {
Expand All @@ -144,6 +146,7 @@ class AssessedDisk {
},
megabytesPerSecondOfWriteDataPointsExpected: {
required: false,
nullable: true,
readOnly: true,
serializedName: 'megabytesPerSecondOfWriteDataPointsExpected',
type: {
Expand All @@ -152,6 +155,7 @@ class AssessedDisk {
},
megabytesPerSecondOfWriteDataPointsReceived: {
required: false,
nullable: true,
readOnly: true,
serializedName: 'megabytesPerSecondOfWriteDataPointsReceived',
type: {
Expand All @@ -168,6 +172,7 @@ class AssessedDisk {
},
numberOfReadOperationsPerSecondDataPointsExpected: {
required: false,
nullable: true,
readOnly: true,
serializedName: 'numberOfReadOperationsPerSecondDataPointsExpected',
type: {
Expand All @@ -176,6 +181,7 @@ class AssessedDisk {
},
numberOfReadOperationsPerSecondDataPointsReceived: {
required: false,
nullable: true,
readOnly: true,
serializedName: 'numberOfReadOperationsPerSecondDataPointsReceived',
type: {
Expand All @@ -192,6 +198,7 @@ class AssessedDisk {
},
numberOfWriteOperationsPerSecondDataPointsExpected: {
required: false,
nullable: true,
readOnly: true,
serializedName: 'numberOfWriteOperationsPerSecondDataPointsExpected',
type: {
Expand All @@ -200,6 +207,7 @@ class AssessedDisk {
},
numberOfWriteOperationsPerSecondDataPointsReceived: {
required: false,
nullable: true,
readOnly: true,
serializedName: 'numberOfWriteOperationsPerSecondDataPointsReceived',
type: {
Expand Down
Loading