@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,884 @@
|
|
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 { __asyncDelegator, __asyncGenerator, __asyncValues, __await, __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
|
+
/// <reference lib="esnext.asynciterable" />
|
15
|
+
/** Class containing Services operations. */
|
16
|
+
export class ServicesImpl {
|
17
|
+
/**
|
18
|
+
* Initialize a new instance of the class Services class.
|
19
|
+
* @param client Reference to the service client
|
20
|
+
*/
|
21
|
+
constructor(client) {
|
22
|
+
this.client = client;
|
23
|
+
}
|
24
|
+
/**
|
25
|
+
* The services resource is the top-level resource that represents the Database Migration Service. The
|
26
|
+
* skus action returns the list of SKUs that a service resource can be updated to.
|
27
|
+
* @param groupName Name of the resource group
|
28
|
+
* @param serviceName Name of the service
|
29
|
+
* @param options The options parameters.
|
30
|
+
*/
|
31
|
+
listSkus(groupName, serviceName, options) {
|
32
|
+
const iter = this.listSkusPagingAll(groupName, serviceName, options);
|
33
|
+
return {
|
34
|
+
next() {
|
35
|
+
return iter.next();
|
36
|
+
},
|
37
|
+
[Symbol.asyncIterator]() {
|
38
|
+
return this;
|
39
|
+
},
|
40
|
+
byPage: () => {
|
41
|
+
return this.listSkusPagingPage(groupName, serviceName, options);
|
42
|
+
}
|
43
|
+
};
|
44
|
+
}
|
45
|
+
listSkusPagingPage(groupName, serviceName, options) {
|
46
|
+
return __asyncGenerator(this, arguments, function* listSkusPagingPage_1() {
|
47
|
+
let result = yield __await(this._listSkus(groupName, serviceName, options));
|
48
|
+
yield yield __await(result.value || []);
|
49
|
+
let continuationToken = result.nextLink;
|
50
|
+
while (continuationToken) {
|
51
|
+
result = yield __await(this._listSkusNext(groupName, serviceName, continuationToken, options));
|
52
|
+
continuationToken = result.nextLink;
|
53
|
+
yield yield __await(result.value || []);
|
54
|
+
}
|
55
|
+
});
|
56
|
+
}
|
57
|
+
listSkusPagingAll(groupName, serviceName, options) {
|
58
|
+
return __asyncGenerator(this, arguments, function* listSkusPagingAll_1() {
|
59
|
+
var e_1, _a;
|
60
|
+
try {
|
61
|
+
for (var _b = __asyncValues(this.listSkusPagingPage(groupName, serviceName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
62
|
+
const page = _c.value;
|
63
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
64
|
+
}
|
65
|
+
}
|
66
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
67
|
+
finally {
|
68
|
+
try {
|
69
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
70
|
+
}
|
71
|
+
finally { if (e_1) throw e_1.error; }
|
72
|
+
}
|
73
|
+
});
|
74
|
+
}
|
75
|
+
/**
|
76
|
+
* The Services resource is the top-level resource that represents the Database Migration Service. This
|
77
|
+
* method returns a list of service resources in a resource group.
|
78
|
+
* @param groupName Name of the resource group
|
79
|
+
* @param options The options parameters.
|
80
|
+
*/
|
81
|
+
listByResourceGroup(groupName, options) {
|
82
|
+
const iter = this.listByResourceGroupPagingAll(groupName, options);
|
83
|
+
return {
|
84
|
+
next() {
|
85
|
+
return iter.next();
|
86
|
+
},
|
87
|
+
[Symbol.asyncIterator]() {
|
88
|
+
return this;
|
89
|
+
},
|
90
|
+
byPage: () => {
|
91
|
+
return this.listByResourceGroupPagingPage(groupName, options);
|
92
|
+
}
|
93
|
+
};
|
94
|
+
}
|
95
|
+
listByResourceGroupPagingPage(groupName, options) {
|
96
|
+
return __asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
97
|
+
let result = yield __await(this._listByResourceGroup(groupName, options));
|
98
|
+
yield yield __await(result.value || []);
|
99
|
+
let continuationToken = result.nextLink;
|
100
|
+
while (continuationToken) {
|
101
|
+
result = yield __await(this._listByResourceGroupNext(groupName, continuationToken, options));
|
102
|
+
continuationToken = result.nextLink;
|
103
|
+
yield yield __await(result.value || []);
|
104
|
+
}
|
105
|
+
});
|
106
|
+
}
|
107
|
+
listByResourceGroupPagingAll(groupName, options) {
|
108
|
+
return __asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
109
|
+
var e_2, _a;
|
110
|
+
try {
|
111
|
+
for (var _b = __asyncValues(this.listByResourceGroupPagingPage(groupName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
112
|
+
const page = _c.value;
|
113
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
114
|
+
}
|
115
|
+
}
|
116
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
117
|
+
finally {
|
118
|
+
try {
|
119
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
120
|
+
}
|
121
|
+
finally { if (e_2) throw e_2.error; }
|
122
|
+
}
|
123
|
+
});
|
124
|
+
}
|
125
|
+
/**
|
126
|
+
* The services resource is the top-level resource that represents the Database Migration Service. This
|
127
|
+
* method returns a list of service resources in a subscription.
|
128
|
+
* @param options The options parameters.
|
129
|
+
*/
|
130
|
+
list(options) {
|
131
|
+
const iter = this.listPagingAll(options);
|
132
|
+
return {
|
133
|
+
next() {
|
134
|
+
return iter.next();
|
135
|
+
},
|
136
|
+
[Symbol.asyncIterator]() {
|
137
|
+
return this;
|
138
|
+
},
|
139
|
+
byPage: () => {
|
140
|
+
return this.listPagingPage(options);
|
141
|
+
}
|
142
|
+
};
|
143
|
+
}
|
144
|
+
listPagingPage(options) {
|
145
|
+
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
|
146
|
+
let result = yield __await(this._list(options));
|
147
|
+
yield yield __await(result.value || []);
|
148
|
+
let continuationToken = result.nextLink;
|
149
|
+
while (continuationToken) {
|
150
|
+
result = yield __await(this._listNext(continuationToken, options));
|
151
|
+
continuationToken = result.nextLink;
|
152
|
+
yield yield __await(result.value || []);
|
153
|
+
}
|
154
|
+
});
|
155
|
+
}
|
156
|
+
listPagingAll(options) {
|
157
|
+
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
|
158
|
+
var e_3, _a;
|
159
|
+
try {
|
160
|
+
for (var _b = __asyncValues(this.listPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
161
|
+
const page = _c.value;
|
162
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
163
|
+
}
|
164
|
+
}
|
165
|
+
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
166
|
+
finally {
|
167
|
+
try {
|
168
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
169
|
+
}
|
170
|
+
finally { if (e_3) throw e_3.error; }
|
171
|
+
}
|
172
|
+
});
|
173
|
+
}
|
174
|
+
/**
|
175
|
+
* The services resource is the top-level resource that represents the Database Migration Service. The
|
176
|
+
* PUT method creates a new service or updates an existing one. When a service is updated, existing
|
177
|
+
* child resources (i.e. tasks) are unaffected. Services currently support a single kind, "vm", which
|
178
|
+
* refers to a VM-based service, although other kinds may be added in the future. This method can
|
179
|
+
* change the kind, SKU, and network of the service, but if tasks are currently running (i.e. the
|
180
|
+
* service is busy), this will fail with 400 Bad Request ("ServiceIsBusy"). The provider will reply
|
181
|
+
* when successful with 200 OK or 201 Created. Long-running operations use the provisioningState
|
182
|
+
* property.
|
183
|
+
* @param groupName Name of the resource group
|
184
|
+
* @param serviceName Name of the service
|
185
|
+
* @param parameters Information about the service
|
186
|
+
* @param options The options parameters.
|
187
|
+
*/
|
188
|
+
beginCreateOrUpdate(groupName, serviceName, parameters, options) {
|
189
|
+
return __awaiter(this, void 0, void 0, function* () {
|
190
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
191
|
+
return this.client.sendOperationRequest(args, spec);
|
192
|
+
});
|
193
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
194
|
+
var _a;
|
195
|
+
let currentRawResponse = undefined;
|
196
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
197
|
+
const callback = (rawResponse, flatResponse) => {
|
198
|
+
currentRawResponse = rawResponse;
|
199
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
200
|
+
};
|
201
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
202
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
203
|
+
return {
|
204
|
+
flatResponse,
|
205
|
+
rawResponse: {
|
206
|
+
statusCode: currentRawResponse.status,
|
207
|
+
body: currentRawResponse.parsedBody,
|
208
|
+
headers: currentRawResponse.headers.toJSON()
|
209
|
+
}
|
210
|
+
};
|
211
|
+
});
|
212
|
+
const lro = new LroImpl(sendOperation, { groupName, serviceName, parameters, options }, createOrUpdateOperationSpec);
|
213
|
+
return new LroEngine(lro, {
|
214
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
215
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
216
|
+
});
|
217
|
+
});
|
218
|
+
}
|
219
|
+
/**
|
220
|
+
* The services resource is the top-level resource that represents the Database Migration Service. The
|
221
|
+
* PUT method creates a new service or updates an existing one. When a service is updated, existing
|
222
|
+
* child resources (i.e. tasks) are unaffected. Services currently support a single kind, "vm", which
|
223
|
+
* refers to a VM-based service, although other kinds may be added in the future. This method can
|
224
|
+
* change the kind, SKU, and network of the service, but if tasks are currently running (i.e. the
|
225
|
+
* service is busy), this will fail with 400 Bad Request ("ServiceIsBusy"). The provider will reply
|
226
|
+
* when successful with 200 OK or 201 Created. Long-running operations use the provisioningState
|
227
|
+
* property.
|
228
|
+
* @param groupName Name of the resource group
|
229
|
+
* @param serviceName Name of the service
|
230
|
+
* @param parameters Information about the service
|
231
|
+
* @param options The options parameters.
|
232
|
+
*/
|
233
|
+
beginCreateOrUpdateAndWait(groupName, serviceName, parameters, options) {
|
234
|
+
return __awaiter(this, void 0, void 0, function* () {
|
235
|
+
const poller = yield this.beginCreateOrUpdate(groupName, serviceName, parameters, options);
|
236
|
+
return poller.pollUntilDone();
|
237
|
+
});
|
238
|
+
}
|
239
|
+
/**
|
240
|
+
* The services resource is the top-level resource that represents the Database Migration Service. The
|
241
|
+
* GET method retrieves information about a service instance.
|
242
|
+
* @param groupName Name of the resource group
|
243
|
+
* @param serviceName Name of the service
|
244
|
+
* @param options The options parameters.
|
245
|
+
*/
|
246
|
+
get(groupName, serviceName, options) {
|
247
|
+
return this.client.sendOperationRequest({ groupName, serviceName, options }, getOperationSpec);
|
248
|
+
}
|
249
|
+
/**
|
250
|
+
* The services resource is the top-level resource that represents the Database Migration Service. The
|
251
|
+
* DELETE method deletes a service. Any running tasks will be canceled.
|
252
|
+
* @param groupName Name of the resource group
|
253
|
+
* @param serviceName Name of the service
|
254
|
+
* @param options The options parameters.
|
255
|
+
*/
|
256
|
+
beginDelete(groupName, serviceName, options) {
|
257
|
+
return __awaiter(this, void 0, void 0, function* () {
|
258
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
259
|
+
return this.client.sendOperationRequest(args, spec);
|
260
|
+
});
|
261
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
262
|
+
var _a;
|
263
|
+
let currentRawResponse = undefined;
|
264
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
265
|
+
const callback = (rawResponse, flatResponse) => {
|
266
|
+
currentRawResponse = rawResponse;
|
267
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
268
|
+
};
|
269
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
270
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
271
|
+
return {
|
272
|
+
flatResponse,
|
273
|
+
rawResponse: {
|
274
|
+
statusCode: currentRawResponse.status,
|
275
|
+
body: currentRawResponse.parsedBody,
|
276
|
+
headers: currentRawResponse.headers.toJSON()
|
277
|
+
}
|
278
|
+
};
|
279
|
+
});
|
280
|
+
const lro = new LroImpl(sendOperation, { groupName, serviceName, options }, deleteOperationSpec);
|
281
|
+
return new LroEngine(lro, {
|
282
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
283
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
284
|
+
});
|
285
|
+
});
|
286
|
+
}
|
287
|
+
/**
|
288
|
+
* The services resource is the top-level resource that represents the Database Migration Service. The
|
289
|
+
* DELETE method deletes a service. Any running tasks will be canceled.
|
290
|
+
* @param groupName Name of the resource group
|
291
|
+
* @param serviceName Name of the service
|
292
|
+
* @param options The options parameters.
|
293
|
+
*/
|
294
|
+
beginDeleteAndWait(groupName, serviceName, options) {
|
295
|
+
return __awaiter(this, void 0, void 0, function* () {
|
296
|
+
const poller = yield this.beginDelete(groupName, serviceName, options);
|
297
|
+
return poller.pollUntilDone();
|
298
|
+
});
|
299
|
+
}
|
300
|
+
/**
|
301
|
+
* The services resource is the top-level resource that represents the Database Migration Service. The
|
302
|
+
* PATCH method updates an existing service. This method can change the kind, SKU, and network of the
|
303
|
+
* service, but if tasks are currently running (i.e. the service is busy), this will fail with 400 Bad
|
304
|
+
* Request ("ServiceIsBusy").
|
305
|
+
* @param groupName Name of the resource group
|
306
|
+
* @param serviceName Name of the service
|
307
|
+
* @param parameters Information about the service
|
308
|
+
* @param options The options parameters.
|
309
|
+
*/
|
310
|
+
beginUpdate(groupName, serviceName, parameters, options) {
|
311
|
+
return __awaiter(this, void 0, void 0, function* () {
|
312
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
313
|
+
return this.client.sendOperationRequest(args, spec);
|
314
|
+
});
|
315
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
316
|
+
var _a;
|
317
|
+
let currentRawResponse = undefined;
|
318
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
319
|
+
const callback = (rawResponse, flatResponse) => {
|
320
|
+
currentRawResponse = rawResponse;
|
321
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
322
|
+
};
|
323
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
324
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
325
|
+
return {
|
326
|
+
flatResponse,
|
327
|
+
rawResponse: {
|
328
|
+
statusCode: currentRawResponse.status,
|
329
|
+
body: currentRawResponse.parsedBody,
|
330
|
+
headers: currentRawResponse.headers.toJSON()
|
331
|
+
}
|
332
|
+
};
|
333
|
+
});
|
334
|
+
const lro = new LroImpl(sendOperation, { groupName, serviceName, parameters, options }, updateOperationSpec);
|
335
|
+
return new LroEngine(lro, {
|
336
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
337
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
338
|
+
});
|
339
|
+
});
|
340
|
+
}
|
341
|
+
/**
|
342
|
+
* The services resource is the top-level resource that represents the Database Migration Service. The
|
343
|
+
* PATCH method updates an existing service. This method can change the kind, SKU, and network of the
|
344
|
+
* service, but if tasks are currently running (i.e. the service is busy), this will fail with 400 Bad
|
345
|
+
* Request ("ServiceIsBusy").
|
346
|
+
* @param groupName Name of the resource group
|
347
|
+
* @param serviceName Name of the service
|
348
|
+
* @param parameters Information about the service
|
349
|
+
* @param options The options parameters.
|
350
|
+
*/
|
351
|
+
beginUpdateAndWait(groupName, serviceName, parameters, options) {
|
352
|
+
return __awaiter(this, void 0, void 0, function* () {
|
353
|
+
const poller = yield this.beginUpdate(groupName, serviceName, parameters, options);
|
354
|
+
return poller.pollUntilDone();
|
355
|
+
});
|
356
|
+
}
|
357
|
+
/**
|
358
|
+
* The services resource is the top-level resource that represents the Database Migration Service. This
|
359
|
+
* action performs a health check and returns the status of the service and virtual machine size.
|
360
|
+
* @param groupName Name of the resource group
|
361
|
+
* @param serviceName Name of the service
|
362
|
+
* @param options The options parameters.
|
363
|
+
*/
|
364
|
+
checkStatus(groupName, serviceName, options) {
|
365
|
+
return this.client.sendOperationRequest({ groupName, serviceName, options }, checkStatusOperationSpec);
|
366
|
+
}
|
367
|
+
/**
|
368
|
+
* The services resource is the top-level resource that represents the Database Migration Service. This
|
369
|
+
* action starts the service and the service can be used for data migration.
|
370
|
+
* @param groupName Name of the resource group
|
371
|
+
* @param serviceName Name of the service
|
372
|
+
* @param options The options parameters.
|
373
|
+
*/
|
374
|
+
beginStart(groupName, serviceName, options) {
|
375
|
+
return __awaiter(this, void 0, void 0, function* () {
|
376
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
377
|
+
return this.client.sendOperationRequest(args, spec);
|
378
|
+
});
|
379
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
380
|
+
var _a;
|
381
|
+
let currentRawResponse = undefined;
|
382
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
383
|
+
const callback = (rawResponse, flatResponse) => {
|
384
|
+
currentRawResponse = rawResponse;
|
385
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
386
|
+
};
|
387
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
388
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
389
|
+
return {
|
390
|
+
flatResponse,
|
391
|
+
rawResponse: {
|
392
|
+
statusCode: currentRawResponse.status,
|
393
|
+
body: currentRawResponse.parsedBody,
|
394
|
+
headers: currentRawResponse.headers.toJSON()
|
395
|
+
}
|
396
|
+
};
|
397
|
+
});
|
398
|
+
const lro = new LroImpl(sendOperation, { groupName, serviceName, options }, startOperationSpec);
|
399
|
+
return new LroEngine(lro, {
|
400
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
401
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
402
|
+
});
|
403
|
+
});
|
404
|
+
}
|
405
|
+
/**
|
406
|
+
* The services resource is the top-level resource that represents the Database Migration Service. This
|
407
|
+
* action starts the service and the service can be used for data migration.
|
408
|
+
* @param groupName Name of the resource group
|
409
|
+
* @param serviceName Name of the service
|
410
|
+
* @param options The options parameters.
|
411
|
+
*/
|
412
|
+
beginStartAndWait(groupName, serviceName, options) {
|
413
|
+
return __awaiter(this, void 0, void 0, function* () {
|
414
|
+
const poller = yield this.beginStart(groupName, serviceName, options);
|
415
|
+
return poller.pollUntilDone();
|
416
|
+
});
|
417
|
+
}
|
418
|
+
/**
|
419
|
+
* The services resource is the top-level resource that represents the Database Migration Service. This
|
420
|
+
* action stops the service and the service cannot be used for data migration. The service owner won't
|
421
|
+
* be billed when the service is stopped.
|
422
|
+
* @param groupName Name of the resource group
|
423
|
+
* @param serviceName Name of the service
|
424
|
+
* @param options The options parameters.
|
425
|
+
*/
|
426
|
+
beginStop(groupName, serviceName, options) {
|
427
|
+
return __awaiter(this, void 0, void 0, function* () {
|
428
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
429
|
+
return this.client.sendOperationRequest(args, spec);
|
430
|
+
});
|
431
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
432
|
+
var _a;
|
433
|
+
let currentRawResponse = undefined;
|
434
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
435
|
+
const callback = (rawResponse, flatResponse) => {
|
436
|
+
currentRawResponse = rawResponse;
|
437
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
438
|
+
};
|
439
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
440
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
441
|
+
return {
|
442
|
+
flatResponse,
|
443
|
+
rawResponse: {
|
444
|
+
statusCode: currentRawResponse.status,
|
445
|
+
body: currentRawResponse.parsedBody,
|
446
|
+
headers: currentRawResponse.headers.toJSON()
|
447
|
+
}
|
448
|
+
};
|
449
|
+
});
|
450
|
+
const lro = new LroImpl(sendOperation, { groupName, serviceName, options }, stopOperationSpec);
|
451
|
+
return new LroEngine(lro, {
|
452
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
453
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
454
|
+
});
|
455
|
+
});
|
456
|
+
}
|
457
|
+
/**
|
458
|
+
* The services resource is the top-level resource that represents the Database Migration Service. This
|
459
|
+
* action stops the service and the service cannot be used for data migration. The service owner won't
|
460
|
+
* be billed when the service is stopped.
|
461
|
+
* @param groupName Name of the resource group
|
462
|
+
* @param serviceName Name of the service
|
463
|
+
* @param options The options parameters.
|
464
|
+
*/
|
465
|
+
beginStopAndWait(groupName, serviceName, options) {
|
466
|
+
return __awaiter(this, void 0, void 0, function* () {
|
467
|
+
const poller = yield this.beginStop(groupName, serviceName, options);
|
468
|
+
return poller.pollUntilDone();
|
469
|
+
});
|
470
|
+
}
|
471
|
+
/**
|
472
|
+
* The services resource is the top-level resource that represents the Database Migration Service. The
|
473
|
+
* skus action returns the list of SKUs that a service resource can be updated to.
|
474
|
+
* @param groupName Name of the resource group
|
475
|
+
* @param serviceName Name of the service
|
476
|
+
* @param options The options parameters.
|
477
|
+
*/
|
478
|
+
_listSkus(groupName, serviceName, options) {
|
479
|
+
return this.client.sendOperationRequest({ groupName, serviceName, options }, listSkusOperationSpec);
|
480
|
+
}
|
481
|
+
/**
|
482
|
+
* This method checks whether a proposed nested resource name is valid and available.
|
483
|
+
* @param groupName Name of the resource group
|
484
|
+
* @param serviceName Name of the service
|
485
|
+
* @param parameters Requested name to validate
|
486
|
+
* @param options The options parameters.
|
487
|
+
*/
|
488
|
+
checkChildrenNameAvailability(groupName, serviceName, parameters, options) {
|
489
|
+
return this.client.sendOperationRequest({ groupName, serviceName, parameters, options }, checkChildrenNameAvailabilityOperationSpec);
|
490
|
+
}
|
491
|
+
/**
|
492
|
+
* The Services resource is the top-level resource that represents the Database Migration Service. This
|
493
|
+
* method returns a list of service resources in a resource group.
|
494
|
+
* @param groupName Name of the resource group
|
495
|
+
* @param options The options parameters.
|
496
|
+
*/
|
497
|
+
_listByResourceGroup(groupName, options) {
|
498
|
+
return this.client.sendOperationRequest({ groupName, options }, listByResourceGroupOperationSpec);
|
499
|
+
}
|
500
|
+
/**
|
501
|
+
* The services resource is the top-level resource that represents the Database Migration Service. This
|
502
|
+
* method returns a list of service resources in a subscription.
|
503
|
+
* @param options The options parameters.
|
504
|
+
*/
|
505
|
+
_list(options) {
|
506
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
507
|
+
}
|
508
|
+
/**
|
509
|
+
* This method checks whether a proposed top-level resource name is valid and available.
|
510
|
+
* @param location The Azure region of the operation
|
511
|
+
* @param parameters Requested name to validate
|
512
|
+
* @param options The options parameters.
|
513
|
+
*/
|
514
|
+
checkNameAvailability(location, parameters, options) {
|
515
|
+
return this.client.sendOperationRequest({ location, parameters, options }, checkNameAvailabilityOperationSpec);
|
516
|
+
}
|
517
|
+
/**
|
518
|
+
* ListSkusNext
|
519
|
+
* @param groupName Name of the resource group
|
520
|
+
* @param serviceName Name of the service
|
521
|
+
* @param nextLink The nextLink from the previous successful call to the ListSkus method.
|
522
|
+
* @param options The options parameters.
|
523
|
+
*/
|
524
|
+
_listSkusNext(groupName, serviceName, nextLink, options) {
|
525
|
+
return this.client.sendOperationRequest({ groupName, serviceName, nextLink, options }, listSkusNextOperationSpec);
|
526
|
+
}
|
527
|
+
/**
|
528
|
+
* ListByResourceGroupNext
|
529
|
+
* @param groupName Name of the resource group
|
530
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
531
|
+
* @param options The options parameters.
|
532
|
+
*/
|
533
|
+
_listByResourceGroupNext(groupName, nextLink, options) {
|
534
|
+
return this.client.sendOperationRequest({ groupName, nextLink, options }, listByResourceGroupNextOperationSpec);
|
535
|
+
}
|
536
|
+
/**
|
537
|
+
* ListNext
|
538
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
539
|
+
* @param options The options parameters.
|
540
|
+
*/
|
541
|
+
_listNext(nextLink, options) {
|
542
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
543
|
+
}
|
544
|
+
}
|
545
|
+
// Operation Specifications
|
546
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
547
|
+
const createOrUpdateOperationSpec = {
|
548
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}",
|
549
|
+
httpMethod: "PUT",
|
550
|
+
responses: {
|
551
|
+
200: {
|
552
|
+
bodyMapper: Mappers.DataMigrationService
|
553
|
+
},
|
554
|
+
201: {
|
555
|
+
bodyMapper: Mappers.DataMigrationService
|
556
|
+
},
|
557
|
+
202: {
|
558
|
+
bodyMapper: Mappers.DataMigrationService
|
559
|
+
},
|
560
|
+
204: {
|
561
|
+
bodyMapper: Mappers.DataMigrationService
|
562
|
+
},
|
563
|
+
default: {
|
564
|
+
bodyMapper: Mappers.ApiError
|
565
|
+
}
|
566
|
+
},
|
567
|
+
requestBody: Parameters.parameters7,
|
568
|
+
queryParameters: [Parameters.apiVersion],
|
569
|
+
urlParameters: [
|
570
|
+
Parameters.$host,
|
571
|
+
Parameters.subscriptionId,
|
572
|
+
Parameters.groupName,
|
573
|
+
Parameters.serviceName
|
574
|
+
],
|
575
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
576
|
+
mediaType: "json",
|
577
|
+
serializer
|
578
|
+
};
|
579
|
+
const getOperationSpec = {
|
580
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}",
|
581
|
+
httpMethod: "GET",
|
582
|
+
responses: {
|
583
|
+
200: {
|
584
|
+
bodyMapper: Mappers.DataMigrationService
|
585
|
+
},
|
586
|
+
default: {
|
587
|
+
bodyMapper: Mappers.ApiError
|
588
|
+
}
|
589
|
+
},
|
590
|
+
queryParameters: [Parameters.apiVersion],
|
591
|
+
urlParameters: [
|
592
|
+
Parameters.$host,
|
593
|
+
Parameters.subscriptionId,
|
594
|
+
Parameters.groupName,
|
595
|
+
Parameters.serviceName
|
596
|
+
],
|
597
|
+
headerParameters: [Parameters.accept],
|
598
|
+
serializer
|
599
|
+
};
|
600
|
+
const deleteOperationSpec = {
|
601
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}",
|
602
|
+
httpMethod: "DELETE",
|
603
|
+
responses: {
|
604
|
+
200: {},
|
605
|
+
201: {},
|
606
|
+
202: {},
|
607
|
+
204: {},
|
608
|
+
default: {
|
609
|
+
bodyMapper: Mappers.ApiError
|
610
|
+
}
|
611
|
+
},
|
612
|
+
queryParameters: [Parameters.apiVersion, Parameters.deleteRunningTasks],
|
613
|
+
urlParameters: [
|
614
|
+
Parameters.$host,
|
615
|
+
Parameters.subscriptionId,
|
616
|
+
Parameters.groupName,
|
617
|
+
Parameters.serviceName
|
618
|
+
],
|
619
|
+
headerParameters: [Parameters.accept],
|
620
|
+
serializer
|
621
|
+
};
|
622
|
+
const updateOperationSpec = {
|
623
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}",
|
624
|
+
httpMethod: "PATCH",
|
625
|
+
responses: {
|
626
|
+
200: {
|
627
|
+
bodyMapper: Mappers.DataMigrationService
|
628
|
+
},
|
629
|
+
201: {
|
630
|
+
bodyMapper: Mappers.DataMigrationService
|
631
|
+
},
|
632
|
+
202: {
|
633
|
+
bodyMapper: Mappers.DataMigrationService
|
634
|
+
},
|
635
|
+
204: {
|
636
|
+
bodyMapper: Mappers.DataMigrationService
|
637
|
+
},
|
638
|
+
default: {
|
639
|
+
bodyMapper: Mappers.ApiError
|
640
|
+
}
|
641
|
+
},
|
642
|
+
requestBody: Parameters.parameters7,
|
643
|
+
queryParameters: [Parameters.apiVersion],
|
644
|
+
urlParameters: [
|
645
|
+
Parameters.$host,
|
646
|
+
Parameters.subscriptionId,
|
647
|
+
Parameters.groupName,
|
648
|
+
Parameters.serviceName
|
649
|
+
],
|
650
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
651
|
+
mediaType: "json",
|
652
|
+
serializer
|
653
|
+
};
|
654
|
+
const checkStatusOperationSpec = {
|
655
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/checkStatus",
|
656
|
+
httpMethod: "POST",
|
657
|
+
responses: {
|
658
|
+
200: {
|
659
|
+
bodyMapper: Mappers.DataMigrationServiceStatusResponse
|
660
|
+
},
|
661
|
+
default: {
|
662
|
+
bodyMapper: Mappers.ApiError
|
663
|
+
}
|
664
|
+
},
|
665
|
+
queryParameters: [Parameters.apiVersion],
|
666
|
+
urlParameters: [
|
667
|
+
Parameters.$host,
|
668
|
+
Parameters.subscriptionId,
|
669
|
+
Parameters.groupName,
|
670
|
+
Parameters.serviceName
|
671
|
+
],
|
672
|
+
headerParameters: [Parameters.accept],
|
673
|
+
serializer
|
674
|
+
};
|
675
|
+
const startOperationSpec = {
|
676
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/start",
|
677
|
+
httpMethod: "POST",
|
678
|
+
responses: {
|
679
|
+
200: {},
|
680
|
+
201: {},
|
681
|
+
202: {},
|
682
|
+
204: {},
|
683
|
+
default: {
|
684
|
+
bodyMapper: Mappers.ApiError
|
685
|
+
}
|
686
|
+
},
|
687
|
+
queryParameters: [Parameters.apiVersion],
|
688
|
+
urlParameters: [
|
689
|
+
Parameters.$host,
|
690
|
+
Parameters.subscriptionId,
|
691
|
+
Parameters.groupName,
|
692
|
+
Parameters.serviceName
|
693
|
+
],
|
694
|
+
headerParameters: [Parameters.accept],
|
695
|
+
serializer
|
696
|
+
};
|
697
|
+
const stopOperationSpec = {
|
698
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/stop",
|
699
|
+
httpMethod: "POST",
|
700
|
+
responses: {
|
701
|
+
200: {},
|
702
|
+
201: {},
|
703
|
+
202: {},
|
704
|
+
204: {},
|
705
|
+
default: {
|
706
|
+
bodyMapper: Mappers.ApiError
|
707
|
+
}
|
708
|
+
},
|
709
|
+
queryParameters: [Parameters.apiVersion],
|
710
|
+
urlParameters: [
|
711
|
+
Parameters.$host,
|
712
|
+
Parameters.subscriptionId,
|
713
|
+
Parameters.groupName,
|
714
|
+
Parameters.serviceName
|
715
|
+
],
|
716
|
+
headerParameters: [Parameters.accept],
|
717
|
+
serializer
|
718
|
+
};
|
719
|
+
const listSkusOperationSpec = {
|
720
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/skus",
|
721
|
+
httpMethod: "GET",
|
722
|
+
responses: {
|
723
|
+
200: {
|
724
|
+
bodyMapper: Mappers.ServiceSkuList
|
725
|
+
},
|
726
|
+
default: {
|
727
|
+
bodyMapper: Mappers.ApiError
|
728
|
+
}
|
729
|
+
},
|
730
|
+
queryParameters: [Parameters.apiVersion],
|
731
|
+
urlParameters: [
|
732
|
+
Parameters.$host,
|
733
|
+
Parameters.subscriptionId,
|
734
|
+
Parameters.groupName,
|
735
|
+
Parameters.serviceName
|
736
|
+
],
|
737
|
+
headerParameters: [Parameters.accept],
|
738
|
+
serializer
|
739
|
+
};
|
740
|
+
const checkChildrenNameAvailabilityOperationSpec = {
|
741
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/checkNameAvailability",
|
742
|
+
httpMethod: "POST",
|
743
|
+
responses: {
|
744
|
+
200: {
|
745
|
+
bodyMapper: Mappers.NameAvailabilityResponse
|
746
|
+
},
|
747
|
+
default: {
|
748
|
+
bodyMapper: Mappers.ApiError
|
749
|
+
}
|
750
|
+
},
|
751
|
+
requestBody: Parameters.parameters8,
|
752
|
+
queryParameters: [Parameters.apiVersion],
|
753
|
+
urlParameters: [
|
754
|
+
Parameters.$host,
|
755
|
+
Parameters.subscriptionId,
|
756
|
+
Parameters.groupName,
|
757
|
+
Parameters.serviceName
|
758
|
+
],
|
759
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
760
|
+
mediaType: "json",
|
761
|
+
serializer
|
762
|
+
};
|
763
|
+
const listByResourceGroupOperationSpec = {
|
764
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services",
|
765
|
+
httpMethod: "GET",
|
766
|
+
responses: {
|
767
|
+
200: {
|
768
|
+
bodyMapper: Mappers.DataMigrationServiceList
|
769
|
+
},
|
770
|
+
default: {
|
771
|
+
bodyMapper: Mappers.ApiError
|
772
|
+
}
|
773
|
+
},
|
774
|
+
queryParameters: [Parameters.apiVersion],
|
775
|
+
urlParameters: [
|
776
|
+
Parameters.$host,
|
777
|
+
Parameters.subscriptionId,
|
778
|
+
Parameters.groupName
|
779
|
+
],
|
780
|
+
headerParameters: [Parameters.accept],
|
781
|
+
serializer
|
782
|
+
};
|
783
|
+
const listOperationSpec = {
|
784
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.DataMigration/services",
|
785
|
+
httpMethod: "GET",
|
786
|
+
responses: {
|
787
|
+
200: {
|
788
|
+
bodyMapper: Mappers.DataMigrationServiceList
|
789
|
+
},
|
790
|
+
default: {
|
791
|
+
bodyMapper: Mappers.ApiError
|
792
|
+
}
|
793
|
+
},
|
794
|
+
queryParameters: [Parameters.apiVersion],
|
795
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
796
|
+
headerParameters: [Parameters.accept],
|
797
|
+
serializer
|
798
|
+
};
|
799
|
+
const checkNameAvailabilityOperationSpec = {
|
800
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.DataMigration/locations/{location}/checkNameAvailability",
|
801
|
+
httpMethod: "POST",
|
802
|
+
responses: {
|
803
|
+
200: {
|
804
|
+
bodyMapper: Mappers.NameAvailabilityResponse
|
805
|
+
},
|
806
|
+
default: {
|
807
|
+
bodyMapper: Mappers.ApiError
|
808
|
+
}
|
809
|
+
},
|
810
|
+
requestBody: Parameters.parameters8,
|
811
|
+
queryParameters: [Parameters.apiVersion],
|
812
|
+
urlParameters: [
|
813
|
+
Parameters.$host,
|
814
|
+
Parameters.subscriptionId,
|
815
|
+
Parameters.location
|
816
|
+
],
|
817
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
818
|
+
mediaType: "json",
|
819
|
+
serializer
|
820
|
+
};
|
821
|
+
const listSkusNextOperationSpec = {
|
822
|
+
path: "{nextLink}",
|
823
|
+
httpMethod: "GET",
|
824
|
+
responses: {
|
825
|
+
200: {
|
826
|
+
bodyMapper: Mappers.ServiceSkuList
|
827
|
+
},
|
828
|
+
default: {
|
829
|
+
bodyMapper: Mappers.ApiError
|
830
|
+
}
|
831
|
+
},
|
832
|
+
queryParameters: [Parameters.apiVersion],
|
833
|
+
urlParameters: [
|
834
|
+
Parameters.$host,
|
835
|
+
Parameters.subscriptionId,
|
836
|
+
Parameters.nextLink,
|
837
|
+
Parameters.groupName,
|
838
|
+
Parameters.serviceName
|
839
|
+
],
|
840
|
+
headerParameters: [Parameters.accept],
|
841
|
+
serializer
|
842
|
+
};
|
843
|
+
const listByResourceGroupNextOperationSpec = {
|
844
|
+
path: "{nextLink}",
|
845
|
+
httpMethod: "GET",
|
846
|
+
responses: {
|
847
|
+
200: {
|
848
|
+
bodyMapper: Mappers.DataMigrationServiceList
|
849
|
+
},
|
850
|
+
default: {
|
851
|
+
bodyMapper: Mappers.ApiError
|
852
|
+
}
|
853
|
+
},
|
854
|
+
queryParameters: [Parameters.apiVersion],
|
855
|
+
urlParameters: [
|
856
|
+
Parameters.$host,
|
857
|
+
Parameters.subscriptionId,
|
858
|
+
Parameters.nextLink,
|
859
|
+
Parameters.groupName
|
860
|
+
],
|
861
|
+
headerParameters: [Parameters.accept],
|
862
|
+
serializer
|
863
|
+
};
|
864
|
+
const listNextOperationSpec = {
|
865
|
+
path: "{nextLink}",
|
866
|
+
httpMethod: "GET",
|
867
|
+
responses: {
|
868
|
+
200: {
|
869
|
+
bodyMapper: Mappers.DataMigrationServiceList
|
870
|
+
},
|
871
|
+
default: {
|
872
|
+
bodyMapper: Mappers.ApiError
|
873
|
+
}
|
874
|
+
},
|
875
|
+
queryParameters: [Parameters.apiVersion],
|
876
|
+
urlParameters: [
|
877
|
+
Parameters.$host,
|
878
|
+
Parameters.subscriptionId,
|
879
|
+
Parameters.nextLink
|
880
|
+
],
|
881
|
+
headerParameters: [Parameters.accept],
|
882
|
+
serializer
|
883
|
+
};
|
884
|
+
//# sourceMappingURL=services.js.map
|