diff --git a/sdk/migrate/arm-migrate/LICENSE.txt b/sdk/migrate/arm-migrate/LICENSE.txt index a70e8cf66038..2d3163745319 100644 --- a/sdk/migrate/arm-migrate/LICENSE.txt +++ b/sdk/migrate/arm-migrate/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2018 Microsoft +Copyright (c) 2021 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 diff --git a/sdk/migrate/arm-migrate/README.md b/sdk/migrate/arm-migrate/README.md index 6e9f375c655e..97dab237a9b1 100644 --- a/sdk/migrate/arm-migrate/README.md +++ b/sdk/migrate/arm-migrate/README.md @@ -1,6 +1,6 @@ -## Azure AzureMigrate SDK for JavaScript +## Azure AzureMigrateV2 SDK for JavaScript -This package contains an isomorphic SDK for AzureMigrate. +This package contains an isomorphic SDK for AzureMigrateV2. ### Currently supported environments @@ -9,33 +9,32 @@ This package contains an isomorphic SDK for AzureMigrate. ### How to Install -``` +```bash npm install @azure/arm-migrate ``` ### How to use -#### nodejs - Authentication, client creation and get assessmentOptions as an example written in TypeScript. +#### nodejs - client creation and listBySubscription projects as an example written in TypeScript. ##### Install @azure/ms-rest-nodeauth -``` -npm install @azure/ms-rest-nodeauth +- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`. +```bash +npm install @azure/ms-rest-nodeauth@"^3.0.0" ``` ##### 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"; +While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package +```typescript +const msRestNodeAuth = require("@azure/ms-rest-nodeauth"); +const { AzureMigrateV2 } = require("@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) => { + const client = new AzureMigrateV2(creds, subscriptionId); + client.projects.listBySubscription().then((result) => { console.log("The result is:"); console.log(result); }); @@ -44,11 +43,11 @@ msRestNodeAuth.interactiveLogin().then((creds) => { }); ``` -#### browser - Authentication, client creation and get assessmentOptions as an example written in JavaScript. +#### browser - Authentication, client creation and listBySubscription projects as an example written in JavaScript. ##### Install @azure/ms-rest-browserauth -``` +```bash npm install @azure/ms-rest-browserauth ``` @@ -77,9 +76,8 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to // may cause redirects authManager.login(); } - const client = new Azure.ArmMigrate.AzureMigrate(res.creds, subscriptionId); - const locationName = "testlocationName"; - client.assessmentOptions.get(locationName).then((result) => { + const client = new Azure.ArmMigrate.AzureMigrateV2(res.creds, subscriptionId); + client.projects.listBySubscription().then((result) => { console.log("The result is:"); console.log(result); }).catch((err) => { @@ -97,5 +95,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) - -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fmigrate%2Farm-migrate%2FREADME.png) +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/migrate/arm-migrate/README.png) diff --git a/sdk/migrate/arm-migrate/package.json b/sdk/migrate/arm-migrate/package.json index 49b113f1bd65..d615362cb2d5 100644 --- a/sdk/migrate/arm-migrate/package.json +++ b/sdk/migrate/arm-migrate/package.json @@ -1,12 +1,12 @@ { "name": "@azure/arm-migrate", "author": "Microsoft Corporation", - "description": "AzureMigrate Library with typescript type definitions for node.js and browser.", + "description": "AzureMigrateV2 Library with typescript type definitions for node.js and browser.", "version": "1.1.0", "dependencies": { - "@azure/ms-rest-azure-js": "^1.1.0", - "@azure/ms-rest-js": "^1.1.0", - "tslib": "^1.9.3" + "@azure/ms-rest-azure-js": "^2.0.1", + "@azure/ms-rest-js": "^2.0.4", + "tslib": "^1.10.0" }, "keywords": [ "node", @@ -17,21 +17,22 @@ ], "license": "MIT", "main": "./dist/arm-migrate.js", - "module": "./esm/azureMigrate.js", - "types": "./esm/azureMigrate.d.ts", + "module": "./esm/azureMigrateV2.js", + "types": "./esm/azureMigrateV2.d.ts", "devDependencies": { - "typescript": "^3.1.1", - "rollup": "^0.66.2", - "rollup-plugin-node-resolve": "^3.4.0", - "uglify-js": "^3.4.9" + "typescript": "^3.5.3", + "rollup": "^1.18.0", + "rollup-plugin-node-resolve": "^5.2.0", + "rollup-plugin-sourcemaps": "^0.4.2", + "uglify-js": "^3.6.0" }, - "homepage": "https://github.com/azure/azure-sdk-for-js/tree/master/sdk/migrate/arm-migrate", + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/migrate/arm-migrate", "repository": { "type": "git", - "url": "https://github.com/azure/azure-sdk-for-js.git" + "url": "https://github.com/Azure/azure-sdk-for-js.git" }, "bugs": { - "url": "https://github.com/azure/azure-sdk-for-js/issues" + "url": "https://github.com/Azure/azure-sdk-for-js/issues" }, "files": [ "dist/**/*.js", @@ -43,6 +44,7 @@ "esm/**/*.d.ts", "esm/**/*.d.ts.map", "src/**/*.ts", + "README.md", "rollup.config.js", "tsconfig.json" ], diff --git a/sdk/migrate/arm-migrate/rollup.config.js b/sdk/migrate/arm-migrate/rollup.config.js index e7a076f80d75..70519594e894 100644 --- a/sdk/migrate/arm-migrate/rollup.config.js +++ b/sdk/migrate/arm-migrate/rollup.config.js @@ -1,10 +1,16 @@ +import rollup from "rollup"; import nodeResolve from "rollup-plugin-node-resolve"; +import sourcemaps from "rollup-plugin-sourcemaps"; + /** - * @type {import('rollup').RollupFileOptions} + * @type {rollup.RollupFileOptions} */ const config = { - input: './esm/azureMigrate.js', - external: ["@azure/ms-rest-js", "@azure/ms-rest-azure-js"], + input: "./esm/azureMigrateV2.js", + external: [ + "@azure/ms-rest-js", + "@azure/ms-rest-azure-js" + ], output: { file: "./dist/arm-migrate.js", format: "umd", @@ -15,17 +21,17 @@ const config = { "@azure/ms-rest-azure-js": "msRestAzure" }, banner: `/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */` }, plugins: [ - nodeResolve({ module: true }) + nodeResolve({ mainFields: ['module', 'main'] }), + sourcemaps() ] }; + export default config; diff --git a/sdk/migrate/arm-migrate/src/azureMigrate.ts b/sdk/migrate/arm-migrate/src/azureMigrateV2.ts similarity index 51% rename from sdk/migrate/arm-migrate/src/azureMigrate.ts rename to sdk/migrate/arm-migrate/src/azureMigrateV2.ts index 48e178cca807..981abb189619 100644 --- a/sdk/migrate/arm-migrate/src/azureMigrate.ts +++ b/sdk/migrate/arm-migrate/src/azureMigrateV2.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -12,35 +11,43 @@ import * as msRest from "@azure/ms-rest-js"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as operations from "./operations"; -import { AzureMigrateContext } from "./azureMigrateContext"; +import { AzureMigrateV2Context } from "./azureMigrateV2Context"; -class AzureMigrate extends AzureMigrateContext { +class AzureMigrateV2 extends AzureMigrateV2Context { // Operation groups - location: operations.Location; - assessmentOptions: operations.AssessmentOptions; projects: operations.Projects; machines: operations.Machines; groups: operations.Groups; assessments: operations.Assessments; assessedMachines: operations.AssessedMachines; + hyperVCollectors: operations.HyperVCollectors; + serverCollectors: operations.ServerCollectors; + vMwareCollectors: operations.VMwareCollectors; + importCollectors: operations.ImportCollectors; + privateEndpointConnection: operations.PrivateEndpointConnectionOperations; + privateLinkResource: operations.PrivateLinkResourceOperations; operations: operations.Operations; /** - * Initializes a new instance of the AzureMigrate class. + * Initializes a new instance of the AzureMigrateV2 class. * @param credentials Credentials needed for the client to connect to Azure. * @param subscriptionId Azure Subscription Id in which project was created. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.AzureMigrateOptions) { + constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.AzureMigrateV2Options) { super(credentials, subscriptionId, options); - 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); this.assessments = new operations.Assessments(this); this.assessedMachines = new operations.AssessedMachines(this); + this.hyperVCollectors = new operations.HyperVCollectors(this); + this.serverCollectors = new operations.ServerCollectors(this); + this.vMwareCollectors = new operations.VMwareCollectors(this); + this.importCollectors = new operations.ImportCollectors(this); + this.privateEndpointConnection = new operations.PrivateEndpointConnectionOperations(this); + this.privateLinkResource = new operations.PrivateLinkResourceOperations(this); this.operations = new operations.Operations(this); } } @@ -48,9 +55,9 @@ class AzureMigrate extends AzureMigrateContext { // Operation Specifications export { - AzureMigrate, - AzureMigrateContext, - Models as AzureMigrateModels, - Mappers as AzureMigrateMappers + AzureMigrateV2, + AzureMigrateV2Context, + Models as AzureMigrateV2Models, + Mappers as AzureMigrateV2Mappers }; export * from "./operations"; diff --git a/sdk/migrate/arm-migrate/src/azureMigrateContext.ts b/sdk/migrate/arm-migrate/src/azureMigrateV2Context.ts similarity index 81% rename from sdk/migrate/arm-migrate/src/azureMigrateContext.ts rename to sdk/migrate/arm-migrate/src/azureMigrateV2Context.ts index 72bc3b910a84..19f04953a82b 100644 --- a/sdk/migrate/arm-migrate/src/azureMigrateContext.ts +++ b/sdk/migrate/arm-migrate/src/azureMigrateV2Context.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -13,20 +12,20 @@ import * as msRest from "@azure/ms-rest-js"; import * as msRestAzure from "@azure/ms-rest-azure-js"; const packageName = "@azure/arm-migrate"; -const packageVersion = "0.1.0"; +const packageVersion = "1.1.0"; -export class AzureMigrateContext extends msRestAzure.AzureServiceClient { +export class AzureMigrateV2Context extends msRestAzure.AzureServiceClient { credentials: msRest.ServiceClientCredentials; subscriptionId: string; apiVersion?: string; /** - * Initializes a new instance of the AzureMigrate class. + * Initializes a new instance of the AzureMigrateV2 class. * @param credentials Credentials needed for the client to connect to Azure. * @param subscriptionId Azure Subscription Id in which project was created. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.AzureMigrateOptions) { + constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.AzureMigrateV2Options) { if (credentials == undefined) { throw new Error('\'credentials\' cannot be null.'); } @@ -44,7 +43,8 @@ export class AzureMigrateContext extends msRestAzure.AzureServiceClient { super(credentials, options); - this.apiVersion = '2018-02-02'; + this.apiVersion = '2019-10-01'; + this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com"; this.requestContentType = "application/json; charset=utf-8"; diff --git a/sdk/migrate/arm-migrate/src/models/assessedMachinesMappers.ts b/sdk/migrate/arm-migrate/src/models/assessedMachinesMappers.ts index fb046ae3d83a..d54e65b4e32e 100644 --- a/sdk/migrate/arm-migrate/src/models/assessedMachinesMappers.ts +++ b/sdk/migrate/arm-migrate/src/models/assessedMachinesMappers.ts @@ -1,28 +1,47 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { - AssessedMachineResultList, - AssessedMachine, - BaseResource, AssessedDisk, - AssessedNetworkAdapter, + AssessedMachine, + AssessedMachineProperties, + AssessedMachineResultList, + AssessedMachinesGetHeaders, AssessedMachinesListByAssessmentHeaders, + AssessedNetworkAdapter, + Assessment, + AssessmentOptions, + AssessmentOptionsProperties, + AssessmentProperties, + BaseResource, CloudError, - AssessedMachinesGetHeaders, - Project, + CollectorAgentProperties, + CollectorBodyAgentSpnProperties, + CollectorProperties, + Disk, Group, - Assessment, + GroupProperties, + HyperVCollector, + ImportCollector, + ImportCollectorProperties, Machine, - Disk, + MachineProperties, NetworkAdapter, - ProjectKey + PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateLinkResource, + PrivateLinkResourceProperties, + PrivateLinkServiceConnectionState, + Project, + ProjectProperties, + ResourceId, + ServerCollector, + VmFamily, + VmUptime, + VMwareCollector } from "../models/mappers"; - diff --git a/sdk/migrate/arm-migrate/src/models/assessmentOptionsMappers.ts b/sdk/migrate/arm-migrate/src/models/assessmentOptionsMappers.ts deleted file mode 100644 index cfc67bbc8b1e..000000000000 --- a/sdk/migrate/arm-migrate/src/models/assessmentOptionsMappers.ts +++ /dev/null @@ -1,16 +0,0 @@ -/* - * 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. - */ - -export { - AssessmentOptionsResultList, - VmFamily, - CloudError -} from "../models/mappers"; - diff --git a/sdk/migrate/arm-migrate/src/models/assessmentsMappers.ts b/sdk/migrate/arm-migrate/src/models/assessmentsMappers.ts index c27d7ad45681..2785b2b60b69 100644 --- a/sdk/migrate/arm-migrate/src/models/assessmentsMappers.ts +++ b/sdk/migrate/arm-migrate/src/models/assessmentsMappers.ts @@ -1,33 +1,52 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { - AssessmentResultList, + AssessedDisk, + AssessedMachine, + AssessedMachineProperties, + AssessedNetworkAdapter, Assessment, - BaseResource, - AssessmentsListByGroupHeaders, - CloudError, - AssessmentsListByProjectHeaders, - AssessmentsGetHeaders, + AssessmentOptions, + AssessmentOptionsProperties, + AssessmentProperties, + AssessmentResultList, AssessmentsCreateHeaders, AssessmentsDeleteHeaders, - DownloadUrl, + AssessmentsGetHeaders, AssessmentsGetReportDownloadUrlHeaders, - Project, + AssessmentsListByGroupHeaders, + AssessmentsListByProjectHeaders, + BaseResource, + CloudError, + CollectorAgentProperties, + CollectorBodyAgentSpnProperties, + CollectorProperties, + Disk, + DownloadUrl, Group, + GroupProperties, + HyperVCollector, + ImportCollector, + ImportCollectorProperties, Machine, - Disk, + MachineProperties, NetworkAdapter, - AssessedMachine, - AssessedDisk, - AssessedNetworkAdapter, - ProjectKey + PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateLinkResource, + PrivateLinkResourceProperties, + PrivateLinkServiceConnectionState, + Project, + ProjectProperties, + ResourceId, + ServerCollector, + VmFamily, + VmUptime, + VMwareCollector } from "../models/mappers"; - diff --git a/sdk/migrate/arm-migrate/src/models/groupsMappers.ts b/sdk/migrate/arm-migrate/src/models/groupsMappers.ts index 70b40e85b646..1114e9ac549f 100644 --- a/sdk/migrate/arm-migrate/src/models/groupsMappers.ts +++ b/sdk/migrate/arm-migrate/src/models/groupsMappers.ts @@ -1,30 +1,52 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { - GroupResultList, - Group, + AssessedDisk, + AssessedMachine, + AssessedMachineProperties, + AssessedNetworkAdapter, + Assessment, + AssessmentOptions, + AssessmentOptionsProperties, + AssessmentProperties, BaseResource, - GroupsListByProjectHeaders, CloudError, - GroupsGetHeaders, + CollectorAgentProperties, + CollectorBodyAgentSpnProperties, + CollectorProperties, + Disk, + Group, + GroupBodyProperties, + GroupProperties, + GroupResultList, GroupsCreateHeaders, GroupsDeleteHeaders, - Project, - Assessment, + GroupsGetHeaders, + GroupsListByProjectHeaders, + GroupsUpdateMachinesHeaders, + HyperVCollector, + ImportCollector, + ImportCollectorProperties, Machine, - Disk, + MachineProperties, NetworkAdapter, - AssessedMachine, - AssessedDisk, - AssessedNetworkAdapter, - ProjectKey + PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateLinkResource, + PrivateLinkResourceProperties, + PrivateLinkServiceConnectionState, + Project, + ProjectProperties, + ResourceId, + ServerCollector, + UpdateGroupBody, + VmFamily, + VmUptime, + VMwareCollector } from "../models/mappers"; - diff --git a/sdk/migrate/arm-migrate/src/models/hyperVCollectorsMappers.ts b/sdk/migrate/arm-migrate/src/models/hyperVCollectorsMappers.ts new file mode 100644 index 000000000000..073eaa52fc1d --- /dev/null +++ b/sdk/migrate/arm-migrate/src/models/hyperVCollectorsMappers.ts @@ -0,0 +1,49 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + AssessedDisk, + AssessedMachine, + AssessedMachineProperties, + AssessedNetworkAdapter, + Assessment, + AssessmentOptions, + AssessmentOptionsProperties, + AssessmentProperties, + BaseResource, + CloudError, + CollectorAgentProperties, + CollectorBodyAgentSpnProperties, + CollectorProperties, + Disk, + Group, + GroupProperties, + HyperVCollector, + HyperVCollectorList, + HyperVCollectorsCreateHeaders, + HyperVCollectorsDeleteHeaders, + HyperVCollectorsGetHeaders, + HyperVCollectorsListByProjectHeaders, + ImportCollector, + ImportCollectorProperties, + Machine, + MachineProperties, + NetworkAdapter, + PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateLinkResource, + PrivateLinkResourceProperties, + PrivateLinkServiceConnectionState, + Project, + ProjectProperties, + ResourceId, + ServerCollector, + VmFamily, + VmUptime, + VMwareCollector +} from "../models/mappers"; diff --git a/sdk/migrate/arm-migrate/src/models/importCollectorsMappers.ts b/sdk/migrate/arm-migrate/src/models/importCollectorsMappers.ts new file mode 100644 index 000000000000..8455bb6be412 --- /dev/null +++ b/sdk/migrate/arm-migrate/src/models/importCollectorsMappers.ts @@ -0,0 +1,49 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + AssessedDisk, + AssessedMachine, + AssessedMachineProperties, + AssessedNetworkAdapter, + Assessment, + AssessmentOptions, + AssessmentOptionsProperties, + AssessmentProperties, + BaseResource, + CloudError, + CollectorAgentProperties, + CollectorBodyAgentSpnProperties, + CollectorProperties, + Disk, + Group, + GroupProperties, + HyperVCollector, + ImportCollector, + ImportCollectorList, + ImportCollectorProperties, + ImportCollectorsCreateHeaders, + ImportCollectorsDeleteHeaders, + ImportCollectorsGetHeaders, + ImportCollectorsListByProjectHeaders, + Machine, + MachineProperties, + NetworkAdapter, + PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateLinkResource, + PrivateLinkResourceProperties, + PrivateLinkServiceConnectionState, + Project, + ProjectProperties, + ResourceId, + ServerCollector, + VmFamily, + VmUptime, + VMwareCollector +} from "../models/mappers"; diff --git a/sdk/migrate/arm-migrate/src/models/index.ts b/sdk/migrate/arm-migrate/src/models/index.ts index d99928f20305..7b0c779f8b6d 100644 --- a/sdk/migrate/arm-migrate/src/models/index.ts +++ b/sdk/migrate/arm-migrate/src/models/index.ts @@ -1,11 +1,9 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js"; @@ -13,1910 +11,2355 @@ import * as msRest from "@azure/ms-rest-js"; export { BaseResource, CloudError }; - /** - * @interface - * An interface representing Project. - * Azure Migrate Project. - * - * @extends BaseResource + * ARM id for a resource. */ -export interface Project extends BaseResource { +export interface ResourceId { /** - * @member {string} [id] Path reference to this project - * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/projects/{projectName} - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly id?: string; +} + +/** + * State of a private endpoint connection. + */ +export interface PrivateLinkServiceConnectionState { + /** + * Connection status of the private endpoint connection. Possible values include: 'Approved', + * 'Pending', 'Rejected', 'Disconnected' + */ + status?: Status; + /** + * Description of the private endpoint connection. + */ + description?: string; + /** + * Actions required on the private endpoint connection. + */ + actionsRequired?: string; +} + +/** + * Private endpoint connection properties. + */ +export interface PrivateEndpointConnectionProperties { + /** + * Indicates whether there is an ongoing operation on the private endpoint. Possible values + * include: 'Accepted', 'InProgress', 'Succeeded', 'Failed' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: ProvisioningState1; + /** + * ARM id for the private endpoint resource corresponding to the connection. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly privateEndpoint?: ResourceId; + /** + * State of the private endpoint connection. + */ + privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState; +} + +/** + * A private endpoint connection for a project. + */ +export interface PrivateEndpointConnection extends BaseResource { /** - * @member {string} [name] Name of the project. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Name of the private endpoint endpoint connection. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly name?: string; /** - * @member {string} [type] Type of the object = [Microsoft.Migrate/projects]. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Type of the object = [Microsoft.Migrate/assessmentProjects/privateEndpointConnections]. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly type?: string; /** - * @member {string} [eTag] For optimistic concurrency control. + * For optimistic concurrency control. */ eTag?: string; /** - * @member {string} [location] Azure location in which project is created. + * Path reference to this private endpoint endpoint connection. + * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/privateEndpointConnections/{privateEndpointConnectionName} + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - location?: string; + readonly id?: string; /** - * @member {any} [tags] Tags provided by Azure Tagging service. + * Properties of the private endpoint endpoint connection. */ - tags?: any; + properties: PrivateEndpointConnectionProperties; +} + +/** + * Properties of a project. + */ +export interface ProjectProperties { /** - * @member {Date} [createdTimestamp] Time when this project was created. - * Date-Time represented in ISO-8601 format. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Time when this project was created. Date-Time represented in ISO-8601 format. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly createdTimestamp?: Date; /** - * @member {Date} [updatedTimestamp] Time when this project was last updated. - * Date-Time represented in ISO-8601 format. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Time when this project was last updated. Date-Time represented in ISO-8601 format. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly updatedTimestamp?: Date; /** - * @member {DiscoveryStatus} [discoveryStatus] Reports whether project is - * under discovery. Possible values include: 'Unknown', 'NotStarted', - * 'InProgress', 'Completed' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Endpoint at which the collector agent can call agent REST API. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly discoveryStatus?: DiscoveryStatus; + readonly serviceEndpoint?: string; /** - * @member {string} [customerWorkspaceId] ARM ID of the Service Map workspace - * created by user. + * Assessment solution ARM id tracked by Microsoft.Migrate/migrateProjects. */ - customerWorkspaceId?: string; + assessmentSolutionId?: string; /** - * @member {string} [customerWorkspaceLocation] Location of the Service Map - * workspace created by user. + * Assessment project status. Possible values include: 'Active', 'Inactive' */ - customerWorkspaceLocation?: string; + projectStatus?: ProjectStatus; /** - * @member {Date} [lastDiscoveryTimestamp] Time when this project was - * created. Date-Time represented in ISO-8601 format. This value will be null - * until discovery is complete. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The ARM id of service map workspace created by customer. */ - readonly lastDiscoveryTimestamp?: Date; + customerWorkspaceId?: string; /** - * @member {string} [lastDiscoverySessionId] Session id of the last - * discovery. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Location of service map workspace created by customer. */ - readonly lastDiscoverySessionId?: string; + customerWorkspaceLocation?: string; /** - * @member {number} [numberOfGroups] Number of groups created in the project. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Number of groups created in the project. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly numberOfGroups?: number; /** - * @member {number} [numberOfMachines] Number of machines in the project. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Number of machines in the project. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly numberOfMachines?: number; /** - * @member {number} [numberOfAssessments] Number of assessments created in - * the project. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Number of assessments created in the project. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly numberOfAssessments?: number; /** - * @member {Date} [lastAssessmentTimestamp] Time when last assessment was - * created. Date-Time represented in ISO-8601 format. This value will be null - * until assessment is created. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Time when last assessment was created. Date-Time represented in ISO-8601 format. This value + * will be null until assessment is created. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly lastAssessmentTimestamp?: Date; /** - * @member {ProvisioningState} [provisioningState] Provisioning state of the - * project. Possible values include: 'Accepted', 'Creating', 'Deleting', - * 'Failed', 'Moving', 'Succeeded' + * This value can be set to 'enabled' to avoid breaking changes on existing customer resources + * and templates. If set to 'disabled', traffic over public interface is not allowed, and private + * endpoint connections would be the exclusive access method. */ - provisioningState?: ProvisioningState; + publicNetworkAccess?: string; + /** + * The list of private endpoint connections to the project. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly privateEndpointConnections?: PrivateEndpointConnection[]; + /** + * The ARM id of the storage account used for interactions when public access is disabled. + */ + customerStorageAccountArmId?: string; + /** + * Provisioning state of the project. Possible values include: 'Accepted', 'Creating', + * 'Deleting', 'Failed', 'Moving', 'Succeeded' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: ProvisioningState; } /** - * @interface - * An interface representing Group. - * A group created in a Migration project. - * - * @extends BaseResource + * Azure Migrate Project. */ -export interface Group extends BaseResource { +export interface Project extends BaseResource { /** - * @member {string} [id] Path reference to this group. - * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/projects/{projectName}/groups/{groupName} - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Path reference to this project + * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName} + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly id?: string; /** - * @member {string} [name] Name of the group. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Name of the project. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly name?: string; /** - * @member {string} [eTag] For optimistic concurrency control. + * Type of the object = [Microsoft.Migrate/assessmentProjects]. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * For optimistic concurrency control. */ eTag?: string; /** - * @member {string} [type] Type of the object = - * [Microsoft.Migrate/projects/groups]. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Azure location in which project is created. */ - readonly type?: string; + location?: string; + /** + * Tags provided by Azure Tagging service. + */ + tags?: any; + /** + * Properties of the project. + */ + properties?: ProjectProperties; +} + +/** + * Properties of group resource. + */ +export interface GroupProperties { + /** + * Whether the group 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.** + */ + readonly groupStatus?: GroupStatus; /** - * @member {string[]} machines List of machine names that are part of this - * group. + * Number of machines part of this group. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - machines: string[]; + readonly machineCount?: number; /** - * @member {string[]} [assessments] List of References to Assessments created - * on this group. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * List of References to Assessments created on this group. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly assessments?: string[]; /** - * @member {Date} [createdTimestamp] Time when this project was created. - * Date-Time represented in ISO-8601 format. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * If the assessments are in running state. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly areAssessmentsRunning?: boolean; + /** + * Time when this group was created. Date-Time represented in ISO-8601 format. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly createdTimestamp?: Date; /** - * @member {Date} [updatedTimestamp] Time when this project was last updated. - * Date-Time represented in ISO-8601 format. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Time when this group was last updated. Date-Time represented in ISO-8601 format. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly updatedTimestamp?: Date; + /** + * The type of group. + */ + groupType?: string; } /** - * @interface - * An interface representing Assessment. - * An assessment created for a group in the Migration project. - * - * @extends BaseResource + * A group created in a Migration project. */ -export interface Assessment extends BaseResource { +export interface Group extends BaseResource { /** - * @member {string} [id] Path reference to this assessment. - * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/projects/{projectName}/groups/{groupName}/assessment/{assessmentName} - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Path reference to this group. + * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/groups/{groupName} + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly id?: string; /** - * @member {string} [name] Unique name of an assessment. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Name of the group. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly name?: string; /** - * @member {string} [eTag] For optimistic concurrency control. + * For optimistic concurrency control. */ eTag?: string; /** - * @member {string} [type] Type of the object = - * [Microsoft.Migrate/projects/groups/assessments]. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Type of the object = [Microsoft.Migrate/assessmentProjects/groups]. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly type?: string; /** - * @member {AzureLocation} azureLocation Target Azure location for which the - * machines should be assessed. These enums are the same as used by Compute - * API. Possible values include: 'Unknown', 'EastAsia', 'SoutheastAsia', - * 'AustraliaEast', 'AustraliaSoutheast', 'BrazilSouth', 'CanadaCentral', - * 'CanadaEast', 'WestEurope', 'NorthEurope', 'CentralIndia', 'SouthIndia', - * 'WestIndia', 'JapanEast', 'JapanWest', 'KoreaCentral', 'KoreaSouth', - * 'UkWest', 'UkSouth', 'NorthCentralUs', 'EastUs', 'WestUs2', - * 'SouthCentralUs', 'CentralUs', 'EastUs2', 'WestUs', 'WestCentralUs', - * 'GermanyCentral', 'GermanyNortheast', 'ChinaNorth', 'ChinaEast' + * Properties of the group. + */ + properties: GroupProperties; +} + +/** + * Body properties of group update. + */ +export interface GroupBodyProperties { + /** + * Whether to add or remove the machines. Possible values include: 'Add', 'Remove' + */ + operationType?: GroupUpdateOperation; + /** + * List of machine names that are part of this group. + */ + machines?: string[]; +} + +/** + * Properties of group update. + */ +export interface UpdateGroupBody { + /** + * For optimistic concurrency control. + */ + eTag?: string; + /** + * Properties of the group. + */ + properties?: GroupBodyProperties; +} + +/** + * An interface representing VmUptime. + */ +export interface VmUptime { + /** + * Number of days in a month for VM uptime. + */ + daysPerMonth?: number; + /** + * Number of hours per day for VM uptime. + */ + hoursPerDay?: number; +} + +/** + * Properties of an assessment. + */ +export interface AssessmentProperties { + /** + * Target Azure location for which the machines should be assessed. These enums are the same as + * used by Compute API. Possible values include: 'Unknown', 'EastAsia', 'SoutheastAsia', + * 'AustraliaEast', 'AustraliaSoutheast', 'BrazilSouth', 'CanadaCentral', 'CanadaEast', + * 'WestEurope', 'NorthEurope', 'CentralIndia', 'SouthIndia', 'WestIndia', 'JapanEast', + * 'JapanWest', 'KoreaCentral', 'KoreaSouth', 'UkWest', 'UkSouth', 'NorthCentralUs', 'EastUs', + * 'WestUs2', 'SouthCentralUs', 'CentralUs', 'EastUs2', 'WestUs', 'WestCentralUs', + * 'GermanyCentral', 'GermanyNortheast', 'ChinaNorth', 'ChinaEast', 'USGovArizona', 'USGovTexas', + * 'USGovIowa', 'USGovVirginia', 'USDoDCentral', 'USDoDEast' */ azureLocation: AzureLocation; /** - * @member {AzureOfferCode} azureOfferCode Offer code according to which cost - * estimation is done. Possible values include: 'Unknown', 'MSAZR0003P', - * 'MSAZR0044P', 'MSAZR0059P', 'MSAZR0060P', 'MSAZR0062P', 'MSAZR0063P', - * 'MSAZR0064P', 'MSAZR0029P', 'MSAZR0022P', 'MSAZR0023P', 'MSAZR0148P', - * 'MSAZR0025P', 'MSAZR0036P', 'MSAZR0120P', 'MSAZR0121P', 'MSAZR0122P', - * 'MSAZR0123P', 'MSAZR0124P', 'MSAZR0125P', 'MSAZR0126P', 'MSAZR0127P', - * 'MSAZR0128P', 'MSAZR0129P', 'MSAZR0130P', 'MSAZR0111P', 'MSAZR0144P', - * 'MSAZR0149P', 'MSMCAZR0044P', 'MSMCAZR0059P', 'MSMCAZR0060P', - * 'MSMCAZR0063P', 'MSMCAZR0120P', 'MSMCAZR0121P', 'MSMCAZR0125P', - * 'MSMCAZR0128P', 'MSAZRDE0003P', 'MSAZRDE0044P' + * Offer code according to which cost estimation is done. Possible values include: 'Unknown', + * 'MSAZR0003P', 'MSAZR0044P', 'MSAZR0059P', 'MSAZR0060P', 'MSAZR0062P', 'MSAZR0063P', + * 'MSAZR0064P', 'MSAZR0029P', 'MSAZR0022P', 'MSAZR0023P', 'MSAZR0148P', 'MSAZR0025P', + * 'MSAZR0036P', 'MSAZR0120P', 'MSAZR0121P', 'MSAZR0122P', 'MSAZR0123P', 'MSAZR0124P', + * 'MSAZR0125P', 'MSAZR0126P', 'MSAZR0127P', 'MSAZR0128P', 'MSAZR0129P', 'MSAZR0130P', + * 'MSAZR0111P', 'MSAZR0144P', 'MSAZR0149P', 'MSMCAZR0044P', 'MSMCAZR0059P', 'MSMCAZR0060P', + * 'MSMCAZR0063P', 'MSMCAZR0120P', 'MSMCAZR0121P', 'MSMCAZR0125P', 'MSMCAZR0128P', + * 'MSAZRDE0003P', 'MSAZRDE0044P', 'MSAZRUSGOV0003P', 'EA' */ azureOfferCode: AzureOfferCode; /** - * @member {AzurePricingTier} azurePricingTier Pricing tier for Size - * evaluation. Possible values include: 'Standard', 'Basic' + * Enterprise agreement subscription arm id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly eaSubscriptionId?: string; + /** + * Pricing tier for Size evaluation. Possible values include: 'Standard', 'Basic' */ azurePricingTier: AzurePricingTier; /** - * @member {AzureStorageRedundancy} azureStorageRedundancy Storage Redundancy - * type offered by Azure. Possible values include: 'Unknown', - * 'LocallyRedundant', 'ZoneRedundant', 'GeoRedundant', - * 'ReadAccessGeoRedundant' + * Storage Redundancy type offered by Azure. Possible values include: 'Unknown', + * 'LocallyRedundant', 'ZoneRedundant', 'GeoRedundant', 'ReadAccessGeoRedundant' */ azureStorageRedundancy: AzureStorageRedundancy; /** - * @member {number} scalingFactor Scaling factor used over utilization data - * to add a performance buffer for new machines to be created in Azure. Min - * Value = 1.0, Max value = 1.9, Default = 1.3. + * Scaling factor used over utilization data to add a performance buffer for new machines to be + * created in Azure. Min Value = 1.0, Max value = 1.9, Default = 1.3. */ scalingFactor: number; /** - * @member {Percentile} percentile Percentile of performance data used to - * recommend Azure size. Possible values include: 'Percentile50', - * 'Percentile90', 'Percentile95', 'Percentile99' + * Percentile of performance data used to recommend Azure size. Possible values include: + * 'Percentile50', 'Percentile90', 'Percentile95', 'Percentile99' */ percentile: Percentile; /** - * @member {TimeRange} timeRange Time range of performance data used to - * recommend a size. Possible values include: 'Day', 'Week', 'Month' + * Time range of performance data used to recommend a size. Possible values include: 'Day', + * 'Week', 'Month', 'Custom' */ timeRange: TimeRange; /** - * @member {AssessmentStage} stage User configurable setting that describes - * the status of the assessment. Possible values include: 'InProgress', - * 'UnderReview', 'Approved' + * Start time to consider performance data for assessment + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly perfDataStartTime?: Date; + /** + * End time to consider performance data for assessment + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly perfDataEndTime?: Date; + /** + * User configurable setting that describes the status of the assessment. Possible values + * include: 'InProgress', 'UnderReview', 'Approved' */ stage: AssessmentStage; /** - * @member {Currency} currency Currency to report prices in. Possible values - * include: 'Unknown', 'USD', 'DKK', 'CAD', 'IDR', 'JPY', 'KRW', 'NZD', - * 'NOK', 'RUB', 'SAR', 'ZAR', 'SEK', 'TRY', 'GBP', 'MXN', 'MYR', 'INR', + * Currency to report prices in. Possible values include: 'Unknown', 'USD', 'DKK', 'CAD', 'IDR', + * 'JPY', 'KRW', 'NZD', 'NOK', 'RUB', 'SAR', 'ZAR', 'SEK', 'TRY', 'GBP', 'MXN', 'MYR', 'INR', * 'HKD', 'BRL', 'TWD', 'EUR', 'CHF', 'ARS', 'AUD', 'CNY' */ currency: Currency; /** - * @member {AzureHybridUseBenefit} azureHybridUseBenefit AHUB discount on - * windows virtual machines. Possible values include: 'Unknown', 'Yes', 'No' + * AHUB discount on windows virtual machines. Possible values include: 'Unknown', 'Yes', 'No' */ azureHybridUseBenefit: AzureHybridUseBenefit; /** - * @member {number} discountPercentage Custom discount percentage to be - * applied on final costs. Can be in the range [0, 100]. + * Custom discount percentage to be applied on final costs. Can be in the range [0, 100]. */ discountPercentage: number; /** - * @member {number} [confidenceRatingInPercentage] Confidence rating - * percentage for assessment. Can be in the range [0, 100]. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Confidence rating percentage for assessment. Can be in the range [0, 100]. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly confidenceRatingInPercentage?: number; /** - * @member {AssessmentSizingCriterion} sizingCriterion Assessment sizing - * criterion. Possible values include: 'PerformanceBased', 'AsOnPremises' + * Assessment sizing criterion. Possible values include: 'PerformanceBased', 'AsOnPremises' */ sizingCriterion: AssessmentSizingCriterion; /** - * @member {Date} [pricesTimestamp] Time when the Azure Prices were queried. - * Date-Time represented in ISO-8601 format. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Azure reserved instance. Possible values include: 'None', 'RI1Year', 'RI3Year' + */ + reservedInstance: ReservedInstance; + /** + * List of azure VM families. + */ + azureVmFamilies: AzureVmFamily[]; + /** + * Storage type selected for this disk. Possible values include: 'Unknown', 'Standard', + * 'Premium', 'StandardSSD', 'StandardOrPremium' + */ + azureDiskType: AzureDiskType; + /** + * Specify the duration for which the VMs are up in the on-premises environment. + */ + vmUptime: VmUptime; + /** + * Time when the Azure Prices were queried. Date-Time represented in ISO-8601 format. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly pricesTimestamp?: Date; /** - * @member {Date} [createdTimestamp] Time when this project was created. - * Date-Time represented in ISO-8601 format. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Time when this project was created. Date-Time represented in ISO-8601 format. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly createdTimestamp?: Date; /** - * @member {Date} [updatedTimestamp] Time when this project was last updated. - * Date-Time represented in ISO-8601 format. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Time when this project was last updated. Date-Time represented in ISO-8601 format. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly updatedTimestamp?: Date; /** - * @member {number} [monthlyComputeCost] Monthly compute cost estimate for - * the machines that are part of this assessment as a group, for a 31-day - * month. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Monthly compute cost estimate for the machines that are part of this assessment as a group, + * for a 31-day month. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly monthlyComputeCost?: number; /** - * @member {number} [monthlyBandwidthCost] Monthly network cost estimate for - * the machines that are part of this assessment as a group, for a 31-day - * month. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Monthly network cost estimate for the machines that are part of this assessment as a group, + * for a 31-day month. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly monthlyBandwidthCost?: number; /** - * @member {number} [monthlyStorageCost] Monthly storage cost estimate for - * the machines that are part of this assessment as a group, for a 31-day - * month. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Monthly storage cost estimate for the machines that are part of this assessment as a group, + * for a 31-day month. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly monthlyStorageCost?: number; /** - * @member {AssessmentStatus} [status] Wheter 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.** + * Monthly premium storage cost estimate for the machines that are part of this assessment as a + * group, for a 31-day month. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly monthlyPremiumStorageCost?: number; + /** + * Monthly standard SSD storage cost estimate for the machines that are part of this assessment + * as a group, for a 31-day month. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly monthlyStandardSSDStorageCost?: number; + /** + * Whether the assessment has been created and is valid. Possible values include: 'Created', + * 'Updated', 'Running', 'Completed', 'Invalid', 'OutOfSync', 'OutDated' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly status?: AssessmentStatus; /** - * @member {number} [numberOfMachines] Number of assessed machines part of - * this assessment. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Number of assessed machines part of this assessment. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly numberOfMachines?: number; } /** - * @interface - * An interface representing Disk. + * An assessment created for a group in the Migration project. + */ +export interface Assessment extends BaseResource { + /** + * Path reference to this assessment. + * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/groups/{groupName}/assessment/{assessmentName} + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * Unique name of an assessment. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * For optimistic concurrency control. + */ + eTag?: string; + /** + * Type of the object = [Microsoft.Migrate/assessmentProjects/groups/assessments]. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * Properties of the assessment. + */ + properties: AssessmentProperties; +} + +/** * A disk discovered on a machine. - * */ export interface Disk { /** - * @member {number} [gigabytesAllocated] Gigabytes of storage provisioned for - * this disk. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Gigabytes of storage provisioned for this disk. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly gigabytesAllocated?: number; /** - * @member {number} [gigabytesConsumed] Gigabytes of storage consumed by this - * disk. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * User friendly name of the disk. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly gigabytesConsumed?: number; + readonly displayName?: string; } /** - * @interface - * An interface representing NetworkAdapter. * A network adapter discovered on a machine. - * */ export interface NetworkAdapter { /** - * @member {string} [macAddress] MAC Address of the network adapter. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * MAC Address of the network adapter. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly macAddress?: string; /** - * @member {string[]} [ipAddresses] List of IP Addresses on the network - * adapter. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * List of IP Addresses on the network adapter. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly ipAddresses?: string[]; + /** + * User friendly name of the network adapter. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly displayName?: string; } /** - * @interface - * An interface representing Machine. - * A machine in a migration project. - * - * @extends BaseResource + * Properties of a machine. */ -export interface Machine extends BaseResource { - /** - * @member {string} [id] Path reference to this machine. - * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/projects/{projectName}/machines/{machineName} - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly id?: string; - /** - * @member {string} [name] Name of the machine. It is a GUID which is unique - * identifier of machine in private data center. For user-readable name, we - * have a displayName property on this machine. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly name?: string; - /** - * @member {string} [eTag] For optimistic concurrency control. - */ - eTag?: string; +export interface MachineProperties { /** - * @member {string} [type] Type of the object = - * [Microsoft.Migrate/projects/machines]. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Boot type of the machine. Possible values include: 'Unknown', 'EFI', 'BIOS' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly type?: string; + readonly bootType?: MachineBootType; /** - * @member {MachineBootType} [bootType] Boot type of the machine. Possible - * values include: 'Unknown', 'EFI', 'BIOS' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * ARM ID of the data center as tracked by the Microsoft.OffAzure. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly bootType?: MachineBootType; + readonly datacenterManagementServerArmId?: string; /** - * @member {string} [datacenterContainer] Container defined in the management - * solution that this machine is part of in the datacenter. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * ARM ID of the machine as tracked by the Microsoft.OffAzure. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly datacenterContainer?: string; + readonly discoveryMachineArmId?: string; /** - * @member {string} [datacenterManagementServer] Name of the server hosting - * the datacenter management solution. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Name of the server hosting the datacenter management solution. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly datacenterManagementServer?: string; + readonly datacenterManagementServerName?: string; /** - * @member {string} [datacenterMachineId] ID of the machine as tracked by the - * datacenter management solution. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * User readable name of the machine as defined by the user in their private datacenter. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly datacenterMachineId?: string; + readonly displayName?: string; /** - * @member {string} [datacenterManagementServerId] ID of the server hosting - * the datacenter management solution. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Memory in Megabytes. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly datacenterManagementServerId?: string; + readonly megabytesOfMemory?: number; /** - * @member {string} [description] Description of the machine - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Processor count. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly description?: string; + readonly numberOfCores?: number; /** - * @member {string} [displayName] User readable name of the machine as - * defined by the user in their private datacenter. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Operating System type of the machine. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly displayName?: string; + readonly operatingSystemType?: string; /** - * @member {number} [megabytesOfMemory] Memory in Megabytes. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Operating System name of the machine. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly megabytesOfMemory?: number; + readonly operatingSystemName?: string; /** - * @member {number} [numberOfCores] Processor count. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Operating System version of the machine. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly numberOfCores?: number; + readonly operatingSystemVersion?: string; /** - * @member {string} [operatingSystem] Operating System of the machine. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Description of the machine + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly operatingSystem?: string; + readonly description?: string; /** - * @member {string[]} [groups] List of references to the groups that the - * machine is member of. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * List of references to the groups that the machine is member of. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly groups?: string[]; /** - * @member {Date} [createdTimestamp] Time when this machine was created. - * Date-Time represented in ISO-8601 format. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Time when this machine was created. Date-Time represented in ISO-8601 format. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly createdTimestamp?: Date; /** - * @member {Date} [updatedTimestamp] Time when this machine was last updated. - * Date-Time represented in ISO-8601 format. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Time when this machine was last updated. Date-Time represented in ISO-8601 format. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly updatedTimestamp?: Date; /** - * @member {Date} [discoveredTimestamp] Time when this machine was discovered - * by Azure Migrate agent. Date-Time represented in ISO-8601 format. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly discoveredTimestamp?: Date; - /** - * @member {{ [propertyName: string]: Disk }} [disks] Dictionary of disks - * attached to the machine. Key is ID of disk. Value is a disk object - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Dictionary of disks attached to the machine. Key is ID of disk. Value is a disk object + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly disks?: { [propertyName: string]: Disk }; /** - * @member {{ [propertyName: string]: NetworkAdapter }} [networkAdapters] - * Dictionary of network adapters attached to the machine. Key is ID of - * network adapter. Value is a network adapter object - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Dictionary of network adapters attached to the machine. Key is ID of network adapter. Value is + * a network adapter object + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly networkAdapters?: { [propertyName: string]: NetworkAdapter }; } /** - * @interface - * An interface representing AssessedDisk. - * A disk assessed for an assessment. - * + * A machine in a migration project. */ -export interface AssessedDisk { - /** - * @member {string} [name] Name of the assessed disk. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly name?: string; +export interface Machine extends BaseResource { /** - * @member {number} [gigabytesProvisioned] Gigabytes of storage provisioned - * for this disk. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Path reference to this machine. + * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/machines/{machineName} + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly gigabytesProvisioned?: number; + readonly id?: string; /** - * @member {number} [gigabytesConsumed] Gigabytes of storage consumed by this - * disk. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Name of the machine. It is a GUID which is unique identifier of machine in private data + * center. For user-readable name, we have a displayName property on this machine. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly gigabytesConsumed?: number; + readonly name?: string; /** - * @member {number} [megabytesPerSecondOfRead] Disk throughput in MegaBytes - * per second. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * For optimistic concurrency control. */ - readonly megabytesPerSecondOfRead?: number; + eTag?: string; /** - * @member {number} [megabytesPerSecondOfReadDataPointsExpected] Expected - * data points for MegaBytes per second of read. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Type of the object = [Microsoft.Migrate/assessmentProjects/machines]. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly megabytesPerSecondOfReadDataPointsExpected?: number; + readonly type?: string; /** - * @member {number} [megabytesPerSecondOfReadDataPointsReceived] Received - * data points for MegaBytes per second of read. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Properties of the machine. */ - readonly megabytesPerSecondOfReadDataPointsReceived?: number; + properties?: MachineProperties; +} + +/** + * A disk assessed for an assessment. + */ +export interface AssessedDisk { /** - * @member {number} [megabytesPerSecondOfWrite] Disk throughput in MegaBytes - * per second. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Name of the assessed disk. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly megabytesPerSecondOfWrite?: number; + readonly name?: string; /** - * @member {number} [megabytesPerSecondOfWriteDataPointsExpected] Expected - * data points for MegaBytes per second of write. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * User friendly name of the assessed disk. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly megabytesPerSecondOfWriteDataPointsExpected?: number; + readonly displayName?: string; /** - * @member {number} [megabytesPerSecondOfWriteDataPointsReceived] Received - * data points for MegaBytes per second of write. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Gigabytes of storage provisioned for this disk. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly megabytesPerSecondOfWriteDataPointsReceived?: number; + readonly gigabytesProvisioned?: number; /** - * @member {number} [numberOfReadOperationsPerSecond] Number of read - * operations per second for the disk. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Disk throughput in MegaBytes per second. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly numberOfReadOperationsPerSecond?: number; + readonly megabytesPerSecondOfRead?: number; /** - * @member {number} [numberOfReadOperationsPerSecondDataPointsExpected] - * Expected number of data points for read operations per second. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Disk throughput in MegaBytes per second. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly numberOfReadOperationsPerSecondDataPointsExpected?: number; + readonly megabytesPerSecondOfWrite?: number; /** - * @member {number} [numberOfReadOperationsPerSecondDataPointsReceived] - * Received number of data points for read operations per second. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Number of read operations per second for the disk. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly numberOfReadOperationsPerSecondDataPointsReceived?: number; + readonly numberOfReadOperationsPerSecond?: number; /** - * @member {number} [numberOfWriteOperationsPerSecond] Number of read and - * write operations per second for the disk. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Number of read and write operations per second for the disk. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly numberOfWriteOperationsPerSecond?: number; /** - * @member {number} [numberOfWriteOperationsPerSecondDataPointsExpected] - * Expected number of data points for write operations per second. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly numberOfWriteOperationsPerSecondDataPointsExpected?: number; - /** - * @member {number} [numberOfWriteOperationsPerSecondDataPointsReceived] - * Received number of data points for write operations per second. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly numberOfWriteOperationsPerSecondDataPointsReceived?: number; - /** - * @member {number} [monthlyStorageCost] Estimated aggregate storage cost for - * a 31-day month for this disk. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Estimated aggregate storage cost for a 31-day month for this disk. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly monthlyStorageCost?: number; /** - * @member {AzureDiskType} [recommendedDiskType] Storage type selected for - * this disk. Possible values include: 'Unknown', 'Standard', 'Premium' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Storage type selected for this disk. Possible values include: 'Unknown', 'Standard', + * 'Premium', 'StandardSSD', 'StandardOrPremium' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly recommendedDiskType?: AzureDiskType; /** - * @member {AzureDiskSize} [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' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * 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_S15', 'Standard_S20', 'Standard_S30', 'Standard_S40', 'Standard_S50', 'Premium_P4', + * 'Premium_P6', 'Premium_P10', 'Premium_P15', 'Premium_P20', 'Premium_P30', 'Premium_P40', + * 'Premium_P50', 'Standard_S60', 'Standard_S70', 'Standard_S80', 'Premium_P60', 'Premium_P70', + * 'Premium_P80', 'StandardSSD_E10', 'StandardSSD_E15', 'StandardSSD_E20', 'StandardSSD_E30', + * 'StandardSSD_E40', 'StandardSSD_E50', 'StandardSSD_E60', 'StandardSSD_E70', 'StandardSSD_E80', + * 'StandardSSD_E4', 'StandardSSD_E6' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly recommendedDiskSize?: AzureDiskSize; /** - * @member {number} [gigabytesForRecommendedDiskSize] Gigabytes of storage - * provided by the recommended Azure disk size. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Gigabytes of storage provided by the recommended Azure disk size. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly gigabytesForRecommendedDiskSize?: number; /** - * @member {CloudSuitability} [suitability] Whether this disk is suitable for - * Azure. Possible values include: 'Unknown', 'NotSuitable', 'Suitable', - * 'ConditionallySuitable', 'ReadinessUnknown' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Whether this disk is suitable for Azure. Possible values include: 'Unknown', 'NotSuitable', + * 'Suitable', 'ConditionallySuitable', 'ReadinessUnknown' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly suitability?: CloudSuitability; /** - * @member {AzureDiskSuitabilityExplanation} [suitabilityExplanation] If disk - * is suitable, this explains the reasons and mitigation steps. Possible - * values include: 'Unknown', 'NotApplicable', - * 'DiskSizeGreaterThanSupported', 'NoSuitableDiskSizeForIops', - * 'NoSuitableDiskSizeForThroughput', 'NoDiskSizeFoundInSelectedLocation', - * 'NoDiskSizeFoundForSelectedRedundancy', - * 'InternalErrorOccurredForDiskEvaluation' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * If disk is not suitable to be migrated, this explains the reasons and mitigation steps. + * Possible values include: 'Unknown', 'NotApplicable', 'DiskSizeGreaterThanSupported', + * 'NoSuitableDiskSizeForIops', 'NoSuitableDiskSizeForThroughput', + * 'NoDiskSizeFoundInSelectedLocation', 'NoDiskSizeFoundForSelectedRedundancy', + * 'InternalErrorOccurredForDiskEvaluation', 'NoEaPriceFoundForDiskSize' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly suitabilityExplanation?: AzureDiskSuitabilityExplanation; + /** + * If disk is suitable to be migrate but some conditions/checks were not considered while + * calculating suitability, this explains the details. Possible values include: 'None', + * 'NumberOfReadOperationsPerSecondMissing', 'NumberOfWriteOperationsPerSecondMissing', + * 'MegabytesPerSecondOfReadMissing', 'MegabytesPerSecondOfWriteMissing', + * 'DiskGigabytesConsumedMissing', 'DiskGigabytesProvisionedMissing', + * 'NumberOfReadOperationsPerSecondOutOfRange', 'NumberOfWriteOperationsPerSecondOutOfRange', + * 'MegabytesPerSecondOfReadOutOfRange', 'MegabytesPerSecondOfWriteOutOfRange', + * 'DiskGigabytesConsumedOutOfRange', 'DiskGigabytesProvisionedOutOfRange' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly suitabilityDetail?: AzureDiskSuitabilityDetail; } /** - * @interface - * An interface representing AssessedNetworkAdapter. * A network adapter assessed for an assessment. - * */ export interface AssessedNetworkAdapter { /** - * @member {string} [macAddress] MAC Address of the network adapter. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * MAC Address of the network adapter. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly macAddress?: string; /** - * @member {string[]} [ipAddresses] List of IP Addresses on the network - * adapter. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * List of IP Addresses on the network adapter. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly ipAddresses?: string[]; /** - * @member {number} [monthlyBandwidthCosts] Monthly cost estimate for network - * bandwidth used by this network adapter. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly monthlyBandwidthCosts?: number; - /** - * @member {number} [megabytesPerSecondReceived] Adapter throughput for - * incoming traffic in MegaBytes per second. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * User friendly name of the assessed network adapter. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly megabytesPerSecondReceived?: number; + readonly displayName?: string; /** - * @member {number} [megabytesPerSecondReceivedDataPointsExpected] Expected - * data points for incoming traffic in MegaBytes per second. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Monthly cost estimate for network bandwidth used by this network adapter. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly megabytesPerSecondReceivedDataPointsExpected?: number; + readonly monthlyBandwidthCosts?: number; /** - * @member {number} [megabytesPerSecondOfReadDataPointsReceived] Received - * data points for incoming traffic in MegaBytes per second. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Adapter throughput for incoming traffic in MegaBytes per second. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly megabytesPerSecondOfReadDataPointsReceived?: number; + readonly megabytesPerSecondReceived?: number; /** - * @member {number} [megabytesPerSecondTransmitted] Adapter throughput for - * outgoing traffic in MegaBytes per second. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Adapter throughput for outgoing traffic in MegaBytes per second. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly megabytesPerSecondTransmitted?: number; /** - * @member {number} [megabytesPerSecondTransmittedDataPointsExpected] - * Expected data points for outgoing traffic in MegaBytes per second. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly megabytesPerSecondTransmittedDataPointsExpected?: number; - /** - * @member {number} [megabytesPerSecondTransmittedDataPointsReceived] - * Received data points for outgoing traffic in MegaBytes per second. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly megabytesPerSecondTransmittedDataPointsReceived?: number; - /** - * @member {number} [netGigabytesTransmittedPerMonth] Gigabytes transmitted - * through this adapter each month. + * Gigabytes transmitted through this adapter each month. */ netGigabytesTransmittedPerMonth?: number; /** - * @member {CloudSuitability} [suitability] Whether this adapter is suitable - * for Azure. Possible values include: 'Unknown', 'NotSuitable', 'Suitable', - * 'ConditionallySuitable', 'ReadinessUnknown' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Whether this adapter is suitable for Azure. Possible values include: 'Unknown', 'NotSuitable', + * 'Suitable', 'ConditionallySuitable', 'ReadinessUnknown' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly suitability?: CloudSuitability; /** - * @member {AzureNetworkAdapterSuitabilityExplanation} - * [suitabilityExplanation] If network adapter is suitable, this explains the - * reasons and mitigation steps. Possible values include: 'Unknown', - * 'NotApplicable', 'InternalErrorOccured' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * If network adapter is suitable, this explains the reasons and mitigation steps. Possible + * values include: 'Unknown', 'NotApplicable', 'InternalErrorOccurred' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly suitabilityExplanation?: AzureNetworkAdapterSuitabilityExplanation; + /** + * If network adapter is not suitable for cloud, this explains the reasons. Possible values + * include: 'None', 'MegabytesOfDataTransmittedMissing', 'MegabytesOfDataTransmittedOutOfRange' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly suitabilityDetail?: AzureNetworkAdapterSuitabilityDetail; } /** - * @interface - * An interface representing AssessedMachine. - * A machine evaluated as part of an assessment. - * - * @extends BaseResource + * Properties of an assessed machine. */ -export interface AssessedMachine extends BaseResource { +export interface AssessedMachineProperties { /** - * @member {string} [id] Path reference to this assessed machine. - * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/projects/{projectName}/groups/{groupName}/assessments/{assessmentName}/assessedMachines/{assessedMachineName} - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Boot type of the machine. Possible values include: 'Unknown', 'EFI', 'BIOS' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly id?: string; + readonly bootType?: MachineBootType; /** - * @member {string} [name] Name of the machine. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * ARM ID of the discovered machine. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly name?: string; + readonly datacenterMachineArmId?: string; /** - * @member {string} [eTag] For optimistic concurrency control. + * ARM ID of the discovered datacenter. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - eTag?: string; + readonly datacenterManagementServerArmId?: string; /** - * @member {string} [type] Type of the object = - * [Microsoft.Migrate/projects/groups/assessments/assessedMachines]. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Name of the server hosting the datacenter management solution. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly type?: string; + readonly datacenterManagementServerName?: string; /** - * @member {string[]} [groups] List of references to the groups that the - * machine is member of. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Description of the machine + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly groups?: string[]; + readonly description?: string; /** - * @member {Date} [discoveredTimestamp] Time when this machine was discovered - * by Azure Migrate agent. Date-Time represented in ISO-8601 format. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * User readable name of the machine as defined by the user in their private datacenter. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly discoveredTimestamp?: Date; + readonly displayName?: string; /** - * @member {MachineBootType} [bootType] Boot type of the machine. Possible - * values include: 'Unknown', 'EFI', 'BIOS' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Memory in Megabytes. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly bootType?: MachineBootType; + readonly megabytesOfMemory?: number; /** - * @member {string} [datacenterContainer] Container defined in the management - * solution that this machine is part of in the datacenter. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Processor count. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly datacenterContainer?: string; + readonly numberOfCores?: number; /** - * @member {string} [datacenterManagementServer] Name of the server hosting - * the datacenter management solution. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Operating System type of the machine. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly datacenterManagementServer?: string; + readonly operatingSystemType?: string; /** - * @member {string} [datacenterMachineId] ID of the machine as tracked by the - * datacenter management solution. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Operating System name of the machine. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly datacenterMachineId?: string; + readonly operatingSystemName?: string; /** - * @member {string} [datacenterManagementServerId] ID of the server hosting - * the datacenter management solution. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Operating System version of the machine. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly datacenterManagementServerId?: string; + readonly operatingSystemVersion?: string; /** - * @member {string} [description] Description of the machine - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Monthly network cost estimate for the network adapters that are attached to this machine as a + * group, for a 31-day month. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly description?: string; + readonly monthlyBandwidthCost?: number; /** - * @member {string} [displayName] User readable name of the machine as - * defined by the user in their private datacenter. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Monthly storage cost estimate for the disks that are attached to this machine as a group, for + * a 31-day month. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly displayName?: string; + readonly monthlyStorageCost?: number; /** - * @member {number} [megabytesOfMemory] Memory in Megabytes. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Monthly premium storage cost estimate for the disks that are attached to this machine as a + * group, for a 31-day month. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly megabytesOfMemory?: number; + readonly monthlyPremiumStorageCost?: number; /** - * @member {number} [numberOfCores] Processor count. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Monthly standard SSD storage cost estimate for the disks that are attached to this machine as + * a group, for a 31-day month. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly numberOfCores?: number; + readonly monthlyStandardSSDStorageCost?: number; /** - * @member {string} [operatingSystem] Operating System of the machine. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Confidence rating of assessed machine. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly operatingSystem?: string; + readonly confidenceRatingInPercentage?: number; /** - * @member {number} [monthlyBandwidthCost] Monthly network cost estimate for - * the network adapters that are attached to this machine as a group, for a - * 31-day month. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Dictionary of disks attached to the machine. Key is ID of disk. Value is a disk object. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly monthlyBandwidthCost?: number; + readonly disks?: { [propertyName: string]: AssessedDisk }; /** - * @member {number} [monthlyStorageCost] Monthly storage cost estimate for - * the disks that are attached to this machine as a group, for a 31-day - * month. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly monthlyStorageCost?: number; - /** - * @member {{ [propertyName: string]: AssessedDisk }} [disks] Dictionary of - * disks attached to the machine. Key is ID of disk. Value is a disk object. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly disks?: { [propertyName: string]: AssessedDisk }; - /** - * @member {{ [propertyName: string]: AssessedNetworkAdapter }} - * [networkAdapters] Dictionary of network adapters attached to the machine. - * Key is name of the adapter. Value is a network adapter object. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Dictionary of network adapters attached to the machine. Key is name of the adapter. Value is a + * network adapter object. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly networkAdapters?: { [propertyName: string]: AssessedNetworkAdapter }; /** - * @member {AzureVmSize} [recommendedSize] Recommended Azure size for this - * machine. Possible values include: 'Unknown', 'Basic_A0', 'Basic_A1', - * 'Basic_A2', 'Basic_A3', 'Basic_A4', 'Standard_A0', 'Standard_A1', - * 'Standard_A2', 'Standard_A3', 'Standard_A4', 'Standard_A5', 'Standard_A6', - * 'Standard_A7', 'Standard_A8', 'Standard_A9', 'Standard_A10', - * 'Standard_A11', 'Standard_A1_v2', 'Standard_A2_v2', 'Standard_A4_v2', - * 'Standard_A8_v2', 'Standard_A2m_v2', 'Standard_A4m_v2', 'Standard_A8m_v2', - * 'Standard_D1', 'Standard_D2', 'Standard_D3', 'Standard_D4', - * 'Standard_D11', 'Standard_D12', 'Standard_D13', 'Standard_D14', - * 'Standard_D1_v2', 'Standard_D2_v2', 'Standard_D3_v2', 'Standard_D4_v2', - * 'Standard_D5_v2', 'Standard_D11_v2', 'Standard_D12_v2', 'Standard_D13_v2', - * 'Standard_D14_v2', 'Standard_D15_v2', 'Standard_DS1', 'Standard_DS2', - * 'Standard_DS3', 'Standard_DS4', 'Standard_DS11', 'Standard_DS12', - * 'Standard_DS13', 'Standard_DS14', 'Standard_DS1_v2', 'Standard_DS2_v2', - * 'Standard_DS3_v2', 'Standard_DS4_v2', 'Standard_DS5_v2', - * 'Standard_DS11_v2', 'Standard_DS12_v2', 'Standard_DS13_v2', - * 'Standard_DS14_v2', 'Standard_DS15_v2', 'Standard_F1', 'Standard_F2', - * 'Standard_F4', 'Standard_F8', 'Standard_F16', 'Standard_F1s', - * 'Standard_F2s', 'Standard_F4s', 'Standard_F8s', 'Standard_F16s', - * 'Standard_G1', 'Standard_G2', 'Standard_G3', 'Standard_G4', 'Standard_G5', - * 'Standard_GS1', 'Standard_GS2', 'Standard_GS3', 'Standard_GS4', - * 'Standard_GS5', 'Standard_H8', 'Standard_H16', 'Standard_H8m', - * 'Standard_H16m', 'Standard_H16r', 'Standard_H16mr', 'Standard_L4s', - * 'Standard_L8s', 'Standard_L16s', 'Standard_L32s' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Recommended Azure size for this machine. Possible values include: 'Unknown', 'Basic_A0', + * 'Basic_A1', 'Basic_A2', 'Basic_A3', 'Basic_A4', 'Standard_A0', 'Standard_A1', 'Standard_A2', + * 'Standard_A3', 'Standard_A4', 'Standard_A5', 'Standard_A6', 'Standard_A7', 'Standard_A8', + * 'Standard_A9', 'Standard_A10', 'Standard_A11', 'Standard_A1_v2', 'Standard_A2_v2', + * 'Standard_A4_v2', 'Standard_A8_v2', 'Standard_A2m_v2', 'Standard_A4m_v2', 'Standard_A8m_v2', + * 'Standard_D1', 'Standard_D2', 'Standard_D3', 'Standard_D4', 'Standard_D11', 'Standard_D12', + * 'Standard_D13', 'Standard_D14', 'Standard_D1_v2', 'Standard_D2_v2', 'Standard_D3_v2', + * 'Standard_D4_v2', 'Standard_D5_v2', 'Standard_D11_v2', 'Standard_D12_v2', 'Standard_D13_v2', + * 'Standard_D14_v2', 'Standard_D15_v2', 'Standard_DS1', 'Standard_DS2', 'Standard_DS3', + * 'Standard_DS4', 'Standard_DS11', 'Standard_DS12', 'Standard_DS13', 'Standard_DS14', + * 'Standard_DS1_v2', 'Standard_DS2_v2', 'Standard_DS3_v2', 'Standard_DS4_v2', 'Standard_DS5_v2', + * 'Standard_DS11_v2', 'Standard_DS12_v2', 'Standard_DS13_v2', 'Standard_DS14_v2', + * 'Standard_DS15_v2', 'Standard_F1', 'Standard_F2', 'Standard_F4', 'Standard_F8', + * 'Standard_F16', 'Standard_F1s', 'Standard_F2s', 'Standard_F4s', 'Standard_F8s', + * 'Standard_F16s', 'Standard_G1', 'Standard_G2', 'Standard_G3', 'Standard_G4', 'Standard_G5', + * 'Standard_GS1', 'Standard_GS2', 'Standard_GS3', 'Standard_GS4', 'Standard_GS5', 'Standard_H8', + * 'Standard_H16', 'Standard_H8m', 'Standard_H16m', 'Standard_H16r', 'Standard_H16mr', + * 'Standard_L4s', 'Standard_L8s', 'Standard_L16s', 'Standard_L32s', 'Standard_D2s_v3', + * 'Standard_D4s_v3', 'Standard_D8s_v3', 'Standard_D16s_v3', 'Standard_D32s_v3', + * 'Standard_D64s_v3', 'Standard_D2_v3', 'Standard_D4_v3', 'Standard_D8_v3', 'Standard_D16_v3', + * 'Standard_D32_v3', 'Standard_D64_v3', 'Standard_F2s_v2', 'Standard_F4s_v2', 'Standard_F8s_v2', + * 'Standard_F16s_v2', 'Standard_F32s_v2', 'Standard_F64s_v2', 'Standard_F72s_v2', + * 'Standard_E2_v3', 'Standard_E4_v3', 'Standard_E8_v3', 'Standard_E16_v3', 'Standard_E32_v3', + * 'Standard_E64_v3', 'Standard_E2s_v3', 'Standard_E4s_v3', 'Standard_E8s_v3', + * 'Standard_E16s_v3', 'Standard_E32s_v3', 'Standard_E64s_v3', 'Standard_M64s', 'Standard_M64ms', + * 'Standard_M128s', 'Standard_M128ms' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly recommendedSize?: AzureVmSize; /** - * @member {number} [numberOfCoresForRecommendedSize] Number of CPU cores in - * the Recommended Azure VM Size. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Number of CPU cores in the Recommended Azure VM Size. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly numberOfCoresForRecommendedSize?: number; /** - * @member {number} [megabytesOfMemoryForRecommendedSize] Megabytes of memory - * in the Recommended Azure VM Size. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Megabytes of memory in the Recommended Azure VM Size. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly megabytesOfMemoryForRecommendedSize?: number; /** - * @member {number} [monthlyComputeCostForRecommendedSize] Compute Cost for a - * 31-day month, if the machine is migrated to Azure with the Recommended + * Compute Cost for a 31-day month, if the machine is migrated to Azure with the Recommended * Size. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly monthlyComputeCostForRecommendedSize?: number; /** - * @member {number} [percentageCoresUtilization] Utilization percentage of - * the processor core as observed in the private data center, in the Time - * Range selected on Assessment, reported as the Percentile value based on - * the percentile number selected in assessment. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Utilization percentage of the processor core as observed in the private data center, in the + * Time Range selected on Assessment, reported as the Percentile value based on the percentile + * number selected in assessment. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly percentageCoresUtilization?: number; /** - * @member {number} [percentageMemoryUtilization] Utilization percentage of - * the memory as observed in the private data center, in the Time Range - * selected on Assessment, reported as the Percentile value based on the - * percentile number selected in assessment. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Utilization percentage of the memory as observed in the private data center, in the Time Range + * selected on Assessment, reported as the Percentile value based on the percentile number + * selected in assessment. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly percentageMemoryUtilization?: number; /** - * @member {number} [percentageCoresUtilizationDataPointsExpected] Expected - * data points for percentage of cores utilization. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly percentageCoresUtilizationDataPointsExpected?: number; - /** - * @member {number} [percentageCoresUtilizationDataPointsReceived] Received - * data points for percentage of cores utilization. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly percentageCoresUtilizationDataPointsReceived?: number; - /** - * @member {number} [percentageMemoryUtilizationDataPointsExpected] Expected - * data points for percentage of memory utilization. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly percentageMemoryUtilizationDataPointsExpected?: number; - /** - * @member {number} [percentageMemoryUtilizationDataPointsReceived] Received - * data points for percentage of memory utilization. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly percentageMemoryUtilizationDataPointsReceived?: number; - /** - * @member {CloudSuitability} [suitability] Whether machine is suitable for - * migration to Azure. Possible values include: 'Unknown', 'NotSuitable', - * 'Suitable', 'ConditionallySuitable', 'ReadinessUnknown' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Whether machine is suitable for migration to Azure. Possible values include: 'Unknown', + * 'NotSuitable', 'Suitable', 'ConditionallySuitable', 'ReadinessUnknown' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly suitability?: CloudSuitability; /** - * @member {AzureVmSuitabilityExplanation} [suitabilityExplanation] If - * machine is not ready to be migrated, this explains the reasons and - * mitigation steps. Possible values include: 'Unknown', 'NotApplicable', - * 'GuestOperatingSystemArchitectureNotSupported', - * 'GuestOperatingSystemNotSupported', 'BootTypeNotSupported', - * 'MoreDisksThanSupported', 'NoSuitableVmSizeFound', + * If machine is not ready to be migrated, this explains the reasons and mitigation steps. + * Possible values include: 'Unknown', 'NotApplicable', + * 'GuestOperatingSystemArchitectureNotSupported', 'GuestOperatingSystemNotSupported', + * 'BootTypeNotSupported', 'MoreDisksThanSupported', 'NoSuitableVmSizeFound', * 'OneOrMoreDisksNotSuitable', 'OneOrMoreAdaptersNotSuitable', - * 'InternalErrorOccuredDuringComputeEvaluation', - * 'InternalErrorOccuredDuringStorageEvaluation', - * 'InternalErrorOccuredDuringNetworkEvaluation', - * 'NoVmSizeSupportsStoragePerformance', + * 'InternalErrorOccurredDuringComputeEvaluation', + * 'InternalErrorOccurredDuringStorageEvaluation', + * 'InternalErrorOccurredDuringNetworkEvaluation', 'NoVmSizeSupportsStoragePerformance', * 'NoVmSizeSupportsNetworkPerformance', 'NoVmSizeForSelectedPricingTier', - * 'NoVmSizeForSelectedAzureLocation', 'CheckRedHatLinuxVersion', - * 'CheckOpenSuseLinuxVersion', 'CheckWindowsServer2008R2Version', - * 'CheckCentOsVersion', 'CheckDebianLinuxVersion', 'CheckSuseLinuxVersion', - * 'CheckOracleLinuxVersion', 'CheckUbuntuLinuxVersion', + * 'NoVmSizeForSelectedAzureLocation', 'CheckRedHatLinuxVersion', 'CheckOpenSuseLinuxVersion', + * 'CheckWindowsServer2008R2Version', 'CheckCentOsVersion', 'CheckDebianLinuxVersion', + * 'CheckSuseLinuxVersion', 'CheckOracleLinuxVersion', 'CheckUbuntuLinuxVersion', * 'CheckCoreOsLinuxVersion', 'WindowsServerVersionConditionallySupported', - * 'NoGuestOperatingSystemConditionallySupported', - * 'WindowsClientVersionsConditionallySupported', 'BootTypeUnknown', - * 'GuestOperatingSystemUnknown', 'WindowsServerVersionsSupportedWithCaveat', - * 'WindowsOSNoLongerUnderMSSupport', - * 'EndorsedWithConditionsLinuxDistributions', + * 'NoGuestOperatingSystemConditionallySupported', 'WindowsClientVersionsConditionallySupported', + * 'BootTypeUnknown', 'GuestOperatingSystemUnknown', 'WindowsServerVersionsSupportedWithCaveat', + * 'WindowsOSNoLongerUnderMSSupport', 'EndorsedWithConditionsLinuxDistributions', * 'UnendorsedLinuxDistributions', 'NoVmSizeForStandardPricingTier', * 'NoVmSizeForBasicPricingTier' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly suitabilityExplanation?: AzureVmSuitabilityExplanation; /** - * @member {Date} [createdTimestamp] Time when this machine was created. - * Date-Time represented in ISO-8601 format. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * If machine is not suitable for cloud, this explains the reasons. Possible values include: + * 'None', 'RecommendedSizeHasLessNetworkAdapters', 'CannotReportComputeCost', + * 'CannotReportStorageCost', 'CannotReportBandwidthCosts', 'PercentageOfCoresUtilizedMissing', + * 'PercentageOfMemoryUtilizedMissing', 'PercentageOfCoresUtilizedOutOfRange', + * 'PercentageOfMemoryUtilizedOutOfRange' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly suitabilityDetail?: AzureVmSuitabilityDetail; + /** + * Time when this machine was created. Date-Time represented in ISO-8601 format. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly createdTimestamp?: Date; /** - * @member {Date} [updatedTimestamp] Time when this machine was last updated. - * Date-Time represented in ISO-8601 format. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Time when this machine was last updated. Date-Time represented in ISO-8601 format. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly updatedTimestamp?: Date; } /** - * @interface - * An interface representing ProjectKey. - * ID and Key for Migration Project. - * - * @extends BaseResource + * A machine evaluated as part of an assessment. */ -export interface ProjectKey extends BaseResource { +export interface AssessedMachine extends BaseResource { + /** + * Path reference to this assessed machine. + * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/groups/{groupName}/assessments/{assessmentName}/assessedMachines/{assessedMachineName} + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; /** - * @member {string} [workspaceId] ID of Migration Project. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Name of the machine. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly workspaceId?: string; + readonly name?: string; + /** + * For optimistic concurrency control. + */ + eTag?: string; /** - * @member {string} [workspaceKey] Key of Migration Project. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Type of the object = + * [Microsoft.Migrate/assessmentProjects/groups/assessments/assessedMachines]. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly workspaceKey?: string; + readonly type?: string; + /** + * Properties of an assessed machine. + */ + properties?: AssessedMachineProperties; } /** - * @interface - * An interface representing OperationDisplay. * Displayable properties of the operation. - * */ export interface OperationDisplay { /** - * @member {string} [provider] Provider of the operation. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Provider of the operation. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly provider?: string; /** - * @member {string} [resource] Resource operated on by the operation. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Resource operated on by the operation. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly resource?: string; /** - * @member {string} [operation] Operation Type. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Operation Type. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly operation?: string; /** - * @member {string} [description] Description of the operation. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Description of the operation. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly description?: string; } /** - * @interface - * An interface representing Operation. * A REST API operation supported by the provider. - * */ export interface Operation { /** - * @member {string} [name] Name of the operation. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Name of the operation. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly name?: string; /** - * @member {OperationDisplay} [display] Displayable properties of the - * operation. + * Displayable properties of the operation. */ display?: OperationDisplay; /** - * @member {string} [origin] Origin of the operation. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Origin of the operation. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly origin?: string; } /** - * @interface - * An interface representing DownloadUrl. * Download URL for assessment report. - * */ export interface DownloadUrl { /** - * @member {string} [assessmentReportUrl] Hyperlink to download report. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Hyperlink to download report. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly assessmentReportUrl?: string; /** - * @member {Date} [expirationTime] Expiry date of download url. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Expiry date of download url. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly expirationTime?: Date; } /** - * @interface - * An interface representing VmFamily. - * VM family name, the list of targeted azure locations and the category of the - * family. - * + * An interface representing CollectorBodyAgentSpnProperties. */ -export interface VmFamily { +export interface CollectorBodyAgentSpnProperties { /** - * @member {string} [familyName] Name of the VM family. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * AAD Authority URL which was used to request the token for the service principal. */ - readonly familyName?: string; + authority?: string; /** - * @member {string[]} [targetLocations] List of Azure regions. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Application/client Id for the service principal with which the on-premise management/data + * plane components would communicate with our Azure services. */ - readonly targetLocations?: string[]; + applicationId?: string; /** - * @member {string[]} [category] Category of the VM family. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Intended audience for the service principal. */ - readonly category?: string[]; -} - -/** - * @interface - * An interface representing AssessmentOptionsResultList. - * List of assessment options. - * - */ -export interface AssessmentOptionsResultList { + audience?: string; /** - * @member {VmFamily[]} [vmFamilies] Dictionary of VM families grouped by vm - * family name describing the targeted azure locations of VM family and the - * category of the family. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Object Id of the service principal with which the on-premise management/data plane components + * would communicate with our Azure services. */ - readonly vmFamilies?: VmFamily[]; + objectId?: string; /** - * @member {string[]} [reservedInstanceVmFamilies] List of supported VM - * Families. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Tenant Id for the service principal with which the on-premise management/data plane components + * would communicate with our Azure services. */ - readonly reservedInstanceVmFamilies?: string[]; + tenantId?: string; } /** - * @interface - * An interface representing CheckNameAvailabilityParameters. - * Parameters for a check name availability request. - * + * An interface representing CollectorAgentProperties. */ -export interface CheckNameAvailabilityParameters { +export interface CollectorAgentProperties { + /** + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; /** - * @member {string} name The name to check for availability + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - name: string; + readonly version?: string; + /** + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly lastHeartbeatUtc?: Date; + spnDetails?: CollectorBodyAgentSpnProperties; } /** - * @interface - * An interface representing CheckNameAvailabilityResult. - * The CheckNameAvailability operation response. - * + * An interface representing CollectorProperties. */ -export interface CheckNameAvailabilityResult { +export interface CollectorProperties { /** - * @member {boolean} [nameAvailable] Gets a boolean value that indicates - * whether the name is available for you to use. If true, the name is - * available. If false, the name has already been taken or invalid and cannot - * be used. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The ARM id of the discovery service site. */ - readonly nameAvailable?: boolean; + discoverySiteId?: string; /** - * @member {NameAvailabilityReason} [reason] Gets the reason that a project - * name could not be used. The Reason element is only returned if - * NameAvailable is false. Possible values include: 'Available', 'Invalid', - * 'AlreadyExists' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Time when this collector was created. Date-Time represented in ISO-8601 format. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly reason?: NameAvailabilityReason; + readonly createdTimestamp?: string; /** - * @member {string} [message] Gets an error message explaining the Reason - * value in more detail. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Time when this collector was updated. Date-Time represented in ISO-8601 format. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly message?: string; + readonly updatedTimestamp?: string; + agentProperties?: CollectorAgentProperties; } /** - * @interface - * An interface representing ProjectsCreateOptionalParams. - * Optional Parameters. - * - * @extends RequestOptionsBase + * An interface representing HyperVCollector. */ -export interface ProjectsCreateOptionalParams extends msRest.RequestOptionsBase { +export interface HyperVCollector extends BaseResource { + eTag?: string; /** - * @member {Project} [project] New or Updated project object. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - project?: Project; + readonly id?: string; + /** + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + properties?: CollectorProperties; } /** - * @interface - * An interface representing ProjectsUpdateOptionalParams. - * Optional Parameters. - * - * @extends RequestOptionsBase + * An interface representing ImportCollectorProperties. */ -export interface ProjectsUpdateOptionalParams extends msRest.RequestOptionsBase { +export interface ImportCollectorProperties { + discoverySiteId?: string; /** - * @member {Project} [project] Updated project object. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - project?: Project; + readonly createdTimestamp?: string; + /** + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly updatedTimestamp?: string; } /** - * @interface - * An interface representing GroupsCreateOptionalParams. - * Optional Parameters. - * - * @extends RequestOptionsBase + * An interface representing VMwareCollector. */ -export interface GroupsCreateOptionalParams extends msRest.RequestOptionsBase { +export interface VMwareCollector extends BaseResource { + eTag?: string; /** - * @member {Group} [group] New or Updated Group object. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - group?: Group; + readonly id?: string; + /** + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + properties?: CollectorProperties; } /** - * @interface - * An interface representing AssessmentsCreateOptionalParams. - * Optional Parameters. - * - * @extends RequestOptionsBase + * An interface representing ServerCollector. */ -export interface AssessmentsCreateOptionalParams extends msRest.RequestOptionsBase { +export interface ServerCollector extends BaseResource { + eTag?: string; /** - * @member {Assessment} [assessment] New or Updated Assessment object. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - assessment?: Assessment; + readonly id?: string; + /** + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + properties?: CollectorProperties; } /** - * @interface - * An interface representing AzureMigrateOptions. - * @extends AzureServiceClientOptions + * An interface representing ImportCollector. */ -export interface AzureMigrateOptions extends AzureServiceClientOptions { +export interface ImportCollector extends BaseResource { + eTag?: string; /** - * @member {string} [baseUri] + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - baseUri?: string; + readonly id?: string; + /** + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + properties?: ImportCollectorProperties; } /** - * @interface - * An interface representing ProjectsListBySubscriptionHeaders. - * Defines headers for ListBySubscription operation. - * + * VM family name, the list of targeted azure locations and the category of the family. */ -export interface ProjectsListBySubscriptionHeaders { +export interface VmFamily { /** - * @member {string} [xMsRequestId] Service generated Request ID. + * Name of the VM family. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - xMsRequestId: string; + readonly familyName?: string; + /** + * List of Azure regions. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly targetLocations?: string[]; + /** + * Category of the VM family. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly category?: string[]; } /** - * @interface - * An interface representing ProjectsListByResourceGroupHeaders. - * Defines headers for ListByResourceGroup operation. - * + * Assessment options properties. */ -export interface ProjectsListByResourceGroupHeaders { +export interface AssessmentOptionsProperties { /** - * @member {string} [xMsRequestId] Service generated Request ID. + * Dictionary of VM families grouped by vm family name describing the targeted azure locations of + * VM family and the category of the family. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - xMsRequestId: string; + readonly vmFamilies?: VmFamily[]; + /** + * List of supported VM Families. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly reservedInstanceVmFamilies?: string[]; + /** + * List of supported Azure regions for reserved instances. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly reservedInstanceSupportedLocations?: string[]; + /** + * List of supported currencies for reserved instances. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly reservedInstanceSupportedCurrencies?: string[]; + /** + * List of supported Azure offer codes for reserved instances. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly reservedInstanceSupportedOffers?: string[]; } /** - * @interface - * An interface representing ProjectsGetHeaders. - * Defines headers for Get operation. - * + * Assessment options. */ -export interface ProjectsGetHeaders { +export interface AssessmentOptions extends BaseResource { /** - * @member {string} [xMsRequestId] Service generated Request ID. + * Unique name of an assessment options. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - xMsRequestId: string; + readonly name?: string; + /** + * Unique identifier of an assessment options. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * Properties of the assessment options. + */ + properties: AssessmentOptionsProperties; } /** - * @interface - * An interface representing ProjectsCreateHeaders. - * Defines headers for Create operation. - * + * A collection of private endpoint connections for a project. */ -export interface ProjectsCreateHeaders { +export interface PrivateEndpointConnectionCollection { /** - * @member {string} [xMsRequestId] Service generated Request ID. + * A list of private endpoint connections for a project. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - xMsRequestId: string; + readonly value?: PrivateEndpointConnection[]; + /** + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; } /** - * @interface - * An interface representing ProjectsUpdateHeaders. - * Defines headers for Update operation. - * + * Properties of a private link resource. */ -export interface ProjectsUpdateHeaders { +export interface PrivateLinkResourceProperties { /** - * @member {string} [xMsRequestId] Service generated Request ID. + * The private link resource required member names. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - xMsRequestId: string; + readonly requiredMembers?: string[]; + /** + * Required DNS zone names of the the private link resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly requiredZoneNames?: string[]; + /** + * The private link resource group id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly groupId?: string; } /** - * @interface - * An interface representing ProjectsDeleteHeaders. - * Defines headers for Delete operation. - * + * A private link resource for a project for which a private endpoint can be created. */ -export interface ProjectsDeleteHeaders { +export interface PrivateLinkResource extends BaseResource { /** - * @member {string} [xMsRequestId] Service generated Request ID. + * Name of the private link resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - xMsRequestId: string; + readonly name?: string; + /** + * Type of the object = [Microsoft.Migrate/assessmentProjects/privateLinkResources]. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * Path reference to this private link resource. + * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/privateLinkResources/{privateLinkResourceName} + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * Properties of the private link resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly properties?: PrivateLinkResourceProperties; } /** - * @interface - * An interface representing ProjectsGetKeysHeaders. - * Defines headers for GetKeys operation. - * + * A list of private link resources */ -export interface ProjectsGetKeysHeaders { +export interface PrivateLinkResourceCollection { /** - * @member {string} [xMsRequestId] Service generated Request ID. + * Array of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - xMsRequestId: string; + readonly value?: PrivateLinkResource[]; + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; } /** - * @interface - * An interface representing MachinesListByProjectHeaders. - * Defines headers for ListByProject operation. - * + * Optional Parameters. */ -export interface MachinesListByProjectHeaders { +export interface ProjectsCreateOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [xMsRequestId] Service generated Request ID. + * New or Updated project object. */ - xMsRequestId: string; + project?: Project; } /** - * @interface - * An interface representing MachinesGetHeaders. - * Defines headers for Get operation. - * + * Optional Parameters. */ -export interface MachinesGetHeaders { +export interface ProjectsUpdateOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [xMsRequestId] Service generated Request ID. + * Updated project object. */ - xMsRequestId: string; + project?: Project; } /** - * @interface - * An interface representing GroupsListByProjectHeaders. - * Defines headers for ListByProject operation. - * + * Optional Parameters. */ -export interface GroupsListByProjectHeaders { +export interface GroupsCreateOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [xMsRequestId] Service generated Request ID. + * New or Updated Group object. */ - xMsRequestId: string; + group?: Group; } /** - * @interface - * An interface representing GroupsGetHeaders. - * Defines headers for Get operation. - * + * Optional Parameters. */ -export interface GroupsGetHeaders { +export interface GroupsUpdateMachinesOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [xMsRequestId] Service generated Request ID. + * Machines list to be added or removed from group. */ - xMsRequestId: string; + groupUpdateProperties?: UpdateGroupBody; } /** - * @interface - * An interface representing GroupsCreateHeaders. - * Defines headers for Create operation. - * + * Optional Parameters. */ -export interface GroupsCreateHeaders { +export interface AssessmentsCreateOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [xMsRequestId] Service generated Request ID. + * New or Updated Assessment object. */ - xMsRequestId: string; + assessment?: Assessment; } /** - * @interface - * An interface representing GroupsDeleteHeaders. - * Defines headers for Delete operation. - * + * Optional Parameters. */ -export interface GroupsDeleteHeaders { +export interface HyperVCollectorsCreateOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [xMsRequestId] Service generated Request ID. + * New or Updated Hyper-V collector. */ - xMsRequestId: string; + collectorBody?: HyperVCollector; } /** - * @interface - * An interface representing AssessmentsListByGroupHeaders. - * Defines headers for ListByGroup operation. - * + * Optional Parameters. */ -export interface AssessmentsListByGroupHeaders { +export interface ServerCollectorsCreateOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [xMsRequestId] Service generated Request ID. + * New or Updated Server collector. */ - xMsRequestId: string; + collectorBody?: ServerCollector; } /** - * @interface - * An interface representing AssessmentsListByProjectHeaders. - * Defines headers for ListByProject operation. - * + * Optional Parameters. */ -export interface AssessmentsListByProjectHeaders { +export interface VMwareCollectorsCreateOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [xMsRequestId] Service generated Request ID. + * New or Updated VMware collector. */ - xMsRequestId: string; + collectorBody?: VMwareCollector; } /** - * @interface - * An interface representing AssessmentsGetHeaders. - * Defines headers for Get operation. - * + * Optional Parameters. */ -export interface AssessmentsGetHeaders { +export interface ImportCollectorsCreateOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [xMsRequestId] Service generated Request ID. + * New or Updated Import collector. */ - xMsRequestId: string; + collectorBody?: ImportCollector; } /** - * @interface - * An interface representing AssessmentsCreateHeaders. - * Defines headers for Create operation. - * + * Optional Parameters. */ -export interface AssessmentsCreateHeaders { +export interface PrivateEndpointConnectionUpdateOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [xMsRequestId] Service generated Request ID. + * New or Updated Private Endpoint Connection object. */ - xMsRequestId: string; + privateEndpointConnectionBody?: PrivateEndpointConnection; } /** - * @interface - * An interface representing AssessmentsDeleteHeaders. - * Defines headers for Delete operation. - * + * An interface representing AzureMigrateV2Options. */ -export interface AssessmentsDeleteHeaders { +export interface AzureMigrateV2Options extends AzureServiceClientOptions { + baseUri?: string; +} + +/** + * Defines headers for ListBySubscription operation. + */ +export interface ProjectsListBySubscriptionHeaders { /** - * @member {string} [xMsRequestId] Service generated Request ID. + * Service generated Request ID. */ xMsRequestId: string; } /** - * @interface - * An interface representing AssessmentsGetReportDownloadUrlHeaders. - * Defines headers for GetReportDownloadUrl operation. - * + * Defines headers for List operation. */ -export interface AssessmentsGetReportDownloadUrlHeaders { +export interface ProjectsListHeaders { /** - * @member {string} [xMsRequestId] Service generated Request ID. + * Service generated Request ID. */ xMsRequestId: string; } /** - * @interface - * An interface representing AssessedMachinesListByAssessmentHeaders. - * Defines headers for ListByAssessment operation. - * + * Defines headers for Get operation. */ -export interface AssessedMachinesListByAssessmentHeaders { +export interface ProjectsGetHeaders { /** - * @member {string} [xMsRequestId] Service generated Request ID. + * Service generated Request ID. */ xMsRequestId: string; } /** - * @interface - * An interface representing AssessedMachinesGetHeaders. - * Defines headers for Get operation. - * + * Defines headers for Create operation. */ -export interface AssessedMachinesGetHeaders { +export interface ProjectsCreateHeaders { /** - * @member {string} [xMsRequestId] Service generated Request ID. + * Service generated Request ID. */ xMsRequestId: string; } - /** - * @interface - * An interface representing the ProjectResultList. - * List of projects. - * - * @extends Array + * Defines headers for Update operation. */ -export interface ProjectResultList extends Array { +export interface ProjectsUpdateHeaders { + /** + * Service generated Request ID. + */ + xMsRequestId: string; } /** - * @interface - * An interface representing the MachineResultList. - * List of machines. - * - * @extends Array + * Defines headers for Delete operation. */ -export interface MachineResultList extends Array { +export interface ProjectsDeleteHeaders { + /** + * Service generated Request ID. + */ + xMsRequestId: string; } /** - * @interface - * An interface representing the GroupResultList. - * List of groups. - * - * @extends Array + * Defines headers for AssessmentOptions operation. */ -export interface GroupResultList extends Array { +export interface ProjectsAssessmentOptionsHeaders { + /** + * Service generated Request ID. + */ + xMsRequestId: string; } /** - * @interface - * An interface representing the AssessmentResultList. - * List of assessments. - * - * @extends Array + * Defines headers for AssessmentOptionsList operation. */ -export interface AssessmentResultList extends Array { +export interface ProjectsAssessmentOptionsListHeaders { + /** + * Service generated Request ID. + */ + xMsRequestId: string; } /** - * @interface - * An interface representing the AssessedMachineResultList. - * List of assessed machines. - * - * @extends Array + * Defines headers for ListByProject operation. */ -export interface AssessedMachineResultList extends Array { +export interface MachinesListByProjectHeaders { + /** + * Service generated Request ID. + */ + xMsRequestId: string; } /** - * @interface - * An interface representing the OperationResultList. - * List of API operations. - * - * @extends Array + * Defines headers for Get operation. */ -export interface OperationResultList extends Array { +export interface MachinesGetHeaders { + /** + * Service generated Request ID. + */ + xMsRequestId: string; } /** - * Defines values for DiscoveryStatus. - * Possible values include: 'Unknown', 'NotStarted', 'InProgress', 'Completed' - * @readonly - * @enum {string} + * Defines headers for ListByProject operation. */ -export type DiscoveryStatus = 'Unknown' | 'NotStarted' | 'InProgress' | 'Completed'; +export interface GroupsListByProjectHeaders { + /** + * Service generated Request ID. + */ + xMsRequestId: string; +} /** - * Defines values for ProvisioningState. - * Possible values include: 'Accepted', 'Creating', 'Deleting', 'Failed', 'Moving', 'Succeeded' - * @readonly - * @enum {string} + * Defines headers for Get operation. */ -export type ProvisioningState = 'Accepted' | 'Creating' | 'Deleting' | 'Failed' | 'Moving' | 'Succeeded'; +export interface GroupsGetHeaders { + /** + * Service generated Request ID. + */ + xMsRequestId: string; +} /** - * Defines values for AzureLocation. - * Possible values include: 'Unknown', 'EastAsia', 'SoutheastAsia', 'AustraliaEast', - * 'AustraliaSoutheast', 'BrazilSouth', 'CanadaCentral', 'CanadaEast', 'WestEurope', 'NorthEurope', - * 'CentralIndia', 'SouthIndia', 'WestIndia', 'JapanEast', 'JapanWest', 'KoreaCentral', - * 'KoreaSouth', 'UkWest', 'UkSouth', 'NorthCentralUs', 'EastUs', 'WestUs2', 'SouthCentralUs', - * 'CentralUs', 'EastUs2', 'WestUs', 'WestCentralUs', 'GermanyCentral', 'GermanyNortheast', - * 'ChinaNorth', 'ChinaEast' - * @readonly - * @enum {string} + * Defines headers for Create operation. */ -export type AzureLocation = 'Unknown' | 'EastAsia' | 'SoutheastAsia' | 'AustraliaEast' | 'AustraliaSoutheast' | 'BrazilSouth' | 'CanadaCentral' | 'CanadaEast' | 'WestEurope' | 'NorthEurope' | 'CentralIndia' | 'SouthIndia' | 'WestIndia' | 'JapanEast' | 'JapanWest' | 'KoreaCentral' | 'KoreaSouth' | 'UkWest' | 'UkSouth' | 'NorthCentralUs' | 'EastUs' | 'WestUs2' | 'SouthCentralUs' | 'CentralUs' | 'EastUs2' | 'WestUs' | 'WestCentralUs' | 'GermanyCentral' | 'GermanyNortheast' | 'ChinaNorth' | 'ChinaEast'; +export interface GroupsCreateHeaders { + /** + * Service generated Request ID. + */ + xMsRequestId: string; +} /** - * Defines values for AzureOfferCode. - * Possible values include: 'Unknown', 'MSAZR0003P', 'MSAZR0044P', 'MSAZR0059P', 'MSAZR0060P', - * 'MSAZR0062P', 'MSAZR0063P', 'MSAZR0064P', 'MSAZR0029P', 'MSAZR0022P', 'MSAZR0023P', - * 'MSAZR0148P', 'MSAZR0025P', 'MSAZR0036P', 'MSAZR0120P', 'MSAZR0121P', 'MSAZR0122P', - * 'MSAZR0123P', 'MSAZR0124P', 'MSAZR0125P', 'MSAZR0126P', 'MSAZR0127P', 'MSAZR0128P', - * 'MSAZR0129P', 'MSAZR0130P', 'MSAZR0111P', 'MSAZR0144P', 'MSAZR0149P', 'MSMCAZR0044P', - * 'MSMCAZR0059P', 'MSMCAZR0060P', 'MSMCAZR0063P', 'MSMCAZR0120P', 'MSMCAZR0121P', 'MSMCAZR0125P', - * 'MSMCAZR0128P', 'MSAZRDE0003P', 'MSAZRDE0044P' - * @readonly - * @enum {string} + * Defines headers for Delete operation. */ -export type AzureOfferCode = 'Unknown' | 'MSAZR0003P' | 'MSAZR0044P' | 'MSAZR0059P' | 'MSAZR0060P' | 'MSAZR0062P' | 'MSAZR0063P' | 'MSAZR0064P' | 'MSAZR0029P' | 'MSAZR0022P' | 'MSAZR0023P' | 'MSAZR0148P' | 'MSAZR0025P' | 'MSAZR0036P' | 'MSAZR0120P' | 'MSAZR0121P' | 'MSAZR0122P' | 'MSAZR0123P' | 'MSAZR0124P' | 'MSAZR0125P' | 'MSAZR0126P' | 'MSAZR0127P' | 'MSAZR0128P' | 'MSAZR0129P' | 'MSAZR0130P' | 'MSAZR0111P' | 'MSAZR0144P' | 'MSAZR0149P' | 'MSMCAZR0044P' | 'MSMCAZR0059P' | 'MSMCAZR0060P' | 'MSMCAZR0063P' | 'MSMCAZR0120P' | 'MSMCAZR0121P' | 'MSMCAZR0125P' | 'MSMCAZR0128P' | 'MSAZRDE0003P' | 'MSAZRDE0044P'; +export interface GroupsDeleteHeaders { + /** + * Service generated Request ID. + */ + xMsRequestId: string; +} /** - * Defines values for AzurePricingTier. - * Possible values include: 'Standard', 'Basic' - * @readonly - * @enum {string} + * Defines headers for UpdateMachines operation. */ -export type AzurePricingTier = 'Standard' | 'Basic'; +export interface GroupsUpdateMachinesHeaders { + /** + * Service generated Request ID. + */ + xMsRequestId: string; +} /** - * Defines values for AzureStorageRedundancy. - * Possible values include: 'Unknown', 'LocallyRedundant', 'ZoneRedundant', 'GeoRedundant', - * 'ReadAccessGeoRedundant' - * @readonly - * @enum {string} + * Defines headers for ListByGroup operation. */ -export type AzureStorageRedundancy = 'Unknown' | 'LocallyRedundant' | 'ZoneRedundant' | 'GeoRedundant' | 'ReadAccessGeoRedundant'; +export interface AssessmentsListByGroupHeaders { + /** + * Service generated Request ID. + */ + xMsRequestId: string; +} /** - * Defines values for Percentile. - * Possible values include: 'Percentile50', 'Percentile90', 'Percentile95', 'Percentile99' - * @readonly - * @enum {string} + * Defines headers for ListByProject operation. */ -export type Percentile = 'Percentile50' | 'Percentile90' | 'Percentile95' | 'Percentile99'; +export interface AssessmentsListByProjectHeaders { + /** + * Service generated Request ID. + */ + xMsRequestId: string; +} /** - * Defines values for TimeRange. - * Possible values include: 'Day', 'Week', 'Month' - * @readonly - * @enum {string} + * Defines headers for Get operation. */ -export type TimeRange = 'Day' | 'Week' | 'Month'; +export interface AssessmentsGetHeaders { + /** + * Service generated Request ID. + */ + xMsRequestId: string; +} /** - * Defines values for AssessmentStage. - * Possible values include: 'InProgress', 'UnderReview', 'Approved' - * @readonly - * @enum {string} + * Defines headers for Create operation. */ -export type AssessmentStage = 'InProgress' | 'UnderReview' | 'Approved'; +export interface AssessmentsCreateHeaders { + /** + * Service generated Request ID. + */ + xMsRequestId: string; +} /** - * Defines values for Currency. - * Possible values include: 'Unknown', 'USD', 'DKK', 'CAD', 'IDR', 'JPY', 'KRW', 'NZD', 'NOK', - * 'RUB', 'SAR', 'ZAR', 'SEK', 'TRY', 'GBP', 'MXN', 'MYR', 'INR', 'HKD', 'BRL', 'TWD', 'EUR', - * 'CHF', 'ARS', 'AUD', 'CNY' - * @readonly - * @enum {string} + * Defines headers for Delete operation. */ -export type Currency = 'Unknown' | 'USD' | 'DKK' | 'CAD' | 'IDR' | 'JPY' | 'KRW' | 'NZD' | 'NOK' | 'RUB' | 'SAR' | 'ZAR' | 'SEK' | 'TRY' | 'GBP' | 'MXN' | 'MYR' | 'INR' | 'HKD' | 'BRL' | 'TWD' | 'EUR' | 'CHF' | 'ARS' | 'AUD' | 'CNY'; +export interface AssessmentsDeleteHeaders { + /** + * Service generated Request ID. + */ + xMsRequestId: string; +} /** - * Defines values for AzureHybridUseBenefit. - * Possible values include: 'Unknown', 'Yes', 'No' - * @readonly - * @enum {string} + * Defines headers for GetReportDownloadUrl operation. */ -export type AzureHybridUseBenefit = 'Unknown' | 'Yes' | 'No'; +export interface AssessmentsGetReportDownloadUrlHeaders { + /** + * Service generated Request ID. + */ + xMsRequestId: string; +} /** - * Defines values for AssessmentSizingCriterion. - * Possible values include: 'PerformanceBased', 'AsOnPremises' - * @readonly - * @enum {string} + * Defines headers for ListByAssessment operation. */ -export type AssessmentSizingCriterion = 'PerformanceBased' | 'AsOnPremises'; +export interface AssessedMachinesListByAssessmentHeaders { + /** + * Service generated Request ID. + */ + xMsRequestId: string; +} /** - * Defines values for AssessmentStatus. - * Possible values include: 'Created', 'Updated', 'Running', 'Completed', 'Invalid' - * @readonly - * @enum {string} + * Defines headers for Get operation. */ -export type AssessmentStatus = 'Created' | 'Updated' | 'Running' | 'Completed' | 'Invalid'; +export interface AssessedMachinesGetHeaders { + /** + * Service generated Request ID. + */ + xMsRequestId: string; +} /** - * Defines values for MachineBootType. - * Possible values include: 'Unknown', 'EFI', 'BIOS' - * @readonly - * @enum {string} + * Defines headers for ListByProject operation. */ -export type MachineBootType = 'Unknown' | 'EFI' | 'BIOS'; +export interface HyperVCollectorsListByProjectHeaders { + /** + * Service generated Request ID. + */ + xMsRequestId: string; +} /** - * Defines values for AzureDiskType. - * Possible values include: 'Unknown', 'Standard', 'Premium' - * @readonly - * @enum {string} + * Defines headers for Get operation. */ -export type AzureDiskType = 'Unknown' | 'Standard' | 'Premium'; +export interface HyperVCollectorsGetHeaders { + /** + * Service generated Request ID. + */ + xMsRequestId: string; +} /** - * Defines values for AzureDiskSize. - * 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' - * @readonly - * @enum {string} + * Defines headers for Create operation. */ -export type AzureDiskSize = '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'; +export interface HyperVCollectorsCreateHeaders { + /** + * Service generated Request ID. + */ + xMsRequestId: string; +} /** - * Defines values for CloudSuitability. - * Possible values include: 'Unknown', 'NotSuitable', 'Suitable', 'ConditionallySuitable', - * 'ReadinessUnknown' + * Defines headers for Delete operation. + */ +export interface HyperVCollectorsDeleteHeaders { + /** + * Service generated Request ID. + */ + xMsRequestId: string; +} + +/** + * Defines headers for ListByProject operation. + */ +export interface ServerCollectorsListByProjectHeaders { + /** + * Service generated Request ID. + */ + xMsRequestId: string; +} + +/** + * Defines headers for Get operation. + */ +export interface ServerCollectorsGetHeaders { + /** + * Service generated Request ID. + */ + xMsRequestId: string; +} + +/** + * Defines headers for Create operation. + */ +export interface ServerCollectorsCreateHeaders { + /** + * Service generated Request ID. + */ + xMsRequestId: string; +} + +/** + * Defines headers for Delete operation. + */ +export interface ServerCollectorsDeleteHeaders { + /** + * Service generated Request ID. + */ + xMsRequestId: string; +} + +/** + * Defines headers for ListByProject operation. + */ +export interface VMwareCollectorsListByProjectHeaders { + /** + * Service generated Request ID. + */ + xMsRequestId: string; +} + +/** + * Defines headers for Get operation. + */ +export interface VMwareCollectorsGetHeaders { + /** + * Service generated Request ID. + */ + xMsRequestId: string; +} + +/** + * Defines headers for Create operation. + */ +export interface VMwareCollectorsCreateHeaders { + /** + * Service generated Request ID. + */ + xMsRequestId: string; +} + +/** + * Defines headers for Delete operation. + */ +export interface VMwareCollectorsDeleteHeaders { + /** + * Service generated Request ID. + */ + xMsRequestId: string; +} + +/** + * Defines headers for ListByProject operation. + */ +export interface ImportCollectorsListByProjectHeaders { + /** + * Service generated Request ID. + */ + xMsRequestId: string; +} + +/** + * Defines headers for Get operation. + */ +export interface ImportCollectorsGetHeaders { + /** + * Service generated Request ID. + */ + xMsRequestId: string; +} + +/** + * Defines headers for Create operation. + */ +export interface ImportCollectorsCreateHeaders { + /** + * Service generated Request ID. + */ + xMsRequestId: string; +} + +/** + * Defines headers for Delete operation. + */ +export interface ImportCollectorsDeleteHeaders { + /** + * Service generated Request ID. + */ + xMsRequestId: string; +} + +/** + * Defines headers for ListByProject operation. + */ +export interface PrivateEndpointConnectionListByProjectHeaders { + /** + * Service generated Request ID. + */ + xMsRequestId: string; +} + +/** + * Defines headers for Get operation. + */ +export interface PrivateEndpointConnectionGetHeaders { + /** + * Service generated Request ID. + */ + xMsRequestId: string; +} + +/** + * Defines headers for Update operation. + */ +export interface PrivateEndpointConnectionUpdateHeaders { + /** + * Service generated Request ID. + */ + xMsRequestId: string; +} + +/** + * Defines headers for Delete operation. + */ +export interface PrivateEndpointConnectionDeleteHeaders { + /** + * Service generated Request ID. + */ + xMsRequestId: string; +} + +/** + * Defines headers for Get operation. + */ +export interface PrivateLinkResourceGetHeaders { + /** + * Service generated Request ID. + */ + xMsRequestId: string; +} + +/** + * Defines headers for ListByProject operation. + */ +export interface PrivateLinkResourceListByProjectHeaders { + /** + * Service generated Request ID. + */ + xMsRequestId: string; +} + +/** + * @interface + * List of projects. + * @extends Array + */ +export interface ProjectResultList extends Array { + nextLink?: string; +} + +/** + * @interface + * List of API operations. + * @extends Array + */ +export interface AssessmentOptionsResultList extends Array { +} + +/** + * @interface + * List of machines. + * @extends Array + */ +export interface MachineResultList extends Array { + nextLink?: string; +} + +/** + * @interface + * List of groups. + * @extends Array + */ +export interface GroupResultList extends Array { +} + +/** + * @interface + * List of assessments. + * @extends Array + */ +export interface AssessmentResultList extends Array { +} + +/** + * @interface + * List of assessed machines. + * @extends Array + */ +export interface AssessedMachineResultList extends Array { + nextLink?: string; +} + +/** + * @interface + * List of Hyper-V collectors. + * @extends Array + */ +export interface HyperVCollectorList extends Array { +} + +/** + * @interface + * List of Server collectors. + * @extends Array + */ +export interface ServerCollectorList extends Array { +} + +/** + * @interface + * List of VMware collectors. + * @extends Array + */ +export interface VMwareCollectorList extends Array { +} + +/** + * @interface + * List of Import collectors. + * @extends Array + */ +export interface ImportCollectorList extends Array { +} + +/** + * @interface + * List of API operations. + * @extends Array + */ +export interface OperationResultList extends Array { +} + +/** + * Defines values for ProjectStatus. + * Possible values include: 'Active', 'Inactive' * @readonly * @enum {string} */ -export type CloudSuitability = 'Unknown' | 'NotSuitable' | 'Suitable' | 'ConditionallySuitable' | 'ReadinessUnknown'; +export type ProjectStatus = 'Active' | 'Inactive'; /** - * Defines values for AzureDiskSuitabilityExplanation. - * Possible values include: 'Unknown', 'NotApplicable', 'DiskSizeGreaterThanSupported', - * 'NoSuitableDiskSizeForIops', 'NoSuitableDiskSizeForThroughput', - * 'NoDiskSizeFoundInSelectedLocation', 'NoDiskSizeFoundForSelectedRedundancy', - * 'InternalErrorOccurredForDiskEvaluation' + * Defines values for ProvisioningState. + * Possible values include: 'Accepted', 'Creating', 'Deleting', 'Failed', 'Moving', 'Succeeded' * @readonly * @enum {string} */ -export type AzureDiskSuitabilityExplanation = 'Unknown' | 'NotApplicable' | 'DiskSizeGreaterThanSupported' | 'NoSuitableDiskSizeForIops' | 'NoSuitableDiskSizeForThroughput' | 'NoDiskSizeFoundInSelectedLocation' | 'NoDiskSizeFoundForSelectedRedundancy' | 'InternalErrorOccurredForDiskEvaluation'; +export type ProvisioningState = 'Accepted' | 'Creating' | 'Deleting' | 'Failed' | 'Moving' | 'Succeeded'; /** - * Defines values for AzureNetworkAdapterSuitabilityExplanation. - * Possible values include: 'Unknown', 'NotApplicable', 'InternalErrorOccured' + * Defines values for GroupStatus. + * Possible values include: 'Created', 'Updated', 'Running', 'Completed', 'Invalid' * @readonly * @enum {string} */ -export type AzureNetworkAdapterSuitabilityExplanation = 'Unknown' | 'NotApplicable' | 'InternalErrorOccured'; +export type GroupStatus = 'Created' | 'Updated' | 'Running' | 'Completed' | 'Invalid'; /** - * Defines values for AzureVmSize. - * Possible values include: 'Unknown', 'Basic_A0', 'Basic_A1', 'Basic_A2', 'Basic_A3', 'Basic_A4', - * 'Standard_A0', 'Standard_A1', 'Standard_A2', 'Standard_A3', 'Standard_A4', 'Standard_A5', - * 'Standard_A6', 'Standard_A7', 'Standard_A8', 'Standard_A9', 'Standard_A10', 'Standard_A11', - * 'Standard_A1_v2', 'Standard_A2_v2', 'Standard_A4_v2', 'Standard_A8_v2', 'Standard_A2m_v2', - * 'Standard_A4m_v2', 'Standard_A8m_v2', 'Standard_D1', 'Standard_D2', 'Standard_D3', - * 'Standard_D4', 'Standard_D11', 'Standard_D12', 'Standard_D13', 'Standard_D14', 'Standard_D1_v2', - * 'Standard_D2_v2', 'Standard_D3_v2', 'Standard_D4_v2', 'Standard_D5_v2', 'Standard_D11_v2', - * 'Standard_D12_v2', 'Standard_D13_v2', 'Standard_D14_v2', 'Standard_D15_v2', 'Standard_DS1', - * 'Standard_DS2', 'Standard_DS3', 'Standard_DS4', 'Standard_DS11', 'Standard_DS12', - * 'Standard_DS13', 'Standard_DS14', 'Standard_DS1_v2', 'Standard_DS2_v2', 'Standard_DS3_v2', - * 'Standard_DS4_v2', 'Standard_DS5_v2', 'Standard_DS11_v2', 'Standard_DS12_v2', - * 'Standard_DS13_v2', 'Standard_DS14_v2', 'Standard_DS15_v2', 'Standard_F1', 'Standard_F2', - * 'Standard_F4', 'Standard_F8', 'Standard_F16', 'Standard_F1s', 'Standard_F2s', 'Standard_F4s', - * 'Standard_F8s', 'Standard_F16s', 'Standard_G1', 'Standard_G2', 'Standard_G3', 'Standard_G4', - * 'Standard_G5', 'Standard_GS1', 'Standard_GS2', 'Standard_GS3', 'Standard_GS4', 'Standard_GS5', - * 'Standard_H8', 'Standard_H16', 'Standard_H8m', 'Standard_H16m', 'Standard_H16r', - * 'Standard_H16mr', 'Standard_L4s', 'Standard_L8s', 'Standard_L16s', 'Standard_L32s' + * Defines values for GroupUpdateOperation. + * Possible values include: 'Add', 'Remove' * @readonly * @enum {string} */ -export type AzureVmSize = 'Unknown' | 'Basic_A0' | 'Basic_A1' | 'Basic_A2' | 'Basic_A3' | 'Basic_A4' | 'Standard_A0' | 'Standard_A1' | 'Standard_A2' | 'Standard_A3' | 'Standard_A4' | 'Standard_A5' | 'Standard_A6' | 'Standard_A7' | 'Standard_A8' | 'Standard_A9' | 'Standard_A10' | 'Standard_A11' | 'Standard_A1_v2' | 'Standard_A2_v2' | 'Standard_A4_v2' | 'Standard_A8_v2' | 'Standard_A2m_v2' | 'Standard_A4m_v2' | 'Standard_A8m_v2' | 'Standard_D1' | 'Standard_D2' | 'Standard_D3' | 'Standard_D4' | 'Standard_D11' | 'Standard_D12' | 'Standard_D13' | 'Standard_D14' | 'Standard_D1_v2' | 'Standard_D2_v2' | 'Standard_D3_v2' | 'Standard_D4_v2' | 'Standard_D5_v2' | 'Standard_D11_v2' | 'Standard_D12_v2' | 'Standard_D13_v2' | 'Standard_D14_v2' | 'Standard_D15_v2' | 'Standard_DS1' | 'Standard_DS2' | 'Standard_DS3' | 'Standard_DS4' | 'Standard_DS11' | 'Standard_DS12' | 'Standard_DS13' | 'Standard_DS14' | 'Standard_DS1_v2' | 'Standard_DS2_v2' | 'Standard_DS3_v2' | 'Standard_DS4_v2' | 'Standard_DS5_v2' | 'Standard_DS11_v2' | 'Standard_DS12_v2' | 'Standard_DS13_v2' | 'Standard_DS14_v2' | 'Standard_DS15_v2' | 'Standard_F1' | 'Standard_F2' | 'Standard_F4' | 'Standard_F8' | 'Standard_F16' | 'Standard_F1s' | 'Standard_F2s' | 'Standard_F4s' | 'Standard_F8s' | 'Standard_F16s' | 'Standard_G1' | 'Standard_G2' | 'Standard_G3' | 'Standard_G4' | 'Standard_G5' | 'Standard_GS1' | 'Standard_GS2' | 'Standard_GS3' | 'Standard_GS4' | 'Standard_GS5' | 'Standard_H8' | 'Standard_H16' | 'Standard_H8m' | 'Standard_H16m' | 'Standard_H16r' | 'Standard_H16mr' | 'Standard_L4s' | 'Standard_L8s' | 'Standard_L16s' | 'Standard_L32s'; +export type GroupUpdateOperation = 'Add' | 'Remove'; + +/** + * Defines values for AzureLocation. + * Possible values include: 'Unknown', 'EastAsia', 'SoutheastAsia', 'AustraliaEast', + * 'AustraliaSoutheast', 'BrazilSouth', 'CanadaCentral', 'CanadaEast', 'WestEurope', 'NorthEurope', + * 'CentralIndia', 'SouthIndia', 'WestIndia', 'JapanEast', 'JapanWest', 'KoreaCentral', + * 'KoreaSouth', 'UkWest', 'UkSouth', 'NorthCentralUs', 'EastUs', 'WestUs2', 'SouthCentralUs', + * 'CentralUs', 'EastUs2', 'WestUs', 'WestCentralUs', 'GermanyCentral', 'GermanyNortheast', + * 'ChinaNorth', 'ChinaEast', 'USGovArizona', 'USGovTexas', 'USGovIowa', 'USGovVirginia', + * 'USDoDCentral', 'USDoDEast' + * @readonly + * @enum {string} + */ +export type AzureLocation = 'Unknown' | 'EastAsia' | 'SoutheastAsia' | 'AustraliaEast' | 'AustraliaSoutheast' | 'BrazilSouth' | 'CanadaCentral' | 'CanadaEast' | 'WestEurope' | 'NorthEurope' | 'CentralIndia' | 'SouthIndia' | 'WestIndia' | 'JapanEast' | 'JapanWest' | 'KoreaCentral' | 'KoreaSouth' | 'UkWest' | 'UkSouth' | 'NorthCentralUs' | 'EastUs' | 'WestUs2' | 'SouthCentralUs' | 'CentralUs' | 'EastUs2' | 'WestUs' | 'WestCentralUs' | 'GermanyCentral' | 'GermanyNortheast' | 'ChinaNorth' | 'ChinaEast' | 'USGovArizona' | 'USGovTexas' | 'USGovIowa' | 'USGovVirginia' | 'USDoDCentral' | 'USDoDEast'; + +/** + * Defines values for AzureOfferCode. + * Possible values include: 'Unknown', 'MSAZR0003P', 'MSAZR0044P', 'MSAZR0059P', 'MSAZR0060P', + * 'MSAZR0062P', 'MSAZR0063P', 'MSAZR0064P', 'MSAZR0029P', 'MSAZR0022P', 'MSAZR0023P', + * 'MSAZR0148P', 'MSAZR0025P', 'MSAZR0036P', 'MSAZR0120P', 'MSAZR0121P', 'MSAZR0122P', + * 'MSAZR0123P', 'MSAZR0124P', 'MSAZR0125P', 'MSAZR0126P', 'MSAZR0127P', 'MSAZR0128P', + * 'MSAZR0129P', 'MSAZR0130P', 'MSAZR0111P', 'MSAZR0144P', 'MSAZR0149P', 'MSMCAZR0044P', + * 'MSMCAZR0059P', 'MSMCAZR0060P', 'MSMCAZR0063P', 'MSMCAZR0120P', 'MSMCAZR0121P', 'MSMCAZR0125P', + * 'MSMCAZR0128P', 'MSAZRDE0003P', 'MSAZRDE0044P', 'MSAZRUSGOV0003P', 'EA' + * @readonly + * @enum {string} + */ +export type AzureOfferCode = 'Unknown' | 'MSAZR0003P' | 'MSAZR0044P' | 'MSAZR0059P' | 'MSAZR0060P' | 'MSAZR0062P' | 'MSAZR0063P' | 'MSAZR0064P' | 'MSAZR0029P' | 'MSAZR0022P' | 'MSAZR0023P' | 'MSAZR0148P' | 'MSAZR0025P' | 'MSAZR0036P' | 'MSAZR0120P' | 'MSAZR0121P' | 'MSAZR0122P' | 'MSAZR0123P' | 'MSAZR0124P' | 'MSAZR0125P' | 'MSAZR0126P' | 'MSAZR0127P' | 'MSAZR0128P' | 'MSAZR0129P' | 'MSAZR0130P' | 'MSAZR0111P' | 'MSAZR0144P' | 'MSAZR0149P' | 'MSMCAZR0044P' | 'MSMCAZR0059P' | 'MSMCAZR0060P' | 'MSMCAZR0063P' | 'MSMCAZR0120P' | 'MSMCAZR0121P' | 'MSMCAZR0125P' | 'MSMCAZR0128P' | 'MSAZRDE0003P' | 'MSAZRDE0044P' | 'MSAZRUSGOV0003P' | 'EA'; + +/** + * Defines values for AzurePricingTier. + * Possible values include: 'Standard', 'Basic' + * @readonly + * @enum {string} + */ +export type AzurePricingTier = 'Standard' | 'Basic'; + +/** + * Defines values for AzureStorageRedundancy. + * Possible values include: 'Unknown', 'LocallyRedundant', 'ZoneRedundant', 'GeoRedundant', + * 'ReadAccessGeoRedundant' + * @readonly + * @enum {string} + */ +export type AzureStorageRedundancy = 'Unknown' | 'LocallyRedundant' | 'ZoneRedundant' | 'GeoRedundant' | 'ReadAccessGeoRedundant'; + +/** + * Defines values for Percentile. + * Possible values include: 'Percentile50', 'Percentile90', 'Percentile95', 'Percentile99' + * @readonly + * @enum {string} + */ +export type Percentile = 'Percentile50' | 'Percentile90' | 'Percentile95' | 'Percentile99'; + +/** + * Defines values for TimeRange. + * Possible values include: 'Day', 'Week', 'Month', 'Custom' + * @readonly + * @enum {string} + */ +export type TimeRange = 'Day' | 'Week' | 'Month' | 'Custom'; + +/** + * Defines values for AssessmentStage. + * Possible values include: 'InProgress', 'UnderReview', 'Approved' + * @readonly + * @enum {string} + */ +export type AssessmentStage = 'InProgress' | 'UnderReview' | 'Approved'; + +/** + * Defines values for Currency. + * Possible values include: 'Unknown', 'USD', 'DKK', 'CAD', 'IDR', 'JPY', 'KRW', 'NZD', 'NOK', + * 'RUB', 'SAR', 'ZAR', 'SEK', 'TRY', 'GBP', 'MXN', 'MYR', 'INR', 'HKD', 'BRL', 'TWD', 'EUR', + * 'CHF', 'ARS', 'AUD', 'CNY' + * @readonly + * @enum {string} + */ +export type Currency = 'Unknown' | 'USD' | 'DKK' | 'CAD' | 'IDR' | 'JPY' | 'KRW' | 'NZD' | 'NOK' | 'RUB' | 'SAR' | 'ZAR' | 'SEK' | 'TRY' | 'GBP' | 'MXN' | 'MYR' | 'INR' | 'HKD' | 'BRL' | 'TWD' | 'EUR' | 'CHF' | 'ARS' | 'AUD' | 'CNY'; + +/** + * Defines values for AzureHybridUseBenefit. + * Possible values include: 'Unknown', 'Yes', 'No' + * @readonly + * @enum {string} + */ +export type AzureHybridUseBenefit = 'Unknown' | 'Yes' | 'No'; + +/** + * Defines values for AssessmentSizingCriterion. + * Possible values include: 'PerformanceBased', 'AsOnPremises' + * @readonly + * @enum {string} + */ +export type AssessmentSizingCriterion = 'PerformanceBased' | 'AsOnPremises'; + +/** + * Defines values for ReservedInstance. + * Possible values include: 'None', 'RI1Year', 'RI3Year' + * @readonly + * @enum {string} + */ +export type ReservedInstance = 'None' | 'RI1Year' | 'RI3Year'; + +/** + * Defines values for AzureVmFamily. + * Possible values include: 'Unknown', 'Basic_A0_A4', 'Standard_A0_A7', 'Standard_A8_A11', + * 'Av2_series', 'D_series', 'Dv2_series', 'DS_series', 'DSv2_series', 'F_series', 'Fs_series', + * 'G_series', 'GS_series', 'H_series', 'Ls_series', 'Dsv3_series', 'Dv3_series', 'Fsv2_series', + * 'Ev3_series', 'Esv3_series', 'M_series', 'DC_Series' + * @readonly + * @enum {string} + */ +export type AzureVmFamily = 'Unknown' | 'Basic_A0_A4' | 'Standard_A0_A7' | 'Standard_A8_A11' | 'Av2_series' | 'D_series' | 'Dv2_series' | 'DS_series' | 'DSv2_series' | 'F_series' | 'Fs_series' | 'G_series' | 'GS_series' | 'H_series' | 'Ls_series' | 'Dsv3_series' | 'Dv3_series' | 'Fsv2_series' | 'Ev3_series' | 'Esv3_series' | 'M_series' | 'DC_Series'; + +/** + * Defines values for AzureDiskType. + * Possible values include: 'Unknown', 'Standard', 'Premium', 'StandardSSD', 'StandardOrPremium' + * @readonly + * @enum {string} + */ +export type AzureDiskType = 'Unknown' | 'Standard' | 'Premium' | 'StandardSSD' | 'StandardOrPremium'; + +/** + * Defines values for AssessmentStatus. + * Possible values include: 'Created', 'Updated', 'Running', 'Completed', 'Invalid', 'OutOfSync', + * 'OutDated' + * @readonly + * @enum {string} + */ +export type AssessmentStatus = 'Created' | 'Updated' | 'Running' | 'Completed' | 'Invalid' | 'OutOfSync' | 'OutDated'; + +/** + * Defines values for MachineBootType. + * Possible values include: 'Unknown', 'EFI', 'BIOS' + * @readonly + * @enum {string} + */ +export type MachineBootType = 'Unknown' | 'EFI' | 'BIOS'; + +/** + * Defines values for AzureDiskSize. + * Possible values include: 'Unknown', 'Standard_S4', 'Standard_S6', 'Standard_S10', + * 'Standard_S15', 'Standard_S20', 'Standard_S30', 'Standard_S40', 'Standard_S50', 'Premium_P4', + * 'Premium_P6', 'Premium_P10', 'Premium_P15', 'Premium_P20', 'Premium_P30', 'Premium_P40', + * 'Premium_P50', 'Standard_S60', 'Standard_S70', 'Standard_S80', 'Premium_P60', 'Premium_P70', + * 'Premium_P80', 'StandardSSD_E10', 'StandardSSD_E15', 'StandardSSD_E20', 'StandardSSD_E30', + * 'StandardSSD_E40', 'StandardSSD_E50', 'StandardSSD_E60', 'StandardSSD_E70', 'StandardSSD_E80', + * 'StandardSSD_E4', 'StandardSSD_E6' + * @readonly + * @enum {string} + */ +export type AzureDiskSize = 'Unknown' | 'Standard_S4' | 'Standard_S6' | 'Standard_S10' | 'Standard_S15' | 'Standard_S20' | 'Standard_S30' | 'Standard_S40' | 'Standard_S50' | 'Premium_P4' | 'Premium_P6' | 'Premium_P10' | 'Premium_P15' | 'Premium_P20' | 'Premium_P30' | 'Premium_P40' | 'Premium_P50' | 'Standard_S60' | 'Standard_S70' | 'Standard_S80' | 'Premium_P60' | 'Premium_P70' | 'Premium_P80' | 'StandardSSD_E10' | 'StandardSSD_E15' | 'StandardSSD_E20' | 'StandardSSD_E30' | 'StandardSSD_E40' | 'StandardSSD_E50' | 'StandardSSD_E60' | 'StandardSSD_E70' | 'StandardSSD_E80' | 'StandardSSD_E4' | 'StandardSSD_E6'; + +/** + * Defines values for CloudSuitability. + * Possible values include: 'Unknown', 'NotSuitable', 'Suitable', 'ConditionallySuitable', + * 'ReadinessUnknown' + * @readonly + * @enum {string} + */ +export type CloudSuitability = 'Unknown' | 'NotSuitable' | 'Suitable' | 'ConditionallySuitable' | 'ReadinessUnknown'; + +/** + * Defines values for AzureDiskSuitabilityExplanation. + * Possible values include: 'Unknown', 'NotApplicable', 'DiskSizeGreaterThanSupported', + * 'NoSuitableDiskSizeForIops', 'NoSuitableDiskSizeForThroughput', + * 'NoDiskSizeFoundInSelectedLocation', 'NoDiskSizeFoundForSelectedRedundancy', + * 'InternalErrorOccurredForDiskEvaluation', 'NoEaPriceFoundForDiskSize' + * @readonly + * @enum {string} + */ +export type AzureDiskSuitabilityExplanation = 'Unknown' | 'NotApplicable' | 'DiskSizeGreaterThanSupported' | 'NoSuitableDiskSizeForIops' | 'NoSuitableDiskSizeForThroughput' | 'NoDiskSizeFoundInSelectedLocation' | 'NoDiskSizeFoundForSelectedRedundancy' | 'InternalErrorOccurredForDiskEvaluation' | 'NoEaPriceFoundForDiskSize'; + +/** + * Defines values for AzureDiskSuitabilityDetail. + * Possible values include: 'None', 'NumberOfReadOperationsPerSecondMissing', + * 'NumberOfWriteOperationsPerSecondMissing', 'MegabytesPerSecondOfReadMissing', + * 'MegabytesPerSecondOfWriteMissing', 'DiskGigabytesConsumedMissing', + * 'DiskGigabytesProvisionedMissing', 'NumberOfReadOperationsPerSecondOutOfRange', + * 'NumberOfWriteOperationsPerSecondOutOfRange', 'MegabytesPerSecondOfReadOutOfRange', + * 'MegabytesPerSecondOfWriteOutOfRange', 'DiskGigabytesConsumedOutOfRange', + * 'DiskGigabytesProvisionedOutOfRange' + * @readonly + * @enum {string} + */ +export type AzureDiskSuitabilityDetail = 'None' | 'NumberOfReadOperationsPerSecondMissing' | 'NumberOfWriteOperationsPerSecondMissing' | 'MegabytesPerSecondOfReadMissing' | 'MegabytesPerSecondOfWriteMissing' | 'DiskGigabytesConsumedMissing' | 'DiskGigabytesProvisionedMissing' | 'NumberOfReadOperationsPerSecondOutOfRange' | 'NumberOfWriteOperationsPerSecondOutOfRange' | 'MegabytesPerSecondOfReadOutOfRange' | 'MegabytesPerSecondOfWriteOutOfRange' | 'DiskGigabytesConsumedOutOfRange' | 'DiskGigabytesProvisionedOutOfRange'; + +/** + * Defines values for AzureNetworkAdapterSuitabilityExplanation. + * Possible values include: 'Unknown', 'NotApplicable', 'InternalErrorOccurred' + * @readonly + * @enum {string} + */ +export type AzureNetworkAdapterSuitabilityExplanation = 'Unknown' | 'NotApplicable' | 'InternalErrorOccurred'; + +/** + * Defines values for AzureNetworkAdapterSuitabilityDetail. + * Possible values include: 'None', 'MegabytesOfDataTransmittedMissing', + * 'MegabytesOfDataTransmittedOutOfRange' + * @readonly + * @enum {string} + */ +export type AzureNetworkAdapterSuitabilityDetail = 'None' | 'MegabytesOfDataTransmittedMissing' | 'MegabytesOfDataTransmittedOutOfRange'; + +/** + * Defines values for AzureVmSize. + * Possible values include: 'Unknown', 'Basic_A0', 'Basic_A1', 'Basic_A2', 'Basic_A3', 'Basic_A4', + * 'Standard_A0', 'Standard_A1', 'Standard_A2', 'Standard_A3', 'Standard_A4', 'Standard_A5', + * 'Standard_A6', 'Standard_A7', 'Standard_A8', 'Standard_A9', 'Standard_A10', 'Standard_A11', + * 'Standard_A1_v2', 'Standard_A2_v2', 'Standard_A4_v2', 'Standard_A8_v2', 'Standard_A2m_v2', + * 'Standard_A4m_v2', 'Standard_A8m_v2', 'Standard_D1', 'Standard_D2', 'Standard_D3', + * 'Standard_D4', 'Standard_D11', 'Standard_D12', 'Standard_D13', 'Standard_D14', 'Standard_D1_v2', + * 'Standard_D2_v2', 'Standard_D3_v2', 'Standard_D4_v2', 'Standard_D5_v2', 'Standard_D11_v2', + * 'Standard_D12_v2', 'Standard_D13_v2', 'Standard_D14_v2', 'Standard_D15_v2', 'Standard_DS1', + * 'Standard_DS2', 'Standard_DS3', 'Standard_DS4', 'Standard_DS11', 'Standard_DS12', + * 'Standard_DS13', 'Standard_DS14', 'Standard_DS1_v2', 'Standard_DS2_v2', 'Standard_DS3_v2', + * 'Standard_DS4_v2', 'Standard_DS5_v2', 'Standard_DS11_v2', 'Standard_DS12_v2', + * 'Standard_DS13_v2', 'Standard_DS14_v2', 'Standard_DS15_v2', 'Standard_F1', 'Standard_F2', + * 'Standard_F4', 'Standard_F8', 'Standard_F16', 'Standard_F1s', 'Standard_F2s', 'Standard_F4s', + * 'Standard_F8s', 'Standard_F16s', 'Standard_G1', 'Standard_G2', 'Standard_G3', 'Standard_G4', + * 'Standard_G5', 'Standard_GS1', 'Standard_GS2', 'Standard_GS3', 'Standard_GS4', 'Standard_GS5', + * 'Standard_H8', 'Standard_H16', 'Standard_H8m', 'Standard_H16m', 'Standard_H16r', + * 'Standard_H16mr', 'Standard_L4s', 'Standard_L8s', 'Standard_L16s', 'Standard_L32s', + * 'Standard_D2s_v3', 'Standard_D4s_v3', 'Standard_D8s_v3', 'Standard_D16s_v3', 'Standard_D32s_v3', + * 'Standard_D64s_v3', 'Standard_D2_v3', 'Standard_D4_v3', 'Standard_D8_v3', 'Standard_D16_v3', + * 'Standard_D32_v3', 'Standard_D64_v3', 'Standard_F2s_v2', 'Standard_F4s_v2', 'Standard_F8s_v2', + * 'Standard_F16s_v2', 'Standard_F32s_v2', 'Standard_F64s_v2', 'Standard_F72s_v2', + * 'Standard_E2_v3', 'Standard_E4_v3', 'Standard_E8_v3', 'Standard_E16_v3', 'Standard_E32_v3', + * 'Standard_E64_v3', 'Standard_E2s_v3', 'Standard_E4s_v3', 'Standard_E8s_v3', 'Standard_E16s_v3', + * 'Standard_E32s_v3', 'Standard_E64s_v3', 'Standard_M64s', 'Standard_M64ms', 'Standard_M128s', + * 'Standard_M128ms' + * @readonly + * @enum {string} + */ +export type AzureVmSize = 'Unknown' | 'Basic_A0' | 'Basic_A1' | 'Basic_A2' | 'Basic_A3' | 'Basic_A4' | 'Standard_A0' | 'Standard_A1' | 'Standard_A2' | 'Standard_A3' | 'Standard_A4' | 'Standard_A5' | 'Standard_A6' | 'Standard_A7' | 'Standard_A8' | 'Standard_A9' | 'Standard_A10' | 'Standard_A11' | 'Standard_A1_v2' | 'Standard_A2_v2' | 'Standard_A4_v2' | 'Standard_A8_v2' | 'Standard_A2m_v2' | 'Standard_A4m_v2' | 'Standard_A8m_v2' | 'Standard_D1' | 'Standard_D2' | 'Standard_D3' | 'Standard_D4' | 'Standard_D11' | 'Standard_D12' | 'Standard_D13' | 'Standard_D14' | 'Standard_D1_v2' | 'Standard_D2_v2' | 'Standard_D3_v2' | 'Standard_D4_v2' | 'Standard_D5_v2' | 'Standard_D11_v2' | 'Standard_D12_v2' | 'Standard_D13_v2' | 'Standard_D14_v2' | 'Standard_D15_v2' | 'Standard_DS1' | 'Standard_DS2' | 'Standard_DS3' | 'Standard_DS4' | 'Standard_DS11' | 'Standard_DS12' | 'Standard_DS13' | 'Standard_DS14' | 'Standard_DS1_v2' | 'Standard_DS2_v2' | 'Standard_DS3_v2' | 'Standard_DS4_v2' | 'Standard_DS5_v2' | 'Standard_DS11_v2' | 'Standard_DS12_v2' | 'Standard_DS13_v2' | 'Standard_DS14_v2' | 'Standard_DS15_v2' | 'Standard_F1' | 'Standard_F2' | 'Standard_F4' | 'Standard_F8' | 'Standard_F16' | 'Standard_F1s' | 'Standard_F2s' | 'Standard_F4s' | 'Standard_F8s' | 'Standard_F16s' | 'Standard_G1' | 'Standard_G2' | 'Standard_G3' | 'Standard_G4' | 'Standard_G5' | 'Standard_GS1' | 'Standard_GS2' | 'Standard_GS3' | 'Standard_GS4' | 'Standard_GS5' | 'Standard_H8' | 'Standard_H16' | 'Standard_H8m' | 'Standard_H16m' | 'Standard_H16r' | 'Standard_H16mr' | 'Standard_L4s' | 'Standard_L8s' | 'Standard_L16s' | 'Standard_L32s' | 'Standard_D2s_v3' | 'Standard_D4s_v3' | 'Standard_D8s_v3' | 'Standard_D16s_v3' | 'Standard_D32s_v3' | 'Standard_D64s_v3' | 'Standard_D2_v3' | 'Standard_D4_v3' | 'Standard_D8_v3' | 'Standard_D16_v3' | 'Standard_D32_v3' | 'Standard_D64_v3' | 'Standard_F2s_v2' | 'Standard_F4s_v2' | 'Standard_F8s_v2' | 'Standard_F16s_v2' | 'Standard_F32s_v2' | 'Standard_F64s_v2' | 'Standard_F72s_v2' | 'Standard_E2_v3' | 'Standard_E4_v3' | 'Standard_E8_v3' | 'Standard_E16_v3' | 'Standard_E32_v3' | 'Standard_E64_v3' | 'Standard_E2s_v3' | 'Standard_E4s_v3' | 'Standard_E8s_v3' | 'Standard_E16s_v3' | 'Standard_E32s_v3' | 'Standard_E64s_v3' | 'Standard_M64s' | 'Standard_M64ms' | 'Standard_M128s' | 'Standard_M128ms'; /** * Defines values for AzureVmSuitabilityExplanation. @@ -1924,8 +2367,8 @@ export type AzureVmSize = 'Unknown' | 'Basic_A0' | 'Basic_A1' | 'Basic_A2' | 'Ba * 'GuestOperatingSystemArchitectureNotSupported', 'GuestOperatingSystemNotSupported', * 'BootTypeNotSupported', 'MoreDisksThanSupported', 'NoSuitableVmSizeFound', * 'OneOrMoreDisksNotSuitable', 'OneOrMoreAdaptersNotSuitable', - * 'InternalErrorOccuredDuringComputeEvaluation', 'InternalErrorOccuredDuringStorageEvaluation', - * 'InternalErrorOccuredDuringNetworkEvaluation', 'NoVmSizeSupportsStoragePerformance', + * 'InternalErrorOccurredDuringComputeEvaluation', 'InternalErrorOccurredDuringStorageEvaluation', + * 'InternalErrorOccurredDuringNetworkEvaluation', 'NoVmSizeSupportsStoragePerformance', * 'NoVmSizeSupportsNetworkPerformance', 'NoVmSizeForSelectedPricingTier', * 'NoVmSizeForSelectedAzureLocation', 'CheckRedHatLinuxVersion', 'CheckOpenSuseLinuxVersion', * 'CheckWindowsServer2008R2Version', 'CheckCentOsVersion', 'CheckDebianLinuxVersion', @@ -1938,58 +2381,534 @@ export type AzureVmSize = 'Unknown' | 'Basic_A0' | 'Basic_A1' | 'Basic_A2' | 'Ba * @readonly * @enum {string} */ -export type AzureVmSuitabilityExplanation = 'Unknown' | 'NotApplicable' | 'GuestOperatingSystemArchitectureNotSupported' | 'GuestOperatingSystemNotSupported' | 'BootTypeNotSupported' | 'MoreDisksThanSupported' | 'NoSuitableVmSizeFound' | 'OneOrMoreDisksNotSuitable' | 'OneOrMoreAdaptersNotSuitable' | 'InternalErrorOccuredDuringComputeEvaluation' | 'InternalErrorOccuredDuringStorageEvaluation' | 'InternalErrorOccuredDuringNetworkEvaluation' | 'NoVmSizeSupportsStoragePerformance' | 'NoVmSizeSupportsNetworkPerformance' | 'NoVmSizeForSelectedPricingTier' | 'NoVmSizeForSelectedAzureLocation' | 'CheckRedHatLinuxVersion' | 'CheckOpenSuseLinuxVersion' | 'CheckWindowsServer2008R2Version' | 'CheckCentOsVersion' | 'CheckDebianLinuxVersion' | 'CheckSuseLinuxVersion' | 'CheckOracleLinuxVersion' | 'CheckUbuntuLinuxVersion' | 'CheckCoreOsLinuxVersion' | 'WindowsServerVersionConditionallySupported' | 'NoGuestOperatingSystemConditionallySupported' | 'WindowsClientVersionsConditionallySupported' | 'BootTypeUnknown' | 'GuestOperatingSystemUnknown' | 'WindowsServerVersionsSupportedWithCaveat' | 'WindowsOSNoLongerUnderMSSupport' | 'EndorsedWithConditionsLinuxDistributions' | 'UnendorsedLinuxDistributions' | 'NoVmSizeForStandardPricingTier' | 'NoVmSizeForBasicPricingTier'; +export type AzureVmSuitabilityExplanation = 'Unknown' | 'NotApplicable' | 'GuestOperatingSystemArchitectureNotSupported' | 'GuestOperatingSystemNotSupported' | 'BootTypeNotSupported' | 'MoreDisksThanSupported' | 'NoSuitableVmSizeFound' | 'OneOrMoreDisksNotSuitable' | 'OneOrMoreAdaptersNotSuitable' | 'InternalErrorOccurredDuringComputeEvaluation' | 'InternalErrorOccurredDuringStorageEvaluation' | 'InternalErrorOccurredDuringNetworkEvaluation' | 'NoVmSizeSupportsStoragePerformance' | 'NoVmSizeSupportsNetworkPerformance' | 'NoVmSizeForSelectedPricingTier' | 'NoVmSizeForSelectedAzureLocation' | 'CheckRedHatLinuxVersion' | 'CheckOpenSuseLinuxVersion' | 'CheckWindowsServer2008R2Version' | 'CheckCentOsVersion' | 'CheckDebianLinuxVersion' | 'CheckSuseLinuxVersion' | 'CheckOracleLinuxVersion' | 'CheckUbuntuLinuxVersion' | 'CheckCoreOsLinuxVersion' | 'WindowsServerVersionConditionallySupported' | 'NoGuestOperatingSystemConditionallySupported' | 'WindowsClientVersionsConditionallySupported' | 'BootTypeUnknown' | 'GuestOperatingSystemUnknown' | 'WindowsServerVersionsSupportedWithCaveat' | 'WindowsOSNoLongerUnderMSSupport' | 'EndorsedWithConditionsLinuxDistributions' | 'UnendorsedLinuxDistributions' | 'NoVmSizeForStandardPricingTier' | 'NoVmSizeForBasicPricingTier'; + +/** + * Defines values for AzureVmSuitabilityDetail. + * Possible values include: 'None', 'RecommendedSizeHasLessNetworkAdapters', + * 'CannotReportComputeCost', 'CannotReportStorageCost', 'CannotReportBandwidthCosts', + * 'PercentageOfCoresUtilizedMissing', 'PercentageOfMemoryUtilizedMissing', + * 'PercentageOfCoresUtilizedOutOfRange', 'PercentageOfMemoryUtilizedOutOfRange' + * @readonly + * @enum {string} + */ +export type AzureVmSuitabilityDetail = 'None' | 'RecommendedSizeHasLessNetworkAdapters' | 'CannotReportComputeCost' | 'CannotReportStorageCost' | 'CannotReportBandwidthCosts' | 'PercentageOfCoresUtilizedMissing' | 'PercentageOfMemoryUtilizedMissing' | 'PercentageOfCoresUtilizedOutOfRange' | 'PercentageOfMemoryUtilizedOutOfRange'; + +/** + * Defines values for Status. + * Possible values include: 'Approved', 'Pending', 'Rejected', 'Disconnected' + * @readonly + * @enum {string} + */ +export type Status = 'Approved' | 'Pending' | 'Rejected' | 'Disconnected'; + +/** + * Defines values for ProvisioningState1. + * Possible values include: 'Accepted', 'InProgress', 'Succeeded', 'Failed' + * @readonly + * @enum {string} + */ +export type ProvisioningState1 = 'Accepted' | 'InProgress' | 'Succeeded' | 'Failed'; + +/** + * Contains response data for the listBySubscription operation. + */ +export type ProjectsListBySubscriptionResponse = ProjectResultList & ProjectsListBySubscriptionHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: ProjectsListBySubscriptionHeaders; + + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ProjectResultList; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type ProjectsListResponse = ProjectResultList & ProjectsListHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: ProjectsListHeaders; + + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ProjectResultList; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type ProjectsGetResponse = Project & ProjectsGetHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: ProjectsGetHeaders; + + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Project; + }; +}; + +/** + * Contains response data for the create operation. + */ +export type ProjectsCreateResponse = Project & ProjectsCreateHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: ProjectsCreateHeaders; + + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Project; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type ProjectsUpdateResponse = Project & ProjectsUpdateHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: ProjectsUpdateHeaders; + + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Project; + }; +}; + +/** + * Contains response data for the deleteMethod operation. + */ +export type ProjectsDeleteResponse = ProjectsDeleteHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: ProjectsDeleteHeaders; + }; +}; + +/** + * Contains response data for the assessmentOptionsMethod operation. + */ +export type ProjectsAssessmentOptionsResponse = AssessmentOptions & ProjectsAssessmentOptionsHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: ProjectsAssessmentOptionsHeaders; + + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: AssessmentOptions; + }; +}; + +/** + * Contains response data for the assessmentOptionsList operation. + */ +export type ProjectsAssessmentOptionsListResponse = AssessmentOptionsResultList & ProjectsAssessmentOptionsListHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: ProjectsAssessmentOptionsListHeaders; + + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: AssessmentOptionsResultList; + }; +}; + +/** + * Contains response data for the listByProject operation. + */ +export type MachinesListByProjectResponse = MachineResultList & MachinesListByProjectHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: MachinesListByProjectHeaders; + + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: MachineResultList; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type MachinesGetResponse = Machine & MachinesGetHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: MachinesGetHeaders; + + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Machine; + }; +}; + +/** + * Contains response data for the listByProject operation. + */ +export type GroupsListByProjectResponse = GroupResultList & GroupsListByProjectHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: GroupsListByProjectHeaders; + + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: GroupResultList; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type GroupsGetResponse = Group & GroupsGetHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: GroupsGetHeaders; + + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Group; + }; +}; + +/** + * Contains response data for the create operation. + */ +export type GroupsCreateResponse = Group & GroupsCreateHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: GroupsCreateHeaders; + + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Group; + }; +}; + +/** + * Contains response data for the deleteMethod operation. + */ +export type GroupsDeleteResponse = GroupsDeleteHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: GroupsDeleteHeaders; + }; +}; + +/** + * Contains response data for the updateMachines operation. + */ +export type GroupsUpdateMachinesResponse = Group & GroupsUpdateMachinesHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: GroupsUpdateMachinesHeaders; + + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Group; + }; +}; + +/** + * Contains response data for the listByGroup operation. + */ +export type AssessmentsListByGroupResponse = AssessmentResultList & AssessmentsListByGroupHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: AssessmentsListByGroupHeaders; + + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: AssessmentResultList; + }; +}; + +/** + * Contains response data for the listByProject operation. + */ +export type AssessmentsListByProjectResponse = AssessmentResultList & AssessmentsListByProjectHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: AssessmentsListByProjectHeaders; + + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: AssessmentResultList; + }; +}; /** - * Defines values for NameAvailabilityReason. - * Possible values include: 'Available', 'Invalid', 'AlreadyExists' - * @readonly - * @enum {string} + * Contains response data for the get operation. */ -export type NameAvailabilityReason = 'Available' | 'Invalid' | 'AlreadyExists'; +export type AssessmentsGetResponse = Assessment & AssessmentsGetHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: AssessmentsGetHeaders; + + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Assessment; + }; +}; /** - * Contains response data for the checkNameAvailability operation. + * Contains response data for the create operation. */ -export type LocationCheckNameAvailabilityResponse = CheckNameAvailabilityResult & { +export type AssessmentsCreateResponse = Assessment & AssessmentsCreateHeaders & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: AssessmentsCreateHeaders; + /** * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: CheckNameAvailabilityResult; + parsedBody: Assessment; }; }; /** - * Contains response data for the get operation. + * Contains response data for the deleteMethod operation. + */ +export type AssessmentsDeleteResponse = AssessmentsDeleteHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: AssessmentsDeleteHeaders; + }; +}; + +/** + * Contains response data for the getReportDownloadUrl operation. */ -export type AssessmentOptionsGetResponse = AssessmentOptionsResultList & { +export type AssessmentsGetReportDownloadUrlResponse = DownloadUrl & AssessmentsGetReportDownloadUrlHeaders & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: AssessmentsGetReportDownloadUrlHeaders; + /** * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: AssessmentOptionsResultList; + parsedBody: DownloadUrl; }; }; /** - * Contains response data for the listBySubscription operation. + * Contains response data for the listByAssessment operation. */ -export type ProjectsListBySubscriptionResponse = ProjectResultList & ProjectsListBySubscriptionHeaders & { +export type AssessedMachinesListByAssessmentResponse = AssessedMachineResultList & AssessedMachinesListByAssessmentHeaders & { /** * The underlying HTTP response. */ @@ -1997,22 +2916,24 @@ export type ProjectsListBySubscriptionResponse = ProjectResultList & ProjectsLis /** * The parsed HTTP response headers. */ - parsedHeaders: ProjectsListBySubscriptionHeaders; + parsedHeaders: AssessedMachinesListByAssessmentHeaders; + /** * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: ProjectResultList; + parsedBody: AssessedMachineResultList; }; }; /** - * Contains response data for the listByResourceGroup operation. + * Contains response data for the get operation. */ -export type ProjectsListByResourceGroupResponse = ProjectResultList & ProjectsListByResourceGroupHeaders & { +export type AssessedMachinesGetResponse = AssessedMachine & AssessedMachinesGetHeaders & { /** * The underlying HTTP response. */ @@ -2020,22 +2941,24 @@ export type ProjectsListByResourceGroupResponse = ProjectResultList & ProjectsLi /** * The parsed HTTP response headers. */ - parsedHeaders: ProjectsListByResourceGroupHeaders; + parsedHeaders: AssessedMachinesGetHeaders; + /** * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: ProjectResultList; + parsedBody: AssessedMachine; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listByProject operation. */ -export type ProjectsGetResponse = Project & ProjectsGetHeaders & { +export type HyperVCollectorsListByProjectResponse = HyperVCollectorList & HyperVCollectorsListByProjectHeaders & { /** * The underlying HTTP response. */ @@ -2043,22 +2966,24 @@ export type ProjectsGetResponse = Project & ProjectsGetHeaders & { /** * The parsed HTTP response headers. */ - parsedHeaders: ProjectsGetHeaders; + parsedHeaders: HyperVCollectorsListByProjectHeaders; + /** * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: Project; + parsedBody: HyperVCollectorList; }; }; /** - * Contains response data for the create operation. + * Contains response data for the get operation. */ -export type ProjectsCreateResponse = Project & ProjectsCreateHeaders & { +export type HyperVCollectorsGetResponse = HyperVCollector & HyperVCollectorsGetHeaders & { /** * The underlying HTTP response. */ @@ -2066,22 +2991,24 @@ export type ProjectsCreateResponse = Project & ProjectsCreateHeaders & { /** * The parsed HTTP response headers. */ - parsedHeaders: ProjectsCreateHeaders; + parsedHeaders: HyperVCollectorsGetHeaders; + /** * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: Project; + parsedBody: HyperVCollector; }; }; /** - * Contains response data for the update operation. + * Contains response data for the create operation. */ -export type ProjectsUpdateResponse = Project & ProjectsUpdateHeaders & { +export type HyperVCollectorsCreateResponse = HyperVCollector & HyperVCollectorsCreateHeaders & { /** * The underlying HTTP response. */ @@ -2089,22 +3016,24 @@ export type ProjectsUpdateResponse = Project & ProjectsUpdateHeaders & { /** * The parsed HTTP response headers. */ - parsedHeaders: ProjectsUpdateHeaders; + parsedHeaders: HyperVCollectorsCreateHeaders; + /** * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: Project; + parsedBody: HyperVCollector; }; }; /** * Contains response data for the deleteMethod operation. */ -export type ProjectsDeleteResponse = ProjectsDeleteHeaders & { +export type HyperVCollectorsDeleteResponse = HyperVCollectorsDeleteHeaders & { /** * The underlying HTTP response. */ @@ -2112,14 +3041,14 @@ export type ProjectsDeleteResponse = ProjectsDeleteHeaders & { /** * The parsed HTTP response headers. */ - parsedHeaders: ProjectsDeleteHeaders; + parsedHeaders: HyperVCollectorsDeleteHeaders; }; }; /** - * Contains response data for the getKeys operation. + * Contains response data for the listByProject operation. */ -export type ProjectsGetKeysResponse = ProjectKey & ProjectsGetKeysHeaders & { +export type ServerCollectorsListByProjectResponse = ServerCollectorList & ServerCollectorsListByProjectHeaders & { /** * The underlying HTTP response. */ @@ -2127,22 +3056,24 @@ export type ProjectsGetKeysResponse = ProjectKey & ProjectsGetKeysHeaders & { /** * The parsed HTTP response headers. */ - parsedHeaders: ProjectsGetKeysHeaders; + parsedHeaders: ServerCollectorsListByProjectHeaders; + /** * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: ProjectKey; + parsedBody: ServerCollectorList; }; }; /** - * Contains response data for the listByProject operation. + * Contains response data for the get operation. */ -export type MachinesListByProjectResponse = MachineResultList & MachinesListByProjectHeaders & { +export type ServerCollectorsGetResponse = ServerCollector & ServerCollectorsGetHeaders & { /** * The underlying HTTP response. */ @@ -2150,22 +3081,24 @@ export type MachinesListByProjectResponse = MachineResultList & MachinesListByPr /** * The parsed HTTP response headers. */ - parsedHeaders: MachinesListByProjectHeaders; + parsedHeaders: ServerCollectorsGetHeaders; + /** * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: MachineResultList; + parsedBody: ServerCollector; }; }; /** - * Contains response data for the get operation. + * Contains response data for the create operation. */ -export type MachinesGetResponse = Machine & MachinesGetHeaders & { +export type ServerCollectorsCreateResponse = ServerCollector & ServerCollectorsCreateHeaders & { /** * The underlying HTTP response. */ @@ -2173,22 +3106,39 @@ export type MachinesGetResponse = Machine & MachinesGetHeaders & { /** * The parsed HTTP response headers. */ - parsedHeaders: MachinesGetHeaders; + parsedHeaders: ServerCollectorsCreateHeaders; + /** * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: Machine; + parsedBody: ServerCollector; + }; +}; + +/** + * Contains response data for the deleteMethod operation. + */ +export type ServerCollectorsDeleteResponse = ServerCollectorsDeleteHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: ServerCollectorsDeleteHeaders; }; }; /** * Contains response data for the listByProject operation. */ -export type GroupsListByProjectResponse = GroupResultList & GroupsListByProjectHeaders & { +export type VMwareCollectorsListByProjectResponse = VMwareCollectorList & VMwareCollectorsListByProjectHeaders & { /** * The underlying HTTP response. */ @@ -2196,22 +3146,24 @@ export type GroupsListByProjectResponse = GroupResultList & GroupsListByProjectH /** * The parsed HTTP response headers. */ - parsedHeaders: GroupsListByProjectHeaders; + parsedHeaders: VMwareCollectorsListByProjectHeaders; + /** * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: GroupResultList; + parsedBody: VMwareCollectorList; }; }; /** * Contains response data for the get operation. */ -export type GroupsGetResponse = Group & GroupsGetHeaders & { +export type VMwareCollectorsGetResponse = VMwareCollector & VMwareCollectorsGetHeaders & { /** * The underlying HTTP response. */ @@ -2219,22 +3171,24 @@ export type GroupsGetResponse = Group & GroupsGetHeaders & { /** * The parsed HTTP response headers. */ - parsedHeaders: GroupsGetHeaders; + parsedHeaders: VMwareCollectorsGetHeaders; + /** * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: Group; + parsedBody: VMwareCollector; }; }; /** * Contains response data for the create operation. */ -export type GroupsCreateResponse = Group & GroupsCreateHeaders & { +export type VMwareCollectorsCreateResponse = VMwareCollector & VMwareCollectorsCreateHeaders & { /** * The underlying HTTP response. */ @@ -2242,22 +3196,24 @@ export type GroupsCreateResponse = Group & GroupsCreateHeaders & { /** * The parsed HTTP response headers. */ - parsedHeaders: GroupsCreateHeaders; + parsedHeaders: VMwareCollectorsCreateHeaders; + /** * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: Group; + parsedBody: VMwareCollector; }; }; /** * Contains response data for the deleteMethod operation. */ -export type GroupsDeleteResponse = GroupsDeleteHeaders & { +export type VMwareCollectorsDeleteResponse = VMwareCollectorsDeleteHeaders & { /** * The underlying HTTP response. */ @@ -2265,14 +3221,14 @@ export type GroupsDeleteResponse = GroupsDeleteHeaders & { /** * The parsed HTTP response headers. */ - parsedHeaders: GroupsDeleteHeaders; + parsedHeaders: VMwareCollectorsDeleteHeaders; }; }; /** - * Contains response data for the listByGroup operation. + * Contains response data for the listByProject operation. */ -export type AssessmentsListByGroupResponse = AssessmentResultList & AssessmentsListByGroupHeaders & { +export type ImportCollectorsListByProjectResponse = ImportCollectorList & ImportCollectorsListByProjectHeaders & { /** * The underlying HTTP response. */ @@ -2280,22 +3236,24 @@ export type AssessmentsListByGroupResponse = AssessmentResultList & AssessmentsL /** * The parsed HTTP response headers. */ - parsedHeaders: AssessmentsListByGroupHeaders; + parsedHeaders: ImportCollectorsListByProjectHeaders; + /** * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: AssessmentResultList; + parsedBody: ImportCollectorList; }; }; /** - * Contains response data for the listByProject operation. + * Contains response data for the get operation. */ -export type AssessmentsListByProjectResponse = AssessmentResultList & AssessmentsListByProjectHeaders & { +export type ImportCollectorsGetResponse = ImportCollector & ImportCollectorsGetHeaders & { /** * The underlying HTTP response. */ @@ -2303,22 +3261,24 @@ export type AssessmentsListByProjectResponse = AssessmentResultList & Assessment /** * The parsed HTTP response headers. */ - parsedHeaders: AssessmentsListByProjectHeaders; + parsedHeaders: ImportCollectorsGetHeaders; + /** * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: AssessmentResultList; + parsedBody: ImportCollector; }; }; /** - * Contains response data for the get operation. + * Contains response data for the create operation. */ -export type AssessmentsGetResponse = Assessment & AssessmentsGetHeaders & { +export type ImportCollectorsCreateResponse = ImportCollector & ImportCollectorsCreateHeaders & { /** * The underlying HTTP response. */ @@ -2326,22 +3286,24 @@ export type AssessmentsGetResponse = Assessment & AssessmentsGetHeaders & { /** * The parsed HTTP response headers. */ - parsedHeaders: AssessmentsGetHeaders; + parsedHeaders: ImportCollectorsCreateHeaders; + /** * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: Assessment; + parsedBody: ImportCollector; }; }; /** - * Contains response data for the create operation. + * Contains response data for the deleteMethod operation. */ -export type AssessmentsCreateResponse = Assessment & AssessmentsCreateHeaders & { +export type ImportCollectorsDeleteResponse = ImportCollectorsDeleteHeaders & { /** * The underlying HTTP response. */ @@ -2349,22 +3311,39 @@ export type AssessmentsCreateResponse = Assessment & AssessmentsCreateHeaders & /** * The parsed HTTP response headers. */ - parsedHeaders: AssessmentsCreateHeaders; + parsedHeaders: ImportCollectorsDeleteHeaders; + }; +}; + +/** + * Contains response data for the listByProject operation. + */ +export type PrivateEndpointConnectionListByProjectResponse = PrivateEndpointConnectionCollection & PrivateEndpointConnectionListByProjectHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: PrivateEndpointConnectionListByProjectHeaders; + /** * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: Assessment; + parsedBody: PrivateEndpointConnectionCollection; }; }; /** - * Contains response data for the deleteMethod operation. + * Contains response data for the get operation. */ -export type AssessmentsDeleteResponse = AssessmentsDeleteHeaders & { +export type PrivateEndpointConnectionGetResponse = PrivateEndpointConnection & PrivateEndpointConnectionGetHeaders & { /** * The underlying HTTP response. */ @@ -2372,14 +3351,24 @@ export type AssessmentsDeleteResponse = AssessmentsDeleteHeaders & { /** * The parsed HTTP response headers. */ - parsedHeaders: AssessmentsDeleteHeaders; + parsedHeaders: PrivateEndpointConnectionGetHeaders; + + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: PrivateEndpointConnection; }; }; /** - * Contains response data for the getReportDownloadUrl operation. + * Contains response data for the update operation. */ -export type AssessmentsGetReportDownloadUrlResponse = DownloadUrl & AssessmentsGetReportDownloadUrlHeaders & { +export type PrivateEndpointConnectionUpdateResponse = PrivateEndpointConnection & PrivateEndpointConnectionUpdateHeaders & { /** * The underlying HTTP response. */ @@ -2387,22 +3376,24 @@ export type AssessmentsGetReportDownloadUrlResponse = DownloadUrl & AssessmentsG /** * The parsed HTTP response headers. */ - parsedHeaders: AssessmentsGetReportDownloadUrlHeaders; + parsedHeaders: PrivateEndpointConnectionUpdateHeaders; + /** * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: DownloadUrl; + parsedBody: PrivateEndpointConnection; }; }; /** - * Contains response data for the listByAssessment operation. + * Contains response data for the deleteMethod operation. */ -export type AssessedMachinesListByAssessmentResponse = AssessedMachineResultList & AssessedMachinesListByAssessmentHeaders & { +export type PrivateEndpointConnectionDeleteResponse = PrivateEndpointConnectionDeleteHeaders & { /** * The underlying HTTP response. */ @@ -2410,22 +3401,39 @@ export type AssessedMachinesListByAssessmentResponse = AssessedMachineResultList /** * The parsed HTTP response headers. */ - parsedHeaders: AssessedMachinesListByAssessmentHeaders; + parsedHeaders: PrivateEndpointConnectionDeleteHeaders; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type PrivateLinkResourceGetResponse = PrivateLinkResource & PrivateLinkResourceGetHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: PrivateLinkResourceGetHeaders; + /** * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: AssessedMachineResultList; + parsedBody: PrivateLinkResource; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listByProject operation. */ -export type AssessedMachinesGetResponse = AssessedMachine & AssessedMachinesGetHeaders & { +export type PrivateLinkResourceListByProjectResponse = PrivateLinkResourceCollection & PrivateLinkResourceListByProjectHeaders & { /** * The underlying HTTP response. */ @@ -2433,15 +3441,17 @@ export type AssessedMachinesGetResponse = AssessedMachine & AssessedMachinesGetH /** * The parsed HTTP response headers. */ - parsedHeaders: AssessedMachinesGetHeaders; + parsedHeaders: PrivateLinkResourceListByProjectHeaders; + /** * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: AssessedMachine; + parsedBody: PrivateLinkResourceCollection; }; }; @@ -2457,6 +3467,7 @@ export type OperationsListResponse = OperationResultList & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ diff --git a/sdk/migrate/arm-migrate/src/models/locationMappers.ts b/sdk/migrate/arm-migrate/src/models/locationMappers.ts deleted file mode 100644 index c53441ea5d95..000000000000 --- a/sdk/migrate/arm-migrate/src/models/locationMappers.ts +++ /dev/null @@ -1,16 +0,0 @@ -/* - * 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. - */ - -export { - CheckNameAvailabilityParameters, - CheckNameAvailabilityResult, - CloudError -} from "../models/mappers"; - diff --git a/sdk/migrate/arm-migrate/src/models/machinesMappers.ts b/sdk/migrate/arm-migrate/src/models/machinesMappers.ts index 3dc7b4efa43b..f71aaee2652a 100644 --- a/sdk/migrate/arm-migrate/src/models/machinesMappers.ts +++ b/sdk/migrate/arm-migrate/src/models/machinesMappers.ts @@ -1,28 +1,47 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { - MachineResultList, - Machine, + AssessedDisk, + AssessedMachine, + AssessedMachineProperties, + AssessedNetworkAdapter, + Assessment, + AssessmentOptions, + AssessmentOptionsProperties, + AssessmentProperties, BaseResource, - Disk, - NetworkAdapter, - MachinesListByProjectHeaders, CloudError, + CollectorAgentProperties, + CollectorBodyAgentSpnProperties, + CollectorProperties, + Disk, + Group, + GroupProperties, + HyperVCollector, + ImportCollector, + ImportCollectorProperties, + Machine, + MachineProperties, + MachineResultList, MachinesGetHeaders, + MachinesListByProjectHeaders, + NetworkAdapter, + PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateLinkResource, + PrivateLinkResourceProperties, + PrivateLinkServiceConnectionState, Project, - Group, - Assessment, - AssessedMachine, - AssessedDisk, - AssessedNetworkAdapter, - ProjectKey + ProjectProperties, + ResourceId, + ServerCollector, + VmFamily, + VmUptime, + VMwareCollector } from "../models/mappers"; - diff --git a/sdk/migrate/arm-migrate/src/models/mappers.ts b/sdk/migrate/arm-migrate/src/models/mappers.ts index 8c7c268ffbb9..fc39c04a0d2e 100644 --- a/sdk/migrate/arm-migrate/src/models/mappers.ts +++ b/sdk/migrate/arm-migrate/src/models/mappers.ts @@ -1,11 +1,9 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ import { CloudErrorMapper, BaseResourceMapper } from "@azure/ms-rest-azure-js"; @@ -14,11 +12,11 @@ import * as msRest from "@azure/ms-rest-js"; export const CloudError = CloudErrorMapper; export const BaseResource = BaseResourceMapper; -export const Project: msRest.CompositeMapper = { - serializedName: "Project", +export const ResourceId: msRest.CompositeMapper = { + serializedName: "ResourceId", type: { name: "Composite", - className: "Project", + className: "ResourceId", modelProperties: { id: { readOnly: true, @@ -26,7 +24,77 @@ export const Project: msRest.CompositeMapper = { type: { name: "String" } + } + } + } +}; + +export const PrivateLinkServiceConnectionState: msRest.CompositeMapper = { + serializedName: "PrivateLinkServiceConnectionState", + type: { + name: "Composite", + className: "PrivateLinkServiceConnectionState", + modelProperties: { + status: { + serializedName: "status", + type: { + name: "String" + } + }, + description: { + serializedName: "description", + type: { + name: "String" + } + }, + actionsRequired: { + serializedName: "actionsRequired", + type: { + name: "String" + } + } + } + } +}; + +export const PrivateEndpointConnectionProperties: msRest.CompositeMapper = { + serializedName: "PrivateEndpointConnectionProperties", + type: { + name: "Composite", + className: "PrivateEndpointConnectionProperties", + modelProperties: { + provisioningState: { + readOnly: true, + serializedName: "provisioningState", + type: { + name: "String" + } + }, + privateEndpoint: { + readOnly: true, + serializedName: "privateEndpoint", + type: { + name: "Composite", + className: "ResourceId" + } }, + privateLinkServiceConnectionState: { + serializedName: "privateLinkServiceConnectionState", + type: { + name: "Composite", + className: "PrivateLinkServiceConnectionState" + } + } + } + } +}; + +export const PrivateEndpointConnection: msRest.CompositeMapper = { + serializedName: "PrivateEndpointConnection", + type: { + name: "Composite", + className: "PrivateEndpointConnection", + modelProperties: { name: { readOnly: true, serializedName: "name", @@ -47,83 +115,93 @@ export const Project: msRest.CompositeMapper = { name: "String" } }, - location: { - serializedName: "location", + id: { + readOnly: true, + serializedName: "id", type: { name: "String" } }, - tags: { - serializedName: "tags", + properties: { + required: true, + serializedName: "properties", type: { - name: "Object" + name: "Composite", + className: "PrivateEndpointConnectionProperties" } - }, + } + } + } +}; + +export const ProjectProperties: msRest.CompositeMapper = { + serializedName: "ProjectProperties", + type: { + name: "Composite", + className: "ProjectProperties", + modelProperties: { createdTimestamp: { readOnly: true, - serializedName: "properties.createdTimestamp", + serializedName: "createdTimestamp", type: { name: "DateTime" } }, updatedTimestamp: { readOnly: true, - serializedName: "properties.updatedTimestamp", + serializedName: "updatedTimestamp", type: { name: "DateTime" } }, - discoveryStatus: { + serviceEndpoint: { readOnly: true, - serializedName: "properties.discoveryStatus", + serializedName: "serviceEndpoint", type: { name: "String" } }, - customerWorkspaceId: { - serializedName: "properties.customerWorkspaceId", + assessmentSolutionId: { + serializedName: "assessmentSolutionId", type: { name: "String" } }, - customerWorkspaceLocation: { - serializedName: "properties.customerWorkspaceLocation", + projectStatus: { + serializedName: "projectStatus", type: { name: "String" } }, - lastDiscoveryTimestamp: { - nullable: true, - readOnly: true, - serializedName: "properties.lastDiscoveryTimestamp", + customerWorkspaceId: { + serializedName: "customerWorkspaceId", type: { - name: "DateTime" + name: "String" } }, - lastDiscoverySessionId: { - readOnly: true, - serializedName: "properties.lastDiscoverySessionId", + customerWorkspaceLocation: { + serializedName: "customerWorkspaceLocation", type: { name: "String" } }, numberOfGroups: { readOnly: true, - serializedName: "properties.numberOfGroups", + serializedName: "numberOfGroups", type: { name: "Number" } }, numberOfMachines: { readOnly: true, - serializedName: "properties.numberOfMachines", + serializedName: "numberOfMachines", type: { name: "Number" } }, numberOfAssessments: { readOnly: true, - serializedName: "properties.numberOfAssessments", + serializedName: "numberOfAssessments", type: { name: "Number" } @@ -131,13 +209,39 @@ export const Project: msRest.CompositeMapper = { lastAssessmentTimestamp: { nullable: true, readOnly: true, - serializedName: "properties.lastAssessmentTimestamp", + serializedName: "lastAssessmentTimestamp", type: { name: "DateTime" } }, + publicNetworkAccess: { + serializedName: "publicNetworkAccess", + type: { + name: "String" + } + }, + privateEndpointConnections: { + readOnly: true, + serializedName: "privateEndpointConnections", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateEndpointConnection" + } + } + } + }, + customerStorageAccountArmId: { + serializedName: "customerStorageAccountArmId", + type: { + name: "String" + } + }, provisioningState: { - serializedName: "properties.provisioningState", + readOnly: true, + serializedName: "provisioningState", type: { name: "String" } @@ -146,11 +250,11 @@ export const Project: msRest.CompositeMapper = { } }; -export const Group: msRest.CompositeMapper = { - serializedName: "Group", +export const Project: msRest.CompositeMapper = { + serializedName: "Project", type: { name: "Composite", - className: "Group", + className: "Project", modelProperties: { id: { readOnly: true, @@ -166,34 +270,65 @@ export const Group: msRest.CompositeMapper = { name: "String" } }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, eTag: { serializedName: "eTag", type: { name: "String" } }, - type: { + location: { + serializedName: "location", + type: { + name: "String" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Object" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "ProjectProperties" + } + } + } + } +}; + +export const GroupProperties: msRest.CompositeMapper = { + serializedName: "GroupProperties", + type: { + name: "Composite", + className: "GroupProperties", + modelProperties: { + groupStatus: { readOnly: true, - serializedName: "type", + serializedName: "groupStatus", type: { name: "String" } }, - machines: { - required: true, - serializedName: "properties.machines", + machineCount: { + readOnly: true, + serializedName: "machineCount", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Number" } }, assessments: { readOnly: true, - serializedName: "properties.assessments", + serializedName: "assessments", type: { name: "Sequence", element: { @@ -203,29 +338,42 @@ export const Group: msRest.CompositeMapper = { } } }, + areAssessmentsRunning: { + readOnly: true, + serializedName: "areAssessmentsRunning", + type: { + name: "Boolean" + } + }, createdTimestamp: { readOnly: true, - serializedName: "properties.createdTimestamp", + serializedName: "createdTimestamp", type: { name: "DateTime" } }, updatedTimestamp: { readOnly: true, - serializedName: "properties.updatedTimestamp", + serializedName: "updatedTimestamp", type: { name: "DateTime" } + }, + groupType: { + serializedName: "groupType", + type: { + name: "String" + } } } } }; -export const Assessment: msRest.CompositeMapper = { - serializedName: "Assessment", +export const Group: msRest.CompositeMapper = { + serializedName: "Group", type: { name: "Composite", - className: "Assessment", + className: "Group", modelProperties: { id: { readOnly: true, @@ -254,79 +402,190 @@ export const Assessment: msRest.CompositeMapper = { name: "String" } }, + properties: { + required: true, + serializedName: "properties", + type: { + name: "Composite", + className: "GroupProperties" + } + } + } + } +}; + +export const GroupBodyProperties: msRest.CompositeMapper = { + serializedName: "GroupBodyProperties", + type: { + name: "Composite", + className: "GroupBodyProperties", + modelProperties: { + operationType: { + serializedName: "operationType", + type: { + name: "String" + } + }, + machines: { + serializedName: "machines", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const UpdateGroupBody: msRest.CompositeMapper = { + serializedName: "UpdateGroupBody", + type: { + name: "Composite", + className: "UpdateGroupBody", + modelProperties: { + eTag: { + serializedName: "eTag", + type: { + name: "String" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "GroupBodyProperties" + } + } + } + } +}; + +export const VmUptime: msRest.CompositeMapper = { + serializedName: "VmUptime", + type: { + name: "Composite", + className: "VmUptime", + modelProperties: { + daysPerMonth: { + serializedName: "daysPerMonth", + type: { + name: "Number" + } + }, + hoursPerDay: { + serializedName: "hoursPerDay", + type: { + name: "Number" + } + } + } + } +}; + +export const AssessmentProperties: msRest.CompositeMapper = { + serializedName: "AssessmentProperties", + type: { + name: "Composite", + className: "AssessmentProperties", + modelProperties: { azureLocation: { required: true, - serializedName: "properties.azureLocation", + serializedName: "azureLocation", type: { name: "String" } }, azureOfferCode: { required: true, - serializedName: "properties.azureOfferCode", + serializedName: "azureOfferCode", + type: { + name: "String" + } + }, + eaSubscriptionId: { + readOnly: true, + serializedName: "eaSubscriptionId", type: { name: "String" } }, azurePricingTier: { required: true, - serializedName: "properties.azurePricingTier", + serializedName: "azurePricingTier", type: { name: "String" } }, azureStorageRedundancy: { required: true, - serializedName: "properties.azureStorageRedundancy", + serializedName: "azureStorageRedundancy", type: { name: "String" } }, scalingFactor: { required: true, - serializedName: "properties.scalingFactor", + serializedName: "scalingFactor", type: { name: "Number" } }, percentile: { required: true, - serializedName: "properties.percentile", + serializedName: "percentile", type: { name: "String" } }, timeRange: { required: true, - serializedName: "properties.timeRange", + serializedName: "timeRange", type: { name: "String" } }, + perfDataStartTime: { + readOnly: true, + serializedName: "perfDataStartTime", + type: { + name: "DateTime" + } + }, + perfDataEndTime: { + readOnly: true, + serializedName: "perfDataEndTime", + type: { + name: "DateTime" + } + }, stage: { required: true, - serializedName: "properties.stage", + serializedName: "stage", type: { name: "String" } }, currency: { required: true, - serializedName: "properties.currency", + serializedName: "currency", type: { name: "String" } }, azureHybridUseBenefit: { required: true, - serializedName: "properties.azureHybridUseBenefit", + serializedName: "azureHybridUseBenefit", type: { name: "String" } }, discountPercentage: { required: true, - serializedName: "properties.discountPercentage", + serializedName: "discountPercentage", type: { name: "Number" } @@ -334,70 +593,118 @@ export const Assessment: msRest.CompositeMapper = { confidenceRatingInPercentage: { nullable: true, readOnly: true, - serializedName: "properties.confidenceRatingInPercentage", + serializedName: "confidenceRatingInPercentage", type: { name: "Number" } }, sizingCriterion: { required: true, - serializedName: "properties.sizingCriterion", + serializedName: "sizingCriterion", type: { name: "String" } }, - pricesTimestamp: { - readOnly: true, - serializedName: "properties.pricesTimestamp", + reservedInstance: { + required: true, + serializedName: "reservedInstance", type: { - name: "DateTime" + name: "String" } }, - createdTimestamp: { - readOnly: true, - serializedName: "properties.createdTimestamp", + azureVmFamilies: { + required: true, + serializedName: "azureVmFamilies", type: { - name: "DateTime" - } - }, - updatedTimestamp: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + azureDiskType: { + required: true, + serializedName: "azureDiskType", + type: { + name: "String" + } + }, + vmUptime: { + required: true, + serializedName: "vmUptime", + type: { + name: "Composite", + className: "VmUptime" + } + }, + pricesTimestamp: { + readOnly: true, + serializedName: "pricesTimestamp", + type: { + name: "DateTime" + } + }, + createdTimestamp: { + readOnly: true, + serializedName: "createdTimestamp", + type: { + name: "DateTime" + } + }, + updatedTimestamp: { readOnly: true, - serializedName: "properties.updatedTimestamp", + serializedName: "updatedTimestamp", type: { name: "DateTime" } }, monthlyComputeCost: { readOnly: true, - serializedName: "properties.monthlyComputeCost", + serializedName: "monthlyComputeCost", type: { name: "Number" } }, monthlyBandwidthCost: { readOnly: true, - serializedName: "properties.monthlyBandwidthCost", + serializedName: "monthlyBandwidthCost", type: { name: "Number" } }, monthlyStorageCost: { readOnly: true, - serializedName: "properties.monthlyStorageCost", + serializedName: "monthlyStorageCost", + type: { + name: "Number" + } + }, + monthlyPremiumStorageCost: { + readOnly: true, + serializedName: "monthlyPremiumStorageCost", + type: { + name: "Number" + } + }, + monthlyStandardSSDStorageCost: { + readOnly: true, + serializedName: "monthlyStandardSSDStorageCost", type: { name: "Number" } }, status: { readOnly: true, - serializedName: "properties.status", + serializedName: "status", type: { name: "String" } }, numberOfMachines: { readOnly: true, - serializedName: "properties.numberOfMachines", + serializedName: "numberOfMachines", type: { name: "Number" } @@ -406,6 +713,51 @@ export const Assessment: msRest.CompositeMapper = { } }; +export const Assessment: msRest.CompositeMapper = { + serializedName: "Assessment", + type: { + name: "Composite", + className: "Assessment", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + eTag: { + serializedName: "eTag", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + properties: { + required: true, + serializedName: "properties", + type: { + name: "Composite", + className: "AssessmentProperties" + } + } + } + } +}; + export const Disk: msRest.CompositeMapper = { serializedName: "Disk", type: { @@ -419,11 +771,11 @@ export const Disk: msRest.CompositeMapper = { name: "Number" } }, - gigabytesConsumed: { + displayName: { readOnly: true, - serializedName: "gigabytesConsumed", + serializedName: "displayName", type: { - name: "Number" + name: "String" } } } @@ -454,117 +806,104 @@ export const NetworkAdapter: msRest.CompositeMapper = { } } } + }, + displayName: { + readOnly: true, + serializedName: "displayName", + type: { + name: "String" + } } } } }; -export const Machine: msRest.CompositeMapper = { - serializedName: "Machine", +export const MachineProperties: msRest.CompositeMapper = { + serializedName: "MachineProperties", type: { name: "Composite", - className: "Machine", + className: "MachineProperties", modelProperties: { - id: { + bootType: { readOnly: true, - serializedName: "id", + serializedName: "bootType", type: { name: "String" } }, - name: { + datacenterManagementServerArmId: { readOnly: true, - serializedName: "name", - type: { - name: "String" - } - }, - eTag: { - serializedName: "eTag", + serializedName: "datacenterManagementServerArmId", type: { name: "String" } }, - type: { + discoveryMachineArmId: { readOnly: true, - serializedName: "type", + serializedName: "discoveryMachineArmId", type: { name: "String" } }, - bootType: { + datacenterManagementServerName: { readOnly: true, - serializedName: "properties.bootType", + serializedName: "datacenterManagementServerName", type: { name: "String" } }, - datacenterContainer: { + displayName: { readOnly: true, - serializedName: "properties.datacenterContainer", + serializedName: "displayName", type: { name: "String" } }, - datacenterManagementServer: { + megabytesOfMemory: { readOnly: true, - serializedName: "properties.datacenterManagementServer", + serializedName: "megabytesOfMemory", type: { - name: "String" + name: "Number" } }, - datacenterMachineId: { + numberOfCores: { readOnly: true, - serializedName: "properties.datacenterMachineId", + serializedName: "numberOfCores", type: { - name: "String" + name: "Number" } }, - datacenterManagementServerId: { + operatingSystemType: { readOnly: true, - serializedName: "properties.datacenterManagementServerId", + serializedName: "operatingSystemType", type: { name: "String" } }, - description: { + operatingSystemName: { readOnly: true, - serializedName: "properties.description", + serializedName: "operatingSystemName", type: { name: "String" } }, - displayName: { + operatingSystemVersion: { readOnly: true, - serializedName: "properties.displayName", + serializedName: "operatingSystemVersion", type: { name: "String" } }, - megabytesOfMemory: { - readOnly: true, - serializedName: "properties.megabytesOfMemory", - type: { - name: "Number" - } - }, - numberOfCores: { - readOnly: true, - serializedName: "properties.numberOfCores", - type: { - name: "Number" - } - }, - operatingSystem: { + description: { readOnly: true, - serializedName: "properties.operatingSystem", + serializedName: "description", type: { name: "String" } }, groups: { readOnly: true, - serializedName: "properties.groups", + serializedName: "groups", type: { name: "Sequence", element: { @@ -576,28 +915,21 @@ export const Machine: msRest.CompositeMapper = { }, createdTimestamp: { readOnly: true, - serializedName: "properties.createdTimestamp", + serializedName: "createdTimestamp", type: { name: "DateTime" } }, updatedTimestamp: { readOnly: true, - serializedName: "properties.updatedTimestamp", - type: { - name: "DateTime" - } - }, - discoveredTimestamp: { - readOnly: true, - serializedName: "properties.discoveredTimestamp", + serializedName: "updatedTimestamp", type: { name: "DateTime" } }, disks: { readOnly: true, - serializedName: "properties.disks", + serializedName: "disks", type: { name: "Dictionary", value: { @@ -610,7 +942,7 @@ export const Machine: msRest.CompositeMapper = { }, networkAdapters: { readOnly: true, - serializedName: "properties.networkAdapters", + serializedName: "networkAdapters", type: { name: "Dictionary", value: { @@ -625,98 +957,94 @@ export const Machine: msRest.CompositeMapper = { } }; -export const AssessedDisk: msRest.CompositeMapper = { - serializedName: "AssessedDisk", +export const Machine: msRest.CompositeMapper = { + serializedName: "Machine", type: { name: "Composite", - className: "AssessedDisk", + className: "Machine", modelProperties: { - name: { + id: { readOnly: true, - serializedName: "name", + serializedName: "id", type: { name: "String" } }, - gigabytesProvisioned: { - readOnly: true, - serializedName: "gigabytesProvisioned", - type: { - name: "Number" - } - }, - gigabytesConsumed: { + name: { readOnly: true, - serializedName: "gigabytesConsumed", + serializedName: "name", type: { - name: "Number" + name: "String" } }, - megabytesPerSecondOfRead: { - readOnly: true, - serializedName: "megabytesPerSecondOfRead", + eTag: { + serializedName: "eTag", type: { - name: "Number" + name: "String" } }, - megabytesPerSecondOfReadDataPointsExpected: { - nullable: true, + type: { readOnly: true, - serializedName: "megabytesPerSecondOfReadDataPointsExpected", + serializedName: "type", type: { - name: "Number" + name: "String" } }, - megabytesPerSecondOfReadDataPointsReceived: { - nullable: true, - readOnly: true, - serializedName: "megabytesPerSecondOfReadDataPointsReceived", + properties: { + serializedName: "properties", type: { - name: "Number" + name: "Composite", + className: "MachineProperties" } - }, - megabytesPerSecondOfWrite: { + } + } + } +}; + +export const AssessedDisk: msRest.CompositeMapper = { + serializedName: "AssessedDisk", + type: { + name: "Composite", + className: "AssessedDisk", + modelProperties: { + name: { readOnly: true, - serializedName: "megabytesPerSecondOfWrite", + serializedName: "name", type: { - name: "Number" + name: "String" } }, - megabytesPerSecondOfWriteDataPointsExpected: { - nullable: true, + displayName: { readOnly: true, - serializedName: "megabytesPerSecondOfWriteDataPointsExpected", + serializedName: "displayName", type: { - name: "Number" + name: "String" } }, - megabytesPerSecondOfWriteDataPointsReceived: { - nullable: true, + gigabytesProvisioned: { readOnly: true, - serializedName: "megabytesPerSecondOfWriteDataPointsReceived", + serializedName: "gigabytesProvisioned", type: { name: "Number" } }, - numberOfReadOperationsPerSecond: { + megabytesPerSecondOfRead: { readOnly: true, - serializedName: "numberOfReadOperationsPerSecond", + serializedName: "megabytesPerSecondOfRead", type: { name: "Number" } }, - numberOfReadOperationsPerSecondDataPointsExpected: { - nullable: true, + megabytesPerSecondOfWrite: { readOnly: true, - serializedName: "numberOfReadOperationsPerSecondDataPointsExpected", + serializedName: "megabytesPerSecondOfWrite", type: { name: "Number" } }, - numberOfReadOperationsPerSecondDataPointsReceived: { - nullable: true, + numberOfReadOperationsPerSecond: { readOnly: true, - serializedName: "numberOfReadOperationsPerSecondDataPointsReceived", + serializedName: "numberOfReadOperationsPerSecond", type: { name: "Number" } @@ -728,22 +1056,6 @@ export const AssessedDisk: msRest.CompositeMapper = { name: "Number" } }, - numberOfWriteOperationsPerSecondDataPointsExpected: { - nullable: true, - readOnly: true, - serializedName: "numberOfWriteOperationsPerSecondDataPointsExpected", - type: { - name: "Number" - } - }, - numberOfWriteOperationsPerSecondDataPointsReceived: { - nullable: true, - readOnly: true, - serializedName: "numberOfWriteOperationsPerSecondDataPointsReceived", - type: { - name: "Number" - } - }, monthlyStorageCost: { readOnly: true, serializedName: "monthlyStorageCost", @@ -785,6 +1097,13 @@ export const AssessedDisk: msRest.CompositeMapper = { type: { name: "String" } + }, + suitabilityDetail: { + readOnly: true, + serializedName: "suitabilityDetail", + type: { + name: "String" + } } } } @@ -815,6 +1134,13 @@ export const AssessedNetworkAdapter: msRest.CompositeMapper = { } } }, + displayName: { + readOnly: true, + serializedName: "displayName", + type: { + name: "String" + } + }, monthlyBandwidthCosts: { readOnly: true, serializedName: "monthlyBandwidthCosts", @@ -829,208 +1155,166 @@ export const AssessedNetworkAdapter: msRest.CompositeMapper = { name: "Number" } }, - megabytesPerSecondReceivedDataPointsExpected: { - nullable: true, + megabytesPerSecondTransmitted: { readOnly: true, - serializedName: "megabytesPerSecondReceivedDataPointsExpected", + serializedName: "megabytesPerSecondTransmitted", type: { name: "Number" } }, - megabytesPerSecondOfReadDataPointsReceived: { - nullable: true, - readOnly: true, - serializedName: "megabytesPerSecondOfReadDataPointsReceived", + netGigabytesTransmittedPerMonth: { + serializedName: "netGigabytesTransmittedPerMonth", type: { name: "Number" } }, - megabytesPerSecondTransmitted: { + suitability: { readOnly: true, - serializedName: "megabytesPerSecondTransmitted", + serializedName: "suitability", type: { - name: "Number" + name: "String" } }, - megabytesPerSecondTransmittedDataPointsExpected: { - nullable: true, + suitabilityExplanation: { readOnly: true, - serializedName: "megabytesPerSecondTransmittedDataPointsExpected", + serializedName: "suitabilityExplanation", type: { - name: "Number" + name: "String" } }, - megabytesPerSecondTransmittedDataPointsReceived: { - nullable: true, + suitabilityDetail: { readOnly: true, - serializedName: "megabytesPerSecondTransmittedDataPointsReceived", + serializedName: "suitabilityDetail", type: { - name: "Number" - } - }, - netGigabytesTransmittedPerMonth: { - serializedName: "netGigabytesTransmittedPerMonth", - type: { - name: "Number" - } - }, - suitability: { - readOnly: true, - serializedName: "suitability", - type: { - name: "String" - } - }, - suitabilityExplanation: { - readOnly: true, - serializedName: "suitabilityExplanation", - type: { - name: "String" + name: "String" } } } } }; -export const AssessedMachine: msRest.CompositeMapper = { - serializedName: "AssessedMachine", +export const AssessedMachineProperties: msRest.CompositeMapper = { + serializedName: "AssessedMachineProperties", type: { name: "Composite", - className: "AssessedMachine", + className: "AssessedMachineProperties", modelProperties: { - id: { + bootType: { readOnly: true, - serializedName: "id", + serializedName: "bootType", type: { name: "String" } }, - name: { + datacenterMachineArmId: { readOnly: true, - serializedName: "name", - type: { - name: "String" - } - }, - eTag: { - serializedName: "eTag", + serializedName: "datacenterMachineArmId", type: { name: "String" } }, - type: { + datacenterManagementServerArmId: { readOnly: true, - serializedName: "type", + serializedName: "datacenterManagementServerArmId", type: { name: "String" } }, - groups: { - readOnly: true, - serializedName: "properties.groups", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - discoveredTimestamp: { + datacenterManagementServerName: { readOnly: true, - serializedName: "properties.discoveredTimestamp", + serializedName: "datacenterManagementServerName", type: { - name: "DateTime" + name: "String" } }, - bootType: { + description: { readOnly: true, - serializedName: "properties.bootType", + serializedName: "description", type: { name: "String" } }, - datacenterContainer: { + displayName: { readOnly: true, - serializedName: "properties.datacenterContainer", + serializedName: "displayName", type: { name: "String" } }, - datacenterManagementServer: { + megabytesOfMemory: { readOnly: true, - serializedName: "properties.datacenterManagementServer", + serializedName: "megabytesOfMemory", type: { - name: "String" + name: "Number" } }, - datacenterMachineId: { + numberOfCores: { readOnly: true, - serializedName: "properties.datacenterMachineId", + serializedName: "numberOfCores", type: { - name: "String" + name: "Number" } }, - datacenterManagementServerId: { + operatingSystemType: { readOnly: true, - serializedName: "properties.datacenterManagementServerId", + serializedName: "operatingSystemType", type: { name: "String" } }, - description: { + operatingSystemName: { readOnly: true, - serializedName: "properties.description", + serializedName: "operatingSystemName", type: { name: "String" } }, - displayName: { + operatingSystemVersion: { readOnly: true, - serializedName: "properties.displayName", + serializedName: "operatingSystemVersion", type: { name: "String" } }, - megabytesOfMemory: { + monthlyBandwidthCost: { readOnly: true, - serializedName: "properties.megabytesOfMemory", + serializedName: "monthlyBandwidthCost", type: { name: "Number" } }, - numberOfCores: { + monthlyStorageCost: { readOnly: true, - serializedName: "properties.numberOfCores", + serializedName: "monthlyStorageCost", type: { name: "Number" } }, - operatingSystem: { + monthlyPremiumStorageCost: { readOnly: true, - serializedName: "properties.operatingSystem", + serializedName: "monthlyPremiumStorageCost", type: { - name: "String" + name: "Number" } }, - monthlyBandwidthCost: { + monthlyStandardSSDStorageCost: { readOnly: true, - serializedName: "properties.monthlyBandwidthCost", + serializedName: "monthlyStandardSSDStorageCost", type: { name: "Number" } }, - monthlyStorageCost: { + confidenceRatingInPercentage: { + nullable: true, readOnly: true, - serializedName: "properties.monthlyStorageCost", + serializedName: "confidenceRatingInPercentage", type: { name: "Number" } }, disks: { readOnly: true, - serializedName: "properties.disks", + serializedName: "disks", type: { name: "Dictionary", value: { @@ -1043,7 +1327,7 @@ export const AssessedMachine: msRest.CompositeMapper = { }, networkAdapters: { readOnly: true, - serializedName: "properties.networkAdapters", + serializedName: "networkAdapters", type: { name: "Dictionary", value: { @@ -1056,102 +1340,77 @@ export const AssessedMachine: msRest.CompositeMapper = { }, recommendedSize: { readOnly: true, - serializedName: "properties.recommendedSize", + serializedName: "recommendedSize", type: { name: "String" } }, numberOfCoresForRecommendedSize: { readOnly: true, - serializedName: "properties.numberOfCoresForRecommendedSize", + serializedName: "numberOfCoresForRecommendedSize", type: { name: "Number" } }, megabytesOfMemoryForRecommendedSize: { readOnly: true, - serializedName: "properties.megabytesOfMemoryForRecommendedSize", + serializedName: "megabytesOfMemoryForRecommendedSize", type: { name: "Number" } }, monthlyComputeCostForRecommendedSize: { readOnly: true, - serializedName: "properties.monthlyComputeCostForRecommendedSize", + serializedName: "monthlyComputeCostForRecommendedSize", type: { name: "Number" } }, percentageCoresUtilization: { readOnly: true, - serializedName: "properties.percentageCoresUtilization", + serializedName: "percentageCoresUtilization", type: { name: "Number" } }, percentageMemoryUtilization: { readOnly: true, - serializedName: "properties.percentageMemoryUtilization", - type: { - name: "Number" - } - }, - percentageCoresUtilizationDataPointsExpected: { - nullable: true, - readOnly: true, - serializedName: "properties.percentageCoresUtilizationDataPointsExpected", - type: { - name: "Number" - } - }, - percentageCoresUtilizationDataPointsReceived: { - nullable: true, - readOnly: true, - serializedName: "properties.percentageCoresUtilizationDataPointsReceived", - type: { - name: "Number" - } - }, - percentageMemoryUtilizationDataPointsExpected: { - nullable: true, - readOnly: true, - serializedName: "properties.percentageMemoryUtilizationDataPointsExpected", + serializedName: "percentageMemoryUtilization", type: { name: "Number" } }, - percentageMemoryUtilizationDataPointsReceived: { - nullable: true, + suitability: { readOnly: true, - serializedName: "properties.percentageMemoryUtilizationDataPointsReceived", + serializedName: "suitability", type: { - name: "Number" + name: "String" } }, - suitability: { + suitabilityExplanation: { readOnly: true, - serializedName: "properties.suitability", + serializedName: "suitabilityExplanation", type: { name: "String" } }, - suitabilityExplanation: { + suitabilityDetail: { readOnly: true, - serializedName: "properties.suitabilityExplanation", + serializedName: "suitabilityDetail", type: { name: "String" } }, createdTimestamp: { readOnly: true, - serializedName: "properties.createdTimestamp", + serializedName: "createdTimestamp", type: { name: "DateTime" } }, updatedTimestamp: { readOnly: true, - serializedName: "properties.updatedTimestamp", + serializedName: "updatedTimestamp", type: { name: "DateTime" } @@ -1160,25 +1419,45 @@ export const AssessedMachine: msRest.CompositeMapper = { } }; -export const ProjectKey: msRest.CompositeMapper = { - serializedName: "ProjectKey", +export const AssessedMachine: msRest.CompositeMapper = { + serializedName: "AssessedMachine", type: { name: "Composite", - className: "ProjectKey", + className: "AssessedMachine", modelProperties: { - workspaceId: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { readOnly: true, - serializedName: "workspaceId", + serializedName: "name", + type: { + name: "String" + } + }, + eTag: { + serializedName: "eTag", type: { name: "String" } }, - workspaceKey: { + type: { readOnly: true, - serializedName: "workspaceKey", + serializedName: "type", type: { name: "String" } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "AssessedMachineProperties" + } } } } @@ -1277,100 +1556,972 @@ export const DownloadUrl: msRest.CompositeMapper = { } }; -export const VmFamily: msRest.CompositeMapper = { - serializedName: "VmFamily", +export const CollectorBodyAgentSpnProperties: msRest.CompositeMapper = { + serializedName: "CollectorBodyAgentSpnProperties", + type: { + name: "Composite", + className: "CollectorBodyAgentSpnProperties", + modelProperties: { + authority: { + serializedName: "authority", + type: { + name: "String" + } + }, + applicationId: { + serializedName: "applicationId", + type: { + name: "String" + } + }, + audience: { + serializedName: "audience", + type: { + name: "String" + } + }, + objectId: { + serializedName: "objectId", + type: { + name: "String" + } + }, + tenantId: { + serializedName: "tenantId", + type: { + name: "String" + } + } + } + } +}; + +export const CollectorAgentProperties: msRest.CompositeMapper = { + serializedName: "CollectorAgentProperties", + type: { + name: "Composite", + className: "CollectorAgentProperties", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + version: { + readOnly: true, + serializedName: "version", + type: { + name: "String" + } + }, + lastHeartbeatUtc: { + nullable: true, + readOnly: true, + serializedName: "lastHeartbeatUtc", + type: { + name: "DateTime" + } + }, + spnDetails: { + serializedName: "spnDetails", + type: { + name: "Composite", + className: "CollectorBodyAgentSpnProperties" + } + } + } + } +}; + +export const CollectorProperties: msRest.CompositeMapper = { + serializedName: "CollectorProperties", + type: { + name: "Composite", + className: "CollectorProperties", + modelProperties: { + discoverySiteId: { + serializedName: "discoverySiteId", + type: { + name: "String" + } + }, + createdTimestamp: { + readOnly: true, + serializedName: "createdTimestamp", + type: { + name: "String" + } + }, + updatedTimestamp: { + readOnly: true, + serializedName: "updatedTimestamp", + type: { + name: "String" + } + }, + agentProperties: { + serializedName: "agentProperties", + type: { + name: "Composite", + className: "CollectorAgentProperties" + } + } + } + } +}; + +export const HyperVCollector: msRest.CompositeMapper = { + serializedName: "HyperVCollector", + type: { + name: "Composite", + className: "HyperVCollector", + modelProperties: { + eTag: { + serializedName: "eTag", + type: { + name: "String" + } + }, + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "CollectorProperties" + } + } + } + } +}; + +export const ImportCollectorProperties: msRest.CompositeMapper = { + serializedName: "ImportCollectorProperties", + type: { + name: "Composite", + className: "ImportCollectorProperties", + modelProperties: { + discoverySiteId: { + serializedName: "discoverySiteId", + type: { + name: "String" + } + }, + createdTimestamp: { + readOnly: true, + serializedName: "createdTimestamp", + type: { + name: "String" + } + }, + updatedTimestamp: { + readOnly: true, + serializedName: "updatedTimestamp", + type: { + name: "String" + } + } + } + } +}; + +export const VMwareCollector: msRest.CompositeMapper = { + serializedName: "VMwareCollector", + type: { + name: "Composite", + className: "VMwareCollector", + modelProperties: { + eTag: { + serializedName: "eTag", + type: { + name: "String" + } + }, + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "CollectorProperties" + } + } + } + } +}; + +export const ServerCollector: msRest.CompositeMapper = { + serializedName: "ServerCollector", + type: { + name: "Composite", + className: "ServerCollector", + modelProperties: { + eTag: { + serializedName: "eTag", + type: { + name: "String" + } + }, + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "CollectorProperties" + } + } + } + } +}; + +export const ImportCollector: msRest.CompositeMapper = { + serializedName: "ImportCollector", + type: { + name: "Composite", + className: "ImportCollector", + modelProperties: { + eTag: { + serializedName: "eTag", + type: { + name: "String" + } + }, + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "ImportCollectorProperties" + } + } + } + } +}; + +export const VmFamily: msRest.CompositeMapper = { + serializedName: "VmFamily", + type: { + name: "Composite", + className: "VmFamily", + modelProperties: { + familyName: { + readOnly: true, + serializedName: "familyName", + type: { + name: "String" + } + }, + targetLocations: { + readOnly: true, + serializedName: "targetLocations", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + category: { + readOnly: true, + serializedName: "category", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const AssessmentOptionsProperties: msRest.CompositeMapper = { + serializedName: "AssessmentOptionsProperties", + type: { + name: "Composite", + className: "AssessmentOptionsProperties", + modelProperties: { + vmFamilies: { + readOnly: true, + serializedName: "vmFamilies", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VmFamily" + } + } + } + }, + reservedInstanceVmFamilies: { + readOnly: true, + serializedName: "reservedInstanceVmFamilies", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + reservedInstanceSupportedLocations: { + readOnly: true, + serializedName: "reservedInstanceSupportedLocations", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + reservedInstanceSupportedCurrencies: { + readOnly: true, + serializedName: "reservedInstanceSupportedCurrencies", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + reservedInstanceSupportedOffers: { + readOnly: true, + serializedName: "reservedInstanceSupportedOffers", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const AssessmentOptions: msRest.CompositeMapper = { + serializedName: "AssessmentOptions", + type: { + name: "Composite", + className: "AssessmentOptions", + modelProperties: { + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + properties: { + required: true, + serializedName: "properties", + type: { + name: "Composite", + className: "AssessmentOptionsProperties" + } + } + } + } +}; + +export const PrivateEndpointConnectionCollection: msRest.CompositeMapper = { + serializedName: "PrivateEndpointConnectionCollection", + type: { + name: "Composite", + className: "PrivateEndpointConnectionCollection", + modelProperties: { + value: { + readOnly: true, + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateEndpointConnection" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const PrivateLinkResourceProperties: msRest.CompositeMapper = { + serializedName: "PrivateLinkResourceProperties", + type: { + name: "Composite", + className: "PrivateLinkResourceProperties", + modelProperties: { + requiredMembers: { + readOnly: true, + serializedName: "requiredMembers", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + requiredZoneNames: { + readOnly: true, + serializedName: "requiredZoneNames", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + groupId: { + readOnly: true, + serializedName: "groupId", + type: { + name: "String" + } + } + } + } +}; + +export const PrivateLinkResource: msRest.CompositeMapper = { + serializedName: "PrivateLinkResource", + type: { + name: "Composite", + className: "PrivateLinkResource", + modelProperties: { + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + properties: { + readOnly: true, + serializedName: "properties", + type: { + name: "Composite", + className: "PrivateLinkResourceProperties" + } + } + } + } +}; + +export const PrivateLinkResourceCollection: msRest.CompositeMapper = { + serializedName: "PrivateLinkResourceCollection", + type: { + name: "Composite", + className: "PrivateLinkResourceCollection", + modelProperties: { + value: { + readOnly: true, + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateLinkResource" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const ProjectsListBySubscriptionHeaders: msRest.CompositeMapper = { + serializedName: "projects-listbysubscription-headers", + type: { + name: "Composite", + className: "ProjectsListBySubscriptionHeaders", + modelProperties: { + xMsRequestId: { + serializedName: "x-ms-request-id", + type: { + name: "String" + } + } + } + } +}; + +export const ProjectsListHeaders: msRest.CompositeMapper = { + serializedName: "projects-list-headers", + type: { + name: "Composite", + className: "ProjectsListHeaders", + modelProperties: { + xMsRequestId: { + serializedName: "x-ms-request-id", + type: { + name: "String" + } + } + } + } +}; + +export const ProjectsGetHeaders: msRest.CompositeMapper = { + serializedName: "projects-get-headers", + type: { + name: "Composite", + className: "ProjectsGetHeaders", + modelProperties: { + xMsRequestId: { + serializedName: "x-ms-request-id", + type: { + name: "String" + } + } + } + } +}; + +export const ProjectsCreateHeaders: msRest.CompositeMapper = { + serializedName: "projects-create-headers", + type: { + name: "Composite", + className: "ProjectsCreateHeaders", + modelProperties: { + xMsRequestId: { + serializedName: "x-ms-request-id", + type: { + name: "String" + } + } + } + } +}; + +export const ProjectsUpdateHeaders: msRest.CompositeMapper = { + serializedName: "projects-update-headers", + type: { + name: "Composite", + className: "ProjectsUpdateHeaders", + modelProperties: { + xMsRequestId: { + serializedName: "x-ms-request-id", + type: { + name: "String" + } + } + } + } +}; + +export const ProjectsDeleteHeaders: msRest.CompositeMapper = { + serializedName: "projects-delete-headers", + type: { + name: "Composite", + className: "ProjectsDeleteHeaders", + modelProperties: { + xMsRequestId: { + serializedName: "x-ms-request-id", + type: { + name: "String" + } + } + } + } +}; + +export const ProjectsAssessmentOptionsHeaders: msRest.CompositeMapper = { + serializedName: "projects-assessmentoptions-headers", + type: { + name: "Composite", + className: "ProjectsAssessmentOptionsHeaders", + modelProperties: { + xMsRequestId: { + serializedName: "x-ms-request-id", + type: { + name: "String" + } + } + } + } +}; + +export const ProjectsAssessmentOptionsListHeaders: msRest.CompositeMapper = { + serializedName: "projects-assessmentoptionslist-headers", + type: { + name: "Composite", + className: "ProjectsAssessmentOptionsListHeaders", + modelProperties: { + xMsRequestId: { + serializedName: "x-ms-request-id", + type: { + name: "String" + } + } + } + } +}; + +export const MachinesListByProjectHeaders: msRest.CompositeMapper = { + serializedName: "machines-listbyproject-headers", + type: { + name: "Composite", + className: "MachinesListByProjectHeaders", + modelProperties: { + xMsRequestId: { + serializedName: "x-ms-request-id", + type: { + name: "String" + } + } + } + } +}; + +export const MachinesGetHeaders: msRest.CompositeMapper = { + serializedName: "machines-get-headers", + type: { + name: "Composite", + className: "MachinesGetHeaders", + modelProperties: { + xMsRequestId: { + serializedName: "x-ms-request-id", + type: { + name: "String" + } + } + } + } +}; + +export const GroupsListByProjectHeaders: msRest.CompositeMapper = { + serializedName: "groups-listbyproject-headers", + type: { + name: "Composite", + className: "GroupsListByProjectHeaders", + modelProperties: { + xMsRequestId: { + serializedName: "x-ms-request-id", + type: { + name: "String" + } + } + } + } +}; + +export const GroupsGetHeaders: msRest.CompositeMapper = { + serializedName: "groups-get-headers", + type: { + name: "Composite", + className: "GroupsGetHeaders", + modelProperties: { + xMsRequestId: { + serializedName: "x-ms-request-id", + type: { + name: "String" + } + } + } + } +}; + +export const GroupsCreateHeaders: msRest.CompositeMapper = { + serializedName: "groups-create-headers", + type: { + name: "Composite", + className: "GroupsCreateHeaders", + modelProperties: { + xMsRequestId: { + serializedName: "x-ms-request-id", + type: { + name: "String" + } + } + } + } +}; + +export const GroupsDeleteHeaders: msRest.CompositeMapper = { + serializedName: "groups-delete-headers", + type: { + name: "Composite", + className: "GroupsDeleteHeaders", + modelProperties: { + xMsRequestId: { + serializedName: "x-ms-request-id", + type: { + name: "String" + } + } + } + } +}; + +export const GroupsUpdateMachinesHeaders: msRest.CompositeMapper = { + serializedName: "groups-updatemachines-headers", + type: { + name: "Composite", + className: "GroupsUpdateMachinesHeaders", + modelProperties: { + xMsRequestId: { + serializedName: "x-ms-request-id", + type: { + name: "String" + } + } + } + } +}; + +export const AssessmentsListByGroupHeaders: msRest.CompositeMapper = { + serializedName: "assessments-listbygroup-headers", + type: { + name: "Composite", + className: "AssessmentsListByGroupHeaders", + modelProperties: { + xMsRequestId: { + serializedName: "x-ms-request-id", + type: { + name: "String" + } + } + } + } +}; + +export const AssessmentsListByProjectHeaders: msRest.CompositeMapper = { + serializedName: "assessments-listbyproject-headers", + type: { + name: "Composite", + className: "AssessmentsListByProjectHeaders", + modelProperties: { + xMsRequestId: { + serializedName: "x-ms-request-id", + type: { + name: "String" + } + } + } + } +}; + +export const AssessmentsGetHeaders: msRest.CompositeMapper = { + serializedName: "assessments-get-headers", + type: { + name: "Composite", + className: "AssessmentsGetHeaders", + modelProperties: { + xMsRequestId: { + serializedName: "x-ms-request-id", + type: { + name: "String" + } + } + } + } +}; + +export const AssessmentsCreateHeaders: msRest.CompositeMapper = { + serializedName: "assessments-create-headers", + type: { + name: "Composite", + className: "AssessmentsCreateHeaders", + modelProperties: { + xMsRequestId: { + serializedName: "x-ms-request-id", + type: { + name: "String" + } + } + } + } +}; + +export const AssessmentsDeleteHeaders: msRest.CompositeMapper = { + serializedName: "assessments-delete-headers", + type: { + name: "Composite", + className: "AssessmentsDeleteHeaders", + modelProperties: { + xMsRequestId: { + serializedName: "x-ms-request-id", + type: { + name: "String" + } + } + } + } +}; + +export const AssessmentsGetReportDownloadUrlHeaders: msRest.CompositeMapper = { + serializedName: "assessments-getreportdownloadurl-headers", type: { name: "Composite", - className: "VmFamily", + className: "AssessmentsGetReportDownloadUrlHeaders", modelProperties: { - familyName: { - readOnly: true, - serializedName: "familyName", + xMsRequestId: { + serializedName: "x-ms-request-id", type: { name: "String" } - }, - targetLocations: { - readOnly: true, - serializedName: "targetLocations", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - category: { - readOnly: true, - serializedName: "category", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } } } } }; -export const AssessmentOptionsResultList: msRest.CompositeMapper = { - serializedName: "AssessmentOptionsResultList", +export const AssessedMachinesListByAssessmentHeaders: msRest.CompositeMapper = { + serializedName: "assessedmachines-listbyassessment-headers", type: { name: "Composite", - className: "AssessmentOptionsResultList", + className: "AssessedMachinesListByAssessmentHeaders", modelProperties: { - vmFamilies: { - readOnly: true, - serializedName: "vmFamilies", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VmFamily" - } - } - } - }, - reservedInstanceVmFamilies: { - readOnly: true, - serializedName: "reservedInstanceVmFamilies", + xMsRequestId: { + serializedName: "x-ms-request-id", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } } } } }; -export const CheckNameAvailabilityParameters: msRest.CompositeMapper = { - serializedName: "CheckNameAvailabilityParameters", +export const AssessedMachinesGetHeaders: msRest.CompositeMapper = { + serializedName: "assessedmachines-get-headers", type: { name: "Composite", - className: "CheckNameAvailabilityParameters", + className: "AssessedMachinesGetHeaders", modelProperties: { - name: { - required: true, - serializedName: "name", - type: { - name: "String" - } - }, - type: { - required: true, - isConstant: true, - serializedName: "type", - defaultValue: 'Microsoft.Migrate/projects', + xMsRequestId: { + serializedName: "x-ms-request-id", type: { name: "String" } @@ -1379,34 +2530,14 @@ export const CheckNameAvailabilityParameters: msRest.CompositeMapper = { } }; -export const CheckNameAvailabilityResult: msRest.CompositeMapper = { - serializedName: "CheckNameAvailabilityResult", +export const HyperVCollectorsListByProjectHeaders: msRest.CompositeMapper = { + serializedName: "hypervcollectors-listbyproject-headers", type: { name: "Composite", - className: "CheckNameAvailabilityResult", + className: "HyperVCollectorsListByProjectHeaders", modelProperties: { - nameAvailable: { - readOnly: true, - serializedName: "nameAvailable", - type: { - name: "Boolean" - } - }, - reason: { - readOnly: true, - serializedName: "reason", - type: { - name: "Enum", - allowedValues: [ - "Available", - "Invalid", - "AlreadyExists" - ] - } - }, - message: { - readOnly: true, - serializedName: "message", + xMsRequestId: { + serializedName: "x-ms-request-id", type: { name: "String" } @@ -1415,11 +2546,11 @@ export const CheckNameAvailabilityResult: msRest.CompositeMapper = { } }; -export const ProjectsListBySubscriptionHeaders: msRest.CompositeMapper = { - serializedName: "projects-listbysubscription-headers", +export const HyperVCollectorsGetHeaders: msRest.CompositeMapper = { + serializedName: "hypervcollectors-get-headers", type: { name: "Composite", - className: "ProjectsListBySubscriptionHeaders", + className: "HyperVCollectorsGetHeaders", modelProperties: { xMsRequestId: { serializedName: "x-ms-request-id", @@ -1431,11 +2562,11 @@ export const ProjectsListBySubscriptionHeaders: msRest.CompositeMapper = { } }; -export const ProjectsListByResourceGroupHeaders: msRest.CompositeMapper = { - serializedName: "projects-listbyresourcegroup-headers", +export const HyperVCollectorsCreateHeaders: msRest.CompositeMapper = { + serializedName: "hypervcollectors-create-headers", type: { name: "Composite", - className: "ProjectsListByResourceGroupHeaders", + className: "HyperVCollectorsCreateHeaders", modelProperties: { xMsRequestId: { serializedName: "x-ms-request-id", @@ -1447,11 +2578,11 @@ export const ProjectsListByResourceGroupHeaders: msRest.CompositeMapper = { } }; -export const ProjectsGetHeaders: msRest.CompositeMapper = { - serializedName: "projects-get-headers", +export const HyperVCollectorsDeleteHeaders: msRest.CompositeMapper = { + serializedName: "hypervcollectors-delete-headers", type: { name: "Composite", - className: "ProjectsGetHeaders", + className: "HyperVCollectorsDeleteHeaders", modelProperties: { xMsRequestId: { serializedName: "x-ms-request-id", @@ -1463,11 +2594,11 @@ export const ProjectsGetHeaders: msRest.CompositeMapper = { } }; -export const ProjectsCreateHeaders: msRest.CompositeMapper = { - serializedName: "projects-create-headers", +export const ServerCollectorsListByProjectHeaders: msRest.CompositeMapper = { + serializedName: "servercollectors-listbyproject-headers", type: { name: "Composite", - className: "ProjectsCreateHeaders", + className: "ServerCollectorsListByProjectHeaders", modelProperties: { xMsRequestId: { serializedName: "x-ms-request-id", @@ -1479,11 +2610,11 @@ export const ProjectsCreateHeaders: msRest.CompositeMapper = { } }; -export const ProjectsUpdateHeaders: msRest.CompositeMapper = { - serializedName: "projects-update-headers", +export const ServerCollectorsGetHeaders: msRest.CompositeMapper = { + serializedName: "servercollectors-get-headers", type: { name: "Composite", - className: "ProjectsUpdateHeaders", + className: "ServerCollectorsGetHeaders", modelProperties: { xMsRequestId: { serializedName: "x-ms-request-id", @@ -1495,11 +2626,11 @@ export const ProjectsUpdateHeaders: msRest.CompositeMapper = { } }; -export const ProjectsDeleteHeaders: msRest.CompositeMapper = { - serializedName: "projects-delete-headers", +export const ServerCollectorsCreateHeaders: msRest.CompositeMapper = { + serializedName: "servercollectors-create-headers", type: { name: "Composite", - className: "ProjectsDeleteHeaders", + className: "ServerCollectorsCreateHeaders", modelProperties: { xMsRequestId: { serializedName: "x-ms-request-id", @@ -1511,11 +2642,11 @@ export const ProjectsDeleteHeaders: msRest.CompositeMapper = { } }; -export const ProjectsGetKeysHeaders: msRest.CompositeMapper = { - serializedName: "projects-getkeys-headers", +export const ServerCollectorsDeleteHeaders: msRest.CompositeMapper = { + serializedName: "servercollectors-delete-headers", type: { name: "Composite", - className: "ProjectsGetKeysHeaders", + className: "ServerCollectorsDeleteHeaders", modelProperties: { xMsRequestId: { serializedName: "x-ms-request-id", @@ -1527,11 +2658,11 @@ export const ProjectsGetKeysHeaders: msRest.CompositeMapper = { } }; -export const MachinesListByProjectHeaders: msRest.CompositeMapper = { - serializedName: "machines-listbyproject-headers", +export const VMwareCollectorsListByProjectHeaders: msRest.CompositeMapper = { + serializedName: "vmwarecollectors-listbyproject-headers", type: { name: "Composite", - className: "MachinesListByProjectHeaders", + className: "VMwareCollectorsListByProjectHeaders", modelProperties: { xMsRequestId: { serializedName: "x-ms-request-id", @@ -1543,11 +2674,11 @@ export const MachinesListByProjectHeaders: msRest.CompositeMapper = { } }; -export const MachinesGetHeaders: msRest.CompositeMapper = { - serializedName: "machines-get-headers", +export const VMwareCollectorsGetHeaders: msRest.CompositeMapper = { + serializedName: "vmwarecollectors-get-headers", type: { name: "Composite", - className: "MachinesGetHeaders", + className: "VMwareCollectorsGetHeaders", modelProperties: { xMsRequestId: { serializedName: "x-ms-request-id", @@ -1559,11 +2690,11 @@ export const MachinesGetHeaders: msRest.CompositeMapper = { } }; -export const GroupsListByProjectHeaders: msRest.CompositeMapper = { - serializedName: "groups-listbyproject-headers", +export const VMwareCollectorsCreateHeaders: msRest.CompositeMapper = { + serializedName: "vmwarecollectors-create-headers", type: { name: "Composite", - className: "GroupsListByProjectHeaders", + className: "VMwareCollectorsCreateHeaders", modelProperties: { xMsRequestId: { serializedName: "x-ms-request-id", @@ -1575,11 +2706,11 @@ export const GroupsListByProjectHeaders: msRest.CompositeMapper = { } }; -export const GroupsGetHeaders: msRest.CompositeMapper = { - serializedName: "groups-get-headers", +export const VMwareCollectorsDeleteHeaders: msRest.CompositeMapper = { + serializedName: "vmwarecollectors-delete-headers", type: { name: "Composite", - className: "GroupsGetHeaders", + className: "VMwareCollectorsDeleteHeaders", modelProperties: { xMsRequestId: { serializedName: "x-ms-request-id", @@ -1591,11 +2722,11 @@ export const GroupsGetHeaders: msRest.CompositeMapper = { } }; -export const GroupsCreateHeaders: msRest.CompositeMapper = { - serializedName: "groups-create-headers", +export const ImportCollectorsListByProjectHeaders: msRest.CompositeMapper = { + serializedName: "importcollectors-listbyproject-headers", type: { name: "Composite", - className: "GroupsCreateHeaders", + className: "ImportCollectorsListByProjectHeaders", modelProperties: { xMsRequestId: { serializedName: "x-ms-request-id", @@ -1607,11 +2738,11 @@ export const GroupsCreateHeaders: msRest.CompositeMapper = { } }; -export const GroupsDeleteHeaders: msRest.CompositeMapper = { - serializedName: "groups-delete-headers", +export const ImportCollectorsGetHeaders: msRest.CompositeMapper = { + serializedName: "importcollectors-get-headers", type: { name: "Composite", - className: "GroupsDeleteHeaders", + className: "ImportCollectorsGetHeaders", modelProperties: { xMsRequestId: { serializedName: "x-ms-request-id", @@ -1623,11 +2754,11 @@ export const GroupsDeleteHeaders: msRest.CompositeMapper = { } }; -export const AssessmentsListByGroupHeaders: msRest.CompositeMapper = { - serializedName: "assessments-listbygroup-headers", +export const ImportCollectorsCreateHeaders: msRest.CompositeMapper = { + serializedName: "importcollectors-create-headers", type: { name: "Composite", - className: "AssessmentsListByGroupHeaders", + className: "ImportCollectorsCreateHeaders", modelProperties: { xMsRequestId: { serializedName: "x-ms-request-id", @@ -1639,11 +2770,11 @@ export const AssessmentsListByGroupHeaders: msRest.CompositeMapper = { } }; -export const AssessmentsListByProjectHeaders: msRest.CompositeMapper = { - serializedName: "assessments-listbyproject-headers", +export const ImportCollectorsDeleteHeaders: msRest.CompositeMapper = { + serializedName: "importcollectors-delete-headers", type: { name: "Composite", - className: "AssessmentsListByProjectHeaders", + className: "ImportCollectorsDeleteHeaders", modelProperties: { xMsRequestId: { serializedName: "x-ms-request-id", @@ -1655,11 +2786,11 @@ export const AssessmentsListByProjectHeaders: msRest.CompositeMapper = { } }; -export const AssessmentsGetHeaders: msRest.CompositeMapper = { - serializedName: "assessments-get-headers", +export const PrivateEndpointConnectionListByProjectHeaders: msRest.CompositeMapper = { + serializedName: "privateendpointconnection-listbyproject-headers", type: { name: "Composite", - className: "AssessmentsGetHeaders", + className: "PrivateEndpointConnectionListByProjectHeaders", modelProperties: { xMsRequestId: { serializedName: "x-ms-request-id", @@ -1671,11 +2802,11 @@ export const AssessmentsGetHeaders: msRest.CompositeMapper = { } }; -export const AssessmentsCreateHeaders: msRest.CompositeMapper = { - serializedName: "assessments-create-headers", +export const PrivateEndpointConnectionGetHeaders: msRest.CompositeMapper = { + serializedName: "privateendpointconnection-get-headers", type: { name: "Composite", - className: "AssessmentsCreateHeaders", + className: "PrivateEndpointConnectionGetHeaders", modelProperties: { xMsRequestId: { serializedName: "x-ms-request-id", @@ -1687,11 +2818,11 @@ export const AssessmentsCreateHeaders: msRest.CompositeMapper = { } }; -export const AssessmentsDeleteHeaders: msRest.CompositeMapper = { - serializedName: "assessments-delete-headers", +export const PrivateEndpointConnectionUpdateHeaders: msRest.CompositeMapper = { + serializedName: "privateendpointconnection-update-headers", type: { name: "Composite", - className: "AssessmentsDeleteHeaders", + className: "PrivateEndpointConnectionUpdateHeaders", modelProperties: { xMsRequestId: { serializedName: "x-ms-request-id", @@ -1703,11 +2834,11 @@ export const AssessmentsDeleteHeaders: msRest.CompositeMapper = { } }; -export const AssessmentsGetReportDownloadUrlHeaders: msRest.CompositeMapper = { - serializedName: "assessments-getreportdownloadurl-headers", +export const PrivateEndpointConnectionDeleteHeaders: msRest.CompositeMapper = { + serializedName: "privateendpointconnection-delete-headers", type: { name: "Composite", - className: "AssessmentsGetReportDownloadUrlHeaders", + className: "PrivateEndpointConnectionDeleteHeaders", modelProperties: { xMsRequestId: { serializedName: "x-ms-request-id", @@ -1719,11 +2850,11 @@ export const AssessmentsGetReportDownloadUrlHeaders: msRest.CompositeMapper = { } }; -export const AssessedMachinesListByAssessmentHeaders: msRest.CompositeMapper = { - serializedName: "assessedmachines-listbyassessment-headers", +export const PrivateLinkResourceGetHeaders: msRest.CompositeMapper = { + serializedName: "privatelinkresource-get-headers", type: { name: "Composite", - className: "AssessedMachinesListByAssessmentHeaders", + className: "PrivateLinkResourceGetHeaders", modelProperties: { xMsRequestId: { serializedName: "x-ms-request-id", @@ -1735,11 +2866,11 @@ export const AssessedMachinesListByAssessmentHeaders: msRest.CompositeMapper = { } }; -export const AssessedMachinesGetHeaders: msRest.CompositeMapper = { - serializedName: "assessedmachines-get-headers", +export const PrivateLinkResourceListByProjectHeaders: msRest.CompositeMapper = { + serializedName: "privatelinkresource-listbyproject-headers", type: { name: "Composite", - className: "AssessedMachinesGetHeaders", + className: "PrivateLinkResourceListByProjectHeaders", modelProperties: { xMsRequestId: { serializedName: "x-ms-request-id", @@ -1768,6 +2899,34 @@ export const ProjectResultList: msRest.CompositeMapper = { } } } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const AssessmentOptionsResultList: msRest.CompositeMapper = { + serializedName: "AssessmentOptionsResultList", + type: { + name: "Composite", + className: "AssessmentOptionsResultList", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AssessmentOptions" + } + } + } } } } @@ -1790,6 +2949,12 @@ export const MachineResultList: msRest.CompositeMapper = { } } } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } } } } @@ -1856,6 +3021,100 @@ export const AssessedMachineResultList: msRest.CompositeMapper = { } } } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const HyperVCollectorList: msRest.CompositeMapper = { + serializedName: "HyperVCollectorList", + type: { + name: "Composite", + className: "HyperVCollectorList", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "HyperVCollector" + } + } + } + } + } + } +}; + +export const ServerCollectorList: msRest.CompositeMapper = { + serializedName: "ServerCollectorList", + type: { + name: "Composite", + className: "ServerCollectorList", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServerCollector" + } + } + } + } + } + } +}; + +export const VMwareCollectorList: msRest.CompositeMapper = { + serializedName: "VMwareCollectorList", + type: { + name: "Composite", + className: "VMwareCollectorList", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VMwareCollector" + } + } + } + } + } + } +}; + +export const ImportCollectorList: msRest.CompositeMapper = { + serializedName: "ImportCollectorList", + type: { + name: "Composite", + className: "ImportCollectorList", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ImportCollector" + } + } + } } } } diff --git a/sdk/migrate/arm-migrate/src/models/operationsMappers.ts b/sdk/migrate/arm-migrate/src/models/operationsMappers.ts index 4dded67fb929..de252b585151 100644 --- a/sdk/migrate/arm-migrate/src/models/operationsMappers.ts +++ b/sdk/migrate/arm-migrate/src/models/operationsMappers.ts @@ -1,17 +1,14 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { - OperationResultList, + CloudError, Operation, OperationDisplay, - CloudError + OperationResultList } from "../models/mappers"; - diff --git a/sdk/migrate/arm-migrate/src/models/parameters.ts b/sdk/migrate/arm-migrate/src/models/parameters.ts index 619bf688f870..234aba08f281 100644 --- a/sdk/migrate/arm-migrate/src/models/parameters.ts +++ b/sdk/migrate/arm-migrate/src/models/parameters.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -13,7 +12,8 @@ import * as msRest from "@azure/ms-rest-js"; export const acceptLanguage: msRest.OperationParameter = { parameterPath: "acceptLanguage", mapper: { - serializedName: "Accept-Language", + serializedName: "accept-language", + defaultValue: 'en-US', type: { name: "String" } @@ -25,7 +25,7 @@ export const apiVersion: msRest.OperationQueryParameter = { required: true, isConstant: true, serializedName: "api-version", - defaultValue: '2018-02-02', + defaultValue: '2019-10-01', type: { name: "String" } @@ -51,6 +51,16 @@ export const assessmentName: msRest.OperationURLParameter = { } } }; +export const assessmentOptionsName: msRest.OperationURLParameter = { + parameterPath: "assessmentOptionsName", + mapper: { + required: true, + serializedName: "assessmentOptionsName", + type: { + name: "String" + } + } +}; export const groupName: msRest.OperationURLParameter = { parameterPath: "groupName", mapper: { @@ -61,11 +71,21 @@ export const groupName: msRest.OperationURLParameter = { } } }; -export const locationName: msRest.OperationURLParameter = { - parameterPath: "locationName", +export const hyperVCollectorName: msRest.OperationURLParameter = { + parameterPath: "hyperVCollectorName", + mapper: { + required: true, + serializedName: "hyperVCollectorName", + type: { + name: "String" + } + } +}; +export const importCollectorName: msRest.OperationURLParameter = { + parameterPath: "importCollectorName", mapper: { required: true, - serializedName: "locationName", + serializedName: "importCollectorName", type: { name: "String" } @@ -81,6 +101,37 @@ export const machineName: msRest.OperationURLParameter = { } } }; +export const nextPageLink: msRest.OperationURLParameter = { + parameterPath: "nextPageLink", + mapper: { + required: true, + serializedName: "nextLink", + type: { + name: "String" + } + }, + skipEncoding: true +}; +export const privateEndpointConnectionName: msRest.OperationURLParameter = { + parameterPath: "privateEndpointConnectionName", + mapper: { + required: true, + serializedName: "privateEndpointConnectionName", + type: { + name: "String" + } + } +}; +export const privateLinkResourceName: msRest.OperationURLParameter = { + parameterPath: "privateLinkResourceName", + mapper: { + required: true, + serializedName: "privateLinkResourceName", + type: { + name: "String" + } + } +}; export const projectName: msRest.OperationURLParameter = { parameterPath: "projectName", mapper: { @@ -101,6 +152,16 @@ export const resourceGroupName: msRest.OperationURLParameter = { } } }; +export const serverCollectorName: msRest.OperationURLParameter = { + parameterPath: "serverCollectorName", + mapper: { + required: true, + serializedName: "serverCollectorName", + type: { + name: "String" + } + } +}; export const subscriptionId: msRest.OperationURLParameter = { parameterPath: "subscriptionId", mapper: { @@ -111,3 +172,13 @@ export const subscriptionId: msRest.OperationURLParameter = { } } }; +export const vmWareCollectorName: msRest.OperationURLParameter = { + parameterPath: "vmWareCollectorName", + mapper: { + required: true, + serializedName: "vmWareCollectorName", + type: { + name: "String" + } + } +}; diff --git a/sdk/migrate/arm-migrate/src/models/privateEndpointConnectionOperationsMappers.ts b/sdk/migrate/arm-migrate/src/models/privateEndpointConnectionOperationsMappers.ts new file mode 100644 index 000000000000..79cb9f787493 --- /dev/null +++ b/sdk/migrate/arm-migrate/src/models/privateEndpointConnectionOperationsMappers.ts @@ -0,0 +1,49 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + AssessedDisk, + AssessedMachine, + AssessedMachineProperties, + AssessedNetworkAdapter, + Assessment, + AssessmentOptions, + AssessmentOptionsProperties, + AssessmentProperties, + BaseResource, + CloudError, + CollectorAgentProperties, + CollectorBodyAgentSpnProperties, + CollectorProperties, + Disk, + Group, + GroupProperties, + HyperVCollector, + ImportCollector, + ImportCollectorProperties, + Machine, + MachineProperties, + NetworkAdapter, + PrivateEndpointConnection, + PrivateEndpointConnectionCollection, + PrivateEndpointConnectionDeleteHeaders, + PrivateEndpointConnectionGetHeaders, + PrivateEndpointConnectionListByProjectHeaders, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionUpdateHeaders, + PrivateLinkResource, + PrivateLinkResourceProperties, + PrivateLinkServiceConnectionState, + Project, + ProjectProperties, + ResourceId, + ServerCollector, + VmFamily, + VmUptime, + VMwareCollector +} from "../models/mappers"; diff --git a/sdk/migrate/arm-migrate/src/models/privateLinkResourceOperationsMappers.ts b/sdk/migrate/arm-migrate/src/models/privateLinkResourceOperationsMappers.ts new file mode 100644 index 000000000000..2939a16aad06 --- /dev/null +++ b/sdk/migrate/arm-migrate/src/models/privateLinkResourceOperationsMappers.ts @@ -0,0 +1,47 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + AssessedDisk, + AssessedMachine, + AssessedMachineProperties, + AssessedNetworkAdapter, + Assessment, + AssessmentOptions, + AssessmentOptionsProperties, + AssessmentProperties, + BaseResource, + CloudError, + CollectorAgentProperties, + CollectorBodyAgentSpnProperties, + CollectorProperties, + Disk, + Group, + GroupProperties, + HyperVCollector, + ImportCollector, + ImportCollectorProperties, + Machine, + MachineProperties, + NetworkAdapter, + PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateLinkResource, + PrivateLinkResourceCollection, + PrivateLinkResourceGetHeaders, + PrivateLinkResourceListByProjectHeaders, + PrivateLinkResourceProperties, + PrivateLinkServiceConnectionState, + Project, + ProjectProperties, + ResourceId, + ServerCollector, + VmFamily, + VmUptime, + VMwareCollector +} from "../models/mappers"; diff --git a/sdk/migrate/arm-migrate/src/models/projectsMappers.ts b/sdk/migrate/arm-migrate/src/models/projectsMappers.ts index f21710cc6261..3168f7c4cff2 100644 --- a/sdk/migrate/arm-migrate/src/models/projectsMappers.ts +++ b/sdk/migrate/arm-migrate/src/models/projectsMappers.ts @@ -1,33 +1,54 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { - ProjectResultList, - Project, + AssessedDisk, + AssessedMachine, + AssessedMachineProperties, + AssessedNetworkAdapter, + Assessment, + AssessmentOptions, + AssessmentOptionsProperties, + AssessmentOptionsResultList, + AssessmentProperties, BaseResource, - ProjectsListBySubscriptionHeaders, CloudError, - ProjectsListByResourceGroupHeaders, - ProjectsGetHeaders, - ProjectsCreateHeaders, - ProjectsUpdateHeaders, - ProjectsDeleteHeaders, - ProjectKey, - ProjectsGetKeysHeaders, + CollectorAgentProperties, + CollectorBodyAgentSpnProperties, + CollectorProperties, + Disk, Group, - Assessment, + GroupProperties, + HyperVCollector, + ImportCollector, + ImportCollectorProperties, Machine, - Disk, + MachineProperties, NetworkAdapter, - AssessedMachine, - AssessedDisk, - AssessedNetworkAdapter + PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateLinkResource, + PrivateLinkResourceProperties, + PrivateLinkServiceConnectionState, + Project, + ProjectProperties, + ProjectResultList, + ProjectsAssessmentOptionsHeaders, + ProjectsAssessmentOptionsListHeaders, + ProjectsCreateHeaders, + ProjectsDeleteHeaders, + ProjectsGetHeaders, + ProjectsListBySubscriptionHeaders, + ProjectsListHeaders, + ProjectsUpdateHeaders, + ResourceId, + ServerCollector, + VmFamily, + VmUptime, + VMwareCollector } from "../models/mappers"; - diff --git a/sdk/migrate/arm-migrate/src/models/serverCollectorsMappers.ts b/sdk/migrate/arm-migrate/src/models/serverCollectorsMappers.ts new file mode 100644 index 000000000000..b947f144f383 --- /dev/null +++ b/sdk/migrate/arm-migrate/src/models/serverCollectorsMappers.ts @@ -0,0 +1,49 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + AssessedDisk, + AssessedMachine, + AssessedMachineProperties, + AssessedNetworkAdapter, + Assessment, + AssessmentOptions, + AssessmentOptionsProperties, + AssessmentProperties, + BaseResource, + CloudError, + CollectorAgentProperties, + CollectorBodyAgentSpnProperties, + CollectorProperties, + Disk, + Group, + GroupProperties, + HyperVCollector, + ImportCollector, + ImportCollectorProperties, + Machine, + MachineProperties, + NetworkAdapter, + PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateLinkResource, + PrivateLinkResourceProperties, + PrivateLinkServiceConnectionState, + Project, + ProjectProperties, + ResourceId, + ServerCollector, + ServerCollectorList, + ServerCollectorsCreateHeaders, + ServerCollectorsDeleteHeaders, + ServerCollectorsGetHeaders, + ServerCollectorsListByProjectHeaders, + VmFamily, + VmUptime, + VMwareCollector +} from "../models/mappers"; diff --git a/sdk/migrate/arm-migrate/src/models/vMwareCollectorsMappers.ts b/sdk/migrate/arm-migrate/src/models/vMwareCollectorsMappers.ts new file mode 100644 index 000000000000..fdc62867ff0e --- /dev/null +++ b/sdk/migrate/arm-migrate/src/models/vMwareCollectorsMappers.ts @@ -0,0 +1,49 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + AssessedDisk, + AssessedMachine, + AssessedMachineProperties, + AssessedNetworkAdapter, + Assessment, + AssessmentOptions, + AssessmentOptionsProperties, + AssessmentProperties, + BaseResource, + CloudError, + CollectorAgentProperties, + CollectorBodyAgentSpnProperties, + CollectorProperties, + Disk, + Group, + GroupProperties, + HyperVCollector, + ImportCollector, + ImportCollectorProperties, + Machine, + MachineProperties, + NetworkAdapter, + PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateLinkResource, + PrivateLinkResourceProperties, + PrivateLinkServiceConnectionState, + Project, + ProjectProperties, + ResourceId, + ServerCollector, + VmFamily, + VmUptime, + VMwareCollector, + VMwareCollectorList, + VMwareCollectorsCreateHeaders, + VMwareCollectorsDeleteHeaders, + VMwareCollectorsGetHeaders, + VMwareCollectorsListByProjectHeaders +} from "../models/mappers"; diff --git a/sdk/migrate/arm-migrate/src/operations/assessedMachines.ts b/sdk/migrate/arm-migrate/src/operations/assessedMachines.ts index 505c9c19c2fa..714e3d76aed6 100644 --- a/sdk/migrate/arm-migrate/src/operations/assessedMachines.ts +++ b/sdk/migrate/arm-migrate/src/operations/assessedMachines.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -12,17 +11,17 @@ import * as msRest from "@azure/ms-rest-js"; import * as Models from "../models"; import * as Mappers from "../models/assessedMachinesMappers"; import * as Parameters from "../models/parameters"; -import { AzureMigrateContext } from "../azureMigrateContext"; +import { AzureMigrateV2Context } from "../azureMigrateV2Context"; /** Class representing a AssessedMachines. */ export class AssessedMachines { - private readonly client: AzureMigrateContext; + private readonly client: AzureMigrateV2Context; /** * Create a AssessedMachines. - * @param {AzureMigrateContext} client Reference to the service client. + * @param {AzureMigrateV2Context} client Reference to the service client. */ - constructor(client: AzureMigrateContext) { + constructor(client: AzureMigrateV2Context) { this.client = client; } @@ -74,7 +73,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. @@ -121,13 +120,48 @@ export class AssessedMachines { getOperationSpec, callback) as Promise; } + + /** + * Get list of machines that assessed as part of the specified assessment. Returns a json array of + * objects of type 'assessedMachine' as specified in the Models section. + * + * Whenever an assessment is created or updated, it goes under computation. During this phase, the + * 'status' field of Assessment object reports 'Computing'. + * During the period when the assessment is under computation, the list of assessed machines is + * empty and no assessed machines are returned by this call. + * @summary Get assessed machines for assessment. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByAssessmentNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByAssessmentNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByAssessmentNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByAssessmentNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByAssessmentNextOperationSpec, + callback) as Promise; + } } // Operation Specifications const serializer = new msRest.Serializer(Mappers); const listByAssessmentOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/projects/{projectName}/groups/{groupName}/assessments/{assessmentName}/assessedMachines", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/groups/{groupName}/assessments/{assessmentName}/assessedMachines", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -147,7 +181,8 @@ const listByAssessmentOperationSpec: msRest.OperationSpec = { headersMapper: Mappers.AssessedMachinesListByAssessmentHeaders }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.CloudError, + headersMapper: Mappers.AssessedMachinesListByAssessmentHeaders } }, serializer @@ -155,7 +190,7 @@ const listByAssessmentOperationSpec: msRest.OperationSpec = { const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/projects/{projectName}/groups/{groupName}/assessments/{assessmentName}/assessedMachines/{assessedMachineName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/groups/{groupName}/assessments/{assessmentName}/assessedMachines/{assessedMachineName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -176,7 +211,34 @@ const getOperationSpec: msRest.OperationSpec = { headersMapper: Mappers.AssessedMachinesGetHeaders }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.CloudError, + headersMapper: Mappers.AssessedMachinesGetHeaders + } + }, + serializer +}; + +const listByAssessmentNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AssessedMachineResultList, + headersMapper: Mappers.AssessedMachinesListByAssessmentHeaders + }, + default: { + bodyMapper: Mappers.CloudError, + headersMapper: Mappers.AssessedMachinesListByAssessmentHeaders } }, serializer diff --git a/sdk/migrate/arm-migrate/src/operations/assessmentOptions.ts b/sdk/migrate/arm-migrate/src/operations/assessmentOptions.ts deleted file mode 100644 index 763193a07fcf..000000000000 --- a/sdk/migrate/arm-migrate/src/operations/assessmentOptions.ts +++ /dev/null @@ -1,83 +0,0 @@ -/* - * 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. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as Models from "../models"; -import * as Mappers from "../models/assessmentOptionsMappers"; -import * as Parameters from "../models/parameters"; -import { AzureMigrateContext } from "../azureMigrateContext"; - -/** Class representing a AssessmentOptions. */ -export class AssessmentOptions { - private readonly client: AzureMigrateContext; - - /** - * Create a AssessmentOptions. - * @param {AzureMigrateContext} client Reference to the service client. - */ - constructor(client: AzureMigrateContext) { - this.client = client; - } - - /** - * Get the available options for the properties of an assessment. - * @summary Get the assessment options. - * @param locationName Azure region in which the project is created. - * @param [options] The optional parameters - * @returns Promise - */ - get(locationName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param locationName Azure region in which the project is created. - * @param callback The callback - */ - get(locationName: string, callback: msRest.ServiceCallback): void; - /** - * @param locationName Azure region in which the project is created. - * @param options The optional parameters - * @param callback The callback - */ - get(locationName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(locationName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - locationName, - options - }, - getOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Migrate/locations/{locationName}/assessmentOptions", - urlParameters: [ - Parameters.subscriptionId, - Parameters.locationName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.AssessmentOptionsResultList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/migrate/arm-migrate/src/operations/assessments.ts b/sdk/migrate/arm-migrate/src/operations/assessments.ts index 839f1b3d5677..5d89ae45d43b 100644 --- a/sdk/migrate/arm-migrate/src/operations/assessments.ts +++ b/sdk/migrate/arm-migrate/src/operations/assessments.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -12,17 +11,17 @@ import * as msRest from "@azure/ms-rest-js"; import * as Models from "../models"; import * as Mappers from "../models/assessmentsMappers"; import * as Parameters from "../models/parameters"; -import { AzureMigrateContext } from "../azureMigrateContext"; +import { AzureMigrateV2Context } from "../azureMigrateV2Context"; /** Class representing a Assessments. */ export class Assessments { - private readonly client: AzureMigrateContext; + private readonly client: AzureMigrateV2Context; /** * Create a Assessments. - * @param {AzureMigrateContext} client Reference to the service client. + * @param {AzureMigrateV2Context} client Reference to the service client. */ - constructor(client: AzureMigrateContext) { + constructor(client: AzureMigrateV2Context) { this.client = client; } @@ -144,7 +143,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 @@ -285,7 +284,7 @@ export class Assessments { const serializer = new msRest.Serializer(Mappers); const listByGroupOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/projects/{projectName}/groups/{groupName}/assessments", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/groups/{groupName}/assessments", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -304,7 +303,8 @@ const listByGroupOperationSpec: msRest.OperationSpec = { headersMapper: Mappers.AssessmentsListByGroupHeaders }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.CloudError, + headersMapper: Mappers.AssessmentsListByGroupHeaders } }, serializer @@ -312,7 +312,7 @@ const listByGroupOperationSpec: msRest.OperationSpec = { const listByProjectOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/projects/{projectName}/assessments", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/assessments", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -330,7 +330,8 @@ const listByProjectOperationSpec: msRest.OperationSpec = { headersMapper: Mappers.AssessmentsListByProjectHeaders }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.CloudError, + headersMapper: Mappers.AssessmentsListByProjectHeaders } }, serializer @@ -338,7 +339,7 @@ const listByProjectOperationSpec: msRest.OperationSpec = { const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/projects/{projectName}/groups/{groupName}/assessments/{assessmentName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/groups/{groupName}/assessments/{assessmentName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -358,7 +359,8 @@ const getOperationSpec: msRest.OperationSpec = { headersMapper: Mappers.AssessmentsGetHeaders }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.CloudError, + headersMapper: Mappers.AssessmentsGetHeaders } }, serializer @@ -366,7 +368,7 @@ const getOperationSpec: msRest.OperationSpec = { const createOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/projects/{projectName}/groups/{groupName}/assessments/{assessmentName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/groups/{groupName}/assessments/{assessmentName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -397,7 +399,8 @@ const createOperationSpec: msRest.OperationSpec = { headersMapper: Mappers.AssessmentsCreateHeaders }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.CloudError, + headersMapper: Mappers.AssessmentsCreateHeaders } }, serializer @@ -405,7 +408,7 @@ const createOperationSpec: msRest.OperationSpec = { const deleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/projects/{projectName}/groups/{groupName}/assessments/{assessmentName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/groups/{groupName}/assessments/{assessmentName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -423,8 +426,12 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { 200: { headersMapper: Mappers.AssessmentsDeleteHeaders }, + 204: { + headersMapper: Mappers.AssessmentsDeleteHeaders + }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.CloudError, + headersMapper: Mappers.AssessmentsDeleteHeaders } }, serializer @@ -432,7 +439,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { const getReportDownloadUrlOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/projects/{projectName}/groups/{groupName}/assessments/{assessmentName}/downloadUrl", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/groups/{groupName}/assessments/{assessmentName}/downloadUrl", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -452,7 +459,8 @@ const getReportDownloadUrlOperationSpec: msRest.OperationSpec = { headersMapper: Mappers.AssessmentsGetReportDownloadUrlHeaders }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.CloudError, + headersMapper: Mappers.AssessmentsGetReportDownloadUrlHeaders } }, serializer diff --git a/sdk/migrate/arm-migrate/src/operations/groups.ts b/sdk/migrate/arm-migrate/src/operations/groups.ts index 2991d0648132..403a4eddeffb 100644 --- a/sdk/migrate/arm-migrate/src/operations/groups.ts +++ b/sdk/migrate/arm-migrate/src/operations/groups.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -12,17 +11,17 @@ import * as msRest from "@azure/ms-rest-js"; import * as Models from "../models"; import * as Mappers from "../models/groupsMappers"; import * as Parameters from "../models/parameters"; -import { AzureMigrateContext } from "../azureMigrateContext"; +import { AzureMigrateV2Context } from "../azureMigrateV2Context"; /** Class representing a Groups. */ export class Groups { - private readonly client: AzureMigrateContext; + private readonly client: AzureMigrateV2Context; /** * Create a Groups. - * @param {AzureMigrateContext} client Reference to the service client. + * @param {AzureMigrateV2Context} client Reference to the service client. */ - constructor(client: AzureMigrateContext) { + constructor(client: AzureMigrateV2Context) { this.client = client; } @@ -100,15 +99,10 @@ export class Groups { /** * Create a new group by sending a json object of type 'group' as given in Models section as part - * of the Request Body. The group name in a project is unique. Labels can be applied on a group as - * part of creation. - * - * If a group with the groupName specified in the URL already exists, then this call acts as an - * update. + * of the Request Body. The group name in a project is unique. * * This operation is Idempotent. - * @summary Create a new group with specified settings. If group with the name provided already - * exists, then the existing group is updated. + * @summary Create a new group with specified settings. * @param resourceGroupName Name of the Azure Resource Group that project is part of. * @param projectName Name of the Azure Migrate project. * @param groupName Unique name of a group within a project. @@ -183,13 +177,50 @@ export class Groups { deleteMethodOperationSpec, callback) as Promise; } + + /** + * Update machines in group by adding or removing machines. + * @summary Update machines in group. + * @param resourceGroupName Name of the Azure Resource Group that project is part of. + * @param projectName Name of the Azure Migrate project. + * @param groupName Unique name of a group within a project. + * @param [options] The optional parameters + * @returns Promise + */ + updateMachines(resourceGroupName: string, projectName: string, groupName: string, options?: Models.GroupsUpdateMachinesOptionalParams): Promise; + /** + * @param resourceGroupName Name of the Azure Resource Group that project is part of. + * @param projectName Name of the Azure Migrate project. + * @param groupName Unique name of a group within a project. + * @param callback The callback + */ + updateMachines(resourceGroupName: string, projectName: string, groupName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the Azure Resource Group that project is part of. + * @param projectName Name of the Azure Migrate project. + * @param groupName Unique name of a group within a project. + * @param options The optional parameters + * @param callback The callback + */ + updateMachines(resourceGroupName: string, projectName: string, groupName: string, options: Models.GroupsUpdateMachinesOptionalParams, callback: msRest.ServiceCallback): void; + updateMachines(resourceGroupName: string, projectName: string, groupName: string, options?: Models.GroupsUpdateMachinesOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + projectName, + groupName, + options + }, + updateMachinesOperationSpec, + callback) as Promise; + } } // Operation Specifications const serializer = new msRest.Serializer(Mappers); const listByProjectOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/projects/{projectName}/groups", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/groups", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -207,7 +238,8 @@ const listByProjectOperationSpec: msRest.OperationSpec = { headersMapper: Mappers.GroupsListByProjectHeaders }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.CloudError, + headersMapper: Mappers.GroupsListByProjectHeaders } }, serializer @@ -215,7 +247,7 @@ const listByProjectOperationSpec: msRest.OperationSpec = { const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/projects/{projectName}/groups/{groupName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/groups/{groupName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -234,7 +266,8 @@ const getOperationSpec: msRest.OperationSpec = { headersMapper: Mappers.GroupsGetHeaders }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.CloudError, + headersMapper: Mappers.GroupsGetHeaders } }, serializer @@ -242,7 +275,7 @@ const getOperationSpec: msRest.OperationSpec = { const createOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/projects/{projectName}/groups/{groupName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/groups/{groupName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -272,7 +305,8 @@ const createOperationSpec: msRest.OperationSpec = { headersMapper: Mappers.GroupsCreateHeaders }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.CloudError, + headersMapper: Mappers.GroupsCreateHeaders } }, serializer @@ -280,7 +314,7 @@ const createOperationSpec: msRest.OperationSpec = { const deleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/projects/{projectName}/groups/{groupName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/groups/{groupName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -297,8 +331,47 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { 200: { headersMapper: Mappers.GroupsDeleteHeaders }, + 204: { + headersMapper: Mappers.GroupsDeleteHeaders + }, + default: { + bodyMapper: Mappers.CloudError, + headersMapper: Mappers.GroupsDeleteHeaders + } + }, + serializer +}; + +const updateMachinesOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/groups/{groupName}/updateMachines", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.projectName, + Parameters.groupName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: [ + "options", + "groupUpdateProperties" + ], + mapper: Mappers.UpdateGroupBody + }, + responses: { + 200: { + bodyMapper: Mappers.Group, + headersMapper: Mappers.GroupsUpdateMachinesHeaders + }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.CloudError, + headersMapper: Mappers.GroupsUpdateMachinesHeaders } }, serializer diff --git a/sdk/migrate/arm-migrate/src/operations/hyperVCollectors.ts b/sdk/migrate/arm-migrate/src/operations/hyperVCollectors.ts new file mode 100644 index 000000000000..450138232980 --- /dev/null +++ b/sdk/migrate/arm-migrate/src/operations/hyperVCollectors.ts @@ -0,0 +1,297 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/hyperVCollectorsMappers"; +import * as Parameters from "../models/parameters"; +import { AzureMigrateV2Context } from "../azureMigrateV2Context"; + +/** Class representing a HyperVCollectors. */ +export class HyperVCollectors { + private readonly client: AzureMigrateV2Context; + + /** + * Create a HyperVCollectors. + * @param {AzureMigrateV2Context} client Reference to the service client. + */ + constructor(client: AzureMigrateV2Context) { + this.client = client; + } + + /** + * Get a list of Hyper-V collector. + * @summary Get a list of Hyper-V collector. + * @param resourceGroupName Name of the Azure Resource Group that project is part of. + * @param projectName Name of the Azure Migrate project. + * @param [options] The optional parameters + * @returns Promise + */ + listByProject(resourceGroupName: string, projectName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the Azure Resource Group that project is part of. + * @param projectName Name of the Azure Migrate project. + * @param callback The callback + */ + listByProject(resourceGroupName: string, projectName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the Azure Resource Group that project is part of. + * @param projectName Name of the Azure Migrate project. + * @param options The optional parameters + * @param callback The callback + */ + listByProject(resourceGroupName: string, projectName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByProject(resourceGroupName: string, projectName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + projectName, + options + }, + listByProjectOperationSpec, + callback) as Promise; + } + + /** + * Get a Hyper-V collector. + * @summary Get a Hyper-V collector. + * @param resourceGroupName Name of the Azure Resource Group that project is part of. + * @param projectName Name of the Azure Migrate project. + * @param hyperVCollectorName Unique name of a Hyper-V collector within a project. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, projectName: string, hyperVCollectorName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the Azure Resource Group that project is part of. + * @param projectName Name of the Azure Migrate project. + * @param hyperVCollectorName Unique name of a Hyper-V collector within a project. + * @param callback The callback + */ + get(resourceGroupName: string, projectName: string, hyperVCollectorName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the Azure Resource Group that project is part of. + * @param projectName Name of the Azure Migrate project. + * @param hyperVCollectorName Unique name of a Hyper-V collector within a project. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, projectName: string, hyperVCollectorName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, projectName: string, hyperVCollectorName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + projectName, + hyperVCollectorName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Create or Update Hyper-V collector + * @summary Create or Update Hyper-V collector. + * @param resourceGroupName Name of the Azure Resource Group that project is part of. + * @param projectName Name of the Azure Migrate project. + * @param hyperVCollectorName Unique name of a Hyper-V collector within a project. + * @param [options] The optional parameters + * @returns Promise + */ + create(resourceGroupName: string, projectName: string, hyperVCollectorName: string, options?: Models.HyperVCollectorsCreateOptionalParams): Promise; + /** + * @param resourceGroupName Name of the Azure Resource Group that project is part of. + * @param projectName Name of the Azure Migrate project. + * @param hyperVCollectorName Unique name of a Hyper-V collector within a project. + * @param callback The callback + */ + create(resourceGroupName: string, projectName: string, hyperVCollectorName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the Azure Resource Group that project is part of. + * @param projectName Name of the Azure Migrate project. + * @param hyperVCollectorName Unique name of a Hyper-V collector within a project. + * @param options The optional parameters + * @param callback The callback + */ + create(resourceGroupName: string, projectName: string, hyperVCollectorName: string, options: Models.HyperVCollectorsCreateOptionalParams, callback: msRest.ServiceCallback): void; + create(resourceGroupName: string, projectName: string, hyperVCollectorName: string, options?: Models.HyperVCollectorsCreateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + projectName, + hyperVCollectorName, + options + }, + createOperationSpec, + callback) as Promise; + } + + /** + * Delete a Hyper-V collector from the project. + * @summary Deletes Hyper-V collector from the project. + * @param resourceGroupName Name of the Azure Resource Group that project is part of. + * @param projectName Name of the Azure Migrate project. + * @param hyperVCollectorName Unique name of a Hyper-V collector within a project. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, projectName: string, hyperVCollectorName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the Azure Resource Group that project is part of. + * @param projectName Name of the Azure Migrate project. + * @param hyperVCollectorName Unique name of a Hyper-V collector within a project. + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, projectName: string, hyperVCollectorName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the Azure Resource Group that project is part of. + * @param projectName Name of the Azure Migrate project. + * @param hyperVCollectorName Unique name of a Hyper-V collector within a project. + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, projectName: string, hyperVCollectorName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, projectName: string, hyperVCollectorName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + projectName, + hyperVCollectorName, + options + }, + deleteMethodOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listByProjectOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/hypervcollectors", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.projectName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.HyperVCollectorList, + headersMapper: Mappers.HyperVCollectorsListByProjectHeaders + }, + default: { + bodyMapper: Mappers.CloudError, + headersMapper: Mappers.HyperVCollectorsListByProjectHeaders + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/hypervcollectors/{hyperVCollectorName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.projectName, + Parameters.hyperVCollectorName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.HyperVCollector, + headersMapper: Mappers.HyperVCollectorsGetHeaders + }, + default: { + bodyMapper: Mappers.CloudError, + headersMapper: Mappers.HyperVCollectorsGetHeaders + } + }, + serializer +}; + +const createOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/hypervcollectors/{hyperVCollectorName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.projectName, + Parameters.hyperVCollectorName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: [ + "options", + "collectorBody" + ], + mapper: Mappers.HyperVCollector + }, + responses: { + 200: { + bodyMapper: Mappers.HyperVCollector, + headersMapper: Mappers.HyperVCollectorsCreateHeaders + }, + 201: { + bodyMapper: Mappers.HyperVCollector, + headersMapper: Mappers.HyperVCollectorsCreateHeaders + }, + default: { + bodyMapper: Mappers.CloudError, + headersMapper: Mappers.HyperVCollectorsCreateHeaders + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/hypervcollectors/{hyperVCollectorName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.projectName, + Parameters.hyperVCollectorName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + headersMapper: Mappers.HyperVCollectorsDeleteHeaders + }, + 204: { + headersMapper: Mappers.HyperVCollectorsDeleteHeaders + }, + default: { + bodyMapper: Mappers.CloudError, + headersMapper: Mappers.HyperVCollectorsDeleteHeaders + } + }, + serializer +}; diff --git a/sdk/migrate/arm-migrate/src/operations/importCollectors.ts b/sdk/migrate/arm-migrate/src/operations/importCollectors.ts new file mode 100644 index 000000000000..43b995aa0eb8 --- /dev/null +++ b/sdk/migrate/arm-migrate/src/operations/importCollectors.ts @@ -0,0 +1,297 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/importCollectorsMappers"; +import * as Parameters from "../models/parameters"; +import { AzureMigrateV2Context } from "../azureMigrateV2Context"; + +/** Class representing a ImportCollectors. */ +export class ImportCollectors { + private readonly client: AzureMigrateV2Context; + + /** + * Create a ImportCollectors. + * @param {AzureMigrateV2Context} client Reference to the service client. + */ + constructor(client: AzureMigrateV2Context) { + this.client = client; + } + + /** + * Get a list of Import collector. + * @summary Get a list of Import collector. + * @param resourceGroupName Name of the Azure Resource Group that project is part of. + * @param projectName Name of the Azure Migrate project. + * @param [options] The optional parameters + * @returns Promise + */ + listByProject(resourceGroupName: string, projectName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the Azure Resource Group that project is part of. + * @param projectName Name of the Azure Migrate project. + * @param callback The callback + */ + listByProject(resourceGroupName: string, projectName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the Azure Resource Group that project is part of. + * @param projectName Name of the Azure Migrate project. + * @param options The optional parameters + * @param callback The callback + */ + listByProject(resourceGroupName: string, projectName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByProject(resourceGroupName: string, projectName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + projectName, + options + }, + listByProjectOperationSpec, + callback) as Promise; + } + + /** + * Get a Import collector. + * @summary Get a Import collector. + * @param resourceGroupName Name of the Azure Resource Group that project is part of. + * @param projectName Name of the Azure Migrate project. + * @param importCollectorName Unique name of a Import collector within a project. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, projectName: string, importCollectorName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the Azure Resource Group that project is part of. + * @param projectName Name of the Azure Migrate project. + * @param importCollectorName Unique name of a Import collector within a project. + * @param callback The callback + */ + get(resourceGroupName: string, projectName: string, importCollectorName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the Azure Resource Group that project is part of. + * @param projectName Name of the Azure Migrate project. + * @param importCollectorName Unique name of a Import collector within a project. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, projectName: string, importCollectorName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, projectName: string, importCollectorName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + projectName, + importCollectorName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Create or Update Import collector + * @summary Create or Update Import collector. + * @param resourceGroupName Name of the Azure Resource Group that project is part of. + * @param projectName Name of the Azure Migrate project. + * @param importCollectorName Unique name of a Import collector within a project. + * @param [options] The optional parameters + * @returns Promise + */ + create(resourceGroupName: string, projectName: string, importCollectorName: string, options?: Models.ImportCollectorsCreateOptionalParams): Promise; + /** + * @param resourceGroupName Name of the Azure Resource Group that project is part of. + * @param projectName Name of the Azure Migrate project. + * @param importCollectorName Unique name of a Import collector within a project. + * @param callback The callback + */ + create(resourceGroupName: string, projectName: string, importCollectorName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the Azure Resource Group that project is part of. + * @param projectName Name of the Azure Migrate project. + * @param importCollectorName Unique name of a Import collector within a project. + * @param options The optional parameters + * @param callback The callback + */ + create(resourceGroupName: string, projectName: string, importCollectorName: string, options: Models.ImportCollectorsCreateOptionalParams, callback: msRest.ServiceCallback): void; + create(resourceGroupName: string, projectName: string, importCollectorName: string, options?: Models.ImportCollectorsCreateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + projectName, + importCollectorName, + options + }, + createOperationSpec, + callback) as Promise; + } + + /** + * Delete a Import collector from the project. + * @summary Deletes Import collector from the project. + * @param resourceGroupName Name of the Azure Resource Group that project is part of. + * @param projectName Name of the Azure Migrate project. + * @param importCollectorName Unique name of a Import collector within a project. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, projectName: string, importCollectorName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the Azure Resource Group that project is part of. + * @param projectName Name of the Azure Migrate project. + * @param importCollectorName Unique name of a Import collector within a project. + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, projectName: string, importCollectorName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the Azure Resource Group that project is part of. + * @param projectName Name of the Azure Migrate project. + * @param importCollectorName Unique name of a Import collector within a project. + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, projectName: string, importCollectorName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, projectName: string, importCollectorName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + projectName, + importCollectorName, + options + }, + deleteMethodOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listByProjectOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/importcollectors", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.projectName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ImportCollectorList, + headersMapper: Mappers.ImportCollectorsListByProjectHeaders + }, + default: { + bodyMapper: Mappers.CloudError, + headersMapper: Mappers.ImportCollectorsListByProjectHeaders + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/importcollectors/{importCollectorName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.projectName, + Parameters.importCollectorName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ImportCollector, + headersMapper: Mappers.ImportCollectorsGetHeaders + }, + default: { + bodyMapper: Mappers.CloudError, + headersMapper: Mappers.ImportCollectorsGetHeaders + } + }, + serializer +}; + +const createOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/importcollectors/{importCollectorName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.projectName, + Parameters.importCollectorName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: [ + "options", + "collectorBody" + ], + mapper: Mappers.ImportCollector + }, + responses: { + 200: { + bodyMapper: Mappers.ImportCollector, + headersMapper: Mappers.ImportCollectorsCreateHeaders + }, + 201: { + bodyMapper: Mappers.ImportCollector, + headersMapper: Mappers.ImportCollectorsCreateHeaders + }, + default: { + bodyMapper: Mappers.CloudError, + headersMapper: Mappers.ImportCollectorsCreateHeaders + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/importcollectors/{importCollectorName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.projectName, + Parameters.importCollectorName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + headersMapper: Mappers.ImportCollectorsDeleteHeaders + }, + 204: { + headersMapper: Mappers.ImportCollectorsDeleteHeaders + }, + default: { + bodyMapper: Mappers.CloudError, + headersMapper: Mappers.ImportCollectorsDeleteHeaders + } + }, + serializer +}; diff --git a/sdk/migrate/arm-migrate/src/operations/index.ts b/sdk/migrate/arm-migrate/src/operations/index.ts index f44d598ea6b9..bbf3cf981107 100644 --- a/sdk/migrate/arm-migrate/src/operations/index.ts +++ b/sdk/migrate/arm-migrate/src/operations/index.ts @@ -1,18 +1,21 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ -export * from "./location"; -export * from "./assessmentOptions"; export * from "./projects"; export * from "./machines"; export * from "./groups"; export * from "./assessments"; export * from "./assessedMachines"; +export * from "./hyperVCollectors"; +export * from "./serverCollectors"; +export * from "./vMwareCollectors"; +export * from "./importCollectors"; +export * from "./privateEndpointConnectionOperations"; +export * from "./privateLinkResourceOperations"; export * from "./operations"; diff --git a/sdk/migrate/arm-migrate/src/operations/location.ts b/sdk/migrate/arm-migrate/src/operations/location.ts deleted file mode 100644 index 16e5e0b3c27e..000000000000 --- a/sdk/migrate/arm-migrate/src/operations/location.ts +++ /dev/null @@ -1,93 +0,0 @@ -/* - * 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. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as Models from "../models"; -import * as Mappers from "../models/locationMappers"; -import * as Parameters from "../models/parameters"; -import { AzureMigrateContext } from "../azureMigrateContext"; - -/** Class representing a Location. */ -export class Location { - private readonly client: AzureMigrateContext; - - /** - * Create a Location. - * @param {AzureMigrateContext} client Reference to the service client. - */ - constructor(client: AzureMigrateContext) { - this.client = client; - } - - /** - * Checks whether the project name is available in the specified region. - * @param locationName The desired region for the name check. - * @param parameters Properties needed to check the availability of a name. - * @param [options] The optional parameters - * @returns Promise - */ - checkNameAvailability(locationName: string, parameters: Models.CheckNameAvailabilityParameters, options?: msRest.RequestOptionsBase): Promise; - /** - * @param locationName The desired region for the name check. - * @param parameters Properties needed to check the availability of a name. - * @param callback The callback - */ - checkNameAvailability(locationName: string, parameters: Models.CheckNameAvailabilityParameters, callback: msRest.ServiceCallback): void; - /** - * @param locationName The desired region for the name check. - * @param parameters Properties needed to check the availability of a name. - * @param options The optional parameters - * @param callback The callback - */ - checkNameAvailability(locationName: string, parameters: Models.CheckNameAvailabilityParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - checkNameAvailability(locationName: string, parameters: Models.CheckNameAvailabilityParameters, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - locationName, - parameters, - options - }, - checkNameAvailabilityOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const checkNameAvailabilityOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Migrate/locations/{locationName}/checkNameAvailability", - urlParameters: [ - Parameters.locationName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.CheckNameAvailabilityParameters, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.CheckNameAvailabilityResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/migrate/arm-migrate/src/operations/machines.ts b/sdk/migrate/arm-migrate/src/operations/machines.ts index bc4a42f22626..28c62eba8b58 100644 --- a/sdk/migrate/arm-migrate/src/operations/machines.ts +++ b/sdk/migrate/arm-migrate/src/operations/machines.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -12,17 +11,17 @@ import * as msRest from "@azure/ms-rest-js"; import * as Models from "../models"; import * as Mappers from "../models/machinesMappers"; import * as Parameters from "../models/parameters"; -import { AzureMigrateContext } from "../azureMigrateContext"; +import { AzureMigrateV2Context } from "../azureMigrateV2Context"; /** Class representing a Machines. */ export class Machines { - private readonly client: AzureMigrateContext; + private readonly client: AzureMigrateV2Context; /** * Create a Machines. - * @param {AzureMigrateContext} client Reference to the service client. + * @param {AzureMigrateV2Context} client Reference to the service client. */ - constructor(client: AzureMigrateContext) { + constructor(client: AzureMigrateV2Context) { this.client = client; } @@ -97,13 +96,43 @@ export class Machines { getOperationSpec, callback) as Promise; } + + /** + * Get data of all the machines available in the project. Returns a json array of objects of type + * 'machine' defined in Models section. + * @summary Get all machines in the project + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByProjectNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByProjectNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByProjectNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByProjectNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByProjectNextOperationSpec, + callback) as Promise; + } } // Operation Specifications const serializer = new msRest.Serializer(Mappers); const listByProjectOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/projects/{projectName}/machines", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/machines", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -121,7 +150,8 @@ const listByProjectOperationSpec: msRest.OperationSpec = { headersMapper: Mappers.MachinesListByProjectHeaders }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.CloudError, + headersMapper: Mappers.MachinesListByProjectHeaders } }, serializer @@ -129,7 +159,7 @@ const listByProjectOperationSpec: msRest.OperationSpec = { const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/projects/{projectName}/machines/{machineName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/machines/{machineName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -148,7 +178,34 @@ const getOperationSpec: msRest.OperationSpec = { headersMapper: Mappers.MachinesGetHeaders }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.CloudError, + headersMapper: Mappers.MachinesGetHeaders + } + }, + serializer +}; + +const listByProjectNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.MachineResultList, + headersMapper: Mappers.MachinesListByProjectHeaders + }, + default: { + bodyMapper: Mappers.CloudError, + headersMapper: Mappers.MachinesListByProjectHeaders } }, serializer diff --git a/sdk/migrate/arm-migrate/src/operations/operations.ts b/sdk/migrate/arm-migrate/src/operations/operations.ts index 225b0aa45391..6fdc7baed2b3 100644 --- a/sdk/migrate/arm-migrate/src/operations/operations.ts +++ b/sdk/migrate/arm-migrate/src/operations/operations.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -12,17 +11,17 @@ import * as msRest from "@azure/ms-rest-js"; import * as Models from "../models"; import * as Mappers from "../models/operationsMappers"; import * as Parameters from "../models/parameters"; -import { AzureMigrateContext } from "../azureMigrateContext"; +import { AzureMigrateV2Context } from "../azureMigrateV2Context"; /** Class representing a Operations. */ export class Operations { - private readonly client: AzureMigrateContext; + private readonly client: AzureMigrateV2Context; /** * Create a Operations. - * @param {AzureMigrateContext} client Reference to the service client. + * @param {AzureMigrateV2Context} client Reference to the service client. */ - constructor(client: AzureMigrateContext) { + constructor(client: AzureMigrateV2Context) { this.client = client; } diff --git a/sdk/migrate/arm-migrate/src/operations/privateEndpointConnectionOperations.ts b/sdk/migrate/arm-migrate/src/operations/privateEndpointConnectionOperations.ts new file mode 100644 index 000000000000..8cae5f4508c2 --- /dev/null +++ b/sdk/migrate/arm-migrate/src/operations/privateEndpointConnectionOperations.ts @@ -0,0 +1,308 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/privateEndpointConnectionOperationsMappers"; +import * as Parameters from "../models/parameters"; +import { AzureMigrateV2Context } from "../azureMigrateV2Context"; + +/** Class representing a PrivateEndpointConnectionOperations. */ +export class PrivateEndpointConnectionOperations { + private readonly client: AzureMigrateV2Context; + + /** + * Create a PrivateEndpointConnectionOperations. + * @param {AzureMigrateV2Context} client Reference to the service client. + */ + constructor(client: AzureMigrateV2Context) { + this.client = client; + } + + /** + * Get all private endpoint connections in the project. Returns a json array of objects of type + * 'privateEndpointConnections' as specified in the Models section. + * @summary Get all private endpoint connections + * @param resourceGroupName Name of the Azure Resource Group that project is part of. + * @param projectName Name of the Azure Migrate project. + * @param [options] The optional parameters + * @returns Promise + */ + listByProject(resourceGroupName: string, projectName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the Azure Resource Group that project is part of. + * @param projectName Name of the Azure Migrate project. + * @param callback The callback + */ + listByProject(resourceGroupName: string, projectName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the Azure Resource Group that project is part of. + * @param projectName Name of the Azure Migrate project. + * @param options The optional parameters + * @param callback The callback + */ + listByProject(resourceGroupName: string, projectName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByProject(resourceGroupName: string, projectName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + projectName, + options + }, + listByProjectOperationSpec, + callback) as Promise; + } + + /** + * Get information related to a specific private endpoint connection in the project. Returns a json + * object of type 'privateEndpointConnections' as specified in the models section. + * @summary Get a private endpoint connection in the project. + * @param resourceGroupName Name of the Azure Resource Group that project is part of. + * @param projectName Name of the Azure Migrate project. + * @param privateEndpointConnectionName Unique name of a private endpoint connection within a + * project. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, projectName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the Azure Resource Group that project is part of. + * @param projectName Name of the Azure Migrate project. + * @param privateEndpointConnectionName Unique name of a private endpoint connection within a + * project. + * @param callback The callback + */ + get(resourceGroupName: string, projectName: string, privateEndpointConnectionName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the Azure Resource Group that project is part of. + * @param projectName Name of the Azure Migrate project. + * @param privateEndpointConnectionName Unique name of a private endpoint connection within a + * project. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, projectName: string, privateEndpointConnectionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, projectName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + projectName, + privateEndpointConnectionName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Update a specific private endpoint connection in the project. + * @summary Update a private endpoint connection in the project. + * @param resourceGroupName Name of the Azure Resource Group that project is part of. + * @param projectName Name of the Azure Migrate project. + * @param privateEndpointConnectionName Unique name of a private endpoint connection within a + * project. + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, projectName: string, privateEndpointConnectionName: string, options?: Models.PrivateEndpointConnectionUpdateOptionalParams): Promise; + /** + * @param resourceGroupName Name of the Azure Resource Group that project is part of. + * @param projectName Name of the Azure Migrate project. + * @param privateEndpointConnectionName Unique name of a private endpoint connection within a + * project. + * @param callback The callback + */ + update(resourceGroupName: string, projectName: string, privateEndpointConnectionName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the Azure Resource Group that project is part of. + * @param projectName Name of the Azure Migrate project. + * @param privateEndpointConnectionName Unique name of a private endpoint connection within a + * project. + * @param options The optional parameters + * @param callback The callback + */ + update(resourceGroupName: string, projectName: string, privateEndpointConnectionName: string, options: Models.PrivateEndpointConnectionUpdateOptionalParams, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, projectName: string, privateEndpointConnectionName: string, options?: Models.PrivateEndpointConnectionUpdateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + projectName, + privateEndpointConnectionName, + options + }, + updateOperationSpec, + callback) as Promise; + } + + /** + * Delete the private endpoint connection from the project. T. + * @summary Delete the private endpoint connection + * @param resourceGroupName Name of the Azure Resource Group that project is part of. + * @param projectName Name of the Azure Migrate project. + * @param privateEndpointConnectionName Unique name of a private endpoint connection within a + * project. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, projectName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the Azure Resource Group that project is part of. + * @param projectName Name of the Azure Migrate project. + * @param privateEndpointConnectionName Unique name of a private endpoint connection within a + * project. + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, projectName: string, privateEndpointConnectionName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the Azure Resource Group that project is part of. + * @param projectName Name of the Azure Migrate project. + * @param privateEndpointConnectionName Unique name of a private endpoint connection within a + * project. + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, projectName: string, privateEndpointConnectionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, projectName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + projectName, + privateEndpointConnectionName, + options + }, + deleteMethodOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listByProjectOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentprojects/{projectName}/privateEndpointConnections", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.projectName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PrivateEndpointConnectionCollection, + headersMapper: Mappers.PrivateEndpointConnectionListByProjectHeaders + }, + default: { + bodyMapper: Mappers.CloudError, + headersMapper: Mappers.PrivateEndpointConnectionListByProjectHeaders + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentprojects/{projectName}/privateEndpointConnections/{privateEndpointConnectionName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.projectName, + Parameters.privateEndpointConnectionName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PrivateEndpointConnection, + headersMapper: Mappers.PrivateEndpointConnectionGetHeaders + }, + default: { + bodyMapper: Mappers.CloudError, + headersMapper: Mappers.PrivateEndpointConnectionGetHeaders + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentprojects/{projectName}/privateEndpointConnections/{privateEndpointConnectionName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.projectName, + Parameters.privateEndpointConnectionName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: [ + "options", + "privateEndpointConnectionBody" + ], + mapper: Mappers.PrivateEndpointConnection + }, + responses: { + 200: { + bodyMapper: Mappers.PrivateEndpointConnection, + headersMapper: Mappers.PrivateEndpointConnectionUpdateHeaders + }, + 202: { + bodyMapper: Mappers.PrivateEndpointConnection, + headersMapper: Mappers.PrivateEndpointConnectionUpdateHeaders + }, + default: { + bodyMapper: Mappers.CloudError, + headersMapper: Mappers.PrivateEndpointConnectionUpdateHeaders + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentprojects/{projectName}/privateEndpointConnections/{privateEndpointConnectionName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.projectName, + Parameters.privateEndpointConnectionName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + headersMapper: Mappers.PrivateEndpointConnectionDeleteHeaders + }, + 204: { + headersMapper: Mappers.PrivateEndpointConnectionDeleteHeaders + }, + default: { + bodyMapper: Mappers.CloudError, + headersMapper: Mappers.PrivateEndpointConnectionDeleteHeaders + } + }, + serializer +}; diff --git a/sdk/migrate/arm-migrate/src/operations/privateLinkResourceOperations.ts b/sdk/migrate/arm-migrate/src/operations/privateLinkResourceOperations.ts new file mode 100644 index 000000000000..622cb89bcc5d --- /dev/null +++ b/sdk/migrate/arm-migrate/src/operations/privateLinkResourceOperations.ts @@ -0,0 +1,156 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/privateLinkResourceOperationsMappers"; +import * as Parameters from "../models/parameters"; +import { AzureMigrateV2Context } from "../azureMigrateV2Context"; + +/** Class representing a PrivateLinkResourceOperations. */ +export class PrivateLinkResourceOperations { + private readonly client: AzureMigrateV2Context; + + /** + * Create a PrivateLinkResourceOperations. + * @param {AzureMigrateV2Context} client Reference to the service client. + */ + constructor(client: AzureMigrateV2Context) { + this.client = client; + } + + /** + * Get information related to a specific private Link Resource in the project. Returns a json + * object of type 'privateLinkResources' as specified in the models section. + * @summary Get a specific private Link Resource. + * @param resourceGroupName Name of the Azure Resource Group that project is part of. + * @param projectName Name of the Azure Migrate project. + * @param privateLinkResourceName Unique name of a private link resource within a project. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, projectName: string, privateLinkResourceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the Azure Resource Group that project is part of. + * @param projectName Name of the Azure Migrate project. + * @param privateLinkResourceName Unique name of a private link resource within a project. + * @param callback The callback + */ + get(resourceGroupName: string, projectName: string, privateLinkResourceName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the Azure Resource Group that project is part of. + * @param projectName Name of the Azure Migrate project. + * @param privateLinkResourceName Unique name of a private link resource within a project. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, projectName: string, privateLinkResourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, projectName: string, privateLinkResourceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + projectName, + privateLinkResourceName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Get all private link resources created in the project. Returns a json array of objects of type + * 'privateLinkResources' as specified in the Models section. + * @summary Get all private link resources + * @param resourceGroupName Name of the Azure Resource Group that project is part of. + * @param projectName Name of the Azure Migrate project. + * @param [options] The optional parameters + * @returns Promise + */ + listByProject(resourceGroupName: string, projectName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the Azure Resource Group that project is part of. + * @param projectName Name of the Azure Migrate project. + * @param callback The callback + */ + listByProject(resourceGroupName: string, projectName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the Azure Resource Group that project is part of. + * @param projectName Name of the Azure Migrate project. + * @param options The optional parameters + * @param callback The callback + */ + listByProject(resourceGroupName: string, projectName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByProject(resourceGroupName: string, projectName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + projectName, + options + }, + listByProjectOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentprojects/{projectName}/privateLinkResources/{privateLinkResourceName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.projectName, + Parameters.privateLinkResourceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PrivateLinkResource, + headersMapper: Mappers.PrivateLinkResourceGetHeaders + }, + default: { + bodyMapper: Mappers.CloudError, + headersMapper: Mappers.PrivateLinkResourceGetHeaders + } + }, + serializer +}; + +const listByProjectOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentprojects/{projectName}/privateLinkResources", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.projectName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PrivateLinkResourceCollection, + headersMapper: Mappers.PrivateLinkResourceListByProjectHeaders + }, + default: { + bodyMapper: Mappers.CloudError, + headersMapper: Mappers.PrivateLinkResourceListByProjectHeaders + } + }, + serializer +}; diff --git a/sdk/migrate/arm-migrate/src/operations/projects.ts b/sdk/migrate/arm-migrate/src/operations/projects.ts index 1f9b4eabb1b4..5b9a6f91a92c 100644 --- a/sdk/migrate/arm-migrate/src/operations/projects.ts +++ b/sdk/migrate/arm-migrate/src/operations/projects.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -12,17 +11,17 @@ import * as msRest from "@azure/ms-rest-js"; import * as Models from "../models"; import * as Mappers from "../models/projectsMappers"; import * as Parameters from "../models/parameters"; -import { AzureMigrateContext } from "../azureMigrateContext"; +import { AzureMigrateV2Context } from "../azureMigrateV2Context"; /** Class representing a Projects. */ export class Projects { - private readonly client: AzureMigrateContext; + private readonly client: AzureMigrateV2Context; /** * Create a Projects. - * @param {AzureMigrateContext} client Reference to the service client. + * @param {AzureMigrateV2Context} client Reference to the service client. */ - constructor(client: AzureMigrateContext) { + constructor(client: AzureMigrateV2Context) { this.client = client; } @@ -56,28 +55,28 @@ export class Projects { * @summary Get all projects. * @param resourceGroupName Name of the Azure Resource Group that project is part of. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; + list(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName Name of the Azure Resource Group that project is part of. * @param callback The callback */ - listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName Name of the Azure Resource Group that project is part of. * @param options The optional parameters * @param callback The callback */ - listByResourceGroup(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + list(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec, - callback) as Promise; + listOperationSpec, + callback) as Promise; } /** @@ -214,36 +213,131 @@ export class Projects { } /** - * Gets the Log Analytics Workspace ID and Primary Key for the specified project. - * @summary Get shared keys for the project. + * Get all available options for the properties of an assessment on a project. + * @summary Get all available options for the properties of an assessment on a project. * @param resourceGroupName Name of the Azure Resource Group that project is part of. * @param projectName Name of the Azure Migrate project. + * @param assessmentOptionsName Name of the assessment options. The only name accepted in default. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - getKeys(resourceGroupName: string, projectName: string, options?: msRest.RequestOptionsBase): Promise; + assessmentOptionsMethod(resourceGroupName: string, projectName: string, assessmentOptionsName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName Name of the Azure Resource Group that project is part of. * @param projectName Name of the Azure Migrate project. + * @param assessmentOptionsName Name of the assessment options. The only name accepted in default. * @param callback The callback */ - getKeys(resourceGroupName: string, projectName: string, callback: msRest.ServiceCallback): void; + assessmentOptionsMethod(resourceGroupName: string, projectName: string, assessmentOptionsName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName Name of the Azure Resource Group that project is part of. * @param projectName Name of the Azure Migrate project. + * @param assessmentOptionsName Name of the assessment options. The only name accepted in default. * @param options The optional parameters * @param callback The callback */ - getKeys(resourceGroupName: string, projectName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getKeys(resourceGroupName: string, projectName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + assessmentOptionsMethod(resourceGroupName: string, projectName: string, assessmentOptionsName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + assessmentOptionsMethod(resourceGroupName: string, projectName: string, assessmentOptionsName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, projectName, + assessmentOptionsName, options }, - getKeysOperationSpec, - callback) as Promise; + assessmentOptionsMethodOperationSpec, + callback) as Promise; + } + + /** + * Gets list of all available options for the properties of an assessment on a project. + * @summary Gets list of all available options for the properties of an assessment on a project. + * @param resourceGroupName Name of the Azure Resource Group that project is part of. + * @param projectName Name of the Azure Migrate project. + * @param [options] The optional parameters + * @returns Promise + */ + assessmentOptionsList(resourceGroupName: string, projectName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the Azure Resource Group that project is part of. + * @param projectName Name of the Azure Migrate project. + * @param callback The callback + */ + assessmentOptionsList(resourceGroupName: string, projectName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the Azure Resource Group that project is part of. + * @param projectName Name of the Azure Migrate project. + * @param options The optional parameters + * @param callback The callback + */ + assessmentOptionsList(resourceGroupName: string, projectName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + assessmentOptionsList(resourceGroupName: string, projectName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + projectName, + options + }, + assessmentOptionsListOperationSpec, + callback) as Promise; + } + + /** + * Get all the projects in the subscription. + * @summary Get all projects. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listBySubscriptionNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listBySubscriptionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listBySubscriptionNextOperationSpec, + callback) as Promise; + } + + /** + * Get all the projects in the resource group. + * @summary Get all projects. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; } } @@ -251,7 +345,7 @@ export class Projects { const serializer = new msRest.Serializer(Mappers); const listBySubscriptionOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Migrate/projects", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Migrate/assessmentProjects", urlParameters: [ Parameters.subscriptionId ], @@ -267,15 +361,16 @@ const listBySubscriptionOperationSpec: msRest.OperationSpec = { headersMapper: Mappers.ProjectsListBySubscriptionHeaders }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.CloudError, + headersMapper: Mappers.ProjectsListBySubscriptionHeaders } }, serializer }; -const listByResourceGroupOperationSpec: msRest.OperationSpec = { +const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Migrate/projects", + path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName @@ -289,10 +384,11 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { responses: { 200: { bodyMapper: Mappers.ProjectResultList, - headersMapper: Mappers.ProjectsListByResourceGroupHeaders + headersMapper: Mappers.ProjectsListHeaders }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.CloudError, + headersMapper: Mappers.ProjectsListHeaders } }, serializer @@ -300,7 +396,7 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Migrate/projects/{projectName}", + path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -318,7 +414,8 @@ const getOperationSpec: msRest.OperationSpec = { headersMapper: Mappers.ProjectsGetHeaders }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.CloudError, + headersMapper: Mappers.ProjectsGetHeaders } }, serializer @@ -326,7 +423,7 @@ const getOperationSpec: msRest.OperationSpec = { const createOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Migrate/projects/{projectName}", + path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -355,7 +452,8 @@ const createOperationSpec: msRest.OperationSpec = { headersMapper: Mappers.ProjectsCreateHeaders }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.CloudError, + headersMapper: Mappers.ProjectsCreateHeaders } }, serializer @@ -363,7 +461,7 @@ const createOperationSpec: msRest.OperationSpec = { const updateOperationSpec: msRest.OperationSpec = { httpMethod: "PATCH", - path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Migrate/projects/{projectName}", + path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -388,7 +486,8 @@ const updateOperationSpec: msRest.OperationSpec = { headersMapper: Mappers.ProjectsUpdateHeaders }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.CloudError, + headersMapper: Mappers.ProjectsUpdateHeaders } }, serializer @@ -396,7 +495,7 @@ const updateOperationSpec: msRest.OperationSpec = { const deleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Migrate/projects/{projectName}", + path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -412,16 +511,48 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { 200: { headersMapper: Mappers.ProjectsDeleteHeaders }, + 204: { + headersMapper: Mappers.ProjectsDeleteHeaders + }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.CloudError, + headersMapper: Mappers.ProjectsDeleteHeaders } }, serializer }; -const getKeysOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Migrate/projects/{projectName}/keys", +const assessmentOptionsMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/assessmentOptions/{assessmentOptionsName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.projectName, + Parameters.assessmentOptionsName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AssessmentOptions, + headersMapper: Mappers.ProjectsAssessmentOptionsHeaders + }, + default: { + bodyMapper: Mappers.CloudError, + headersMapper: Mappers.ProjectsAssessmentOptionsHeaders + } + }, + serializer +}; + +const assessmentOptionsListOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/assessmentOptions", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -435,11 +566,64 @@ const getKeysOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.ProjectKey, - headersMapper: Mappers.ProjectsGetKeysHeaders + bodyMapper: Mappers.AssessmentOptionsResultList, + headersMapper: Mappers.ProjectsAssessmentOptionsListHeaders + }, + default: { + bodyMapper: Mappers.CloudError, + headersMapper: Mappers.ProjectsAssessmentOptionsListHeaders + } + }, + serializer +}; + +const listBySubscriptionNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ProjectResultList, + headersMapper: Mappers.ProjectsListBySubscriptionHeaders + }, + default: { + bodyMapper: Mappers.CloudError, + headersMapper: Mappers.ProjectsListBySubscriptionHeaders + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ProjectResultList, + headersMapper: Mappers.ProjectsListHeaders }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.CloudError, + headersMapper: Mappers.ProjectsListHeaders } }, serializer diff --git a/sdk/migrate/arm-migrate/src/operations/serverCollectors.ts b/sdk/migrate/arm-migrate/src/operations/serverCollectors.ts new file mode 100644 index 000000000000..9e23d3f7ad56 --- /dev/null +++ b/sdk/migrate/arm-migrate/src/operations/serverCollectors.ts @@ -0,0 +1,297 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/serverCollectorsMappers"; +import * as Parameters from "../models/parameters"; +import { AzureMigrateV2Context } from "../azureMigrateV2Context"; + +/** Class representing a ServerCollectors. */ +export class ServerCollectors { + private readonly client: AzureMigrateV2Context; + + /** + * Create a ServerCollectors. + * @param {AzureMigrateV2Context} client Reference to the service client. + */ + constructor(client: AzureMigrateV2Context) { + this.client = client; + } + + /** + * Get a list of Server collector. + * @summary Get a list of Server collector. + * @param resourceGroupName Name of the Azure Resource Group that project is part of. + * @param projectName Name of the Azure Migrate project. + * @param [options] The optional parameters + * @returns Promise + */ + listByProject(resourceGroupName: string, projectName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the Azure Resource Group that project is part of. + * @param projectName Name of the Azure Migrate project. + * @param callback The callback + */ + listByProject(resourceGroupName: string, projectName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the Azure Resource Group that project is part of. + * @param projectName Name of the Azure Migrate project. + * @param options The optional parameters + * @param callback The callback + */ + listByProject(resourceGroupName: string, projectName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByProject(resourceGroupName: string, projectName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + projectName, + options + }, + listByProjectOperationSpec, + callback) as Promise; + } + + /** + * Get a Server collector. + * @summary Get a Server collector. + * @param resourceGroupName Name of the Azure Resource Group that project is part of. + * @param projectName Name of the Azure Migrate project. + * @param serverCollectorName Unique name of a Server collector within a project. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, projectName: string, serverCollectorName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the Azure Resource Group that project is part of. + * @param projectName Name of the Azure Migrate project. + * @param serverCollectorName Unique name of a Server collector within a project. + * @param callback The callback + */ + get(resourceGroupName: string, projectName: string, serverCollectorName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the Azure Resource Group that project is part of. + * @param projectName Name of the Azure Migrate project. + * @param serverCollectorName Unique name of a Server collector within a project. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, projectName: string, serverCollectorName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, projectName: string, serverCollectorName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + projectName, + serverCollectorName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Create or Update Server collector + * @summary Create or Update Server collector. + * @param resourceGroupName Name of the Azure Resource Group that project is part of. + * @param projectName Name of the Azure Migrate project. + * @param serverCollectorName Unique name of a Server collector within a project. + * @param [options] The optional parameters + * @returns Promise + */ + create(resourceGroupName: string, projectName: string, serverCollectorName: string, options?: Models.ServerCollectorsCreateOptionalParams): Promise; + /** + * @param resourceGroupName Name of the Azure Resource Group that project is part of. + * @param projectName Name of the Azure Migrate project. + * @param serverCollectorName Unique name of a Server collector within a project. + * @param callback The callback + */ + create(resourceGroupName: string, projectName: string, serverCollectorName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the Azure Resource Group that project is part of. + * @param projectName Name of the Azure Migrate project. + * @param serverCollectorName Unique name of a Server collector within a project. + * @param options The optional parameters + * @param callback The callback + */ + create(resourceGroupName: string, projectName: string, serverCollectorName: string, options: Models.ServerCollectorsCreateOptionalParams, callback: msRest.ServiceCallback): void; + create(resourceGroupName: string, projectName: string, serverCollectorName: string, options?: Models.ServerCollectorsCreateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + projectName, + serverCollectorName, + options + }, + createOperationSpec, + callback) as Promise; + } + + /** + * Delete a Server collector from the project. + * @summary Deletes Server collector from the project. + * @param resourceGroupName Name of the Azure Resource Group that project is part of. + * @param projectName Name of the Azure Migrate project. + * @param serverCollectorName Unique name of a Server collector within a project. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, projectName: string, serverCollectorName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the Azure Resource Group that project is part of. + * @param projectName Name of the Azure Migrate project. + * @param serverCollectorName Unique name of a Server collector within a project. + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, projectName: string, serverCollectorName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the Azure Resource Group that project is part of. + * @param projectName Name of the Azure Migrate project. + * @param serverCollectorName Unique name of a Server collector within a project. + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, projectName: string, serverCollectorName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, projectName: string, serverCollectorName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + projectName, + serverCollectorName, + options + }, + deleteMethodOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listByProjectOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/servercollectors", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.projectName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ServerCollectorList, + headersMapper: Mappers.ServerCollectorsListByProjectHeaders + }, + default: { + bodyMapper: Mappers.CloudError, + headersMapper: Mappers.ServerCollectorsListByProjectHeaders + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/servercollectors/{serverCollectorName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.projectName, + Parameters.serverCollectorName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ServerCollector, + headersMapper: Mappers.ServerCollectorsGetHeaders + }, + default: { + bodyMapper: Mappers.CloudError, + headersMapper: Mappers.ServerCollectorsGetHeaders + } + }, + serializer +}; + +const createOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/servercollectors/{serverCollectorName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.projectName, + Parameters.serverCollectorName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: [ + "options", + "collectorBody" + ], + mapper: Mappers.ServerCollector + }, + responses: { + 200: { + bodyMapper: Mappers.ServerCollector, + headersMapper: Mappers.ServerCollectorsCreateHeaders + }, + 201: { + bodyMapper: Mappers.ServerCollector, + headersMapper: Mappers.ServerCollectorsCreateHeaders + }, + default: { + bodyMapper: Mappers.CloudError, + headersMapper: Mappers.ServerCollectorsCreateHeaders + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/servercollectors/{serverCollectorName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.projectName, + Parameters.serverCollectorName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + headersMapper: Mappers.ServerCollectorsDeleteHeaders + }, + 204: { + headersMapper: Mappers.ServerCollectorsDeleteHeaders + }, + default: { + bodyMapper: Mappers.CloudError, + headersMapper: Mappers.ServerCollectorsDeleteHeaders + } + }, + serializer +}; diff --git a/sdk/migrate/arm-migrate/src/operations/vMwareCollectors.ts b/sdk/migrate/arm-migrate/src/operations/vMwareCollectors.ts new file mode 100644 index 000000000000..0f6a13330f11 --- /dev/null +++ b/sdk/migrate/arm-migrate/src/operations/vMwareCollectors.ts @@ -0,0 +1,297 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/vMwareCollectorsMappers"; +import * as Parameters from "../models/parameters"; +import { AzureMigrateV2Context } from "../azureMigrateV2Context"; + +/** Class representing a VMwareCollectors. */ +export class VMwareCollectors { + private readonly client: AzureMigrateV2Context; + + /** + * Create a VMwareCollectors. + * @param {AzureMigrateV2Context} client Reference to the service client. + */ + constructor(client: AzureMigrateV2Context) { + this.client = client; + } + + /** + * Get a list of VMware collector. + * @summary Get a list of VMware collector. + * @param resourceGroupName Name of the Azure Resource Group that project is part of. + * @param projectName Name of the Azure Migrate project. + * @param [options] The optional parameters + * @returns Promise + */ + listByProject(resourceGroupName: string, projectName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the Azure Resource Group that project is part of. + * @param projectName Name of the Azure Migrate project. + * @param callback The callback + */ + listByProject(resourceGroupName: string, projectName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the Azure Resource Group that project is part of. + * @param projectName Name of the Azure Migrate project. + * @param options The optional parameters + * @param callback The callback + */ + listByProject(resourceGroupName: string, projectName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByProject(resourceGroupName: string, projectName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + projectName, + options + }, + listByProjectOperationSpec, + callback) as Promise; + } + + /** + * Get a VMware collector. + * @summary Get a VMware collector. + * @param resourceGroupName Name of the Azure Resource Group that project is part of. + * @param projectName Name of the Azure Migrate project. + * @param vmWareCollectorName Unique name of a VMware collector within a project. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, projectName: string, vmWareCollectorName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the Azure Resource Group that project is part of. + * @param projectName Name of the Azure Migrate project. + * @param vmWareCollectorName Unique name of a VMware collector within a project. + * @param callback The callback + */ + get(resourceGroupName: string, projectName: string, vmWareCollectorName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the Azure Resource Group that project is part of. + * @param projectName Name of the Azure Migrate project. + * @param vmWareCollectorName Unique name of a VMware collector within a project. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, projectName: string, vmWareCollectorName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, projectName: string, vmWareCollectorName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + projectName, + vmWareCollectorName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Create or Update VMware collector + * @summary Create or Update VMware collector. + * @param resourceGroupName Name of the Azure Resource Group that project is part of. + * @param projectName Name of the Azure Migrate project. + * @param vmWareCollectorName Unique name of a VMware collector within a project. + * @param [options] The optional parameters + * @returns Promise + */ + create(resourceGroupName: string, projectName: string, vmWareCollectorName: string, options?: Models.VMwareCollectorsCreateOptionalParams): Promise; + /** + * @param resourceGroupName Name of the Azure Resource Group that project is part of. + * @param projectName Name of the Azure Migrate project. + * @param vmWareCollectorName Unique name of a VMware collector within a project. + * @param callback The callback + */ + create(resourceGroupName: string, projectName: string, vmWareCollectorName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the Azure Resource Group that project is part of. + * @param projectName Name of the Azure Migrate project. + * @param vmWareCollectorName Unique name of a VMware collector within a project. + * @param options The optional parameters + * @param callback The callback + */ + create(resourceGroupName: string, projectName: string, vmWareCollectorName: string, options: Models.VMwareCollectorsCreateOptionalParams, callback: msRest.ServiceCallback): void; + create(resourceGroupName: string, projectName: string, vmWareCollectorName: string, options?: Models.VMwareCollectorsCreateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + projectName, + vmWareCollectorName, + options + }, + createOperationSpec, + callback) as Promise; + } + + /** + * Delete a VMware collector from the project. + * @summary Deletes VMware collector from the project. + * @param resourceGroupName Name of the Azure Resource Group that project is part of. + * @param projectName Name of the Azure Migrate project. + * @param vmWareCollectorName Unique name of a VMware collector within a project. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, projectName: string, vmWareCollectorName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the Azure Resource Group that project is part of. + * @param projectName Name of the Azure Migrate project. + * @param vmWareCollectorName Unique name of a VMware collector within a project. + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, projectName: string, vmWareCollectorName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the Azure Resource Group that project is part of. + * @param projectName Name of the Azure Migrate project. + * @param vmWareCollectorName Unique name of a VMware collector within a project. + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, projectName: string, vmWareCollectorName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, projectName: string, vmWareCollectorName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + projectName, + vmWareCollectorName, + options + }, + deleteMethodOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listByProjectOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/vmwarecollectors", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.projectName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.VMwareCollectorList, + headersMapper: Mappers.VMwareCollectorsListByProjectHeaders + }, + default: { + bodyMapper: Mappers.CloudError, + headersMapper: Mappers.VMwareCollectorsListByProjectHeaders + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/vmwarecollectors/{vmWareCollectorName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.projectName, + Parameters.vmWareCollectorName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.VMwareCollector, + headersMapper: Mappers.VMwareCollectorsGetHeaders + }, + default: { + bodyMapper: Mappers.CloudError, + headersMapper: Mappers.VMwareCollectorsGetHeaders + } + }, + serializer +}; + +const createOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/vmwarecollectors/{vmWareCollectorName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.projectName, + Parameters.vmWareCollectorName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: [ + "options", + "collectorBody" + ], + mapper: Mappers.VMwareCollector + }, + responses: { + 200: { + bodyMapper: Mappers.VMwareCollector, + headersMapper: Mappers.VMwareCollectorsCreateHeaders + }, + 201: { + bodyMapper: Mappers.VMwareCollector, + headersMapper: Mappers.VMwareCollectorsCreateHeaders + }, + default: { + bodyMapper: Mappers.CloudError, + headersMapper: Mappers.VMwareCollectorsCreateHeaders + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/vmwarecollectors/{vmWareCollectorName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.projectName, + Parameters.vmWareCollectorName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + headersMapper: Mappers.VMwareCollectorsDeleteHeaders + }, + 204: { + headersMapper: Mappers.VMwareCollectorsDeleteHeaders + }, + default: { + bodyMapper: Mappers.CloudError, + headersMapper: Mappers.VMwareCollectorsDeleteHeaders + } + }, + serializer +}; diff --git a/sdk/migrate/arm-migrate/tsconfig.json b/sdk/migrate/arm-migrate/tsconfig.json index 87bbf5b5fa49..422b584abd5e 100644 --- a/sdk/migrate/arm-migrate/tsconfig.json +++ b/sdk/migrate/arm-migrate/tsconfig.json @@ -9,7 +9,7 @@ "esModuleInterop": true, "allowSyntheticDefaultImports": true, "forceConsistentCasingInFileNames": true, - "lib": ["es6"], + "lib": ["es6", "dom"], "declaration": true, "outDir": "./esm", "importHelpers": true