@azure/arm-datamigration 3.0.0-alpha.20250723.2 → 3.0.0-alpha.20250804.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (154) hide show
  1. package/dist/browser/dataMigrationManagementClient.js +28 -5
  2. package/dist/browser/dataMigrationManagementClient.js.map +1 -1
  3. package/dist/browser/lroImpl.js +7 -3
  4. package/dist/browser/lroImpl.js.map +1 -1
  5. package/dist/browser/models/mappers.js +1601 -737
  6. package/dist/browser/models/mappers.js.map +1 -1
  7. package/dist/browser/operations/databaseMigrationsMongoToCosmosDbRUMongo.js +45 -52
  8. package/dist/browser/operations/databaseMigrationsMongoToCosmosDbRUMongo.js.map +1 -1
  9. package/dist/browser/operations/databaseMigrationsMongoToCosmosDbvCoreMongo.js +45 -52
  10. package/dist/browser/operations/databaseMigrationsMongoToCosmosDbvCoreMongo.js.map +1 -1
  11. package/dist/browser/operations/databaseMigrationsSqlDb.js +34 -18
  12. package/dist/browser/operations/databaseMigrationsSqlDb.js.map +1 -1
  13. package/dist/browser/operations/databaseMigrationsSqlMi.js +34 -18
  14. package/dist/browser/operations/databaseMigrationsSqlMi.js.map +1 -1
  15. package/dist/browser/operations/databaseMigrationsSqlVm.js +34 -18
  16. package/dist/browser/operations/databaseMigrationsSqlVm.js.map +1 -1
  17. package/dist/browser/operations/files.js +23 -40
  18. package/dist/browser/operations/files.js.map +1 -1
  19. package/dist/browser/operations/migrationServices.js +100 -136
  20. package/dist/browser/operations/migrationServices.js.map +1 -1
  21. package/dist/browser/operations/operations.js +23 -40
  22. package/dist/browser/operations/operations.js.map +1 -1
  23. package/dist/browser/operations/projects.js +23 -40
  24. package/dist/browser/operations/projects.js.map +1 -1
  25. package/dist/browser/operations/resourceSkus.js +23 -40
  26. package/dist/browser/operations/resourceSkus.js.map +1 -1
  27. package/dist/browser/operations/serviceTasks.js +23 -40
  28. package/dist/browser/operations/serviceTasks.js.map +1 -1
  29. package/dist/browser/operations/services.js +122 -148
  30. package/dist/browser/operations/services.js.map +1 -1
  31. package/dist/browser/operations/sqlMigrationServices.js +100 -136
  32. package/dist/browser/operations/sqlMigrationServices.js.map +1 -1
  33. package/dist/browser/operations/tasks.js +23 -40
  34. package/dist/browser/operations/tasks.js.map +1 -1
  35. package/dist/browser/operations/usages.js +23 -40
  36. package/dist/browser/operations/usages.js.map +1 -1
  37. package/dist/browser/pagingHelper.js +2 -4
  38. package/dist/browser/pagingHelper.js.map +1 -1
  39. package/dist/commonjs/dataMigrationManagementClient.js +28 -5
  40. package/dist/commonjs/dataMigrationManagementClient.js.map +1 -1
  41. package/dist/commonjs/lroImpl.js +7 -3
  42. package/dist/commonjs/lroImpl.js.map +1 -1
  43. package/dist/commonjs/models/mappers.js +1601 -737
  44. package/dist/commonjs/models/mappers.js.map +1 -1
  45. package/dist/commonjs/operations/databaseMigrationsMongoToCosmosDbRUMongo.js +45 -51
  46. package/dist/commonjs/operations/databaseMigrationsMongoToCosmosDbRUMongo.js.map +1 -1
  47. package/dist/commonjs/operations/databaseMigrationsMongoToCosmosDbvCoreMongo.js +45 -51
  48. package/dist/commonjs/operations/databaseMigrationsMongoToCosmosDbvCoreMongo.js.map +1 -1
  49. package/dist/commonjs/operations/databaseMigrationsSqlDb.js +34 -18
  50. package/dist/commonjs/operations/databaseMigrationsSqlDb.js.map +1 -1
  51. package/dist/commonjs/operations/databaseMigrationsSqlMi.js +34 -18
  52. package/dist/commonjs/operations/databaseMigrationsSqlMi.js.map +1 -1
  53. package/dist/commonjs/operations/databaseMigrationsSqlVm.js +34 -18
  54. package/dist/commonjs/operations/databaseMigrationsSqlVm.js.map +1 -1
  55. package/dist/commonjs/operations/files.js +23 -39
  56. package/dist/commonjs/operations/files.js.map +1 -1
  57. package/dist/commonjs/operations/migrationServices.js +100 -135
  58. package/dist/commonjs/operations/migrationServices.js.map +1 -1
  59. package/dist/commonjs/operations/operations.js +23 -39
  60. package/dist/commonjs/operations/operations.js.map +1 -1
  61. package/dist/commonjs/operations/projects.js +23 -39
  62. package/dist/commonjs/operations/projects.js.map +1 -1
  63. package/dist/commonjs/operations/resourceSkus.js +23 -39
  64. package/dist/commonjs/operations/resourceSkus.js.map +1 -1
  65. package/dist/commonjs/operations/serviceTasks.js +23 -39
  66. package/dist/commonjs/operations/serviceTasks.js.map +1 -1
  67. package/dist/commonjs/operations/services.js +122 -147
  68. package/dist/commonjs/operations/services.js.map +1 -1
  69. package/dist/commonjs/operations/sqlMigrationServices.js +100 -135
  70. package/dist/commonjs/operations/sqlMigrationServices.js.map +1 -1
  71. package/dist/commonjs/operations/tasks.js +23 -39
  72. package/dist/commonjs/operations/tasks.js.map +1 -1
  73. package/dist/commonjs/operations/usages.js +23 -39
  74. package/dist/commonjs/operations/usages.js.map +1 -1
  75. package/dist/commonjs/pagingHelper.js +2 -4
  76. package/dist/commonjs/pagingHelper.js.map +1 -1
  77. package/dist/commonjs/tsdoc-metadata.json +1 -1
  78. package/dist/esm/dataMigrationManagementClient.js +28 -5
  79. package/dist/esm/dataMigrationManagementClient.js.map +1 -1
  80. package/dist/esm/lroImpl.js +7 -3
  81. package/dist/esm/lroImpl.js.map +1 -1
  82. package/dist/esm/models/mappers.js +1601 -737
  83. package/dist/esm/models/mappers.js.map +1 -1
  84. package/dist/esm/operations/databaseMigrationsMongoToCosmosDbRUMongo.js +45 -52
  85. package/dist/esm/operations/databaseMigrationsMongoToCosmosDbRUMongo.js.map +1 -1
  86. package/dist/esm/operations/databaseMigrationsMongoToCosmosDbvCoreMongo.js +45 -52
  87. package/dist/esm/operations/databaseMigrationsMongoToCosmosDbvCoreMongo.js.map +1 -1
  88. package/dist/esm/operations/databaseMigrationsSqlDb.js +34 -18
  89. package/dist/esm/operations/databaseMigrationsSqlDb.js.map +1 -1
  90. package/dist/esm/operations/databaseMigrationsSqlMi.js +34 -18
  91. package/dist/esm/operations/databaseMigrationsSqlMi.js.map +1 -1
  92. package/dist/esm/operations/databaseMigrationsSqlVm.js +34 -18
  93. package/dist/esm/operations/databaseMigrationsSqlVm.js.map +1 -1
  94. package/dist/esm/operations/files.js +23 -40
  95. package/dist/esm/operations/files.js.map +1 -1
  96. package/dist/esm/operations/migrationServices.js +100 -136
  97. package/dist/esm/operations/migrationServices.js.map +1 -1
  98. package/dist/esm/operations/operations.js +23 -40
  99. package/dist/esm/operations/operations.js.map +1 -1
  100. package/dist/esm/operations/projects.js +23 -40
  101. package/dist/esm/operations/projects.js.map +1 -1
  102. package/dist/esm/operations/resourceSkus.js +23 -40
  103. package/dist/esm/operations/resourceSkus.js.map +1 -1
  104. package/dist/esm/operations/serviceTasks.js +23 -40
  105. package/dist/esm/operations/serviceTasks.js.map +1 -1
  106. package/dist/esm/operations/services.js +122 -148
  107. package/dist/esm/operations/services.js.map +1 -1
  108. package/dist/esm/operations/sqlMigrationServices.js +100 -136
  109. package/dist/esm/operations/sqlMigrationServices.js.map +1 -1
  110. package/dist/esm/operations/tasks.js +23 -40
  111. package/dist/esm/operations/tasks.js.map +1 -1
  112. package/dist/esm/operations/usages.js +23 -40
  113. package/dist/esm/operations/usages.js.map +1 -1
  114. package/dist/esm/pagingHelper.js +2 -4
  115. package/dist/esm/pagingHelper.js.map +1 -1
  116. package/dist/react-native/dataMigrationManagementClient.js +28 -5
  117. package/dist/react-native/dataMigrationManagementClient.js.map +1 -1
  118. package/dist/react-native/lroImpl.js +7 -3
  119. package/dist/react-native/lroImpl.js.map +1 -1
  120. package/dist/react-native/models/mappers.js +1601 -737
  121. package/dist/react-native/models/mappers.js.map +1 -1
  122. package/dist/react-native/operations/databaseMigrationsMongoToCosmosDbRUMongo.js +45 -52
  123. package/dist/react-native/operations/databaseMigrationsMongoToCosmosDbRUMongo.js.map +1 -1
  124. package/dist/react-native/operations/databaseMigrationsMongoToCosmosDbvCoreMongo.js +45 -52
  125. package/dist/react-native/operations/databaseMigrationsMongoToCosmosDbvCoreMongo.js.map +1 -1
  126. package/dist/react-native/operations/databaseMigrationsSqlDb.js +34 -18
  127. package/dist/react-native/operations/databaseMigrationsSqlDb.js.map +1 -1
  128. package/dist/react-native/operations/databaseMigrationsSqlMi.js +34 -18
  129. package/dist/react-native/operations/databaseMigrationsSqlMi.js.map +1 -1
  130. package/dist/react-native/operations/databaseMigrationsSqlVm.js +34 -18
  131. package/dist/react-native/operations/databaseMigrationsSqlVm.js.map +1 -1
  132. package/dist/react-native/operations/files.js +23 -40
  133. package/dist/react-native/operations/files.js.map +1 -1
  134. package/dist/react-native/operations/migrationServices.js +100 -136
  135. package/dist/react-native/operations/migrationServices.js.map +1 -1
  136. package/dist/react-native/operations/operations.js +23 -40
  137. package/dist/react-native/operations/operations.js.map +1 -1
  138. package/dist/react-native/operations/projects.js +23 -40
  139. package/dist/react-native/operations/projects.js.map +1 -1
  140. package/dist/react-native/operations/resourceSkus.js +23 -40
  141. package/dist/react-native/operations/resourceSkus.js.map +1 -1
  142. package/dist/react-native/operations/serviceTasks.js +23 -40
  143. package/dist/react-native/operations/serviceTasks.js.map +1 -1
  144. package/dist/react-native/operations/services.js +122 -148
  145. package/dist/react-native/operations/services.js.map +1 -1
  146. package/dist/react-native/operations/sqlMigrationServices.js +100 -136
  147. package/dist/react-native/operations/sqlMigrationServices.js.map +1 -1
  148. package/dist/react-native/operations/tasks.js +23 -40
  149. package/dist/react-native/operations/tasks.js.map +1 -1
  150. package/dist/react-native/operations/usages.js +23 -40
  151. package/dist/react-native/operations/usages.js.map +1 -1
  152. package/dist/react-native/pagingHelper.js +2 -4
  153. package/dist/react-native/pagingHelper.js.map +1 -1
  154. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"serviceTasks.js","sourceRoot":"","sources":["../../../src/operations/serviceTasks.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KA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ft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { ServiceTasks } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { DataMigrationManagementClient } from \"../dataMigrationManagementClient.js\";\nimport {\n ProjectTask,\n ServiceTasksListNextOptionalParams,\n ServiceTasksListOptionalParams,\n ServiceTasksListResponse,\n ServiceTasksCreateOrUpdateOptionalParams,\n ServiceTasksCreateOrUpdateResponse,\n ServiceTasksGetOptionalParams,\n ServiceTasksGetResponse,\n ServiceTasksDeleteOptionalParams,\n ServiceTasksUpdateOptionalParams,\n ServiceTasksUpdateResponse,\n ServiceTasksCancelOptionalParams,\n ServiceTasksCancelResponse,\n ServiceTasksListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ServiceTasks operations. */\nexport class ServiceTasksImpl implements ServiceTasks {\n private readonly client: DataMigrationManagementClient;\n\n /**\n * Initialize a new instance of the class ServiceTasks class.\n * @param client Reference to the service client\n */\n constructor(client: DataMigrationManagementClient) {\n this.client = client;\n }\n\n /**\n * The services resource is the top-level resource that represents the Azure Database Migration Service\n * (classic). This method returns a list of service level tasks owned by a service resource. Some tasks\n * may have a status of Unknown, which indicates that an error occurred while querying the status of\n * that task.\n * @param groupName Name of the resource group\n * @param serviceName Name of the service\n * @param options The options parameters.\n */\n public list(\n groupName: string,\n serviceName: string,\n options?: ServiceTasksListOptionalParams,\n ): PagedAsyncIterableIterator<ProjectTask> {\n const iter = this.listPagingAll(groupName, serviceName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(groupName, serviceName, options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n groupName: string,\n serviceName: string,\n options?: ServiceTasksListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<ProjectTask[]> {\n let result: ServiceTasksListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(groupName, serviceName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(\n groupName,\n serviceName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n groupName: string,\n serviceName: string,\n options?: ServiceTasksListOptionalParams,\n ): AsyncIterableIterator<ProjectTask> {\n for await (const page of this.listPagingPage(\n groupName,\n serviceName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * The services resource is the top-level resource that represents the Azure Database Migration Service\n * (classic). This method returns a list of service level tasks owned by a service resource. Some tasks\n * may have a status of Unknown, which indicates that an error occurred while querying the status of\n * that task.\n * @param groupName Name of the resource group\n * @param serviceName Name of the service\n * @param options The options parameters.\n */\n private _list(\n groupName: string,\n serviceName: string,\n options?: ServiceTasksListOptionalParams,\n ): Promise<ServiceTasksListResponse> {\n return this.client.sendOperationRequest(\n { groupName, serviceName, options },\n listOperationSpec,\n );\n }\n\n /**\n * The service tasks resource is a nested, proxy-only resource representing work performed by a DMS\n * (classic) instance. The PUT method creates a new service task or updates an existing one, although\n * since service tasks have no mutable custom properties, there is little reason to update an existing\n * one.\n * @param groupName Name of the resource group\n * @param serviceName Name of the service\n * @param taskName Name of the Task\n * @param parameters Information about the task\n * @param options The options parameters.\n */\n createOrUpdate(\n groupName: string,\n serviceName: string,\n taskName: string,\n parameters: ProjectTask,\n options?: ServiceTasksCreateOrUpdateOptionalParams,\n ): Promise<ServiceTasksCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { groupName, serviceName, taskName, parameters, options },\n createOrUpdateOperationSpec,\n );\n }\n\n /**\n * The service tasks resource is a nested, proxy-only resource representing work performed by a DMS\n * (classic) instance. The GET method retrieves information about a service task.\n * @param groupName Name of the resource group\n * @param serviceName Name of the service\n * @param taskName Name of the Task\n * @param options The options parameters.\n */\n get(\n groupName: string,\n serviceName: string,\n taskName: string,\n options?: ServiceTasksGetOptionalParams,\n ): Promise<ServiceTasksGetResponse> {\n return this.client.sendOperationRequest(\n { groupName, serviceName, taskName, options },\n getOperationSpec,\n );\n }\n\n /**\n * The service tasks resource is a nested, proxy-only resource representing work performed by a DMS\n * (classic) instance. The DELETE method deletes a service task, canceling it first if it's running.\n * @param groupName Name of the resource group\n * @param serviceName Name of the service\n * @param taskName Name of the Task\n * @param options The options parameters.\n */\n delete(\n groupName: string,\n serviceName: string,\n taskName: string,\n options?: ServiceTasksDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { groupName, serviceName, taskName, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * The service tasks resource is a nested, proxy-only resource representing work performed by a DMS\n * (classic) instance. The PATCH method updates an existing service task, but since service tasks have\n * no mutable custom properties, there is little reason to do so.\n * @param groupName Name of the resource group\n * @param serviceName Name of the service\n * @param taskName Name of the Task\n * @param parameters Information about the task\n * @param options The options parameters.\n */\n update(\n groupName: string,\n serviceName: string,\n taskName: string,\n parameters: ProjectTask,\n options?: ServiceTasksUpdateOptionalParams,\n ): Promise<ServiceTasksUpdateResponse> {\n return this.client.sendOperationRequest(\n { groupName, serviceName, taskName, parameters, options },\n updateOperationSpec,\n );\n }\n\n /**\n * The service tasks resource is a nested, proxy-only resource representing work performed by a DMS\n * (classic) instance. This method cancels a service task if it's currently queued or running.\n * @param groupName Name of the resource group\n * @param serviceName Name of the service\n * @param taskName Name of the Task\n * @param options The options parameters.\n */\n cancel(\n groupName: string,\n serviceName: string,\n taskName: string,\n options?: ServiceTasksCancelOptionalParams,\n ): Promise<ServiceTasksCancelResponse> {\n return this.client.sendOperationRequest(\n { groupName, serviceName, taskName, options },\n cancelOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param groupName Name of the resource group\n * @param serviceName Name of the service\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n groupName: string,\n serviceName: string,\n nextLink: string,\n options?: ServiceTasksListNextOptionalParams,\n ): Promise<ServiceTasksListNextResponse> {\n return this.client.sendOperationRequest(\n { groupName, serviceName, nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/serviceTasks\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TaskList,\n },\n default: {\n bodyMapper: Mappers.ApiError,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.taskType],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.groupName,\n Parameters.serviceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/serviceTasks/{taskName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProjectTask,\n },\n 201: {\n bodyMapper: Mappers.ProjectTask,\n },\n default: {\n bodyMapper: Mappers.ApiError,\n },\n },\n requestBody: Parameters.parameters13,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.groupName,\n Parameters.serviceName,\n Parameters.taskName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/serviceTasks/{taskName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProjectTask,\n },\n default: {\n bodyMapper: Mappers.ApiError,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.expand],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.groupName,\n Parameters.serviceName,\n Parameters.taskName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/serviceTasks/{taskName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ApiError,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.deleteRunningTasks],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.groupName,\n Parameters.serviceName,\n Parameters.taskName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/serviceTasks/{taskName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProjectTask,\n },\n default: {\n bodyMapper: Mappers.ApiError,\n },\n },\n requestBody: Parameters.parameters13,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.groupName,\n Parameters.serviceName,\n Parameters.taskName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst cancelOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/serviceTasks/{taskName}/cancel\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProjectTask,\n },\n default: {\n bodyMapper: Mappers.ApiError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.groupName,\n Parameters.serviceName,\n Parameters.taskName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TaskList,\n },\n default: {\n bodyMapper: Mappers.ApiError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink,\n Parameters.groupName,\n Parameters.serviceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"serviceTasks.js","sourceRoot":"","sources":["../../../src/operations/serviceTasks.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAmBtD,4CAA4C;AAC5C,gDAAgD;AAChD,MAAM,OAAO,gBAAgB;IACV,MAAM,CAAgC;IAEvD;;;OAGG;IACH,YAAY,MAAqC;QAC/C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;OAQG;IACI,IAAI,CACT,SAAiB,EACjB,WAAmB,EACnB,OAAwC;QAExC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,SAAS,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;QACjE,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,C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UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,QAAQ;SAC7B;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,QAAQ;SAC7B;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,WAAW;KACvB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { ServiceTasks } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { DataMigrationManagementClient } from \"../dataMigrationManagementClient.js\";\nimport {\n ProjectTask,\n ServiceTasksListNextOptionalParams,\n ServiceTasksListOptionalParams,\n ServiceTasksListResponse,\n ServiceTasksCreateOrUpdateOptionalParams,\n ServiceTasksCreateOrUpdateResponse,\n ServiceTasksGetOptionalParams,\n ServiceTasksGetResponse,\n ServiceTasksDeleteOptionalParams,\n ServiceTasksUpdateOptionalParams,\n ServiceTasksUpdateResponse,\n ServiceTasksCancelOptionalParams,\n ServiceTasksCancelResponse,\n ServiceTasksListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ServiceTasks operations. */\nexport class ServiceTasksImpl implements ServiceTasks {\n private readonly client: DataMigrationManagementClient;\n\n /**\n * Initialize a new instance of the class ServiceTasks class.\n * @param client Reference to the service client\n */\n constructor(client: DataMigrationManagementClient) {\n this.client = client;\n }\n\n /**\n * The services resource is the top-level resource that represents the Azure Database Migration Service\n * (classic). This method returns a list of service level tasks owned by a service resource. Some tasks\n * may have a status of Unknown, which indicates that an error occurred while querying the status of\n * that task.\n * @param groupName Name of the resource group\n * @param serviceName Name of the service\n * @param options The options parameters.\n */\n public list(\n groupName: string,\n serviceName: string,\n options?: ServiceTasksListOptionalParams,\n ): PagedAsyncIterableIterator<ProjectTask> {\n const iter = this.listPagingAll(groupName, serviceName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(groupName, serviceName, options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n groupName: string,\n serviceName: string,\n options?: ServiceTasksListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<ProjectTask[]> {\n let result: ServiceTasksListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(groupName, serviceName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(\n groupName,\n serviceName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n groupName: string,\n serviceName: string,\n options?: ServiceTasksListOptionalParams,\n ): AsyncIterableIterator<ProjectTask> {\n for await (const page of this.listPagingPage(\n groupName,\n serviceName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * The services resource is the top-level resource that represents the Azure Database Migration Service\n * (classic). This method returns a list of service level tasks owned by a service resource. Some tasks\n * may have a status of Unknown, which indicates that an error occurred while querying the status of\n * that task.\n * @param groupName Name of the resource group\n * @param serviceName Name of the service\n * @param options The options parameters.\n */\n private _list(\n groupName: string,\n serviceName: string,\n options?: ServiceTasksListOptionalParams,\n ): Promise<ServiceTasksListResponse> {\n return this.client.sendOperationRequest(\n { groupName, serviceName, options },\n listOperationSpec,\n );\n }\n\n /**\n * The service tasks resource is a nested, proxy-only resource representing work performed by a DMS\n * (classic) instance. The PUT method creates a new service task or updates an existing one, although\n * since service tasks have no mutable custom properties, there is little reason to update an existing\n * one.\n * @param groupName Name of the resource group\n * @param serviceName Name of the service\n * @param taskName Name of the Task\n * @param parameters Information about the task\n * @param options The options parameters.\n */\n createOrUpdate(\n groupName: string,\n serviceName: string,\n taskName: string,\n parameters: ProjectTask,\n options?: ServiceTasksCreateOrUpdateOptionalParams,\n ): Promise<ServiceTasksCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { groupName, serviceName, taskName, parameters, options },\n createOrUpdateOperationSpec,\n );\n }\n\n /**\n * The service tasks resource is a nested, proxy-only resource representing work performed by a DMS\n * (classic) instance. The GET method retrieves information about a service task.\n * @param groupName Name of the resource group\n * @param serviceName Name of the service\n * @param taskName Name of the Task\n * @param options The options parameters.\n */\n get(\n groupName: string,\n serviceName: string,\n taskName: string,\n options?: ServiceTasksGetOptionalParams,\n ): Promise<ServiceTasksGetResponse> {\n return this.client.sendOperationRequest(\n { groupName, serviceName, taskName, options },\n getOperationSpec,\n );\n }\n\n /**\n * The service tasks resource is a nested, proxy-only resource representing work performed by a DMS\n * (classic) instance. The DELETE method deletes a service task, canceling it first if it's running.\n * @param groupName Name of the resource group\n * @param serviceName Name of the service\n * @param taskName Name of the Task\n * @param options The options parameters.\n */\n delete(\n groupName: string,\n serviceName: string,\n taskName: string,\n options?: ServiceTasksDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { groupName, serviceName, taskName, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * The service tasks resource is a nested, proxy-only resource representing work performed by a DMS\n * (classic) instance. The PATCH method updates an existing service task, but since service tasks have\n * no mutable custom properties, there is little reason to do so.\n * @param groupName Name of the resource group\n * @param serviceName Name of the service\n * @param taskName Name of the Task\n * @param parameters Information about the task\n * @param options The options parameters.\n */\n update(\n groupName: string,\n serviceName: string,\n taskName: string,\n parameters: ProjectTask,\n options?: ServiceTasksUpdateOptionalParams,\n ): Promise<ServiceTasksUpdateResponse> {\n return this.client.sendOperationRequest(\n { groupName, serviceName, taskName, parameters, options },\n updateOperationSpec,\n );\n }\n\n /**\n * The service tasks resource is a nested, proxy-only resource representing work performed by a DMS\n * (classic) instance. This method cancels a service task if it's currently queued or running.\n * @param groupName Name of the resource group\n * @param serviceName Name of the service\n * @param taskName Name of the Task\n * @param options The options parameters.\n */\n cancel(\n groupName: string,\n serviceName: string,\n taskName: string,\n options?: ServiceTasksCancelOptionalParams,\n ): Promise<ServiceTasksCancelResponse> {\n return this.client.sendOperationRequest(\n { groupName, serviceName, taskName, options },\n cancelOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param groupName Name of the resource group\n * @param serviceName Name of the service\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n groupName: string,\n serviceName: string,\n nextLink: string,\n options?: ServiceTasksListNextOptionalParams,\n ): Promise<ServiceTasksListNextResponse> {\n return this.client.sendOperationRequest(\n { groupName, serviceName, nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/serviceTasks\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TaskList,\n },\n default: {\n bodyMapper: Mappers.ApiError,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.taskType],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.groupName,\n Parameters.serviceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/serviceTasks/{taskName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProjectTask,\n },\n 201: {\n bodyMapper: Mappers.ProjectTask,\n },\n default: {\n bodyMapper: Mappers.ApiError,\n },\n },\n requestBody: Parameters.parameters13,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.groupName,\n Parameters.serviceName,\n Parameters.taskName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/serviceTasks/{taskName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProjectTask,\n },\n default: {\n bodyMapper: Mappers.ApiError,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.expand],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.groupName,\n Parameters.serviceName,\n Parameters.taskName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/serviceTasks/{taskName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ApiError,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.deleteRunningTasks],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.groupName,\n Parameters.serviceName,\n Parameters.taskName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/serviceTasks/{taskName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProjectTask,\n },\n default: {\n bodyMapper: Mappers.ApiError,\n },\n },\n requestBody: Parameters.parameters13,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.groupName,\n Parameters.serviceName,\n Parameters.taskName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst cancelOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/serviceTasks/{taskName}/cancel\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProjectTask,\n },\n default: {\n bodyMapper: Mappers.ApiError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.groupName,\n Parameters.serviceName,\n Parameters.taskName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TaskList,\n },\n default: {\n bodyMapper: Mappers.ApiError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink,\n Parameters.groupName,\n Parameters.serviceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -5,7 +5,6 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
8
  import { setContinuationToken } from "../pagingHelper.js";
10
9
  import * as coreClient from "@azure/core-client";
11
10
  import * as Mappers from "../models/mappers.js";
@@ -15,6 +14,7 @@ import { createLroSpec } from "../lroImpl.js";
15
14
  /// <reference lib="esnext.asynciterable" />
16
15
  /** Class containing Services operations. */
17
16
  export class ServicesImpl {
17
+ client;
18
18
  /**
19
19
  * Initialize a new instance of the class Services class.
20
20
  * @param client Reference to the service client
@@ -39,52 +39,35 @@ export class ServicesImpl {
39
39
  return this;
40
40
  },
41
41
  byPage: (settings) => {
42
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
42
+ if (settings?.maxPageSize) {
43
43
  throw new Error("maxPageSize is not supported by this operation.");
44
44
  }
45
45
  return this.listSkusPagingPage(groupName, serviceName, options, settings);
46
46
  },
47
47
  };
48
48
  }
49
- listSkusPagingPage(groupName, serviceName, options, settings) {
50
- return __asyncGenerator(this, arguments, function* listSkusPagingPage_1() {
51
- let result;
52
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
53
- if (!continuationToken) {
54
- result = yield __await(this._listSkus(groupName, serviceName, options));
55
- let page = result.value || [];
56
- continuationToken = result.nextLink;
57
- setContinuationToken(page, continuationToken);
58
- yield yield __await(page);
59
- }
60
- while (continuationToken) {
61
- result = yield __await(this._listSkusNext(groupName, serviceName, continuationToken, options));
62
- continuationToken = result.nextLink;
63
- let page = result.value || [];
64
- setContinuationToken(page, continuationToken);
65
- yield yield __await(page);
66
- }
67
- });
49
+ async *listSkusPagingPage(groupName, serviceName, options, settings) {
50
+ let result;
51
+ let continuationToken = settings?.continuationToken;
52
+ if (!continuationToken) {
53
+ result = await this._listSkus(groupName, serviceName, options);
54
+ let page = result.value || [];
55
+ continuationToken = result.nextLink;
56
+ setContinuationToken(page, continuationToken);
57
+ yield page;
58
+ }
59
+ while (continuationToken) {
60
+ result = await this._listSkusNext(groupName, serviceName, continuationToken, options);
61
+ continuationToken = result.nextLink;
62
+ let page = result.value || [];
63
+ setContinuationToken(page, continuationToken);
64
+ yield page;
65
+ }
68
66
  }
69
- listSkusPagingAll(groupName, serviceName, options) {
70
- return __asyncGenerator(this, arguments, function* listSkusPagingAll_1() {
71
- var _a, e_1, _b, _c;
72
- try {
73
- for (var _d = true, _e = __asyncValues(this.listSkusPagingPage(groupName, serviceName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
74
- _c = _f.value;
75
- _d = false;
76
- const page = _c;
77
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
78
- }
79
- }
80
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
81
- finally {
82
- try {
83
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
84
- }
85
- finally { if (e_1) throw e_1.error; }
86
- }
87
- });
67
+ async *listSkusPagingAll(groupName, serviceName, options) {
68
+ for await (const page of this.listSkusPagingPage(groupName, serviceName, options)) {
69
+ yield* page;
70
+ }
88
71
  }
89
72
  /**
90
73
  * The Services resource is the top-level resource that represents the Azure Database Migration Service
@@ -102,52 +85,35 @@ export class ServicesImpl {
102
85
  return this;
103
86
  },
104
87
  byPage: (settings) => {
105
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
88
+ if (settings?.maxPageSize) {
106
89
  throw new Error("maxPageSize is not supported by this operation.");
107
90
  }
108
91
  return this.listByResourceGroupPagingPage(groupName, options, settings);
109
92
  },
110
93
  };
111
94
  }
112
- listByResourceGroupPagingPage(groupName, options, settings) {
113
- return __asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
114
- let result;
115
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
116
- if (!continuationToken) {
117
- result = yield __await(this._listByResourceGroup(groupName, options));
118
- let page = result.value || [];
119
- continuationToken = result.nextLink;
120
- setContinuationToken(page, continuationToken);
121
- yield yield __await(page);
122
- }
123
- while (continuationToken) {
124
- result = yield __await(this._listByResourceGroupNext(groupName, continuationToken, options));
125
- continuationToken = result.nextLink;
126
- let page = result.value || [];
127
- setContinuationToken(page, continuationToken);
128
- yield yield __await(page);
129
- }
130
- });
95
+ async *listByResourceGroupPagingPage(groupName, options, settings) {
96
+ let result;
97
+ let continuationToken = settings?.continuationToken;
98
+ if (!continuationToken) {
99
+ result = await this._listByResourceGroup(groupName, options);
100
+ let page = result.value || [];
101
+ continuationToken = result.nextLink;
102
+ setContinuationToken(page, continuationToken);
103
+ yield page;
104
+ }
105
+ while (continuationToken) {
106
+ result = await this._listByResourceGroupNext(groupName, continuationToken, options);
107
+ continuationToken = result.nextLink;
108
+ let page = result.value || [];
109
+ setContinuationToken(page, continuationToken);
110
+ yield page;
111
+ }
131
112
  }
132
- listByResourceGroupPagingAll(groupName, options) {
133
- return __asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
134
- var _a, e_2, _b, _c;
135
- try {
136
- for (var _d = true, _e = __asyncValues(this.listByResourceGroupPagingPage(groupName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
137
- _c = _f.value;
138
- _d = false;
139
- const page = _c;
140
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
141
- }
142
- }
143
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
144
- finally {
145
- try {
146
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
147
- }
148
- finally { if (e_2) throw e_2.error; }
149
- }
150
- });
113
+ async *listByResourceGroupPagingAll(groupName, options) {
114
+ for await (const page of this.listByResourceGroupPagingPage(groupName, options)) {
115
+ yield* page;
116
+ }
151
117
  }
152
118
  /**
153
119
  * The services resource is the top-level resource that represents the Azure Database Migration Service
@@ -164,52 +130,35 @@ export class ServicesImpl {
164
130
  return this;
165
131
  },
166
132
  byPage: (settings) => {
167
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
133
+ if (settings?.maxPageSize) {
168
134
  throw new Error("maxPageSize is not supported by this operation.");
169
135
  }
170
136
  return this.listPagingPage(options, settings);
171
137
  },
172
138
  };
173
139
  }
174
- listPagingPage(options, settings) {
175
- return __asyncGenerator(this, arguments, function* listPagingPage_1() {
176
- let result;
177
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
178
- if (!continuationToken) {
179
- result = yield __await(this._list(options));
180
- let page = result.value || [];
181
- continuationToken = result.nextLink;
182
- setContinuationToken(page, continuationToken);
183
- yield yield __await(page);
184
- }
185
- while (continuationToken) {
186
- result = yield __await(this._listNext(continuationToken, options));
187
- continuationToken = result.nextLink;
188
- let page = result.value || [];
189
- setContinuationToken(page, continuationToken);
190
- yield yield __await(page);
191
- }
192
- });
140
+ async *listPagingPage(options, settings) {
141
+ let result;
142
+ let continuationToken = settings?.continuationToken;
143
+ if (!continuationToken) {
144
+ result = await this._list(options);
145
+ let page = result.value || [];
146
+ continuationToken = result.nextLink;
147
+ setContinuationToken(page, continuationToken);
148
+ yield page;
149
+ }
150
+ while (continuationToken) {
151
+ result = await this._listNext(continuationToken, options);
152
+ continuationToken = result.nextLink;
153
+ let page = result.value || [];
154
+ setContinuationToken(page, continuationToken);
155
+ yield page;
156
+ }
193
157
  }
194
- listPagingAll(options) {
195
- return __asyncGenerator(this, arguments, function* listPagingAll_1() {
196
- var _a, e_3, _b, _c;
197
- try {
198
- for (var _d = true, _e = __asyncValues(this.listPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
199
- _c = _f.value;
200
- _d = false;
201
- const page = _c;
202
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
203
- }
204
- }
205
- catch (e_3_1) { e_3 = { error: e_3_1 }; }
206
- finally {
207
- try {
208
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
209
- }
210
- finally { if (e_3) throw e_3.error; }
211
- }
212
- });
158
+ async *listPagingAll(options) {
159
+ for await (const page of this.listPagingPage(options)) {
160
+ yield* page;
161
+ }
213
162
  }
214
163
  /**
215
164
  * The services resource is the top-level resource that represents the Azure Database Migration Service
@@ -230,14 +179,19 @@ export class ServicesImpl {
230
179
  return this.client.sendOperationRequest(args, spec);
231
180
  };
232
181
  const sendOperationFn = async (args, spec) => {
233
- var _a;
234
182
  let currentRawResponse = undefined;
235
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
183
+ const providedCallback = args.options?.onResponse;
236
184
  const callback = (rawResponse, flatResponse) => {
237
185
  currentRawResponse = rawResponse;
238
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
186
+ providedCallback?.(rawResponse, flatResponse);
187
+ };
188
+ const updatedArgs = {
189
+ ...args,
190
+ options: {
191
+ ...args.options,
192
+ onResponse: callback,
193
+ },
239
194
  };
240
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
241
195
  const flatResponse = await directSendOperation(updatedArgs, spec);
242
196
  return {
243
197
  flatResponse,
@@ -254,8 +208,8 @@ export class ServicesImpl {
254
208
  spec: createOrUpdateOperationSpec,
255
209
  });
256
210
  const poller = await createHttpPoller(lro, {
257
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
258
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
211
+ restoreFrom: options?.resumeFrom,
212
+ intervalInMs: options?.updateIntervalInMs,
259
213
  });
260
214
  await poller.poll();
261
215
  return poller;
@@ -300,14 +254,19 @@ export class ServicesImpl {
300
254
  return this.client.sendOperationRequest(args, spec);
301
255
  };
302
256
  const sendOperationFn = async (args, spec) => {
303
- var _a;
304
257
  let currentRawResponse = undefined;
305
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
258
+ const providedCallback = args.options?.onResponse;
306
259
  const callback = (rawResponse, flatResponse) => {
307
260
  currentRawResponse = rawResponse;
308
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
261
+ providedCallback?.(rawResponse, flatResponse);
262
+ };
263
+ const updatedArgs = {
264
+ ...args,
265
+ options: {
266
+ ...args.options,
267
+ onResponse: callback,
268
+ },
309
269
  };
310
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
311
270
  const flatResponse = await directSendOperation(updatedArgs, spec);
312
271
  return {
313
272
  flatResponse,
@@ -324,8 +283,8 @@ export class ServicesImpl {
324
283
  spec: deleteOperationSpec,
325
284
  });
326
285
  const poller = await createHttpPoller(lro, {
327
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
328
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
286
+ restoreFrom: options?.resumeFrom,
287
+ intervalInMs: options?.updateIntervalInMs,
329
288
  });
330
289
  await poller.poll();
331
290
  return poller;
@@ -356,14 +315,19 @@ export class ServicesImpl {
356
315
  return this.client.sendOperationRequest(args, spec);
357
316
  };
358
317
  const sendOperationFn = async (args, spec) => {
359
- var _a;
360
318
  let currentRawResponse = undefined;
361
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
319
+ const providedCallback = args.options?.onResponse;
362
320
  const callback = (rawResponse, flatResponse) => {
363
321
  currentRawResponse = rawResponse;
364
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
322
+ providedCallback?.(rawResponse, flatResponse);
323
+ };
324
+ const updatedArgs = {
325
+ ...args,
326
+ options: {
327
+ ...args.options,
328
+ onResponse: callback,
329
+ },
365
330
  };
366
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
367
331
  const flatResponse = await directSendOperation(updatedArgs, spec);
368
332
  return {
369
333
  flatResponse,
@@ -380,8 +344,8 @@ export class ServicesImpl {
380
344
  spec: updateOperationSpec,
381
345
  });
382
346
  const poller = await createHttpPoller(lro, {
383
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
384
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
347
+ restoreFrom: options?.resumeFrom,
348
+ intervalInMs: options?.updateIntervalInMs,
385
349
  });
386
350
  await poller.poll();
387
351
  return poller;
@@ -423,14 +387,19 @@ export class ServicesImpl {
423
387
  return this.client.sendOperationRequest(args, spec);
424
388
  };
425
389
  const sendOperationFn = async (args, spec) => {
426
- var _a;
427
390
  let currentRawResponse = undefined;
428
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
391
+ const providedCallback = args.options?.onResponse;
429
392
  const callback = (rawResponse, flatResponse) => {
430
393
  currentRawResponse = rawResponse;
431
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
394
+ providedCallback?.(rawResponse, flatResponse);
395
+ };
396
+ const updatedArgs = {
397
+ ...args,
398
+ options: {
399
+ ...args.options,
400
+ onResponse: callback,
401
+ },
432
402
  };
433
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
434
403
  const flatResponse = await directSendOperation(updatedArgs, spec);
435
404
  return {
436
405
  flatResponse,
@@ -447,8 +416,8 @@ export class ServicesImpl {
447
416
  spec: startOperationSpec,
448
417
  });
449
418
  const poller = await createHttpPoller(lro, {
450
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
451
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
419
+ restoreFrom: options?.resumeFrom,
420
+ intervalInMs: options?.updateIntervalInMs,
452
421
  });
453
422
  await poller.poll();
454
423
  return poller;
@@ -477,14 +446,19 @@ export class ServicesImpl {
477
446
  return this.client.sendOperationRequest(args, spec);
478
447
  };
479
448
  const sendOperationFn = async (args, spec) => {
480
- var _a;
481
449
  let currentRawResponse = undefined;
482
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
450
+ const providedCallback = args.options?.onResponse;
483
451
  const callback = (rawResponse, flatResponse) => {
484
452
  currentRawResponse = rawResponse;
485
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
453
+ providedCallback?.(rawResponse, flatResponse);
454
+ };
455
+ const updatedArgs = {
456
+ ...args,
457
+ options: {
458
+ ...args.options,
459
+ onResponse: callback,
460
+ },
486
461
  };
487
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
488
462
  const flatResponse = await directSendOperation(updatedArgs, spec);
489
463
  return {
490
464
  flatResponse,
@@ -501,8 +475,8 @@ export class ServicesImpl {
501
475
  spec: stopOperationSpec,
502
476
  });
503
477
  const poller = await createHttpPoller(lro, {
504
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
505
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
478
+ restoreFrom: options?.resumeFrom,
479
+ intervalInMs: options?.updateIntervalInMs,
506
480
  });
507
481
  await poller.poll();
508
482
  return poller;