@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
package/rollup.config.js
CHANGED
@@ -14,62 +14,14 @@ import json from "@rollup/plugin-json";
|
|
14
14
|
|
15
15
|
import nodeBuiltins from "builtin-modules";
|
16
16
|
|
17
|
-
/**
|
18
|
-
* Gets the proper configuration needed for rollup's commonJS plugin for @opentelemetry/api.
|
19
|
-
*
|
20
|
-
* NOTE: this manual configuration is only needed because OpenTelemetry uses an
|
21
|
-
* __exportStar downleveled helper function to declare its exports which confuses
|
22
|
-
* rollup's automatic discovery mechanism.
|
23
|
-
*
|
24
|
-
* @returns an object reference that can be `...`'d into your cjs() configuration.
|
25
|
-
*/
|
26
|
-
export function openTelemetryCommonJs() {
|
27
|
-
const namedExports = {};
|
28
|
-
|
29
|
-
for (const key of [
|
30
|
-
"@opentelemetry/api",
|
31
|
-
"@azure/core-tracing/node_modules/@opentelemetry/api"
|
32
|
-
]) {
|
33
|
-
namedExports[key] = [
|
34
|
-
"SpanKind",
|
35
|
-
"TraceFlags",
|
36
|
-
"getSpan",
|
37
|
-
"setSpan",
|
38
|
-
"SpanStatusCode",
|
39
|
-
"getSpanContext",
|
40
|
-
"setSpanContext"
|
41
|
-
];
|
42
|
-
}
|
43
|
-
|
44
|
-
const releasedOpenTelemetryVersions = ["0.10.2", "1.0.0-rc.0"];
|
45
|
-
|
46
|
-
for (const version of releasedOpenTelemetryVersions) {
|
47
|
-
namedExports[
|
48
|
-
// working around a limitation in the rollup common.js plugin - it's not able to resolve these modules so the named exports listed above will not get applied. We have to drill down to the actual path.
|
49
|
-
`../../../common/temp/node_modules/.pnpm/@opentelemetry/api@${version}/node_modules/@opentelemetry/api/build/src/index.js`
|
50
|
-
] = [
|
51
|
-
"SpanKind",
|
52
|
-
"TraceFlags",
|
53
|
-
"getSpan",
|
54
|
-
"setSpan",
|
55
|
-
"StatusCode",
|
56
|
-
"CanonicalCode",
|
57
|
-
"getSpanContext",
|
58
|
-
"setSpanContext"
|
59
|
-
];
|
60
|
-
}
|
61
|
-
|
62
|
-
return namedExports;
|
63
|
-
}
|
64
|
-
|
65
17
|
// #region Warning Handler
|
66
18
|
|
67
19
|
/**
|
68
|
-
* A function that can determine whether a
|
20
|
+
* A function that can determine whether a rollup warning should be ignored. If
|
69
21
|
* the function returns `true`, then the warning will not be displayed.
|
70
22
|
*/
|
71
23
|
|
72
|
-
function
|
24
|
+
function ignoreNiseSinonEval(warning) {
|
73
25
|
return (
|
74
26
|
warning.code === "EVAL" &&
|
75
27
|
warning.id &&
|
@@ -78,17 +30,14 @@ function ignoreNiseSinonEvalWarnings(warning) {
|
|
78
30
|
);
|
79
31
|
}
|
80
32
|
|
81
|
-
function
|
33
|
+
function ignoreChaiCircularDependency(warning) {
|
82
34
|
return (
|
83
35
|
warning.code === "CIRCULAR_DEPENDENCY" &&
|
84
36
|
warning.importer && warning.importer.includes("node_modules/chai") === true
|
85
37
|
);
|
86
38
|
}
|
87
39
|
|
88
|
-
const warningInhibitors = [
|
89
|
-
ignoreChaiCircularDependencyWarnings,
|
90
|
-
ignoreNiseSinonEvalWarnings
|
91
|
-
];
|
40
|
+
const warningInhibitors = [ignoreChaiCircularDependency, ignoreNiseSinonEval];
|
92
41
|
|
93
42
|
/**
|
94
43
|
* Construct a warning handler for the shared rollup configuration
|
@@ -122,22 +71,7 @@ function makeBrowserTestConfig() {
|
|
122
71
|
nodeResolve({
|
123
72
|
mainFields: ["module", "browser"]
|
124
73
|
}),
|
125
|
-
cjs(
|
126
|
-
namedExports: {
|
127
|
-
// Chai's strange internal architecture makes it impossible to statically
|
128
|
-
// analyze its exports.
|
129
|
-
chai: [
|
130
|
-
"version",
|
131
|
-
"use",
|
132
|
-
"util",
|
133
|
-
"config",
|
134
|
-
"expect",
|
135
|
-
"should",
|
136
|
-
"assert"
|
137
|
-
],
|
138
|
-
...openTelemetryCommonJs()
|
139
|
-
}
|
140
|
-
}),
|
74
|
+
cjs(),
|
141
75
|
json(),
|
142
76
|
sourcemaps()
|
143
77
|
//viz({ filename: "dist-test/browser-stats.html", sourcemap: true })
|
@@ -173,7 +107,7 @@ export function makeConfig(pkg, options) {
|
|
173
107
|
],
|
174
108
|
output: { file: "dist/index.js", format: "cjs", sourcemap: true },
|
175
109
|
preserveSymlinks: false,
|
176
|
-
plugins: [sourcemaps(), nodeResolve()
|
110
|
+
plugins: [sourcemaps(), nodeResolve()]
|
177
111
|
};
|
178
112
|
|
179
113
|
const config = [baseConfig];
|
@@ -7,6 +7,12 @@
|
|
7
7
|
*/
|
8
8
|
|
9
9
|
import * as coreClient from "@azure/core-client";
|
10
|
+
import * as coreRestPipeline from "@azure/core-rest-pipeline";
|
11
|
+
import {
|
12
|
+
PipelineRequest,
|
13
|
+
PipelineResponse,
|
14
|
+
SendRequest
|
15
|
+
} from "@azure/core-rest-pipeline";
|
10
16
|
import * as coreAuth from "@azure/core-auth";
|
11
17
|
import {
|
12
18
|
DatabaseMigrationsSqlMiImpl,
|
@@ -68,24 +74,54 @@ export class DataMigrationManagementClient extends coreClient.ServiceClient {
|
|
68
74
|
credential: credentials
|
69
75
|
};
|
70
76
|
|
71
|
-
const packageDetails = `azsdk-js-arm-datamigration/3.0.0-beta.
|
77
|
+
const packageDetails = `azsdk-js-arm-datamigration/3.0.0-beta.3`;
|
72
78
|
const userAgentPrefix =
|
73
79
|
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
74
80
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
75
81
|
: `${packageDetails}`;
|
76
82
|
|
77
|
-
if (!options.credentialScopes) {
|
78
|
-
options.credentialScopes = ["https://management.azure.com/.default"];
|
79
|
-
}
|
80
83
|
const optionsWithDefaults = {
|
81
84
|
...defaults,
|
82
85
|
...options,
|
83
86
|
userAgentOptions: {
|
84
87
|
userAgentPrefix
|
85
88
|
},
|
86
|
-
|
89
|
+
endpoint:
|
90
|
+
options.endpoint ?? options.baseUri ?? "https://management.azure.com"
|
87
91
|
};
|
88
92
|
super(optionsWithDefaults);
|
93
|
+
|
94
|
+
let bearerTokenAuthenticationPolicyFound: boolean = false;
|
95
|
+
if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
|
96
|
+
const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();
|
97
|
+
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(
|
98
|
+
(pipelinePolicy) =>
|
99
|
+
pipelinePolicy.name ===
|
100
|
+
coreRestPipeline.bearerTokenAuthenticationPolicyName
|
101
|
+
);
|
102
|
+
}
|
103
|
+
if (
|
104
|
+
!options ||
|
105
|
+
!options.pipeline ||
|
106
|
+
options.pipeline.getOrderedPolicies().length == 0 ||
|
107
|
+
!bearerTokenAuthenticationPolicyFound
|
108
|
+
) {
|
109
|
+
this.pipeline.removePolicy({
|
110
|
+
name: coreRestPipeline.bearerTokenAuthenticationPolicyName
|
111
|
+
});
|
112
|
+
this.pipeline.addPolicy(
|
113
|
+
coreRestPipeline.bearerTokenAuthenticationPolicy({
|
114
|
+
credential: credentials,
|
115
|
+
scopes:
|
116
|
+
optionsWithDefaults.credentialScopes ??
|
117
|
+
`${optionsWithDefaults.endpoint}/.default`,
|
118
|
+
challengeCallbacks: {
|
119
|
+
authorizeRequestOnChallenge:
|
120
|
+
coreClient.authorizeRequestOnClaimChallenge
|
121
|
+
}
|
122
|
+
})
|
123
|
+
);
|
124
|
+
}
|
89
125
|
// Parameter assignments
|
90
126
|
this.subscriptionId = subscriptionId;
|
91
127
|
|
@@ -103,6 +139,35 @@ export class DataMigrationManagementClient extends coreClient.ServiceClient {
|
|
103
139
|
this.projects = new ProjectsImpl(this);
|
104
140
|
this.usages = new UsagesImpl(this);
|
105
141
|
this.files = new FilesImpl(this);
|
142
|
+
this.addCustomApiVersionPolicy(options.apiVersion);
|
143
|
+
}
|
144
|
+
|
145
|
+
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
146
|
+
private addCustomApiVersionPolicy(apiVersion?: string) {
|
147
|
+
if (!apiVersion) {
|
148
|
+
return;
|
149
|
+
}
|
150
|
+
const apiVersionPolicy = {
|
151
|
+
name: "CustomApiVersionPolicy",
|
152
|
+
async sendRequest(
|
153
|
+
request: PipelineRequest,
|
154
|
+
next: SendRequest
|
155
|
+
): Promise<PipelineResponse> {
|
156
|
+
const param = request.url.split("?");
|
157
|
+
if (param.length > 1) {
|
158
|
+
const newParams = param[1].split("&").map((item) => {
|
159
|
+
if (item.indexOf("api-version") > -1) {
|
160
|
+
return "api-version=" + apiVersion;
|
161
|
+
} else {
|
162
|
+
return item;
|
163
|
+
}
|
164
|
+
});
|
165
|
+
request.url = param[0] + "?" + newParams.join("&");
|
166
|
+
}
|
167
|
+
return next(request);
|
168
|
+
}
|
169
|
+
};
|
170
|
+
this.pipeline.addPolicy(apiVersionPolicy);
|
106
171
|
}
|
107
172
|
|
108
173
|
databaseMigrationsSqlMi: DatabaseMigrationsSqlMi;
|
package/src/index.ts
CHANGED
@@ -7,6 +7,7 @@
|
|
7
7
|
*/
|
8
8
|
|
9
9
|
/// <reference lib="esnext.asynciterable" />
|
10
|
+
export { getContinuationToken } from "./pagingHelper";
|
10
11
|
export * from "./models";
|
11
12
|
export { DataMigrationManagementClient } from "./dataMigrationManagementClient";
|
12
13
|
export * from "./operationsInterfaces";
|