@azure/arm-datamigration 3.0.0-beta.1 → 3.0.0-beta.3
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 +12 -1
- package/dist/index.js +981 -288
- 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 +2 -0
- package/dist-esm/src/dataMigrationManagementClient.d.ts.map +1 -1
- package/dist-esm/src/dataMigrationManagementClient.js +54 -5
- package/dist-esm/src/dataMigrationManagementClient.js.map +1 -1
- package/dist-esm/src/index.d.ts +1 -0
- package/dist-esm/src/index.d.ts.map +1 -1
- package/dist-esm/src/index.js +1 -0
- package/dist-esm/src/index.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +556 -240
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +314 -0
- package/dist-esm/src/models/index.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/files.d.ts.map +1 -1
- package/dist-esm/src/operations/files.js +19 -7
- package/dist-esm/src/operations/files.js.map +1 -1
- package/dist-esm/src/operations/operations.d.ts.map +1 -1
- package/dist-esm/src/operations/operations.js +19 -7
- package/dist-esm/src/operations/operations.js.map +1 -1
- package/dist-esm/src/operations/projects.d.ts.map +1 -1
- package/dist-esm/src/operations/projects.js +19 -7
- package/dist-esm/src/operations/projects.js.map +1 -1
- package/dist-esm/src/operations/resourceSkus.d.ts.map +1 -1
- package/dist-esm/src/operations/resourceSkus.js +19 -7
- package/dist-esm/src/operations/resourceSkus.js.map +1 -1
- package/dist-esm/src/operations/serviceTasks.d.ts.map +1 -1
- package/dist-esm/src/operations/serviceTasks.js +19 -7
- package/dist-esm/src/operations/serviceTasks.js.map +1 -1
- package/dist-esm/src/operations/services.d.ts.map +1 -1
- package/dist-esm/src/operations/services.js +70 -26
- 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 +64 -24
- package/dist-esm/src/operations/sqlMigrationServices.js.map +1 -1
- package/dist-esm/src/operations/tasks.d.ts.map +1 -1
- package/dist-esm/src/operations/tasks.js +19 -7
- package/dist-esm/src/operations/tasks.js.map +1 -1
- package/dist-esm/src/operations/usages.d.ts.map +1 -1
- package/dist-esm/src/operations/usages.js +19 -7
- package/dist-esm/src/operations/usages.js.map +1 -1
- package/dist-esm/src/pagingHelper.d.ts +13 -0
- package/dist-esm/src/pagingHelper.d.ts.map +1 -0
- package/dist-esm/src/pagingHelper.js +32 -0
- package/dist-esm/src/pagingHelper.js.map +1 -0
- package/dist-esm/test/sampleTest.js +11 -13
- package/dist-esm/test/sampleTest.js.map +1 -1
- package/package.json +38 -22
- package/review/arm-datamigration.api.md +564 -872
- package/rollup.config.js +6 -72
- package/src/dataMigrationManagementClient.ts +70 -5
- package/src/index.ts +1 -0
- package/src/models/index.ts +646 -246
- package/src/operations/databaseMigrationsSqlMi.ts +9 -3
- package/src/operations/databaseMigrationsSqlVm.ts +9 -3
- package/src/operations/files.ts +22 -8
- package/src/operations/operations.ts +21 -8
- package/src/operations/projects.ts +21 -8
- package/src/operations/resourceSkus.ts +21 -8
- package/src/operations/serviceTasks.ts +21 -8
- package/src/operations/services.ts +82 -30
- package/src/operations/sqlMigrationServices.ts +80 -32
- package/src/operations/tasks.ts +22 -8
- package/src/operations/usages.ts +21 -8
- package/src/pagingHelper.ts +39 -0
- package/tsconfig.json +18 -5
- package/types/arm-datamigration.d.ts +567 -240
- package/types/tsdoc-metadata.json +1 -1
- package/LICENSE.txt +0 -21
@@ -6,7 +6,8 @@
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
7
|
*/
|
8
8
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
10
11
|
import { SqlMigrationServices } from "../operationsInterfaces";
|
11
12
|
import * as coreClient from "@azure/core-client";
|
12
13
|
import * as Mappers from "../models/mappers";
|
@@ -18,11 +19,14 @@ import {
|
|
18
19
|
SqlMigrationService,
|
19
20
|
SqlMigrationServicesListByResourceGroupNextOptionalParams,
|
20
21
|
SqlMigrationServicesListByResourceGroupOptionalParams,
|
22
|
+
SqlMigrationServicesListByResourceGroupResponse,
|
21
23
|
DatabaseMigration,
|
22
24
|
SqlMigrationServicesListMigrationsNextOptionalParams,
|
23
25
|
SqlMigrationServicesListMigrationsOptionalParams,
|
26
|
+
SqlMigrationServicesListMigrationsResponse,
|
24
27
|
SqlMigrationServicesListBySubscriptionNextOptionalParams,
|
25
28
|
SqlMigrationServicesListBySubscriptionOptionalParams,
|
29
|
+
SqlMigrationServicesListBySubscriptionResponse,
|
26
30
|
SqlMigrationServicesGetOptionalParams,
|
27
31
|
SqlMigrationServicesGetResponse,
|
28
32
|
SqlMigrationServicesCreateOrUpdateOptionalParams,
|
@@ -31,7 +35,6 @@ import {
|
|
31
35
|
SqlMigrationServiceUpdate,
|
32
36
|
SqlMigrationServicesUpdateOptionalParams,
|
33
37
|
SqlMigrationServicesUpdateResponse,
|
34
|
-
SqlMigrationServicesListByResourceGroupResponse,
|
35
38
|
SqlMigrationServicesListAuthKeysOptionalParams,
|
36
39
|
SqlMigrationServicesListAuthKeysResponse,
|
37
40
|
RegenAuthKeys,
|
@@ -40,10 +43,8 @@ import {
|
|
40
43
|
DeleteNode,
|
41
44
|
SqlMigrationServicesDeleteNodeOptionalParams,
|
42
45
|
SqlMigrationServicesDeleteNodeResponse,
|
43
|
-
SqlMigrationServicesListMigrationsResponse,
|
44
46
|
SqlMigrationServicesListMonitoringDataOptionalParams,
|
45
47
|
SqlMigrationServicesListMonitoringDataResponse,
|
46
|
-
SqlMigrationServicesListBySubscriptionResponse,
|
47
48
|
SqlMigrationServicesListByResourceGroupNextResponse,
|
48
49
|
SqlMigrationServicesListMigrationsNextResponse,
|
49
50
|
SqlMigrationServicesListBySubscriptionNextResponse
|
@@ -80,19 +81,33 @@ export class SqlMigrationServicesImpl implements SqlMigrationServices {
|
|
80
81
|
[Symbol.asyncIterator]() {
|
81
82
|
return this;
|
82
83
|
},
|
83
|
-
byPage: () => {
|
84
|
-
|
84
|
+
byPage: (settings?: PageSettings) => {
|
85
|
+
if (settings?.maxPageSize) {
|
86
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
87
|
+
}
|
88
|
+
return this.listByResourceGroupPagingPage(
|
89
|
+
resourceGroupName,
|
90
|
+
options,
|
91
|
+
settings
|
92
|
+
);
|
85
93
|
}
|
86
94
|
};
|
87
95
|
}
|
88
96
|
|
89
97
|
private async *listByResourceGroupPagingPage(
|
90
98
|
resourceGroupName: string,
|
91
|
-
options?: SqlMigrationServicesListByResourceGroupOptionalParams
|
99
|
+
options?: SqlMigrationServicesListByResourceGroupOptionalParams,
|
100
|
+
settings?: PageSettings
|
92
101
|
): AsyncIterableIterator<SqlMigrationService[]> {
|
93
|
-
let result
|
94
|
-
|
95
|
-
|
102
|
+
let result: SqlMigrationServicesListByResourceGroupResponse;
|
103
|
+
let continuationToken = settings?.continuationToken;
|
104
|
+
if (!continuationToken) {
|
105
|
+
result = await this._listByResourceGroup(resourceGroupName, options);
|
106
|
+
let page = result.value || [];
|
107
|
+
continuationToken = result.nextLink;
|
108
|
+
setContinuationToken(page, continuationToken);
|
109
|
+
yield page;
|
110
|
+
}
|
96
111
|
while (continuationToken) {
|
97
112
|
result = await this._listByResourceGroupNext(
|
98
113
|
resourceGroupName,
|
@@ -100,7 +115,9 @@ export class SqlMigrationServicesImpl implements SqlMigrationServices {
|
|
100
115
|
options
|
101
116
|
);
|
102
117
|
continuationToken = result.nextLink;
|
103
|
-
|
118
|
+
let page = result.value || [];
|
119
|
+
setContinuationToken(page, continuationToken);
|
120
|
+
yield page;
|
104
121
|
}
|
105
122
|
}
|
106
123
|
|
@@ -140,11 +157,15 @@ export class SqlMigrationServicesImpl implements SqlMigrationServices {
|
|
140
157
|
[Symbol.asyncIterator]() {
|
141
158
|
return this;
|
142
159
|
},
|
143
|
-
byPage: () => {
|
160
|
+
byPage: (settings?: PageSettings) => {
|
161
|
+
if (settings?.maxPageSize) {
|
162
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
163
|
+
}
|
144
164
|
return this.listMigrationsPagingPage(
|
145
165
|
resourceGroupName,
|
146
166
|
sqlMigrationServiceName,
|
147
|
-
options
|
167
|
+
options,
|
168
|
+
settings
|
148
169
|
);
|
149
170
|
}
|
150
171
|
};
|
@@ -153,15 +174,22 @@ export class SqlMigrationServicesImpl implements SqlMigrationServices {
|
|
153
174
|
private async *listMigrationsPagingPage(
|
154
175
|
resourceGroupName: string,
|
155
176
|
sqlMigrationServiceName: string,
|
156
|
-
options?: SqlMigrationServicesListMigrationsOptionalParams
|
177
|
+
options?: SqlMigrationServicesListMigrationsOptionalParams,
|
178
|
+
settings?: PageSettings
|
157
179
|
): AsyncIterableIterator<DatabaseMigration[]> {
|
158
|
-
let result
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
180
|
+
let result: SqlMigrationServicesListMigrationsResponse;
|
181
|
+
let continuationToken = settings?.continuationToken;
|
182
|
+
if (!continuationToken) {
|
183
|
+
result = await this._listMigrations(
|
184
|
+
resourceGroupName,
|
185
|
+
sqlMigrationServiceName,
|
186
|
+
options
|
187
|
+
);
|
188
|
+
let page = result.value || [];
|
189
|
+
continuationToken = result.nextLink;
|
190
|
+
setContinuationToken(page, continuationToken);
|
191
|
+
yield page;
|
192
|
+
}
|
165
193
|
while (continuationToken) {
|
166
194
|
result = await this._listMigrationsNext(
|
167
195
|
resourceGroupName,
|
@@ -170,7 +198,9 @@ export class SqlMigrationServicesImpl implements SqlMigrationServices {
|
|
170
198
|
options
|
171
199
|
);
|
172
200
|
continuationToken = result.nextLink;
|
173
|
-
|
201
|
+
let page = result.value || [];
|
202
|
+
setContinuationToken(page, continuationToken);
|
203
|
+
yield page;
|
174
204
|
}
|
175
205
|
}
|
176
206
|
|
@@ -203,22 +233,34 @@ export class SqlMigrationServicesImpl implements SqlMigrationServices {
|
|
203
233
|
[Symbol.asyncIterator]() {
|
204
234
|
return this;
|
205
235
|
},
|
206
|
-
byPage: () => {
|
207
|
-
|
236
|
+
byPage: (settings?: PageSettings) => {
|
237
|
+
if (settings?.maxPageSize) {
|
238
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
239
|
+
}
|
240
|
+
return this.listBySubscriptionPagingPage(options, settings);
|
208
241
|
}
|
209
242
|
};
|
210
243
|
}
|
211
244
|
|
212
245
|
private async *listBySubscriptionPagingPage(
|
213
|
-
options?: SqlMigrationServicesListBySubscriptionOptionalParams
|
246
|
+
options?: SqlMigrationServicesListBySubscriptionOptionalParams,
|
247
|
+
settings?: PageSettings
|
214
248
|
): AsyncIterableIterator<SqlMigrationService[]> {
|
215
|
-
let result
|
216
|
-
|
217
|
-
|
249
|
+
let result: SqlMigrationServicesListBySubscriptionResponse;
|
250
|
+
let continuationToken = settings?.continuationToken;
|
251
|
+
if (!continuationToken) {
|
252
|
+
result = await this._listBySubscription(options);
|
253
|
+
let page = result.value || [];
|
254
|
+
continuationToken = result.nextLink;
|
255
|
+
setContinuationToken(page, continuationToken);
|
256
|
+
yield page;
|
257
|
+
}
|
218
258
|
while (continuationToken) {
|
219
259
|
result = await this._listBySubscriptionNext(continuationToken, options);
|
220
260
|
continuationToken = result.nextLink;
|
221
|
-
|
261
|
+
let page = result.value || [];
|
262
|
+
setContinuationToken(page, continuationToken);
|
263
|
+
yield page;
|
222
264
|
}
|
223
265
|
}
|
224
266
|
|
@@ -311,10 +353,12 @@ export class SqlMigrationServicesImpl implements SqlMigrationServices {
|
|
311
353
|
{ resourceGroupName, sqlMigrationServiceName, parameters, options },
|
312
354
|
createOrUpdateOperationSpec
|
313
355
|
);
|
314
|
-
|
356
|
+
const poller = new LroEngine(lro, {
|
315
357
|
resumeFrom: options?.resumeFrom,
|
316
358
|
intervalInMs: options?.updateIntervalInMs
|
317
359
|
});
|
360
|
+
await poller.poll();
|
361
|
+
return poller;
|
318
362
|
}
|
319
363
|
|
320
364
|
/**
|
@@ -396,10 +440,12 @@ export class SqlMigrationServicesImpl implements SqlMigrationServices {
|
|
396
440
|
{ resourceGroupName, sqlMigrationServiceName, options },
|
397
441
|
deleteOperationSpec
|
398
442
|
);
|
399
|
-
|
443
|
+
const poller = new LroEngine(lro, {
|
400
444
|
resumeFrom: options?.resumeFrom,
|
401
445
|
intervalInMs: options?.updateIntervalInMs
|
402
446
|
});
|
447
|
+
await poller.poll();
|
448
|
+
return poller;
|
403
449
|
}
|
404
450
|
|
405
451
|
/**
|
@@ -485,10 +531,12 @@ export class SqlMigrationServicesImpl implements SqlMigrationServices {
|
|
485
531
|
{ resourceGroupName, sqlMigrationServiceName, parameters, options },
|
486
532
|
updateOperationSpec
|
487
533
|
);
|
488
|
-
|
534
|
+
const poller = new LroEngine(lro, {
|
489
535
|
resumeFrom: options?.resumeFrom,
|
490
536
|
intervalInMs: options?.updateIntervalInMs
|
491
537
|
});
|
538
|
+
await poller.poll();
|
539
|
+
return poller;
|
492
540
|
}
|
493
541
|
|
494
542
|
/**
|
package/src/operations/tasks.ts
CHANGED
@@ -6,7 +6,8 @@
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
7
|
*/
|
8
8
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
10
11
|
import { Tasks } from "../operationsInterfaces";
|
11
12
|
import * as coreClient from "@azure/core-client";
|
12
13
|
import * as Mappers from "../models/mappers";
|
@@ -73,12 +74,16 @@ export class TasksImpl implements Tasks {
|
|
73
74
|
[Symbol.asyncIterator]() {
|
74
75
|
return this;
|
75
76
|
},
|
76
|
-
byPage: () => {
|
77
|
+
byPage: (settings?: PageSettings) => {
|
78
|
+
if (settings?.maxPageSize) {
|
79
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
80
|
+
}
|
77
81
|
return this.listPagingPage(
|
78
82
|
groupName,
|
79
83
|
serviceName,
|
80
84
|
projectName,
|
81
|
-
options
|
85
|
+
options,
|
86
|
+
settings
|
82
87
|
);
|
83
88
|
}
|
84
89
|
};
|
@@ -88,11 +93,18 @@ export class TasksImpl implements Tasks {
|
|
88
93
|
groupName: string,
|
89
94
|
serviceName: string,
|
90
95
|
projectName: string,
|
91
|
-
options?: TasksListOptionalParams
|
96
|
+
options?: TasksListOptionalParams,
|
97
|
+
settings?: PageSettings
|
92
98
|
): AsyncIterableIterator<ProjectTask[]> {
|
93
|
-
let result
|
94
|
-
|
95
|
-
|
99
|
+
let result: TasksListResponse;
|
100
|
+
let continuationToken = settings?.continuationToken;
|
101
|
+
if (!continuationToken) {
|
102
|
+
result = await this._list(groupName, serviceName, projectName, options);
|
103
|
+
let page = result.value || [];
|
104
|
+
continuationToken = result.nextLink;
|
105
|
+
setContinuationToken(page, continuationToken);
|
106
|
+
yield page;
|
107
|
+
}
|
96
108
|
while (continuationToken) {
|
97
109
|
result = await this._listNext(
|
98
110
|
groupName,
|
@@ -102,7 +114,9 @@ export class TasksImpl implements Tasks {
|
|
102
114
|
options
|
103
115
|
);
|
104
116
|
continuationToken = result.nextLink;
|
105
|
-
|
117
|
+
let page = result.value || [];
|
118
|
+
setContinuationToken(page, continuationToken);
|
119
|
+
yield page;
|
106
120
|
}
|
107
121
|
}
|
108
122
|
|
package/src/operations/usages.ts
CHANGED
@@ -6,7 +6,8 @@
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
7
|
*/
|
8
8
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
10
11
|
import { Usages } from "../operationsInterfaces";
|
11
12
|
import * as coreClient from "@azure/core-client";
|
12
13
|
import * as Mappers from "../models/mappers";
|
@@ -51,23 +52,35 @@ export class UsagesImpl implements Usages {
|
|
51
52
|
[Symbol.asyncIterator]() {
|
52
53
|
return this;
|
53
54
|
},
|
54
|
-
byPage: () => {
|
55
|
-
|
55
|
+
byPage: (settings?: PageSettings) => {
|
56
|
+
if (settings?.maxPageSize) {
|
57
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
58
|
+
}
|
59
|
+
return this.listPagingPage(location, options, settings);
|
56
60
|
}
|
57
61
|
};
|
58
62
|
}
|
59
63
|
|
60
64
|
private async *listPagingPage(
|
61
65
|
location: string,
|
62
|
-
options?: UsagesListOptionalParams
|
66
|
+
options?: UsagesListOptionalParams,
|
67
|
+
settings?: PageSettings
|
63
68
|
): AsyncIterableIterator<Quota[]> {
|
64
|
-
let result
|
65
|
-
|
66
|
-
|
69
|
+
let result: UsagesListResponse;
|
70
|
+
let continuationToken = settings?.continuationToken;
|
71
|
+
if (!continuationToken) {
|
72
|
+
result = await this._list(location, options);
|
73
|
+
let page = result.value || [];
|
74
|
+
continuationToken = result.nextLink;
|
75
|
+
setContinuationToken(page, continuationToken);
|
76
|
+
yield page;
|
77
|
+
}
|
67
78
|
while (continuationToken) {
|
68
79
|
result = await this._listNext(location, continuationToken, options);
|
69
80
|
continuationToken = result.nextLink;
|
70
|
-
|
81
|
+
let page = result.value || [];
|
82
|
+
setContinuationToken(page, continuationToken);
|
83
|
+
yield page;
|
71
84
|
}
|
72
85
|
}
|
73
86
|
|
@@ -0,0 +1,39 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
3
|
+
* Licensed under the MIT License.
|
4
|
+
*
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
|
+
*/
|
8
|
+
|
9
|
+
export interface PageInfo {
|
10
|
+
continuationToken?: string;
|
11
|
+
}
|
12
|
+
|
13
|
+
const pageMap = new WeakMap<object, PageInfo>();
|
14
|
+
|
15
|
+
/**
|
16
|
+
* Given a result page from a pageable operation, returns a
|
17
|
+
* continuation token that can be used to begin paging from
|
18
|
+
* that point later.
|
19
|
+
* @param page A result object from calling .byPage() on a paged operation.
|
20
|
+
* @returns The continuation token that can be passed into byPage().
|
21
|
+
*/
|
22
|
+
export function getContinuationToken(page: unknown): string | undefined {
|
23
|
+
if (typeof page !== "object" || page === null) {
|
24
|
+
return undefined;
|
25
|
+
}
|
26
|
+
return pageMap.get(page)?.continuationToken;
|
27
|
+
}
|
28
|
+
|
29
|
+
export function setContinuationToken(
|
30
|
+
page: unknown,
|
31
|
+
continuationToken: string | undefined
|
32
|
+
): void {
|
33
|
+
if (typeof page !== "object" || page === null || !continuationToken) {
|
34
|
+
return;
|
35
|
+
}
|
36
|
+
const pageInfo = pageMap.get(page) ?? {};
|
37
|
+
pageInfo.continuationToken = continuationToken;
|
38
|
+
pageMap.set(page, pageInfo);
|
39
|
+
}
|
package/tsconfig.json
CHANGED
@@ -9,12 +9,25 @@
|
|
9
9
|
"esModuleInterop": true,
|
10
10
|
"allowSyntheticDefaultImports": true,
|
11
11
|
"forceConsistentCasingInFileNames": true,
|
12
|
-
"lib": [
|
12
|
+
"lib": [
|
13
|
+
"es6",
|
14
|
+
"dom"
|
15
|
+
],
|
13
16
|
"declaration": true,
|
14
17
|
"outDir": "./dist-esm",
|
15
18
|
"importHelpers": true,
|
16
|
-
"paths": {
|
19
|
+
"paths": {
|
20
|
+
"@azure/arm-datamigration": [
|
21
|
+
"./src/index"
|
22
|
+
]
|
23
|
+
}
|
17
24
|
},
|
18
|
-
"include": [
|
19
|
-
|
20
|
-
|
25
|
+
"include": [
|
26
|
+
"./src/**/*.ts",
|
27
|
+
"./test/**/*.ts",
|
28
|
+
"samples-dev/**/*.ts"
|
29
|
+
],
|
30
|
+
"exclude": [
|
31
|
+
"node_modules"
|
32
|
+
]
|
33
|
+
}
|