@azure/arm-datamigration 2.0.0 → 3.0.0-beta.1
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +11 -0
- package/LICENSE +21 -0
- package/README.md +72 -73
- package/dist/index.js +16801 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/samples-dev/createOrUpdateDatabaseMigrationResourceWithMaximumParameters.d.ts +2 -0
- package/dist-esm/samples-dev/createOrUpdateDatabaseMigrationResourceWithMaximumParameters.d.ts.map +1 -0
- package/dist-esm/samples-dev/createOrUpdateDatabaseMigrationResourceWithMaximumParameters.js +65 -0
- package/dist-esm/samples-dev/createOrUpdateDatabaseMigrationResourceWithMaximumParameters.js.map +1 -0
- package/dist-esm/samples-dev/createOrUpdateDatabaseMigrationResourceWithMinimumParameters.d.ts +2 -0
- package/dist-esm/samples-dev/createOrUpdateDatabaseMigrationResourceWithMinimumParameters.d.ts.map +1 -0
- package/dist-esm/samples-dev/createOrUpdateDatabaseMigrationResourceWithMinimumParameters.js +65 -0
- package/dist-esm/samples-dev/createOrUpdateDatabaseMigrationResourceWithMinimumParameters.js.map +1 -0
- package/dist-esm/samples-dev/createOrUpdateSqlMigrationServiceWithMaximumParameters.d.ts +2 -0
- package/dist-esm/samples-dev/createOrUpdateSqlMigrationServiceWithMaximumParameters.d.ts.map +1 -0
- package/dist-esm/samples-dev/createOrUpdateSqlMigrationServiceWithMaximumParameters.js +32 -0
- package/dist-esm/samples-dev/createOrUpdateSqlMigrationServiceWithMaximumParameters.js.map +1 -0
- package/dist-esm/samples-dev/createOrUpdateSqlMigrationServiceWithMinimumParameters.d.ts +2 -0
- package/dist-esm/samples-dev/createOrUpdateSqlMigrationServiceWithMinimumParameters.d.ts.map +1 -0
- package/dist-esm/samples-dev/createOrUpdateSqlMigrationServiceWithMinimumParameters.js +32 -0
- package/dist-esm/samples-dev/createOrUpdateSqlMigrationServiceWithMinimumParameters.js.map +1 -0
- package/dist-esm/samples-dev/cutoverOnlineMigrationOperationForTheDatabase.d.ts +2 -0
- package/dist-esm/samples-dev/cutoverOnlineMigrationOperationForTheDatabase.d.ts.map +1 -0
- package/dist-esm/samples-dev/cutoverOnlineMigrationOperationForTheDatabase.js +35 -0
- package/dist-esm/samples-dev/cutoverOnlineMigrationOperationForTheDatabase.js.map +1 -0
- package/dist-esm/samples-dev/deleteSqlMigrationService.d.ts +2 -0
- package/dist-esm/samples-dev/deleteSqlMigrationService.d.ts.map +1 -0
- package/dist-esm/samples-dev/deleteSqlMigrationService.js +31 -0
- package/dist-esm/samples-dev/deleteSqlMigrationService.js.map +1 -0
- package/dist-esm/samples-dev/deleteTheIntegrationRuntimeNode.d.ts +2 -0
- package/dist-esm/samples-dev/deleteTheIntegrationRuntimeNode.d.ts.map +1 -0
- package/dist-esm/samples-dev/deleteTheIntegrationRuntimeNode.js +35 -0
- package/dist-esm/samples-dev/deleteTheIntegrationRuntimeNode.js.map +1 -0
- package/dist-esm/samples-dev/filesCreateOrUpdate.d.ts +2 -0
- package/dist-esm/samples-dev/filesCreateOrUpdate.d.ts.map +1 -0
- package/dist-esm/samples-dev/filesCreateOrUpdate.js +36 -0
- package/dist-esm/samples-dev/filesCreateOrUpdate.js.map +1 -0
- package/dist-esm/samples-dev/filesDelete.d.ts +2 -0
- package/dist-esm/samples-dev/filesDelete.d.ts.map +1 -0
- package/dist-esm/samples-dev/filesDelete.js +33 -0
- package/dist-esm/samples-dev/filesDelete.js.map +1 -0
- package/dist-esm/samples-dev/filesList.d.ts +2 -0
- package/dist-esm/samples-dev/filesList.d.ts.map +1 -0
- package/dist-esm/samples-dev/filesList.js +33 -0
- package/dist-esm/samples-dev/filesList.js.map +1 -0
- package/dist-esm/samples-dev/filesUpdate.d.ts +2 -0
- package/dist-esm/samples-dev/filesUpdate.d.ts.map +1 -0
- package/dist-esm/samples-dev/filesUpdate.js +36 -0
- package/dist-esm/samples-dev/filesUpdate.js.map +1 -0
- package/dist-esm/samples-dev/getDatabaseMigrationResource.d.ts +2 -0
- package/dist-esm/samples-dev/getDatabaseMigrationResource.d.ts.map +1 -0
- package/dist-esm/samples-dev/getDatabaseMigrationResource.js +32 -0
- package/dist-esm/samples-dev/getDatabaseMigrationResource.js.map +1 -0
- package/dist-esm/samples-dev/getMigrationService.d.ts +2 -0
- package/dist-esm/samples-dev/getMigrationService.d.ts.map +1 -0
- package/dist-esm/samples-dev/getMigrationService.js +31 -0
- package/dist-esm/samples-dev/getMigrationService.js.map +1 -0
- package/dist-esm/samples-dev/getMigrationServicesInTheResourceGroup.d.ts +2 -0
- package/dist-esm/samples-dev/getMigrationServicesInTheResourceGroup.d.ts.map +1 -0
- package/dist-esm/samples-dev/getMigrationServicesInTheResourceGroup.js +44 -0
- package/dist-esm/samples-dev/getMigrationServicesInTheResourceGroup.js.map +1 -0
- package/dist-esm/samples-dev/getServicesInTheSubscriptions.d.ts +2 -0
- package/dist-esm/samples-dev/getServicesInTheSubscriptions.d.ts.map +1 -0
- package/dist-esm/samples-dev/getServicesInTheSubscriptions.js +43 -0
- package/dist-esm/samples-dev/getServicesInTheSubscriptions.js.map +1 -0
- package/dist-esm/samples-dev/listDatabaseMigrationsAttachedToTheService.d.ts +2 -0
- package/dist-esm/samples-dev/listDatabaseMigrationsAttachedToTheService.d.ts.map +1 -0
- package/dist-esm/samples-dev/listDatabaseMigrationsAttachedToTheService.js +45 -0
- package/dist-esm/samples-dev/listDatabaseMigrationsAttachedToTheService.js.map +1 -0
- package/dist-esm/samples-dev/listSkus.d.ts +2 -0
- package/dist-esm/samples-dev/listSkus.d.ts.map +1 -0
- package/dist-esm/samples-dev/listSkus.js +43 -0
- package/dist-esm/samples-dev/listSkus.js.map +1 -0
- package/dist-esm/samples-dev/listsAllOfTheAvailableSqlRestApiOperations.d.ts +2 -0
- package/dist-esm/samples-dev/listsAllOfTheAvailableSqlRestApiOperations.d.ts.map +1 -0
- package/dist-esm/samples-dev/listsAllOfTheAvailableSqlRestApiOperations.js +43 -0
- package/dist-esm/samples-dev/listsAllOfTheAvailableSqlRestApiOperations.js.map +1 -0
- package/dist-esm/samples-dev/projectsCreateOrUpdate.d.ts +2 -0
- package/dist-esm/samples-dev/projectsCreateOrUpdate.d.ts.map +1 -0
- package/dist-esm/samples-dev/projectsCreateOrUpdate.js +37 -0
- package/dist-esm/samples-dev/projectsCreateOrUpdate.js.map +1 -0
- package/dist-esm/samples-dev/projectsDelete.d.ts +2 -0
- package/dist-esm/samples-dev/projectsDelete.d.ts.map +1 -0
- package/dist-esm/samples-dev/projectsDelete.js +32 -0
- package/dist-esm/samples-dev/projectsDelete.js.map +1 -0
- package/dist-esm/samples-dev/projectsGet.d.ts +2 -0
- package/dist-esm/samples-dev/projectsGet.d.ts.map +1 -0
- package/dist-esm/samples-dev/projectsGet.js +32 -0
- package/dist-esm/samples-dev/projectsGet.js.map +1 -0
- package/dist-esm/samples-dev/projectsList.d.ts +2 -0
- package/dist-esm/samples-dev/projectsList.d.ts.map +1 -0
- package/dist-esm/samples-dev/projectsList.js +45 -0
- package/dist-esm/samples-dev/projectsList.js.map +1 -0
- package/dist-esm/samples-dev/projectsUpdate.d.ts +2 -0
- package/dist-esm/samples-dev/projectsUpdate.d.ts.map +1 -0
- package/dist-esm/samples-dev/projectsUpdate.js +37 -0
- package/dist-esm/samples-dev/projectsUpdate.js.map +1 -0
- package/dist-esm/samples-dev/regenerateTheOfAuthenticationKeys.d.ts +2 -0
- package/dist-esm/samples-dev/regenerateTheOfAuthenticationKeys.d.ts.map +1 -0
- package/dist-esm/samples-dev/regenerateTheOfAuthenticationKeys.js +32 -0
- package/dist-esm/samples-dev/regenerateTheOfAuthenticationKeys.js.map +1 -0
- package/dist-esm/samples-dev/retrieveTheListOfAuthenticationKeys.d.ts +2 -0
- package/dist-esm/samples-dev/retrieveTheListOfAuthenticationKeys.d.ts.map +1 -0
- package/dist-esm/samples-dev/retrieveTheListOfAuthenticationKeys.js +31 -0
- package/dist-esm/samples-dev/retrieveTheListOfAuthenticationKeys.js.map +1 -0
- package/dist-esm/samples-dev/retrieveTheMonitoringData.d.ts +2 -0
- package/dist-esm/samples-dev/retrieveTheMonitoringData.d.ts.map +1 -0
- package/dist-esm/samples-dev/retrieveTheMonitoringData.js +31 -0
- package/dist-esm/samples-dev/retrieveTheMonitoringData.js.map +1 -0
- package/dist-esm/samples-dev/serviceTasksList.d.ts +2 -0
- package/dist-esm/samples-dev/serviceTasksList.d.ts.map +1 -0
- package/dist-esm/samples-dev/serviceTasksList.js +45 -0
- package/dist-esm/samples-dev/serviceTasksList.js.map +1 -0
- package/dist-esm/samples-dev/servicesCheckChildrenNameAvailability.d.ts +2 -0
- package/dist-esm/samples-dev/servicesCheckChildrenNameAvailability.d.ts.map +1 -0
- package/dist-esm/samples-dev/servicesCheckChildrenNameAvailability.js +32 -0
- package/dist-esm/samples-dev/servicesCheckChildrenNameAvailability.js.map +1 -0
- package/dist-esm/samples-dev/servicesCheckNameAvailability.d.ts +2 -0
- package/dist-esm/samples-dev/servicesCheckNameAvailability.d.ts.map +1 -0
- package/dist-esm/samples-dev/servicesCheckNameAvailability.js +34 -0
- package/dist-esm/samples-dev/servicesCheckNameAvailability.js.map +1 -0
- package/dist-esm/samples-dev/servicesCheckStatus.d.ts +2 -0
- package/dist-esm/samples-dev/servicesCheckStatus.d.ts.map +1 -0
- package/dist-esm/samples-dev/servicesCheckStatus.js +31 -0
- package/dist-esm/samples-dev/servicesCheckStatus.js.map +1 -0
- package/dist-esm/samples-dev/servicesCreateOrUpdate.d.ts +2 -0
- package/dist-esm/samples-dev/servicesCreateOrUpdate.d.ts.map +1 -0
- package/dist-esm/samples-dev/servicesCreateOrUpdate.js +35 -0
- package/dist-esm/samples-dev/servicesCreateOrUpdate.js.map +1 -0
- package/dist-esm/samples-dev/servicesList.d.ts +2 -0
- package/dist-esm/samples-dev/servicesList.d.ts.map +1 -0
- package/dist-esm/samples-dev/servicesList.js +43 -0
- package/dist-esm/samples-dev/servicesList.js.map +1 -0
- package/dist-esm/samples-dev/servicesListByResourceGroup.d.ts +2 -0
- package/dist-esm/samples-dev/servicesListByResourceGroup.d.ts.map +1 -0
- package/dist-esm/samples-dev/servicesListByResourceGroup.js +44 -0
- package/dist-esm/samples-dev/servicesListByResourceGroup.js.map +1 -0
- package/dist-esm/samples-dev/servicesListSkus.d.ts +2 -0
- package/dist-esm/samples-dev/servicesListSkus.d.ts.map +1 -0
- package/dist-esm/samples-dev/servicesListSkus.js +45 -0
- package/dist-esm/samples-dev/servicesListSkus.js.map +1 -0
- package/dist-esm/samples-dev/servicesStart.d.ts +2 -0
- package/dist-esm/samples-dev/servicesStart.d.ts.map +1 -0
- package/dist-esm/samples-dev/servicesStart.js +31 -0
- package/dist-esm/samples-dev/servicesStart.js.map +1 -0
- package/dist-esm/samples-dev/servicesStop.d.ts +2 -0
- package/dist-esm/samples-dev/servicesStop.d.ts.map +1 -0
- package/dist-esm/samples-dev/servicesStop.js +31 -0
- package/dist-esm/samples-dev/servicesStop.js.map +1 -0
- package/dist-esm/samples-dev/servicesUsages.d.ts +2 -0
- package/dist-esm/samples-dev/servicesUsages.d.ts.map +1 -0
- package/dist-esm/samples-dev/servicesUsages.js +44 -0
- package/dist-esm/samples-dev/servicesUsages.js.map +1 -0
- package/dist-esm/samples-dev/stopOngoingMigrationForTheDatabase.d.ts +2 -0
- package/dist-esm/samples-dev/stopOngoingMigrationForTheDatabase.d.ts.map +1 -0
- package/dist-esm/samples-dev/stopOngoingMigrationForTheDatabase.js +35 -0
- package/dist-esm/samples-dev/stopOngoingMigrationForTheDatabase.js.map +1 -0
- package/dist-esm/samples-dev/tasksCancel.d.ts +2 -0
- package/dist-esm/samples-dev/tasksCancel.d.ts.map +1 -0
- package/dist-esm/samples-dev/tasksCancel.js +32 -0
- package/dist-esm/samples-dev/tasksCancel.js.map +1 -0
- package/dist-esm/samples-dev/tasksCommand.d.ts +2 -0
- package/dist-esm/samples-dev/tasksCommand.d.ts.map +1 -0
- package/dist-esm/samples-dev/tasksCommand.js +37 -0
- package/dist-esm/samples-dev/tasksCommand.js.map +1 -0
- package/dist-esm/samples-dev/tasksCreateOrUpdate.d.ts +2 -0
- package/dist-esm/samples-dev/tasksCreateOrUpdate.d.ts.map +1 -0
- package/dist-esm/samples-dev/tasksCreateOrUpdate.js +38 -0
- package/dist-esm/samples-dev/tasksCreateOrUpdate.js.map +1 -0
- package/dist-esm/samples-dev/tasksDelete.d.ts +2 -0
- package/dist-esm/samples-dev/tasksDelete.d.ts.map +1 -0
- package/dist-esm/samples-dev/tasksDelete.js +32 -0
- package/dist-esm/samples-dev/tasksDelete.js.map +1 -0
- package/dist-esm/samples-dev/tasksGet.d.ts +2 -0
- package/dist-esm/samples-dev/tasksGet.d.ts.map +1 -0
- package/dist-esm/samples-dev/tasksGet.js +32 -0
- package/dist-esm/samples-dev/tasksGet.js.map +1 -0
- package/dist-esm/samples-dev/tasksList.d.ts +2 -0
- package/dist-esm/samples-dev/tasksList.d.ts.map +1 -0
- package/dist-esm/samples-dev/tasksList.js +46 -0
- package/dist-esm/samples-dev/tasksList.js.map +1 -0
- package/dist-esm/samples-dev/tasksUpdate.d.ts +2 -0
- package/dist-esm/samples-dev/tasksUpdate.d.ts.map +1 -0
- package/dist-esm/samples-dev/tasksUpdate.js +38 -0
- package/dist-esm/samples-dev/tasksUpdate.js.map +1 -0
- package/dist-esm/samples-dev/updateSqlMigrationService.d.ts +2 -0
- package/dist-esm/samples-dev/updateSqlMigrationService.d.ts.map +1 -0
- package/dist-esm/samples-dev/updateSqlMigrationService.js +32 -0
- package/dist-esm/samples-dev/updateSqlMigrationService.js.map +1 -0
- package/dist-esm/src/dataMigrationManagementClient.d.ts +28 -0
- package/dist-esm/src/dataMigrationManagementClient.d.ts.map +1 -0
- package/dist-esm/src/dataMigrationManagementClient.js +61 -0
- package/dist-esm/src/dataMigrationManagementClient.js.map +1 -0
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +12 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +16 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +29 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +7238 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +534 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +434 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +7803 -6204
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +36 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +272 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/databaseMigrationsSqlMi.d.ts +83 -0
- package/dist-esm/src/operations/databaseMigrationsSqlMi.d.ts.map +1 -0
- package/dist-esm/src/operations/databaseMigrationsSqlMi.js +309 -0
- package/dist-esm/src/operations/databaseMigrationsSqlMi.js.map +1 -0
- package/dist-esm/src/operations/databaseMigrationsSqlVm.d.ts +83 -0
- package/dist-esm/src/operations/databaseMigrationsSqlVm.d.ts.map +1 -0
- package/dist-esm/src/operations/databaseMigrationsSqlVm.js +309 -0
- package/dist-esm/src/operations/databaseMigrationsSqlVm.js.map +1 -0
- package/dist-esm/src/operations/files.d.ts +101 -0
- package/dist-esm/src/operations/files.d.ts.map +1 -0
- package/dist-esm/src/operations/files.js +358 -0
- package/dist-esm/src/operations/files.js.map +1 -0
- package/{esm → dist-esm/src}/operations/index.d.ts +4 -1
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/dist-esm/src/operations/index.js +19 -0
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +32 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +116 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/projects.d.ts +78 -0
- package/dist-esm/src/operations/projects.d.ts.map +1 -0
- package/dist-esm/src/operations/projects.js +279 -0
- package/dist-esm/src/operations/projects.js.map +1 -0
- package/dist-esm/src/operations/resourceSkus.d.ts +32 -0
- package/dist-esm/src/operations/resourceSkus.d.ts.map +1 -0
- package/dist-esm/src/operations/resourceSkus.js +124 -0
- package/dist-esm/src/operations/resourceSkus.js.map +1 -0
- package/dist-esm/src/operations/serviceTasks.d.ts +91 -0
- package/dist-esm/src/operations/serviceTasks.d.ts.map +1 -0
- package/dist-esm/src/operations/serviceTasks.js +316 -0
- package/dist-esm/src/operations/serviceTasks.js.map +1 -0
- package/dist-esm/src/operations/services.d.ts +217 -0
- package/dist-esm/src/operations/services.d.ts.map +1 -0
- package/dist-esm/src/operations/services.js +884 -0
- package/dist-esm/src/operations/services.js.map +1 -0
- package/dist-esm/src/operations/sqlMigrationServices.d.ts +178 -0
- package/dist-esm/src/operations/sqlMigrationServices.d.ts.map +1 -0
- package/dist-esm/src/operations/sqlMigrationServices.js +720 -0
- package/dist-esm/src/operations/sqlMigrationServices.js.map +1 -0
- package/dist-esm/src/operations/tasks.d.ts +110 -0
- package/dist-esm/src/operations/tasks.d.ts.map +1 -0
- package/dist-esm/src/operations/tasks.js +369 -0
- package/dist-esm/src/operations/tasks.js.map +1 -0
- package/dist-esm/src/operations/usages.d.ts +37 -0
- package/dist-esm/src/operations/usages.d.ts.map +1 -0
- package/dist-esm/src/operations/usages.js +134 -0
- package/dist-esm/src/operations/usages.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/databaseMigrationsSqlMi.d.ts +75 -0
- package/dist-esm/src/operationsInterfaces/databaseMigrationsSqlMi.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/databaseMigrationsSqlMi.js +9 -0
- package/dist-esm/src/operationsInterfaces/databaseMigrationsSqlMi.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/databaseMigrationsSqlVm.d.ts +75 -0
- package/dist-esm/src/operationsInterfaces/databaseMigrationsSqlVm.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/databaseMigrationsSqlVm.js +9 -0
- package/dist-esm/src/operationsInterfaces/databaseMigrationsSqlVm.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/files.d.ts +73 -0
- package/dist-esm/src/operationsInterfaces/files.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/files.js +9 -0
- package/dist-esm/src/operationsInterfaces/files.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +12 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +19 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/projects.d.ts +52 -0
- package/dist-esm/src/operationsInterfaces/projects.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/projects.js +9 -0
- package/dist-esm/src/operationsInterfaces/projects.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/resourceSkus.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/resourceSkus.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/resourceSkus.js +9 -0
- package/dist-esm/src/operationsInterfaces/resourceSkus.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/serviceTasks.d.ts +64 -0
- package/dist-esm/src/operationsInterfaces/serviceTasks.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/serviceTasks.js +9 -0
- package/dist-esm/src/operationsInterfaces/serviceTasks.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/services.d.ts +161 -0
- package/dist-esm/src/operationsInterfaces/services.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/services.js +9 -0
- package/dist-esm/src/operationsInterfaces/services.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/sqlMigrationServices.d.ts +121 -0
- package/dist-esm/src/operationsInterfaces/sqlMigrationServices.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/sqlMigrationServices.js +9 -0
- package/dist-esm/src/operationsInterfaces/sqlMigrationServices.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/tasks.d.ts +81 -0
- package/dist-esm/src/operationsInterfaces/tasks.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/tasks.js +9 -0
- package/dist-esm/src/operationsInterfaces/tasks.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/usages.d.ts +13 -0
- package/dist-esm/src/operationsInterfaces/usages.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/usages.js +9 -0
- package/dist-esm/src/operationsInterfaces/usages.js.map +1 -0
- package/dist-esm/test/sampleTest.d.ts +2 -0
- package/dist-esm/test/sampleTest.d.ts.map +1 -0
- package/dist-esm/test/sampleTest.js +40 -0
- package/dist-esm/test/sampleTest.js.map +1 -0
- package/package.json +80 -32
- package/review/arm-datamigration.api.md +4412 -0
- package/rollup.config.js +181 -30
- package/src/dataMigrationManagementClient.ts +119 -0
- package/src/index.ts +12 -0
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +6252 -7473
- package/src/models/mappers.ts +8147 -6279
- package/src/models/parameters.ts +230 -54
- package/src/operations/databaseMigrationsSqlMi.ts +453 -0
- package/src/operations/databaseMigrationsSqlVm.ts +453 -0
- package/src/operations/files.ts +283 -368
- package/src/operations/index.ts +7 -6
- package/src/operations/operations.ts +93 -85
- package/src/operations/projects.ts +222 -275
- package/src/operations/resourceSkus.ts +92 -78
- package/src/operations/serviceTasks.ts +244 -321
- package/src/operations/services.ts +887 -647
- package/src/operations/sqlMigrationServices.ts +986 -0
- package/src/operations/tasks.ts +303 -397
- package/src/operations/usages.ts +110 -85
- package/src/operationsInterfaces/databaseMigrationsSqlMi.ts +138 -0
- package/src/operationsInterfaces/databaseMigrationsSqlVm.ts +138 -0
- package/src/operationsInterfaces/files.ts +139 -0
- package/{esm/operations/index.js → src/operationsInterfaces/index.ts} +8 -7
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/projects.ts +97 -0
- package/src/operationsInterfaces/resourceSkus.ts +22 -0
- package/src/operationsInterfaces/serviceTasks.ts +116 -0
- package/src/operationsInterfaces/services.ts +272 -0
- package/src/operationsInterfaces/sqlMigrationServices.ts +223 -0
- package/src/operationsInterfaces/tasks.ts +149 -0
- package/src/operationsInterfaces/usages.ts +25 -0
- package/tsconfig.json +5 -4
- package/types/arm-datamigration.d.ts +8549 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-datamigration.js +0 -14002
- package/dist/arm-datamigration.js.map +0 -1
- package/dist/arm-datamigration.min.js +0 -1
- package/dist/arm-datamigration.min.js.map +0 -1
- package/esm/dataMigrationServiceClient.d.ts +0 -25
- package/esm/dataMigrationServiceClient.d.ts.map +0 -1
- package/esm/dataMigrationServiceClient.js +0 -40
- package/esm/dataMigrationServiceClient.js.map +0 -1
- package/esm/dataMigrationServiceClientContext.d.ts +0 -16
- package/esm/dataMigrationServiceClientContext.d.ts.map +0 -1
- package/esm/dataMigrationServiceClientContext.js +0 -56
- package/esm/dataMigrationServiceClientContext.js.map +0 -1
- package/esm/models/filesMappers.d.ts +0 -2
- package/esm/models/filesMappers.d.ts.map +0 -1
- package/esm/models/filesMappers.js +0 -9
- package/esm/models/filesMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -8920
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js +0 -8
- package/esm/models/index.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -374
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/operationsMappers.d.ts +0 -2
- package/esm/models/operationsMappers.d.ts.map +0 -1
- package/esm/models/operationsMappers.js +0 -9
- package/esm/models/operationsMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -15
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -147
- package/esm/models/parameters.js.map +0 -1
- package/esm/models/projectsMappers.d.ts +0 -2
- package/esm/models/projectsMappers.d.ts.map +0 -1
- package/esm/models/projectsMappers.js +0 -9
- package/esm/models/projectsMappers.js.map +0 -1
- package/esm/models/resourceSkusMappers.d.ts +0 -2
- package/esm/models/resourceSkusMappers.d.ts.map +0 -1
- package/esm/models/resourceSkusMappers.js +0 -9
- package/esm/models/resourceSkusMappers.js.map +0 -1
- package/esm/models/serviceTasksMappers.d.ts +0 -2
- package/esm/models/serviceTasksMappers.d.ts.map +0 -1
- package/esm/models/serviceTasksMappers.js +0 -9
- package/esm/models/serviceTasksMappers.js.map +0 -1
- package/esm/models/servicesMappers.d.ts +0 -2
- package/esm/models/servicesMappers.d.ts.map +0 -1
- package/esm/models/servicesMappers.js +0 -9
- package/esm/models/servicesMappers.js.map +0 -1
- package/esm/models/tasksMappers.d.ts +0 -2
- package/esm/models/tasksMappers.d.ts.map +0 -1
- package/esm/models/tasksMappers.js +0 -9
- package/esm/models/tasksMappers.js.map +0 -1
- package/esm/models/usagesMappers.d.ts +0 -2
- package/esm/models/usagesMappers.d.ts.map +0 -1
- package/esm/models/usagesMappers.js +0 -9
- package/esm/models/usagesMappers.js.map +0 -1
- package/esm/operations/files.d.ts +0 -235
- package/esm/operations/files.d.ts.map +0 -1
- package/esm/operations/files.js +0 -309
- package/esm/operations/files.js.map +0 -1
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/operations.d.ts +0 -48
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js +0 -77
- package/esm/operations/operations.js.map +0 -1
- package/esm/operations/projects.d.ts +0 -166
- package/esm/operations/projects.d.ts.map +0 -1
- package/esm/operations/projects.js +0 -230
- package/esm/operations/projects.js.map +0 -1
- package/esm/operations/resourceSkus.d.ts +0 -48
- package/esm/operations/resourceSkus.d.ts.map +0 -1
- package/esm/operations/resourceSkus.js +0 -80
- package/esm/operations/resourceSkus.js.map +0 -1
- package/esm/operations/serviceTasks.d.ts +0 -199
- package/esm/operations/serviceTasks.d.ts.map +0 -1
- package/esm/operations/serviceTasks.js +0 -265
- package/esm/operations/serviceTasks.js.map +0 -1
- package/esm/operations/services.d.ts +0 -350
- package/esm/operations/services.d.ts.map +0 -1
- package/esm/operations/services.js +0 -626
- package/esm/operations/services.js.map +0 -1
- package/esm/operations/tasks.d.ts +0 -246
- package/esm/operations/tasks.d.ts.map +0 -1
- package/esm/operations/tasks.js +0 -317
- package/esm/operations/tasks.js.map +0 -1
- package/esm/operations/usages.d.ts +0 -53
- package/esm/operations/usages.d.ts.map +0 -1
- package/esm/operations/usages.js +0 -82
- package/esm/operations/usages.js.map +0 -1
- package/src/dataMigrationServiceClient.ts +0 -56
- package/src/dataMigrationServiceClientContext.ts +0 -62
- package/src/models/filesMappers.ts +0 -235
- package/src/models/operationsMappers.ts +0 -16
- package/src/models/projectsMappers.ts +0 -234
- package/src/models/resourceSkusMappers.ts +0 -19
- package/src/models/serviceTasksMappers.ts +0 -234
- package/src/models/servicesMappers.ts +0 -241
- package/src/models/tasksMappers.ts +0 -234
- package/src/models/usagesMappers.ts +0 -16
@@ -0,0 +1,453 @@
|
|
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
|
+
import { DatabaseMigrationsSqlMi } from "../operationsInterfaces";
|
10
|
+
import * as coreClient from "@azure/core-client";
|
11
|
+
import * as Mappers from "../models/mappers";
|
12
|
+
import * as Parameters from "../models/parameters";
|
13
|
+
import { DataMigrationManagementClient } from "../dataMigrationManagementClient";
|
14
|
+
import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
|
15
|
+
import { LroImpl } from "../lroImpl";
|
16
|
+
import {
|
17
|
+
DatabaseMigrationsSqlMiGetOptionalParams,
|
18
|
+
DatabaseMigrationsSqlMiGetResponse,
|
19
|
+
DatabaseMigrationSqlMi,
|
20
|
+
DatabaseMigrationsSqlMiCreateOrUpdateOptionalParams,
|
21
|
+
DatabaseMigrationsSqlMiCreateOrUpdateResponse,
|
22
|
+
MigrationOperationInput,
|
23
|
+
DatabaseMigrationsSqlMiCancelOptionalParams,
|
24
|
+
DatabaseMigrationsSqlMiCutoverOptionalParams
|
25
|
+
} from "../models";
|
26
|
+
|
27
|
+
/** Class containing DatabaseMigrationsSqlMi operations. */
|
28
|
+
export class DatabaseMigrationsSqlMiImpl implements DatabaseMigrationsSqlMi {
|
29
|
+
private readonly client: DataMigrationManagementClient;
|
30
|
+
|
31
|
+
/**
|
32
|
+
* Initialize a new instance of the class DatabaseMigrationsSqlMi class.
|
33
|
+
* @param client Reference to the service client
|
34
|
+
*/
|
35
|
+
constructor(client: DataMigrationManagementClient) {
|
36
|
+
this.client = client;
|
37
|
+
}
|
38
|
+
|
39
|
+
/**
|
40
|
+
* Retrieve the Database Migration resource.
|
41
|
+
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
42
|
+
* value from the Azure Resource Manager API or the portal.
|
43
|
+
* @param managedInstanceName
|
44
|
+
* @param targetDbName The name of the target database.
|
45
|
+
* @param options The options parameters.
|
46
|
+
*/
|
47
|
+
get(
|
48
|
+
resourceGroupName: string,
|
49
|
+
managedInstanceName: string,
|
50
|
+
targetDbName: string,
|
51
|
+
options?: DatabaseMigrationsSqlMiGetOptionalParams
|
52
|
+
): Promise<DatabaseMigrationsSqlMiGetResponse> {
|
53
|
+
return this.client.sendOperationRequest(
|
54
|
+
{ resourceGroupName, managedInstanceName, targetDbName, options },
|
55
|
+
getOperationSpec
|
56
|
+
);
|
57
|
+
}
|
58
|
+
|
59
|
+
/**
|
60
|
+
* Create or Update Database Migration resource.
|
61
|
+
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
62
|
+
* value from the Azure Resource Manager API or the portal.
|
63
|
+
* @param managedInstanceName
|
64
|
+
* @param targetDbName The name of the target database.
|
65
|
+
* @param parameters Details of SqlMigrationService resource.
|
66
|
+
* @param options The options parameters.
|
67
|
+
*/
|
68
|
+
async beginCreateOrUpdate(
|
69
|
+
resourceGroupName: string,
|
70
|
+
managedInstanceName: string,
|
71
|
+
targetDbName: string,
|
72
|
+
parameters: DatabaseMigrationSqlMi,
|
73
|
+
options?: DatabaseMigrationsSqlMiCreateOrUpdateOptionalParams
|
74
|
+
): Promise<
|
75
|
+
PollerLike<
|
76
|
+
PollOperationState<DatabaseMigrationsSqlMiCreateOrUpdateResponse>,
|
77
|
+
DatabaseMigrationsSqlMiCreateOrUpdateResponse
|
78
|
+
>
|
79
|
+
> {
|
80
|
+
const directSendOperation = async (
|
81
|
+
args: coreClient.OperationArguments,
|
82
|
+
spec: coreClient.OperationSpec
|
83
|
+
): Promise<DatabaseMigrationsSqlMiCreateOrUpdateResponse> => {
|
84
|
+
return this.client.sendOperationRequest(args, spec);
|
85
|
+
};
|
86
|
+
const sendOperation = async (
|
87
|
+
args: coreClient.OperationArguments,
|
88
|
+
spec: coreClient.OperationSpec
|
89
|
+
) => {
|
90
|
+
let currentRawResponse:
|
91
|
+
| coreClient.FullOperationResponse
|
92
|
+
| undefined = undefined;
|
93
|
+
const providedCallback = args.options?.onResponse;
|
94
|
+
const callback: coreClient.RawResponseCallback = (
|
95
|
+
rawResponse: coreClient.FullOperationResponse,
|
96
|
+
flatResponse: unknown
|
97
|
+
) => {
|
98
|
+
currentRawResponse = rawResponse;
|
99
|
+
providedCallback?.(rawResponse, flatResponse);
|
100
|
+
};
|
101
|
+
const updatedArgs = {
|
102
|
+
...args,
|
103
|
+
options: {
|
104
|
+
...args.options,
|
105
|
+
onResponse: callback
|
106
|
+
}
|
107
|
+
};
|
108
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
109
|
+
return {
|
110
|
+
flatResponse,
|
111
|
+
rawResponse: {
|
112
|
+
statusCode: currentRawResponse!.status,
|
113
|
+
body: currentRawResponse!.parsedBody,
|
114
|
+
headers: currentRawResponse!.headers.toJSON()
|
115
|
+
}
|
116
|
+
};
|
117
|
+
};
|
118
|
+
|
119
|
+
const lro = new LroImpl(
|
120
|
+
sendOperation,
|
121
|
+
{
|
122
|
+
resourceGroupName,
|
123
|
+
managedInstanceName,
|
124
|
+
targetDbName,
|
125
|
+
parameters,
|
126
|
+
options
|
127
|
+
},
|
128
|
+
createOrUpdateOperationSpec
|
129
|
+
);
|
130
|
+
return new LroEngine(lro, {
|
131
|
+
resumeFrom: options?.resumeFrom,
|
132
|
+
intervalInMs: options?.updateIntervalInMs
|
133
|
+
});
|
134
|
+
}
|
135
|
+
|
136
|
+
/**
|
137
|
+
* Create or Update Database Migration resource.
|
138
|
+
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
139
|
+
* value from the Azure Resource Manager API or the portal.
|
140
|
+
* @param managedInstanceName
|
141
|
+
* @param targetDbName The name of the target database.
|
142
|
+
* @param parameters Details of SqlMigrationService resource.
|
143
|
+
* @param options The options parameters.
|
144
|
+
*/
|
145
|
+
async beginCreateOrUpdateAndWait(
|
146
|
+
resourceGroupName: string,
|
147
|
+
managedInstanceName: string,
|
148
|
+
targetDbName: string,
|
149
|
+
parameters: DatabaseMigrationSqlMi,
|
150
|
+
options?: DatabaseMigrationsSqlMiCreateOrUpdateOptionalParams
|
151
|
+
): Promise<DatabaseMigrationsSqlMiCreateOrUpdateResponse> {
|
152
|
+
const poller = await this.beginCreateOrUpdate(
|
153
|
+
resourceGroupName,
|
154
|
+
managedInstanceName,
|
155
|
+
targetDbName,
|
156
|
+
parameters,
|
157
|
+
options
|
158
|
+
);
|
159
|
+
return poller.pollUntilDone();
|
160
|
+
}
|
161
|
+
|
162
|
+
/**
|
163
|
+
* Stop migrations in progress for the database
|
164
|
+
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
165
|
+
* value from the Azure Resource Manager API or the portal.
|
166
|
+
* @param managedInstanceName
|
167
|
+
* @param targetDbName The name of the target database.
|
168
|
+
* @param parameters Required migration operation ID for which cancel will be initiated.
|
169
|
+
* @param options The options parameters.
|
170
|
+
*/
|
171
|
+
async beginCancel(
|
172
|
+
resourceGroupName: string,
|
173
|
+
managedInstanceName: string,
|
174
|
+
targetDbName: string,
|
175
|
+
parameters: MigrationOperationInput,
|
176
|
+
options?: DatabaseMigrationsSqlMiCancelOptionalParams
|
177
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
178
|
+
const directSendOperation = async (
|
179
|
+
args: coreClient.OperationArguments,
|
180
|
+
spec: coreClient.OperationSpec
|
181
|
+
): Promise<void> => {
|
182
|
+
return this.client.sendOperationRequest(args, spec);
|
183
|
+
};
|
184
|
+
const sendOperation = async (
|
185
|
+
args: coreClient.OperationArguments,
|
186
|
+
spec: coreClient.OperationSpec
|
187
|
+
) => {
|
188
|
+
let currentRawResponse:
|
189
|
+
| coreClient.FullOperationResponse
|
190
|
+
| undefined = undefined;
|
191
|
+
const providedCallback = args.options?.onResponse;
|
192
|
+
const callback: coreClient.RawResponseCallback = (
|
193
|
+
rawResponse: coreClient.FullOperationResponse,
|
194
|
+
flatResponse: unknown
|
195
|
+
) => {
|
196
|
+
currentRawResponse = rawResponse;
|
197
|
+
providedCallback?.(rawResponse, flatResponse);
|
198
|
+
};
|
199
|
+
const updatedArgs = {
|
200
|
+
...args,
|
201
|
+
options: {
|
202
|
+
...args.options,
|
203
|
+
onResponse: callback
|
204
|
+
}
|
205
|
+
};
|
206
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
207
|
+
return {
|
208
|
+
flatResponse,
|
209
|
+
rawResponse: {
|
210
|
+
statusCode: currentRawResponse!.status,
|
211
|
+
body: currentRawResponse!.parsedBody,
|
212
|
+
headers: currentRawResponse!.headers.toJSON()
|
213
|
+
}
|
214
|
+
};
|
215
|
+
};
|
216
|
+
|
217
|
+
const lro = new LroImpl(
|
218
|
+
sendOperation,
|
219
|
+
{
|
220
|
+
resourceGroupName,
|
221
|
+
managedInstanceName,
|
222
|
+
targetDbName,
|
223
|
+
parameters,
|
224
|
+
options
|
225
|
+
},
|
226
|
+
cancelOperationSpec
|
227
|
+
);
|
228
|
+
return new LroEngine(lro, {
|
229
|
+
resumeFrom: options?.resumeFrom,
|
230
|
+
intervalInMs: options?.updateIntervalInMs
|
231
|
+
});
|
232
|
+
}
|
233
|
+
|
234
|
+
/**
|
235
|
+
* Stop migrations in progress for the database
|
236
|
+
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
237
|
+
* value from the Azure Resource Manager API or the portal.
|
238
|
+
* @param managedInstanceName
|
239
|
+
* @param targetDbName The name of the target database.
|
240
|
+
* @param parameters Required migration operation ID for which cancel will be initiated.
|
241
|
+
* @param options The options parameters.
|
242
|
+
*/
|
243
|
+
async beginCancelAndWait(
|
244
|
+
resourceGroupName: string,
|
245
|
+
managedInstanceName: string,
|
246
|
+
targetDbName: string,
|
247
|
+
parameters: MigrationOperationInput,
|
248
|
+
options?: DatabaseMigrationsSqlMiCancelOptionalParams
|
249
|
+
): Promise<void> {
|
250
|
+
const poller = await this.beginCancel(
|
251
|
+
resourceGroupName,
|
252
|
+
managedInstanceName,
|
253
|
+
targetDbName,
|
254
|
+
parameters,
|
255
|
+
options
|
256
|
+
);
|
257
|
+
return poller.pollUntilDone();
|
258
|
+
}
|
259
|
+
|
260
|
+
/**
|
261
|
+
* Initiate cutover for online migration in progress for the database.
|
262
|
+
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
263
|
+
* value from the Azure Resource Manager API or the portal.
|
264
|
+
* @param managedInstanceName
|
265
|
+
* @param targetDbName The name of the target database.
|
266
|
+
* @param parameters Required migration operation ID for which cutover will be initiated.
|
267
|
+
* @param options The options parameters.
|
268
|
+
*/
|
269
|
+
async beginCutover(
|
270
|
+
resourceGroupName: string,
|
271
|
+
managedInstanceName: string,
|
272
|
+
targetDbName: string,
|
273
|
+
parameters: MigrationOperationInput,
|
274
|
+
options?: DatabaseMigrationsSqlMiCutoverOptionalParams
|
275
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
276
|
+
const directSendOperation = async (
|
277
|
+
args: coreClient.OperationArguments,
|
278
|
+
spec: coreClient.OperationSpec
|
279
|
+
): Promise<void> => {
|
280
|
+
return this.client.sendOperationRequest(args, spec);
|
281
|
+
};
|
282
|
+
const sendOperation = async (
|
283
|
+
args: coreClient.OperationArguments,
|
284
|
+
spec: coreClient.OperationSpec
|
285
|
+
) => {
|
286
|
+
let currentRawResponse:
|
287
|
+
| coreClient.FullOperationResponse
|
288
|
+
| undefined = undefined;
|
289
|
+
const providedCallback = args.options?.onResponse;
|
290
|
+
const callback: coreClient.RawResponseCallback = (
|
291
|
+
rawResponse: coreClient.FullOperationResponse,
|
292
|
+
flatResponse: unknown
|
293
|
+
) => {
|
294
|
+
currentRawResponse = rawResponse;
|
295
|
+
providedCallback?.(rawResponse, flatResponse);
|
296
|
+
};
|
297
|
+
const updatedArgs = {
|
298
|
+
...args,
|
299
|
+
options: {
|
300
|
+
...args.options,
|
301
|
+
onResponse: callback
|
302
|
+
}
|
303
|
+
};
|
304
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
305
|
+
return {
|
306
|
+
flatResponse,
|
307
|
+
rawResponse: {
|
308
|
+
statusCode: currentRawResponse!.status,
|
309
|
+
body: currentRawResponse!.parsedBody,
|
310
|
+
headers: currentRawResponse!.headers.toJSON()
|
311
|
+
}
|
312
|
+
};
|
313
|
+
};
|
314
|
+
|
315
|
+
const lro = new LroImpl(
|
316
|
+
sendOperation,
|
317
|
+
{
|
318
|
+
resourceGroupName,
|
319
|
+
managedInstanceName,
|
320
|
+
targetDbName,
|
321
|
+
parameters,
|
322
|
+
options
|
323
|
+
},
|
324
|
+
cutoverOperationSpec
|
325
|
+
);
|
326
|
+
return new LroEngine(lro, {
|
327
|
+
resumeFrom: options?.resumeFrom,
|
328
|
+
intervalInMs: options?.updateIntervalInMs
|
329
|
+
});
|
330
|
+
}
|
331
|
+
|
332
|
+
/**
|
333
|
+
* Initiate cutover for online migration in progress for the database.
|
334
|
+
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
335
|
+
* value from the Azure Resource Manager API or the portal.
|
336
|
+
* @param managedInstanceName
|
337
|
+
* @param targetDbName The name of the target database.
|
338
|
+
* @param parameters Required migration operation ID for which cutover will be initiated.
|
339
|
+
* @param options The options parameters.
|
340
|
+
*/
|
341
|
+
async beginCutoverAndWait(
|
342
|
+
resourceGroupName: string,
|
343
|
+
managedInstanceName: string,
|
344
|
+
targetDbName: string,
|
345
|
+
parameters: MigrationOperationInput,
|
346
|
+
options?: DatabaseMigrationsSqlMiCutoverOptionalParams
|
347
|
+
): Promise<void> {
|
348
|
+
const poller = await this.beginCutover(
|
349
|
+
resourceGroupName,
|
350
|
+
managedInstanceName,
|
351
|
+
targetDbName,
|
352
|
+
parameters,
|
353
|
+
options
|
354
|
+
);
|
355
|
+
return poller.pollUntilDone();
|
356
|
+
}
|
357
|
+
}
|
358
|
+
// Operation Specifications
|
359
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
360
|
+
|
361
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
362
|
+
path:
|
363
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}",
|
364
|
+
httpMethod: "GET",
|
365
|
+
responses: {
|
366
|
+
200: {
|
367
|
+
bodyMapper: Mappers.DatabaseMigrationSqlMi
|
368
|
+
},
|
369
|
+
default: {}
|
370
|
+
},
|
371
|
+
queryParameters: [
|
372
|
+
Parameters.migrationOperationId,
|
373
|
+
Parameters.expand,
|
374
|
+
Parameters.apiVersion
|
375
|
+
],
|
376
|
+
urlParameters: [
|
377
|
+
Parameters.$host,
|
378
|
+
Parameters.resourceGroupName,
|
379
|
+
Parameters.managedInstanceName,
|
380
|
+
Parameters.targetDbName,
|
381
|
+
Parameters.subscriptionId
|
382
|
+
],
|
383
|
+
headerParameters: [Parameters.accept],
|
384
|
+
serializer
|
385
|
+
};
|
386
|
+
const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
387
|
+
path:
|
388
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}",
|
389
|
+
httpMethod: "PUT",
|
390
|
+
responses: {
|
391
|
+
200: {
|
392
|
+
bodyMapper: Mappers.DatabaseMigrationSqlMi
|
393
|
+
},
|
394
|
+
201: {
|
395
|
+
bodyMapper: Mappers.DatabaseMigrationSqlMi
|
396
|
+
},
|
397
|
+
202: {
|
398
|
+
bodyMapper: Mappers.DatabaseMigrationSqlMi
|
399
|
+
},
|
400
|
+
204: {
|
401
|
+
bodyMapper: Mappers.DatabaseMigrationSqlMi
|
402
|
+
},
|
403
|
+
default: {}
|
404
|
+
},
|
405
|
+
requestBody: Parameters.parameters,
|
406
|
+
queryParameters: [Parameters.apiVersion],
|
407
|
+
urlParameters: [
|
408
|
+
Parameters.$host,
|
409
|
+
Parameters.resourceGroupName,
|
410
|
+
Parameters.managedInstanceName,
|
411
|
+
Parameters.targetDbName,
|
412
|
+
Parameters.subscriptionId
|
413
|
+
],
|
414
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
415
|
+
mediaType: "json",
|
416
|
+
serializer
|
417
|
+
};
|
418
|
+
const cancelOperationSpec: coreClient.OperationSpec = {
|
419
|
+
path:
|
420
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}/cancel",
|
421
|
+
httpMethod: "POST",
|
422
|
+
responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} },
|
423
|
+
requestBody: Parameters.parameters1,
|
424
|
+
queryParameters: [Parameters.apiVersion],
|
425
|
+
urlParameters: [
|
426
|
+
Parameters.$host,
|
427
|
+
Parameters.resourceGroupName,
|
428
|
+
Parameters.managedInstanceName,
|
429
|
+
Parameters.targetDbName,
|
430
|
+
Parameters.subscriptionId
|
431
|
+
],
|
432
|
+
headerParameters: [Parameters.contentType],
|
433
|
+
mediaType: "json",
|
434
|
+
serializer
|
435
|
+
};
|
436
|
+
const cutoverOperationSpec: coreClient.OperationSpec = {
|
437
|
+
path:
|
438
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}/cutover",
|
439
|
+
httpMethod: "POST",
|
440
|
+
responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} },
|
441
|
+
requestBody: Parameters.parameters1,
|
442
|
+
queryParameters: [Parameters.apiVersion],
|
443
|
+
urlParameters: [
|
444
|
+
Parameters.$host,
|
445
|
+
Parameters.resourceGroupName,
|
446
|
+
Parameters.managedInstanceName,
|
447
|
+
Parameters.targetDbName,
|
448
|
+
Parameters.subscriptionId
|
449
|
+
],
|
450
|
+
headerParameters: [Parameters.contentType],
|
451
|
+
mediaType: "json",
|
452
|
+
serializer
|
453
|
+
};
|