@azure/arm-datamigration 2.0.0 → 3.0.0-beta.1
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +11 -0
- package/LICENSE +21 -0
- package/README.md +72 -73
- package/dist/index.js +16801 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/samples-dev/createOrUpdateDatabaseMigrationResourceWithMaximumParameters.d.ts +2 -0
- package/dist-esm/samples-dev/createOrUpdateDatabaseMigrationResourceWithMaximumParameters.d.ts.map +1 -0
- package/dist-esm/samples-dev/createOrUpdateDatabaseMigrationResourceWithMaximumParameters.js +65 -0
- package/dist-esm/samples-dev/createOrUpdateDatabaseMigrationResourceWithMaximumParameters.js.map +1 -0
- package/dist-esm/samples-dev/createOrUpdateDatabaseMigrationResourceWithMinimumParameters.d.ts +2 -0
- package/dist-esm/samples-dev/createOrUpdateDatabaseMigrationResourceWithMinimumParameters.d.ts.map +1 -0
- package/dist-esm/samples-dev/createOrUpdateDatabaseMigrationResourceWithMinimumParameters.js +65 -0
- package/dist-esm/samples-dev/createOrUpdateDatabaseMigrationResourceWithMinimumParameters.js.map +1 -0
- package/dist-esm/samples-dev/createOrUpdateSqlMigrationServiceWithMaximumParameters.d.ts +2 -0
- package/dist-esm/samples-dev/createOrUpdateSqlMigrationServiceWithMaximumParameters.d.ts.map +1 -0
- package/dist-esm/samples-dev/createOrUpdateSqlMigrationServiceWithMaximumParameters.js +32 -0
- package/dist-esm/samples-dev/createOrUpdateSqlMigrationServiceWithMaximumParameters.js.map +1 -0
- package/dist-esm/samples-dev/createOrUpdateSqlMigrationServiceWithMinimumParameters.d.ts +2 -0
- package/dist-esm/samples-dev/createOrUpdateSqlMigrationServiceWithMinimumParameters.d.ts.map +1 -0
- package/dist-esm/samples-dev/createOrUpdateSqlMigrationServiceWithMinimumParameters.js +32 -0
- package/dist-esm/samples-dev/createOrUpdateSqlMigrationServiceWithMinimumParameters.js.map +1 -0
- package/dist-esm/samples-dev/cutoverOnlineMigrationOperationForTheDatabase.d.ts +2 -0
- package/dist-esm/samples-dev/cutoverOnlineMigrationOperationForTheDatabase.d.ts.map +1 -0
- package/dist-esm/samples-dev/cutoverOnlineMigrationOperationForTheDatabase.js +35 -0
- package/dist-esm/samples-dev/cutoverOnlineMigrationOperationForTheDatabase.js.map +1 -0
- package/dist-esm/samples-dev/deleteSqlMigrationService.d.ts +2 -0
- package/dist-esm/samples-dev/deleteSqlMigrationService.d.ts.map +1 -0
- package/dist-esm/samples-dev/deleteSqlMigrationService.js +31 -0
- package/dist-esm/samples-dev/deleteSqlMigrationService.js.map +1 -0
- package/dist-esm/samples-dev/deleteTheIntegrationRuntimeNode.d.ts +2 -0
- package/dist-esm/samples-dev/deleteTheIntegrationRuntimeNode.d.ts.map +1 -0
- package/dist-esm/samples-dev/deleteTheIntegrationRuntimeNode.js +35 -0
- package/dist-esm/samples-dev/deleteTheIntegrationRuntimeNode.js.map +1 -0
- package/dist-esm/samples-dev/filesCreateOrUpdate.d.ts +2 -0
- package/dist-esm/samples-dev/filesCreateOrUpdate.d.ts.map +1 -0
- package/dist-esm/samples-dev/filesCreateOrUpdate.js +36 -0
- package/dist-esm/samples-dev/filesCreateOrUpdate.js.map +1 -0
- package/dist-esm/samples-dev/filesDelete.d.ts +2 -0
- package/dist-esm/samples-dev/filesDelete.d.ts.map +1 -0
- package/dist-esm/samples-dev/filesDelete.js +33 -0
- package/dist-esm/samples-dev/filesDelete.js.map +1 -0
- package/dist-esm/samples-dev/filesList.d.ts +2 -0
- package/dist-esm/samples-dev/filesList.d.ts.map +1 -0
- package/dist-esm/samples-dev/filesList.js +33 -0
- package/dist-esm/samples-dev/filesList.js.map +1 -0
- package/dist-esm/samples-dev/filesUpdate.d.ts +2 -0
- package/dist-esm/samples-dev/filesUpdate.d.ts.map +1 -0
- package/dist-esm/samples-dev/filesUpdate.js +36 -0
- package/dist-esm/samples-dev/filesUpdate.js.map +1 -0
- package/dist-esm/samples-dev/getDatabaseMigrationResource.d.ts +2 -0
- package/dist-esm/samples-dev/getDatabaseMigrationResource.d.ts.map +1 -0
- package/dist-esm/samples-dev/getDatabaseMigrationResource.js +32 -0
- package/dist-esm/samples-dev/getDatabaseMigrationResource.js.map +1 -0
- package/dist-esm/samples-dev/getMigrationService.d.ts +2 -0
- package/dist-esm/samples-dev/getMigrationService.d.ts.map +1 -0
- package/dist-esm/samples-dev/getMigrationService.js +31 -0
- package/dist-esm/samples-dev/getMigrationService.js.map +1 -0
- package/dist-esm/samples-dev/getMigrationServicesInTheResourceGroup.d.ts +2 -0
- package/dist-esm/samples-dev/getMigrationServicesInTheResourceGroup.d.ts.map +1 -0
- package/dist-esm/samples-dev/getMigrationServicesInTheResourceGroup.js +44 -0
- package/dist-esm/samples-dev/getMigrationServicesInTheResourceGroup.js.map +1 -0
- package/dist-esm/samples-dev/getServicesInTheSubscriptions.d.ts +2 -0
- package/dist-esm/samples-dev/getServicesInTheSubscriptions.d.ts.map +1 -0
- package/dist-esm/samples-dev/getServicesInTheSubscriptions.js +43 -0
- package/dist-esm/samples-dev/getServicesInTheSubscriptions.js.map +1 -0
- package/dist-esm/samples-dev/listDatabaseMigrationsAttachedToTheService.d.ts +2 -0
- package/dist-esm/samples-dev/listDatabaseMigrationsAttachedToTheService.d.ts.map +1 -0
- package/dist-esm/samples-dev/listDatabaseMigrationsAttachedToTheService.js +45 -0
- package/dist-esm/samples-dev/listDatabaseMigrationsAttachedToTheService.js.map +1 -0
- package/dist-esm/samples-dev/listSkus.d.ts +2 -0
- package/dist-esm/samples-dev/listSkus.d.ts.map +1 -0
- package/dist-esm/samples-dev/listSkus.js +43 -0
- package/dist-esm/samples-dev/listSkus.js.map +1 -0
- package/dist-esm/samples-dev/listsAllOfTheAvailableSqlRestApiOperations.d.ts +2 -0
- package/dist-esm/samples-dev/listsAllOfTheAvailableSqlRestApiOperations.d.ts.map +1 -0
- package/dist-esm/samples-dev/listsAllOfTheAvailableSqlRestApiOperations.js +43 -0
- package/dist-esm/samples-dev/listsAllOfTheAvailableSqlRestApiOperations.js.map +1 -0
- package/dist-esm/samples-dev/projectsCreateOrUpdate.d.ts +2 -0
- package/dist-esm/samples-dev/projectsCreateOrUpdate.d.ts.map +1 -0
- package/dist-esm/samples-dev/projectsCreateOrUpdate.js +37 -0
- package/dist-esm/samples-dev/projectsCreateOrUpdate.js.map +1 -0
- package/dist-esm/samples-dev/projectsDelete.d.ts +2 -0
- package/dist-esm/samples-dev/projectsDelete.d.ts.map +1 -0
- package/dist-esm/samples-dev/projectsDelete.js +32 -0
- package/dist-esm/samples-dev/projectsDelete.js.map +1 -0
- package/dist-esm/samples-dev/projectsGet.d.ts +2 -0
- package/dist-esm/samples-dev/projectsGet.d.ts.map +1 -0
- package/dist-esm/samples-dev/projectsGet.js +32 -0
- package/dist-esm/samples-dev/projectsGet.js.map +1 -0
- package/dist-esm/samples-dev/projectsList.d.ts +2 -0
- package/dist-esm/samples-dev/projectsList.d.ts.map +1 -0
- package/dist-esm/samples-dev/projectsList.js +45 -0
- package/dist-esm/samples-dev/projectsList.js.map +1 -0
- package/dist-esm/samples-dev/projectsUpdate.d.ts +2 -0
- package/dist-esm/samples-dev/projectsUpdate.d.ts.map +1 -0
- package/dist-esm/samples-dev/projectsUpdate.js +37 -0
- package/dist-esm/samples-dev/projectsUpdate.js.map +1 -0
- package/dist-esm/samples-dev/regenerateTheOfAuthenticationKeys.d.ts +2 -0
- package/dist-esm/samples-dev/regenerateTheOfAuthenticationKeys.d.ts.map +1 -0
- package/dist-esm/samples-dev/regenerateTheOfAuthenticationKeys.js +32 -0
- package/dist-esm/samples-dev/regenerateTheOfAuthenticationKeys.js.map +1 -0
- package/dist-esm/samples-dev/retrieveTheListOfAuthenticationKeys.d.ts +2 -0
- package/dist-esm/samples-dev/retrieveTheListOfAuthenticationKeys.d.ts.map +1 -0
- package/dist-esm/samples-dev/retrieveTheListOfAuthenticationKeys.js +31 -0
- package/dist-esm/samples-dev/retrieveTheListOfAuthenticationKeys.js.map +1 -0
- package/dist-esm/samples-dev/retrieveTheMonitoringData.d.ts +2 -0
- package/dist-esm/samples-dev/retrieveTheMonitoringData.d.ts.map +1 -0
- package/dist-esm/samples-dev/retrieveTheMonitoringData.js +31 -0
- package/dist-esm/samples-dev/retrieveTheMonitoringData.js.map +1 -0
- package/dist-esm/samples-dev/serviceTasksList.d.ts +2 -0
- package/dist-esm/samples-dev/serviceTasksList.d.ts.map +1 -0
- package/dist-esm/samples-dev/serviceTasksList.js +45 -0
- package/dist-esm/samples-dev/serviceTasksList.js.map +1 -0
- package/dist-esm/samples-dev/servicesCheckChildrenNameAvailability.d.ts +2 -0
- package/dist-esm/samples-dev/servicesCheckChildrenNameAvailability.d.ts.map +1 -0
- package/dist-esm/samples-dev/servicesCheckChildrenNameAvailability.js +32 -0
- package/dist-esm/samples-dev/servicesCheckChildrenNameAvailability.js.map +1 -0
- package/dist-esm/samples-dev/servicesCheckNameAvailability.d.ts +2 -0
- package/dist-esm/samples-dev/servicesCheckNameAvailability.d.ts.map +1 -0
- package/dist-esm/samples-dev/servicesCheckNameAvailability.js +34 -0
- package/dist-esm/samples-dev/servicesCheckNameAvailability.js.map +1 -0
- package/dist-esm/samples-dev/servicesCheckStatus.d.ts +2 -0
- package/dist-esm/samples-dev/servicesCheckStatus.d.ts.map +1 -0
- package/dist-esm/samples-dev/servicesCheckStatus.js +31 -0
- package/dist-esm/samples-dev/servicesCheckStatus.js.map +1 -0
- package/dist-esm/samples-dev/servicesCreateOrUpdate.d.ts +2 -0
- package/dist-esm/samples-dev/servicesCreateOrUpdate.d.ts.map +1 -0
- package/dist-esm/samples-dev/servicesCreateOrUpdate.js +35 -0
- package/dist-esm/samples-dev/servicesCreateOrUpdate.js.map +1 -0
- package/dist-esm/samples-dev/servicesList.d.ts +2 -0
- package/dist-esm/samples-dev/servicesList.d.ts.map +1 -0
- package/dist-esm/samples-dev/servicesList.js +43 -0
- package/dist-esm/samples-dev/servicesList.js.map +1 -0
- package/dist-esm/samples-dev/servicesListByResourceGroup.d.ts +2 -0
- package/dist-esm/samples-dev/servicesListByResourceGroup.d.ts.map +1 -0
- package/dist-esm/samples-dev/servicesListByResourceGroup.js +44 -0
- package/dist-esm/samples-dev/servicesListByResourceGroup.js.map +1 -0
- package/dist-esm/samples-dev/servicesListSkus.d.ts +2 -0
- package/dist-esm/samples-dev/servicesListSkus.d.ts.map +1 -0
- package/dist-esm/samples-dev/servicesListSkus.js +45 -0
- package/dist-esm/samples-dev/servicesListSkus.js.map +1 -0
- package/dist-esm/samples-dev/servicesStart.d.ts +2 -0
- package/dist-esm/samples-dev/servicesStart.d.ts.map +1 -0
- package/dist-esm/samples-dev/servicesStart.js +31 -0
- package/dist-esm/samples-dev/servicesStart.js.map +1 -0
- package/dist-esm/samples-dev/servicesStop.d.ts +2 -0
- package/dist-esm/samples-dev/servicesStop.d.ts.map +1 -0
- package/dist-esm/samples-dev/servicesStop.js +31 -0
- package/dist-esm/samples-dev/servicesStop.js.map +1 -0
- package/dist-esm/samples-dev/servicesUsages.d.ts +2 -0
- package/dist-esm/samples-dev/servicesUsages.d.ts.map +1 -0
- package/dist-esm/samples-dev/servicesUsages.js +44 -0
- package/dist-esm/samples-dev/servicesUsages.js.map +1 -0
- package/dist-esm/samples-dev/stopOngoingMigrationForTheDatabase.d.ts +2 -0
- package/dist-esm/samples-dev/stopOngoingMigrationForTheDatabase.d.ts.map +1 -0
- package/dist-esm/samples-dev/stopOngoingMigrationForTheDatabase.js +35 -0
- package/dist-esm/samples-dev/stopOngoingMigrationForTheDatabase.js.map +1 -0
- package/dist-esm/samples-dev/tasksCancel.d.ts +2 -0
- package/dist-esm/samples-dev/tasksCancel.d.ts.map +1 -0
- package/dist-esm/samples-dev/tasksCancel.js +32 -0
- package/dist-esm/samples-dev/tasksCancel.js.map +1 -0
- package/dist-esm/samples-dev/tasksCommand.d.ts +2 -0
- package/dist-esm/samples-dev/tasksCommand.d.ts.map +1 -0
- package/dist-esm/samples-dev/tasksCommand.js +37 -0
- package/dist-esm/samples-dev/tasksCommand.js.map +1 -0
- package/dist-esm/samples-dev/tasksCreateOrUpdate.d.ts +2 -0
- package/dist-esm/samples-dev/tasksCreateOrUpdate.d.ts.map +1 -0
- package/dist-esm/samples-dev/tasksCreateOrUpdate.js +38 -0
- package/dist-esm/samples-dev/tasksCreateOrUpdate.js.map +1 -0
- package/dist-esm/samples-dev/tasksDelete.d.ts +2 -0
- package/dist-esm/samples-dev/tasksDelete.d.ts.map +1 -0
- package/dist-esm/samples-dev/tasksDelete.js +32 -0
- package/dist-esm/samples-dev/tasksDelete.js.map +1 -0
- package/dist-esm/samples-dev/tasksGet.d.ts +2 -0
- package/dist-esm/samples-dev/tasksGet.d.ts.map +1 -0
- package/dist-esm/samples-dev/tasksGet.js +32 -0
- package/dist-esm/samples-dev/tasksGet.js.map +1 -0
- package/dist-esm/samples-dev/tasksList.d.ts +2 -0
- package/dist-esm/samples-dev/tasksList.d.ts.map +1 -0
- package/dist-esm/samples-dev/tasksList.js +46 -0
- package/dist-esm/samples-dev/tasksList.js.map +1 -0
- package/dist-esm/samples-dev/tasksUpdate.d.ts +2 -0
- package/dist-esm/samples-dev/tasksUpdate.d.ts.map +1 -0
- package/dist-esm/samples-dev/tasksUpdate.js +38 -0
- package/dist-esm/samples-dev/tasksUpdate.js.map +1 -0
- package/dist-esm/samples-dev/updateSqlMigrationService.d.ts +2 -0
- package/dist-esm/samples-dev/updateSqlMigrationService.d.ts.map +1 -0
- package/dist-esm/samples-dev/updateSqlMigrationService.js +32 -0
- package/dist-esm/samples-dev/updateSqlMigrationService.js.map +1 -0
- package/dist-esm/src/dataMigrationManagementClient.d.ts +28 -0
- package/dist-esm/src/dataMigrationManagementClient.d.ts.map +1 -0
- package/dist-esm/src/dataMigrationManagementClient.js +61 -0
- package/dist-esm/src/dataMigrationManagementClient.js.map +1 -0
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +12 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +16 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +29 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +7238 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +534 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +434 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +7803 -6204
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +36 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +272 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/databaseMigrationsSqlMi.d.ts +83 -0
- package/dist-esm/src/operations/databaseMigrationsSqlMi.d.ts.map +1 -0
- package/dist-esm/src/operations/databaseMigrationsSqlMi.js +309 -0
- package/dist-esm/src/operations/databaseMigrationsSqlMi.js.map +1 -0
- package/dist-esm/src/operations/databaseMigrationsSqlVm.d.ts +83 -0
- package/dist-esm/src/operations/databaseMigrationsSqlVm.d.ts.map +1 -0
- package/dist-esm/src/operations/databaseMigrationsSqlVm.js +309 -0
- package/dist-esm/src/operations/databaseMigrationsSqlVm.js.map +1 -0
- package/dist-esm/src/operations/files.d.ts +101 -0
- package/dist-esm/src/operations/files.d.ts.map +1 -0
- package/dist-esm/src/operations/files.js +358 -0
- package/dist-esm/src/operations/files.js.map +1 -0
- package/{esm → dist-esm/src}/operations/index.d.ts +4 -1
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/dist-esm/src/operations/index.js +19 -0
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +32 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +116 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/projects.d.ts +78 -0
- package/dist-esm/src/operations/projects.d.ts.map +1 -0
- package/dist-esm/src/operations/projects.js +279 -0
- package/dist-esm/src/operations/projects.js.map +1 -0
- package/dist-esm/src/operations/resourceSkus.d.ts +32 -0
- package/dist-esm/src/operations/resourceSkus.d.ts.map +1 -0
- package/dist-esm/src/operations/resourceSkus.js +124 -0
- package/dist-esm/src/operations/resourceSkus.js.map +1 -0
- package/dist-esm/src/operations/serviceTasks.d.ts +91 -0
- package/dist-esm/src/operations/serviceTasks.d.ts.map +1 -0
- package/dist-esm/src/operations/serviceTasks.js +316 -0
- package/dist-esm/src/operations/serviceTasks.js.map +1 -0
- package/dist-esm/src/operations/services.d.ts +217 -0
- package/dist-esm/src/operations/services.d.ts.map +1 -0
- package/dist-esm/src/operations/services.js +884 -0
- package/dist-esm/src/operations/services.js.map +1 -0
- package/dist-esm/src/operations/sqlMigrationServices.d.ts +178 -0
- package/dist-esm/src/operations/sqlMigrationServices.d.ts.map +1 -0
- package/dist-esm/src/operations/sqlMigrationServices.js +720 -0
- package/dist-esm/src/operations/sqlMigrationServices.js.map +1 -0
- package/dist-esm/src/operations/tasks.d.ts +110 -0
- package/dist-esm/src/operations/tasks.d.ts.map +1 -0
- package/dist-esm/src/operations/tasks.js +369 -0
- package/dist-esm/src/operations/tasks.js.map +1 -0
- package/dist-esm/src/operations/usages.d.ts +37 -0
- package/dist-esm/src/operations/usages.d.ts.map +1 -0
- package/dist-esm/src/operations/usages.js +134 -0
- package/dist-esm/src/operations/usages.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/databaseMigrationsSqlMi.d.ts +75 -0
- package/dist-esm/src/operationsInterfaces/databaseMigrationsSqlMi.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/databaseMigrationsSqlMi.js +9 -0
- package/dist-esm/src/operationsInterfaces/databaseMigrationsSqlMi.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/databaseMigrationsSqlVm.d.ts +75 -0
- package/dist-esm/src/operationsInterfaces/databaseMigrationsSqlVm.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/databaseMigrationsSqlVm.js +9 -0
- package/dist-esm/src/operationsInterfaces/databaseMigrationsSqlVm.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/files.d.ts +73 -0
- package/dist-esm/src/operationsInterfaces/files.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/files.js +9 -0
- package/dist-esm/src/operationsInterfaces/files.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +12 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +19 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/projects.d.ts +52 -0
- package/dist-esm/src/operationsInterfaces/projects.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/projects.js +9 -0
- package/dist-esm/src/operationsInterfaces/projects.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/resourceSkus.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/resourceSkus.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/resourceSkus.js +9 -0
- package/dist-esm/src/operationsInterfaces/resourceSkus.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/serviceTasks.d.ts +64 -0
- package/dist-esm/src/operationsInterfaces/serviceTasks.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/serviceTasks.js +9 -0
- package/dist-esm/src/operationsInterfaces/serviceTasks.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/services.d.ts +161 -0
- package/dist-esm/src/operationsInterfaces/services.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/services.js +9 -0
- package/dist-esm/src/operationsInterfaces/services.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/sqlMigrationServices.d.ts +121 -0
- package/dist-esm/src/operationsInterfaces/sqlMigrationServices.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/sqlMigrationServices.js +9 -0
- package/dist-esm/src/operationsInterfaces/sqlMigrationServices.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/tasks.d.ts +81 -0
- package/dist-esm/src/operationsInterfaces/tasks.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/tasks.js +9 -0
- package/dist-esm/src/operationsInterfaces/tasks.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/usages.d.ts +13 -0
- package/dist-esm/src/operationsInterfaces/usages.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/usages.js +9 -0
- package/dist-esm/src/operationsInterfaces/usages.js.map +1 -0
- package/dist-esm/test/sampleTest.d.ts +2 -0
- package/dist-esm/test/sampleTest.d.ts.map +1 -0
- package/dist-esm/test/sampleTest.js +40 -0
- package/dist-esm/test/sampleTest.js.map +1 -0
- package/package.json +80 -32
- package/review/arm-datamigration.api.md +4412 -0
- package/rollup.config.js +181 -30
- package/src/dataMigrationManagementClient.ts +119 -0
- package/src/index.ts +12 -0
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +6252 -7473
- package/src/models/mappers.ts +8147 -6279
- package/src/models/parameters.ts +230 -54
- package/src/operations/databaseMigrationsSqlMi.ts +453 -0
- package/src/operations/databaseMigrationsSqlVm.ts +453 -0
- package/src/operations/files.ts +283 -368
- package/src/operations/index.ts +7 -6
- package/src/operations/operations.ts +93 -85
- package/src/operations/projects.ts +222 -275
- package/src/operations/resourceSkus.ts +92 -78
- package/src/operations/serviceTasks.ts +244 -321
- package/src/operations/services.ts +887 -647
- package/src/operations/sqlMigrationServices.ts +986 -0
- package/src/operations/tasks.ts +303 -397
- package/src/operations/usages.ts +110 -85
- package/src/operationsInterfaces/databaseMigrationsSqlMi.ts +138 -0
- package/src/operationsInterfaces/databaseMigrationsSqlVm.ts +138 -0
- package/src/operationsInterfaces/files.ts +139 -0
- package/{esm/operations/index.js → src/operationsInterfaces/index.ts} +8 -7
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/projects.ts +97 -0
- package/src/operationsInterfaces/resourceSkus.ts +22 -0
- package/src/operationsInterfaces/serviceTasks.ts +116 -0
- package/src/operationsInterfaces/services.ts +272 -0
- package/src/operationsInterfaces/sqlMigrationServices.ts +223 -0
- package/src/operationsInterfaces/tasks.ts +149 -0
- package/src/operationsInterfaces/usages.ts +25 -0
- package/tsconfig.json +5 -4
- package/types/arm-datamigration.d.ts +8549 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-datamigration.js +0 -14002
- package/dist/arm-datamigration.js.map +0 -1
- package/dist/arm-datamigration.min.js +0 -1
- package/dist/arm-datamigration.min.js.map +0 -1
- package/esm/dataMigrationServiceClient.d.ts +0 -25
- package/esm/dataMigrationServiceClient.d.ts.map +0 -1
- package/esm/dataMigrationServiceClient.js +0 -40
- package/esm/dataMigrationServiceClient.js.map +0 -1
- package/esm/dataMigrationServiceClientContext.d.ts +0 -16
- package/esm/dataMigrationServiceClientContext.d.ts.map +0 -1
- package/esm/dataMigrationServiceClientContext.js +0 -56
- package/esm/dataMigrationServiceClientContext.js.map +0 -1
- package/esm/models/filesMappers.d.ts +0 -2
- package/esm/models/filesMappers.d.ts.map +0 -1
- package/esm/models/filesMappers.js +0 -9
- package/esm/models/filesMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -8920
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js +0 -8
- package/esm/models/index.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -374
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/operationsMappers.d.ts +0 -2
- package/esm/models/operationsMappers.d.ts.map +0 -1
- package/esm/models/operationsMappers.js +0 -9
- package/esm/models/operationsMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -15
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -147
- package/esm/models/parameters.js.map +0 -1
- package/esm/models/projectsMappers.d.ts +0 -2
- package/esm/models/projectsMappers.d.ts.map +0 -1
- package/esm/models/projectsMappers.js +0 -9
- package/esm/models/projectsMappers.js.map +0 -1
- package/esm/models/resourceSkusMappers.d.ts +0 -2
- package/esm/models/resourceSkusMappers.d.ts.map +0 -1
- package/esm/models/resourceSkusMappers.js +0 -9
- package/esm/models/resourceSkusMappers.js.map +0 -1
- package/esm/models/serviceTasksMappers.d.ts +0 -2
- package/esm/models/serviceTasksMappers.d.ts.map +0 -1
- package/esm/models/serviceTasksMappers.js +0 -9
- package/esm/models/serviceTasksMappers.js.map +0 -1
- package/esm/models/servicesMappers.d.ts +0 -2
- package/esm/models/servicesMappers.d.ts.map +0 -1
- package/esm/models/servicesMappers.js +0 -9
- package/esm/models/servicesMappers.js.map +0 -1
- package/esm/models/tasksMappers.d.ts +0 -2
- package/esm/models/tasksMappers.d.ts.map +0 -1
- package/esm/models/tasksMappers.js +0 -9
- package/esm/models/tasksMappers.js.map +0 -1
- package/esm/models/usagesMappers.d.ts +0 -2
- package/esm/models/usagesMappers.d.ts.map +0 -1
- package/esm/models/usagesMappers.js +0 -9
- package/esm/models/usagesMappers.js.map +0 -1
- package/esm/operations/files.d.ts +0 -235
- package/esm/operations/files.d.ts.map +0 -1
- package/esm/operations/files.js +0 -309
- package/esm/operations/files.js.map +0 -1
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/operations.d.ts +0 -48
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js +0 -77
- package/esm/operations/operations.js.map +0 -1
- package/esm/operations/projects.d.ts +0 -166
- package/esm/operations/projects.d.ts.map +0 -1
- package/esm/operations/projects.js +0 -230
- package/esm/operations/projects.js.map +0 -1
- package/esm/operations/resourceSkus.d.ts +0 -48
- package/esm/operations/resourceSkus.d.ts.map +0 -1
- package/esm/operations/resourceSkus.js +0 -80
- package/esm/operations/resourceSkus.js.map +0 -1
- package/esm/operations/serviceTasks.d.ts +0 -199
- package/esm/operations/serviceTasks.d.ts.map +0 -1
- package/esm/operations/serviceTasks.js +0 -265
- package/esm/operations/serviceTasks.js.map +0 -1
- package/esm/operations/services.d.ts +0 -350
- package/esm/operations/services.d.ts.map +0 -1
- package/esm/operations/services.js +0 -626
- package/esm/operations/services.js.map +0 -1
- package/esm/operations/tasks.d.ts +0 -246
- package/esm/operations/tasks.d.ts.map +0 -1
- package/esm/operations/tasks.js +0 -317
- package/esm/operations/tasks.js.map +0 -1
- package/esm/operations/usages.d.ts +0 -53
- package/esm/operations/usages.d.ts.map +0 -1
- package/esm/operations/usages.js +0 -82
- package/esm/operations/usages.js.map +0 -1
- package/src/dataMigrationServiceClient.ts +0 -56
- package/src/dataMigrationServiceClientContext.ts +0 -62
- package/src/models/filesMappers.ts +0 -235
- package/src/models/operationsMappers.ts +0 -16
- package/src/models/projectsMappers.ts +0 -234
- package/src/models/resourceSkusMappers.ts +0 -19
- package/src/models/serviceTasksMappers.ts +0 -234
- package/src/models/servicesMappers.ts +0 -241
- package/src/models/tasksMappers.ts +0 -234
- package/src/models/usagesMappers.ts +0 -16
package/src/operations/files.ts
CHANGED
@@ -1,373 +1,305 @@
|
|
1
1
|
/*
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
3
|
-
* Licensed under the MIT License.
|
4
|
-
* license information.
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
3
|
+
* Licensed under the MIT License.
|
5
4
|
*
|
6
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
8
|
-
* regenerated.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
9
7
|
*/
|
10
8
|
|
11
|
-
import
|
12
|
-
import
|
13
|
-
import * as
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
10
|
+
import { Files } from "../operationsInterfaces";
|
11
|
+
import * as coreClient from "@azure/core-client";
|
12
|
+
import * as Mappers from "../models/mappers";
|
14
13
|
import * as Parameters from "../models/parameters";
|
15
|
-
import {
|
14
|
+
import { DataMigrationManagementClient } from "../dataMigrationManagementClient";
|
15
|
+
import {
|
16
|
+
ProjectFile,
|
17
|
+
FilesListNextOptionalParams,
|
18
|
+
FilesListOptionalParams,
|
19
|
+
FilesListResponse,
|
20
|
+
FilesGetOptionalParams,
|
21
|
+
FilesGetResponse,
|
22
|
+
FilesCreateOrUpdateOptionalParams,
|
23
|
+
FilesCreateOrUpdateResponse,
|
24
|
+
FilesDeleteOptionalParams,
|
25
|
+
FilesUpdateOptionalParams,
|
26
|
+
FilesUpdateResponse,
|
27
|
+
FilesReadOptionalParams,
|
28
|
+
FilesReadResponse,
|
29
|
+
FilesReadWriteOptionalParams,
|
30
|
+
FilesReadWriteResponse,
|
31
|
+
FilesListNextResponse
|
32
|
+
} from "../models";
|
16
33
|
|
17
|
-
|
18
|
-
|
19
|
-
|
34
|
+
/// <reference lib="esnext.asynciterable" />
|
35
|
+
/** Class containing Files operations. */
|
36
|
+
export class FilesImpl implements Files {
|
37
|
+
private readonly client: DataMigrationManagementClient;
|
20
38
|
|
21
39
|
/**
|
22
|
-
*
|
23
|
-
* @param
|
40
|
+
* Initialize a new instance of the class Files class.
|
41
|
+
* @param client Reference to the service client
|
24
42
|
*/
|
25
|
-
constructor(client:
|
43
|
+
constructor(client: DataMigrationManagementClient) {
|
26
44
|
this.client = client;
|
27
45
|
}
|
28
46
|
|
29
47
|
/**
|
30
48
|
* The project resource is a nested resource representing a stored migration project. This method
|
31
49
|
* returns a list of files owned by a project resource.
|
32
|
-
* @summary Get files in a project
|
33
50
|
* @param groupName Name of the resource group
|
34
51
|
* @param serviceName Name of the service
|
35
52
|
* @param projectName Name of the project
|
36
|
-
* @param
|
37
|
-
* @returns Promise<Models.FilesListResponse>
|
53
|
+
* @param options The options parameters.
|
38
54
|
*/
|
39
|
-
list(
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
55
|
+
public list(
|
56
|
+
groupName: string,
|
57
|
+
serviceName: string,
|
58
|
+
projectName: string,
|
59
|
+
options?: FilesListOptionalParams
|
60
|
+
): PagedAsyncIterableIterator<ProjectFile> {
|
61
|
+
const iter = this.listPagingAll(
|
62
|
+
groupName,
|
63
|
+
serviceName,
|
64
|
+
projectName,
|
65
|
+
options
|
66
|
+
);
|
67
|
+
return {
|
68
|
+
next() {
|
69
|
+
return iter.next();
|
70
|
+
},
|
71
|
+
[Symbol.asyncIterator]() {
|
72
|
+
return this;
|
73
|
+
},
|
74
|
+
byPage: () => {
|
75
|
+
return this.listPagingPage(
|
76
|
+
groupName,
|
77
|
+
serviceName,
|
78
|
+
projectName,
|
79
|
+
options
|
80
|
+
);
|
81
|
+
}
|
82
|
+
};
|
83
|
+
}
|
84
|
+
|
85
|
+
private async *listPagingPage(
|
86
|
+
groupName: string,
|
87
|
+
serviceName: string,
|
88
|
+
projectName: string,
|
89
|
+
options?: FilesListOptionalParams
|
90
|
+
): AsyncIterableIterator<ProjectFile[]> {
|
91
|
+
let result = await this._list(groupName, serviceName, projectName, options);
|
92
|
+
yield result.value || [];
|
93
|
+
let continuationToken = result.nextLink;
|
94
|
+
while (continuationToken) {
|
95
|
+
result = await this._listNext(
|
58
96
|
groupName,
|
59
97
|
serviceName,
|
60
98
|
projectName,
|
99
|
+
continuationToken,
|
61
100
|
options
|
62
|
-
|
63
|
-
|
64
|
-
|
101
|
+
);
|
102
|
+
continuationToken = result.nextLink;
|
103
|
+
yield result.value || [];
|
104
|
+
}
|
105
|
+
}
|
106
|
+
|
107
|
+
private async *listPagingAll(
|
108
|
+
groupName: string,
|
109
|
+
serviceName: string,
|
110
|
+
projectName: string,
|
111
|
+
options?: FilesListOptionalParams
|
112
|
+
): AsyncIterableIterator<ProjectFile> {
|
113
|
+
for await (const page of this.listPagingPage(
|
114
|
+
groupName,
|
115
|
+
serviceName,
|
116
|
+
projectName,
|
117
|
+
options
|
118
|
+
)) {
|
119
|
+
yield* page;
|
120
|
+
}
|
65
121
|
}
|
66
122
|
|
67
123
|
/**
|
68
|
-
* The
|
69
|
-
*
|
70
|
-
* @summary Get file information
|
71
|
-
* @param groupName Name of the resource group
|
72
|
-
* @param serviceName Name of the service
|
73
|
-
* @param projectName Name of the project
|
74
|
-
* @param fileName Name of the File
|
75
|
-
* @param [options] The optional parameters
|
76
|
-
* @returns Promise<Models.FilesGetResponse>
|
77
|
-
*/
|
78
|
-
get(groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase): Promise<Models.FilesGetResponse>;
|
79
|
-
/**
|
124
|
+
* The project resource is a nested resource representing a stored migration project. This method
|
125
|
+
* returns a list of files owned by a project resource.
|
80
126
|
* @param groupName Name of the resource group
|
81
127
|
* @param serviceName Name of the service
|
82
128
|
* @param projectName Name of the project
|
83
|
-
* @param
|
84
|
-
* @param callback The callback
|
129
|
+
* @param options The options parameters.
|
85
130
|
*/
|
86
|
-
|
131
|
+
private _list(
|
132
|
+
groupName: string,
|
133
|
+
serviceName: string,
|
134
|
+
projectName: string,
|
135
|
+
options?: FilesListOptionalParams
|
136
|
+
): Promise<FilesListResponse> {
|
137
|
+
return this.client.sendOperationRequest(
|
138
|
+
{ groupName, serviceName, projectName, options },
|
139
|
+
listOperationSpec
|
140
|
+
);
|
141
|
+
}
|
142
|
+
|
87
143
|
/**
|
144
|
+
* The files resource is a nested, proxy-only resource representing a file stored under the project
|
145
|
+
* resource. This method retrieves information about a file.
|
88
146
|
* @param groupName Name of the resource group
|
89
147
|
* @param serviceName Name of the service
|
90
148
|
* @param projectName Name of the project
|
91
149
|
* @param fileName Name of the File
|
92
|
-
* @param options The
|
93
|
-
* @param callback The callback
|
150
|
+
* @param options The options parameters.
|
94
151
|
*/
|
95
|
-
get(
|
96
|
-
|
152
|
+
get(
|
153
|
+
groupName: string,
|
154
|
+
serviceName: string,
|
155
|
+
projectName: string,
|
156
|
+
fileName: string,
|
157
|
+
options?: FilesGetOptionalParams
|
158
|
+
): Promise<FilesGetResponse> {
|
97
159
|
return this.client.sendOperationRequest(
|
98
|
-
{
|
99
|
-
|
100
|
-
|
101
|
-
projectName,
|
102
|
-
fileName,
|
103
|
-
options
|
104
|
-
},
|
105
|
-
getOperationSpec,
|
106
|
-
callback) as Promise<Models.FilesGetResponse>;
|
160
|
+
{ groupName, serviceName, projectName, fileName, options },
|
161
|
+
getOperationSpec
|
162
|
+
);
|
107
163
|
}
|
108
164
|
|
109
165
|
/**
|
110
166
|
* The PUT method creates a new file or updates an existing one.
|
111
|
-
* @summary Create a file resource
|
112
|
-
* @param parameters Information about the file
|
113
167
|
* @param groupName Name of the resource group
|
114
168
|
* @param serviceName Name of the service
|
115
169
|
* @param projectName Name of the project
|
116
170
|
* @param fileName Name of the File
|
117
|
-
* @param [options] The optional parameters
|
118
|
-
* @returns Promise<Models.FilesCreateOrUpdateResponse>
|
119
|
-
*/
|
120
|
-
createOrUpdate(parameters: Models.ProjectFile, groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase): Promise<Models.FilesCreateOrUpdateResponse>;
|
121
|
-
/**
|
122
171
|
* @param parameters Information about the file
|
123
|
-
* @param
|
124
|
-
* @param serviceName Name of the service
|
125
|
-
* @param projectName Name of the project
|
126
|
-
* @param fileName Name of the File
|
127
|
-
* @param callback The callback
|
128
|
-
*/
|
129
|
-
createOrUpdate(parameters: Models.ProjectFile, groupName: string, serviceName: string, projectName: string, fileName: string, callback: msRest.ServiceCallback<Models.ProjectFile>): void;
|
130
|
-
/**
|
131
|
-
* @param parameters Information about the file
|
132
|
-
* @param groupName Name of the resource group
|
133
|
-
* @param serviceName Name of the service
|
134
|
-
* @param projectName Name of the project
|
135
|
-
* @param fileName Name of the File
|
136
|
-
* @param options The optional parameters
|
137
|
-
* @param callback The callback
|
172
|
+
* @param options The options parameters.
|
138
173
|
*/
|
139
|
-
createOrUpdate(
|
140
|
-
|
174
|
+
createOrUpdate(
|
175
|
+
groupName: string,
|
176
|
+
serviceName: string,
|
177
|
+
projectName: string,
|
178
|
+
fileName: string,
|
179
|
+
parameters: ProjectFile,
|
180
|
+
options?: FilesCreateOrUpdateOptionalParams
|
181
|
+
): Promise<FilesCreateOrUpdateResponse> {
|
141
182
|
return this.client.sendOperationRequest(
|
142
|
-
{
|
143
|
-
|
144
|
-
|
145
|
-
serviceName,
|
146
|
-
projectName,
|
147
|
-
fileName,
|
148
|
-
options
|
149
|
-
},
|
150
|
-
createOrUpdateOperationSpec,
|
151
|
-
callback) as Promise<Models.FilesCreateOrUpdateResponse>;
|
183
|
+
{ groupName, serviceName, projectName, fileName, parameters, options },
|
184
|
+
createOrUpdateOperationSpec
|
185
|
+
);
|
152
186
|
}
|
153
187
|
|
154
188
|
/**
|
155
189
|
* This method deletes a file.
|
156
|
-
* @summary Delete file
|
157
|
-
* @param groupName Name of the resource group
|
158
|
-
* @param serviceName Name of the service
|
159
|
-
* @param projectName Name of the project
|
160
|
-
* @param fileName Name of the File
|
161
|
-
* @param [options] The optional parameters
|
162
|
-
* @returns Promise<msRest.RestResponse>
|
163
|
-
*/
|
164
|
-
deleteMethod(groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>;
|
165
|
-
/**
|
166
190
|
* @param groupName Name of the resource group
|
167
191
|
* @param serviceName Name of the service
|
168
192
|
* @param projectName Name of the project
|
169
193
|
* @param fileName Name of the File
|
170
|
-
* @param
|
194
|
+
* @param options The options parameters.
|
171
195
|
*/
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
* @param callback The callback
|
180
|
-
*/
|
181
|
-
deleteMethod(groupName: string, serviceName: string, projectName: string, fileName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<void>): void;
|
182
|
-
deleteMethod(groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<void>, callback?: msRest.ServiceCallback<void>): Promise<msRest.RestResponse> {
|
196
|
+
delete(
|
197
|
+
groupName: string,
|
198
|
+
serviceName: string,
|
199
|
+
projectName: string,
|
200
|
+
fileName: string,
|
201
|
+
options?: FilesDeleteOptionalParams
|
202
|
+
): Promise<void> {
|
183
203
|
return this.client.sendOperationRequest(
|
184
|
-
{
|
185
|
-
|
186
|
-
|
187
|
-
projectName,
|
188
|
-
fileName,
|
189
|
-
options
|
190
|
-
},
|
191
|
-
deleteMethodOperationSpec,
|
192
|
-
callback);
|
204
|
+
{ groupName, serviceName, projectName, fileName, options },
|
205
|
+
deleteOperationSpec
|
206
|
+
);
|
193
207
|
}
|
194
208
|
|
195
209
|
/**
|
196
210
|
* This method updates an existing file.
|
197
|
-
* @summary Update a file
|
198
|
-
* @param parameters Information about the file
|
199
|
-
* @param groupName Name of the resource group
|
200
|
-
* @param serviceName Name of the service
|
201
|
-
* @param projectName Name of the project
|
202
|
-
* @param fileName Name of the File
|
203
|
-
* @param [options] The optional parameters
|
204
|
-
* @returns Promise<Models.FilesUpdateResponse>
|
205
|
-
*/
|
206
|
-
update(parameters: Models.ProjectFile, groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase): Promise<Models.FilesUpdateResponse>;
|
207
|
-
/**
|
208
|
-
* @param parameters Information about the file
|
209
211
|
* @param groupName Name of the resource group
|
210
212
|
* @param serviceName Name of the service
|
211
213
|
* @param projectName Name of the project
|
212
214
|
* @param fileName Name of the File
|
213
|
-
* @param callback The callback
|
214
|
-
*/
|
215
|
-
update(parameters: Models.ProjectFile, groupName: string, serviceName: string, projectName: string, fileName: string, callback: msRest.ServiceCallback<Models.ProjectFile>): void;
|
216
|
-
/**
|
217
215
|
* @param parameters Information about the file
|
218
|
-
* @param
|
219
|
-
* @param serviceName Name of the service
|
220
|
-
* @param projectName Name of the project
|
221
|
-
* @param fileName Name of the File
|
222
|
-
* @param options The optional parameters
|
223
|
-
* @param callback The callback
|
216
|
+
* @param options The options parameters.
|
224
217
|
*/
|
225
|
-
update(
|
226
|
-
|
218
|
+
update(
|
219
|
+
groupName: string,
|
220
|
+
serviceName: string,
|
221
|
+
projectName: string,
|
222
|
+
fileName: string,
|
223
|
+
parameters: ProjectFile,
|
224
|
+
options?: FilesUpdateOptionalParams
|
225
|
+
): Promise<FilesUpdateResponse> {
|
227
226
|
return this.client.sendOperationRequest(
|
228
|
-
{
|
229
|
-
|
230
|
-
|
231
|
-
serviceName,
|
232
|
-
projectName,
|
233
|
-
fileName,
|
234
|
-
options
|
235
|
-
},
|
236
|
-
updateOperationSpec,
|
237
|
-
callback) as Promise<Models.FilesUpdateResponse>;
|
227
|
+
{ groupName, serviceName, projectName, fileName, parameters, options },
|
228
|
+
updateOperationSpec
|
229
|
+
);
|
238
230
|
}
|
239
231
|
|
240
232
|
/**
|
241
233
|
* This method is used for requesting storage information using which contents of the file can be
|
242
234
|
* downloaded.
|
243
|
-
* @summary Request storage information for downloading the file content
|
244
|
-
* @param groupName Name of the resource group
|
245
|
-
* @param serviceName Name of the service
|
246
|
-
* @param projectName Name of the project
|
247
|
-
* @param fileName Name of the File
|
248
|
-
* @param [options] The optional parameters
|
249
|
-
* @returns Promise<Models.FilesReadResponse>
|
250
|
-
*/
|
251
|
-
read(groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase): Promise<Models.FilesReadResponse>;
|
252
|
-
/**
|
253
235
|
* @param groupName Name of the resource group
|
254
236
|
* @param serviceName Name of the service
|
255
237
|
* @param projectName Name of the project
|
256
238
|
* @param fileName Name of the File
|
257
|
-
* @param
|
239
|
+
* @param options The options parameters.
|
258
240
|
*/
|
259
|
-
read(
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
* @param callback The callback
|
267
|
-
*/
|
268
|
-
read(groupName: string, serviceName: string, projectName: string, fileName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.FileStorageInfo>): void;
|
269
|
-
read(groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.FileStorageInfo>, callback?: msRest.ServiceCallback<Models.FileStorageInfo>): Promise<Models.FilesReadResponse> {
|
241
|
+
read(
|
242
|
+
groupName: string,
|
243
|
+
serviceName: string,
|
244
|
+
projectName: string,
|
245
|
+
fileName: string,
|
246
|
+
options?: FilesReadOptionalParams
|
247
|
+
): Promise<FilesReadResponse> {
|
270
248
|
return this.client.sendOperationRequest(
|
271
|
-
{
|
272
|
-
|
273
|
-
|
274
|
-
projectName,
|
275
|
-
fileName,
|
276
|
-
options
|
277
|
-
},
|
278
|
-
readOperationSpec,
|
279
|
-
callback) as Promise<Models.FilesReadResponse>;
|
249
|
+
{ groupName, serviceName, projectName, fileName, options },
|
250
|
+
readOperationSpec
|
251
|
+
);
|
280
252
|
}
|
281
253
|
|
282
254
|
/**
|
283
255
|
* This method is used for requesting information for reading and writing the file content.
|
284
|
-
* @summary Request information for reading and writing file content.
|
285
256
|
* @param groupName Name of the resource group
|
286
257
|
* @param serviceName Name of the service
|
287
258
|
* @param projectName Name of the project
|
288
259
|
* @param fileName Name of the File
|
289
|
-
* @param
|
290
|
-
* @returns Promise<Models.FilesReadWriteResponse>
|
260
|
+
* @param options The options parameters.
|
291
261
|
*/
|
292
|
-
readWrite(
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
*/
|
300
|
-
readWrite(groupName: string, serviceName: string, projectName: string, fileName: string, callback: msRest.ServiceCallback<Models.FileStorageInfo>): void;
|
301
|
-
/**
|
302
|
-
* @param groupName Name of the resource group
|
303
|
-
* @param serviceName Name of the service
|
304
|
-
* @param projectName Name of the project
|
305
|
-
* @param fileName Name of the File
|
306
|
-
* @param options The optional parameters
|
307
|
-
* @param callback The callback
|
308
|
-
*/
|
309
|
-
readWrite(groupName: string, serviceName: string, projectName: string, fileName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.FileStorageInfo>): void;
|
310
|
-
readWrite(groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.FileStorageInfo>, callback?: msRest.ServiceCallback<Models.FileStorageInfo>): Promise<Models.FilesReadWriteResponse> {
|
262
|
+
readWrite(
|
263
|
+
groupName: string,
|
264
|
+
serviceName: string,
|
265
|
+
projectName: string,
|
266
|
+
fileName: string,
|
267
|
+
options?: FilesReadWriteOptionalParams
|
268
|
+
): Promise<FilesReadWriteResponse> {
|
311
269
|
return this.client.sendOperationRequest(
|
312
|
-
{
|
313
|
-
|
314
|
-
|
315
|
-
projectName,
|
316
|
-
fileName,
|
317
|
-
options
|
318
|
-
},
|
319
|
-
readWriteOperationSpec,
|
320
|
-
callback) as Promise<Models.FilesReadWriteResponse>;
|
270
|
+
{ groupName, serviceName, projectName, fileName, options },
|
271
|
+
readWriteOperationSpec
|
272
|
+
);
|
321
273
|
}
|
322
274
|
|
323
275
|
/**
|
324
|
-
*
|
325
|
-
*
|
326
|
-
* @
|
327
|
-
* @param
|
328
|
-
* @param
|
329
|
-
* @
|
330
|
-
*/
|
331
|
-
listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.FilesListNextResponse>;
|
332
|
-
/**
|
333
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
334
|
-
* @param callback The callback
|
335
|
-
*/
|
336
|
-
listNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.FileList>): void;
|
337
|
-
/**
|
338
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
339
|
-
* @param options The optional parameters
|
340
|
-
* @param callback The callback
|
276
|
+
* ListNext
|
277
|
+
* @param groupName Name of the resource group
|
278
|
+
* @param serviceName Name of the service
|
279
|
+
* @param projectName Name of the project
|
280
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
281
|
+
* @param options The options parameters.
|
341
282
|
*/
|
342
|
-
|
343
|
-
|
283
|
+
private _listNext(
|
284
|
+
groupName: string,
|
285
|
+
serviceName: string,
|
286
|
+
projectName: string,
|
287
|
+
nextLink: string,
|
288
|
+
options?: FilesListNextOptionalParams
|
289
|
+
): Promise<FilesListNextResponse> {
|
344
290
|
return this.client.sendOperationRequest(
|
345
|
-
{
|
346
|
-
|
347
|
-
|
348
|
-
},
|
349
|
-
listNextOperationSpec,
|
350
|
-
callback) as Promise<Models.FilesListNextResponse>;
|
291
|
+
{ groupName, serviceName, projectName, nextLink, options },
|
292
|
+
listNextOperationSpec
|
293
|
+
);
|
351
294
|
}
|
352
295
|
}
|
353
|
-
|
354
296
|
// Operation Specifications
|
355
|
-
const serializer =
|
356
|
-
|
297
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
298
|
+
|
299
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
300
|
+
path:
|
301
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/files",
|
357
302
|
httpMethod: "GET",
|
358
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/files",
|
359
|
-
urlParameters: [
|
360
|
-
Parameters.subscriptionId,
|
361
|
-
Parameters.groupName,
|
362
|
-
Parameters.serviceName,
|
363
|
-
Parameters.projectName
|
364
|
-
],
|
365
|
-
queryParameters: [
|
366
|
-
Parameters.apiVersion
|
367
|
-
],
|
368
|
-
headerParameters: [
|
369
|
-
Parameters.acceptLanguage
|
370
|
-
],
|
371
303
|
responses: {
|
372
304
|
200: {
|
373
305
|
bodyMapper: Mappers.FileList
|
@@ -376,25 +308,21 @@ const listOperationSpec: msRest.OperationSpec = {
|
|
376
308
|
bodyMapper: Mappers.ApiError
|
377
309
|
}
|
378
310
|
},
|
379
|
-
|
380
|
-
};
|
381
|
-
|
382
|
-
const getOperationSpec: msRest.OperationSpec = {
|
383
|
-
httpMethod: "GET",
|
384
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/files/{fileName}",
|
311
|
+
queryParameters: [Parameters.apiVersion],
|
385
312
|
urlParameters: [
|
313
|
+
Parameters.$host,
|
386
314
|
Parameters.subscriptionId,
|
387
315
|
Parameters.groupName,
|
388
316
|
Parameters.serviceName,
|
389
|
-
Parameters.projectName
|
390
|
-
Parameters.fileName
|
391
|
-
],
|
392
|
-
queryParameters: [
|
393
|
-
Parameters.apiVersion
|
394
|
-
],
|
395
|
-
headerParameters: [
|
396
|
-
Parameters.acceptLanguage
|
317
|
+
Parameters.projectName
|
397
318
|
],
|
319
|
+
headerParameters: [Parameters.accept],
|
320
|
+
serializer
|
321
|
+
};
|
322
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
323
|
+
path:
|
324
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/files/{fileName}",
|
325
|
+
httpMethod: "GET",
|
398
326
|
responses: {
|
399
327
|
200: {
|
400
328
|
bodyMapper: Mappers.ProjectFile
|
@@ -403,32 +331,22 @@ const getOperationSpec: msRest.OperationSpec = {
|
|
403
331
|
bodyMapper: Mappers.ApiError
|
404
332
|
}
|
405
333
|
},
|
406
|
-
|
407
|
-
};
|
408
|
-
|
409
|
-
const createOrUpdateOperationSpec: msRest.OperationSpec = {
|
410
|
-
httpMethod: "PUT",
|
411
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/files/{fileName}",
|
334
|
+
queryParameters: [Parameters.apiVersion],
|
412
335
|
urlParameters: [
|
336
|
+
Parameters.$host,
|
413
337
|
Parameters.subscriptionId,
|
414
338
|
Parameters.groupName,
|
415
339
|
Parameters.serviceName,
|
416
340
|
Parameters.projectName,
|
417
341
|
Parameters.fileName
|
418
342
|
],
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
parameterPath: "parameters",
|
427
|
-
mapper: {
|
428
|
-
...Mappers.ProjectFile,
|
429
|
-
required: true
|
430
|
-
}
|
431
|
-
},
|
343
|
+
headerParameters: [Parameters.accept],
|
344
|
+
serializer
|
345
|
+
};
|
346
|
+
const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
347
|
+
path:
|
348
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/files/{fileName}",
|
349
|
+
httpMethod: "PUT",
|
432
350
|
responses: {
|
433
351
|
200: {
|
434
352
|
bodyMapper: Mappers.ProjectFile
|
@@ -440,25 +358,24 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = {
|
|
440
358
|
bodyMapper: Mappers.ApiError
|
441
359
|
}
|
442
360
|
},
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
const deleteMethodOperationSpec: msRest.OperationSpec = {
|
447
|
-
httpMethod: "DELETE",
|
448
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/files/{fileName}",
|
361
|
+
requestBody: Parameters.parameters12,
|
362
|
+
queryParameters: [Parameters.apiVersion],
|
449
363
|
urlParameters: [
|
364
|
+
Parameters.$host,
|
450
365
|
Parameters.subscriptionId,
|
451
366
|
Parameters.groupName,
|
452
367
|
Parameters.serviceName,
|
453
368
|
Parameters.projectName,
|
454
369
|
Parameters.fileName
|
455
370
|
],
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
|
371
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
372
|
+
mediaType: "json",
|
373
|
+
serializer
|
374
|
+
};
|
375
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
376
|
+
path:
|
377
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/files/{fileName}",
|
378
|
+
httpMethod: "DELETE",
|
462
379
|
responses: {
|
463
380
|
200: {},
|
464
381
|
204: {},
|
@@ -466,32 +383,22 @@ const deleteMethodOperationSpec: msRest.OperationSpec = {
|
|
466
383
|
bodyMapper: Mappers.ApiError
|
467
384
|
}
|
468
385
|
},
|
469
|
-
|
470
|
-
};
|
471
|
-
|
472
|
-
const updateOperationSpec: msRest.OperationSpec = {
|
473
|
-
httpMethod: "PATCH",
|
474
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/files/{fileName}",
|
386
|
+
queryParameters: [Parameters.apiVersion],
|
475
387
|
urlParameters: [
|
388
|
+
Parameters.$host,
|
476
389
|
Parameters.subscriptionId,
|
477
390
|
Parameters.groupName,
|
478
391
|
Parameters.serviceName,
|
479
392
|
Parameters.projectName,
|
480
393
|
Parameters.fileName
|
481
394
|
],
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
parameterPath: "parameters",
|
490
|
-
mapper: {
|
491
|
-
...Mappers.ProjectFile,
|
492
|
-
required: true
|
493
|
-
}
|
494
|
-
},
|
395
|
+
headerParameters: [Parameters.accept],
|
396
|
+
serializer
|
397
|
+
};
|
398
|
+
const updateOperationSpec: coreClient.OperationSpec = {
|
399
|
+
path:
|
400
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/files/{fileName}",
|
401
|
+
httpMethod: "PATCH",
|
495
402
|
responses: {
|
496
403
|
200: {
|
497
404
|
bodyMapper: Mappers.ProjectFile
|
@@ -500,25 +407,24 @@ const updateOperationSpec: msRest.OperationSpec = {
|
|
500
407
|
bodyMapper: Mappers.ApiError
|
501
408
|
}
|
502
409
|
},
|
503
|
-
|
504
|
-
|
505
|
-
|
506
|
-
const readOperationSpec: msRest.OperationSpec = {
|
507
|
-
httpMethod: "POST",
|
508
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/files/{fileName}/read",
|
410
|
+
requestBody: Parameters.parameters12,
|
411
|
+
queryParameters: [Parameters.apiVersion],
|
509
412
|
urlParameters: [
|
413
|
+
Parameters.$host,
|
510
414
|
Parameters.subscriptionId,
|
511
415
|
Parameters.groupName,
|
512
416
|
Parameters.serviceName,
|
513
417
|
Parameters.projectName,
|
514
418
|
Parameters.fileName
|
515
419
|
],
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
|
520
|
-
|
521
|
-
|
420
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
421
|
+
mediaType: "json",
|
422
|
+
serializer
|
423
|
+
};
|
424
|
+
const readOperationSpec: coreClient.OperationSpec = {
|
425
|
+
path:
|
426
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/files/{fileName}/read",
|
427
|
+
httpMethod: "POST",
|
522
428
|
responses: {
|
523
429
|
200: {
|
524
430
|
bodyMapper: Mappers.FileStorageInfo
|
@@ -527,25 +433,22 @@ const readOperationSpec: msRest.OperationSpec = {
|
|
527
433
|
bodyMapper: Mappers.ApiError
|
528
434
|
}
|
529
435
|
},
|
530
|
-
|
531
|
-
};
|
532
|
-
|
533
|
-
const readWriteOperationSpec: msRest.OperationSpec = {
|
534
|
-
httpMethod: "POST",
|
535
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/files/{fileName}/readwrite",
|
436
|
+
queryParameters: [Parameters.apiVersion],
|
536
437
|
urlParameters: [
|
438
|
+
Parameters.$host,
|
537
439
|
Parameters.subscriptionId,
|
538
440
|
Parameters.groupName,
|
539
441
|
Parameters.serviceName,
|
540
442
|
Parameters.projectName,
|
541
443
|
Parameters.fileName
|
542
444
|
],
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
|
445
|
+
headerParameters: [Parameters.accept],
|
446
|
+
serializer
|
447
|
+
};
|
448
|
+
const readWriteOperationSpec: coreClient.OperationSpec = {
|
449
|
+
path:
|
450
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/files/{fileName}/readwrite",
|
451
|
+
httpMethod: "POST",
|
549
452
|
responses: {
|
550
453
|
200: {
|
551
454
|
bodyMapper: Mappers.FileStorageInfo
|
@@ -554,19 +457,21 @@ const readWriteOperationSpec: msRest.OperationSpec = {
|
|
554
457
|
bodyMapper: Mappers.ApiError
|
555
458
|
}
|
556
459
|
},
|
460
|
+
queryParameters: [Parameters.apiVersion],
|
461
|
+
urlParameters: [
|
462
|
+
Parameters.$host,
|
463
|
+
Parameters.subscriptionId,
|
464
|
+
Parameters.groupName,
|
465
|
+
Parameters.serviceName,
|
466
|
+
Parameters.projectName,
|
467
|
+
Parameters.fileName
|
468
|
+
],
|
469
|
+
headerParameters: [Parameters.accept],
|
557
470
|
serializer
|
558
471
|
};
|
559
|
-
|
560
|
-
const listNextOperationSpec: msRest.OperationSpec = {
|
561
|
-
httpMethod: "GET",
|
562
|
-
baseUrl: "https://management.azure.com",
|
472
|
+
const listNextOperationSpec: coreClient.OperationSpec = {
|
563
473
|
path: "{nextLink}",
|
564
|
-
|
565
|
-
Parameters.nextPageLink
|
566
|
-
],
|
567
|
-
headerParameters: [
|
568
|
-
Parameters.acceptLanguage
|
569
|
-
],
|
474
|
+
httpMethod: "GET",
|
570
475
|
responses: {
|
571
476
|
200: {
|
572
477
|
bodyMapper: Mappers.FileList
|
@@ -575,5 +480,15 @@ const listNextOperationSpec: msRest.OperationSpec = {
|
|
575
480
|
bodyMapper: Mappers.ApiError
|
576
481
|
}
|
577
482
|
},
|
483
|
+
queryParameters: [Parameters.apiVersion],
|
484
|
+
urlParameters: [
|
485
|
+
Parameters.$host,
|
486
|
+
Parameters.subscriptionId,
|
487
|
+
Parameters.nextLink,
|
488
|
+
Parameters.groupName,
|
489
|
+
Parameters.serviceName,
|
490
|
+
Parameters.projectName
|
491
|
+
],
|
492
|
+
headerParameters: [Parameters.accept],
|
578
493
|
serializer
|
579
494
|
};
|