@azure/arm-datamigration 3.0.0-alpha.20220414.1 → 3.0.0-beta.2
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +2 -2
- package/README.md +11 -0
- package/dist/index.js +366 -193
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/databaseMigrationsSqlMiCancelSample.d.ts +2 -0
- package/dist-esm/samples-dev/databaseMigrationsSqlMiCancelSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/databaseMigrationsSqlMiCancelSample.js +35 -0
- package/dist-esm/samples-dev/databaseMigrationsSqlMiCancelSample.js.map +1 -0
- package/dist-esm/samples-dev/databaseMigrationsSqlMiCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/databaseMigrationsSqlMiCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/databaseMigrationsSqlMiCreateOrUpdateSample.js +117 -0
- package/dist-esm/samples-dev/databaseMigrationsSqlMiCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/databaseMigrationsSqlMiCutoverSample.d.ts +2 -0
- package/dist-esm/samples-dev/databaseMigrationsSqlMiCutoverSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/databaseMigrationsSqlMiCutoverSample.js +35 -0
- package/dist-esm/samples-dev/databaseMigrationsSqlMiCutoverSample.js.map +1 -0
- package/dist-esm/samples-dev/databaseMigrationsSqlMiGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/databaseMigrationsSqlMiGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/databaseMigrationsSqlMiGetSample.js +32 -0
- package/dist-esm/samples-dev/databaseMigrationsSqlMiGetSample.js.map +1 -0
- package/dist-esm/samples-dev/databaseMigrationsSqlVMCancelSample.d.ts +2 -0
- package/dist-esm/samples-dev/databaseMigrationsSqlVMCancelSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/databaseMigrationsSqlVMCancelSample.js +35 -0
- package/dist-esm/samples-dev/databaseMigrationsSqlVMCancelSample.js.map +1 -0
- package/dist-esm/samples-dev/databaseMigrationsSqlVMCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/databaseMigrationsSqlVMCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/databaseMigrationsSqlVMCreateOrUpdateSample.js +117 -0
- package/dist-esm/samples-dev/databaseMigrationsSqlVMCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/databaseMigrationsSqlVMCutoverSample.d.ts +2 -0
- package/dist-esm/samples-dev/databaseMigrationsSqlVMCutoverSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/databaseMigrationsSqlVMCutoverSample.js +35 -0
- package/dist-esm/samples-dev/databaseMigrationsSqlVMCutoverSample.js.map +1 -0
- package/dist-esm/samples-dev/databaseMigrationsSqlVMGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/databaseMigrationsSqlVMGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/databaseMigrationsSqlVMGetSample.js +32 -0
- package/dist-esm/samples-dev/databaseMigrationsSqlVMGetSample.js.map +1 -0
- package/dist-esm/samples-dev/filesCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/filesCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/filesCreateOrUpdateSample.js +36 -0
- package/dist-esm/samples-dev/filesCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/filesDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/filesDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/filesDeleteSample.js +33 -0
- package/dist-esm/samples-dev/filesDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/filesGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/filesGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/filesGetSample.js +33 -0
- package/dist-esm/samples-dev/filesGetSample.js.map +1 -0
- package/dist-esm/samples-dev/filesListSample.d.ts +2 -0
- package/dist-esm/samples-dev/filesListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/filesListSample.js +46 -0
- package/dist-esm/samples-dev/filesListSample.js.map +1 -0
- package/dist-esm/samples-dev/filesReadSample.d.ts +2 -0
- package/dist-esm/samples-dev/filesReadSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/filesReadSample.js +33 -0
- package/dist-esm/samples-dev/filesReadSample.js.map +1 -0
- package/dist-esm/samples-dev/filesReadWriteSample.d.ts +2 -0
- package/dist-esm/samples-dev/filesReadWriteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/filesReadWriteSample.js +33 -0
- package/dist-esm/samples-dev/filesReadWriteSample.js.map +1 -0
- package/dist-esm/samples-dev/filesUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/filesUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/filesUpdateSample.js +36 -0
- package/dist-esm/samples-dev/filesUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.js +43 -0
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
- package/dist-esm/samples-dev/projectsCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/projectsCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/projectsCreateOrUpdateSample.js +37 -0
- package/dist-esm/samples-dev/projectsCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/projectsDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/projectsDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/projectsDeleteSample.js +32 -0
- package/dist-esm/samples-dev/projectsDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/projectsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/projectsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/projectsGetSample.js +32 -0
- package/dist-esm/samples-dev/projectsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/projectsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/projectsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/projectsListSample.js +45 -0
- package/dist-esm/samples-dev/projectsListSample.js.map +1 -0
- package/dist-esm/samples-dev/projectsUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/projectsUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/projectsUpdateSample.js +37 -0
- package/dist-esm/samples-dev/projectsUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/resourceSkusListSkusSample.d.ts +2 -0
- package/dist-esm/samples-dev/resourceSkusListSkusSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/resourceSkusListSkusSample.js +43 -0
- package/dist-esm/samples-dev/resourceSkusListSkusSample.js.map +1 -0
- package/dist-esm/samples-dev/serviceTasksCancelSample.d.ts +2 -0
- package/dist-esm/samples-dev/serviceTasksCancelSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/serviceTasksCancelSample.js +32 -0
- package/dist-esm/samples-dev/serviceTasksCancelSample.js.map +1 -0
- package/dist-esm/samples-dev/serviceTasksCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/serviceTasksCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/serviceTasksCreateOrUpdateSample.js +38 -0
- package/dist-esm/samples-dev/serviceTasksCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/serviceTasksDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/serviceTasksDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/serviceTasksDeleteSample.js +32 -0
- package/dist-esm/samples-dev/serviceTasksDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/serviceTasksGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/serviceTasksGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/serviceTasksGetSample.js +32 -0
- package/dist-esm/samples-dev/serviceTasksGetSample.js.map +1 -0
- package/dist-esm/samples-dev/serviceTasksListSample.d.ts +2 -0
- package/dist-esm/samples-dev/serviceTasksListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/serviceTasksListSample.js +45 -0
- package/dist-esm/samples-dev/serviceTasksListSample.js.map +1 -0
- package/dist-esm/samples-dev/serviceTasksUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/serviceTasksUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/serviceTasksUpdateSample.js +38 -0
- package/dist-esm/samples-dev/serviceTasksUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/servicesCheckChildrenNameAvailabilitySample.d.ts +2 -0
- package/dist-esm/samples-dev/servicesCheckChildrenNameAvailabilitySample.d.ts.map +1 -0
- package/dist-esm/samples-dev/servicesCheckChildrenNameAvailabilitySample.js +32 -0
- package/dist-esm/samples-dev/servicesCheckChildrenNameAvailabilitySample.js.map +1 -0
- package/dist-esm/samples-dev/servicesCheckNameAvailabilitySample.d.ts +2 -0
- package/dist-esm/samples-dev/servicesCheckNameAvailabilitySample.d.ts.map +1 -0
- package/dist-esm/samples-dev/servicesCheckNameAvailabilitySample.js +34 -0
- package/dist-esm/samples-dev/servicesCheckNameAvailabilitySample.js.map +1 -0
- package/dist-esm/samples-dev/servicesCheckStatusSample.d.ts +2 -0
- package/dist-esm/samples-dev/servicesCheckStatusSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/servicesCheckStatusSample.js +31 -0
- package/dist-esm/samples-dev/servicesCheckStatusSample.js.map +1 -0
- package/dist-esm/samples-dev/servicesCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/servicesCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/servicesCreateOrUpdateSample.js +36 -0
- package/dist-esm/samples-dev/servicesCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/servicesDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/servicesDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/servicesDeleteSample.js +31 -0
- package/dist-esm/samples-dev/servicesDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/servicesGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/servicesGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/servicesGetSample.js +31 -0
- package/dist-esm/samples-dev/servicesGetSample.js.map +1 -0
- package/dist-esm/samples-dev/servicesListByResourceGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/servicesListByResourceGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/servicesListByResourceGroupSample.js +44 -0
- package/dist-esm/samples-dev/servicesListByResourceGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/servicesListSample.d.ts +2 -0
- package/dist-esm/samples-dev/servicesListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/servicesListSample.js +43 -0
- package/dist-esm/samples-dev/servicesListSample.js.map +1 -0
- package/dist-esm/samples-dev/servicesListSkusSample.d.ts +2 -0
- package/dist-esm/samples-dev/servicesListSkusSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/servicesListSkusSample.js +45 -0
- package/dist-esm/samples-dev/servicesListSkusSample.js.map +1 -0
- package/dist-esm/samples-dev/servicesStartSample.d.ts +2 -0
- package/dist-esm/samples-dev/servicesStartSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/servicesStartSample.js +31 -0
- package/dist-esm/samples-dev/servicesStartSample.js.map +1 -0
- package/dist-esm/samples-dev/servicesStopSample.d.ts +2 -0
- package/dist-esm/samples-dev/servicesStopSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/servicesStopSample.js +31 -0
- package/dist-esm/samples-dev/servicesStopSample.js.map +1 -0
- package/dist-esm/samples-dev/servicesUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/servicesUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/servicesUpdateSample.js +35 -0
- package/dist-esm/samples-dev/servicesUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/sqlMigrationServicesCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/sqlMigrationServicesCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/sqlMigrationServicesCreateOrUpdateSample.js +51 -0
- package/dist-esm/samples-dev/sqlMigrationServicesCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/sqlMigrationServicesDeleteNodeSample.d.ts +2 -0
- package/dist-esm/samples-dev/sqlMigrationServicesDeleteNodeSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/sqlMigrationServicesDeleteNodeSample.js +35 -0
- package/dist-esm/samples-dev/sqlMigrationServicesDeleteNodeSample.js.map +1 -0
- package/dist-esm/samples-dev/sqlMigrationServicesDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/sqlMigrationServicesDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/sqlMigrationServicesDeleteSample.js +31 -0
- package/dist-esm/samples-dev/sqlMigrationServicesDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/sqlMigrationServicesGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/sqlMigrationServicesGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/sqlMigrationServicesGetSample.js +31 -0
- package/dist-esm/samples-dev/sqlMigrationServicesGetSample.js.map +1 -0
- package/dist-esm/samples-dev/sqlMigrationServicesListAuthKeysSample.d.ts +2 -0
- package/dist-esm/samples-dev/sqlMigrationServicesListAuthKeysSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/sqlMigrationServicesListAuthKeysSample.js +31 -0
- package/dist-esm/samples-dev/sqlMigrationServicesListAuthKeysSample.js.map +1 -0
- package/dist-esm/samples-dev/sqlMigrationServicesListByResourceGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/sqlMigrationServicesListByResourceGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/sqlMigrationServicesListByResourceGroupSample.js +44 -0
- package/dist-esm/samples-dev/sqlMigrationServicesListByResourceGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/sqlMigrationServicesListBySubscriptionSample.d.ts +2 -0
- package/dist-esm/samples-dev/sqlMigrationServicesListBySubscriptionSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/sqlMigrationServicesListBySubscriptionSample.js +43 -0
- package/dist-esm/samples-dev/sqlMigrationServicesListBySubscriptionSample.js.map +1 -0
- package/dist-esm/samples-dev/sqlMigrationServicesListMigrationsSample.d.ts +2 -0
- package/dist-esm/samples-dev/sqlMigrationServicesListMigrationsSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/sqlMigrationServicesListMigrationsSample.js +45 -0
- package/dist-esm/samples-dev/sqlMigrationServicesListMigrationsSample.js.map +1 -0
- package/dist-esm/samples-dev/sqlMigrationServicesListMonitoringDataSample.d.ts +2 -0
- package/dist-esm/samples-dev/sqlMigrationServicesListMonitoringDataSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/sqlMigrationServicesListMonitoringDataSample.js +31 -0
- package/dist-esm/samples-dev/sqlMigrationServicesListMonitoringDataSample.js.map +1 -0
- package/dist-esm/samples-dev/sqlMigrationServicesRegenerateAuthKeysSample.d.ts +2 -0
- package/dist-esm/samples-dev/sqlMigrationServicesRegenerateAuthKeysSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/sqlMigrationServicesRegenerateAuthKeysSample.js +32 -0
- package/dist-esm/samples-dev/sqlMigrationServicesRegenerateAuthKeysSample.js.map +1 -0
- package/dist-esm/samples-dev/sqlMigrationServicesUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/sqlMigrationServicesUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/sqlMigrationServicesUpdateSample.js +32 -0
- package/dist-esm/samples-dev/sqlMigrationServicesUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/tasksCancelSample.d.ts +2 -0
- package/dist-esm/samples-dev/tasksCancelSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/tasksCancelSample.js +33 -0
- package/dist-esm/samples-dev/tasksCancelSample.js.map +1 -0
- package/dist-esm/samples-dev/tasksCommandSample.d.ts +2 -0
- package/dist-esm/samples-dev/tasksCommandSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/tasksCommandSample.js +37 -0
- package/dist-esm/samples-dev/tasksCommandSample.js.map +1 -0
- package/dist-esm/samples-dev/tasksCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/tasksCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/tasksCreateOrUpdateSample.js +49 -0
- package/dist-esm/samples-dev/tasksCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/tasksDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/tasksDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/tasksDeleteSample.js +33 -0
- package/dist-esm/samples-dev/tasksDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/tasksGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/tasksGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/tasksGetSample.js +33 -0
- package/dist-esm/samples-dev/tasksGetSample.js.map +1 -0
- package/dist-esm/samples-dev/tasksListSample.d.ts +2 -0
- package/dist-esm/samples-dev/tasksListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/tasksListSample.js +46 -0
- package/dist-esm/samples-dev/tasksListSample.js.map +1 -0
- package/dist-esm/samples-dev/tasksUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/tasksUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/tasksUpdateSample.js +49 -0
- package/dist-esm/samples-dev/tasksUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/usagesListSample.d.ts +2 -0
- package/dist-esm/samples-dev/usagesListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/usagesListSample.js +44 -0
- package/dist-esm/samples-dev/usagesListSample.js.map +1 -0
- package/dist-esm/src/dataMigrationManagementClient.d.ts.map +1 -1
- package/dist-esm/src/dataMigrationManagementClient.js +20 -2
- package/dist-esm/src/dataMigrationManagementClient.js.map +1 -1
- package/dist-esm/src/operations/databaseMigrationsSqlMi.d.ts.map +1 -1
- package/dist-esm/src/operations/databaseMigrationsSqlMi.js +9 -3
- package/dist-esm/src/operations/databaseMigrationsSqlMi.js.map +1 -1
- package/dist-esm/src/operations/databaseMigrationsSqlVm.d.ts.map +1 -1
- package/dist-esm/src/operations/databaseMigrationsSqlVm.js +9 -3
- package/dist-esm/src/operations/databaseMigrationsSqlVm.js.map +1 -1
- package/dist-esm/src/operations/services.d.ts.map +1 -1
- package/dist-esm/src/operations/services.js +15 -5
- package/dist-esm/src/operations/services.js.map +1 -1
- package/dist-esm/src/operations/sqlMigrationServices.d.ts.map +1 -1
- package/dist-esm/src/operations/sqlMigrationServices.js +9 -3
- package/dist-esm/src/operations/sqlMigrationServices.js.map +1 -1
- package/package.json +11 -11
- package/rollup.config.js +6 -72
- package/src/dataMigrationManagementClient.ts +27 -2
- package/src/operations/databaseMigrationsSqlMi.ts +9 -3
- package/src/operations/databaseMigrationsSqlVm.ts +9 -3
- package/src/operations/services.ts +15 -5
- package/src/operations/sqlMigrationServices.ts +9 -3
- package/tsconfig.json +18 -5
- package/LICENSE.txt +0 -21
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"databaseMigrationsSqlMiCancelSample.d.ts","sourceRoot":"","sources":["../../samples-dev/databaseMigrationsSqlMiCancelSample.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
3
|
+
* Licensed under the MIT License.
|
4
|
+
*
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
|
+
*/
|
8
|
+
import { __awaiter } from "tslib";
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
10
|
+
// Licensed under the MIT License.
|
11
|
+
import { DataMigrationManagementClient } from "@azure/arm-datamigration";
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
13
|
+
/**
|
14
|
+
* This sample demonstrates how to Stop migrations in progress for the database
|
15
|
+
*
|
16
|
+
* @summary Stop migrations in progress for the database
|
17
|
+
* x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/SqlMiCancelDatabaseMigration.json
|
18
|
+
*/
|
19
|
+
function stopOngoingMigrationForTheDatabase() {
|
20
|
+
return __awaiter(this, void 0, void 0, function* () {
|
21
|
+
const subscriptionId = "00000000-1111-2222-3333-444444444444";
|
22
|
+
const resourceGroupName = "testrg";
|
23
|
+
const managedInstanceName = "managedInstance1";
|
24
|
+
const targetDbName = "db1";
|
25
|
+
const parameters = {
|
26
|
+
migrationOperationId: "4124fe90-d1b6-4b50-b4d9-46d02381f59a"
|
27
|
+
};
|
28
|
+
const credential = new DefaultAzureCredential();
|
29
|
+
const client = new DataMigrationManagementClient(credential, subscriptionId);
|
30
|
+
const result = yield client.databaseMigrationsSqlMi.beginCancelAndWait(resourceGroupName, managedInstanceName, targetDbName, parameters);
|
31
|
+
console.log(result);
|
32
|
+
});
|
33
|
+
}
|
34
|
+
stopOngoingMigrationForTheDatabase().catch(console.error);
|
35
|
+
//# sourceMappingURL=databaseMigrationsSqlMiCancelSample.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"databaseMigrationsSqlMiCancelSample.js","sourceRoot":"","sources":["../../samples-dev/databaseMigrationsSqlMiCancelSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,6BAA6B,EAC9B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,kCAAkC;;QAC/C,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,QAAQ,CAAC;QACnC,MAAM,mBAAmB,GAAG,kBAAkB,CAAC;QAC/C,MAAM,YAAY,GAAG,KAAK,CAAC;QAC3B,MAAM,UAAU,GAA4B;YAC1C,oBAAoB,EAAE,sCAAsC;SAC7D,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,6BAA6B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC7E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,uBAAuB,CAAC,kBAAkB,CACpE,iBAAiB,EACjB,mBAAmB,EACnB,YAAY,EACZ,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,kCAAkC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"databaseMigrationsSqlMiCreateOrUpdateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/databaseMigrationsSqlMiCreateOrUpdateSample.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,117 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
3
|
+
* Licensed under the MIT License.
|
4
|
+
*
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
|
+
*/
|
8
|
+
import { __awaiter } from "tslib";
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
10
|
+
// Licensed under the MIT License.
|
11
|
+
import { DataMigrationManagementClient } from "@azure/arm-datamigration";
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
13
|
+
/**
|
14
|
+
* This sample demonstrates how to Create or Update Database Migration resource.
|
15
|
+
*
|
16
|
+
* @summary Create or Update Database Migration resource.
|
17
|
+
* x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/SqlMiCreateOrUpdateDatabaseMigrationMAX.json
|
18
|
+
*/
|
19
|
+
function createOrUpdateDatabaseMigrationResourceWithMaximumParameters() {
|
20
|
+
return __awaiter(this, void 0, void 0, function* () {
|
21
|
+
const subscriptionId = "00000000-1111-2222-3333-444444444444";
|
22
|
+
const resourceGroupName = "testrg";
|
23
|
+
const managedInstanceName = "managedInstance1";
|
24
|
+
const targetDbName = "db1";
|
25
|
+
const parameters = {
|
26
|
+
properties: {
|
27
|
+
backupConfiguration: {
|
28
|
+
sourceLocation: {
|
29
|
+
fileShare: {
|
30
|
+
path: "C:aaa\bbbccc",
|
31
|
+
password: "placeholder",
|
32
|
+
username: "name"
|
33
|
+
}
|
34
|
+
},
|
35
|
+
targetLocation: {
|
36
|
+
accountKey: "abcd",
|
37
|
+
storageAccountResourceId: "account.database.windows.net"
|
38
|
+
}
|
39
|
+
},
|
40
|
+
kind: "SqlMi",
|
41
|
+
migrationService: "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DataMigration/sqlMigrationServices/testagent",
|
42
|
+
offlineConfiguration: {
|
43
|
+
lastBackupName: "last_backup_file_name",
|
44
|
+
offline: true
|
45
|
+
},
|
46
|
+
scope: "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Sql/managedInstances/instance",
|
47
|
+
sourceDatabaseName: "aaa",
|
48
|
+
sourceSqlConnection: {
|
49
|
+
authentication: "WindowsAuthentication",
|
50
|
+
dataSource: "aaa",
|
51
|
+
encryptConnection: true,
|
52
|
+
password: "placeholder",
|
53
|
+
trustServerCertificate: true,
|
54
|
+
userName: "bbb"
|
55
|
+
}
|
56
|
+
}
|
57
|
+
};
|
58
|
+
const credential = new DefaultAzureCredential();
|
59
|
+
const client = new DataMigrationManagementClient(credential, subscriptionId);
|
60
|
+
const result = yield client.databaseMigrationsSqlMi.beginCreateOrUpdateAndWait(resourceGroupName, managedInstanceName, targetDbName, parameters);
|
61
|
+
console.log(result);
|
62
|
+
});
|
63
|
+
}
|
64
|
+
createOrUpdateDatabaseMigrationResourceWithMaximumParameters().catch(console.error);
|
65
|
+
/**
|
66
|
+
* This sample demonstrates how to Create or Update Database Migration resource.
|
67
|
+
*
|
68
|
+
* @summary Create or Update Database Migration resource.
|
69
|
+
* x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/SqlMiCreateOrUpdateDatabaseMigrationMIN.json
|
70
|
+
*/
|
71
|
+
function createOrUpdateDatabaseMigrationResourceWithMinimumParameters() {
|
72
|
+
return __awaiter(this, void 0, void 0, function* () {
|
73
|
+
const subscriptionId = "00000000-1111-2222-3333-444444444444";
|
74
|
+
const resourceGroupName = "testrg";
|
75
|
+
const managedInstanceName = "managedInstance1";
|
76
|
+
const targetDbName = "db1";
|
77
|
+
const parameters = {
|
78
|
+
properties: {
|
79
|
+
backupConfiguration: {
|
80
|
+
sourceLocation: {
|
81
|
+
fileShare: {
|
82
|
+
path: "C:aaa\bbbccc",
|
83
|
+
password: "placeholder",
|
84
|
+
username: "name"
|
85
|
+
}
|
86
|
+
},
|
87
|
+
targetLocation: {
|
88
|
+
accountKey: "abcd",
|
89
|
+
storageAccountResourceId: "account.database.windows.net"
|
90
|
+
}
|
91
|
+
},
|
92
|
+
kind: "SqlMi",
|
93
|
+
migrationService: "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DataMigration/sqlMigrationServices/testagent",
|
94
|
+
offlineConfiguration: {
|
95
|
+
lastBackupName: "last_backup_file_name",
|
96
|
+
offline: true
|
97
|
+
},
|
98
|
+
scope: "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Sql/managedInstances/instance",
|
99
|
+
sourceDatabaseName: "aaa",
|
100
|
+
sourceSqlConnection: {
|
101
|
+
authentication: "WindowsAuthentication",
|
102
|
+
dataSource: "aaa",
|
103
|
+
encryptConnection: true,
|
104
|
+
password: "placeholder",
|
105
|
+
trustServerCertificate: true,
|
106
|
+
userName: "bbb"
|
107
|
+
}
|
108
|
+
}
|
109
|
+
};
|
110
|
+
const credential = new DefaultAzureCredential();
|
111
|
+
const client = new DataMigrationManagementClient(credential, subscriptionId);
|
112
|
+
const result = yield client.databaseMigrationsSqlMi.beginCreateOrUpdateAndWait(resourceGroupName, managedInstanceName, targetDbName, parameters);
|
113
|
+
console.log(result);
|
114
|
+
});
|
115
|
+
}
|
116
|
+
createOrUpdateDatabaseMigrationResourceWithMinimumParameters().catch(console.error);
|
117
|
+
//# sourceMappingURL=databaseMigrationsSqlMiCreateOrUpdateSample.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"databaseMigrationsSqlMiCreateOrUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/databaseMigrationsSqlMiCreateOrUpdateSample.ts"],"names":[],"mappings":"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"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"databaseMigrationsSqlMiCutoverSample.d.ts","sourceRoot":"","sources":["../../samples-dev/databaseMigrationsSqlMiCutoverSample.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
3
|
+
* Licensed under the MIT License.
|
4
|
+
*
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
|
+
*/
|
8
|
+
import { __awaiter } from "tslib";
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
10
|
+
// Licensed under the MIT License.
|
11
|
+
import { DataMigrationManagementClient } from "@azure/arm-datamigration";
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
13
|
+
/**
|
14
|
+
* This sample demonstrates how to Initiate cutover for online migration in progress for the database.
|
15
|
+
*
|
16
|
+
* @summary Initiate cutover for online migration in progress for the database.
|
17
|
+
* x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/SqlMiCutoverDatabaseMigration.json
|
18
|
+
*/
|
19
|
+
function cutoverOnlineMigrationOperationForTheDatabase() {
|
20
|
+
return __awaiter(this, void 0, void 0, function* () {
|
21
|
+
const subscriptionId = "00000000-1111-2222-3333-444444444444";
|
22
|
+
const resourceGroupName = "testrg";
|
23
|
+
const managedInstanceName = "managedInstance1";
|
24
|
+
const targetDbName = "db1";
|
25
|
+
const parameters = {
|
26
|
+
migrationOperationId: "4124fe90-d1b6-4b50-b4d9-46d02381f59a"
|
27
|
+
};
|
28
|
+
const credential = new DefaultAzureCredential();
|
29
|
+
const client = new DataMigrationManagementClient(credential, subscriptionId);
|
30
|
+
const result = yield client.databaseMigrationsSqlMi.beginCutoverAndWait(resourceGroupName, managedInstanceName, targetDbName, parameters);
|
31
|
+
console.log(result);
|
32
|
+
});
|
33
|
+
}
|
34
|
+
cutoverOnlineMigrationOperationForTheDatabase().catch(console.error);
|
35
|
+
//# sourceMappingURL=databaseMigrationsSqlMiCutoverSample.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"databaseMigrationsSqlMiCutoverSample.js","sourceRoot":"","sources":["../../samples-dev/databaseMigrationsSqlMiCutoverSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,6BAA6B,EAC9B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,6CAA6C;;QAC1D,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,QAAQ,CAAC;QACnC,MAAM,mBAAmB,GAAG,kBAAkB,CAAC;QAC/C,MAAM,YAAY,GAAG,KAAK,CAAC;QAC3B,MAAM,UAAU,GAA4B;YAC1C,oBAAoB,EAAE,sCAAsC;SAC7D,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,6BAA6B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC7E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,uBAAuB,CAAC,mBAAmB,CACrE,iBAAiB,EACjB,mBAAmB,EACnB,YAAY,EACZ,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,6CAA6C,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"databaseMigrationsSqlMiGetSample.d.ts","sourceRoot":"","sources":["../../samples-dev/databaseMigrationsSqlMiGetSample.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,32 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
3
|
+
* Licensed under the MIT License.
|
4
|
+
*
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
|
+
*/
|
8
|
+
import { __awaiter } from "tslib";
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
10
|
+
// Licensed under the MIT License.
|
11
|
+
import { DataMigrationManagementClient } from "@azure/arm-datamigration";
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
13
|
+
/**
|
14
|
+
* This sample demonstrates how to Retrieve the Database Migration resource.
|
15
|
+
*
|
16
|
+
* @summary Retrieve the Database Migration resource.
|
17
|
+
* x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/SqlMiGetDatabaseMigration.json
|
18
|
+
*/
|
19
|
+
function getDatabaseMigrationResource() {
|
20
|
+
return __awaiter(this, void 0, void 0, function* () {
|
21
|
+
const subscriptionId = "00000000-1111-2222-3333-444444444444";
|
22
|
+
const resourceGroupName = "testrg";
|
23
|
+
const managedInstanceName = "managedInstance1";
|
24
|
+
const targetDbName = "db1";
|
25
|
+
const credential = new DefaultAzureCredential();
|
26
|
+
const client = new DataMigrationManagementClient(credential, subscriptionId);
|
27
|
+
const result = yield client.databaseMigrationsSqlMi.get(resourceGroupName, managedInstanceName, targetDbName);
|
28
|
+
console.log(result);
|
29
|
+
});
|
30
|
+
}
|
31
|
+
getDatabaseMigrationResource().catch(console.error);
|
32
|
+
//# sourceMappingURL=databaseMigrationsSqlMiGetSample.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"databaseMigrationsSqlMiGetSample.js","sourceRoot":"","sources":["../../samples-dev/databaseMigrationsSqlMiGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,6BAA6B,EAAE,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,4BAA4B;;QACzC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,QAAQ,CAAC;QACnC,MAAM,mBAAmB,GAAG,kBAAkB,CAAC;QAC/C,MAAM,YAAY,GAAG,KAAK,CAAC;QAC3B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,6BAA6B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC7E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,uBAAuB,CAAC,GAAG,CACrD,iBAAiB,EACjB,mBAAmB,EACnB,YAAY,CACb,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,4BAA4B,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"databaseMigrationsSqlVMCancelSample.d.ts","sourceRoot":"","sources":["../../samples-dev/databaseMigrationsSqlVMCancelSample.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
3
|
+
* Licensed under the MIT License.
|
4
|
+
*
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
|
+
*/
|
8
|
+
import { __awaiter } from "tslib";
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
10
|
+
// Licensed under the MIT License.
|
11
|
+
import { DataMigrationManagementClient } from "@azure/arm-datamigration";
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
13
|
+
/**
|
14
|
+
* This sample demonstrates how to Stop ongoing migration for the database.
|
15
|
+
*
|
16
|
+
* @summary Stop ongoing migration for the database.
|
17
|
+
* x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/SqlVmCancelDatabaseMigration.json
|
18
|
+
*/
|
19
|
+
function stopOngoingMigrationForTheDatabase() {
|
20
|
+
return __awaiter(this, void 0, void 0, function* () {
|
21
|
+
const subscriptionId = "00000000-1111-2222-3333-444444444444";
|
22
|
+
const resourceGroupName = "testrg";
|
23
|
+
const sqlVirtualMachineName = "testvm";
|
24
|
+
const targetDbName = "db1";
|
25
|
+
const parameters = {
|
26
|
+
migrationOperationId: "4124fe90-d1b6-4b50-b4d9-46d02381f59a"
|
27
|
+
};
|
28
|
+
const credential = new DefaultAzureCredential();
|
29
|
+
const client = new DataMigrationManagementClient(credential, subscriptionId);
|
30
|
+
const result = yield client.databaseMigrationsSqlVm.beginCancelAndWait(resourceGroupName, sqlVirtualMachineName, targetDbName, parameters);
|
31
|
+
console.log(result);
|
32
|
+
});
|
33
|
+
}
|
34
|
+
stopOngoingMigrationForTheDatabase().catch(console.error);
|
35
|
+
//# sourceMappingURL=databaseMigrationsSqlVMCancelSample.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"databaseMigrationsSqlVMCancelSample.js","sourceRoot":"","sources":["../../samples-dev/databaseMigrationsSqlVMCancelSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,6BAA6B,EAC9B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,kCAAkC;;QAC/C,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,QAAQ,CAAC;QACnC,MAAM,qBAAqB,GAAG,QAAQ,CAAC;QACvC,MAAM,YAAY,GAAG,KAAK,CAAC;QAC3B,MAAM,UAAU,GAA4B;YAC1C,oBAAoB,EAAE,sCAAsC;SAC7D,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,6BAA6B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC7E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,uBAAuB,CAAC,kBAAkB,CACpE,iBAAiB,EACjB,qBAAqB,EACrB,YAAY,EACZ,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,kCAAkC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"databaseMigrationsSqlVMCreateOrUpdateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/databaseMigrationsSqlVMCreateOrUpdateSample.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,117 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
3
|
+
* Licensed under the MIT License.
|
4
|
+
*
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
|
+
*/
|
8
|
+
import { __awaiter } from "tslib";
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
10
|
+
// Licensed under the MIT License.
|
11
|
+
import { DataMigrationManagementClient } from "@azure/arm-datamigration";
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
13
|
+
/**
|
14
|
+
* This sample demonstrates how to Create or Update Database Migration resource.
|
15
|
+
*
|
16
|
+
* @summary Create or Update Database Migration resource.
|
17
|
+
* x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/SqlVmCreateOrUpdateDatabaseMigrationMAX.json
|
18
|
+
*/
|
19
|
+
function createOrUpdateDatabaseMigrationResourceWithMaximumParameters() {
|
20
|
+
return __awaiter(this, void 0, void 0, function* () {
|
21
|
+
const subscriptionId = "00000000-1111-2222-3333-444444444444";
|
22
|
+
const resourceGroupName = "testrg";
|
23
|
+
const sqlVirtualMachineName = "testvm";
|
24
|
+
const targetDbName = "db1";
|
25
|
+
const parameters = {
|
26
|
+
properties: {
|
27
|
+
backupConfiguration: {
|
28
|
+
sourceLocation: {
|
29
|
+
fileShare: {
|
30
|
+
path: "C:aaa\bbbccc",
|
31
|
+
password: "placeholder",
|
32
|
+
username: "name"
|
33
|
+
}
|
34
|
+
},
|
35
|
+
targetLocation: {
|
36
|
+
accountKey: "abcd",
|
37
|
+
storageAccountResourceId: "account.database.windows.net"
|
38
|
+
}
|
39
|
+
},
|
40
|
+
kind: "SqlVm",
|
41
|
+
migrationService: "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DataMigration/sqlMigrationServices/testagent",
|
42
|
+
offlineConfiguration: {
|
43
|
+
lastBackupName: "last_backup_file_name",
|
44
|
+
offline: true
|
45
|
+
},
|
46
|
+
scope: "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/testvm",
|
47
|
+
sourceDatabaseName: "aaa",
|
48
|
+
sourceSqlConnection: {
|
49
|
+
authentication: "WindowsAuthentication",
|
50
|
+
dataSource: "aaa",
|
51
|
+
encryptConnection: true,
|
52
|
+
password: "placeholder",
|
53
|
+
trustServerCertificate: true,
|
54
|
+
userName: "bbb"
|
55
|
+
}
|
56
|
+
}
|
57
|
+
};
|
58
|
+
const credential = new DefaultAzureCredential();
|
59
|
+
const client = new DataMigrationManagementClient(credential, subscriptionId);
|
60
|
+
const result = yield client.databaseMigrationsSqlVm.beginCreateOrUpdateAndWait(resourceGroupName, sqlVirtualMachineName, targetDbName, parameters);
|
61
|
+
console.log(result);
|
62
|
+
});
|
63
|
+
}
|
64
|
+
createOrUpdateDatabaseMigrationResourceWithMaximumParameters().catch(console.error);
|
65
|
+
/**
|
66
|
+
* This sample demonstrates how to Create or Update Database Migration resource.
|
67
|
+
*
|
68
|
+
* @summary Create or Update Database Migration resource.
|
69
|
+
* x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/SqlVmCreateOrUpdateDatabaseMigrationMIN.json
|
70
|
+
*/
|
71
|
+
function createOrUpdateDatabaseMigrationResourceWithMinimumParameters() {
|
72
|
+
return __awaiter(this, void 0, void 0, function* () {
|
73
|
+
const subscriptionId = "00000000-1111-2222-3333-444444444444";
|
74
|
+
const resourceGroupName = "testrg";
|
75
|
+
const sqlVirtualMachineName = "testvm";
|
76
|
+
const targetDbName = "db1";
|
77
|
+
const parameters = {
|
78
|
+
properties: {
|
79
|
+
backupConfiguration: {
|
80
|
+
sourceLocation: {
|
81
|
+
fileShare: {
|
82
|
+
path: "C:aaa\bbbccc",
|
83
|
+
password: "placeholder",
|
84
|
+
username: "name"
|
85
|
+
}
|
86
|
+
},
|
87
|
+
targetLocation: {
|
88
|
+
accountKey: "abcd",
|
89
|
+
storageAccountResourceId: "account.database.windows.net"
|
90
|
+
}
|
91
|
+
},
|
92
|
+
kind: "SqlVm",
|
93
|
+
migrationService: "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DataMigration/sqlMigrationServices/testagent",
|
94
|
+
offlineConfiguration: {
|
95
|
+
lastBackupName: "last_backup_file_name",
|
96
|
+
offline: true
|
97
|
+
},
|
98
|
+
scope: "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/testvm",
|
99
|
+
sourceDatabaseName: "aaa",
|
100
|
+
sourceSqlConnection: {
|
101
|
+
authentication: "WindowsAuthentication",
|
102
|
+
dataSource: "aaa",
|
103
|
+
encryptConnection: true,
|
104
|
+
password: "placeholder",
|
105
|
+
trustServerCertificate: true,
|
106
|
+
userName: "bbb"
|
107
|
+
}
|
108
|
+
}
|
109
|
+
};
|
110
|
+
const credential = new DefaultAzureCredential();
|
111
|
+
const client = new DataMigrationManagementClient(credential, subscriptionId);
|
112
|
+
const result = yield client.databaseMigrationsSqlVm.beginCreateOrUpdateAndWait(resourceGroupName, sqlVirtualMachineName, targetDbName, parameters);
|
113
|
+
console.log(result);
|
114
|
+
});
|
115
|
+
}
|
116
|
+
createOrUpdateDatabaseMigrationResourceWithMinimumParameters().catch(console.error);
|
117
|
+
//# sourceMappingURL=databaseMigrationsSqlVMCreateOrUpdateSample.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"databaseMigrationsSqlVMCreateOrUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/databaseMigrationsSqlVMCreateOrUpdateSample.ts"],"names":[],"mappings":"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"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"databaseMigrationsSqlVMCutoverSample.d.ts","sourceRoot":"","sources":["../../samples-dev/databaseMigrationsSqlVMCutoverSample.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
3
|
+
* Licensed under the MIT License.
|
4
|
+
*
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
|
+
*/
|
8
|
+
import { __awaiter } from "tslib";
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
10
|
+
// Licensed under the MIT License.
|
11
|
+
import { DataMigrationManagementClient } from "@azure/arm-datamigration";
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
13
|
+
/**
|
14
|
+
* This sample demonstrates how to Cutover online migration operation for the database.
|
15
|
+
*
|
16
|
+
* @summary Cutover online migration operation for the database.
|
17
|
+
* x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/SqlVmCutoverDatabaseMigration.json
|
18
|
+
*/
|
19
|
+
function cutoverOnlineMigrationOperationForTheDatabase() {
|
20
|
+
return __awaiter(this, void 0, void 0, function* () {
|
21
|
+
const subscriptionId = "00000000-1111-2222-3333-444444444444";
|
22
|
+
const resourceGroupName = "testrg";
|
23
|
+
const sqlVirtualMachineName = "testvm";
|
24
|
+
const targetDbName = "db1";
|
25
|
+
const parameters = {
|
26
|
+
migrationOperationId: "4124fe90-d1b6-4b50-b4d9-46d02381f59a"
|
27
|
+
};
|
28
|
+
const credential = new DefaultAzureCredential();
|
29
|
+
const client = new DataMigrationManagementClient(credential, subscriptionId);
|
30
|
+
const result = yield client.databaseMigrationsSqlVm.beginCutoverAndWait(resourceGroupName, sqlVirtualMachineName, targetDbName, parameters);
|
31
|
+
console.log(result);
|
32
|
+
});
|
33
|
+
}
|
34
|
+
cutoverOnlineMigrationOperationForTheDatabase().catch(console.error);
|
35
|
+
//# sourceMappingURL=databaseMigrationsSqlVMCutoverSample.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"databaseMigrationsSqlVMCutoverSample.js","sourceRoot":"","sources":["../../samples-dev/databaseMigrationsSqlVMCutoverSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,6BAA6B,EAC9B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,6CAA6C;;QAC1D,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,QAAQ,CAAC;QACnC,MAAM,qBAAqB,GAAG,QAAQ,CAAC;QACvC,MAAM,YAAY,GAAG,KAAK,CAAC;QAC3B,MAAM,UAAU,GAA4B;YAC1C,oBAAoB,EAAE,sCAAsC;SAC7D,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,6BAA6B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC7E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,uBAAuB,CAAC,mBAAmB,CACrE,iBAAiB,EACjB,qBAAqB,EACrB,YAAY,EACZ,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,6CAA6C,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"databaseMigrationsSqlVMGetSample.d.ts","sourceRoot":"","sources":["../../samples-dev/databaseMigrationsSqlVMGetSample.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,32 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
3
|
+
* Licensed under the MIT License.
|
4
|
+
*
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
|
+
*/
|
8
|
+
import { __awaiter } from "tslib";
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
10
|
+
// Licensed under the MIT License.
|
11
|
+
import { DataMigrationManagementClient } from "@azure/arm-datamigration";
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
13
|
+
/**
|
14
|
+
* This sample demonstrates how to Retrieve the Database Migration resource.
|
15
|
+
*
|
16
|
+
* @summary Retrieve the Database Migration resource.
|
17
|
+
* x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/SqlVmGetDatabaseMigration.json
|
18
|
+
*/
|
19
|
+
function getDatabaseMigrationResource() {
|
20
|
+
return __awaiter(this, void 0, void 0, function* () {
|
21
|
+
const subscriptionId = "00000000-1111-2222-3333-444444444444";
|
22
|
+
const resourceGroupName = "testrg";
|
23
|
+
const sqlVirtualMachineName = "testvm";
|
24
|
+
const targetDbName = "db1";
|
25
|
+
const credential = new DefaultAzureCredential();
|
26
|
+
const client = new DataMigrationManagementClient(credential, subscriptionId);
|
27
|
+
const result = yield client.databaseMigrationsSqlVm.get(resourceGroupName, sqlVirtualMachineName, targetDbName);
|
28
|
+
console.log(result);
|
29
|
+
});
|
30
|
+
}
|
31
|
+
getDatabaseMigrationResource().catch(console.error);
|
32
|
+
//# sourceMappingURL=databaseMigrationsSqlVMGetSample.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"databaseMigrationsSqlVMGetSample.js","sourceRoot":"","sources":["../../samples-dev/databaseMigrationsSqlVMGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,6BAA6B,EAAE,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,4BAA4B;;QACzC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,QAAQ,CAAC;QACnC,MAAM,qBAAqB,GAAG,QAAQ,CAAC;QACvC,MAAM,YAAY,GAAG,KAAK,CAAC;QAC3B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,6BAA6B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC7E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,uBAAuB,CAAC,GAAG,CACrD,iBAAiB,EACjB,qBAAqB,EACrB,YAAY,CACb,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,4BAA4B,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"filesCreateOrUpdateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/filesCreateOrUpdateSample.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,36 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
3
|
+
* Licensed under the MIT License.
|
4
|
+
*
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
|
+
*/
|
8
|
+
import { __awaiter } from "tslib";
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
10
|
+
// Licensed under the MIT License.
|
11
|
+
import { DataMigrationManagementClient } from "@azure/arm-datamigration";
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
13
|
+
/**
|
14
|
+
* This sample demonstrates how to The PUT method creates a new file or updates an existing one.
|
15
|
+
*
|
16
|
+
* @summary The PUT method creates a new file or updates an existing one.
|
17
|
+
* x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/Files_CreateOrUpdate.json
|
18
|
+
*/
|
19
|
+
function filesCreateOrUpdate() {
|
20
|
+
return __awaiter(this, void 0, void 0, function* () {
|
21
|
+
const subscriptionId = "fc04246f-04c5-437e-ac5e-206a19e7193f";
|
22
|
+
const groupName = "DmsSdkRg";
|
23
|
+
const serviceName = "DmsSdkService";
|
24
|
+
const projectName = "DmsSdkProject";
|
25
|
+
const fileName = "x114d023d8";
|
26
|
+
const parameters = {
|
27
|
+
properties: { filePath: "DmsSdkFilePath/DmsSdkFile.sql" }
|
28
|
+
};
|
29
|
+
const credential = new DefaultAzureCredential();
|
30
|
+
const client = new DataMigrationManagementClient(credential, subscriptionId);
|
31
|
+
const result = yield client.files.createOrUpdate(groupName, serviceName, projectName, fileName, parameters);
|
32
|
+
console.log(result);
|
33
|
+
});
|
34
|
+
}
|
35
|
+
filesCreateOrUpdate().catch(console.error);
|
36
|
+
//# sourceMappingURL=filesCreateOrUpdateSample.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"filesCreateOrUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/filesCreateOrUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,6BAA6B,EAC9B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,mBAAmB;;QAChC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,SAAS,GAAG,UAAU,CAAC;QAC7B,MAAM,WAAW,GAAG,eAAe,CAAC;QACpC,MAAM,WAAW,GAAG,eAAe,CAAC;QACpC,MAAM,QAAQ,GAAG,YAAY,CAAC;QAC9B,MAAM,UAAU,GAAgB;YAC9B,UAAU,EAAE,EAAE,QAAQ,EAAE,+BAA+B,EAAE;SAC1D,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,6BAA6B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC7E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,KAAK,CAAC,cAAc,CAC9C,SAAS,EACT,WAAW,EACX,WAAW,EACX,QAAQ,EACR,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,mBAAmB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"filesDeleteSample.d.ts","sourceRoot":"","sources":["../../samples-dev/filesDeleteSample.ts"],"names":[],"mappings":""}
|