@azure/arm-datamigration 2.1.0 → 3.0.0-alpha.20220201.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 +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
package/rollup.config.js
CHANGED
@@ -1,37 +1,188 @@
|
|
1
|
-
|
2
|
-
|
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 nodeResolve from "@rollup/plugin-node-resolve";
|
10
|
+
import cjs from "@rollup/plugin-commonjs";
|
3
11
|
import sourcemaps from "rollup-plugin-sourcemaps";
|
12
|
+
import multiEntry from "@rollup/plugin-multi-entry";
|
13
|
+
import json from "@rollup/plugin-json";
|
14
|
+
|
15
|
+
import nodeBuiltins from "builtin-modules";
|
16
|
+
|
17
|
+
/**
|
18
|
+
* Gets the proper configuration needed for rollup's commonJS plugin for @opentelemetry/api.
|
19
|
+
*
|
20
|
+
* NOTE: this manual configuration is only needed because OpenTelemetry uses an
|
21
|
+
* __exportStar downleveled helper function to declare its exports which confuses
|
22
|
+
* rollup's automatic discovery mechanism.
|
23
|
+
*
|
24
|
+
* @returns an object reference that can be `...`'d into your cjs() configuration.
|
25
|
+
*/
|
26
|
+
export function openTelemetryCommonJs() {
|
27
|
+
const namedExports = {};
|
28
|
+
|
29
|
+
for (const key of [
|
30
|
+
"@opentelemetry/api",
|
31
|
+
"@azure/core-tracing/node_modules/@opentelemetry/api"
|
32
|
+
]) {
|
33
|
+
namedExports[key] = [
|
34
|
+
"SpanKind",
|
35
|
+
"TraceFlags",
|
36
|
+
"getSpan",
|
37
|
+
"setSpan",
|
38
|
+
"SpanStatusCode",
|
39
|
+
"getSpanContext",
|
40
|
+
"setSpanContext"
|
41
|
+
];
|
42
|
+
}
|
43
|
+
|
44
|
+
const releasedOpenTelemetryVersions = ["0.10.2", "1.0.0-rc.0"];
|
45
|
+
|
46
|
+
for (const version of releasedOpenTelemetryVersions) {
|
47
|
+
namedExports[
|
48
|
+
// working around a limitation in the rollup common.js plugin - it's not able to resolve these modules so the named exports listed above will not get applied. We have to drill down to the actual path.
|
49
|
+
`../../../common/temp/node_modules/.pnpm/@opentelemetry/api@${version}/node_modules/@opentelemetry/api/build/src/index.js`
|
50
|
+
] = [
|
51
|
+
"SpanKind",
|
52
|
+
"TraceFlags",
|
53
|
+
"getSpan",
|
54
|
+
"setSpan",
|
55
|
+
"StatusCode",
|
56
|
+
"CanonicalCode",
|
57
|
+
"getSpanContext",
|
58
|
+
"setSpanContext"
|
59
|
+
];
|
60
|
+
}
|
61
|
+
|
62
|
+
return namedExports;
|
63
|
+
}
|
64
|
+
|
65
|
+
// #region Warning Handler
|
4
66
|
|
5
67
|
/**
|
6
|
-
*
|
68
|
+
* A function that can determine whether a rollupwarning should be ignored. If
|
69
|
+
* the function returns `true`, then the warning will not be displayed.
|
7
70
|
*/
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
"
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
71
|
+
|
72
|
+
function ignoreNiseSinonEvalWarnings(warning) {
|
73
|
+
return (
|
74
|
+
warning.code === "EVAL" &&
|
75
|
+
warning.id &&
|
76
|
+
(warning.id.includes("node_modules/nise") ||
|
77
|
+
warning.id.includes("node_modules/sinon")) === true
|
78
|
+
);
|
79
|
+
}
|
80
|
+
|
81
|
+
function ignoreChaiCircularDependencyWarnings(warning) {
|
82
|
+
return (
|
83
|
+
warning.code === "CIRCULAR_DEPENDENCY" &&
|
84
|
+
warning.importer && warning.importer.includes("node_modules/chai") === true
|
85
|
+
);
|
86
|
+
}
|
87
|
+
|
88
|
+
const warningInhibitors = [
|
89
|
+
ignoreChaiCircularDependencyWarnings,
|
90
|
+
ignoreNiseSinonEvalWarnings
|
91
|
+
];
|
92
|
+
|
93
|
+
/**
|
94
|
+
* Construct a warning handler for the shared rollup configuration
|
95
|
+
* that ignores certain warnings that are not relevant to testing.
|
96
|
+
*/
|
97
|
+
function makeOnWarnForTesting() {
|
98
|
+
return (warning, warn) => {
|
99
|
+
// If every inhibitor returns false (i.e. no inhibitors), then show the warning
|
100
|
+
if (warningInhibitors.every((inhib) => !inhib(warning))) {
|
101
|
+
warn(warning);
|
102
|
+
}
|
103
|
+
};
|
104
|
+
}
|
105
|
+
|
106
|
+
// #endregion
|
107
|
+
|
108
|
+
function makeBrowserTestConfig() {
|
109
|
+
const config = {
|
110
|
+
input: {
|
111
|
+
include: ["dist-esm/test/**/*.spec.js"],
|
112
|
+
exclude: ["dist-esm/test/**/node/**"]
|
22
113
|
},
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
114
|
+
output: {
|
115
|
+
file: `dist-test/index.browser.js`,
|
116
|
+
format: "umd",
|
117
|
+
sourcemap: true
|
118
|
+
},
|
119
|
+
preserveSymlinks: false,
|
120
|
+
plugins: [
|
121
|
+
multiEntry({ exports: false }),
|
122
|
+
nodeResolve({
|
123
|
+
mainFields: ["module", "browser"]
|
124
|
+
}),
|
125
|
+
cjs({
|
126
|
+
namedExports: {
|
127
|
+
// Chai's strange internal architecture makes it impossible to statically
|
128
|
+
// analyze its exports.
|
129
|
+
chai: [
|
130
|
+
"version",
|
131
|
+
"use",
|
132
|
+
"util",
|
133
|
+
"config",
|
134
|
+
"expect",
|
135
|
+
"should",
|
136
|
+
"assert"
|
137
|
+
],
|
138
|
+
...openTelemetryCommonJs()
|
139
|
+
}
|
140
|
+
}),
|
141
|
+
json(),
|
142
|
+
sourcemaps()
|
143
|
+
//viz({ filename: "dist-test/browser-stats.html", sourcemap: true })
|
144
|
+
],
|
145
|
+
onwarn: makeOnWarnForTesting(),
|
146
|
+
// Disable tree-shaking of test code. In rollup-plugin-node-resolve@5.0.0,
|
147
|
+
// rollup started respecting the "sideEffects" field in package.json. Since
|
148
|
+
// our package.json sets "sideEffects=false", this also applies to test
|
149
|
+
// code, which causes all tests to be removed by tree-shaking.
|
150
|
+
treeshake: false
|
151
|
+
};
|
152
|
+
|
153
|
+
return config;
|
154
|
+
}
|
155
|
+
|
156
|
+
const defaultConfigurationOptions = {
|
157
|
+
disableBrowserBundle: false
|
35
158
|
};
|
36
159
|
|
37
|
-
export
|
160
|
+
export function makeConfig(pkg, options) {
|
161
|
+
options = {
|
162
|
+
...defaultConfigurationOptions,
|
163
|
+
...(options || {})
|
164
|
+
};
|
165
|
+
|
166
|
+
const baseConfig = {
|
167
|
+
// Use the package's module field if it has one
|
168
|
+
input: pkg["module"] || "dist-esm/src/index.js",
|
169
|
+
external: [
|
170
|
+
...nodeBuiltins,
|
171
|
+
...Object.keys(pkg.dependencies),
|
172
|
+
...Object.keys(pkg.devDependencies)
|
173
|
+
],
|
174
|
+
output: { file: "dist/index.js", format: "cjs", sourcemap: true },
|
175
|
+
preserveSymlinks: false,
|
176
|
+
plugins: [sourcemaps(), nodeResolve(), cjs()]
|
177
|
+
};
|
178
|
+
|
179
|
+
const config = [baseConfig];
|
180
|
+
|
181
|
+
if (!options.disableBrowserBundle) {
|
182
|
+
config.push(makeBrowserTestConfig());
|
183
|
+
}
|
184
|
+
|
185
|
+
return config;
|
186
|
+
}
|
187
|
+
|
188
|
+
export default makeConfig(require("./package.json"));
|
@@ -0,0 +1,119 @@
|
|
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 * as coreClient from "@azure/core-client";
|
10
|
+
import * as coreAuth from "@azure/core-auth";
|
11
|
+
import {
|
12
|
+
DatabaseMigrationsSqlMiImpl,
|
13
|
+
DatabaseMigrationsSqlVmImpl,
|
14
|
+
OperationsImpl,
|
15
|
+
SqlMigrationServicesImpl,
|
16
|
+
ResourceSkusImpl,
|
17
|
+
ServicesImpl,
|
18
|
+
TasksImpl,
|
19
|
+
ServiceTasksImpl,
|
20
|
+
ProjectsImpl,
|
21
|
+
UsagesImpl,
|
22
|
+
FilesImpl
|
23
|
+
} from "./operations";
|
24
|
+
import {
|
25
|
+
DatabaseMigrationsSqlMi,
|
26
|
+
DatabaseMigrationsSqlVm,
|
27
|
+
Operations,
|
28
|
+
SqlMigrationServices,
|
29
|
+
ResourceSkus,
|
30
|
+
Services,
|
31
|
+
Tasks,
|
32
|
+
ServiceTasks,
|
33
|
+
Projects,
|
34
|
+
Usages,
|
35
|
+
Files
|
36
|
+
} from "./operationsInterfaces";
|
37
|
+
import { DataMigrationManagementClientOptionalParams } from "./models";
|
38
|
+
|
39
|
+
export class DataMigrationManagementClient extends coreClient.ServiceClient {
|
40
|
+
$host: string;
|
41
|
+
subscriptionId: string;
|
42
|
+
apiVersion: string;
|
43
|
+
|
44
|
+
/**
|
45
|
+
* Initializes a new instance of the DataMigrationManagementClient class.
|
46
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
47
|
+
* @param subscriptionId Subscription ID that identifies an Azure subscription.
|
48
|
+
* @param options The parameter options
|
49
|
+
*/
|
50
|
+
constructor(
|
51
|
+
credentials: coreAuth.TokenCredential,
|
52
|
+
subscriptionId: string,
|
53
|
+
options?: DataMigrationManagementClientOptionalParams
|
54
|
+
) {
|
55
|
+
if (credentials === undefined) {
|
56
|
+
throw new Error("'credentials' cannot be null");
|
57
|
+
}
|
58
|
+
if (subscriptionId === undefined) {
|
59
|
+
throw new Error("'subscriptionId' cannot be null");
|
60
|
+
}
|
61
|
+
|
62
|
+
// Initializing default values for options
|
63
|
+
if (!options) {
|
64
|
+
options = {};
|
65
|
+
}
|
66
|
+
const defaults: DataMigrationManagementClientOptionalParams = {
|
67
|
+
requestContentType: "application/json; charset=utf-8",
|
68
|
+
credential: credentials
|
69
|
+
};
|
70
|
+
|
71
|
+
const packageDetails = `azsdk-js-arm-datamigration/3.0.0-beta.1`;
|
72
|
+
const userAgentPrefix =
|
73
|
+
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
74
|
+
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
75
|
+
: `${packageDetails}`;
|
76
|
+
|
77
|
+
if (!options.credentialScopes) {
|
78
|
+
options.credentialScopes = ["https://management.azure.com/.default"];
|
79
|
+
}
|
80
|
+
const optionsWithDefaults = {
|
81
|
+
...defaults,
|
82
|
+
...options,
|
83
|
+
userAgentOptions: {
|
84
|
+
userAgentPrefix
|
85
|
+
},
|
86
|
+
baseUri: options.endpoint || "https://management.azure.com"
|
87
|
+
};
|
88
|
+
super(optionsWithDefaults);
|
89
|
+
// Parameter assignments
|
90
|
+
this.subscriptionId = subscriptionId;
|
91
|
+
|
92
|
+
// Assigning values to Constant parameters
|
93
|
+
this.$host = options.$host || "https://management.azure.com";
|
94
|
+
this.apiVersion = options.apiVersion || "2021-10-30-preview";
|
95
|
+
this.databaseMigrationsSqlMi = new DatabaseMigrationsSqlMiImpl(this);
|
96
|
+
this.databaseMigrationsSqlVm = new DatabaseMigrationsSqlVmImpl(this);
|
97
|
+
this.operations = new OperationsImpl(this);
|
98
|
+
this.sqlMigrationServices = new SqlMigrationServicesImpl(this);
|
99
|
+
this.resourceSkus = new ResourceSkusImpl(this);
|
100
|
+
this.services = new ServicesImpl(this);
|
101
|
+
this.tasks = new TasksImpl(this);
|
102
|
+
this.serviceTasks = new ServiceTasksImpl(this);
|
103
|
+
this.projects = new ProjectsImpl(this);
|
104
|
+
this.usages = new UsagesImpl(this);
|
105
|
+
this.files = new FilesImpl(this);
|
106
|
+
}
|
107
|
+
|
108
|
+
databaseMigrationsSqlMi: DatabaseMigrationsSqlMi;
|
109
|
+
databaseMigrationsSqlVm: DatabaseMigrationsSqlVm;
|
110
|
+
operations: Operations;
|
111
|
+
sqlMigrationServices: SqlMigrationServices;
|
112
|
+
resourceSkus: ResourceSkus;
|
113
|
+
services: Services;
|
114
|
+
tasks: Tasks;
|
115
|
+
serviceTasks: ServiceTasks;
|
116
|
+
projects: Projects;
|
117
|
+
usages: Usages;
|
118
|
+
files: Files;
|
119
|
+
}
|
package/src/index.ts
ADDED
@@ -0,0 +1,12 @@
|
|
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
|
+
/// <reference lib="esnext.asynciterable" />
|
10
|
+
export * from "./models";
|
11
|
+
export { DataMigrationManagementClient } from "./dataMigrationManagementClient";
|
12
|
+
export * from "./operationsInterfaces";
|
package/src/lroImpl.ts
ADDED
@@ -0,0 +1,34 @@
|
|
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 { LongRunningOperation, LroResponse } from "@azure/core-lro";
|
10
|
+
|
11
|
+
export class LroImpl<T> implements LongRunningOperation<T> {
|
12
|
+
constructor(
|
13
|
+
private sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>,
|
14
|
+
private args: Record<string, unknown>,
|
15
|
+
private spec: {
|
16
|
+
readonly requestBody?: unknown;
|
17
|
+
readonly path?: string;
|
18
|
+
readonly httpMethod: string;
|
19
|
+
} & Record<string, any>,
|
20
|
+
public requestPath: string = spec.path!,
|
21
|
+
public requestMethod: string = spec.httpMethod
|
22
|
+
) {}
|
23
|
+
public async sendInitialRequest(): Promise<LroResponse<T>> {
|
24
|
+
return this.sendOperationFn(this.args, this.spec);
|
25
|
+
}
|
26
|
+
public async sendPollRequest(path: string): Promise<LroResponse<T>> {
|
27
|
+
const { requestBody, ...restSpec } = this.spec;
|
28
|
+
return this.sendOperationFn(this.args, {
|
29
|
+
...restSpec,
|
30
|
+
path,
|
31
|
+
httpMethod: "GET"
|
32
|
+
});
|
33
|
+
}
|
34
|
+
}
|