@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,986 @@
|
|
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 { PagedAsyncIterableIterator } from "@azure/core-paging";
|
10
|
+
import { SqlMigrationServices } from "../operationsInterfaces";
|
11
|
+
import * as coreClient from "@azure/core-client";
|
12
|
+
import * as Mappers from "../models/mappers";
|
13
|
+
import * as Parameters from "../models/parameters";
|
14
|
+
import { DataMigrationManagementClient } from "../dataMigrationManagementClient";
|
15
|
+
import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
|
16
|
+
import { LroImpl } from "../lroImpl";
|
17
|
+
import {
|
18
|
+
SqlMigrationService,
|
19
|
+
SqlMigrationServicesListByResourceGroupNextOptionalParams,
|
20
|
+
SqlMigrationServicesListByResourceGroupOptionalParams,
|
21
|
+
DatabaseMigration,
|
22
|
+
SqlMigrationServicesListMigrationsNextOptionalParams,
|
23
|
+
SqlMigrationServicesListMigrationsOptionalParams,
|
24
|
+
SqlMigrationServicesListBySubscriptionNextOptionalParams,
|
25
|
+
SqlMigrationServicesListBySubscriptionOptionalParams,
|
26
|
+
SqlMigrationServicesGetOptionalParams,
|
27
|
+
SqlMigrationServicesGetResponse,
|
28
|
+
SqlMigrationServicesCreateOrUpdateOptionalParams,
|
29
|
+
SqlMigrationServicesCreateOrUpdateResponse,
|
30
|
+
SqlMigrationServicesDeleteOptionalParams,
|
31
|
+
SqlMigrationServiceUpdate,
|
32
|
+
SqlMigrationServicesUpdateOptionalParams,
|
33
|
+
SqlMigrationServicesUpdateResponse,
|
34
|
+
SqlMigrationServicesListByResourceGroupResponse,
|
35
|
+
SqlMigrationServicesListAuthKeysOptionalParams,
|
36
|
+
SqlMigrationServicesListAuthKeysResponse,
|
37
|
+
RegenAuthKeys,
|
38
|
+
SqlMigrationServicesRegenerateAuthKeysOptionalParams,
|
39
|
+
SqlMigrationServicesRegenerateAuthKeysResponse,
|
40
|
+
DeleteNode,
|
41
|
+
SqlMigrationServicesDeleteNodeOptionalParams,
|
42
|
+
SqlMigrationServicesDeleteNodeResponse,
|
43
|
+
SqlMigrationServicesListMigrationsResponse,
|
44
|
+
SqlMigrationServicesListMonitoringDataOptionalParams,
|
45
|
+
SqlMigrationServicesListMonitoringDataResponse,
|
46
|
+
SqlMigrationServicesListBySubscriptionResponse,
|
47
|
+
SqlMigrationServicesListByResourceGroupNextResponse,
|
48
|
+
SqlMigrationServicesListMigrationsNextResponse,
|
49
|
+
SqlMigrationServicesListBySubscriptionNextResponse
|
50
|
+
} from "../models";
|
51
|
+
|
52
|
+
/// <reference lib="esnext.asynciterable" />
|
53
|
+
/** Class containing SqlMigrationServices operations. */
|
54
|
+
export class SqlMigrationServicesImpl implements SqlMigrationServices {
|
55
|
+
private readonly client: DataMigrationManagementClient;
|
56
|
+
|
57
|
+
/**
|
58
|
+
* Initialize a new instance of the class SqlMigrationServices class.
|
59
|
+
* @param client Reference to the service client
|
60
|
+
*/
|
61
|
+
constructor(client: DataMigrationManagementClient) {
|
62
|
+
this.client = client;
|
63
|
+
}
|
64
|
+
|
65
|
+
/**
|
66
|
+
* Retrieve all SQL migration services in the resource group.
|
67
|
+
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
68
|
+
* value from the Azure Resource Manager API or the portal.
|
69
|
+
* @param options The options parameters.
|
70
|
+
*/
|
71
|
+
public listByResourceGroup(
|
72
|
+
resourceGroupName: string,
|
73
|
+
options?: SqlMigrationServicesListByResourceGroupOptionalParams
|
74
|
+
): PagedAsyncIterableIterator<SqlMigrationService> {
|
75
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
76
|
+
return {
|
77
|
+
next() {
|
78
|
+
return iter.next();
|
79
|
+
},
|
80
|
+
[Symbol.asyncIterator]() {
|
81
|
+
return this;
|
82
|
+
},
|
83
|
+
byPage: () => {
|
84
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options);
|
85
|
+
}
|
86
|
+
};
|
87
|
+
}
|
88
|
+
|
89
|
+
private async *listByResourceGroupPagingPage(
|
90
|
+
resourceGroupName: string,
|
91
|
+
options?: SqlMigrationServicesListByResourceGroupOptionalParams
|
92
|
+
): AsyncIterableIterator<SqlMigrationService[]> {
|
93
|
+
let result = await this._listByResourceGroup(resourceGroupName, options);
|
94
|
+
yield result.value || [];
|
95
|
+
let continuationToken = result.nextLink;
|
96
|
+
while (continuationToken) {
|
97
|
+
result = await this._listByResourceGroupNext(
|
98
|
+
resourceGroupName,
|
99
|
+
continuationToken,
|
100
|
+
options
|
101
|
+
);
|
102
|
+
continuationToken = result.nextLink;
|
103
|
+
yield result.value || [];
|
104
|
+
}
|
105
|
+
}
|
106
|
+
|
107
|
+
private async *listByResourceGroupPagingAll(
|
108
|
+
resourceGroupName: string,
|
109
|
+
options?: SqlMigrationServicesListByResourceGroupOptionalParams
|
110
|
+
): AsyncIterableIterator<SqlMigrationService> {
|
111
|
+
for await (const page of this.listByResourceGroupPagingPage(
|
112
|
+
resourceGroupName,
|
113
|
+
options
|
114
|
+
)) {
|
115
|
+
yield* page;
|
116
|
+
}
|
117
|
+
}
|
118
|
+
|
119
|
+
/**
|
120
|
+
* Retrieve the List of database migrations attached to the service.
|
121
|
+
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
122
|
+
* value from the Azure Resource Manager API or the portal.
|
123
|
+
* @param sqlMigrationServiceName Name of the SQL Migration Service.
|
124
|
+
* @param options The options parameters.
|
125
|
+
*/
|
126
|
+
public listMigrations(
|
127
|
+
resourceGroupName: string,
|
128
|
+
sqlMigrationServiceName: string,
|
129
|
+
options?: SqlMigrationServicesListMigrationsOptionalParams
|
130
|
+
): PagedAsyncIterableIterator<DatabaseMigration> {
|
131
|
+
const iter = this.listMigrationsPagingAll(
|
132
|
+
resourceGroupName,
|
133
|
+
sqlMigrationServiceName,
|
134
|
+
options
|
135
|
+
);
|
136
|
+
return {
|
137
|
+
next() {
|
138
|
+
return iter.next();
|
139
|
+
},
|
140
|
+
[Symbol.asyncIterator]() {
|
141
|
+
return this;
|
142
|
+
},
|
143
|
+
byPage: () => {
|
144
|
+
return this.listMigrationsPagingPage(
|
145
|
+
resourceGroupName,
|
146
|
+
sqlMigrationServiceName,
|
147
|
+
options
|
148
|
+
);
|
149
|
+
}
|
150
|
+
};
|
151
|
+
}
|
152
|
+
|
153
|
+
private async *listMigrationsPagingPage(
|
154
|
+
resourceGroupName: string,
|
155
|
+
sqlMigrationServiceName: string,
|
156
|
+
options?: SqlMigrationServicesListMigrationsOptionalParams
|
157
|
+
): AsyncIterableIterator<DatabaseMigration[]> {
|
158
|
+
let result = await this._listMigrations(
|
159
|
+
resourceGroupName,
|
160
|
+
sqlMigrationServiceName,
|
161
|
+
options
|
162
|
+
);
|
163
|
+
yield result.value || [];
|
164
|
+
let continuationToken = result.nextLink;
|
165
|
+
while (continuationToken) {
|
166
|
+
result = await this._listMigrationsNext(
|
167
|
+
resourceGroupName,
|
168
|
+
sqlMigrationServiceName,
|
169
|
+
continuationToken,
|
170
|
+
options
|
171
|
+
);
|
172
|
+
continuationToken = result.nextLink;
|
173
|
+
yield result.value || [];
|
174
|
+
}
|
175
|
+
}
|
176
|
+
|
177
|
+
private async *listMigrationsPagingAll(
|
178
|
+
resourceGroupName: string,
|
179
|
+
sqlMigrationServiceName: string,
|
180
|
+
options?: SqlMigrationServicesListMigrationsOptionalParams
|
181
|
+
): AsyncIterableIterator<DatabaseMigration> {
|
182
|
+
for await (const page of this.listMigrationsPagingPage(
|
183
|
+
resourceGroupName,
|
184
|
+
sqlMigrationServiceName,
|
185
|
+
options
|
186
|
+
)) {
|
187
|
+
yield* page;
|
188
|
+
}
|
189
|
+
}
|
190
|
+
|
191
|
+
/**
|
192
|
+
* Retrieve all SQL migration services in the subscriptions.
|
193
|
+
* @param options The options parameters.
|
194
|
+
*/
|
195
|
+
public listBySubscription(
|
196
|
+
options?: SqlMigrationServicesListBySubscriptionOptionalParams
|
197
|
+
): PagedAsyncIterableIterator<SqlMigrationService> {
|
198
|
+
const iter = this.listBySubscriptionPagingAll(options);
|
199
|
+
return {
|
200
|
+
next() {
|
201
|
+
return iter.next();
|
202
|
+
},
|
203
|
+
[Symbol.asyncIterator]() {
|
204
|
+
return this;
|
205
|
+
},
|
206
|
+
byPage: () => {
|
207
|
+
return this.listBySubscriptionPagingPage(options);
|
208
|
+
}
|
209
|
+
};
|
210
|
+
}
|
211
|
+
|
212
|
+
private async *listBySubscriptionPagingPage(
|
213
|
+
options?: SqlMigrationServicesListBySubscriptionOptionalParams
|
214
|
+
): AsyncIterableIterator<SqlMigrationService[]> {
|
215
|
+
let result = await this._listBySubscription(options);
|
216
|
+
yield result.value || [];
|
217
|
+
let continuationToken = result.nextLink;
|
218
|
+
while (continuationToken) {
|
219
|
+
result = await this._listBySubscriptionNext(continuationToken, options);
|
220
|
+
continuationToken = result.nextLink;
|
221
|
+
yield result.value || [];
|
222
|
+
}
|
223
|
+
}
|
224
|
+
|
225
|
+
private async *listBySubscriptionPagingAll(
|
226
|
+
options?: SqlMigrationServicesListBySubscriptionOptionalParams
|
227
|
+
): AsyncIterableIterator<SqlMigrationService> {
|
228
|
+
for await (const page of this.listBySubscriptionPagingPage(options)) {
|
229
|
+
yield* page;
|
230
|
+
}
|
231
|
+
}
|
232
|
+
|
233
|
+
/**
|
234
|
+
* Retrieve the Migration Service.
|
235
|
+
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
236
|
+
* value from the Azure Resource Manager API or the portal.
|
237
|
+
* @param sqlMigrationServiceName Name of the SQL Migration Service.
|
238
|
+
* @param options The options parameters.
|
239
|
+
*/
|
240
|
+
get(
|
241
|
+
resourceGroupName: string,
|
242
|
+
sqlMigrationServiceName: string,
|
243
|
+
options?: SqlMigrationServicesGetOptionalParams
|
244
|
+
): Promise<SqlMigrationServicesGetResponse> {
|
245
|
+
return this.client.sendOperationRequest(
|
246
|
+
{ resourceGroupName, sqlMigrationServiceName, options },
|
247
|
+
getOperationSpec
|
248
|
+
);
|
249
|
+
}
|
250
|
+
|
251
|
+
/**
|
252
|
+
* Create or Update SQL Migration Service.
|
253
|
+
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
254
|
+
* value from the Azure Resource Manager API or the portal.
|
255
|
+
* @param sqlMigrationServiceName Name of the SQL Migration Service.
|
256
|
+
* @param parameters Details of SqlMigrationService resource.
|
257
|
+
* @param options The options parameters.
|
258
|
+
*/
|
259
|
+
async beginCreateOrUpdate(
|
260
|
+
resourceGroupName: string,
|
261
|
+
sqlMigrationServiceName: string,
|
262
|
+
parameters: SqlMigrationService,
|
263
|
+
options?: SqlMigrationServicesCreateOrUpdateOptionalParams
|
264
|
+
): Promise<
|
265
|
+
PollerLike<
|
266
|
+
PollOperationState<SqlMigrationServicesCreateOrUpdateResponse>,
|
267
|
+
SqlMigrationServicesCreateOrUpdateResponse
|
268
|
+
>
|
269
|
+
> {
|
270
|
+
const directSendOperation = async (
|
271
|
+
args: coreClient.OperationArguments,
|
272
|
+
spec: coreClient.OperationSpec
|
273
|
+
): Promise<SqlMigrationServicesCreateOrUpdateResponse> => {
|
274
|
+
return this.client.sendOperationRequest(args, spec);
|
275
|
+
};
|
276
|
+
const sendOperation = async (
|
277
|
+
args: coreClient.OperationArguments,
|
278
|
+
spec: coreClient.OperationSpec
|
279
|
+
) => {
|
280
|
+
let currentRawResponse:
|
281
|
+
| coreClient.FullOperationResponse
|
282
|
+
| undefined = undefined;
|
283
|
+
const providedCallback = args.options?.onResponse;
|
284
|
+
const callback: coreClient.RawResponseCallback = (
|
285
|
+
rawResponse: coreClient.FullOperationResponse,
|
286
|
+
flatResponse: unknown
|
287
|
+
) => {
|
288
|
+
currentRawResponse = rawResponse;
|
289
|
+
providedCallback?.(rawResponse, flatResponse);
|
290
|
+
};
|
291
|
+
const updatedArgs = {
|
292
|
+
...args,
|
293
|
+
options: {
|
294
|
+
...args.options,
|
295
|
+
onResponse: callback
|
296
|
+
}
|
297
|
+
};
|
298
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
299
|
+
return {
|
300
|
+
flatResponse,
|
301
|
+
rawResponse: {
|
302
|
+
statusCode: currentRawResponse!.status,
|
303
|
+
body: currentRawResponse!.parsedBody,
|
304
|
+
headers: currentRawResponse!.headers.toJSON()
|
305
|
+
}
|
306
|
+
};
|
307
|
+
};
|
308
|
+
|
309
|
+
const lro = new LroImpl(
|
310
|
+
sendOperation,
|
311
|
+
{ resourceGroupName, sqlMigrationServiceName, parameters, options },
|
312
|
+
createOrUpdateOperationSpec
|
313
|
+
);
|
314
|
+
return new LroEngine(lro, {
|
315
|
+
resumeFrom: options?.resumeFrom,
|
316
|
+
intervalInMs: options?.updateIntervalInMs
|
317
|
+
});
|
318
|
+
}
|
319
|
+
|
320
|
+
/**
|
321
|
+
* Create or Update SQL Migration Service.
|
322
|
+
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
323
|
+
* value from the Azure Resource Manager API or the portal.
|
324
|
+
* @param sqlMigrationServiceName Name of the SQL Migration Service.
|
325
|
+
* @param parameters Details of SqlMigrationService resource.
|
326
|
+
* @param options The options parameters.
|
327
|
+
*/
|
328
|
+
async beginCreateOrUpdateAndWait(
|
329
|
+
resourceGroupName: string,
|
330
|
+
sqlMigrationServiceName: string,
|
331
|
+
parameters: SqlMigrationService,
|
332
|
+
options?: SqlMigrationServicesCreateOrUpdateOptionalParams
|
333
|
+
): Promise<SqlMigrationServicesCreateOrUpdateResponse> {
|
334
|
+
const poller = await this.beginCreateOrUpdate(
|
335
|
+
resourceGroupName,
|
336
|
+
sqlMigrationServiceName,
|
337
|
+
parameters,
|
338
|
+
options
|
339
|
+
);
|
340
|
+
return poller.pollUntilDone();
|
341
|
+
}
|
342
|
+
|
343
|
+
/**
|
344
|
+
* Delete SQL Migration Service.
|
345
|
+
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
346
|
+
* value from the Azure Resource Manager API or the portal.
|
347
|
+
* @param sqlMigrationServiceName Name of the SQL Migration Service.
|
348
|
+
* @param options The options parameters.
|
349
|
+
*/
|
350
|
+
async beginDelete(
|
351
|
+
resourceGroupName: string,
|
352
|
+
sqlMigrationServiceName: string,
|
353
|
+
options?: SqlMigrationServicesDeleteOptionalParams
|
354
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
355
|
+
const directSendOperation = async (
|
356
|
+
args: coreClient.OperationArguments,
|
357
|
+
spec: coreClient.OperationSpec
|
358
|
+
): Promise<void> => {
|
359
|
+
return this.client.sendOperationRequest(args, spec);
|
360
|
+
};
|
361
|
+
const sendOperation = async (
|
362
|
+
args: coreClient.OperationArguments,
|
363
|
+
spec: coreClient.OperationSpec
|
364
|
+
) => {
|
365
|
+
let currentRawResponse:
|
366
|
+
| coreClient.FullOperationResponse
|
367
|
+
| undefined = undefined;
|
368
|
+
const providedCallback = args.options?.onResponse;
|
369
|
+
const callback: coreClient.RawResponseCallback = (
|
370
|
+
rawResponse: coreClient.FullOperationResponse,
|
371
|
+
flatResponse: unknown
|
372
|
+
) => {
|
373
|
+
currentRawResponse = rawResponse;
|
374
|
+
providedCallback?.(rawResponse, flatResponse);
|
375
|
+
};
|
376
|
+
const updatedArgs = {
|
377
|
+
...args,
|
378
|
+
options: {
|
379
|
+
...args.options,
|
380
|
+
onResponse: callback
|
381
|
+
}
|
382
|
+
};
|
383
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
384
|
+
return {
|
385
|
+
flatResponse,
|
386
|
+
rawResponse: {
|
387
|
+
statusCode: currentRawResponse!.status,
|
388
|
+
body: currentRawResponse!.parsedBody,
|
389
|
+
headers: currentRawResponse!.headers.toJSON()
|
390
|
+
}
|
391
|
+
};
|
392
|
+
};
|
393
|
+
|
394
|
+
const lro = new LroImpl(
|
395
|
+
sendOperation,
|
396
|
+
{ resourceGroupName, sqlMigrationServiceName, options },
|
397
|
+
deleteOperationSpec
|
398
|
+
);
|
399
|
+
return new LroEngine(lro, {
|
400
|
+
resumeFrom: options?.resumeFrom,
|
401
|
+
intervalInMs: options?.updateIntervalInMs
|
402
|
+
});
|
403
|
+
}
|
404
|
+
|
405
|
+
/**
|
406
|
+
* Delete SQL Migration Service.
|
407
|
+
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
408
|
+
* value from the Azure Resource Manager API or the portal.
|
409
|
+
* @param sqlMigrationServiceName Name of the SQL Migration Service.
|
410
|
+
* @param options The options parameters.
|
411
|
+
*/
|
412
|
+
async beginDeleteAndWait(
|
413
|
+
resourceGroupName: string,
|
414
|
+
sqlMigrationServiceName: string,
|
415
|
+
options?: SqlMigrationServicesDeleteOptionalParams
|
416
|
+
): Promise<void> {
|
417
|
+
const poller = await this.beginDelete(
|
418
|
+
resourceGroupName,
|
419
|
+
sqlMigrationServiceName,
|
420
|
+
options
|
421
|
+
);
|
422
|
+
return poller.pollUntilDone();
|
423
|
+
}
|
424
|
+
|
425
|
+
/**
|
426
|
+
* Update SQL Migration Service.
|
427
|
+
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
428
|
+
* value from the Azure Resource Manager API or the portal.
|
429
|
+
* @param sqlMigrationServiceName Name of the SQL Migration Service.
|
430
|
+
* @param parameters Details of SqlMigrationService resource.
|
431
|
+
* @param options The options parameters.
|
432
|
+
*/
|
433
|
+
async beginUpdate(
|
434
|
+
resourceGroupName: string,
|
435
|
+
sqlMigrationServiceName: string,
|
436
|
+
parameters: SqlMigrationServiceUpdate,
|
437
|
+
options?: SqlMigrationServicesUpdateOptionalParams
|
438
|
+
): Promise<
|
439
|
+
PollerLike<
|
440
|
+
PollOperationState<SqlMigrationServicesUpdateResponse>,
|
441
|
+
SqlMigrationServicesUpdateResponse
|
442
|
+
>
|
443
|
+
> {
|
444
|
+
const directSendOperation = async (
|
445
|
+
args: coreClient.OperationArguments,
|
446
|
+
spec: coreClient.OperationSpec
|
447
|
+
): Promise<SqlMigrationServicesUpdateResponse> => {
|
448
|
+
return this.client.sendOperationRequest(args, spec);
|
449
|
+
};
|
450
|
+
const sendOperation = async (
|
451
|
+
args: coreClient.OperationArguments,
|
452
|
+
spec: coreClient.OperationSpec
|
453
|
+
) => {
|
454
|
+
let currentRawResponse:
|
455
|
+
| coreClient.FullOperationResponse
|
456
|
+
| undefined = undefined;
|
457
|
+
const providedCallback = args.options?.onResponse;
|
458
|
+
const callback: coreClient.RawResponseCallback = (
|
459
|
+
rawResponse: coreClient.FullOperationResponse,
|
460
|
+
flatResponse: unknown
|
461
|
+
) => {
|
462
|
+
currentRawResponse = rawResponse;
|
463
|
+
providedCallback?.(rawResponse, flatResponse);
|
464
|
+
};
|
465
|
+
const updatedArgs = {
|
466
|
+
...args,
|
467
|
+
options: {
|
468
|
+
...args.options,
|
469
|
+
onResponse: callback
|
470
|
+
}
|
471
|
+
};
|
472
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
473
|
+
return {
|
474
|
+
flatResponse,
|
475
|
+
rawResponse: {
|
476
|
+
statusCode: currentRawResponse!.status,
|
477
|
+
body: currentRawResponse!.parsedBody,
|
478
|
+
headers: currentRawResponse!.headers.toJSON()
|
479
|
+
}
|
480
|
+
};
|
481
|
+
};
|
482
|
+
|
483
|
+
const lro = new LroImpl(
|
484
|
+
sendOperation,
|
485
|
+
{ resourceGroupName, sqlMigrationServiceName, parameters, options },
|
486
|
+
updateOperationSpec
|
487
|
+
);
|
488
|
+
return new LroEngine(lro, {
|
489
|
+
resumeFrom: options?.resumeFrom,
|
490
|
+
intervalInMs: options?.updateIntervalInMs
|
491
|
+
});
|
492
|
+
}
|
493
|
+
|
494
|
+
/**
|
495
|
+
* Update SQL Migration Service.
|
496
|
+
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
497
|
+
* value from the Azure Resource Manager API or the portal.
|
498
|
+
* @param sqlMigrationServiceName Name of the SQL Migration Service.
|
499
|
+
* @param parameters Details of SqlMigrationService resource.
|
500
|
+
* @param options The options parameters.
|
501
|
+
*/
|
502
|
+
async beginUpdateAndWait(
|
503
|
+
resourceGroupName: string,
|
504
|
+
sqlMigrationServiceName: string,
|
505
|
+
parameters: SqlMigrationServiceUpdate,
|
506
|
+
options?: SqlMigrationServicesUpdateOptionalParams
|
507
|
+
): Promise<SqlMigrationServicesUpdateResponse> {
|
508
|
+
const poller = await this.beginUpdate(
|
509
|
+
resourceGroupName,
|
510
|
+
sqlMigrationServiceName,
|
511
|
+
parameters,
|
512
|
+
options
|
513
|
+
);
|
514
|
+
return poller.pollUntilDone();
|
515
|
+
}
|
516
|
+
|
517
|
+
/**
|
518
|
+
* Retrieve all SQL migration services in the resource group.
|
519
|
+
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
520
|
+
* value from the Azure Resource Manager API or the portal.
|
521
|
+
* @param options The options parameters.
|
522
|
+
*/
|
523
|
+
private _listByResourceGroup(
|
524
|
+
resourceGroupName: string,
|
525
|
+
options?: SqlMigrationServicesListByResourceGroupOptionalParams
|
526
|
+
): Promise<SqlMigrationServicesListByResourceGroupResponse> {
|
527
|
+
return this.client.sendOperationRequest(
|
528
|
+
{ resourceGroupName, options },
|
529
|
+
listByResourceGroupOperationSpec
|
530
|
+
);
|
531
|
+
}
|
532
|
+
|
533
|
+
/**
|
534
|
+
* Retrieve the List of Authentication Keys for Self Hosted Integration Runtime.
|
535
|
+
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
536
|
+
* value from the Azure Resource Manager API or the portal.
|
537
|
+
* @param sqlMigrationServiceName Name of the SQL Migration Service.
|
538
|
+
* @param options The options parameters.
|
539
|
+
*/
|
540
|
+
listAuthKeys(
|
541
|
+
resourceGroupName: string,
|
542
|
+
sqlMigrationServiceName: string,
|
543
|
+
options?: SqlMigrationServicesListAuthKeysOptionalParams
|
544
|
+
): Promise<SqlMigrationServicesListAuthKeysResponse> {
|
545
|
+
return this.client.sendOperationRequest(
|
546
|
+
{ resourceGroupName, sqlMigrationServiceName, options },
|
547
|
+
listAuthKeysOperationSpec
|
548
|
+
);
|
549
|
+
}
|
550
|
+
|
551
|
+
/**
|
552
|
+
* Regenerate a new set of Authentication Keys for Self Hosted Integration Runtime.
|
553
|
+
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
554
|
+
* value from the Azure Resource Manager API or the portal.
|
555
|
+
* @param sqlMigrationServiceName Name of the SQL Migration Service.
|
556
|
+
* @param parameters Details of SqlMigrationService resource.
|
557
|
+
* @param options The options parameters.
|
558
|
+
*/
|
559
|
+
regenerateAuthKeys(
|
560
|
+
resourceGroupName: string,
|
561
|
+
sqlMigrationServiceName: string,
|
562
|
+
parameters: RegenAuthKeys,
|
563
|
+
options?: SqlMigrationServicesRegenerateAuthKeysOptionalParams
|
564
|
+
): Promise<SqlMigrationServicesRegenerateAuthKeysResponse> {
|
565
|
+
return this.client.sendOperationRequest(
|
566
|
+
{ resourceGroupName, sqlMigrationServiceName, parameters, options },
|
567
|
+
regenerateAuthKeysOperationSpec
|
568
|
+
);
|
569
|
+
}
|
570
|
+
|
571
|
+
/**
|
572
|
+
* Delete the integration runtime node.
|
573
|
+
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
574
|
+
* value from the Azure Resource Manager API or the portal.
|
575
|
+
* @param sqlMigrationServiceName Name of the SQL Migration Service.
|
576
|
+
* @param parameters Details of SqlMigrationService resource.
|
577
|
+
* @param options The options parameters.
|
578
|
+
*/
|
579
|
+
deleteNode(
|
580
|
+
resourceGroupName: string,
|
581
|
+
sqlMigrationServiceName: string,
|
582
|
+
parameters: DeleteNode,
|
583
|
+
options?: SqlMigrationServicesDeleteNodeOptionalParams
|
584
|
+
): Promise<SqlMigrationServicesDeleteNodeResponse> {
|
585
|
+
return this.client.sendOperationRequest(
|
586
|
+
{ resourceGroupName, sqlMigrationServiceName, parameters, options },
|
587
|
+
deleteNodeOperationSpec
|
588
|
+
);
|
589
|
+
}
|
590
|
+
|
591
|
+
/**
|
592
|
+
* Retrieve the List of database migrations attached to the service.
|
593
|
+
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
594
|
+
* value from the Azure Resource Manager API or the portal.
|
595
|
+
* @param sqlMigrationServiceName Name of the SQL Migration Service.
|
596
|
+
* @param options The options parameters.
|
597
|
+
*/
|
598
|
+
private _listMigrations(
|
599
|
+
resourceGroupName: string,
|
600
|
+
sqlMigrationServiceName: string,
|
601
|
+
options?: SqlMigrationServicesListMigrationsOptionalParams
|
602
|
+
): Promise<SqlMigrationServicesListMigrationsResponse> {
|
603
|
+
return this.client.sendOperationRequest(
|
604
|
+
{ resourceGroupName, sqlMigrationServiceName, options },
|
605
|
+
listMigrationsOperationSpec
|
606
|
+
);
|
607
|
+
}
|
608
|
+
|
609
|
+
/**
|
610
|
+
* Retrieve the Monitoring Data.
|
611
|
+
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
612
|
+
* value from the Azure Resource Manager API or the portal.
|
613
|
+
* @param sqlMigrationServiceName Name of the SQL Migration Service.
|
614
|
+
* @param options The options parameters.
|
615
|
+
*/
|
616
|
+
listMonitoringData(
|
617
|
+
resourceGroupName: string,
|
618
|
+
sqlMigrationServiceName: string,
|
619
|
+
options?: SqlMigrationServicesListMonitoringDataOptionalParams
|
620
|
+
): Promise<SqlMigrationServicesListMonitoringDataResponse> {
|
621
|
+
return this.client.sendOperationRequest(
|
622
|
+
{ resourceGroupName, sqlMigrationServiceName, options },
|
623
|
+
listMonitoringDataOperationSpec
|
624
|
+
);
|
625
|
+
}
|
626
|
+
|
627
|
+
/**
|
628
|
+
* Retrieve all SQL migration services in the subscriptions.
|
629
|
+
* @param options The options parameters.
|
630
|
+
*/
|
631
|
+
private _listBySubscription(
|
632
|
+
options?: SqlMigrationServicesListBySubscriptionOptionalParams
|
633
|
+
): Promise<SqlMigrationServicesListBySubscriptionResponse> {
|
634
|
+
return this.client.sendOperationRequest(
|
635
|
+
{ options },
|
636
|
+
listBySubscriptionOperationSpec
|
637
|
+
);
|
638
|
+
}
|
639
|
+
|
640
|
+
/**
|
641
|
+
* ListByResourceGroupNext
|
642
|
+
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
643
|
+
* value from the Azure Resource Manager API or the portal.
|
644
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
645
|
+
* @param options The options parameters.
|
646
|
+
*/
|
647
|
+
private _listByResourceGroupNext(
|
648
|
+
resourceGroupName: string,
|
649
|
+
nextLink: string,
|
650
|
+
options?: SqlMigrationServicesListByResourceGroupNextOptionalParams
|
651
|
+
): Promise<SqlMigrationServicesListByResourceGroupNextResponse> {
|
652
|
+
return this.client.sendOperationRequest(
|
653
|
+
{ resourceGroupName, nextLink, options },
|
654
|
+
listByResourceGroupNextOperationSpec
|
655
|
+
);
|
656
|
+
}
|
657
|
+
|
658
|
+
/**
|
659
|
+
* ListMigrationsNext
|
660
|
+
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
661
|
+
* value from the Azure Resource Manager API or the portal.
|
662
|
+
* @param sqlMigrationServiceName Name of the SQL Migration Service.
|
663
|
+
* @param nextLink The nextLink from the previous successful call to the ListMigrations method.
|
664
|
+
* @param options The options parameters.
|
665
|
+
*/
|
666
|
+
private _listMigrationsNext(
|
667
|
+
resourceGroupName: string,
|
668
|
+
sqlMigrationServiceName: string,
|
669
|
+
nextLink: string,
|
670
|
+
options?: SqlMigrationServicesListMigrationsNextOptionalParams
|
671
|
+
): Promise<SqlMigrationServicesListMigrationsNextResponse> {
|
672
|
+
return this.client.sendOperationRequest(
|
673
|
+
{ resourceGroupName, sqlMigrationServiceName, nextLink, options },
|
674
|
+
listMigrationsNextOperationSpec
|
675
|
+
);
|
676
|
+
}
|
677
|
+
|
678
|
+
/**
|
679
|
+
* ListBySubscriptionNext
|
680
|
+
* @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
|
681
|
+
* @param options The options parameters.
|
682
|
+
*/
|
683
|
+
private _listBySubscriptionNext(
|
684
|
+
nextLink: string,
|
685
|
+
options?: SqlMigrationServicesListBySubscriptionNextOptionalParams
|
686
|
+
): Promise<SqlMigrationServicesListBySubscriptionNextResponse> {
|
687
|
+
return this.client.sendOperationRequest(
|
688
|
+
{ nextLink, options },
|
689
|
+
listBySubscriptionNextOperationSpec
|
690
|
+
);
|
691
|
+
}
|
692
|
+
}
|
693
|
+
// Operation Specifications
|
694
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
695
|
+
|
696
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
697
|
+
path:
|
698
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}",
|
699
|
+
httpMethod: "GET",
|
700
|
+
responses: {
|
701
|
+
200: {
|
702
|
+
bodyMapper: Mappers.SqlMigrationService
|
703
|
+
},
|
704
|
+
default: {}
|
705
|
+
},
|
706
|
+
queryParameters: [Parameters.apiVersion],
|
707
|
+
urlParameters: [
|
708
|
+
Parameters.$host,
|
709
|
+
Parameters.resourceGroupName,
|
710
|
+
Parameters.subscriptionId,
|
711
|
+
Parameters.sqlMigrationServiceName
|
712
|
+
],
|
713
|
+
headerParameters: [Parameters.accept],
|
714
|
+
serializer
|
715
|
+
};
|
716
|
+
const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
717
|
+
path:
|
718
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}",
|
719
|
+
httpMethod: "PUT",
|
720
|
+
responses: {
|
721
|
+
200: {
|
722
|
+
bodyMapper: Mappers.SqlMigrationService
|
723
|
+
},
|
724
|
+
201: {
|
725
|
+
bodyMapper: Mappers.SqlMigrationService
|
726
|
+
},
|
727
|
+
202: {
|
728
|
+
bodyMapper: Mappers.SqlMigrationService
|
729
|
+
},
|
730
|
+
204: {
|
731
|
+
bodyMapper: Mappers.SqlMigrationService
|
732
|
+
},
|
733
|
+
default: {}
|
734
|
+
},
|
735
|
+
requestBody: Parameters.parameters3,
|
736
|
+
queryParameters: [Parameters.apiVersion],
|
737
|
+
urlParameters: [
|
738
|
+
Parameters.$host,
|
739
|
+
Parameters.resourceGroupName,
|
740
|
+
Parameters.subscriptionId,
|
741
|
+
Parameters.sqlMigrationServiceName
|
742
|
+
],
|
743
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
744
|
+
mediaType: "json",
|
745
|
+
serializer
|
746
|
+
};
|
747
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
748
|
+
path:
|
749
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}",
|
750
|
+
httpMethod: "DELETE",
|
751
|
+
responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} },
|
752
|
+
queryParameters: [Parameters.apiVersion],
|
753
|
+
urlParameters: [
|
754
|
+
Parameters.$host,
|
755
|
+
Parameters.resourceGroupName,
|
756
|
+
Parameters.subscriptionId,
|
757
|
+
Parameters.sqlMigrationServiceName
|
758
|
+
],
|
759
|
+
serializer
|
760
|
+
};
|
761
|
+
const updateOperationSpec: coreClient.OperationSpec = {
|
762
|
+
path:
|
763
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}",
|
764
|
+
httpMethod: "PATCH",
|
765
|
+
responses: {
|
766
|
+
200: {
|
767
|
+
bodyMapper: Mappers.SqlMigrationService
|
768
|
+
},
|
769
|
+
201: {
|
770
|
+
bodyMapper: Mappers.SqlMigrationService
|
771
|
+
},
|
772
|
+
202: {
|
773
|
+
bodyMapper: Mappers.SqlMigrationService
|
774
|
+
},
|
775
|
+
204: {
|
776
|
+
bodyMapper: Mappers.SqlMigrationService
|
777
|
+
},
|
778
|
+
default: {}
|
779
|
+
},
|
780
|
+
requestBody: Parameters.parameters4,
|
781
|
+
queryParameters: [Parameters.apiVersion],
|
782
|
+
urlParameters: [
|
783
|
+
Parameters.$host,
|
784
|
+
Parameters.resourceGroupName,
|
785
|
+
Parameters.subscriptionId,
|
786
|
+
Parameters.sqlMigrationServiceName
|
787
|
+
],
|
788
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
789
|
+
mediaType: "json",
|
790
|
+
serializer
|
791
|
+
};
|
792
|
+
const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
|
793
|
+
path:
|
794
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices",
|
795
|
+
httpMethod: "GET",
|
796
|
+
responses: {
|
797
|
+
200: {
|
798
|
+
bodyMapper: Mappers.SqlMigrationListResult
|
799
|
+
},
|
800
|
+
default: {}
|
801
|
+
},
|
802
|
+
queryParameters: [Parameters.apiVersion],
|
803
|
+
urlParameters: [
|
804
|
+
Parameters.$host,
|
805
|
+
Parameters.resourceGroupName,
|
806
|
+
Parameters.subscriptionId
|
807
|
+
],
|
808
|
+
headerParameters: [Parameters.accept],
|
809
|
+
serializer
|
810
|
+
};
|
811
|
+
const listAuthKeysOperationSpec: coreClient.OperationSpec = {
|
812
|
+
path:
|
813
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}/listAuthKeys",
|
814
|
+
httpMethod: "POST",
|
815
|
+
responses: {
|
816
|
+
200: {
|
817
|
+
bodyMapper: Mappers.AuthenticationKeys
|
818
|
+
},
|
819
|
+
default: {}
|
820
|
+
},
|
821
|
+
queryParameters: [Parameters.apiVersion],
|
822
|
+
urlParameters: [
|
823
|
+
Parameters.$host,
|
824
|
+
Parameters.resourceGroupName,
|
825
|
+
Parameters.subscriptionId,
|
826
|
+
Parameters.sqlMigrationServiceName
|
827
|
+
],
|
828
|
+
headerParameters: [Parameters.accept],
|
829
|
+
serializer
|
830
|
+
};
|
831
|
+
const regenerateAuthKeysOperationSpec: coreClient.OperationSpec = {
|
832
|
+
path:
|
833
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}/regenerateAuthKeys",
|
834
|
+
httpMethod: "POST",
|
835
|
+
responses: {
|
836
|
+
200: {
|
837
|
+
bodyMapper: Mappers.RegenAuthKeys
|
838
|
+
},
|
839
|
+
default: {}
|
840
|
+
},
|
841
|
+
requestBody: Parameters.parameters5,
|
842
|
+
queryParameters: [Parameters.apiVersion],
|
843
|
+
urlParameters: [
|
844
|
+
Parameters.$host,
|
845
|
+
Parameters.resourceGroupName,
|
846
|
+
Parameters.subscriptionId,
|
847
|
+
Parameters.sqlMigrationServiceName
|
848
|
+
],
|
849
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
850
|
+
mediaType: "json",
|
851
|
+
serializer
|
852
|
+
};
|
853
|
+
const deleteNodeOperationSpec: coreClient.OperationSpec = {
|
854
|
+
path:
|
855
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}/deleteNode",
|
856
|
+
httpMethod: "POST",
|
857
|
+
responses: {
|
858
|
+
200: {
|
859
|
+
bodyMapper: Mappers.DeleteNode
|
860
|
+
},
|
861
|
+
default: {}
|
862
|
+
},
|
863
|
+
requestBody: Parameters.parameters6,
|
864
|
+
queryParameters: [Parameters.apiVersion],
|
865
|
+
urlParameters: [
|
866
|
+
Parameters.$host,
|
867
|
+
Parameters.resourceGroupName,
|
868
|
+
Parameters.subscriptionId,
|
869
|
+
Parameters.sqlMigrationServiceName
|
870
|
+
],
|
871
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
872
|
+
mediaType: "json",
|
873
|
+
serializer
|
874
|
+
};
|
875
|
+
const listMigrationsOperationSpec: coreClient.OperationSpec = {
|
876
|
+
path:
|
877
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}/listMigrations",
|
878
|
+
httpMethod: "GET",
|
879
|
+
responses: {
|
880
|
+
200: {
|
881
|
+
bodyMapper: Mappers.DatabaseMigrationListResult
|
882
|
+
},
|
883
|
+
default: {}
|
884
|
+
},
|
885
|
+
queryParameters: [Parameters.apiVersion],
|
886
|
+
urlParameters: [
|
887
|
+
Parameters.$host,
|
888
|
+
Parameters.resourceGroupName,
|
889
|
+
Parameters.subscriptionId,
|
890
|
+
Parameters.sqlMigrationServiceName
|
891
|
+
],
|
892
|
+
headerParameters: [Parameters.accept],
|
893
|
+
serializer
|
894
|
+
};
|
895
|
+
const listMonitoringDataOperationSpec: coreClient.OperationSpec = {
|
896
|
+
path:
|
897
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}/listMonitoringData",
|
898
|
+
httpMethod: "POST",
|
899
|
+
responses: {
|
900
|
+
200: {
|
901
|
+
bodyMapper: Mappers.IntegrationRuntimeMonitoringData
|
902
|
+
},
|
903
|
+
default: {}
|
904
|
+
},
|
905
|
+
queryParameters: [Parameters.apiVersion],
|
906
|
+
urlParameters: [
|
907
|
+
Parameters.$host,
|
908
|
+
Parameters.resourceGroupName,
|
909
|
+
Parameters.subscriptionId,
|
910
|
+
Parameters.sqlMigrationServiceName
|
911
|
+
],
|
912
|
+
headerParameters: [Parameters.accept],
|
913
|
+
serializer
|
914
|
+
};
|
915
|
+
const listBySubscriptionOperationSpec: coreClient.OperationSpec = {
|
916
|
+
path:
|
917
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.DataMigration/sqlMigrationServices",
|
918
|
+
httpMethod: "GET",
|
919
|
+
responses: {
|
920
|
+
200: {
|
921
|
+
bodyMapper: Mappers.SqlMigrationListResult
|
922
|
+
},
|
923
|
+
default: {}
|
924
|
+
},
|
925
|
+
queryParameters: [Parameters.apiVersion],
|
926
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
927
|
+
headerParameters: [Parameters.accept],
|
928
|
+
serializer
|
929
|
+
};
|
930
|
+
const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
|
931
|
+
path: "{nextLink}",
|
932
|
+
httpMethod: "GET",
|
933
|
+
responses: {
|
934
|
+
200: {
|
935
|
+
bodyMapper: Mappers.SqlMigrationListResult
|
936
|
+
},
|
937
|
+
default: {}
|
938
|
+
},
|
939
|
+
queryParameters: [Parameters.apiVersion],
|
940
|
+
urlParameters: [
|
941
|
+
Parameters.$host,
|
942
|
+
Parameters.resourceGroupName,
|
943
|
+
Parameters.subscriptionId,
|
944
|
+
Parameters.nextLink
|
945
|
+
],
|
946
|
+
headerParameters: [Parameters.accept],
|
947
|
+
serializer
|
948
|
+
};
|
949
|
+
const listMigrationsNextOperationSpec: coreClient.OperationSpec = {
|
950
|
+
path: "{nextLink}",
|
951
|
+
httpMethod: "GET",
|
952
|
+
responses: {
|
953
|
+
200: {
|
954
|
+
bodyMapper: Mappers.DatabaseMigrationListResult
|
955
|
+
},
|
956
|
+
default: {}
|
957
|
+
},
|
958
|
+
queryParameters: [Parameters.apiVersion],
|
959
|
+
urlParameters: [
|
960
|
+
Parameters.$host,
|
961
|
+
Parameters.resourceGroupName,
|
962
|
+
Parameters.subscriptionId,
|
963
|
+
Parameters.nextLink,
|
964
|
+
Parameters.sqlMigrationServiceName
|
965
|
+
],
|
966
|
+
headerParameters: [Parameters.accept],
|
967
|
+
serializer
|
968
|
+
};
|
969
|
+
const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {
|
970
|
+
path: "{nextLink}",
|
971
|
+
httpMethod: "GET",
|
972
|
+
responses: {
|
973
|
+
200: {
|
974
|
+
bodyMapper: Mappers.SqlMigrationListResult
|
975
|
+
},
|
976
|
+
default: {}
|
977
|
+
},
|
978
|
+
queryParameters: [Parameters.apiVersion],
|
979
|
+
urlParameters: [
|
980
|
+
Parameters.$host,
|
981
|
+
Parameters.subscriptionId,
|
982
|
+
Parameters.nextLink
|
983
|
+
],
|
984
|
+
headerParameters: [Parameters.accept],
|
985
|
+
serializer
|
986
|
+
};
|