@azure/arm-datamigration 3.0.0-beta.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 +27 -15
- 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/types/tsdoc-metadata.json +1 -1
- package/LICENSE.txt +0 -21
package/dist/index.js
CHANGED
@@ -3,9 +3,31 @@
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
5
|
var coreClient = require('@azure/core-client');
|
6
|
+
var coreRestPipeline = require('@azure/core-rest-pipeline');
|
6
7
|
var tslib = require('tslib');
|
7
8
|
var coreLro = require('@azure/core-lro');
|
8
9
|
|
10
|
+
function _interopNamespace(e) {
|
11
|
+
if (e && e.__esModule) return e;
|
12
|
+
var n = Object.create(null);
|
13
|
+
if (e) {
|
14
|
+
Object.keys(e).forEach(function (k) {
|
15
|
+
if (k !== 'default') {
|
16
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
17
|
+
Object.defineProperty(n, k, d.get ? d : {
|
18
|
+
enumerable: true,
|
19
|
+
get: function () { return e[k]; }
|
20
|
+
});
|
21
|
+
}
|
22
|
+
});
|
23
|
+
}
|
24
|
+
n["default"] = e;
|
25
|
+
return Object.freeze(n);
|
26
|
+
}
|
27
|
+
|
28
|
+
var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
|
29
|
+
var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipeline);
|
30
|
+
|
9
31
|
/*
|
10
32
|
* Copyright (c) Microsoft Corporation.
|
11
33
|
* Licensed under the MIT License.
|
@@ -13,32 +35,46 @@ var coreLro = require('@azure/core-lro');
|
|
13
35
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
14
36
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
15
37
|
*/
|
38
|
+
/** Known values of {@link CreatedByType} that the service accepts. */
|
39
|
+
exports.KnownCreatedByType = void 0;
|
16
40
|
(function (KnownCreatedByType) {
|
17
41
|
KnownCreatedByType["User"] = "User";
|
18
42
|
KnownCreatedByType["Application"] = "Application";
|
19
43
|
KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
|
20
44
|
KnownCreatedByType["Key"] = "Key";
|
21
45
|
})(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
|
46
|
+
/** Known values of {@link ResourceType} that the service accepts. */
|
47
|
+
exports.KnownResourceType = void 0;
|
22
48
|
(function (KnownResourceType) {
|
23
49
|
KnownResourceType["SqlMi"] = "SqlMi";
|
24
50
|
KnownResourceType["SqlVm"] = "SqlVm";
|
25
51
|
})(exports.KnownResourceType || (exports.KnownResourceType = {}));
|
52
|
+
/** Known values of {@link OperationOrigin} that the service accepts. */
|
53
|
+
exports.KnownOperationOrigin = void 0;
|
26
54
|
(function (KnownOperationOrigin) {
|
27
55
|
KnownOperationOrigin["User"] = "user";
|
28
56
|
KnownOperationOrigin["System"] = "system";
|
29
57
|
})(exports.KnownOperationOrigin || (exports.KnownOperationOrigin = {}));
|
58
|
+
/** Known values of {@link ResourceSkuCapacityScaleType} that the service accepts. */
|
59
|
+
exports.KnownResourceSkuCapacityScaleType = void 0;
|
30
60
|
(function (KnownResourceSkuCapacityScaleType) {
|
31
61
|
KnownResourceSkuCapacityScaleType["Automatic"] = "Automatic";
|
32
62
|
KnownResourceSkuCapacityScaleType["Manual"] = "Manual";
|
33
63
|
KnownResourceSkuCapacityScaleType["None"] = "None";
|
34
64
|
})(exports.KnownResourceSkuCapacityScaleType || (exports.KnownResourceSkuCapacityScaleType = {}));
|
65
|
+
/** Known values of {@link ResourceSkuRestrictionsType} that the service accepts. */
|
66
|
+
exports.KnownResourceSkuRestrictionsType = void 0;
|
35
67
|
(function (KnownResourceSkuRestrictionsType) {
|
36
68
|
KnownResourceSkuRestrictionsType["Location"] = "location";
|
37
69
|
})(exports.KnownResourceSkuRestrictionsType || (exports.KnownResourceSkuRestrictionsType = {}));
|
70
|
+
/** Known values of {@link ResourceSkuRestrictionsReasonCode} that the service accepts. */
|
71
|
+
exports.KnownResourceSkuRestrictionsReasonCode = void 0;
|
38
72
|
(function (KnownResourceSkuRestrictionsReasonCode) {
|
39
73
|
KnownResourceSkuRestrictionsReasonCode["QuotaId"] = "QuotaId";
|
40
74
|
KnownResourceSkuRestrictionsReasonCode["NotAvailableForSubscription"] = "NotAvailableForSubscription";
|
41
75
|
})(exports.KnownResourceSkuRestrictionsReasonCode || (exports.KnownResourceSkuRestrictionsReasonCode = {}));
|
76
|
+
/** Known values of {@link ServiceProvisioningState} that the service accepts. */
|
77
|
+
exports.KnownServiceProvisioningState = void 0;
|
42
78
|
(function (KnownServiceProvisioningState) {
|
43
79
|
KnownServiceProvisioningState["Accepted"] = "Accepted";
|
44
80
|
KnownServiceProvisioningState["Deleting"] = "Deleting";
|
@@ -51,11 +87,15 @@ var coreLro = require('@azure/core-lro');
|
|
51
87
|
KnownServiceProvisioningState["Succeeded"] = "Succeeded";
|
52
88
|
KnownServiceProvisioningState["Failed"] = "Failed";
|
53
89
|
})(exports.KnownServiceProvisioningState || (exports.KnownServiceProvisioningState = {}));
|
90
|
+
/** Known values of {@link ServiceScalability} that the service accepts. */
|
91
|
+
exports.KnownServiceScalability = void 0;
|
54
92
|
(function (KnownServiceScalability) {
|
55
93
|
KnownServiceScalability["None"] = "none";
|
56
94
|
KnownServiceScalability["Manual"] = "manual";
|
57
95
|
KnownServiceScalability["Automatic"] = "automatic";
|
58
96
|
})(exports.KnownServiceScalability || (exports.KnownServiceScalability = {}));
|
97
|
+
/** Known values of {@link TaskType} that the service accepts. */
|
98
|
+
exports.KnownTaskType = void 0;
|
59
99
|
(function (KnownTaskType) {
|
60
100
|
KnownTaskType["ConnectMongoDb"] = "Connect.MongoDb";
|
61
101
|
KnownTaskType["ConnectToSourceSqlServer"] = "ConnectToSource.SqlServer";
|
@@ -96,6 +136,8 @@ var coreLro = require('@azure/core-lro');
|
|
96
136
|
KnownTaskType["ServiceInstallOCI"] = "Service.Install.OCI";
|
97
137
|
KnownTaskType["MigrateSchemaSqlServerSqlDb"] = "MigrateSchemaSqlServerSqlDb";
|
98
138
|
})(exports.KnownTaskType || (exports.KnownTaskType = {}));
|
139
|
+
/** Known values of {@link TaskState} that the service accepts. */
|
140
|
+
exports.KnownTaskState = void 0;
|
99
141
|
(function (KnownTaskState) {
|
100
142
|
KnownTaskState["Unknown"] = "Unknown";
|
101
143
|
KnownTaskState["Queued"] = "Queued";
|
@@ -106,6 +148,8 @@ var coreLro = require('@azure/core-lro');
|
|
106
148
|
KnownTaskState["FailedInputValidation"] = "FailedInputValidation";
|
107
149
|
KnownTaskState["Faulted"] = "Faulted";
|
108
150
|
})(exports.KnownTaskState || (exports.KnownTaskState = {}));
|
151
|
+
/** Known values of {@link CommandType} that the service accepts. */
|
152
|
+
exports.KnownCommandType = void 0;
|
109
153
|
(function (KnownCommandType) {
|
110
154
|
KnownCommandType["MigrateSyncCompleteDatabase"] = "Migrate.Sync.Complete.Database";
|
111
155
|
KnownCommandType["MigrateSqlServerAzureDbSqlMiComplete"] = "Migrate.SqlServer.AzureDbSqlMi.Complete";
|
@@ -113,6 +157,8 @@ var coreLro = require('@azure/core-lro');
|
|
113
157
|
KnownCommandType["Finish"] = "finish";
|
114
158
|
KnownCommandType["Restart"] = "restart";
|
115
159
|
})(exports.KnownCommandType || (exports.KnownCommandType = {}));
|
160
|
+
/** Known values of {@link CommandState} that the service accepts. */
|
161
|
+
exports.KnownCommandState = void 0;
|
116
162
|
(function (KnownCommandState) {
|
117
163
|
KnownCommandState["Unknown"] = "Unknown";
|
118
164
|
KnownCommandState["Accepted"] = "Accepted";
|
@@ -120,10 +166,14 @@ var coreLro = require('@azure/core-lro');
|
|
120
166
|
KnownCommandState["Succeeded"] = "Succeeded";
|
121
167
|
KnownCommandState["Failed"] = "Failed";
|
122
168
|
})(exports.KnownCommandState || (exports.KnownCommandState = {}));
|
169
|
+
/** Known values of {@link NameCheckFailureReason} that the service accepts. */
|
170
|
+
exports.KnownNameCheckFailureReason = void 0;
|
123
171
|
(function (KnownNameCheckFailureReason) {
|
124
172
|
KnownNameCheckFailureReason["AlreadyExists"] = "AlreadyExists";
|
125
173
|
KnownNameCheckFailureReason["Invalid"] = "Invalid";
|
126
174
|
})(exports.KnownNameCheckFailureReason || (exports.KnownNameCheckFailureReason = {}));
|
175
|
+
/** Known values of {@link ProjectSourcePlatform} that the service accepts. */
|
176
|
+
exports.KnownProjectSourcePlatform = void 0;
|
127
177
|
(function (KnownProjectSourcePlatform) {
|
128
178
|
KnownProjectSourcePlatform["SQL"] = "SQL";
|
129
179
|
KnownProjectSourcePlatform["MySQL"] = "MySQL";
|
@@ -131,6 +181,8 @@ var coreLro = require('@azure/core-lro');
|
|
131
181
|
KnownProjectSourcePlatform["MongoDb"] = "MongoDb";
|
132
182
|
KnownProjectSourcePlatform["Unknown"] = "Unknown";
|
133
183
|
})(exports.KnownProjectSourcePlatform || (exports.KnownProjectSourcePlatform = {}));
|
184
|
+
/** Known values of {@link ProjectTargetPlatform} that the service accepts. */
|
185
|
+
exports.KnownProjectTargetPlatform = void 0;
|
134
186
|
(function (KnownProjectTargetPlatform) {
|
135
187
|
KnownProjectTargetPlatform["Sqldb"] = "SQLDB";
|
136
188
|
KnownProjectTargetPlatform["Sqlmi"] = "SQLMI";
|
@@ -139,10 +191,14 @@ var coreLro = require('@azure/core-lro');
|
|
139
191
|
KnownProjectTargetPlatform["MongoDb"] = "MongoDb";
|
140
192
|
KnownProjectTargetPlatform["Unknown"] = "Unknown";
|
141
193
|
})(exports.KnownProjectTargetPlatform || (exports.KnownProjectTargetPlatform = {}));
|
194
|
+
/** Known values of {@link ProjectProvisioningState} that the service accepts. */
|
195
|
+
exports.KnownProjectProvisioningState = void 0;
|
142
196
|
(function (KnownProjectProvisioningState) {
|
143
197
|
KnownProjectProvisioningState["Deleting"] = "Deleting";
|
144
198
|
KnownProjectProvisioningState["Succeeded"] = "Succeeded";
|
145
199
|
})(exports.KnownProjectProvisioningState || (exports.KnownProjectProvisioningState = {}));
|
200
|
+
/** Known values of {@link AuthenticationType} that the service accepts. */
|
201
|
+
exports.KnownAuthenticationType = void 0;
|
146
202
|
(function (KnownAuthenticationType) {
|
147
203
|
KnownAuthenticationType["None"] = "None";
|
148
204
|
KnownAuthenticationType["WindowsAuthentication"] = "WindowsAuthentication";
|
@@ -150,9 +206,13 @@ var coreLro = require('@azure/core-lro');
|
|
150
206
|
KnownAuthenticationType["ActiveDirectoryIntegrated"] = "ActiveDirectoryIntegrated";
|
151
207
|
KnownAuthenticationType["ActiveDirectoryPassword"] = "ActiveDirectoryPassword";
|
152
208
|
})(exports.KnownAuthenticationType || (exports.KnownAuthenticationType = {}));
|
209
|
+
/** Known values of {@link SqlSourcePlatform} that the service accepts. */
|
210
|
+
exports.KnownSqlSourcePlatform = void 0;
|
153
211
|
(function (KnownSqlSourcePlatform) {
|
154
212
|
KnownSqlSourcePlatform["SqlOnPrem"] = "SqlOnPrem";
|
155
213
|
})(exports.KnownSqlSourcePlatform || (exports.KnownSqlSourcePlatform = {}));
|
214
|
+
/** Known values of {@link BackupType} that the service accepts. */
|
215
|
+
exports.KnownBackupType = void 0;
|
156
216
|
(function (KnownBackupType) {
|
157
217
|
KnownBackupType["Database"] = "Database";
|
158
218
|
KnownBackupType["TransactionLog"] = "TransactionLog";
|
@@ -162,6 +222,8 @@ var coreLro = require('@azure/core-lro');
|
|
162
222
|
KnownBackupType["Partial"] = "Partial";
|
163
223
|
KnownBackupType["DifferentialPartial"] = "DifferentialPartial";
|
164
224
|
})(exports.KnownBackupType || (exports.KnownBackupType = {}));
|
225
|
+
/** Known values of {@link BackupFileStatus} that the service accepts. */
|
226
|
+
exports.KnownBackupFileStatus = void 0;
|
165
227
|
(function (KnownBackupFileStatus) {
|
166
228
|
KnownBackupFileStatus["Arrived"] = "Arrived";
|
167
229
|
KnownBackupFileStatus["Queued"] = "Queued";
|
@@ -171,10 +233,14 @@ var coreLro = require('@azure/core-lro');
|
|
171
233
|
KnownBackupFileStatus["Restored"] = "Restored";
|
172
234
|
KnownBackupFileStatus["Cancelled"] = "Cancelled";
|
173
235
|
})(exports.KnownBackupFileStatus || (exports.KnownBackupFileStatus = {}));
|
236
|
+
/** Known values of {@link MySqlTargetPlatformType} that the service accepts. */
|
237
|
+
exports.KnownMySqlTargetPlatformType = void 0;
|
174
238
|
(function (KnownMySqlTargetPlatformType) {
|
175
239
|
KnownMySqlTargetPlatformType["SqlServer"] = "SqlServer";
|
176
240
|
KnownMySqlTargetPlatformType["AzureDbForMySQL"] = "AzureDbForMySQL";
|
177
241
|
})(exports.KnownMySqlTargetPlatformType || (exports.KnownMySqlTargetPlatformType = {}));
|
242
|
+
/** Known values of {@link DatabaseFileType} that the service accepts. */
|
243
|
+
exports.KnownDatabaseFileType = void 0;
|
178
244
|
(function (KnownDatabaseFileType) {
|
179
245
|
KnownDatabaseFileType["Rows"] = "Rows";
|
180
246
|
KnownDatabaseFileType["Log"] = "Log";
|
@@ -182,6 +248,8 @@ var coreLro = require('@azure/core-lro');
|
|
182
248
|
KnownDatabaseFileType["NotSupported"] = "NotSupported";
|
183
249
|
KnownDatabaseFileType["Fulltext"] = "Fulltext";
|
184
250
|
})(exports.KnownDatabaseFileType || (exports.KnownDatabaseFileType = {}));
|
251
|
+
/** Known values of {@link DatabaseCompatLevel} that the service accepts. */
|
252
|
+
exports.KnownDatabaseCompatLevel = void 0;
|
185
253
|
(function (KnownDatabaseCompatLevel) {
|
186
254
|
KnownDatabaseCompatLevel["CompatLevel80"] = "CompatLevel80";
|
187
255
|
KnownDatabaseCompatLevel["CompatLevel90"] = "CompatLevel90";
|
@@ -191,6 +259,8 @@ var coreLro = require('@azure/core-lro');
|
|
191
259
|
KnownDatabaseCompatLevel["CompatLevel130"] = "CompatLevel130";
|
192
260
|
KnownDatabaseCompatLevel["CompatLevel140"] = "CompatLevel140";
|
193
261
|
})(exports.KnownDatabaseCompatLevel || (exports.KnownDatabaseCompatLevel = {}));
|
262
|
+
/** Known values of {@link DatabaseState} that the service accepts. */
|
263
|
+
exports.KnownDatabaseState = void 0;
|
194
264
|
(function (KnownDatabaseState) {
|
195
265
|
KnownDatabaseState["Online"] = "Online";
|
196
266
|
KnownDatabaseState["Restoring"] = "Restoring";
|
@@ -202,6 +272,8 @@ var coreLro = require('@azure/core-lro');
|
|
202
272
|
KnownDatabaseState["Copying"] = "Copying";
|
203
273
|
KnownDatabaseState["OfflineSecondary"] = "OfflineSecondary";
|
204
274
|
})(exports.KnownDatabaseState || (exports.KnownDatabaseState = {}));
|
275
|
+
/** Known values of {@link LoginType} that the service accepts. */
|
276
|
+
exports.KnownLoginType = void 0;
|
205
277
|
(function (KnownLoginType) {
|
206
278
|
KnownLoginType["WindowsUser"] = "WindowsUser";
|
207
279
|
KnownLoginType["WindowsGroup"] = "WindowsGroup";
|
@@ -211,11 +283,15 @@ var coreLro = require('@azure/core-lro');
|
|
211
283
|
KnownLoginType["ExternalUser"] = "ExternalUser";
|
212
284
|
KnownLoginType["ExternalGroup"] = "ExternalGroup";
|
213
285
|
})(exports.KnownLoginType || (exports.KnownLoginType = {}));
|
286
|
+
/** Known values of {@link SchemaMigrationOption} that the service accepts. */
|
287
|
+
exports.KnownSchemaMigrationOption = void 0;
|
214
288
|
(function (KnownSchemaMigrationOption) {
|
215
289
|
KnownSchemaMigrationOption["None"] = "None";
|
216
290
|
KnownSchemaMigrationOption["ExtractFromSource"] = "ExtractFromSource";
|
217
291
|
KnownSchemaMigrationOption["UseStorageFile"] = "UseStorageFile";
|
218
292
|
})(exports.KnownSchemaMigrationOption || (exports.KnownSchemaMigrationOption = {}));
|
293
|
+
/** Known values of {@link MigrationState} that the service accepts. */
|
294
|
+
exports.KnownMigrationState = void 0;
|
219
295
|
(function (KnownMigrationState) {
|
220
296
|
KnownMigrationState["None"] = "None";
|
221
297
|
KnownMigrationState["InProgress"] = "InProgress";
|
@@ -225,6 +301,8 @@ var coreLro = require('@azure/core-lro');
|
|
225
301
|
KnownMigrationState["Skipped"] = "Skipped";
|
226
302
|
KnownMigrationState["Stopped"] = "Stopped";
|
227
303
|
})(exports.KnownMigrationState || (exports.KnownMigrationState = {}));
|
304
|
+
/** Known values of {@link SchemaMigrationStage} that the service accepts. */
|
305
|
+
exports.KnownSchemaMigrationStage = void 0;
|
228
306
|
(function (KnownSchemaMigrationStage) {
|
229
307
|
KnownSchemaMigrationStage["NotStarted"] = "NotStarted";
|
230
308
|
KnownSchemaMigrationStage["ValidatingInputs"] = "ValidatingInputs";
|
@@ -237,6 +315,8 @@ var coreLro = require('@azure/core-lro');
|
|
237
315
|
KnownSchemaMigrationStage["CompletedWithWarnings"] = "CompletedWithWarnings";
|
238
316
|
KnownSchemaMigrationStage["Failed"] = "Failed";
|
239
317
|
})(exports.KnownSchemaMigrationStage || (exports.KnownSchemaMigrationStage = {}));
|
318
|
+
/** Known values of {@link SyncDatabaseMigrationReportingState} that the service accepts. */
|
319
|
+
exports.KnownSyncDatabaseMigrationReportingState = void 0;
|
240
320
|
(function (KnownSyncDatabaseMigrationReportingState) {
|
241
321
|
KnownSyncDatabaseMigrationReportingState["Undefined"] = "UNDEFINED";
|
242
322
|
KnownSyncDatabaseMigrationReportingState["Configuring"] = "CONFIGURING";
|
@@ -257,6 +337,8 @@ var coreLro = require('@azure/core-lro');
|
|
257
337
|
KnownSyncDatabaseMigrationReportingState["BackupINProgress"] = "BACKUP_IN_PROGRESS";
|
258
338
|
KnownSyncDatabaseMigrationReportingState["BackupCompleted"] = "BACKUP_COMPLETED";
|
259
339
|
})(exports.KnownSyncDatabaseMigrationReportingState || (exports.KnownSyncDatabaseMigrationReportingState = {}));
|
340
|
+
/** Known values of {@link SyncTableMigrationState} that the service accepts. */
|
341
|
+
exports.KnownSyncTableMigrationState = void 0;
|
260
342
|
(function (KnownSyncTableMigrationState) {
|
261
343
|
KnownSyncTableMigrationState["BeforeLoad"] = "BEFORE_LOAD";
|
262
344
|
KnownSyncTableMigrationState["FullLoad"] = "FULL_LOAD";
|
@@ -265,6 +347,8 @@ var coreLro = require('@azure/core-lro');
|
|
265
347
|
KnownSyncTableMigrationState["Error"] = "ERROR";
|
266
348
|
KnownSyncTableMigrationState["Failed"] = "FAILED";
|
267
349
|
})(exports.KnownSyncTableMigrationState || (exports.KnownSyncTableMigrationState = {}));
|
350
|
+
/** Known values of {@link ScenarioSource} that the service accepts. */
|
351
|
+
exports.KnownScenarioSource = void 0;
|
268
352
|
(function (KnownScenarioSource) {
|
269
353
|
KnownScenarioSource["Access"] = "Access";
|
270
354
|
KnownScenarioSource["DB2"] = "DB2";
|
@@ -278,6 +362,8 @@ var coreLro = require('@azure/core-lro');
|
|
278
362
|
KnownScenarioSource["MySqlrds"] = "MySQLRDS";
|
279
363
|
KnownScenarioSource["PostgreSqlrds"] = "PostgreSQLRDS";
|
280
364
|
})(exports.KnownScenarioSource || (exports.KnownScenarioSource = {}));
|
365
|
+
/** Known values of {@link ScenarioTarget} that the service accepts. */
|
366
|
+
exports.KnownScenarioTarget = void 0;
|
281
367
|
(function (KnownScenarioTarget) {
|
282
368
|
KnownScenarioTarget["SQLServer"] = "SQLServer";
|
283
369
|
KnownScenarioTarget["Sqldb"] = "SQLDB";
|
@@ -287,6 +373,8 @@ var coreLro = require('@azure/core-lro');
|
|
287
373
|
KnownScenarioTarget["AzureDBForPostgresSQL"] = "AzureDBForPostgresSQL";
|
288
374
|
KnownScenarioTarget["MongoDB"] = "MongoDB";
|
289
375
|
})(exports.KnownScenarioTarget || (exports.KnownScenarioTarget = {}));
|
376
|
+
/** Known values of {@link ReplicateMigrationState} that the service accepts. */
|
377
|
+
exports.KnownReplicateMigrationState = void 0;
|
290
378
|
(function (KnownReplicateMigrationState) {
|
291
379
|
KnownReplicateMigrationState["Undefined"] = "UNDEFINED";
|
292
380
|
KnownReplicateMigrationState["Validating"] = "VALIDATING";
|
@@ -295,6 +383,8 @@ var coreLro = require('@azure/core-lro');
|
|
295
383
|
KnownReplicateMigrationState["ActionRequired"] = "ACTION_REQUIRED";
|
296
384
|
KnownReplicateMigrationState["Failed"] = "FAILED";
|
297
385
|
})(exports.KnownReplicateMigrationState || (exports.KnownReplicateMigrationState = {}));
|
386
|
+
/** Known values of {@link MigrationStatus} that the service accepts. */
|
387
|
+
exports.KnownMigrationStatus = void 0;
|
298
388
|
(function (KnownMigrationStatus) {
|
299
389
|
KnownMigrationStatus["Default"] = "Default";
|
300
390
|
KnownMigrationStatus["Connecting"] = "Connecting";
|
@@ -307,6 +397,8 @@ var coreLro = require('@azure/core-lro');
|
|
307
397
|
KnownMigrationStatus["Completed"] = "Completed";
|
308
398
|
KnownMigrationStatus["CompletedWithWarnings"] = "CompletedWithWarnings";
|
309
399
|
})(exports.KnownMigrationStatus || (exports.KnownMigrationStatus = {}));
|
400
|
+
/** Known values of {@link ValidationStatus} that the service accepts. */
|
401
|
+
exports.KnownValidationStatus = void 0;
|
310
402
|
(function (KnownValidationStatus) {
|
311
403
|
KnownValidationStatus["Default"] = "Default";
|
312
404
|
KnownValidationStatus["NotStarted"] = "NotStarted";
|
@@ -317,6 +409,8 @@ var coreLro = require('@azure/core-lro');
|
|
317
409
|
KnownValidationStatus["Stopped"] = "Stopped";
|
318
410
|
KnownValidationStatus["Failed"] = "Failed";
|
319
411
|
})(exports.KnownValidationStatus || (exports.KnownValidationStatus = {}));
|
412
|
+
/** Known values of {@link DatabaseMigrationStage} that the service accepts. */
|
413
|
+
exports.KnownDatabaseMigrationStage = void 0;
|
320
414
|
(function (KnownDatabaseMigrationStage) {
|
321
415
|
KnownDatabaseMigrationStage["None"] = "None";
|
322
416
|
KnownDatabaseMigrationStage["Initialize"] = "Initialize";
|
@@ -325,11 +419,15 @@ var coreLro = require('@azure/core-lro');
|
|
325
419
|
KnownDatabaseMigrationStage["Restore"] = "Restore";
|
326
420
|
KnownDatabaseMigrationStage["Completed"] = "Completed";
|
327
421
|
})(exports.KnownDatabaseMigrationStage || (exports.KnownDatabaseMigrationStage = {}));
|
422
|
+
/** Known values of {@link Severity} that the service accepts. */
|
423
|
+
exports.KnownSeverity = void 0;
|
328
424
|
(function (KnownSeverity) {
|
329
425
|
KnownSeverity["Message"] = "Message";
|
330
426
|
KnownSeverity["Warning"] = "Warning";
|
331
427
|
KnownSeverity["Error"] = "Error";
|
332
428
|
})(exports.KnownSeverity || (exports.KnownSeverity = {}));
|
429
|
+
/** Known values of {@link ObjectType} that the service accepts. */
|
430
|
+
exports.KnownObjectType = void 0;
|
333
431
|
(function (KnownObjectType) {
|
334
432
|
KnownObjectType["StoredProcedures"] = "StoredProcedures";
|
335
433
|
KnownObjectType["Table"] = "Table";
|
@@ -337,11 +435,15 @@ var coreLro = require('@azure/core-lro');
|
|
337
435
|
KnownObjectType["View"] = "View";
|
338
436
|
KnownObjectType["Function"] = "Function";
|
339
437
|
})(exports.KnownObjectType || (exports.KnownObjectType = {}));
|
438
|
+
/** Known values of {@link UpdateActionType} that the service accepts. */
|
439
|
+
exports.KnownUpdateActionType = void 0;
|
340
440
|
(function (KnownUpdateActionType) {
|
341
441
|
KnownUpdateActionType["DeletedOnTarget"] = "DeletedOnTarget";
|
342
442
|
KnownUpdateActionType["ChangedOnTarget"] = "ChangedOnTarget";
|
343
443
|
KnownUpdateActionType["AddedOnTarget"] = "AddedOnTarget";
|
344
444
|
})(exports.KnownUpdateActionType || (exports.KnownUpdateActionType = {}));
|
445
|
+
/** Known values of {@link DatabaseMigrationState} that the service accepts. */
|
446
|
+
exports.KnownDatabaseMigrationState = void 0;
|
345
447
|
(function (KnownDatabaseMigrationState) {
|
346
448
|
KnownDatabaseMigrationState["Undefined"] = "UNDEFINED";
|
347
449
|
KnownDatabaseMigrationState["Initial"] = "INITIAL";
|
@@ -354,10 +456,14 @@ var coreLro = require('@azure/core-lro');
|
|
354
456
|
KnownDatabaseMigrationState["Cancelled"] = "CANCELLED";
|
355
457
|
KnownDatabaseMigrationState["Failed"] = "FAILED";
|
356
458
|
})(exports.KnownDatabaseMigrationState || (exports.KnownDatabaseMigrationState = {}));
|
459
|
+
/** Known values of {@link BackupMode} that the service accepts. */
|
460
|
+
exports.KnownBackupMode = void 0;
|
357
461
|
(function (KnownBackupMode) {
|
358
462
|
KnownBackupMode["CreateBackup"] = "CreateBackup";
|
359
463
|
KnownBackupMode["ExistingBackup"] = "ExistingBackup";
|
360
464
|
})(exports.KnownBackupMode || (exports.KnownBackupMode = {}));
|
465
|
+
/** Known values of {@link LoginMigrationStage} that the service accepts. */
|
466
|
+
exports.KnownLoginMigrationStage = void 0;
|
361
467
|
(function (KnownLoginMigrationStage) {
|
362
468
|
KnownLoginMigrationStage["None"] = "None";
|
363
469
|
KnownLoginMigrationStage["Initialize"] = "Initialize";
|
@@ -369,39 +475,55 @@ var coreLro = require('@azure/core-lro');
|
|
369
475
|
KnownLoginMigrationStage["EstablishObjectPermissions"] = "EstablishObjectPermissions";
|
370
476
|
KnownLoginMigrationStage["Completed"] = "Completed";
|
371
477
|
})(exports.KnownLoginMigrationStage || (exports.KnownLoginMigrationStage = {}));
|
478
|
+
/** Known values of {@link SsisStoreType} that the service accepts. */
|
479
|
+
exports.KnownSsisStoreType = void 0;
|
372
480
|
(function (KnownSsisStoreType) {
|
373
481
|
KnownSsisStoreType["SsisCatalog"] = "SsisCatalog";
|
374
482
|
})(exports.KnownSsisStoreType || (exports.KnownSsisStoreType = {}));
|
483
|
+
/** Known values of {@link SsisMigrationOverwriteOption} that the service accepts. */
|
484
|
+
exports.KnownSsisMigrationOverwriteOption = void 0;
|
375
485
|
(function (KnownSsisMigrationOverwriteOption) {
|
376
486
|
KnownSsisMigrationOverwriteOption["Ignore"] = "Ignore";
|
377
487
|
KnownSsisMigrationOverwriteOption["Overwrite"] = "Overwrite";
|
378
488
|
})(exports.KnownSsisMigrationOverwriteOption || (exports.KnownSsisMigrationOverwriteOption = {}));
|
489
|
+
/** Known values of {@link SsisMigrationStage} that the service accepts. */
|
490
|
+
exports.KnownSsisMigrationStage = void 0;
|
379
491
|
(function (KnownSsisMigrationStage) {
|
380
492
|
KnownSsisMigrationStage["None"] = "None";
|
381
493
|
KnownSsisMigrationStage["Initialize"] = "Initialize";
|
382
494
|
KnownSsisMigrationStage["InProgress"] = "InProgress";
|
383
495
|
KnownSsisMigrationStage["Completed"] = "Completed";
|
384
496
|
})(exports.KnownSsisMigrationStage || (exports.KnownSsisMigrationStage = {}));
|
497
|
+
/** Known values of {@link MongoDbShardKeyOrder} that the service accepts. */
|
498
|
+
exports.KnownMongoDbShardKeyOrder = void 0;
|
385
499
|
(function (KnownMongoDbShardKeyOrder) {
|
386
500
|
KnownMongoDbShardKeyOrder["Forward"] = "Forward";
|
387
501
|
KnownMongoDbShardKeyOrder["Reverse"] = "Reverse";
|
388
502
|
KnownMongoDbShardKeyOrder["Hashed"] = "Hashed";
|
389
503
|
})(exports.KnownMongoDbShardKeyOrder || (exports.KnownMongoDbShardKeyOrder = {}));
|
504
|
+
/** Known values of {@link MongoDbClusterType} that the service accepts. */
|
505
|
+
exports.KnownMongoDbClusterType = void 0;
|
390
506
|
(function (KnownMongoDbClusterType) {
|
391
507
|
KnownMongoDbClusterType["BlobContainer"] = "BlobContainer";
|
392
508
|
KnownMongoDbClusterType["CosmosDb"] = "CosmosDb";
|
393
509
|
KnownMongoDbClusterType["MongoDb"] = "MongoDb";
|
394
510
|
})(exports.KnownMongoDbClusterType || (exports.KnownMongoDbClusterType = {}));
|
511
|
+
/** Known values of {@link MongoDbErrorType} that the service accepts. */
|
512
|
+
exports.KnownMongoDbErrorType = void 0;
|
395
513
|
(function (KnownMongoDbErrorType) {
|
396
514
|
KnownMongoDbErrorType["Error"] = "Error";
|
397
515
|
KnownMongoDbErrorType["ValidationError"] = "ValidationError";
|
398
516
|
KnownMongoDbErrorType["Warning"] = "Warning";
|
399
517
|
})(exports.KnownMongoDbErrorType || (exports.KnownMongoDbErrorType = {}));
|
518
|
+
/** Known values of {@link MongoDbProgressResultType} that the service accepts. */
|
519
|
+
exports.KnownMongoDbProgressResultType = void 0;
|
400
520
|
(function (KnownMongoDbProgressResultType) {
|
401
521
|
KnownMongoDbProgressResultType["Migration"] = "Migration";
|
402
522
|
KnownMongoDbProgressResultType["Database"] = "Database";
|
403
523
|
KnownMongoDbProgressResultType["Collection"] = "Collection";
|
404
524
|
})(exports.KnownMongoDbProgressResultType || (exports.KnownMongoDbProgressResultType = {}));
|
525
|
+
/** Known values of {@link MongoDbMigrationState} that the service accepts. */
|
526
|
+
exports.KnownMongoDbMigrationState = void 0;
|
405
527
|
(function (KnownMongoDbMigrationState) {
|
406
528
|
KnownMongoDbMigrationState["NotStarted"] = "NotStarted";
|
407
529
|
KnownMongoDbMigrationState["ValidatingInput"] = "ValidatingInput";
|
@@ -415,11 +537,15 @@ var coreLro = require('@azure/core-lro');
|
|
415
537
|
KnownMongoDbMigrationState["Canceled"] = "Canceled";
|
416
538
|
KnownMongoDbMigrationState["Failed"] = "Failed";
|
417
539
|
})(exports.KnownMongoDbMigrationState || (exports.KnownMongoDbMigrationState = {}));
|
540
|
+
/** Known values of {@link MongoDbReplication} that the service accepts. */
|
541
|
+
exports.KnownMongoDbReplication = void 0;
|
418
542
|
(function (KnownMongoDbReplication) {
|
419
543
|
KnownMongoDbReplication["Disabled"] = "Disabled";
|
420
544
|
KnownMongoDbReplication["OneTime"] = "OneTime";
|
421
545
|
KnownMongoDbReplication["Continuous"] = "Continuous";
|
422
546
|
})(exports.KnownMongoDbReplication || (exports.KnownMongoDbReplication = {}));
|
547
|
+
/** Known values of {@link DataMigrationResultCode} that the service accepts. */
|
548
|
+
exports.KnownDataMigrationResultCode = void 0;
|
423
549
|
(function (KnownDataMigrationResultCode) {
|
424
550
|
KnownDataMigrationResultCode["Initial"] = "Initial";
|
425
551
|
KnownDataMigrationResultCode["Completed"] = "Completed";
|
@@ -428,6 +554,8 @@ var coreLro = require('@azure/core-lro');
|
|
428
554
|
KnownDataMigrationResultCode["TargetObjectIsInaccessible"] = "TargetObjectIsInaccessible";
|
429
555
|
KnownDataMigrationResultCode["FatalError"] = "FatalError";
|
430
556
|
})(exports.KnownDataMigrationResultCode || (exports.KnownDataMigrationResultCode = {}));
|
557
|
+
/** Known values of {@link ErrorType} that the service accepts. */
|
558
|
+
exports.KnownErrorType = void 0;
|
431
559
|
(function (KnownErrorType) {
|
432
560
|
KnownErrorType["Default"] = "Default";
|
433
561
|
KnownErrorType["Warning"] = "Warning";
|
@@ -12897,7 +13025,7 @@ class DatabaseMigrationsSqlMiImpl {
|
|
12897
13025
|
* @param options The options parameters.
|
12898
13026
|
*/
|
12899
13027
|
get(resourceGroupName, managedInstanceName, targetDbName, options) {
|
12900
|
-
return this.client.sendOperationRequest({ resourceGroupName, managedInstanceName, targetDbName, options }, getOperationSpec);
|
13028
|
+
return this.client.sendOperationRequest({ resourceGroupName, managedInstanceName, targetDbName, options }, getOperationSpec$7);
|
12901
13029
|
}
|
12902
13030
|
/**
|
12903
13031
|
* Create or Update Database Migration resource.
|
@@ -12938,11 +13066,13 @@ class DatabaseMigrationsSqlMiImpl {
|
|
12938
13066
|
targetDbName,
|
12939
13067
|
parameters,
|
12940
13068
|
options
|
12941
|
-
}, createOrUpdateOperationSpec);
|
12942
|
-
|
13069
|
+
}, createOrUpdateOperationSpec$7);
|
13070
|
+
const poller = new coreLro.LroEngine(lro, {
|
12943
13071
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
12944
13072
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
12945
13073
|
});
|
13074
|
+
yield poller.poll();
|
13075
|
+
return poller;
|
12946
13076
|
});
|
12947
13077
|
}
|
12948
13078
|
/**
|
@@ -12999,11 +13129,13 @@ class DatabaseMigrationsSqlMiImpl {
|
|
12999
13129
|
targetDbName,
|
13000
13130
|
parameters,
|
13001
13131
|
options
|
13002
|
-
}, cancelOperationSpec);
|
13003
|
-
|
13132
|
+
}, cancelOperationSpec$3);
|
13133
|
+
const poller = new coreLro.LroEngine(lro, {
|
13004
13134
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
13005
13135
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
13006
13136
|
});
|
13137
|
+
yield poller.poll();
|
13138
|
+
return poller;
|
13007
13139
|
});
|
13008
13140
|
}
|
13009
13141
|
/**
|
@@ -13060,11 +13192,13 @@ class DatabaseMigrationsSqlMiImpl {
|
|
13060
13192
|
targetDbName,
|
13061
13193
|
parameters,
|
13062
13194
|
options
|
13063
|
-
}, cutoverOperationSpec);
|
13064
|
-
|
13195
|
+
}, cutoverOperationSpec$1);
|
13196
|
+
const poller = new coreLro.LroEngine(lro, {
|
13065
13197
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
13066
13198
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
13067
13199
|
});
|
13200
|
+
yield poller.poll();
|
13201
|
+
return poller;
|
13068
13202
|
});
|
13069
13203
|
}
|
13070
13204
|
/**
|
@@ -13084,8 +13218,8 @@ class DatabaseMigrationsSqlMiImpl {
|
|
13084
13218
|
}
|
13085
13219
|
}
|
13086
13220
|
// Operation Specifications
|
13087
|
-
const serializer =
|
13088
|
-
const getOperationSpec = {
|
13221
|
+
const serializer$a = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
13222
|
+
const getOperationSpec$7 = {
|
13089
13223
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}",
|
13090
13224
|
httpMethod: "GET",
|
13091
13225
|
responses: {
|
@@ -13107,9 +13241,9 @@ const getOperationSpec = {
|
|
13107
13241
|
subscriptionId
|
13108
13242
|
],
|
13109
13243
|
headerParameters: [accept],
|
13110
|
-
serializer
|
13244
|
+
serializer: serializer$a
|
13111
13245
|
};
|
13112
|
-
const createOrUpdateOperationSpec = {
|
13246
|
+
const createOrUpdateOperationSpec$7 = {
|
13113
13247
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}",
|
13114
13248
|
httpMethod: "PUT",
|
13115
13249
|
responses: {
|
@@ -13138,9 +13272,9 @@ const createOrUpdateOperationSpec = {
|
|
13138
13272
|
],
|
13139
13273
|
headerParameters: [accept, contentType],
|
13140
13274
|
mediaType: "json",
|
13141
|
-
serializer
|
13275
|
+
serializer: serializer$a
|
13142
13276
|
};
|
13143
|
-
const cancelOperationSpec = {
|
13277
|
+
const cancelOperationSpec$3 = {
|
13144
13278
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}/cancel",
|
13145
13279
|
httpMethod: "POST",
|
13146
13280
|
responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} },
|
@@ -13155,9 +13289,9 @@ const cancelOperationSpec = {
|
|
13155
13289
|
],
|
13156
13290
|
headerParameters: [contentType],
|
13157
13291
|
mediaType: "json",
|
13158
|
-
serializer
|
13292
|
+
serializer: serializer$a
|
13159
13293
|
};
|
13160
|
-
const cutoverOperationSpec = {
|
13294
|
+
const cutoverOperationSpec$1 = {
|
13161
13295
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}/cutover",
|
13162
13296
|
httpMethod: "POST",
|
13163
13297
|
responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} },
|
@@ -13172,7 +13306,7 @@ const cutoverOperationSpec = {
|
|
13172
13306
|
],
|
13173
13307
|
headerParameters: [contentType],
|
13174
13308
|
mediaType: "json",
|
13175
|
-
serializer
|
13309
|
+
serializer: serializer$a
|
13176
13310
|
};
|
13177
13311
|
|
13178
13312
|
/*
|
@@ -13200,7 +13334,7 @@ class DatabaseMigrationsSqlVmImpl {
|
|
13200
13334
|
* @param options The options parameters.
|
13201
13335
|
*/
|
13202
13336
|
get(resourceGroupName, sqlVirtualMachineName, targetDbName, options) {
|
13203
|
-
return this.client.sendOperationRequest({ resourceGroupName, sqlVirtualMachineName, targetDbName, options }, getOperationSpec$
|
13337
|
+
return this.client.sendOperationRequest({ resourceGroupName, sqlVirtualMachineName, targetDbName, options }, getOperationSpec$6);
|
13204
13338
|
}
|
13205
13339
|
/**
|
13206
13340
|
* Create or Update Database Migration resource.
|
@@ -13241,11 +13375,13 @@ class DatabaseMigrationsSqlVmImpl {
|
|
13241
13375
|
targetDbName,
|
13242
13376
|
parameters,
|
13243
13377
|
options
|
13244
|
-
}, createOrUpdateOperationSpec$
|
13245
|
-
|
13378
|
+
}, createOrUpdateOperationSpec$6);
|
13379
|
+
const poller = new coreLro.LroEngine(lro, {
|
13246
13380
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
13247
13381
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
13248
13382
|
});
|
13383
|
+
yield poller.poll();
|
13384
|
+
return poller;
|
13249
13385
|
});
|
13250
13386
|
}
|
13251
13387
|
/**
|
@@ -13302,11 +13438,13 @@ class DatabaseMigrationsSqlVmImpl {
|
|
13302
13438
|
targetDbName,
|
13303
13439
|
parameters,
|
13304
13440
|
options
|
13305
|
-
}, cancelOperationSpec$
|
13306
|
-
|
13441
|
+
}, cancelOperationSpec$2);
|
13442
|
+
const poller = new coreLro.LroEngine(lro, {
|
13307
13443
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
13308
13444
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
13309
13445
|
});
|
13446
|
+
yield poller.poll();
|
13447
|
+
return poller;
|
13310
13448
|
});
|
13311
13449
|
}
|
13312
13450
|
/**
|
@@ -13363,11 +13501,13 @@ class DatabaseMigrationsSqlVmImpl {
|
|
13363
13501
|
targetDbName,
|
13364
13502
|
parameters,
|
13365
13503
|
options
|
13366
|
-
}, cutoverOperationSpec
|
13367
|
-
|
13504
|
+
}, cutoverOperationSpec);
|
13505
|
+
const poller = new coreLro.LroEngine(lro, {
|
13368
13506
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
13369
13507
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
13370
13508
|
});
|
13509
|
+
yield poller.poll();
|
13510
|
+
return poller;
|
13371
13511
|
});
|
13372
13512
|
}
|
13373
13513
|
/**
|
@@ -13387,8 +13527,8 @@ class DatabaseMigrationsSqlVmImpl {
|
|
13387
13527
|
}
|
13388
13528
|
}
|
13389
13529
|
// Operation Specifications
|
13390
|
-
const serializer$
|
13391
|
-
const getOperationSpec$
|
13530
|
+
const serializer$9 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
13531
|
+
const getOperationSpec$6 = {
|
13392
13532
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}",
|
13393
13533
|
httpMethod: "GET",
|
13394
13534
|
responses: {
|
@@ -13410,9 +13550,9 @@ const getOperationSpec$1 = {
|
|
13410
13550
|
sqlVirtualMachineName
|
13411
13551
|
],
|
13412
13552
|
headerParameters: [accept],
|
13413
|
-
serializer: serializer$
|
13553
|
+
serializer: serializer$9
|
13414
13554
|
};
|
13415
|
-
const createOrUpdateOperationSpec$
|
13555
|
+
const createOrUpdateOperationSpec$6 = {
|
13416
13556
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}",
|
13417
13557
|
httpMethod: "PUT",
|
13418
13558
|
responses: {
|
@@ -13441,9 +13581,9 @@ const createOrUpdateOperationSpec$1 = {
|
|
13441
13581
|
],
|
13442
13582
|
headerParameters: [accept, contentType],
|
13443
13583
|
mediaType: "json",
|
13444
|
-
serializer: serializer$
|
13584
|
+
serializer: serializer$9
|
13445
13585
|
};
|
13446
|
-
const cancelOperationSpec$
|
13586
|
+
const cancelOperationSpec$2 = {
|
13447
13587
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}/cancel",
|
13448
13588
|
httpMethod: "POST",
|
13449
13589
|
responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} },
|
@@ -13458,9 +13598,9 @@ const cancelOperationSpec$1 = {
|
|
13458
13598
|
],
|
13459
13599
|
headerParameters: [contentType],
|
13460
13600
|
mediaType: "json",
|
13461
|
-
serializer: serializer$
|
13601
|
+
serializer: serializer$9
|
13462
13602
|
};
|
13463
|
-
const cutoverOperationSpec
|
13603
|
+
const cutoverOperationSpec = {
|
13464
13604
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}/cutover",
|
13465
13605
|
httpMethod: "POST",
|
13466
13606
|
responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} },
|
@@ -13475,7 +13615,7 @@ const cutoverOperationSpec$1 = {
|
|
13475
13615
|
],
|
13476
13616
|
headerParameters: [contentType],
|
13477
13617
|
mediaType: "json",
|
13478
|
-
serializer: serializer$
|
13618
|
+
serializer: serializer$9
|
13479
13619
|
};
|
13480
13620
|
|
13481
13621
|
/*
|
@@ -13548,7 +13688,7 @@ class OperationsImpl {
|
|
13548
13688
|
* @param options The options parameters.
|
13549
13689
|
*/
|
13550
13690
|
_list(options) {
|
13551
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
13691
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$6);
|
13552
13692
|
}
|
13553
13693
|
/**
|
13554
13694
|
* ListNext
|
@@ -13556,12 +13696,12 @@ class OperationsImpl {
|
|
13556
13696
|
* @param options The options parameters.
|
13557
13697
|
*/
|
13558
13698
|
_listNext(nextLink, options) {
|
13559
|
-
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
13699
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$6);
|
13560
13700
|
}
|
13561
13701
|
}
|
13562
13702
|
// Operation Specifications
|
13563
|
-
const serializer$
|
13564
|
-
const listOperationSpec = {
|
13703
|
+
const serializer$8 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
13704
|
+
const listOperationSpec$6 = {
|
13565
13705
|
path: "/providers/Microsoft.DataMigration/operations",
|
13566
13706
|
httpMethod: "GET",
|
13567
13707
|
responses: {
|
@@ -13573,9 +13713,9 @@ const listOperationSpec = {
|
|
13573
13713
|
queryParameters: [apiVersion],
|
13574
13714
|
urlParameters: [$host],
|
13575
13715
|
headerParameters: [accept],
|
13576
|
-
serializer: serializer$
|
13716
|
+
serializer: serializer$8
|
13577
13717
|
};
|
13578
|
-
const listNextOperationSpec = {
|
13718
|
+
const listNextOperationSpec$6 = {
|
13579
13719
|
path: "{nextLink}",
|
13580
13720
|
httpMethod: "GET",
|
13581
13721
|
responses: {
|
@@ -13587,7 +13727,7 @@ const listNextOperationSpec = {
|
|
13587
13727
|
queryParameters: [apiVersion],
|
13588
13728
|
urlParameters: [$host, nextLink],
|
13589
13729
|
headerParameters: [accept],
|
13590
|
-
serializer: serializer$
|
13730
|
+
serializer: serializer$8
|
13591
13731
|
};
|
13592
13732
|
|
13593
13733
|
/*
|
@@ -13764,7 +13904,7 @@ class SqlMigrationServicesImpl {
|
|
13764
13904
|
* @param options The options parameters.
|
13765
13905
|
*/
|
13766
13906
|
get(resourceGroupName, sqlMigrationServiceName, options) {
|
13767
|
-
return this.client.sendOperationRequest({ resourceGroupName, sqlMigrationServiceName, options }, getOperationSpec$
|
13907
|
+
return this.client.sendOperationRequest({ resourceGroupName, sqlMigrationServiceName, options }, getOperationSpec$5);
|
13768
13908
|
}
|
13769
13909
|
/**
|
13770
13910
|
* Create or Update SQL Migration Service.
|
@@ -13798,11 +13938,13 @@ class SqlMigrationServicesImpl {
|
|
13798
13938
|
}
|
13799
13939
|
};
|
13800
13940
|
});
|
13801
|
-
const lro = new LroImpl(sendOperation, { resourceGroupName, sqlMigrationServiceName, parameters, options }, createOrUpdateOperationSpec$
|
13802
|
-
|
13941
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, sqlMigrationServiceName, parameters, options }, createOrUpdateOperationSpec$5);
|
13942
|
+
const poller = new coreLro.LroEngine(lro, {
|
13803
13943
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
13804
13944
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
13805
13945
|
});
|
13946
|
+
yield poller.poll();
|
13947
|
+
return poller;
|
13806
13948
|
});
|
13807
13949
|
}
|
13808
13950
|
/**
|
@@ -13850,11 +13992,13 @@ class SqlMigrationServicesImpl {
|
|
13850
13992
|
}
|
13851
13993
|
};
|
13852
13994
|
});
|
13853
|
-
const lro = new LroImpl(sendOperation, { resourceGroupName, sqlMigrationServiceName, options }, deleteOperationSpec);
|
13854
|
-
|
13995
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, sqlMigrationServiceName, options }, deleteOperationSpec$5);
|
13996
|
+
const poller = new coreLro.LroEngine(lro, {
|
13855
13997
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
13856
13998
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
13857
13999
|
});
|
14000
|
+
yield poller.poll();
|
14001
|
+
return poller;
|
13858
14002
|
});
|
13859
14003
|
}
|
13860
14004
|
/**
|
@@ -13902,11 +14046,13 @@ class SqlMigrationServicesImpl {
|
|
13902
14046
|
}
|
13903
14047
|
};
|
13904
14048
|
});
|
13905
|
-
const lro = new LroImpl(sendOperation, { resourceGroupName, sqlMigrationServiceName, parameters, options }, updateOperationSpec);
|
13906
|
-
|
14049
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, sqlMigrationServiceName, parameters, options }, updateOperationSpec$5);
|
14050
|
+
const poller = new coreLro.LroEngine(lro, {
|
13907
14051
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
13908
14052
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
13909
14053
|
});
|
14054
|
+
yield poller.poll();
|
14055
|
+
return poller;
|
13910
14056
|
});
|
13911
14057
|
}
|
13912
14058
|
/**
|
@@ -13930,7 +14076,7 @@ class SqlMigrationServicesImpl {
|
|
13930
14076
|
* @param options The options parameters.
|
13931
14077
|
*/
|
13932
14078
|
_listByResourceGroup(resourceGroupName, options) {
|
13933
|
-
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
14079
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec$1);
|
13934
14080
|
}
|
13935
14081
|
/**
|
13936
14082
|
* Retrieve the List of Authentication Keys for Self Hosted Integration Runtime.
|
@@ -13999,7 +14145,7 @@ class SqlMigrationServicesImpl {
|
|
13999
14145
|
* @param options The options parameters.
|
14000
14146
|
*/
|
14001
14147
|
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
14002
|
-
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
|
14148
|
+
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec$1);
|
14003
14149
|
}
|
14004
14150
|
/**
|
14005
14151
|
* ListMigrationsNext
|
@@ -14022,8 +14168,8 @@ class SqlMigrationServicesImpl {
|
|
14022
14168
|
}
|
14023
14169
|
}
|
14024
14170
|
// Operation Specifications
|
14025
|
-
const serializer$
|
14026
|
-
const getOperationSpec$
|
14171
|
+
const serializer$7 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
14172
|
+
const getOperationSpec$5 = {
|
14027
14173
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}",
|
14028
14174
|
httpMethod: "GET",
|
14029
14175
|
responses: {
|
@@ -14040,9 +14186,9 @@ const getOperationSpec$2 = {
|
|
14040
14186
|
sqlMigrationServiceName
|
14041
14187
|
],
|
14042
14188
|
headerParameters: [accept],
|
14043
|
-
serializer: serializer$
|
14189
|
+
serializer: serializer$7
|
14044
14190
|
};
|
14045
|
-
const createOrUpdateOperationSpec$
|
14191
|
+
const createOrUpdateOperationSpec$5 = {
|
14046
14192
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}",
|
14047
14193
|
httpMethod: "PUT",
|
14048
14194
|
responses: {
|
@@ -14070,9 +14216,9 @@ const createOrUpdateOperationSpec$2 = {
|
|
14070
14216
|
],
|
14071
14217
|
headerParameters: [accept, contentType],
|
14072
14218
|
mediaType: "json",
|
14073
|
-
serializer: serializer$
|
14219
|
+
serializer: serializer$7
|
14074
14220
|
};
|
14075
|
-
const deleteOperationSpec = {
|
14221
|
+
const deleteOperationSpec$5 = {
|
14076
14222
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}",
|
14077
14223
|
httpMethod: "DELETE",
|
14078
14224
|
responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} },
|
@@ -14083,9 +14229,9 @@ const deleteOperationSpec = {
|
|
14083
14229
|
subscriptionId,
|
14084
14230
|
sqlMigrationServiceName
|
14085
14231
|
],
|
14086
|
-
serializer: serializer$
|
14232
|
+
serializer: serializer$7
|
14087
14233
|
};
|
14088
|
-
const updateOperationSpec = {
|
14234
|
+
const updateOperationSpec$5 = {
|
14089
14235
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}",
|
14090
14236
|
httpMethod: "PATCH",
|
14091
14237
|
responses: {
|
@@ -14113,9 +14259,9 @@ const updateOperationSpec = {
|
|
14113
14259
|
],
|
14114
14260
|
headerParameters: [accept, contentType],
|
14115
14261
|
mediaType: "json",
|
14116
|
-
serializer: serializer$
|
14262
|
+
serializer: serializer$7
|
14117
14263
|
};
|
14118
|
-
const listByResourceGroupOperationSpec = {
|
14264
|
+
const listByResourceGroupOperationSpec$1 = {
|
14119
14265
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices",
|
14120
14266
|
httpMethod: "GET",
|
14121
14267
|
responses: {
|
@@ -14131,7 +14277,7 @@ const listByResourceGroupOperationSpec = {
|
|
14131
14277
|
subscriptionId
|
14132
14278
|
],
|
14133
14279
|
headerParameters: [accept],
|
14134
|
-
serializer: serializer$
|
14280
|
+
serializer: serializer$7
|
14135
14281
|
};
|
14136
14282
|
const listAuthKeysOperationSpec = {
|
14137
14283
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}/listAuthKeys",
|
@@ -14150,7 +14296,7 @@ const listAuthKeysOperationSpec = {
|
|
14150
14296
|
sqlMigrationServiceName
|
14151
14297
|
],
|
14152
14298
|
headerParameters: [accept],
|
14153
|
-
serializer: serializer$
|
14299
|
+
serializer: serializer$7
|
14154
14300
|
};
|
14155
14301
|
const regenerateAuthKeysOperationSpec = {
|
14156
14302
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}/regenerateAuthKeys",
|
@@ -14171,7 +14317,7 @@ const regenerateAuthKeysOperationSpec = {
|
|
14171
14317
|
],
|
14172
14318
|
headerParameters: [accept, contentType],
|
14173
14319
|
mediaType: "json",
|
14174
|
-
serializer: serializer$
|
14320
|
+
serializer: serializer$7
|
14175
14321
|
};
|
14176
14322
|
const deleteNodeOperationSpec = {
|
14177
14323
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}/deleteNode",
|
@@ -14192,7 +14338,7 @@ const deleteNodeOperationSpec = {
|
|
14192
14338
|
],
|
14193
14339
|
headerParameters: [accept, contentType],
|
14194
14340
|
mediaType: "json",
|
14195
|
-
serializer: serializer$
|
14341
|
+
serializer: serializer$7
|
14196
14342
|
};
|
14197
14343
|
const listMigrationsOperationSpec = {
|
14198
14344
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}/listMigrations",
|
@@ -14211,7 +14357,7 @@ const listMigrationsOperationSpec = {
|
|
14211
14357
|
sqlMigrationServiceName
|
14212
14358
|
],
|
14213
14359
|
headerParameters: [accept],
|
14214
|
-
serializer: serializer$
|
14360
|
+
serializer: serializer$7
|
14215
14361
|
};
|
14216
14362
|
const listMonitoringDataOperationSpec = {
|
14217
14363
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}/listMonitoringData",
|
@@ -14230,7 +14376,7 @@ const listMonitoringDataOperationSpec = {
|
|
14230
14376
|
sqlMigrationServiceName
|
14231
14377
|
],
|
14232
14378
|
headerParameters: [accept],
|
14233
|
-
serializer: serializer$
|
14379
|
+
serializer: serializer$7
|
14234
14380
|
};
|
14235
14381
|
const listBySubscriptionOperationSpec = {
|
14236
14382
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.DataMigration/sqlMigrationServices",
|
@@ -14244,9 +14390,9 @@ const listBySubscriptionOperationSpec = {
|
|
14244
14390
|
queryParameters: [apiVersion],
|
14245
14391
|
urlParameters: [$host, subscriptionId],
|
14246
14392
|
headerParameters: [accept],
|
14247
|
-
serializer: serializer$
|
14393
|
+
serializer: serializer$7
|
14248
14394
|
};
|
14249
|
-
const listByResourceGroupNextOperationSpec = {
|
14395
|
+
const listByResourceGroupNextOperationSpec$1 = {
|
14250
14396
|
path: "{nextLink}",
|
14251
14397
|
httpMethod: "GET",
|
14252
14398
|
responses: {
|
@@ -14263,7 +14409,7 @@ const listByResourceGroupNextOperationSpec = {
|
|
14263
14409
|
nextLink
|
14264
14410
|
],
|
14265
14411
|
headerParameters: [accept],
|
14266
|
-
serializer: serializer$
|
14412
|
+
serializer: serializer$7
|
14267
14413
|
};
|
14268
14414
|
const listMigrationsNextOperationSpec = {
|
14269
14415
|
path: "{nextLink}",
|
@@ -14283,7 +14429,7 @@ const listMigrationsNextOperationSpec = {
|
|
14283
14429
|
sqlMigrationServiceName
|
14284
14430
|
],
|
14285
14431
|
headerParameters: [accept],
|
14286
|
-
serializer: serializer$
|
14432
|
+
serializer: serializer$7
|
14287
14433
|
};
|
14288
14434
|
const listBySubscriptionNextOperationSpec = {
|
14289
14435
|
path: "{nextLink}",
|
@@ -14301,7 +14447,7 @@ const listBySubscriptionNextOperationSpec = {
|
|
14301
14447
|
nextLink
|
14302
14448
|
],
|
14303
14449
|
headerParameters: [accept],
|
14304
|
-
serializer: serializer$
|
14450
|
+
serializer: serializer$7
|
14305
14451
|
};
|
14306
14452
|
|
14307
14453
|
/*
|
@@ -14374,7 +14520,7 @@ class ResourceSkusImpl {
|
|
14374
14520
|
* @param options The options parameters.
|
14375
14521
|
*/
|
14376
14522
|
_listSkus(options) {
|
14377
|
-
return this.client.sendOperationRequest({ options }, listSkusOperationSpec);
|
14523
|
+
return this.client.sendOperationRequest({ options }, listSkusOperationSpec$1);
|
14378
14524
|
}
|
14379
14525
|
/**
|
14380
14526
|
* ListSkusNext
|
@@ -14382,12 +14528,12 @@ class ResourceSkusImpl {
|
|
14382
14528
|
* @param options The options parameters.
|
14383
14529
|
*/
|
14384
14530
|
_listSkusNext(nextLink, options) {
|
14385
|
-
return this.client.sendOperationRequest({ nextLink, options }, listSkusNextOperationSpec);
|
14531
|
+
return this.client.sendOperationRequest({ nextLink, options }, listSkusNextOperationSpec$1);
|
14386
14532
|
}
|
14387
14533
|
}
|
14388
14534
|
// Operation Specifications
|
14389
|
-
const serializer$
|
14390
|
-
const listSkusOperationSpec = {
|
14535
|
+
const serializer$6 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
14536
|
+
const listSkusOperationSpec$1 = {
|
14391
14537
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.DataMigration/skus",
|
14392
14538
|
httpMethod: "GET",
|
14393
14539
|
responses: {
|
@@ -14401,9 +14547,9 @@ const listSkusOperationSpec = {
|
|
14401
14547
|
queryParameters: [apiVersion],
|
14402
14548
|
urlParameters: [$host, subscriptionId],
|
14403
14549
|
headerParameters: [accept],
|
14404
|
-
serializer: serializer$
|
14550
|
+
serializer: serializer$6
|
14405
14551
|
};
|
14406
|
-
const listSkusNextOperationSpec = {
|
14552
|
+
const listSkusNextOperationSpec$1 = {
|
14407
14553
|
path: "{nextLink}",
|
14408
14554
|
httpMethod: "GET",
|
14409
14555
|
responses: {
|
@@ -14421,7 +14567,7 @@ const listSkusNextOperationSpec = {
|
|
14421
14567
|
nextLink
|
14422
14568
|
],
|
14423
14569
|
headerParameters: [accept],
|
14424
|
-
serializer: serializer$
|
14570
|
+
serializer: serializer$6
|
14425
14571
|
};
|
14426
14572
|
|
14427
14573
|
/*
|
@@ -14629,11 +14775,13 @@ class ServicesImpl {
|
|
14629
14775
|
}
|
14630
14776
|
};
|
14631
14777
|
});
|
14632
|
-
const lro = new LroImpl(sendOperation, { groupName, serviceName, parameters, options }, createOrUpdateOperationSpec$
|
14633
|
-
|
14778
|
+
const lro = new LroImpl(sendOperation, { groupName, serviceName, parameters, options }, createOrUpdateOperationSpec$4);
|
14779
|
+
const poller = new coreLro.LroEngine(lro, {
|
14634
14780
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
14635
14781
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
14636
14782
|
});
|
14783
|
+
yield poller.poll();
|
14784
|
+
return poller;
|
14637
14785
|
});
|
14638
14786
|
}
|
14639
14787
|
/**
|
@@ -14664,7 +14812,7 @@ class ServicesImpl {
|
|
14664
14812
|
* @param options The options parameters.
|
14665
14813
|
*/
|
14666
14814
|
get(groupName, serviceName, options) {
|
14667
|
-
return this.client.sendOperationRequest({ groupName, serviceName, options }, getOperationSpec$
|
14815
|
+
return this.client.sendOperationRequest({ groupName, serviceName, options }, getOperationSpec$4);
|
14668
14816
|
}
|
14669
14817
|
/**
|
14670
14818
|
* The services resource is the top-level resource that represents the Database Migration Service. The
|
@@ -14697,11 +14845,13 @@ class ServicesImpl {
|
|
14697
14845
|
}
|
14698
14846
|
};
|
14699
14847
|
});
|
14700
|
-
const lro = new LroImpl(sendOperation, { groupName, serviceName, options }, deleteOperationSpec$
|
14701
|
-
|
14848
|
+
const lro = new LroImpl(sendOperation, { groupName, serviceName, options }, deleteOperationSpec$4);
|
14849
|
+
const poller = new coreLro.LroEngine(lro, {
|
14702
14850
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
14703
14851
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
14704
14852
|
});
|
14853
|
+
yield poller.poll();
|
14854
|
+
return poller;
|
14705
14855
|
});
|
14706
14856
|
}
|
14707
14857
|
/**
|
@@ -14751,11 +14901,13 @@ class ServicesImpl {
|
|
14751
14901
|
}
|
14752
14902
|
};
|
14753
14903
|
});
|
14754
|
-
const lro = new LroImpl(sendOperation, { groupName, serviceName, parameters, options }, updateOperationSpec$
|
14755
|
-
|
14904
|
+
const lro = new LroImpl(sendOperation, { groupName, serviceName, parameters, options }, updateOperationSpec$4);
|
14905
|
+
const poller = new coreLro.LroEngine(lro, {
|
14756
14906
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
14757
14907
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
14758
14908
|
});
|
14909
|
+
yield poller.poll();
|
14910
|
+
return poller;
|
14759
14911
|
});
|
14760
14912
|
}
|
14761
14913
|
/**
|
@@ -14816,10 +14968,12 @@ class ServicesImpl {
|
|
14816
14968
|
};
|
14817
14969
|
});
|
14818
14970
|
const lro = new LroImpl(sendOperation, { groupName, serviceName, options }, startOperationSpec);
|
14819
|
-
|
14971
|
+
const poller = new coreLro.LroEngine(lro, {
|
14820
14972
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
14821
14973
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
14822
14974
|
});
|
14975
|
+
yield poller.poll();
|
14976
|
+
return poller;
|
14823
14977
|
});
|
14824
14978
|
}
|
14825
14979
|
/**
|
@@ -14868,10 +15022,12 @@ class ServicesImpl {
|
|
14868
15022
|
};
|
14869
15023
|
});
|
14870
15024
|
const lro = new LroImpl(sendOperation, { groupName, serviceName, options }, stopOperationSpec);
|
14871
|
-
|
15025
|
+
const poller = new coreLro.LroEngine(lro, {
|
14872
15026
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
14873
15027
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
14874
15028
|
});
|
15029
|
+
yield poller.poll();
|
15030
|
+
return poller;
|
14875
15031
|
});
|
14876
15032
|
}
|
14877
15033
|
/**
|
@@ -14896,7 +15052,7 @@ class ServicesImpl {
|
|
14896
15052
|
* @param options The options parameters.
|
14897
15053
|
*/
|
14898
15054
|
_listSkus(groupName, serviceName, options) {
|
14899
|
-
return this.client.sendOperationRequest({ groupName, serviceName, options }, listSkusOperationSpec
|
15055
|
+
return this.client.sendOperationRequest({ groupName, serviceName, options }, listSkusOperationSpec);
|
14900
15056
|
}
|
14901
15057
|
/**
|
14902
15058
|
* This method checks whether a proposed nested resource name is valid and available.
|
@@ -14915,7 +15071,7 @@ class ServicesImpl {
|
|
14915
15071
|
* @param options The options parameters.
|
14916
15072
|
*/
|
14917
15073
|
_listByResourceGroup(groupName, options) {
|
14918
|
-
return this.client.sendOperationRequest({ groupName, options }, listByResourceGroupOperationSpec
|
15074
|
+
return this.client.sendOperationRequest({ groupName, options }, listByResourceGroupOperationSpec);
|
14919
15075
|
}
|
14920
15076
|
/**
|
14921
15077
|
* The services resource is the top-level resource that represents the Database Migration Service. This
|
@@ -14923,7 +15079,7 @@ class ServicesImpl {
|
|
14923
15079
|
* @param options The options parameters.
|
14924
15080
|
*/
|
14925
15081
|
_list(options) {
|
14926
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec$
|
15082
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$5);
|
14927
15083
|
}
|
14928
15084
|
/**
|
14929
15085
|
* This method checks whether a proposed top-level resource name is valid and available.
|
@@ -14942,7 +15098,7 @@ class ServicesImpl {
|
|
14942
15098
|
* @param options The options parameters.
|
14943
15099
|
*/
|
14944
15100
|
_listSkusNext(groupName, serviceName, nextLink, options) {
|
14945
|
-
return this.client.sendOperationRequest({ groupName, serviceName, nextLink, options }, listSkusNextOperationSpec
|
15101
|
+
return this.client.sendOperationRequest({ groupName, serviceName, nextLink, options }, listSkusNextOperationSpec);
|
14946
15102
|
}
|
14947
15103
|
/**
|
14948
15104
|
* ListByResourceGroupNext
|
@@ -14951,7 +15107,7 @@ class ServicesImpl {
|
|
14951
15107
|
* @param options The options parameters.
|
14952
15108
|
*/
|
14953
15109
|
_listByResourceGroupNext(groupName, nextLink, options) {
|
14954
|
-
return this.client.sendOperationRequest({ groupName, nextLink, options }, listByResourceGroupNextOperationSpec
|
15110
|
+
return this.client.sendOperationRequest({ groupName, nextLink, options }, listByResourceGroupNextOperationSpec);
|
14955
15111
|
}
|
14956
15112
|
/**
|
14957
15113
|
* ListNext
|
@@ -14959,12 +15115,12 @@ class ServicesImpl {
|
|
14959
15115
|
* @param options The options parameters.
|
14960
15116
|
*/
|
14961
15117
|
_listNext(nextLink, options) {
|
14962
|
-
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$
|
15118
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$5);
|
14963
15119
|
}
|
14964
15120
|
}
|
14965
15121
|
// Operation Specifications
|
14966
|
-
const serializer$5 =
|
14967
|
-
const createOrUpdateOperationSpec$
|
15122
|
+
const serializer$5 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
15123
|
+
const createOrUpdateOperationSpec$4 = {
|
14968
15124
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}",
|
14969
15125
|
httpMethod: "PUT",
|
14970
15126
|
responses: {
|
@@ -14996,7 +15152,7 @@ const createOrUpdateOperationSpec$3 = {
|
|
14996
15152
|
mediaType: "json",
|
14997
15153
|
serializer: serializer$5
|
14998
15154
|
};
|
14999
|
-
const getOperationSpec$
|
15155
|
+
const getOperationSpec$4 = {
|
15000
15156
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}",
|
15001
15157
|
httpMethod: "GET",
|
15002
15158
|
responses: {
|
@@ -15017,7 +15173,7 @@ const getOperationSpec$3 = {
|
|
15017
15173
|
headerParameters: [accept],
|
15018
15174
|
serializer: serializer$5
|
15019
15175
|
};
|
15020
|
-
const deleteOperationSpec$
|
15176
|
+
const deleteOperationSpec$4 = {
|
15021
15177
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}",
|
15022
15178
|
httpMethod: "DELETE",
|
15023
15179
|
responses: {
|
@@ -15039,7 +15195,7 @@ const deleteOperationSpec$1 = {
|
|
15039
15195
|
headerParameters: [accept],
|
15040
15196
|
serializer: serializer$5
|
15041
15197
|
};
|
15042
|
-
const updateOperationSpec$
|
15198
|
+
const updateOperationSpec$4 = {
|
15043
15199
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}",
|
15044
15200
|
httpMethod: "PATCH",
|
15045
15201
|
responses: {
|
@@ -15136,7 +15292,7 @@ const stopOperationSpec = {
|
|
15136
15292
|
headerParameters: [accept],
|
15137
15293
|
serializer: serializer$5
|
15138
15294
|
};
|
15139
|
-
const listSkusOperationSpec
|
15295
|
+
const listSkusOperationSpec = {
|
15140
15296
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/skus",
|
15141
15297
|
httpMethod: "GET",
|
15142
15298
|
responses: {
|
@@ -15180,7 +15336,7 @@ const checkChildrenNameAvailabilityOperationSpec = {
|
|
15180
15336
|
mediaType: "json",
|
15181
15337
|
serializer: serializer$5
|
15182
15338
|
};
|
15183
|
-
const listByResourceGroupOperationSpec
|
15339
|
+
const listByResourceGroupOperationSpec = {
|
15184
15340
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services",
|
15185
15341
|
httpMethod: "GET",
|
15186
15342
|
responses: {
|
@@ -15200,7 +15356,7 @@ const listByResourceGroupOperationSpec$1 = {
|
|
15200
15356
|
headerParameters: [accept],
|
15201
15357
|
serializer: serializer$5
|
15202
15358
|
};
|
15203
|
-
const listOperationSpec$
|
15359
|
+
const listOperationSpec$5 = {
|
15204
15360
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.DataMigration/services",
|
15205
15361
|
httpMethod: "GET",
|
15206
15362
|
responses: {
|
@@ -15238,7 +15394,7 @@ const checkNameAvailabilityOperationSpec = {
|
|
15238
15394
|
mediaType: "json",
|
15239
15395
|
serializer: serializer$5
|
15240
15396
|
};
|
15241
|
-
const listSkusNextOperationSpec
|
15397
|
+
const listSkusNextOperationSpec = {
|
15242
15398
|
path: "{nextLink}",
|
15243
15399
|
httpMethod: "GET",
|
15244
15400
|
responses: {
|
@@ -15260,7 +15416,7 @@ const listSkusNextOperationSpec$1 = {
|
|
15260
15416
|
headerParameters: [accept],
|
15261
15417
|
serializer: serializer$5
|
15262
15418
|
};
|
15263
|
-
const listByResourceGroupNextOperationSpec
|
15419
|
+
const listByResourceGroupNextOperationSpec = {
|
15264
15420
|
path: "{nextLink}",
|
15265
15421
|
httpMethod: "GET",
|
15266
15422
|
responses: {
|
@@ -15281,7 +15437,7 @@ const listByResourceGroupNextOperationSpec$1 = {
|
|
15281
15437
|
headerParameters: [accept],
|
15282
15438
|
serializer: serializer$5
|
15283
15439
|
};
|
15284
|
-
const listNextOperationSpec$
|
15440
|
+
const listNextOperationSpec$5 = {
|
15285
15441
|
path: "{nextLink}",
|
15286
15442
|
httpMethod: "GET",
|
15287
15443
|
responses: {
|
@@ -15382,7 +15538,7 @@ class TasksImpl {
|
|
15382
15538
|
* @param options The options parameters.
|
15383
15539
|
*/
|
15384
15540
|
_list(groupName, serviceName, projectName, options) {
|
15385
|
-
return this.client.sendOperationRequest({ groupName, serviceName, projectName, options }, listOperationSpec$
|
15541
|
+
return this.client.sendOperationRequest({ groupName, serviceName, projectName, options }, listOperationSpec$4);
|
15386
15542
|
}
|
15387
15543
|
/**
|
15388
15544
|
* The tasks resource is a nested, proxy-only resource representing work performed by a DMS instance.
|
@@ -15396,7 +15552,7 @@ class TasksImpl {
|
|
15396
15552
|
* @param options The options parameters.
|
15397
15553
|
*/
|
15398
15554
|
createOrUpdate(groupName, serviceName, projectName, taskName, parameters, options) {
|
15399
|
-
return this.client.sendOperationRequest({ groupName, serviceName, projectName, taskName, parameters, options }, createOrUpdateOperationSpec$
|
15555
|
+
return this.client.sendOperationRequest({ groupName, serviceName, projectName, taskName, parameters, options }, createOrUpdateOperationSpec$3);
|
15400
15556
|
}
|
15401
15557
|
/**
|
15402
15558
|
* The tasks resource is a nested, proxy-only resource representing work performed by a DMS instance.
|
@@ -15408,7 +15564,7 @@ class TasksImpl {
|
|
15408
15564
|
* @param options The options parameters.
|
15409
15565
|
*/
|
15410
15566
|
get(groupName, serviceName, projectName, taskName, options) {
|
15411
|
-
return this.client.sendOperationRequest({ groupName, serviceName, projectName, taskName, options }, getOperationSpec$
|
15567
|
+
return this.client.sendOperationRequest({ groupName, serviceName, projectName, taskName, options }, getOperationSpec$3);
|
15412
15568
|
}
|
15413
15569
|
/**
|
15414
15570
|
* The tasks resource is a nested, proxy-only resource representing work performed by a DMS instance.
|
@@ -15420,7 +15576,7 @@ class TasksImpl {
|
|
15420
15576
|
* @param options The options parameters.
|
15421
15577
|
*/
|
15422
15578
|
delete(groupName, serviceName, projectName, taskName, options) {
|
15423
|
-
return this.client.sendOperationRequest({ groupName, serviceName, projectName, taskName, options }, deleteOperationSpec$
|
15579
|
+
return this.client.sendOperationRequest({ groupName, serviceName, projectName, taskName, options }, deleteOperationSpec$3);
|
15424
15580
|
}
|
15425
15581
|
/**
|
15426
15582
|
* The tasks resource is a nested, proxy-only resource representing work performed by a DMS instance.
|
@@ -15434,7 +15590,7 @@ class TasksImpl {
|
|
15434
15590
|
* @param options The options parameters.
|
15435
15591
|
*/
|
15436
15592
|
update(groupName, serviceName, projectName, taskName, parameters, options) {
|
15437
|
-
return this.client.sendOperationRequest({ groupName, serviceName, projectName, taskName, parameters, options }, updateOperationSpec$
|
15593
|
+
return this.client.sendOperationRequest({ groupName, serviceName, projectName, taskName, parameters, options }, updateOperationSpec$3);
|
15438
15594
|
}
|
15439
15595
|
/**
|
15440
15596
|
* The tasks resource is a nested, proxy-only resource representing work performed by a DMS instance.
|
@@ -15446,7 +15602,7 @@ class TasksImpl {
|
|
15446
15602
|
* @param options The options parameters.
|
15447
15603
|
*/
|
15448
15604
|
cancel(groupName, serviceName, projectName, taskName, options) {
|
15449
|
-
return this.client.sendOperationRequest({ groupName, serviceName, projectName, taskName, options }, cancelOperationSpec$
|
15605
|
+
return this.client.sendOperationRequest({ groupName, serviceName, projectName, taskName, options }, cancelOperationSpec$1);
|
15450
15606
|
}
|
15451
15607
|
/**
|
15452
15608
|
* The tasks resource is a nested, proxy-only resource representing work performed by a DMS instance.
|
@@ -15470,12 +15626,12 @@ class TasksImpl {
|
|
15470
15626
|
* @param options The options parameters.
|
15471
15627
|
*/
|
15472
15628
|
_listNext(groupName, serviceName, projectName, nextLink, options) {
|
15473
|
-
return this.client.sendOperationRequest({ groupName, serviceName, projectName, nextLink, options }, listNextOperationSpec$
|
15629
|
+
return this.client.sendOperationRequest({ groupName, serviceName, projectName, nextLink, options }, listNextOperationSpec$4);
|
15474
15630
|
}
|
15475
15631
|
}
|
15476
15632
|
// Operation Specifications
|
15477
|
-
const serializer$
|
15478
|
-
const listOperationSpec$
|
15633
|
+
const serializer$4 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
15634
|
+
const listOperationSpec$4 = {
|
15479
15635
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/tasks",
|
15480
15636
|
httpMethod: "GET",
|
15481
15637
|
responses: {
|
@@ -15495,9 +15651,9 @@ const listOperationSpec$2 = {
|
|
15495
15651
|
projectName
|
15496
15652
|
],
|
15497
15653
|
headerParameters: [accept],
|
15498
|
-
serializer: serializer$
|
15654
|
+
serializer: serializer$4
|
15499
15655
|
};
|
15500
|
-
const createOrUpdateOperationSpec$
|
15656
|
+
const createOrUpdateOperationSpec$3 = {
|
15501
15657
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/tasks/{taskName}",
|
15502
15658
|
httpMethod: "PUT",
|
15503
15659
|
responses: {
|
@@ -15523,9 +15679,9 @@ const createOrUpdateOperationSpec$4 = {
|
|
15523
15679
|
],
|
15524
15680
|
headerParameters: [accept, contentType],
|
15525
15681
|
mediaType: "json",
|
15526
|
-
serializer: serializer$
|
15682
|
+
serializer: serializer$4
|
15527
15683
|
};
|
15528
|
-
const getOperationSpec$
|
15684
|
+
const getOperationSpec$3 = {
|
15529
15685
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/tasks/{taskName}",
|
15530
15686
|
httpMethod: "GET",
|
15531
15687
|
responses: {
|
@@ -15546,9 +15702,9 @@ const getOperationSpec$4 = {
|
|
15546
15702
|
taskName
|
15547
15703
|
],
|
15548
15704
|
headerParameters: [accept],
|
15549
|
-
serializer: serializer$
|
15705
|
+
serializer: serializer$4
|
15550
15706
|
};
|
15551
|
-
const deleteOperationSpec$
|
15707
|
+
const deleteOperationSpec$3 = {
|
15552
15708
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/tasks/{taskName}",
|
15553
15709
|
httpMethod: "DELETE",
|
15554
15710
|
responses: {
|
@@ -15568,9 +15724,9 @@ const deleteOperationSpec$2 = {
|
|
15568
15724
|
taskName
|
15569
15725
|
],
|
15570
15726
|
headerParameters: [accept],
|
15571
|
-
serializer: serializer$
|
15727
|
+
serializer: serializer$4
|
15572
15728
|
};
|
15573
|
-
const updateOperationSpec$
|
15729
|
+
const updateOperationSpec$3 = {
|
15574
15730
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/tasks/{taskName}",
|
15575
15731
|
httpMethod: "PATCH",
|
15576
15732
|
responses: {
|
@@ -15593,9 +15749,9 @@ const updateOperationSpec$2 = {
|
|
15593
15749
|
],
|
15594
15750
|
headerParameters: [accept, contentType],
|
15595
15751
|
mediaType: "json",
|
15596
|
-
serializer: serializer$
|
15752
|
+
serializer: serializer$4
|
15597
15753
|
};
|
15598
|
-
const cancelOperationSpec$
|
15754
|
+
const cancelOperationSpec$1 = {
|
15599
15755
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/tasks/{taskName}/cancel",
|
15600
15756
|
httpMethod: "POST",
|
15601
15757
|
responses: {
|
@@ -15616,7 +15772,7 @@ const cancelOperationSpec$2 = {
|
|
15616
15772
|
taskName
|
15617
15773
|
],
|
15618
15774
|
headerParameters: [accept],
|
15619
|
-
serializer: serializer$
|
15775
|
+
serializer: serializer$4
|
15620
15776
|
};
|
15621
15777
|
const commandOperationSpec = {
|
15622
15778
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/tasks/{taskName}/command",
|
@@ -15641,9 +15797,9 @@ const commandOperationSpec = {
|
|
15641
15797
|
],
|
15642
15798
|
headerParameters: [accept, contentType],
|
15643
15799
|
mediaType: "json",
|
15644
|
-
serializer: serializer$
|
15800
|
+
serializer: serializer$4
|
15645
15801
|
};
|
15646
|
-
const listNextOperationSpec$
|
15802
|
+
const listNextOperationSpec$4 = {
|
15647
15803
|
path: "{nextLink}",
|
15648
15804
|
httpMethod: "GET",
|
15649
15805
|
responses: {
|
@@ -15664,7 +15820,7 @@ const listNextOperationSpec$2 = {
|
|
15664
15820
|
projectName
|
15665
15821
|
],
|
15666
15822
|
headerParameters: [accept],
|
15667
|
-
serializer: serializer$
|
15823
|
+
serializer: serializer$4
|
15668
15824
|
};
|
15669
15825
|
|
15670
15826
|
/*
|
@@ -15758,7 +15914,7 @@ class ServiceTasksImpl {
|
|
15758
15914
|
* @param options The options parameters.
|
15759
15915
|
*/
|
15760
15916
|
createOrUpdate(groupName, serviceName, taskName, parameters, options) {
|
15761
|
-
return this.client.sendOperationRequest({ groupName, serviceName, taskName, parameters, options }, createOrUpdateOperationSpec$
|
15917
|
+
return this.client.sendOperationRequest({ groupName, serviceName, taskName, parameters, options }, createOrUpdateOperationSpec$2);
|
15762
15918
|
}
|
15763
15919
|
/**
|
15764
15920
|
* The service tasks resource is a nested, proxy-only resource representing work performed by a DMS
|
@@ -15769,7 +15925,7 @@ class ServiceTasksImpl {
|
|
15769
15925
|
* @param options The options parameters.
|
15770
15926
|
*/
|
15771
15927
|
get(groupName, serviceName, taskName, options) {
|
15772
|
-
return this.client.sendOperationRequest({ groupName, serviceName, taskName, options }, getOperationSpec$
|
15928
|
+
return this.client.sendOperationRequest({ groupName, serviceName, taskName, options }, getOperationSpec$2);
|
15773
15929
|
}
|
15774
15930
|
/**
|
15775
15931
|
* The service tasks resource is a nested, proxy-only resource representing work performed by a DMS
|
@@ -15780,7 +15936,7 @@ class ServiceTasksImpl {
|
|
15780
15936
|
* @param options The options parameters.
|
15781
15937
|
*/
|
15782
15938
|
delete(groupName, serviceName, taskName, options) {
|
15783
|
-
return this.client.sendOperationRequest({ groupName, serviceName, taskName, options }, deleteOperationSpec$
|
15939
|
+
return this.client.sendOperationRequest({ groupName, serviceName, taskName, options }, deleteOperationSpec$2);
|
15784
15940
|
}
|
15785
15941
|
/**
|
15786
15942
|
* The service tasks resource is a nested, proxy-only resource representing work performed by a DMS
|
@@ -15793,7 +15949,7 @@ class ServiceTasksImpl {
|
|
15793
15949
|
* @param options The options parameters.
|
15794
15950
|
*/
|
15795
15951
|
update(groupName, serviceName, taskName, parameters, options) {
|
15796
|
-
return this.client.sendOperationRequest({ groupName, serviceName, taskName, parameters, options }, updateOperationSpec$
|
15952
|
+
return this.client.sendOperationRequest({ groupName, serviceName, taskName, parameters, options }, updateOperationSpec$2);
|
15797
15953
|
}
|
15798
15954
|
/**
|
15799
15955
|
* The service tasks resource is a nested, proxy-only resource representing work performed by a DMS
|
@@ -15804,7 +15960,7 @@ class ServiceTasksImpl {
|
|
15804
15960
|
* @param options The options parameters.
|
15805
15961
|
*/
|
15806
15962
|
cancel(groupName, serviceName, taskName, options) {
|
15807
|
-
return this.client.sendOperationRequest({ groupName, serviceName, taskName, options }, cancelOperationSpec
|
15963
|
+
return this.client.sendOperationRequest({ groupName, serviceName, taskName, options }, cancelOperationSpec);
|
15808
15964
|
}
|
15809
15965
|
/**
|
15810
15966
|
* ListNext
|
@@ -15818,7 +15974,7 @@ class ServiceTasksImpl {
|
|
15818
15974
|
}
|
15819
15975
|
}
|
15820
15976
|
// Operation Specifications
|
15821
|
-
const serializer$
|
15977
|
+
const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
15822
15978
|
const listOperationSpec$3 = {
|
15823
15979
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/serviceTasks",
|
15824
15980
|
httpMethod: "GET",
|
@@ -15838,9 +15994,9 @@ const listOperationSpec$3 = {
|
|
15838
15994
|
serviceName
|
15839
15995
|
],
|
15840
15996
|
headerParameters: [accept],
|
15841
|
-
serializer: serializer$
|
15997
|
+
serializer: serializer$3
|
15842
15998
|
};
|
15843
|
-
const createOrUpdateOperationSpec$
|
15999
|
+
const createOrUpdateOperationSpec$2 = {
|
15844
16000
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/serviceTasks/{taskName}",
|
15845
16001
|
httpMethod: "PUT",
|
15846
16002
|
responses: {
|
@@ -15865,9 +16021,9 @@ const createOrUpdateOperationSpec$5 = {
|
|
15865
16021
|
],
|
15866
16022
|
headerParameters: [accept, contentType],
|
15867
16023
|
mediaType: "json",
|
15868
|
-
serializer: serializer$
|
16024
|
+
serializer: serializer$3
|
15869
16025
|
};
|
15870
|
-
const getOperationSpec$
|
16026
|
+
const getOperationSpec$2 = {
|
15871
16027
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/serviceTasks/{taskName}",
|
15872
16028
|
httpMethod: "GET",
|
15873
16029
|
responses: {
|
@@ -15887,9 +16043,9 @@ const getOperationSpec$5 = {
|
|
15887
16043
|
taskName
|
15888
16044
|
],
|
15889
16045
|
headerParameters: [accept],
|
15890
|
-
serializer: serializer$
|
16046
|
+
serializer: serializer$3
|
15891
16047
|
};
|
15892
|
-
const deleteOperationSpec$
|
16048
|
+
const deleteOperationSpec$2 = {
|
15893
16049
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/serviceTasks/{taskName}",
|
15894
16050
|
httpMethod: "DELETE",
|
15895
16051
|
responses: {
|
@@ -15908,9 +16064,9 @@ const deleteOperationSpec$3 = {
|
|
15908
16064
|
taskName
|
15909
16065
|
],
|
15910
16066
|
headerParameters: [accept],
|
15911
|
-
serializer: serializer$
|
16067
|
+
serializer: serializer$3
|
15912
16068
|
};
|
15913
|
-
const updateOperationSpec$
|
16069
|
+
const updateOperationSpec$2 = {
|
15914
16070
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/serviceTasks/{taskName}",
|
15915
16071
|
httpMethod: "PATCH",
|
15916
16072
|
responses: {
|
@@ -15932,9 +16088,9 @@ const updateOperationSpec$3 = {
|
|
15932
16088
|
],
|
15933
16089
|
headerParameters: [accept, contentType],
|
15934
16090
|
mediaType: "json",
|
15935
|
-
serializer: serializer$
|
16091
|
+
serializer: serializer$3
|
15936
16092
|
};
|
15937
|
-
const cancelOperationSpec
|
16093
|
+
const cancelOperationSpec = {
|
15938
16094
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/serviceTasks/{taskName}/cancel",
|
15939
16095
|
httpMethod: "POST",
|
15940
16096
|
responses: {
|
@@ -15954,7 +16110,7 @@ const cancelOperationSpec$3 = {
|
|
15954
16110
|
taskName
|
15955
16111
|
],
|
15956
16112
|
headerParameters: [accept],
|
15957
|
-
serializer: serializer$
|
16113
|
+
serializer: serializer$3
|
15958
16114
|
};
|
15959
16115
|
const listNextOperationSpec$3 = {
|
15960
16116
|
path: "{nextLink}",
|
@@ -15976,7 +16132,7 @@ const listNextOperationSpec$3 = {
|
|
15976
16132
|
serviceName
|
15977
16133
|
],
|
15978
16134
|
headerParameters: [accept],
|
15979
|
-
serializer: serializer$
|
16135
|
+
serializer: serializer$3
|
15980
16136
|
};
|
15981
16137
|
|
15982
16138
|
/*
|
@@ -16055,7 +16211,7 @@ class ProjectsImpl {
|
|
16055
16211
|
* @param options The options parameters.
|
16056
16212
|
*/
|
16057
16213
|
_list(groupName, serviceName, options) {
|
16058
|
-
return this.client.sendOperationRequest({ groupName, serviceName, options }, listOperationSpec$
|
16214
|
+
return this.client.sendOperationRequest({ groupName, serviceName, options }, listOperationSpec$2);
|
16059
16215
|
}
|
16060
16216
|
/**
|
16061
16217
|
* The project resource is a nested resource representing a stored migration project. The PUT method
|
@@ -16067,7 +16223,7 @@ class ProjectsImpl {
|
|
16067
16223
|
* @param options The options parameters.
|
16068
16224
|
*/
|
16069
16225
|
createOrUpdate(groupName, serviceName, projectName, parameters, options) {
|
16070
|
-
return this.client.sendOperationRequest({ groupName, serviceName, projectName, parameters, options }, createOrUpdateOperationSpec$
|
16226
|
+
return this.client.sendOperationRequest({ groupName, serviceName, projectName, parameters, options }, createOrUpdateOperationSpec$1);
|
16071
16227
|
}
|
16072
16228
|
/**
|
16073
16229
|
* The project resource is a nested resource representing a stored migration project. The GET method
|
@@ -16078,7 +16234,7 @@ class ProjectsImpl {
|
|
16078
16234
|
* @param options The options parameters.
|
16079
16235
|
*/
|
16080
16236
|
get(groupName, serviceName, projectName, options) {
|
16081
|
-
return this.client.sendOperationRequest({ groupName, serviceName, projectName, options }, getOperationSpec$
|
16237
|
+
return this.client.sendOperationRequest({ groupName, serviceName, projectName, options }, getOperationSpec$1);
|
16082
16238
|
}
|
16083
16239
|
/**
|
16084
16240
|
* The project resource is a nested resource representing a stored migration project. The DELETE method
|
@@ -16089,7 +16245,7 @@ class ProjectsImpl {
|
|
16089
16245
|
* @param options The options parameters.
|
16090
16246
|
*/
|
16091
16247
|
delete(groupName, serviceName, projectName, options) {
|
16092
|
-
return this.client.sendOperationRequest({ groupName, serviceName, projectName, options }, deleteOperationSpec$
|
16248
|
+
return this.client.sendOperationRequest({ groupName, serviceName, projectName, options }, deleteOperationSpec$1);
|
16093
16249
|
}
|
16094
16250
|
/**
|
16095
16251
|
* The project resource is a nested resource representing a stored migration project. The PATCH method
|
@@ -16101,7 +16257,7 @@ class ProjectsImpl {
|
|
16101
16257
|
* @param options The options parameters.
|
16102
16258
|
*/
|
16103
16259
|
update(groupName, serviceName, projectName, parameters, options) {
|
16104
|
-
return this.client.sendOperationRequest({ groupName, serviceName, projectName, parameters, options }, updateOperationSpec$
|
16260
|
+
return this.client.sendOperationRequest({ groupName, serviceName, projectName, parameters, options }, updateOperationSpec$1);
|
16105
16261
|
}
|
16106
16262
|
/**
|
16107
16263
|
* ListNext
|
@@ -16111,12 +16267,12 @@ class ProjectsImpl {
|
|
16111
16267
|
* @param options The options parameters.
|
16112
16268
|
*/
|
16113
16269
|
_listNext(groupName, serviceName, nextLink, options) {
|
16114
|
-
return this.client.sendOperationRequest({ groupName, serviceName, nextLink, options }, listNextOperationSpec$
|
16270
|
+
return this.client.sendOperationRequest({ groupName, serviceName, nextLink, options }, listNextOperationSpec$2);
|
16115
16271
|
}
|
16116
16272
|
}
|
16117
16273
|
// Operation Specifications
|
16118
|
-
const serializer$
|
16119
|
-
const listOperationSpec$
|
16274
|
+
const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
16275
|
+
const listOperationSpec$2 = {
|
16120
16276
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects",
|
16121
16277
|
httpMethod: "GET",
|
16122
16278
|
responses: {
|
@@ -16135,9 +16291,9 @@ const listOperationSpec$4 = {
|
|
16135
16291
|
serviceName
|
16136
16292
|
],
|
16137
16293
|
headerParameters: [accept],
|
16138
|
-
serializer: serializer$
|
16294
|
+
serializer: serializer$2
|
16139
16295
|
};
|
16140
|
-
const createOrUpdateOperationSpec$
|
16296
|
+
const createOrUpdateOperationSpec$1 = {
|
16141
16297
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}",
|
16142
16298
|
httpMethod: "PUT",
|
16143
16299
|
responses: {
|
@@ -16162,9 +16318,9 @@ const createOrUpdateOperationSpec$6 = {
|
|
16162
16318
|
],
|
16163
16319
|
headerParameters: [accept, contentType],
|
16164
16320
|
mediaType: "json",
|
16165
|
-
serializer: serializer$
|
16321
|
+
serializer: serializer$2
|
16166
16322
|
};
|
16167
|
-
const getOperationSpec$
|
16323
|
+
const getOperationSpec$1 = {
|
16168
16324
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}",
|
16169
16325
|
httpMethod: "GET",
|
16170
16326
|
responses: {
|
@@ -16184,9 +16340,9 @@ const getOperationSpec$6 = {
|
|
16184
16340
|
projectName
|
16185
16341
|
],
|
16186
16342
|
headerParameters: [accept],
|
16187
|
-
serializer: serializer$
|
16343
|
+
serializer: serializer$2
|
16188
16344
|
};
|
16189
|
-
const deleteOperationSpec$
|
16345
|
+
const deleteOperationSpec$1 = {
|
16190
16346
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}",
|
16191
16347
|
httpMethod: "DELETE",
|
16192
16348
|
responses: {
|
@@ -16205,9 +16361,9 @@ const deleteOperationSpec$4 = {
|
|
16205
16361
|
projectName
|
16206
16362
|
],
|
16207
16363
|
headerParameters: [accept],
|
16208
|
-
serializer: serializer$
|
16364
|
+
serializer: serializer$2
|
16209
16365
|
};
|
16210
|
-
const updateOperationSpec$
|
16366
|
+
const updateOperationSpec$1 = {
|
16211
16367
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}",
|
16212
16368
|
httpMethod: "PATCH",
|
16213
16369
|
responses: {
|
@@ -16229,9 +16385,9 @@ const updateOperationSpec$4 = {
|
|
16229
16385
|
],
|
16230
16386
|
headerParameters: [accept, contentType],
|
16231
16387
|
mediaType: "json",
|
16232
|
-
serializer: serializer$
|
16388
|
+
serializer: serializer$2
|
16233
16389
|
};
|
16234
|
-
const listNextOperationSpec$
|
16390
|
+
const listNextOperationSpec$2 = {
|
16235
16391
|
path: "{nextLink}",
|
16236
16392
|
httpMethod: "GET",
|
16237
16393
|
responses: {
|
@@ -16251,7 +16407,7 @@ const listNextOperationSpec$4 = {
|
|
16251
16407
|
serviceName
|
16252
16408
|
],
|
16253
16409
|
headerParameters: [accept],
|
16254
|
-
serializer: serializer$
|
16410
|
+
serializer: serializer$2
|
16255
16411
|
};
|
16256
16412
|
|
16257
16413
|
/*
|
@@ -16328,7 +16484,7 @@ class UsagesImpl {
|
|
16328
16484
|
* @param options The options parameters.
|
16329
16485
|
*/
|
16330
16486
|
_list(location, options) {
|
16331
|
-
return this.client.sendOperationRequest({ location, options }, listOperationSpec$
|
16487
|
+
return this.client.sendOperationRequest({ location, options }, listOperationSpec$1);
|
16332
16488
|
}
|
16333
16489
|
/**
|
16334
16490
|
* ListNext
|
@@ -16337,12 +16493,12 @@ class UsagesImpl {
|
|
16337
16493
|
* @param options The options parameters.
|
16338
16494
|
*/
|
16339
16495
|
_listNext(location, nextLink, options) {
|
16340
|
-
return this.client.sendOperationRequest({ location, nextLink, options }, listNextOperationSpec$
|
16496
|
+
return this.client.sendOperationRequest({ location, nextLink, options }, listNextOperationSpec$1);
|
16341
16497
|
}
|
16342
16498
|
}
|
16343
16499
|
// Operation Specifications
|
16344
|
-
const serializer$
|
16345
|
-
const listOperationSpec$
|
16500
|
+
const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
16501
|
+
const listOperationSpec$1 = {
|
16346
16502
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.DataMigration/locations/{location}/usages",
|
16347
16503
|
httpMethod: "GET",
|
16348
16504
|
responses: {
|
@@ -16360,9 +16516,9 @@ const listOperationSpec$5 = {
|
|
16360
16516
|
location
|
16361
16517
|
],
|
16362
16518
|
headerParameters: [accept],
|
16363
|
-
serializer: serializer$
|
16519
|
+
serializer: serializer$1
|
16364
16520
|
};
|
16365
|
-
const listNextOperationSpec$
|
16521
|
+
const listNextOperationSpec$1 = {
|
16366
16522
|
path: "{nextLink}",
|
16367
16523
|
httpMethod: "GET",
|
16368
16524
|
responses: {
|
@@ -16381,7 +16537,7 @@ const listNextOperationSpec$5 = {
|
|
16381
16537
|
location
|
16382
16538
|
],
|
16383
16539
|
headerParameters: [accept],
|
16384
|
-
serializer: serializer$
|
16540
|
+
serializer: serializer$1
|
16385
16541
|
};
|
16386
16542
|
|
16387
16543
|
/*
|
@@ -16462,7 +16618,7 @@ class FilesImpl {
|
|
16462
16618
|
* @param options The options parameters.
|
16463
16619
|
*/
|
16464
16620
|
_list(groupName, serviceName, projectName, options) {
|
16465
|
-
return this.client.sendOperationRequest({ groupName, serviceName, projectName, options }, listOperationSpec
|
16621
|
+
return this.client.sendOperationRequest({ groupName, serviceName, projectName, options }, listOperationSpec);
|
16466
16622
|
}
|
16467
16623
|
/**
|
16468
16624
|
* The files resource is a nested, proxy-only resource representing a file stored under the project
|
@@ -16474,7 +16630,7 @@ class FilesImpl {
|
|
16474
16630
|
* @param options The options parameters.
|
16475
16631
|
*/
|
16476
16632
|
get(groupName, serviceName, projectName, fileName, options) {
|
16477
|
-
return this.client.sendOperationRequest({ groupName, serviceName, projectName, fileName, options }, getOperationSpec
|
16633
|
+
return this.client.sendOperationRequest({ groupName, serviceName, projectName, fileName, options }, getOperationSpec);
|
16478
16634
|
}
|
16479
16635
|
/**
|
16480
16636
|
* The PUT method creates a new file or updates an existing one.
|
@@ -16486,7 +16642,7 @@ class FilesImpl {
|
|
16486
16642
|
* @param options The options parameters.
|
16487
16643
|
*/
|
16488
16644
|
createOrUpdate(groupName, serviceName, projectName, fileName, parameters, options) {
|
16489
|
-
return this.client.sendOperationRequest({ groupName, serviceName, projectName, fileName, parameters, options }, createOrUpdateOperationSpec
|
16645
|
+
return this.client.sendOperationRequest({ groupName, serviceName, projectName, fileName, parameters, options }, createOrUpdateOperationSpec);
|
16490
16646
|
}
|
16491
16647
|
/**
|
16492
16648
|
* This method deletes a file.
|
@@ -16497,7 +16653,7 @@ class FilesImpl {
|
|
16497
16653
|
* @param options The options parameters.
|
16498
16654
|
*/
|
16499
16655
|
delete(groupName, serviceName, projectName, fileName, options) {
|
16500
|
-
return this.client.sendOperationRequest({ groupName, serviceName, projectName, fileName, options }, deleteOperationSpec
|
16656
|
+
return this.client.sendOperationRequest({ groupName, serviceName, projectName, fileName, options }, deleteOperationSpec);
|
16501
16657
|
}
|
16502
16658
|
/**
|
16503
16659
|
* This method updates an existing file.
|
@@ -16509,7 +16665,7 @@ class FilesImpl {
|
|
16509
16665
|
* @param options The options parameters.
|
16510
16666
|
*/
|
16511
16667
|
update(groupName, serviceName, projectName, fileName, parameters, options) {
|
16512
|
-
return this.client.sendOperationRequest({ groupName, serviceName, projectName, fileName, parameters, options }, updateOperationSpec
|
16668
|
+
return this.client.sendOperationRequest({ groupName, serviceName, projectName, fileName, parameters, options }, updateOperationSpec);
|
16513
16669
|
}
|
16514
16670
|
/**
|
16515
16671
|
* This method is used for requesting storage information using which contents of the file can be
|
@@ -16543,12 +16699,12 @@ class FilesImpl {
|
|
16543
16699
|
* @param options The options parameters.
|
16544
16700
|
*/
|
16545
16701
|
_listNext(groupName, serviceName, projectName, nextLink, options) {
|
16546
|
-
return this.client.sendOperationRequest({ groupName, serviceName, projectName, nextLink, options }, listNextOperationSpec
|
16702
|
+
return this.client.sendOperationRequest({ groupName, serviceName, projectName, nextLink, options }, listNextOperationSpec);
|
16547
16703
|
}
|
16548
16704
|
}
|
16549
16705
|
// Operation Specifications
|
16550
|
-
const serializer
|
16551
|
-
const listOperationSpec
|
16706
|
+
const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
16707
|
+
const listOperationSpec = {
|
16552
16708
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/files",
|
16553
16709
|
httpMethod: "GET",
|
16554
16710
|
responses: {
|
@@ -16568,9 +16724,9 @@ const listOperationSpec$6 = {
|
|
16568
16724
|
projectName
|
16569
16725
|
],
|
16570
16726
|
headerParameters: [accept],
|
16571
|
-
serializer
|
16727
|
+
serializer
|
16572
16728
|
};
|
16573
|
-
const getOperationSpec
|
16729
|
+
const getOperationSpec = {
|
16574
16730
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/files/{fileName}",
|
16575
16731
|
httpMethod: "GET",
|
16576
16732
|
responses: {
|
@@ -16591,9 +16747,9 @@ const getOperationSpec$7 = {
|
|
16591
16747
|
fileName
|
16592
16748
|
],
|
16593
16749
|
headerParameters: [accept],
|
16594
|
-
serializer
|
16750
|
+
serializer
|
16595
16751
|
};
|
16596
|
-
const createOrUpdateOperationSpec
|
16752
|
+
const createOrUpdateOperationSpec = {
|
16597
16753
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/files/{fileName}",
|
16598
16754
|
httpMethod: "PUT",
|
16599
16755
|
responses: {
|
@@ -16619,9 +16775,9 @@ const createOrUpdateOperationSpec$7 = {
|
|
16619
16775
|
],
|
16620
16776
|
headerParameters: [accept, contentType],
|
16621
16777
|
mediaType: "json",
|
16622
|
-
serializer
|
16778
|
+
serializer
|
16623
16779
|
};
|
16624
|
-
const deleteOperationSpec
|
16780
|
+
const deleteOperationSpec = {
|
16625
16781
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/files/{fileName}",
|
16626
16782
|
httpMethod: "DELETE",
|
16627
16783
|
responses: {
|
@@ -16641,9 +16797,9 @@ const deleteOperationSpec$5 = {
|
|
16641
16797
|
fileName
|
16642
16798
|
],
|
16643
16799
|
headerParameters: [accept],
|
16644
|
-
serializer
|
16800
|
+
serializer
|
16645
16801
|
};
|
16646
|
-
const updateOperationSpec
|
16802
|
+
const updateOperationSpec = {
|
16647
16803
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/files/{fileName}",
|
16648
16804
|
httpMethod: "PATCH",
|
16649
16805
|
responses: {
|
@@ -16666,7 +16822,7 @@ const updateOperationSpec$5 = {
|
|
16666
16822
|
],
|
16667
16823
|
headerParameters: [accept, contentType],
|
16668
16824
|
mediaType: "json",
|
16669
|
-
serializer
|
16825
|
+
serializer
|
16670
16826
|
};
|
16671
16827
|
const readOperationSpec = {
|
16672
16828
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/files/{fileName}/read",
|
@@ -16689,7 +16845,7 @@ const readOperationSpec = {
|
|
16689
16845
|
fileName
|
16690
16846
|
],
|
16691
16847
|
headerParameters: [accept],
|
16692
|
-
serializer
|
16848
|
+
serializer
|
16693
16849
|
};
|
16694
16850
|
const readWriteOperationSpec = {
|
16695
16851
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/files/{fileName}/readwrite",
|
@@ -16712,9 +16868,9 @@ const readWriteOperationSpec = {
|
|
16712
16868
|
fileName
|
16713
16869
|
],
|
16714
16870
|
headerParameters: [accept],
|
16715
|
-
serializer
|
16871
|
+
serializer
|
16716
16872
|
};
|
16717
|
-
const listNextOperationSpec
|
16873
|
+
const listNextOperationSpec = {
|
16718
16874
|
path: "{nextLink}",
|
16719
16875
|
httpMethod: "GET",
|
16720
16876
|
responses: {
|
@@ -16735,7 +16891,7 @@ const listNextOperationSpec$6 = {
|
|
16735
16891
|
projectName
|
16736
16892
|
],
|
16737
16893
|
headerParameters: [accept],
|
16738
|
-
serializer
|
16894
|
+
serializer
|
16739
16895
|
};
|
16740
16896
|
|
16741
16897
|
/*
|
@@ -16745,7 +16901,7 @@ const listNextOperationSpec$6 = {
|
|
16745
16901
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
16746
16902
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
16747
16903
|
*/
|
16748
|
-
class DataMigrationManagementClient extends
|
16904
|
+
class DataMigrationManagementClient extends coreClient__namespace.ServiceClient {
|
16749
16905
|
/**
|
16750
16906
|
* Initializes a new instance of the DataMigrationManagementClient class.
|
16751
16907
|
* @param credentials Subscription credentials which uniquely identify client subscription.
|
@@ -16753,6 +16909,7 @@ class DataMigrationManagementClient extends coreClient.ServiceClient {
|
|
16753
16909
|
* @param options The parameter options
|
16754
16910
|
*/
|
16755
16911
|
constructor(credentials, subscriptionId, options) {
|
16912
|
+
var _a, _b;
|
16756
16913
|
if (credentials === undefined) {
|
16757
16914
|
throw new Error("'credentials' cannot be null");
|
16758
16915
|
}
|
@@ -16767,7 +16924,7 @@ class DataMigrationManagementClient extends coreClient.ServiceClient {
|
|
16767
16924
|
requestContentType: "application/json; charset=utf-8",
|
16768
16925
|
credential: credentials
|
16769
16926
|
};
|
16770
|
-
const packageDetails = `azsdk-js-arm-datamigration/3.0.0-beta.
|
16927
|
+
const packageDetails = `azsdk-js-arm-datamigration/3.0.0-beta.2`;
|
16771
16928
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
16772
16929
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
16773
16930
|
: `${packageDetails}`;
|
@@ -16776,8 +16933,24 @@ class DataMigrationManagementClient extends coreClient.ServiceClient {
|
|
16776
16933
|
}
|
16777
16934
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
16778
16935
|
userAgentPrefix
|
16779
|
-
}, baseUri: options.endpoint
|
16936
|
+
}, baseUri: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
16780
16937
|
super(optionsWithDefaults);
|
16938
|
+
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
16939
|
+
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
16940
|
+
const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
16941
|
+
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
16942
|
+
if (!bearerTokenAuthenticationPolicyFound) {
|
16943
|
+
this.pipeline.removePolicy({
|
16944
|
+
name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
|
16945
|
+
});
|
16946
|
+
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
16947
|
+
scopes: `${optionsWithDefaults.baseUri}/.default`,
|
16948
|
+
challengeCallbacks: {
|
16949
|
+
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
|
16950
|
+
}
|
16951
|
+
}));
|
16952
|
+
}
|
16953
|
+
}
|
16781
16954
|
// Parameter assignments
|
16782
16955
|
this.subscriptionId = subscriptionId;
|
16783
16956
|
// Assigning values to Constant parameters
|