@azure/arm-datamigration 2.1.1 → 3.0.0-alpha.20220118.3
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 +69 -80
- 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 +82 -23
- 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 -14012
- 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 -31
- package/esm/dataMigrationServiceClient.d.ts.map +0 -1
- package/esm/dataMigrationServiceClient.js +0 -45
- package/esm/dataMigrationServiceClient.js.map +0 -1
- package/esm/dataMigrationServiceClientContext.d.ts +0 -22
- package/esm/dataMigrationServiceClientContext.d.ts.map +0 -1
- package/esm/dataMigrationServiceClientContext.js +0 -61
- 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 -62
- package/src/dataMigrationServiceClientContext.ts +0 -68
- 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,272 @@
|
|
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
|
+
import { DatabaseMigrationSqlMi as DatabaseMigrationSqlMiMapper, MigrationOperationInput as MigrationOperationInputMapper, DatabaseMigrationSqlVm as DatabaseMigrationSqlVmMapper, SqlMigrationService as SqlMigrationServiceMapper, SqlMigrationServiceUpdate as SqlMigrationServiceUpdateMapper, RegenAuthKeys as RegenAuthKeysMapper, DeleteNode as DeleteNodeMapper, DataMigrationService as DataMigrationServiceMapper, NameAvailabilityRequest as NameAvailabilityRequestMapper, ProjectTask as ProjectTaskMapper, CommandProperties as CommandPropertiesMapper, Project as ProjectMapper, ProjectFile as ProjectFileMapper } from "../models/mappers";
|
9
|
+
export const accept = {
|
10
|
+
parameterPath: "accept",
|
11
|
+
mapper: {
|
12
|
+
defaultValue: "application/json",
|
13
|
+
isConstant: true,
|
14
|
+
serializedName: "Accept",
|
15
|
+
type: {
|
16
|
+
name: "String"
|
17
|
+
}
|
18
|
+
}
|
19
|
+
};
|
20
|
+
export const $host = {
|
21
|
+
parameterPath: "$host",
|
22
|
+
mapper: {
|
23
|
+
serializedName: "$host",
|
24
|
+
required: true,
|
25
|
+
type: {
|
26
|
+
name: "String"
|
27
|
+
}
|
28
|
+
},
|
29
|
+
skipEncoding: true
|
30
|
+
};
|
31
|
+
export const resourceGroupName = {
|
32
|
+
parameterPath: "resourceGroupName",
|
33
|
+
mapper: {
|
34
|
+
serializedName: "resourceGroupName",
|
35
|
+
required: true,
|
36
|
+
type: {
|
37
|
+
name: "String"
|
38
|
+
}
|
39
|
+
}
|
40
|
+
};
|
41
|
+
export const managedInstanceName = {
|
42
|
+
parameterPath: "managedInstanceName",
|
43
|
+
mapper: {
|
44
|
+
serializedName: "managedInstanceName",
|
45
|
+
required: true,
|
46
|
+
type: {
|
47
|
+
name: "String"
|
48
|
+
}
|
49
|
+
}
|
50
|
+
};
|
51
|
+
export const targetDbName = {
|
52
|
+
parameterPath: "targetDbName",
|
53
|
+
mapper: {
|
54
|
+
serializedName: "targetDbName",
|
55
|
+
required: true,
|
56
|
+
type: {
|
57
|
+
name: "String"
|
58
|
+
}
|
59
|
+
}
|
60
|
+
};
|
61
|
+
export const migrationOperationId = {
|
62
|
+
parameterPath: ["options", "migrationOperationId"],
|
63
|
+
mapper: {
|
64
|
+
serializedName: "migrationOperationId",
|
65
|
+
type: {
|
66
|
+
name: "Uuid"
|
67
|
+
}
|
68
|
+
}
|
69
|
+
};
|
70
|
+
export const expand = {
|
71
|
+
parameterPath: ["options", "expand"],
|
72
|
+
mapper: {
|
73
|
+
serializedName: "$expand",
|
74
|
+
type: {
|
75
|
+
name: "String"
|
76
|
+
}
|
77
|
+
}
|
78
|
+
};
|
79
|
+
export const subscriptionId = {
|
80
|
+
parameterPath: "subscriptionId",
|
81
|
+
mapper: {
|
82
|
+
serializedName: "subscriptionId",
|
83
|
+
required: true,
|
84
|
+
type: {
|
85
|
+
name: "String"
|
86
|
+
}
|
87
|
+
}
|
88
|
+
};
|
89
|
+
export const apiVersion = {
|
90
|
+
parameterPath: "apiVersion",
|
91
|
+
mapper: {
|
92
|
+
defaultValue: "2021-10-30-preview",
|
93
|
+
isConstant: true,
|
94
|
+
serializedName: "api-version",
|
95
|
+
type: {
|
96
|
+
name: "String"
|
97
|
+
}
|
98
|
+
}
|
99
|
+
};
|
100
|
+
export const contentType = {
|
101
|
+
parameterPath: ["options", "contentType"],
|
102
|
+
mapper: {
|
103
|
+
defaultValue: "application/json",
|
104
|
+
isConstant: true,
|
105
|
+
serializedName: "Content-Type",
|
106
|
+
type: {
|
107
|
+
name: "String"
|
108
|
+
}
|
109
|
+
}
|
110
|
+
};
|
111
|
+
export const parameters = {
|
112
|
+
parameterPath: "parameters",
|
113
|
+
mapper: DatabaseMigrationSqlMiMapper
|
114
|
+
};
|
115
|
+
export const parameters1 = {
|
116
|
+
parameterPath: "parameters",
|
117
|
+
mapper: MigrationOperationInputMapper
|
118
|
+
};
|
119
|
+
export const sqlVirtualMachineName = {
|
120
|
+
parameterPath: "sqlVirtualMachineName",
|
121
|
+
mapper: {
|
122
|
+
serializedName: "sqlVirtualMachineName",
|
123
|
+
required: true,
|
124
|
+
type: {
|
125
|
+
name: "String"
|
126
|
+
}
|
127
|
+
}
|
128
|
+
};
|
129
|
+
export const parameters2 = {
|
130
|
+
parameterPath: "parameters",
|
131
|
+
mapper: DatabaseMigrationSqlVmMapper
|
132
|
+
};
|
133
|
+
export const nextLink = {
|
134
|
+
parameterPath: "nextLink",
|
135
|
+
mapper: {
|
136
|
+
serializedName: "nextLink",
|
137
|
+
required: true,
|
138
|
+
type: {
|
139
|
+
name: "String"
|
140
|
+
}
|
141
|
+
},
|
142
|
+
skipEncoding: true
|
143
|
+
};
|
144
|
+
export const sqlMigrationServiceName = {
|
145
|
+
parameterPath: "sqlMigrationServiceName",
|
146
|
+
mapper: {
|
147
|
+
serializedName: "sqlMigrationServiceName",
|
148
|
+
required: true,
|
149
|
+
type: {
|
150
|
+
name: "String"
|
151
|
+
}
|
152
|
+
}
|
153
|
+
};
|
154
|
+
export const parameters3 = {
|
155
|
+
parameterPath: "parameters",
|
156
|
+
mapper: SqlMigrationServiceMapper
|
157
|
+
};
|
158
|
+
export const parameters4 = {
|
159
|
+
parameterPath: "parameters",
|
160
|
+
mapper: SqlMigrationServiceUpdateMapper
|
161
|
+
};
|
162
|
+
export const parameters5 = {
|
163
|
+
parameterPath: "parameters",
|
164
|
+
mapper: RegenAuthKeysMapper
|
165
|
+
};
|
166
|
+
export const parameters6 = {
|
167
|
+
parameterPath: "parameters",
|
168
|
+
mapper: DeleteNodeMapper
|
169
|
+
};
|
170
|
+
export const parameters7 = {
|
171
|
+
parameterPath: "parameters",
|
172
|
+
mapper: DataMigrationServiceMapper
|
173
|
+
};
|
174
|
+
export const groupName = {
|
175
|
+
parameterPath: "groupName",
|
176
|
+
mapper: {
|
177
|
+
serializedName: "groupName",
|
178
|
+
required: true,
|
179
|
+
type: {
|
180
|
+
name: "String"
|
181
|
+
}
|
182
|
+
}
|
183
|
+
};
|
184
|
+
export const serviceName = {
|
185
|
+
parameterPath: "serviceName",
|
186
|
+
mapper: {
|
187
|
+
serializedName: "serviceName",
|
188
|
+
required: true,
|
189
|
+
type: {
|
190
|
+
name: "String"
|
191
|
+
}
|
192
|
+
}
|
193
|
+
};
|
194
|
+
export const deleteRunningTasks = {
|
195
|
+
parameterPath: ["options", "deleteRunningTasks"],
|
196
|
+
mapper: {
|
197
|
+
serializedName: "deleteRunningTasks",
|
198
|
+
type: {
|
199
|
+
name: "Boolean"
|
200
|
+
}
|
201
|
+
}
|
202
|
+
};
|
203
|
+
export const parameters8 = {
|
204
|
+
parameterPath: "parameters",
|
205
|
+
mapper: NameAvailabilityRequestMapper
|
206
|
+
};
|
207
|
+
export const location = {
|
208
|
+
parameterPath: "location",
|
209
|
+
mapper: {
|
210
|
+
serializedName: "location",
|
211
|
+
required: true,
|
212
|
+
type: {
|
213
|
+
name: "String"
|
214
|
+
}
|
215
|
+
}
|
216
|
+
};
|
217
|
+
export const projectName = {
|
218
|
+
parameterPath: "projectName",
|
219
|
+
mapper: {
|
220
|
+
serializedName: "projectName",
|
221
|
+
required: true,
|
222
|
+
type: {
|
223
|
+
name: "String"
|
224
|
+
}
|
225
|
+
}
|
226
|
+
};
|
227
|
+
export const taskType = {
|
228
|
+
parameterPath: ["options", "taskType"],
|
229
|
+
mapper: {
|
230
|
+
serializedName: "taskType",
|
231
|
+
type: {
|
232
|
+
name: "String"
|
233
|
+
}
|
234
|
+
}
|
235
|
+
};
|
236
|
+
export const parameters9 = {
|
237
|
+
parameterPath: "parameters",
|
238
|
+
mapper: ProjectTaskMapper
|
239
|
+
};
|
240
|
+
export const taskName = {
|
241
|
+
parameterPath: "taskName",
|
242
|
+
mapper: {
|
243
|
+
serializedName: "taskName",
|
244
|
+
required: true,
|
245
|
+
type: {
|
246
|
+
name: "String"
|
247
|
+
}
|
248
|
+
}
|
249
|
+
};
|
250
|
+
export const parameters10 = {
|
251
|
+
parameterPath: "parameters",
|
252
|
+
mapper: CommandPropertiesMapper
|
253
|
+
};
|
254
|
+
export const parameters11 = {
|
255
|
+
parameterPath: "parameters",
|
256
|
+
mapper: ProjectMapper
|
257
|
+
};
|
258
|
+
export const fileName = {
|
259
|
+
parameterPath: "fileName",
|
260
|
+
mapper: {
|
261
|
+
serializedName: "fileName",
|
262
|
+
required: true,
|
263
|
+
type: {
|
264
|
+
name: "String"
|
265
|
+
}
|
266
|
+
}
|
267
|
+
};
|
268
|
+
export const parameters12 = {
|
269
|
+
parameterPath: "parameters",
|
270
|
+
mapper: ProjectFileMapper
|
271
|
+
};
|
272
|
+
//# sourceMappingURL=parameters.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"parameters.js","sourceRoot":"","sources":["../../../src/models/parameters.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAOH,OAAO,EACL,sBAAsB,IAAI,4BAA4B,EACtD,uBAAuB,IAAI,6BAA6B,EACxD,sBAAsB,IAAI,4BAA4B,EACtD,mBAAmB,IAAI,yBAAyB,EAChD,yBAAyB,IAAI,+BAA+B,EAC5D,aAAa,IAAI,mBAAmB,EACpC,UAAU,IAAI,gBAAgB,EAC9B,oBAAoB,IAAI,0BAA0B,EAClD,uBAAuB,IAAI,6BAA6B,EACxD,WAAW,IAAI,iBAAiB,EAChC,iBAAiB,IAAI,uBAAuB,EAC5C,OAAO,IAAI,aAAa,EACxB,WAAW,IAAI,iBAAiB,EACjC,MAAM,mBAAmB,CAAC;AAE3B,MAAM,CAAC,MAAM,MAAM,GAAuB;IACxC,aAAa,EAAE,QAAQ;IACvB,MAAM,EAAE;QACN,YAAY,EAAE,kBAAkB;QAChC,UAAU,EAAE,IAAI;QAChB,cAAc,EAAE,QAAQ;QACxB,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,KAAK,GAA0B;IAC1C,aAAa,EAAE,OAAO;IACtB,MAAM,EAAE;QACN,cAAc,EAAE,OAAO;QACvB,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;IACD,YAAY,EAAE,IAAI;CACnB,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAA0B;IACtD,aAAa,EAAE,mBAAmB;IAClC,MAAM,EAAE;QACN,cAAc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CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAuB;IAC9C,aAAa,EAAE,YAAY;IAC3B,MAAM,EAAE,iBAAiB;CAC1B,CAAC"}
|
@@ -0,0 +1,83 @@
|
|
1
|
+
import { DatabaseMigrationsSqlMi } from "../operationsInterfaces";
|
2
|
+
import { DataMigrationManagementClient } from "../dataMigrationManagementClient";
|
3
|
+
import { PollerLike, PollOperationState } from "@azure/core-lro";
|
4
|
+
import { DatabaseMigrationsSqlMiGetOptionalParams, DatabaseMigrationsSqlMiGetResponse, DatabaseMigrationSqlMi, DatabaseMigrationsSqlMiCreateOrUpdateOptionalParams, DatabaseMigrationsSqlMiCreateOrUpdateResponse, MigrationOperationInput, DatabaseMigrationsSqlMiCancelOptionalParams, DatabaseMigrationsSqlMiCutoverOptionalParams } from "../models";
|
5
|
+
/** Class containing DatabaseMigrationsSqlMi operations. */
|
6
|
+
export declare class DatabaseMigrationsSqlMiImpl implements DatabaseMigrationsSqlMi {
|
7
|
+
private readonly client;
|
8
|
+
/**
|
9
|
+
* Initialize a new instance of the class DatabaseMigrationsSqlMi class.
|
10
|
+
* @param client Reference to the service client
|
11
|
+
*/
|
12
|
+
constructor(client: DataMigrationManagementClient);
|
13
|
+
/**
|
14
|
+
* Retrieve the Database Migration resource.
|
15
|
+
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
16
|
+
* value from the Azure Resource Manager API or the portal.
|
17
|
+
* @param managedInstanceName
|
18
|
+
* @param targetDbName The name of the target database.
|
19
|
+
* @param options The options parameters.
|
20
|
+
*/
|
21
|
+
get(resourceGroupName: string, managedInstanceName: string, targetDbName: string, options?: DatabaseMigrationsSqlMiGetOptionalParams): Promise<DatabaseMigrationsSqlMiGetResponse>;
|
22
|
+
/**
|
23
|
+
* Create or Update Database Migration resource.
|
24
|
+
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
25
|
+
* value from the Azure Resource Manager API or the portal.
|
26
|
+
* @param managedInstanceName
|
27
|
+
* @param targetDbName The name of the target database.
|
28
|
+
* @param parameters Details of SqlMigrationService resource.
|
29
|
+
* @param options The options parameters.
|
30
|
+
*/
|
31
|
+
beginCreateOrUpdate(resourceGroupName: string, managedInstanceName: string, targetDbName: string, parameters: DatabaseMigrationSqlMi, options?: DatabaseMigrationsSqlMiCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<DatabaseMigrationsSqlMiCreateOrUpdateResponse>, DatabaseMigrationsSqlMiCreateOrUpdateResponse>>;
|
32
|
+
/**
|
33
|
+
* Create or Update Database Migration resource.
|
34
|
+
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
35
|
+
* value from the Azure Resource Manager API or the portal.
|
36
|
+
* @param managedInstanceName
|
37
|
+
* @param targetDbName The name of the target database.
|
38
|
+
* @param parameters Details of SqlMigrationService resource.
|
39
|
+
* @param options The options parameters.
|
40
|
+
*/
|
41
|
+
beginCreateOrUpdateAndWait(resourceGroupName: string, managedInstanceName: string, targetDbName: string, parameters: DatabaseMigrationSqlMi, options?: DatabaseMigrationsSqlMiCreateOrUpdateOptionalParams): Promise<DatabaseMigrationsSqlMiCreateOrUpdateResponse>;
|
42
|
+
/**
|
43
|
+
* Stop migrations in progress for the database
|
44
|
+
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
45
|
+
* value from the Azure Resource Manager API or the portal.
|
46
|
+
* @param managedInstanceName
|
47
|
+
* @param targetDbName The name of the target database.
|
48
|
+
* @param parameters Required migration operation ID for which cancel will be initiated.
|
49
|
+
* @param options The options parameters.
|
50
|
+
*/
|
51
|
+
beginCancel(resourceGroupName: string, managedInstanceName: string, targetDbName: string, parameters: MigrationOperationInput, options?: DatabaseMigrationsSqlMiCancelOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
|
52
|
+
/**
|
53
|
+
* Stop migrations in progress for the database
|
54
|
+
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
55
|
+
* value from the Azure Resource Manager API or the portal.
|
56
|
+
* @param managedInstanceName
|
57
|
+
* @param targetDbName The name of the target database.
|
58
|
+
* @param parameters Required migration operation ID for which cancel will be initiated.
|
59
|
+
* @param options The options parameters.
|
60
|
+
*/
|
61
|
+
beginCancelAndWait(resourceGroupName: string, managedInstanceName: string, targetDbName: string, parameters: MigrationOperationInput, options?: DatabaseMigrationsSqlMiCancelOptionalParams): Promise<void>;
|
62
|
+
/**
|
63
|
+
* Initiate cutover for online migration in progress for the database.
|
64
|
+
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
65
|
+
* value from the Azure Resource Manager API or the portal.
|
66
|
+
* @param managedInstanceName
|
67
|
+
* @param targetDbName The name of the target database.
|
68
|
+
* @param parameters Required migration operation ID for which cutover will be initiated.
|
69
|
+
* @param options The options parameters.
|
70
|
+
*/
|
71
|
+
beginCutover(resourceGroupName: string, managedInstanceName: string, targetDbName: string, parameters: MigrationOperationInput, options?: DatabaseMigrationsSqlMiCutoverOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
|
72
|
+
/**
|
73
|
+
* Initiate cutover for online migration in progress for the database.
|
74
|
+
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
75
|
+
* value from the Azure Resource Manager API or the portal.
|
76
|
+
* @param managedInstanceName
|
77
|
+
* @param targetDbName The name of the target database.
|
78
|
+
* @param parameters Required migration operation ID for which cutover will be initiated.
|
79
|
+
* @param options The options parameters.
|
80
|
+
*/
|
81
|
+
beginCutoverAndWait(resourceGroupName: string, managedInstanceName: string, targetDbName: string, parameters: MigrationOperationInput, options?: DatabaseMigrationsSqlMiCutoverOptionalParams): Promise<void>;
|
82
|
+
}
|
83
|
+
//# sourceMappingURL=databaseMigrationsSqlMi.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"databaseMigrationsSqlMi.d.ts","sourceRoot":"","sources":["../../../src/operations/databaseMigrationsSqlMi.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAIl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UAAU,CAAC,kBAAkB,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC;IAyDtD;;;;;;;;OAQG;IACG,kBAAkB,CACtB,iBAAiB,EAAE,MAAM,EACzB,mBAAmB,EAAE,MAAM,EAC3B,YAAY,EAAE,MAAM,EACpB,UAAU,EAAE,uBAAuB,EACnC,OAAO,CAAC,EAAE,2CAA2C,GACpD,OAAO,CAAC,IAAI,CAAC;IAWhB;;;;;;;;OAQG;IACG,YAAY,CAChB,iBAAiB,EAAE,MAAM,EACzB,mBAAmB,EAAE,MAAM,EAC3B,YAAY,EAAE,MAAM,EACpB,UAAU,EAAE,uBAAuB,EACnC,OAAO,CAAC,EAAE,4CAA4C,GACrD,OAAO,CAAC,UAAU,CAAC,kBAAkB,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC;IAyDtD;;;;;;;;OAQG;IACG,mBAAmB,CACvB,iBAAiB,EAAE,MAAM,EACzB,mBAAmB,EAAE,MAAM,EAC3B,YAAY,EAAE,MAAM,EACpB,UAAU,EAAE,uBAAuB,EACnC,OAAO,CAAC,EAAE,4CAA4C,GACrD,OAAO,CAAC,IAAI,CAAC;CAUjB"}
|
@@ -0,0 +1,309 @@
|
|
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
|
+
import { __awaiter } from "tslib";
|
9
|
+
import * as coreClient from "@azure/core-client";
|
10
|
+
import * as Mappers from "../models/mappers";
|
11
|
+
import * as Parameters from "../models/parameters";
|
12
|
+
import { LroEngine } from "@azure/core-lro";
|
13
|
+
import { LroImpl } from "../lroImpl";
|
14
|
+
/** Class containing DatabaseMigrationsSqlMi operations. */
|
15
|
+
export class DatabaseMigrationsSqlMiImpl {
|
16
|
+
/**
|
17
|
+
* Initialize a new instance of the class DatabaseMigrationsSqlMi class.
|
18
|
+
* @param client Reference to the service client
|
19
|
+
*/
|
20
|
+
constructor(client) {
|
21
|
+
this.client = client;
|
22
|
+
}
|
23
|
+
/**
|
24
|
+
* Retrieve the Database Migration resource.
|
25
|
+
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
26
|
+
* value from the Azure Resource Manager API or the portal.
|
27
|
+
* @param managedInstanceName
|
28
|
+
* @param targetDbName The name of the target database.
|
29
|
+
* @param options The options parameters.
|
30
|
+
*/
|
31
|
+
get(resourceGroupName, managedInstanceName, targetDbName, options) {
|
32
|
+
return this.client.sendOperationRequest({ resourceGroupName, managedInstanceName, targetDbName, options }, getOperationSpec);
|
33
|
+
}
|
34
|
+
/**
|
35
|
+
* Create or Update Database Migration resource.
|
36
|
+
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
37
|
+
* value from the Azure Resource Manager API or the portal.
|
38
|
+
* @param managedInstanceName
|
39
|
+
* @param targetDbName The name of the target database.
|
40
|
+
* @param parameters Details of SqlMigrationService resource.
|
41
|
+
* @param options The options parameters.
|
42
|
+
*/
|
43
|
+
beginCreateOrUpdate(resourceGroupName, managedInstanceName, targetDbName, parameters, options) {
|
44
|
+
return __awaiter(this, void 0, void 0, function* () {
|
45
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
46
|
+
return this.client.sendOperationRequest(args, spec);
|
47
|
+
});
|
48
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
49
|
+
var _a;
|
50
|
+
let currentRawResponse = undefined;
|
51
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
52
|
+
const callback = (rawResponse, flatResponse) => {
|
53
|
+
currentRawResponse = rawResponse;
|
54
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
55
|
+
};
|
56
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
57
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
58
|
+
return {
|
59
|
+
flatResponse,
|
60
|
+
rawResponse: {
|
61
|
+
statusCode: currentRawResponse.status,
|
62
|
+
body: currentRawResponse.parsedBody,
|
63
|
+
headers: currentRawResponse.headers.toJSON()
|
64
|
+
}
|
65
|
+
};
|
66
|
+
});
|
67
|
+
const lro = new LroImpl(sendOperation, {
|
68
|
+
resourceGroupName,
|
69
|
+
managedInstanceName,
|
70
|
+
targetDbName,
|
71
|
+
parameters,
|
72
|
+
options
|
73
|
+
}, createOrUpdateOperationSpec);
|
74
|
+
return new LroEngine(lro, {
|
75
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
76
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
77
|
+
});
|
78
|
+
});
|
79
|
+
}
|
80
|
+
/**
|
81
|
+
* Create or Update Database Migration resource.
|
82
|
+
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
83
|
+
* value from the Azure Resource Manager API or the portal.
|
84
|
+
* @param managedInstanceName
|
85
|
+
* @param targetDbName The name of the target database.
|
86
|
+
* @param parameters Details of SqlMigrationService resource.
|
87
|
+
* @param options The options parameters.
|
88
|
+
*/
|
89
|
+
beginCreateOrUpdateAndWait(resourceGroupName, managedInstanceName, targetDbName, parameters, options) {
|
90
|
+
return __awaiter(this, void 0, void 0, function* () {
|
91
|
+
const poller = yield this.beginCreateOrUpdate(resourceGroupName, managedInstanceName, targetDbName, parameters, options);
|
92
|
+
return poller.pollUntilDone();
|
93
|
+
});
|
94
|
+
}
|
95
|
+
/**
|
96
|
+
* Stop migrations in progress for the database
|
97
|
+
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
98
|
+
* value from the Azure Resource Manager API or the portal.
|
99
|
+
* @param managedInstanceName
|
100
|
+
* @param targetDbName The name of the target database.
|
101
|
+
* @param parameters Required migration operation ID for which cancel will be initiated.
|
102
|
+
* @param options The options parameters.
|
103
|
+
*/
|
104
|
+
beginCancel(resourceGroupName, managedInstanceName, targetDbName, parameters, options) {
|
105
|
+
return __awaiter(this, void 0, void 0, function* () {
|
106
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
107
|
+
return this.client.sendOperationRequest(args, spec);
|
108
|
+
});
|
109
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
110
|
+
var _a;
|
111
|
+
let currentRawResponse = undefined;
|
112
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
113
|
+
const callback = (rawResponse, flatResponse) => {
|
114
|
+
currentRawResponse = rawResponse;
|
115
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
116
|
+
};
|
117
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
118
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
119
|
+
return {
|
120
|
+
flatResponse,
|
121
|
+
rawResponse: {
|
122
|
+
statusCode: currentRawResponse.status,
|
123
|
+
body: currentRawResponse.parsedBody,
|
124
|
+
headers: currentRawResponse.headers.toJSON()
|
125
|
+
}
|
126
|
+
};
|
127
|
+
});
|
128
|
+
const lro = new LroImpl(sendOperation, {
|
129
|
+
resourceGroupName,
|
130
|
+
managedInstanceName,
|
131
|
+
targetDbName,
|
132
|
+
parameters,
|
133
|
+
options
|
134
|
+
}, cancelOperationSpec);
|
135
|
+
return new LroEngine(lro, {
|
136
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
137
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
138
|
+
});
|
139
|
+
});
|
140
|
+
}
|
141
|
+
/**
|
142
|
+
* Stop migrations in progress for the database
|
143
|
+
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
144
|
+
* value from the Azure Resource Manager API or the portal.
|
145
|
+
* @param managedInstanceName
|
146
|
+
* @param targetDbName The name of the target database.
|
147
|
+
* @param parameters Required migration operation ID for which cancel will be initiated.
|
148
|
+
* @param options The options parameters.
|
149
|
+
*/
|
150
|
+
beginCancelAndWait(resourceGroupName, managedInstanceName, targetDbName, parameters, options) {
|
151
|
+
return __awaiter(this, void 0, void 0, function* () {
|
152
|
+
const poller = yield this.beginCancel(resourceGroupName, managedInstanceName, targetDbName, parameters, options);
|
153
|
+
return poller.pollUntilDone();
|
154
|
+
});
|
155
|
+
}
|
156
|
+
/**
|
157
|
+
* Initiate cutover for online migration in progress for the database.
|
158
|
+
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
159
|
+
* value from the Azure Resource Manager API or the portal.
|
160
|
+
* @param managedInstanceName
|
161
|
+
* @param targetDbName The name of the target database.
|
162
|
+
* @param parameters Required migration operation ID for which cutover will be initiated.
|
163
|
+
* @param options The options parameters.
|
164
|
+
*/
|
165
|
+
beginCutover(resourceGroupName, managedInstanceName, targetDbName, parameters, options) {
|
166
|
+
return __awaiter(this, void 0, void 0, function* () {
|
167
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
168
|
+
return this.client.sendOperationRequest(args, spec);
|
169
|
+
});
|
170
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
171
|
+
var _a;
|
172
|
+
let currentRawResponse = undefined;
|
173
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
174
|
+
const callback = (rawResponse, flatResponse) => {
|
175
|
+
currentRawResponse = rawResponse;
|
176
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
177
|
+
};
|
178
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
179
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
180
|
+
return {
|
181
|
+
flatResponse,
|
182
|
+
rawResponse: {
|
183
|
+
statusCode: currentRawResponse.status,
|
184
|
+
body: currentRawResponse.parsedBody,
|
185
|
+
headers: currentRawResponse.headers.toJSON()
|
186
|
+
}
|
187
|
+
};
|
188
|
+
});
|
189
|
+
const lro = new LroImpl(sendOperation, {
|
190
|
+
resourceGroupName,
|
191
|
+
managedInstanceName,
|
192
|
+
targetDbName,
|
193
|
+
parameters,
|
194
|
+
options
|
195
|
+
}, cutoverOperationSpec);
|
196
|
+
return new LroEngine(lro, {
|
197
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
198
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
199
|
+
});
|
200
|
+
});
|
201
|
+
}
|
202
|
+
/**
|
203
|
+
* Initiate cutover for online migration in progress for the database.
|
204
|
+
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
205
|
+
* value from the Azure Resource Manager API or the portal.
|
206
|
+
* @param managedInstanceName
|
207
|
+
* @param targetDbName The name of the target database.
|
208
|
+
* @param parameters Required migration operation ID for which cutover will be initiated.
|
209
|
+
* @param options The options parameters.
|
210
|
+
*/
|
211
|
+
beginCutoverAndWait(resourceGroupName, managedInstanceName, targetDbName, parameters, options) {
|
212
|
+
return __awaiter(this, void 0, void 0, function* () {
|
213
|
+
const poller = yield this.beginCutover(resourceGroupName, managedInstanceName, targetDbName, parameters, options);
|
214
|
+
return poller.pollUntilDone();
|
215
|
+
});
|
216
|
+
}
|
217
|
+
}
|
218
|
+
// Operation Specifications
|
219
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
220
|
+
const getOperationSpec = {
|
221
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}",
|
222
|
+
httpMethod: "GET",
|
223
|
+
responses: {
|
224
|
+
200: {
|
225
|
+
bodyMapper: Mappers.DatabaseMigrationSqlMi
|
226
|
+
},
|
227
|
+
default: {}
|
228
|
+
},
|
229
|
+
queryParameters: [
|
230
|
+
Parameters.migrationOperationId,
|
231
|
+
Parameters.expand,
|
232
|
+
Parameters.apiVersion
|
233
|
+
],
|
234
|
+
urlParameters: [
|
235
|
+
Parameters.$host,
|
236
|
+
Parameters.resourceGroupName,
|
237
|
+
Parameters.managedInstanceName,
|
238
|
+
Parameters.targetDbName,
|
239
|
+
Parameters.subscriptionId
|
240
|
+
],
|
241
|
+
headerParameters: [Parameters.accept],
|
242
|
+
serializer
|
243
|
+
};
|
244
|
+
const createOrUpdateOperationSpec = {
|
245
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}",
|
246
|
+
httpMethod: "PUT",
|
247
|
+
responses: {
|
248
|
+
200: {
|
249
|
+
bodyMapper: Mappers.DatabaseMigrationSqlMi
|
250
|
+
},
|
251
|
+
201: {
|
252
|
+
bodyMapper: Mappers.DatabaseMigrationSqlMi
|
253
|
+
},
|
254
|
+
202: {
|
255
|
+
bodyMapper: Mappers.DatabaseMigrationSqlMi
|
256
|
+
},
|
257
|
+
204: {
|
258
|
+
bodyMapper: Mappers.DatabaseMigrationSqlMi
|
259
|
+
},
|
260
|
+
default: {}
|
261
|
+
},
|
262
|
+
requestBody: Parameters.parameters,
|
263
|
+
queryParameters: [Parameters.apiVersion],
|
264
|
+
urlParameters: [
|
265
|
+
Parameters.$host,
|
266
|
+
Parameters.resourceGroupName,
|
267
|
+
Parameters.managedInstanceName,
|
268
|
+
Parameters.targetDbName,
|
269
|
+
Parameters.subscriptionId
|
270
|
+
],
|
271
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
272
|
+
mediaType: "json",
|
273
|
+
serializer
|
274
|
+
};
|
275
|
+
const cancelOperationSpec = {
|
276
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}/cancel",
|
277
|
+
httpMethod: "POST",
|
278
|
+
responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} },
|
279
|
+
requestBody: Parameters.parameters1,
|
280
|
+
queryParameters: [Parameters.apiVersion],
|
281
|
+
urlParameters: [
|
282
|
+
Parameters.$host,
|
283
|
+
Parameters.resourceGroupName,
|
284
|
+
Parameters.managedInstanceName,
|
285
|
+
Parameters.targetDbName,
|
286
|
+
Parameters.subscriptionId
|
287
|
+
],
|
288
|
+
headerParameters: [Parameters.contentType],
|
289
|
+
mediaType: "json",
|
290
|
+
serializer
|
291
|
+
};
|
292
|
+
const cutoverOperationSpec = {
|
293
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}/cutover",
|
294
|
+
httpMethod: "POST",
|
295
|
+
responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} },
|
296
|
+
requestBody: Parameters.parameters1,
|
297
|
+
queryParameters: [Parameters.apiVersion],
|
298
|
+
urlParameters: [
|
299
|
+
Parameters.$host,
|
300
|
+
Parameters.resourceGroupName,
|
301
|
+
Parameters.managedInstanceName,
|
302
|
+
Parameters.targetDbName,
|
303
|
+
Parameters.subscriptionId
|
304
|
+
],
|
305
|
+
headerParameters: [Parameters.contentType],
|
306
|
+
mediaType: "json",
|
307
|
+
serializer
|
308
|
+
};
|
309
|
+
//# sourceMappingURL=databaseMigrationsSqlMi.js.map
|