@azure/arm-migrationassessment 1.0.0-alpha.20250620.1 → 1.0.0-alpha.20250722.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 (235) hide show
  1. package/dist/browser/azureMigrateAssessmentService.js +38 -5
  2. package/dist/browser/azureMigrateAssessmentService.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 +1209 -588
  6. package/dist/browser/models/mappers.js.map +1 -1
  7. package/dist/browser/operations/assessedMachinesOperations.js +23 -40
  8. package/dist/browser/operations/assessedMachinesOperations.js.map +1 -1
  9. package/dist/browser/operations/assessedSqlDatabaseV2Operations.js +23 -40
  10. package/dist/browser/operations/assessedSqlDatabaseV2Operations.js.map +1 -1
  11. package/dist/browser/operations/assessedSqlInstanceV2Operations.js +23 -40
  12. package/dist/browser/operations/assessedSqlInstanceV2Operations.js.map +1 -1
  13. package/dist/browser/operations/assessedSqlMachinesOperations.js +23 -40
  14. package/dist/browser/operations/assessedSqlMachinesOperations.js.map +1 -1
  15. package/dist/browser/operations/assessedSqlRecommendedEntityOperations.js +23 -40
  16. package/dist/browser/operations/assessedSqlRecommendedEntityOperations.js.map +1 -1
  17. package/dist/browser/operations/assessmentOptionsOperations.js +23 -40
  18. package/dist/browser/operations/assessmentOptionsOperations.js.map +1 -1
  19. package/dist/browser/operations/assessmentProjectSummaryOperations.js +23 -40
  20. package/dist/browser/operations/assessmentProjectSummaryOperations.js.map +1 -1
  21. package/dist/browser/operations/assessmentProjectsOperations.js +67 -91
  22. package/dist/browser/operations/assessmentProjectsOperations.js.map +1 -1
  23. package/dist/browser/operations/assessmentsOperations.js +45 -52
  24. package/dist/browser/operations/assessmentsOperations.js.map +1 -1
  25. package/dist/browser/operations/avsAssessedMachinesOperations.js +23 -40
  26. package/dist/browser/operations/avsAssessedMachinesOperations.js.map +1 -1
  27. package/dist/browser/operations/avsAssessmentOptionsOperations.js +23 -40
  28. package/dist/browser/operations/avsAssessmentOptionsOperations.js.map +1 -1
  29. package/dist/browser/operations/avsAssessmentsOperations.js +45 -52
  30. package/dist/browser/operations/avsAssessmentsOperations.js.map +1 -1
  31. package/dist/browser/operations/groupsOperations.js +45 -52
  32. package/dist/browser/operations/groupsOperations.js.map +1 -1
  33. package/dist/browser/operations/hypervCollectorsOperations.js +34 -46
  34. package/dist/browser/operations/hypervCollectorsOperations.js.map +1 -1
  35. package/dist/browser/operations/importCollectorsOperations.js +34 -46
  36. package/dist/browser/operations/importCollectorsOperations.js.map +1 -1
  37. package/dist/browser/operations/machinesOperations.js +23 -40
  38. package/dist/browser/operations/machinesOperations.js.map +1 -1
  39. package/dist/browser/operations/operations.js +23 -40
  40. package/dist/browser/operations/operations.js.map +1 -1
  41. package/dist/browser/operations/privateEndpointConnectionOperations.js +34 -46
  42. package/dist/browser/operations/privateEndpointConnectionOperations.js.map +1 -1
  43. package/dist/browser/operations/privateLinkResourceOperations.js +23 -40
  44. package/dist/browser/operations/privateLinkResourceOperations.js.map +1 -1
  45. package/dist/browser/operations/serverCollectorsOperations.js +34 -46
  46. package/dist/browser/operations/serverCollectorsOperations.js.map +1 -1
  47. package/dist/browser/operations/sqlAssessmentOptionsOperations.js +23 -40
  48. package/dist/browser/operations/sqlAssessmentOptionsOperations.js.map +1 -1
  49. package/dist/browser/operations/sqlAssessmentV2Operations.js +45 -52
  50. package/dist/browser/operations/sqlAssessmentV2Operations.js.map +1 -1
  51. package/dist/browser/operations/sqlAssessmentV2SummaryOperations.js +23 -40
  52. package/dist/browser/operations/sqlAssessmentV2SummaryOperations.js.map +1 -1
  53. package/dist/browser/operations/sqlCollectorOperations.js +34 -46
  54. package/dist/browser/operations/sqlCollectorOperations.js.map +1 -1
  55. package/dist/browser/operations/vmwareCollectorsOperations.js +34 -46
  56. package/dist/browser/operations/vmwareCollectorsOperations.js.map +1 -1
  57. package/dist/browser/pagingHelper.js +2 -4
  58. package/dist/browser/pagingHelper.js.map +1 -1
  59. package/dist/commonjs/azureMigrateAssessmentService.js +38 -5
  60. package/dist/commonjs/azureMigrateAssessmentService.js.map +1 -1
  61. package/dist/commonjs/lroImpl.js +7 -3
  62. package/dist/commonjs/lroImpl.js.map +1 -1
  63. package/dist/commonjs/models/mappers.js +1209 -588
  64. package/dist/commonjs/models/mappers.js.map +1 -1
  65. package/dist/commonjs/operations/assessedMachinesOperations.js +23 -39
  66. package/dist/commonjs/operations/assessedMachinesOperations.js.map +1 -1
  67. package/dist/commonjs/operations/assessedSqlDatabaseV2Operations.js +23 -39
  68. package/dist/commonjs/operations/assessedSqlDatabaseV2Operations.js.map +1 -1
  69. package/dist/commonjs/operations/assessedSqlInstanceV2Operations.js +23 -39
  70. package/dist/commonjs/operations/assessedSqlInstanceV2Operations.js.map +1 -1
  71. package/dist/commonjs/operations/assessedSqlMachinesOperations.js +23 -39
  72. package/dist/commonjs/operations/assessedSqlMachinesOperations.js.map +1 -1
  73. package/dist/commonjs/operations/assessedSqlRecommendedEntityOperations.js +23 -39
  74. package/dist/commonjs/operations/assessedSqlRecommendedEntityOperations.js.map +1 -1
  75. package/dist/commonjs/operations/assessmentOptionsOperations.js +23 -39
  76. package/dist/commonjs/operations/assessmentOptionsOperations.js.map +1 -1
  77. package/dist/commonjs/operations/assessmentProjectSummaryOperations.js +23 -39
  78. package/dist/commonjs/operations/assessmentProjectSummaryOperations.js.map +1 -1
  79. package/dist/commonjs/operations/assessmentProjectsOperations.js +67 -90
  80. package/dist/commonjs/operations/assessmentProjectsOperations.js.map +1 -1
  81. package/dist/commonjs/operations/assessmentsOperations.js +45 -51
  82. package/dist/commonjs/operations/assessmentsOperations.js.map +1 -1
  83. package/dist/commonjs/operations/avsAssessedMachinesOperations.js +23 -39
  84. package/dist/commonjs/operations/avsAssessedMachinesOperations.js.map +1 -1
  85. package/dist/commonjs/operations/avsAssessmentOptionsOperations.js +23 -39
  86. package/dist/commonjs/operations/avsAssessmentOptionsOperations.js.map +1 -1
  87. package/dist/commonjs/operations/avsAssessmentsOperations.js +45 -51
  88. package/dist/commonjs/operations/avsAssessmentsOperations.js.map +1 -1
  89. package/dist/commonjs/operations/groupsOperations.js +45 -51
  90. package/dist/commonjs/operations/groupsOperations.js.map +1 -1
  91. package/dist/commonjs/operations/hypervCollectorsOperations.js +34 -45
  92. package/dist/commonjs/operations/hypervCollectorsOperations.js.map +1 -1
  93. package/dist/commonjs/operations/importCollectorsOperations.js +34 -45
  94. package/dist/commonjs/operations/importCollectorsOperations.js.map +1 -1
  95. package/dist/commonjs/operations/machinesOperations.js +23 -39
  96. package/dist/commonjs/operations/machinesOperations.js.map +1 -1
  97. package/dist/commonjs/operations/operations.js +23 -39
  98. package/dist/commonjs/operations/operations.js.map +1 -1
  99. package/dist/commonjs/operations/privateEndpointConnectionOperations.js +34 -45
  100. package/dist/commonjs/operations/privateEndpointConnectionOperations.js.map +1 -1
  101. package/dist/commonjs/operations/privateLinkResourceOperations.js +23 -39
  102. package/dist/commonjs/operations/privateLinkResourceOperations.js.map +1 -1
  103. package/dist/commonjs/operations/serverCollectorsOperations.js +34 -45
  104. package/dist/commonjs/operations/serverCollectorsOperations.js.map +1 -1
  105. package/dist/commonjs/operations/sqlAssessmentOptionsOperations.js +23 -39
  106. package/dist/commonjs/operations/sqlAssessmentOptionsOperations.js.map +1 -1
  107. package/dist/commonjs/operations/sqlAssessmentV2Operations.js +45 -51
  108. package/dist/commonjs/operations/sqlAssessmentV2Operations.js.map +1 -1
  109. package/dist/commonjs/operations/sqlAssessmentV2SummaryOperations.js +23 -39
  110. package/dist/commonjs/operations/sqlAssessmentV2SummaryOperations.js.map +1 -1
  111. package/dist/commonjs/operations/sqlCollectorOperations.js +34 -45
  112. package/dist/commonjs/operations/sqlCollectorOperations.js.map +1 -1
  113. package/dist/commonjs/operations/vmwareCollectorsOperations.js +34 -45
  114. package/dist/commonjs/operations/vmwareCollectorsOperations.js.map +1 -1
  115. package/dist/commonjs/pagingHelper.js +2 -4
  116. package/dist/commonjs/pagingHelper.js.map +1 -1
  117. package/dist/commonjs/tsdoc-metadata.json +11 -11
  118. package/dist/esm/azureMigrateAssessmentService.js +38 -5
  119. package/dist/esm/azureMigrateAssessmentService.js.map +1 -1
  120. package/dist/esm/lroImpl.js +7 -3
  121. package/dist/esm/lroImpl.js.map +1 -1
  122. package/dist/esm/models/mappers.js +1209 -588
  123. package/dist/esm/models/mappers.js.map +1 -1
  124. package/dist/esm/operations/assessedMachinesOperations.js +23 -40
  125. package/dist/esm/operations/assessedMachinesOperations.js.map +1 -1
  126. package/dist/esm/operations/assessedSqlDatabaseV2Operations.js +23 -40
  127. package/dist/esm/operations/assessedSqlDatabaseV2Operations.js.map +1 -1
  128. package/dist/esm/operations/assessedSqlInstanceV2Operations.js +23 -40
  129. package/dist/esm/operations/assessedSqlInstanceV2Operations.js.map +1 -1
  130. package/dist/esm/operations/assessedSqlMachinesOperations.js +23 -40
  131. package/dist/esm/operations/assessedSqlMachinesOperations.js.map +1 -1
  132. package/dist/esm/operations/assessedSqlRecommendedEntityOperations.js +23 -40
  133. package/dist/esm/operations/assessedSqlRecommendedEntityOperations.js.map +1 -1
  134. package/dist/esm/operations/assessmentOptionsOperations.js +23 -40
  135. package/dist/esm/operations/assessmentOptionsOperations.js.map +1 -1
  136. package/dist/esm/operations/assessmentProjectSummaryOperations.js +23 -40
  137. package/dist/esm/operations/assessmentProjectSummaryOperations.js.map +1 -1
  138. package/dist/esm/operations/assessmentProjectsOperations.js +67 -91
  139. package/dist/esm/operations/assessmentProjectsOperations.js.map +1 -1
  140. package/dist/esm/operations/assessmentsOperations.js +45 -52
  141. package/dist/esm/operations/assessmentsOperations.js.map +1 -1
  142. package/dist/esm/operations/avsAssessedMachinesOperations.js +23 -40
  143. package/dist/esm/operations/avsAssessedMachinesOperations.js.map +1 -1
  144. package/dist/esm/operations/avsAssessmentOptionsOperations.js +23 -40
  145. package/dist/esm/operations/avsAssessmentOptionsOperations.js.map +1 -1
  146. package/dist/esm/operations/avsAssessmentsOperations.js +45 -52
  147. package/dist/esm/operations/avsAssessmentsOperations.js.map +1 -1
  148. package/dist/esm/operations/groupsOperations.js +45 -52
  149. package/dist/esm/operations/groupsOperations.js.map +1 -1
  150. package/dist/esm/operations/hypervCollectorsOperations.js +34 -46
  151. package/dist/esm/operations/hypervCollectorsOperations.js.map +1 -1
  152. package/dist/esm/operations/importCollectorsOperations.js +34 -46
  153. package/dist/esm/operations/importCollectorsOperations.js.map +1 -1
  154. package/dist/esm/operations/machinesOperations.js +23 -40
  155. package/dist/esm/operations/machinesOperations.js.map +1 -1
  156. package/dist/esm/operations/operations.js +23 -40
  157. package/dist/esm/operations/operations.js.map +1 -1
  158. package/dist/esm/operations/privateEndpointConnectionOperations.js +34 -46
  159. package/dist/esm/operations/privateEndpointConnectionOperations.js.map +1 -1
  160. package/dist/esm/operations/privateLinkResourceOperations.js +23 -40
  161. package/dist/esm/operations/privateLinkResourceOperations.js.map +1 -1
  162. package/dist/esm/operations/serverCollectorsOperations.js +34 -46
  163. package/dist/esm/operations/serverCollectorsOperations.js.map +1 -1
  164. package/dist/esm/operations/sqlAssessmentOptionsOperations.js +23 -40
  165. package/dist/esm/operations/sqlAssessmentOptionsOperations.js.map +1 -1
  166. package/dist/esm/operations/sqlAssessmentV2Operations.js +45 -52
  167. package/dist/esm/operations/sqlAssessmentV2Operations.js.map +1 -1
  168. package/dist/esm/operations/sqlAssessmentV2SummaryOperations.js +23 -40
  169. package/dist/esm/operations/sqlAssessmentV2SummaryOperations.js.map +1 -1
  170. package/dist/esm/operations/sqlCollectorOperations.js +34 -46
  171. package/dist/esm/operations/sqlCollectorOperations.js.map +1 -1
  172. package/dist/esm/operations/vmwareCollectorsOperations.js +34 -46
  173. package/dist/esm/operations/vmwareCollectorsOperations.js.map +1 -1
  174. package/dist/esm/pagingHelper.js +2 -4
  175. package/dist/esm/pagingHelper.js.map +1 -1
  176. package/dist/react-native/azureMigrateAssessmentService.js +38 -5
  177. package/dist/react-native/azureMigrateAssessmentService.js.map +1 -1
  178. package/dist/react-native/lroImpl.js +7 -3
  179. package/dist/react-native/lroImpl.js.map +1 -1
  180. package/dist/react-native/models/mappers.js +1209 -588
  181. package/dist/react-native/models/mappers.js.map +1 -1
  182. package/dist/react-native/operations/assessedMachinesOperations.js +23 -40
  183. package/dist/react-native/operations/assessedMachinesOperations.js.map +1 -1
  184. package/dist/react-native/operations/assessedSqlDatabaseV2Operations.js +23 -40
  185. package/dist/react-native/operations/assessedSqlDatabaseV2Operations.js.map +1 -1
  186. package/dist/react-native/operations/assessedSqlInstanceV2Operations.js +23 -40
  187. package/dist/react-native/operations/assessedSqlInstanceV2Operations.js.map +1 -1
  188. package/dist/react-native/operations/assessedSqlMachinesOperations.js +23 -40
  189. package/dist/react-native/operations/assessedSqlMachinesOperations.js.map +1 -1
  190. package/dist/react-native/operations/assessedSqlRecommendedEntityOperations.js +23 -40
  191. package/dist/react-native/operations/assessedSqlRecommendedEntityOperations.js.map +1 -1
  192. package/dist/react-native/operations/assessmentOptionsOperations.js +23 -40
  193. package/dist/react-native/operations/assessmentOptionsOperations.js.map +1 -1
  194. package/dist/react-native/operations/assessmentProjectSummaryOperations.js +23 -40
  195. package/dist/react-native/operations/assessmentProjectSummaryOperations.js.map +1 -1
  196. package/dist/react-native/operations/assessmentProjectsOperations.js +67 -91
  197. package/dist/react-native/operations/assessmentProjectsOperations.js.map +1 -1
  198. package/dist/react-native/operations/assessmentsOperations.js +45 -52
  199. package/dist/react-native/operations/assessmentsOperations.js.map +1 -1
  200. package/dist/react-native/operations/avsAssessedMachinesOperations.js +23 -40
  201. package/dist/react-native/operations/avsAssessedMachinesOperations.js.map +1 -1
  202. package/dist/react-native/operations/avsAssessmentOptionsOperations.js +23 -40
  203. package/dist/react-native/operations/avsAssessmentOptionsOperations.js.map +1 -1
  204. package/dist/react-native/operations/avsAssessmentsOperations.js +45 -52
  205. package/dist/react-native/operations/avsAssessmentsOperations.js.map +1 -1
  206. package/dist/react-native/operations/groupsOperations.js +45 -52
  207. package/dist/react-native/operations/groupsOperations.js.map +1 -1
  208. package/dist/react-native/operations/hypervCollectorsOperations.js +34 -46
  209. package/dist/react-native/operations/hypervCollectorsOperations.js.map +1 -1
  210. package/dist/react-native/operations/importCollectorsOperations.js +34 -46
  211. package/dist/react-native/operations/importCollectorsOperations.js.map +1 -1
  212. package/dist/react-native/operations/machinesOperations.js +23 -40
  213. package/dist/react-native/operations/machinesOperations.js.map +1 -1
  214. package/dist/react-native/operations/operations.js +23 -40
  215. package/dist/react-native/operations/operations.js.map +1 -1
  216. package/dist/react-native/operations/privateEndpointConnectionOperations.js +34 -46
  217. package/dist/react-native/operations/privateEndpointConnectionOperations.js.map +1 -1
  218. package/dist/react-native/operations/privateLinkResourceOperations.js +23 -40
  219. package/dist/react-native/operations/privateLinkResourceOperations.js.map +1 -1
  220. package/dist/react-native/operations/serverCollectorsOperations.js +34 -46
  221. package/dist/react-native/operations/serverCollectorsOperations.js.map +1 -1
  222. package/dist/react-native/operations/sqlAssessmentOptionsOperations.js +23 -40
  223. package/dist/react-native/operations/sqlAssessmentOptionsOperations.js.map +1 -1
  224. package/dist/react-native/operations/sqlAssessmentV2Operations.js +45 -52
  225. package/dist/react-native/operations/sqlAssessmentV2Operations.js.map +1 -1
  226. package/dist/react-native/operations/sqlAssessmentV2SummaryOperations.js +23 -40
  227. package/dist/react-native/operations/sqlAssessmentV2SummaryOperations.js.map +1 -1
  228. package/dist/react-native/operations/sqlCollectorOperations.js +34 -46
  229. package/dist/react-native/operations/sqlCollectorOperations.js.map +1 -1
  230. package/dist/react-native/operations/vmwareCollectorsOperations.js +34 -46
  231. package/dist/react-native/operations/vmwareCollectorsOperations.js.map +1 -1
  232. package/dist/react-native/pagingHelper.js +2 -4
  233. package/dist/react-native/pagingHelper.js.map +1 -1
  234. package/package.json +2 -2
  235. /package/review/{arm-migrationassessment.api.md → arm-migrationassessment-node.api.md} +0 -0
@@ -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 AssessmentProjectsOperations operations. */
17
16
  export class AssessmentProjectsOperationsImpl {
17
+ client;
18
18
  /**
19
19
  * Initialize a new instance of the class AssessmentProjectsOperations class.
20
20
  * @param client Reference to the service client
@@ -36,52 +36,35 @@ export class AssessmentProjectsOperationsImpl {
36
36
  return this;
37
37
  },
38
38
  byPage: (settings) => {
39
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
39
+ if (settings?.maxPageSize) {
40
40
  throw new Error("maxPageSize is not supported by this operation.");
41
41
  }
42
42
  return this.listBySubscriptionPagingPage(options, settings);
43
43
  },
44
44
  };
45
45
  }
46
- listBySubscriptionPagingPage(options, settings) {
47
- return __asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
48
- let result;
49
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
50
- if (!continuationToken) {
51
- result = yield __await(this._listBySubscription(options));
52
- let page = result.value || [];
53
- continuationToken = result.nextLink;
54
- setContinuationToken(page, continuationToken);
55
- yield yield __await(page);
56
- }
57
- while (continuationToken) {
58
- result = yield __await(this._listBySubscriptionNext(continuationToken, options));
59
- continuationToken = result.nextLink;
60
- let page = result.value || [];
61
- setContinuationToken(page, continuationToken);
62
- yield yield __await(page);
63
- }
64
- });
46
+ async *listBySubscriptionPagingPage(options, settings) {
47
+ let result;
48
+ let continuationToken = settings?.continuationToken;
49
+ if (!continuationToken) {
50
+ result = await this._listBySubscription(options);
51
+ let page = result.value || [];
52
+ continuationToken = result.nextLink;
53
+ setContinuationToken(page, continuationToken);
54
+ yield page;
55
+ }
56
+ while (continuationToken) {
57
+ result = await this._listBySubscriptionNext(continuationToken, options);
58
+ continuationToken = result.nextLink;
59
+ let page = result.value || [];
60
+ setContinuationToken(page, continuationToken);
61
+ yield page;
62
+ }
65
63
  }
66
- listBySubscriptionPagingAll(options) {
67
- return __asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
68
- var _a, e_1, _b, _c;
69
- try {
70
- for (var _d = true, _e = __asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
71
- _c = _f.value;
72
- _d = false;
73
- const page = _c;
74
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
75
- }
76
- }
77
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
78
- finally {
79
- try {
80
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
81
- }
82
- finally { if (e_1) throw e_1.error; }
83
- }
84
- });
64
+ async *listBySubscriptionPagingAll(options) {
65
+ for await (const page of this.listBySubscriptionPagingPage(options)) {
66
+ yield* page;
67
+ }
85
68
  }
86
69
  /**
87
70
  * List AssessmentProject resources by resource group
@@ -98,52 +81,35 @@ export class AssessmentProjectsOperationsImpl {
98
81
  return this;
99
82
  },
100
83
  byPage: (settings) => {
101
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
84
+ if (settings?.maxPageSize) {
102
85
  throw new Error("maxPageSize is not supported by this operation.");
103
86
  }
104
87
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
105
88
  },
106
89
  };
107
90
  }
108
- listByResourceGroupPagingPage(resourceGroupName, options, settings) {
109
- return __asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
110
- let result;
111
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
112
- if (!continuationToken) {
113
- result = yield __await(this._listByResourceGroup(resourceGroupName, options));
114
- let page = result.value || [];
115
- continuationToken = result.nextLink;
116
- setContinuationToken(page, continuationToken);
117
- yield yield __await(page);
118
- }
119
- while (continuationToken) {
120
- result = yield __await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
121
- continuationToken = result.nextLink;
122
- let page = result.value || [];
123
- setContinuationToken(page, continuationToken);
124
- yield yield __await(page);
125
- }
126
- });
91
+ async *listByResourceGroupPagingPage(resourceGroupName, options, settings) {
92
+ let result;
93
+ let continuationToken = settings?.continuationToken;
94
+ if (!continuationToken) {
95
+ result = await this._listByResourceGroup(resourceGroupName, options);
96
+ let page = result.value || [];
97
+ continuationToken = result.nextLink;
98
+ setContinuationToken(page, continuationToken);
99
+ yield page;
100
+ }
101
+ while (continuationToken) {
102
+ result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options);
103
+ continuationToken = result.nextLink;
104
+ let page = result.value || [];
105
+ setContinuationToken(page, continuationToken);
106
+ yield page;
107
+ }
127
108
  }
128
- listByResourceGroupPagingAll(resourceGroupName, options) {
129
- return __asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
130
- var _a, e_2, _b, _c;
131
- try {
132
- for (var _d = true, _e = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
133
- _c = _f.value;
134
- _d = false;
135
- const page = _c;
136
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
137
- }
138
- }
139
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
140
- finally {
141
- try {
142
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
143
- }
144
- finally { if (e_2) throw e_2.error; }
145
- }
146
- });
109
+ async *listByResourceGroupPagingAll(resourceGroupName, options) {
110
+ for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) {
111
+ yield* page;
112
+ }
147
113
  }
148
114
  /**
149
115
  * List AssessmentProject resources by subscription ID
@@ -181,14 +147,19 @@ export class AssessmentProjectsOperationsImpl {
181
147
  return this.client.sendOperationRequest(args, spec);
182
148
  };
183
149
  const sendOperationFn = async (args, spec) => {
184
- var _a;
185
150
  let currentRawResponse = undefined;
186
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
151
+ const providedCallback = args.options?.onResponse;
187
152
  const callback = (rawResponse, flatResponse) => {
188
153
  currentRawResponse = rawResponse;
189
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
154
+ providedCallback?.(rawResponse, flatResponse);
155
+ };
156
+ const updatedArgs = {
157
+ ...args,
158
+ options: {
159
+ ...args.options,
160
+ onResponse: callback,
161
+ },
190
162
  };
191
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
192
163
  const flatResponse = await directSendOperation(updatedArgs, spec);
193
164
  return {
194
165
  flatResponse,
@@ -205,8 +176,8 @@ export class AssessmentProjectsOperationsImpl {
205
176
  spec: createOperationSpec,
206
177
  });
207
178
  const poller = await createHttpPoller(lro, {
208
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
209
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
179
+ restoreFrom: options?.resumeFrom,
180
+ intervalInMs: options?.updateIntervalInMs,
210
181
  resourceLocationConfig: "azure-async-operation",
211
182
  });
212
183
  await poller.poll();
@@ -235,14 +206,19 @@ export class AssessmentProjectsOperationsImpl {
235
206
  return this.client.sendOperationRequest(args, spec);
236
207
  };
237
208
  const sendOperationFn = async (args, spec) => {
238
- var _a;
239
209
  let currentRawResponse = undefined;
240
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
210
+ const providedCallback = args.options?.onResponse;
241
211
  const callback = (rawResponse, flatResponse) => {
242
212
  currentRawResponse = rawResponse;
243
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
213
+ providedCallback?.(rawResponse, flatResponse);
214
+ };
215
+ const updatedArgs = {
216
+ ...args,
217
+ options: {
218
+ ...args.options,
219
+ onResponse: callback,
220
+ },
244
221
  };
245
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
246
222
  const flatResponse = await directSendOperation(updatedArgs, spec);
247
223
  return {
248
224
  flatResponse,
@@ -259,8 +235,8 @@ export class AssessmentProjectsOperationsImpl {
259
235
  spec: updateOperationSpec,
260
236
  });
261
237
  const poller = await createHttpPoller(lro, {
262
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
263
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
238
+ restoreFrom: options?.resumeFrom,
239
+ intervalInMs: options?.updateIntervalInMs,
264
240
  resourceLocationConfig: "location",
265
241
  });
266
242
  await poller.poll();
@@ -1 +1 @@
1
- {"version":3,"file":"assessmentProjectsOperations.js","sourceRoot":"","sources":["../../../src/operations/assessmentProjectsOperations.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;AAEtD,OAAO,EAGL,gBAAgB,GACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAqB9C,4CAA4C;AAC5C,gEAAgE;AAChE,MAAM,OAAO,gCAAgC;IAK3C;;;OAGG;IACH,YAAY,MAAqC;QAC/C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,kBAAkB,CACvB,OAAsE;QAEtE,MAAM,IAAI,GAAG,IAAI,CAAC,2BAA2B,CAAC,OAAO,CAAC,CAAC;QACvD,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB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iB;QAC5B,UAAU,CAAC,WAAW;KACvB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,mCAAmC,GAA6B;IACpE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,2BAA2B;SAChD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;KAC1B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,oCAAoC,GAA6B;IACrE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,2BAA2B;SAChD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;KAC7B;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 { AssessmentProjectsOperations } 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 { AzureMigrateAssessmentService } from \"../azureMigrateAssessmentService.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n AssessmentProject,\n AssessmentProjectsOperationsListBySubscriptionNextOptionalParams,\n AssessmentProjectsOperationsListBySubscriptionOptionalParams,\n AssessmentProjectsOperationsListBySubscriptionResponse,\n AssessmentProjectsOperationsListByResourceGroupNextOptionalParams,\n AssessmentProjectsOperationsListByResourceGroupOptionalParams,\n AssessmentProjectsOperationsListByResourceGroupResponse,\n AssessmentProjectsOperationsGetOptionalParams,\n AssessmentProjectsOperationsGetResponse,\n AssessmentProjectsOperationsCreateOptionalParams,\n AssessmentProjectsOperationsCreateResponse,\n AssessmentProjectUpdate,\n AssessmentProjectsOperationsUpdateOptionalParams,\n AssessmentProjectsOperationsUpdateResponse,\n AssessmentProjectsOperationsDeleteOptionalParams,\n AssessmentProjectsOperationsListBySubscriptionNextResponse,\n AssessmentProjectsOperationsListByResourceGroupNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing AssessmentProjectsOperations operations. */\nexport class AssessmentProjectsOperationsImpl\n implements AssessmentProjectsOperations\n{\n private readonly client: AzureMigrateAssessmentService;\n\n /**\n * Initialize a new instance of the class AssessmentProjectsOperations class.\n * @param client Reference to the service client\n */\n constructor(client: AzureMigrateAssessmentService) {\n this.client = client;\n }\n\n /**\n * List AssessmentProject resources by subscription ID\n * @param options The options parameters.\n */\n public listBySubscription(\n options?: AssessmentProjectsOperationsListBySubscriptionOptionalParams,\n ): PagedAsyncIterableIterator<AssessmentProject> {\n const iter = this.listBySubscriptionPagingAll(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.listBySubscriptionPagingPage(options, settings);\n },\n };\n }\n\n private async *listBySubscriptionPagingPage(\n options?: AssessmentProjectsOperationsListBySubscriptionOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<AssessmentProject[]> {\n let result: AssessmentProjectsOperationsListBySubscriptionResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listBySubscription(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._listBySubscriptionNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listBySubscriptionPagingAll(\n options?: AssessmentProjectsOperationsListBySubscriptionOptionalParams,\n ): AsyncIterableIterator<AssessmentProject> {\n for await (const page of this.listBySubscriptionPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * List AssessmentProject resources by resource group\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n public listByResourceGroup(\n resourceGroupName: string,\n options?: AssessmentProjectsOperationsListByResourceGroupOptionalParams,\n ): PagedAsyncIterableIterator<AssessmentProject> {\n const iter = this.listByResourceGroupPagingAll(resourceGroupName, 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.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByResourceGroupPagingPage(\n resourceGroupName: string,\n options?: AssessmentProjectsOperationsListByResourceGroupOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<AssessmentProject[]> {\n let result: AssessmentProjectsOperationsListByResourceGroupResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByResourceGroup(resourceGroupName, 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._listByResourceGroupNext(\n resourceGroupName,\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 *listByResourceGroupPagingAll(\n resourceGroupName: string,\n options?: AssessmentProjectsOperationsListByResourceGroupOptionalParams,\n ): AsyncIterableIterator<AssessmentProject> {\n for await (const page of this.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * List AssessmentProject resources by subscription ID\n * @param options The options parameters.\n */\n private _listBySubscription(\n options?: AssessmentProjectsOperationsListBySubscriptionOptionalParams,\n ): Promise<AssessmentProjectsOperationsListBySubscriptionResponse> {\n return this.client.sendOperationRequest(\n { options },\n listBySubscriptionOperationSpec,\n );\n }\n\n /**\n * List AssessmentProject resources by resource group\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n private _listByResourceGroup(\n resourceGroupName: string,\n options?: AssessmentProjectsOperationsListByResourceGroupOptionalParams,\n ): Promise<AssessmentProjectsOperationsListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec,\n );\n }\n\n /**\n * Get a AssessmentProject\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param projectName Assessment Project Name\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n projectName: string,\n options?: AssessmentProjectsOperationsGetOptionalParams,\n ): Promise<AssessmentProjectsOperationsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, projectName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Create a AssessmentProject\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param projectName Assessment Project Name\n * @param resource Resource create parameters.\n * @param options The options parameters.\n */\n async beginCreate(\n resourceGroupName: string,\n projectName: string,\n resource: AssessmentProject,\n options?: AssessmentProjectsOperationsCreateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<AssessmentProjectsOperationsCreateResponse>,\n AssessmentProjectsOperationsCreateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<AssessmentProjectsOperationsCreateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, projectName, resource, options },\n spec: createOperationSpec,\n });\n const poller = await createHttpPoller<\n AssessmentProjectsOperationsCreateResponse,\n OperationState<AssessmentProjectsOperationsCreateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Create a AssessmentProject\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param projectName Assessment Project Name\n * @param resource Resource create parameters.\n * @param options The options parameters.\n */\n async beginCreateAndWait(\n resourceGroupName: string,\n projectName: string,\n resource: AssessmentProject,\n options?: AssessmentProjectsOperationsCreateOptionalParams,\n ): Promise<AssessmentProjectsOperationsCreateResponse> {\n const poller = await this.beginCreate(\n resourceGroupName,\n projectName,\n resource,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Update a AssessmentProject\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param projectName Assessment Project Name\n * @param properties The resource properties to be updated.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n projectName: string,\n properties: AssessmentProjectUpdate,\n options?: AssessmentProjectsOperationsUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<AssessmentProjectsOperationsUpdateResponse>,\n AssessmentProjectsOperationsUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<AssessmentProjectsOperationsUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, projectName, properties, options },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n AssessmentProjectsOperationsUpdateResponse,\n OperationState<AssessmentProjectsOperationsUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Update a AssessmentProject\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param projectName Assessment Project Name\n * @param properties The resource properties to be updated.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n projectName: string,\n properties: AssessmentProjectUpdate,\n options?: AssessmentProjectsOperationsUpdateOptionalParams,\n ): Promise<AssessmentProjectsOperationsUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n projectName,\n properties,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Delete a AssessmentProject\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param projectName Assessment Project Name\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n projectName: string,\n options?: AssessmentProjectsOperationsDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, projectName, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * ListBySubscriptionNext\n * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.\n * @param options The options parameters.\n */\n private _listBySubscriptionNext(\n nextLink: string,\n options?: AssessmentProjectsOperationsListBySubscriptionNextOptionalParams,\n ): Promise<AssessmentProjectsOperationsListBySubscriptionNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listBySubscriptionNextOperationSpec,\n );\n }\n\n /**\n * ListByResourceGroupNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.\n * @param options The options parameters.\n */\n private _listByResourceGroupNext(\n resourceGroupName: string,\n nextLink: string,\n options?: AssessmentProjectsOperationsListByResourceGroupNextOptionalParams,\n ): Promise<AssessmentProjectsOperationsListByResourceGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, nextLink, options },\n listByResourceGroupNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listBySubscriptionOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Migrate/assessmentProjects\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AssessmentProjectListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AssessmentProjectListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AssessmentProject,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.projectName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.AssessmentProject,\n },\n 201: {\n bodyMapper: Mappers.AssessmentProject,\n },\n 202: {\n bodyMapper: Mappers.AssessmentProject,\n },\n 204: {\n bodyMapper: Mappers.AssessmentProject,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.resource,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.projectName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.AssessmentProject,\n },\n 201: {\n bodyMapper: Mappers.AssessmentProject,\n },\n 202: {\n bodyMapper: Mappers.AssessmentProject,\n },\n 204: {\n bodyMapper: Mappers.AssessmentProject,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.properties,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.projectName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.projectName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AssessmentProjectListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AssessmentProjectListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"assessmentProjectsOperations.js","sourceRoot":"","sources":["../../../src/operations/assessmentProjectsOperations.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;AAEtD,OAAO,EAGL,gBAAgB,GACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAqB9C,4CAA4C;AAC5C,gEAAgE;AAChE,MAAM,OAAO,gCAAgC;IAG1B,MAAM,CAAgC;IAEvD;;;OAGG;IACH,YAAY,MAAqC;QAC/C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,kBAAkB,CACvB,OAAsE;QAEtE,MAAM,IAAI,GAAG,IAAI,CAAC,2BAA2B,CAAC,OAAO,CAAC,CAAC;QACvD,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,4BAA4B,CAAC,OAAO,EAAE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QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;KAC7B;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 { AssessmentProjectsOperations } 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 { AzureMigrateAssessmentService } from \"../azureMigrateAssessmentService.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n AssessmentProject,\n AssessmentProjectsOperationsListBySubscriptionNextOptionalParams,\n AssessmentProjectsOperationsListBySubscriptionOptionalParams,\n AssessmentProjectsOperationsListBySubscriptionResponse,\n AssessmentProjectsOperationsListByResourceGroupNextOptionalParams,\n AssessmentProjectsOperationsListByResourceGroupOptionalParams,\n AssessmentProjectsOperationsListByResourceGroupResponse,\n AssessmentProjectsOperationsGetOptionalParams,\n AssessmentProjectsOperationsGetResponse,\n AssessmentProjectsOperationsCreateOptionalParams,\n AssessmentProjectsOperationsCreateResponse,\n AssessmentProjectUpdate,\n AssessmentProjectsOperationsUpdateOptionalParams,\n AssessmentProjectsOperationsUpdateResponse,\n AssessmentProjectsOperationsDeleteOptionalParams,\n AssessmentProjectsOperationsListBySubscriptionNextResponse,\n AssessmentProjectsOperationsListByResourceGroupNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing AssessmentProjectsOperations operations. */\nexport class AssessmentProjectsOperationsImpl\n implements AssessmentProjectsOperations\n{\n private readonly client: AzureMigrateAssessmentService;\n\n /**\n * Initialize a new instance of the class AssessmentProjectsOperations class.\n * @param client Reference to the service client\n */\n constructor(client: AzureMigrateAssessmentService) {\n this.client = client;\n }\n\n /**\n * List AssessmentProject resources by subscription ID\n * @param options The options parameters.\n */\n public listBySubscription(\n options?: AssessmentProjectsOperationsListBySubscriptionOptionalParams,\n ): PagedAsyncIterableIterator<AssessmentProject> {\n const iter = this.listBySubscriptionPagingAll(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.listBySubscriptionPagingPage(options, settings);\n },\n };\n }\n\n private async *listBySubscriptionPagingPage(\n options?: AssessmentProjectsOperationsListBySubscriptionOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<AssessmentProject[]> {\n let result: AssessmentProjectsOperationsListBySubscriptionResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listBySubscription(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._listBySubscriptionNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listBySubscriptionPagingAll(\n options?: AssessmentProjectsOperationsListBySubscriptionOptionalParams,\n ): AsyncIterableIterator<AssessmentProject> {\n for await (const page of this.listBySubscriptionPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * List AssessmentProject resources by resource group\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n public listByResourceGroup(\n resourceGroupName: string,\n options?: AssessmentProjectsOperationsListByResourceGroupOptionalParams,\n ): PagedAsyncIterableIterator<AssessmentProject> {\n const iter = this.listByResourceGroupPagingAll(resourceGroupName, 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.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByResourceGroupPagingPage(\n resourceGroupName: string,\n options?: AssessmentProjectsOperationsListByResourceGroupOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<AssessmentProject[]> {\n let result: AssessmentProjectsOperationsListByResourceGroupResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByResourceGroup(resourceGroupName, 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._listByResourceGroupNext(\n resourceGroupName,\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 *listByResourceGroupPagingAll(\n resourceGroupName: string,\n options?: AssessmentProjectsOperationsListByResourceGroupOptionalParams,\n ): AsyncIterableIterator<AssessmentProject> {\n for await (const page of this.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * List AssessmentProject resources by subscription ID\n * @param options The options parameters.\n */\n private _listBySubscription(\n options?: AssessmentProjectsOperationsListBySubscriptionOptionalParams,\n ): Promise<AssessmentProjectsOperationsListBySubscriptionResponse> {\n return this.client.sendOperationRequest(\n { options },\n listBySubscriptionOperationSpec,\n );\n }\n\n /**\n * List AssessmentProject resources by resource group\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n private _listByResourceGroup(\n resourceGroupName: string,\n options?: AssessmentProjectsOperationsListByResourceGroupOptionalParams,\n ): Promise<AssessmentProjectsOperationsListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec,\n );\n }\n\n /**\n * Get a AssessmentProject\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param projectName Assessment Project Name\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n projectName: string,\n options?: AssessmentProjectsOperationsGetOptionalParams,\n ): Promise<AssessmentProjectsOperationsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, projectName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Create a AssessmentProject\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param projectName Assessment Project Name\n * @param resource Resource create parameters.\n * @param options The options parameters.\n */\n async beginCreate(\n resourceGroupName: string,\n projectName: string,\n resource: AssessmentProject,\n options?: AssessmentProjectsOperationsCreateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<AssessmentProjectsOperationsCreateResponse>,\n AssessmentProjectsOperationsCreateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<AssessmentProjectsOperationsCreateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, projectName, resource, options },\n spec: createOperationSpec,\n });\n const poller = await createHttpPoller<\n AssessmentProjectsOperationsCreateResponse,\n OperationState<AssessmentProjectsOperationsCreateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Create a AssessmentProject\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param projectName Assessment Project Name\n * @param resource Resource create parameters.\n * @param options The options parameters.\n */\n async beginCreateAndWait(\n resourceGroupName: string,\n projectName: string,\n resource: AssessmentProject,\n options?: AssessmentProjectsOperationsCreateOptionalParams,\n ): Promise<AssessmentProjectsOperationsCreateResponse> {\n const poller = await this.beginCreate(\n resourceGroupName,\n projectName,\n resource,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Update a AssessmentProject\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param projectName Assessment Project Name\n * @param properties The resource properties to be updated.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n projectName: string,\n properties: AssessmentProjectUpdate,\n options?: AssessmentProjectsOperationsUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<AssessmentProjectsOperationsUpdateResponse>,\n AssessmentProjectsOperationsUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<AssessmentProjectsOperationsUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, projectName, properties, options },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n AssessmentProjectsOperationsUpdateResponse,\n OperationState<AssessmentProjectsOperationsUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Update a AssessmentProject\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param projectName Assessment Project Name\n * @param properties The resource properties to be updated.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n projectName: string,\n properties: AssessmentProjectUpdate,\n options?: AssessmentProjectsOperationsUpdateOptionalParams,\n ): Promise<AssessmentProjectsOperationsUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n projectName,\n properties,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Delete a AssessmentProject\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param projectName Assessment Project Name\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n projectName: string,\n options?: AssessmentProjectsOperationsDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, projectName, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * ListBySubscriptionNext\n * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.\n * @param options The options parameters.\n */\n private _listBySubscriptionNext(\n nextLink: string,\n options?: AssessmentProjectsOperationsListBySubscriptionNextOptionalParams,\n ): Promise<AssessmentProjectsOperationsListBySubscriptionNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listBySubscriptionNextOperationSpec,\n );\n }\n\n /**\n * ListByResourceGroupNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.\n * @param options The options parameters.\n */\n private _listByResourceGroupNext(\n resourceGroupName: string,\n nextLink: string,\n options?: AssessmentProjectsOperationsListByResourceGroupNextOptionalParams,\n ): Promise<AssessmentProjectsOperationsListByResourceGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, nextLink, options },\n listByResourceGroupNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listBySubscriptionOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Migrate/assessmentProjects\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AssessmentProjectListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AssessmentProjectListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AssessmentProject,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.projectName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.AssessmentProject,\n },\n 201: {\n bodyMapper: Mappers.AssessmentProject,\n },\n 202: {\n bodyMapper: Mappers.AssessmentProject,\n },\n 204: {\n bodyMapper: Mappers.AssessmentProject,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.resource,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.projectName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.AssessmentProject,\n },\n 201: {\n bodyMapper: Mappers.AssessmentProject,\n },\n 202: {\n bodyMapper: Mappers.AssessmentProject,\n },\n 204: {\n bodyMapper: Mappers.AssessmentProject,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.properties,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.projectName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.projectName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AssessmentProjectListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AssessmentProjectListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\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 AssessmentsOperations operations. */
17
16
  export class AssessmentsOperationsImpl {
17
+ client;
18
18
  /**
19
19
  * Initialize a new instance of the class AssessmentsOperations class.
20
20
  * @param client Reference to the service client
@@ -39,52 +39,35 @@ export class AssessmentsOperationsImpl {
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.listByGroupPagingPage(resourceGroupName, projectName, groupName, options, settings);
46
46
  },
47
47
  };
48
48
  }
49
- listByGroupPagingPage(resourceGroupName, projectName, groupName, options, settings) {
50
- return __asyncGenerator(this, arguments, function* listByGroupPagingPage_1() {
51
- let result;
52
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
53
- if (!continuationToken) {
54
- result = yield __await(this._listByGroup(resourceGroupName, projectName, groupName, 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._listByGroupNext(resourceGroupName, projectName, groupName, continuationToken, options));
62
- continuationToken = result.nextLink;
63
- let page = result.value || [];
64
- setContinuationToken(page, continuationToken);
65
- yield yield __await(page);
66
- }
67
- });
49
+ async *listByGroupPagingPage(resourceGroupName, projectName, groupName, options, settings) {
50
+ let result;
51
+ let continuationToken = settings?.continuationToken;
52
+ if (!continuationToken) {
53
+ result = await this._listByGroup(resourceGroupName, projectName, groupName, 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._listByGroupNext(resourceGroupName, projectName, groupName, continuationToken, options);
61
+ continuationToken = result.nextLink;
62
+ let page = result.value || [];
63
+ setContinuationToken(page, continuationToken);
64
+ yield page;
65
+ }
68
66
  }
69
- listByGroupPagingAll(resourceGroupName, projectName, groupName, options) {
70
- return __asyncGenerator(this, arguments, function* listByGroupPagingAll_1() {
71
- var _a, e_1, _b, _c;
72
- try {
73
- for (var _d = true, _e = __asyncValues(this.listByGroupPagingPage(resourceGroupName, projectName, groupName, 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 *listByGroupPagingAll(resourceGroupName, projectName, groupName, options) {
68
+ for await (const page of this.listByGroupPagingPage(resourceGroupName, projectName, groupName, options)) {
69
+ yield* page;
70
+ }
88
71
  }
89
72
  /**
90
73
  * List Assessment resources by Group
@@ -121,14 +104,19 @@ export class AssessmentsOperationsImpl {
121
104
  return this.client.sendOperationRequest(args, spec);
122
105
  };
123
106
  const sendOperationFn = async (args, spec) => {
124
- var _a;
125
107
  let currentRawResponse = undefined;
126
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
108
+ const providedCallback = args.options?.onResponse;
127
109
  const callback = (rawResponse, flatResponse) => {
128
110
  currentRawResponse = rawResponse;
129
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
111
+ providedCallback?.(rawResponse, flatResponse);
112
+ };
113
+ const updatedArgs = {
114
+ ...args,
115
+ options: {
116
+ ...args.options,
117
+ onResponse: callback,
118
+ },
130
119
  };
131
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
132
120
  const flatResponse = await directSendOperation(updatedArgs, spec);
133
121
  return {
134
122
  flatResponse,
@@ -152,8 +140,8 @@ export class AssessmentsOperationsImpl {
152
140
  spec: createOperationSpec,
153
141
  });
154
142
  const poller = await createHttpPoller(lro, {
155
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
156
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
143
+ restoreFrom: options?.resumeFrom,
144
+ intervalInMs: options?.updateIntervalInMs,
157
145
  resourceLocationConfig: "azure-async-operation",
158
146
  });
159
147
  await poller.poll();
@@ -197,14 +185,19 @@ export class AssessmentsOperationsImpl {
197
185
  return this.client.sendOperationRequest(args, spec);
198
186
  };
199
187
  const sendOperationFn = async (args, spec) => {
200
- var _a;
201
188
  let currentRawResponse = undefined;
202
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
189
+ const providedCallback = args.options?.onResponse;
203
190
  const callback = (rawResponse, flatResponse) => {
204
191
  currentRawResponse = rawResponse;
205
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
192
+ providedCallback?.(rawResponse, flatResponse);
193
+ };
194
+ const updatedArgs = {
195
+ ...args,
196
+ options: {
197
+ ...args.options,
198
+ onResponse: callback,
199
+ },
206
200
  };
207
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
208
201
  const flatResponse = await directSendOperation(updatedArgs, spec);
209
202
  return {
210
203
  flatResponse,
@@ -228,8 +221,8 @@ export class AssessmentsOperationsImpl {
228
221
  spec: downloadUrlOperationSpec,
229
222
  });
230
223
  const poller = await createHttpPoller(lro, {
231
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
232
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
224
+ restoreFrom: options?.resumeFrom,
225
+ intervalInMs: options?.updateIntervalInMs,
233
226
  resourceLocationConfig: "location",
234
227
  });
235
228
  await poller.poll();