@azure/arm-datamigration 3.0.0-beta.1 → 3.0.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
|
@@ -127,10 +127,12 @@ export class DatabaseMigrationsSqlMiImpl implements DatabaseMigrationsSqlMi {
|
|
|
127
127
|
},
|
|
128
128
|
createOrUpdateOperationSpec
|
|
129
129
|
);
|
|
130
|
-
|
|
130
|
+
const poller = new LroEngine(lro, {
|
|
131
131
|
resumeFrom: options?.resumeFrom,
|
|
132
132
|
intervalInMs: options?.updateIntervalInMs
|
|
133
133
|
});
|
|
134
|
+
await poller.poll();
|
|
135
|
+
return poller;
|
|
134
136
|
}
|
|
135
137
|
|
|
136
138
|
/**
|
|
@@ -225,10 +227,12 @@ export class DatabaseMigrationsSqlMiImpl implements DatabaseMigrationsSqlMi {
|
|
|
225
227
|
},
|
|
226
228
|
cancelOperationSpec
|
|
227
229
|
);
|
|
228
|
-
|
|
230
|
+
const poller = new LroEngine(lro, {
|
|
229
231
|
resumeFrom: options?.resumeFrom,
|
|
230
232
|
intervalInMs: options?.updateIntervalInMs
|
|
231
233
|
});
|
|
234
|
+
await poller.poll();
|
|
235
|
+
return poller;
|
|
232
236
|
}
|
|
233
237
|
|
|
234
238
|
/**
|
|
@@ -323,10 +327,12 @@ export class DatabaseMigrationsSqlMiImpl implements DatabaseMigrationsSqlMi {
|
|
|
323
327
|
},
|
|
324
328
|
cutoverOperationSpec
|
|
325
329
|
);
|
|
326
|
-
|
|
330
|
+
const poller = new LroEngine(lro, {
|
|
327
331
|
resumeFrom: options?.resumeFrom,
|
|
328
332
|
intervalInMs: options?.updateIntervalInMs
|
|
329
333
|
});
|
|
334
|
+
await poller.poll();
|
|
335
|
+
return poller;
|
|
330
336
|
}
|
|
331
337
|
|
|
332
338
|
/**
|
|
@@ -127,10 +127,12 @@ export class DatabaseMigrationsSqlVmImpl implements DatabaseMigrationsSqlVm {
|
|
|
127
127
|
},
|
|
128
128
|
createOrUpdateOperationSpec
|
|
129
129
|
);
|
|
130
|
-
|
|
130
|
+
const poller = new LroEngine(lro, {
|
|
131
131
|
resumeFrom: options?.resumeFrom,
|
|
132
132
|
intervalInMs: options?.updateIntervalInMs
|
|
133
133
|
});
|
|
134
|
+
await poller.poll();
|
|
135
|
+
return poller;
|
|
134
136
|
}
|
|
135
137
|
|
|
136
138
|
/**
|
|
@@ -225,10 +227,12 @@ export class DatabaseMigrationsSqlVmImpl implements DatabaseMigrationsSqlVm {
|
|
|
225
227
|
},
|
|
226
228
|
cancelOperationSpec
|
|
227
229
|
);
|
|
228
|
-
|
|
230
|
+
const poller = new LroEngine(lro, {
|
|
229
231
|
resumeFrom: options?.resumeFrom,
|
|
230
232
|
intervalInMs: options?.updateIntervalInMs
|
|
231
233
|
});
|
|
234
|
+
await poller.poll();
|
|
235
|
+
return poller;
|
|
232
236
|
}
|
|
233
237
|
|
|
234
238
|
/**
|
|
@@ -323,10 +327,12 @@ export class DatabaseMigrationsSqlVmImpl implements DatabaseMigrationsSqlVm {
|
|
|
323
327
|
},
|
|
324
328
|
cutoverOperationSpec
|
|
325
329
|
);
|
|
326
|
-
|
|
330
|
+
const poller = new LroEngine(lro, {
|
|
327
331
|
resumeFrom: options?.resumeFrom,
|
|
328
332
|
intervalInMs: options?.updateIntervalInMs
|
|
329
333
|
});
|
|
334
|
+
await poller.poll();
|
|
335
|
+
return poller;
|
|
330
336
|
}
|
|
331
337
|
|
|
332
338
|
/**
|
package/src/operations/files.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 { Files } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -71,12 +72,16 @@ export class FilesImpl implements Files {
|
|
|
71
72
|
[Symbol.asyncIterator]() {
|
|
72
73
|
return this;
|
|
73
74
|
},
|
|
74
|
-
byPage: () => {
|
|
75
|
+
byPage: (settings?: PageSettings) => {
|
|
76
|
+
if (settings?.maxPageSize) {
|
|
77
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
78
|
+
}
|
|
75
79
|
return this.listPagingPage(
|
|
76
80
|
groupName,
|
|
77
81
|
serviceName,
|
|
78
82
|
projectName,
|
|
79
|
-
options
|
|
83
|
+
options,
|
|
84
|
+
settings
|
|
80
85
|
);
|
|
81
86
|
}
|
|
82
87
|
};
|
|
@@ -86,11 +91,18 @@ export class FilesImpl implements Files {
|
|
|
86
91
|
groupName: string,
|
|
87
92
|
serviceName: string,
|
|
88
93
|
projectName: string,
|
|
89
|
-
options?: FilesListOptionalParams
|
|
94
|
+
options?: FilesListOptionalParams,
|
|
95
|
+
settings?: PageSettings
|
|
90
96
|
): AsyncIterableIterator<ProjectFile[]> {
|
|
91
|
-
let result
|
|
92
|
-
|
|
93
|
-
|
|
97
|
+
let result: FilesListResponse;
|
|
98
|
+
let continuationToken = settings?.continuationToken;
|
|
99
|
+
if (!continuationToken) {
|
|
100
|
+
result = await this._list(groupName, serviceName, projectName, options);
|
|
101
|
+
let page = result.value || [];
|
|
102
|
+
continuationToken = result.nextLink;
|
|
103
|
+
setContinuationToken(page, continuationToken);
|
|
104
|
+
yield page;
|
|
105
|
+
}
|
|
94
106
|
while (continuationToken) {
|
|
95
107
|
result = await this._listNext(
|
|
96
108
|
groupName,
|
|
@@ -100,7 +112,9 @@ export class FilesImpl implements Files {
|
|
|
100
112
|
options
|
|
101
113
|
);
|
|
102
114
|
continuationToken = result.nextLink;
|
|
103
|
-
|
|
115
|
+
let page = result.value || [];
|
|
116
|
+
setContinuationToken(page, continuationToken);
|
|
117
|
+
yield page;
|
|
104
118
|
}
|
|
105
119
|
}
|
|
106
120
|
|
|
@@ -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 { Operations } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -48,22 +49,34 @@ export class OperationsImpl implements Operations {
|
|
|
48
49
|
[Symbol.asyncIterator]() {
|
|
49
50
|
return this;
|
|
50
51
|
},
|
|
51
|
-
byPage: () => {
|
|
52
|
-
|
|
52
|
+
byPage: (settings?: PageSettings) => {
|
|
53
|
+
if (settings?.maxPageSize) {
|
|
54
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
55
|
+
}
|
|
56
|
+
return this.listPagingPage(options, settings);
|
|
53
57
|
}
|
|
54
58
|
};
|
|
55
59
|
}
|
|
56
60
|
|
|
57
61
|
private async *listPagingPage(
|
|
58
|
-
options?: OperationsListOptionalParams
|
|
62
|
+
options?: OperationsListOptionalParams,
|
|
63
|
+
settings?: PageSettings
|
|
59
64
|
): AsyncIterableIterator<OperationsDefinition[]> {
|
|
60
|
-
let result
|
|
61
|
-
|
|
62
|
-
|
|
65
|
+
let result: OperationsListResponse;
|
|
66
|
+
let continuationToken = settings?.continuationToken;
|
|
67
|
+
if (!continuationToken) {
|
|
68
|
+
result = await this._list(options);
|
|
69
|
+
let page = result.value || [];
|
|
70
|
+
continuationToken = result.nextLink;
|
|
71
|
+
setContinuationToken(page, continuationToken);
|
|
72
|
+
yield page;
|
|
73
|
+
}
|
|
63
74
|
while (continuationToken) {
|
|
64
75
|
result = await this._listNext(continuationToken, options);
|
|
65
76
|
continuationToken = result.nextLink;
|
|
66
|
-
|
|
77
|
+
let page = result.value || [];
|
|
78
|
+
setContinuationToken(page, continuationToken);
|
|
79
|
+
yield page;
|
|
67
80
|
}
|
|
68
81
|
}
|
|
69
82
|
|
|
@@ -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 { Projects } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -60,8 +61,11 @@ export class ProjectsImpl implements Projects {
|
|
|
60
61
|
[Symbol.asyncIterator]() {
|
|
61
62
|
return this;
|
|
62
63
|
},
|
|
63
|
-
byPage: () => {
|
|
64
|
-
|
|
64
|
+
byPage: (settings?: PageSettings) => {
|
|
65
|
+
if (settings?.maxPageSize) {
|
|
66
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
67
|
+
}
|
|
68
|
+
return this.listPagingPage(groupName, serviceName, options, settings);
|
|
65
69
|
}
|
|
66
70
|
};
|
|
67
71
|
}
|
|
@@ -69,11 +73,18 @@ export class ProjectsImpl implements Projects {
|
|
|
69
73
|
private async *listPagingPage(
|
|
70
74
|
groupName: string,
|
|
71
75
|
serviceName: string,
|
|
72
|
-
options?: ProjectsListOptionalParams
|
|
76
|
+
options?: ProjectsListOptionalParams,
|
|
77
|
+
settings?: PageSettings
|
|
73
78
|
): AsyncIterableIterator<Project[]> {
|
|
74
|
-
let result
|
|
75
|
-
|
|
76
|
-
|
|
79
|
+
let result: ProjectsListResponse;
|
|
80
|
+
let continuationToken = settings?.continuationToken;
|
|
81
|
+
if (!continuationToken) {
|
|
82
|
+
result = await this._list(groupName, serviceName, options);
|
|
83
|
+
let page = result.value || [];
|
|
84
|
+
continuationToken = result.nextLink;
|
|
85
|
+
setContinuationToken(page, continuationToken);
|
|
86
|
+
yield page;
|
|
87
|
+
}
|
|
77
88
|
while (continuationToken) {
|
|
78
89
|
result = await this._listNext(
|
|
79
90
|
groupName,
|
|
@@ -82,7 +93,9 @@ export class ProjectsImpl implements Projects {
|
|
|
82
93
|
options
|
|
83
94
|
);
|
|
84
95
|
continuationToken = result.nextLink;
|
|
85
|
-
|
|
96
|
+
let page = result.value || [];
|
|
97
|
+
setContinuationToken(page, continuationToken);
|
|
98
|
+
yield page;
|
|
86
99
|
}
|
|
87
100
|
}
|
|
88
101
|
|
|
@@ -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 { ResourceSkus } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -48,22 +49,34 @@ export class ResourceSkusImpl implements ResourceSkus {
|
|
|
48
49
|
[Symbol.asyncIterator]() {
|
|
49
50
|
return this;
|
|
50
51
|
},
|
|
51
|
-
byPage: () => {
|
|
52
|
-
|
|
52
|
+
byPage: (settings?: PageSettings) => {
|
|
53
|
+
if (settings?.maxPageSize) {
|
|
54
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
55
|
+
}
|
|
56
|
+
return this.listSkusPagingPage(options, settings);
|
|
53
57
|
}
|
|
54
58
|
};
|
|
55
59
|
}
|
|
56
60
|
|
|
57
61
|
private async *listSkusPagingPage(
|
|
58
|
-
options?: ResourceSkusListSkusOptionalParams
|
|
62
|
+
options?: ResourceSkusListSkusOptionalParams,
|
|
63
|
+
settings?: PageSettings
|
|
59
64
|
): AsyncIterableIterator<ResourceSku[]> {
|
|
60
|
-
let result
|
|
61
|
-
|
|
62
|
-
|
|
65
|
+
let result: ResourceSkusListSkusResponse;
|
|
66
|
+
let continuationToken = settings?.continuationToken;
|
|
67
|
+
if (!continuationToken) {
|
|
68
|
+
result = await this._listSkus(options);
|
|
69
|
+
let page = result.value || [];
|
|
70
|
+
continuationToken = result.nextLink;
|
|
71
|
+
setContinuationToken(page, continuationToken);
|
|
72
|
+
yield page;
|
|
73
|
+
}
|
|
63
74
|
while (continuationToken) {
|
|
64
75
|
result = await this._listSkusNext(continuationToken, options);
|
|
65
76
|
continuationToken = result.nextLink;
|
|
66
|
-
|
|
77
|
+
let page = result.value || [];
|
|
78
|
+
setContinuationToken(page, continuationToken);
|
|
79
|
+
yield page;
|
|
67
80
|
}
|
|
68
81
|
}
|
|
69
82
|
|
|
@@ -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 { ServiceTasks } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -63,8 +64,11 @@ export class ServiceTasksImpl implements ServiceTasks {
|
|
|
63
64
|
[Symbol.asyncIterator]() {
|
|
64
65
|
return this;
|
|
65
66
|
},
|
|
66
|
-
byPage: () => {
|
|
67
|
-
|
|
67
|
+
byPage: (settings?: PageSettings) => {
|
|
68
|
+
if (settings?.maxPageSize) {
|
|
69
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
70
|
+
}
|
|
71
|
+
return this.listPagingPage(groupName, serviceName, options, settings);
|
|
68
72
|
}
|
|
69
73
|
};
|
|
70
74
|
}
|
|
@@ -72,11 +76,18 @@ export class ServiceTasksImpl implements ServiceTasks {
|
|
|
72
76
|
private async *listPagingPage(
|
|
73
77
|
groupName: string,
|
|
74
78
|
serviceName: string,
|
|
75
|
-
options?: ServiceTasksListOptionalParams
|
|
79
|
+
options?: ServiceTasksListOptionalParams,
|
|
80
|
+
settings?: PageSettings
|
|
76
81
|
): AsyncIterableIterator<ProjectTask[]> {
|
|
77
|
-
let result
|
|
78
|
-
|
|
79
|
-
|
|
82
|
+
let result: ServiceTasksListResponse;
|
|
83
|
+
let continuationToken = settings?.continuationToken;
|
|
84
|
+
if (!continuationToken) {
|
|
85
|
+
result = await this._list(groupName, serviceName, options);
|
|
86
|
+
let page = result.value || [];
|
|
87
|
+
continuationToken = result.nextLink;
|
|
88
|
+
setContinuationToken(page, continuationToken);
|
|
89
|
+
yield page;
|
|
90
|
+
}
|
|
80
91
|
while (continuationToken) {
|
|
81
92
|
result = await this._listNext(
|
|
82
93
|
groupName,
|
|
@@ -85,7 +96,9 @@ export class ServiceTasksImpl implements ServiceTasks {
|
|
|
85
96
|
options
|
|
86
97
|
);
|
|
87
98
|
continuationToken = result.nextLink;
|
|
88
|
-
|
|
99
|
+
let page = result.value || [];
|
|
100
|
+
setContinuationToken(page, continuationToken);
|
|
101
|
+
yield page;
|
|
89
102
|
}
|
|
90
103
|
}
|
|
91
104
|
|
|
@@ -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 { Services } 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
|
AvailableServiceSku,
|
|
19
20
|
ServicesListSkusNextOptionalParams,
|
|
20
21
|
ServicesListSkusOptionalParams,
|
|
22
|
+
ServicesListSkusResponse,
|
|
21
23
|
DataMigrationService,
|
|
22
24
|
ServicesListByResourceGroupNextOptionalParams,
|
|
23
25
|
ServicesListByResourceGroupOptionalParams,
|
|
26
|
+
ServicesListByResourceGroupResponse,
|
|
24
27
|
ServicesListNextOptionalParams,
|
|
25
28
|
ServicesListOptionalParams,
|
|
29
|
+
ServicesListResponse,
|
|
26
30
|
ServicesCreateOrUpdateOptionalParams,
|
|
27
31
|
ServicesCreateOrUpdateResponse,
|
|
28
32
|
ServicesGetOptionalParams,
|
|
@@ -34,12 +38,9 @@ import {
|
|
|
34
38
|
ServicesCheckStatusResponse,
|
|
35
39
|
ServicesStartOptionalParams,
|
|
36
40
|
ServicesStopOptionalParams,
|
|
37
|
-
ServicesListSkusResponse,
|
|
38
41
|
NameAvailabilityRequest,
|
|
39
42
|
ServicesCheckChildrenNameAvailabilityOptionalParams,
|
|
40
43
|
ServicesCheckChildrenNameAvailabilityResponse,
|
|
41
|
-
ServicesListByResourceGroupResponse,
|
|
42
|
-
ServicesListResponse,
|
|
43
44
|
ServicesCheckNameAvailabilityOptionalParams,
|
|
44
45
|
ServicesCheckNameAvailabilityResponse,
|
|
45
46
|
ServicesListSkusNextResponse,
|
|
@@ -80,8 +81,16 @@ export class ServicesImpl implements Services {
|
|
|
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.listSkusPagingPage(
|
|
89
|
+
groupName,
|
|
90
|
+
serviceName,
|
|
91
|
+
options,
|
|
92
|
+
settings
|
|
93
|
+
);
|
|
85
94
|
}
|
|
86
95
|
};
|
|
87
96
|
}
|
|
@@ -89,11 +98,18 @@ export class ServicesImpl implements Services {
|
|
|
89
98
|
private async *listSkusPagingPage(
|
|
90
99
|
groupName: string,
|
|
91
100
|
serviceName: string,
|
|
92
|
-
options?: ServicesListSkusOptionalParams
|
|
101
|
+
options?: ServicesListSkusOptionalParams,
|
|
102
|
+
settings?: PageSettings
|
|
93
103
|
): AsyncIterableIterator<AvailableServiceSku[]> {
|
|
94
|
-
let result
|
|
95
|
-
|
|
96
|
-
|
|
104
|
+
let result: ServicesListSkusResponse;
|
|
105
|
+
let continuationToken = settings?.continuationToken;
|
|
106
|
+
if (!continuationToken) {
|
|
107
|
+
result = await this._listSkus(groupName, serviceName, options);
|
|
108
|
+
let page = result.value || [];
|
|
109
|
+
continuationToken = result.nextLink;
|
|
110
|
+
setContinuationToken(page, continuationToken);
|
|
111
|
+
yield page;
|
|
112
|
+
}
|
|
97
113
|
while (continuationToken) {
|
|
98
114
|
result = await this._listSkusNext(
|
|
99
115
|
groupName,
|
|
@@ -102,7 +118,9 @@ export class ServicesImpl implements Services {
|
|
|
102
118
|
options
|
|
103
119
|
);
|
|
104
120
|
continuationToken = result.nextLink;
|
|
105
|
-
|
|
121
|
+
let page = result.value || [];
|
|
122
|
+
setContinuationToken(page, continuationToken);
|
|
123
|
+
yield page;
|
|
106
124
|
}
|
|
107
125
|
}
|
|
108
126
|
|
|
@@ -138,19 +156,29 @@ export class ServicesImpl implements Services {
|
|
|
138
156
|
[Symbol.asyncIterator]() {
|
|
139
157
|
return this;
|
|
140
158
|
},
|
|
141
|
-
byPage: () => {
|
|
142
|
-
|
|
159
|
+
byPage: (settings?: PageSettings) => {
|
|
160
|
+
if (settings?.maxPageSize) {
|
|
161
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
162
|
+
}
|
|
163
|
+
return this.listByResourceGroupPagingPage(groupName, options, settings);
|
|
143
164
|
}
|
|
144
165
|
};
|
|
145
166
|
}
|
|
146
167
|
|
|
147
168
|
private async *listByResourceGroupPagingPage(
|
|
148
169
|
groupName: string,
|
|
149
|
-
options?: ServicesListByResourceGroupOptionalParams
|
|
170
|
+
options?: ServicesListByResourceGroupOptionalParams,
|
|
171
|
+
settings?: PageSettings
|
|
150
172
|
): AsyncIterableIterator<DataMigrationService[]> {
|
|
151
|
-
let result
|
|
152
|
-
|
|
153
|
-
|
|
173
|
+
let result: ServicesListByResourceGroupResponse;
|
|
174
|
+
let continuationToken = settings?.continuationToken;
|
|
175
|
+
if (!continuationToken) {
|
|
176
|
+
result = await this._listByResourceGroup(groupName, options);
|
|
177
|
+
let page = result.value || [];
|
|
178
|
+
continuationToken = result.nextLink;
|
|
179
|
+
setContinuationToken(page, continuationToken);
|
|
180
|
+
yield page;
|
|
181
|
+
}
|
|
154
182
|
while (continuationToken) {
|
|
155
183
|
result = await this._listByResourceGroupNext(
|
|
156
184
|
groupName,
|
|
@@ -158,7 +186,9 @@ export class ServicesImpl implements Services {
|
|
|
158
186
|
options
|
|
159
187
|
);
|
|
160
188
|
continuationToken = result.nextLink;
|
|
161
|
-
|
|
189
|
+
let page = result.value || [];
|
|
190
|
+
setContinuationToken(page, continuationToken);
|
|
191
|
+
yield page;
|
|
162
192
|
}
|
|
163
193
|
}
|
|
164
194
|
|
|
@@ -190,22 +220,34 @@ export class ServicesImpl implements Services {
|
|
|
190
220
|
[Symbol.asyncIterator]() {
|
|
191
221
|
return this;
|
|
192
222
|
},
|
|
193
|
-
byPage: () => {
|
|
194
|
-
|
|
223
|
+
byPage: (settings?: PageSettings) => {
|
|
224
|
+
if (settings?.maxPageSize) {
|
|
225
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
226
|
+
}
|
|
227
|
+
return this.listPagingPage(options, settings);
|
|
195
228
|
}
|
|
196
229
|
};
|
|
197
230
|
}
|
|
198
231
|
|
|
199
232
|
private async *listPagingPage(
|
|
200
|
-
options?: ServicesListOptionalParams
|
|
233
|
+
options?: ServicesListOptionalParams,
|
|
234
|
+
settings?: PageSettings
|
|
201
235
|
): AsyncIterableIterator<DataMigrationService[]> {
|
|
202
|
-
let result
|
|
203
|
-
|
|
204
|
-
|
|
236
|
+
let result: ServicesListResponse;
|
|
237
|
+
let continuationToken = settings?.continuationToken;
|
|
238
|
+
if (!continuationToken) {
|
|
239
|
+
result = await this._list(options);
|
|
240
|
+
let page = result.value || [];
|
|
241
|
+
continuationToken = result.nextLink;
|
|
242
|
+
setContinuationToken(page, continuationToken);
|
|
243
|
+
yield page;
|
|
244
|
+
}
|
|
205
245
|
while (continuationToken) {
|
|
206
246
|
result = await this._listNext(continuationToken, options);
|
|
207
247
|
continuationToken = result.nextLink;
|
|
208
|
-
|
|
248
|
+
let page = result.value || [];
|
|
249
|
+
setContinuationToken(page, continuationToken);
|
|
250
|
+
yield page;
|
|
209
251
|
}
|
|
210
252
|
}
|
|
211
253
|
|
|
@@ -286,10 +328,12 @@ export class ServicesImpl implements Services {
|
|
|
286
328
|
{ groupName, serviceName, parameters, options },
|
|
287
329
|
createOrUpdateOperationSpec
|
|
288
330
|
);
|
|
289
|
-
|
|
331
|
+
const poller = new LroEngine(lro, {
|
|
290
332
|
resumeFrom: options?.resumeFrom,
|
|
291
333
|
intervalInMs: options?.updateIntervalInMs
|
|
292
334
|
});
|
|
335
|
+
await poller.poll();
|
|
336
|
+
return poller;
|
|
293
337
|
}
|
|
294
338
|
|
|
295
339
|
/**
|
|
@@ -395,10 +439,12 @@ export class ServicesImpl implements Services {
|
|
|
395
439
|
{ groupName, serviceName, options },
|
|
396
440
|
deleteOperationSpec
|
|
397
441
|
);
|
|
398
|
-
|
|
442
|
+
const poller = new LroEngine(lro, {
|
|
399
443
|
resumeFrom: options?.resumeFrom,
|
|
400
444
|
intervalInMs: options?.updateIntervalInMs
|
|
401
445
|
});
|
|
446
|
+
await poller.poll();
|
|
447
|
+
return poller;
|
|
402
448
|
}
|
|
403
449
|
|
|
404
450
|
/**
|
|
@@ -482,10 +528,12 @@ export class ServicesImpl implements Services {
|
|
|
482
528
|
{ groupName, serviceName, parameters, options },
|
|
483
529
|
updateOperationSpec
|
|
484
530
|
);
|
|
485
|
-
|
|
531
|
+
const poller = new LroEngine(lro, {
|
|
486
532
|
resumeFrom: options?.resumeFrom,
|
|
487
533
|
intervalInMs: options?.updateIntervalInMs
|
|
488
534
|
});
|
|
535
|
+
await poller.poll();
|
|
536
|
+
return poller;
|
|
489
537
|
}
|
|
490
538
|
|
|
491
539
|
/**
|
|
@@ -587,10 +635,12 @@ export class ServicesImpl implements Services {
|
|
|
587
635
|
{ groupName, serviceName, options },
|
|
588
636
|
startOperationSpec
|
|
589
637
|
);
|
|
590
|
-
|
|
638
|
+
const poller = new LroEngine(lro, {
|
|
591
639
|
resumeFrom: options?.resumeFrom,
|
|
592
640
|
intervalInMs: options?.updateIntervalInMs
|
|
593
641
|
});
|
|
642
|
+
await poller.poll();
|
|
643
|
+
return poller;
|
|
594
644
|
}
|
|
595
645
|
|
|
596
646
|
/**
|
|
@@ -666,10 +716,12 @@ export class ServicesImpl implements Services {
|
|
|
666
716
|
{ groupName, serviceName, options },
|
|
667
717
|
stopOperationSpec
|
|
668
718
|
);
|
|
669
|
-
|
|
719
|
+
const poller = new LroEngine(lro, {
|
|
670
720
|
resumeFrom: options?.resumeFrom,
|
|
671
721
|
intervalInMs: options?.updateIntervalInMs
|
|
672
722
|
});
|
|
723
|
+
await poller.poll();
|
|
724
|
+
return poller;
|
|
673
725
|
}
|
|
674
726
|
|
|
675
727
|
/**
|