@azure/arm-changeanalysis 2.1.1-alpha.20250102.1 → 2.1.1-alpha.20250103.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 (290) hide show
  1. package/{dist-esm/src → dist/browser}/azureChangeAnalysisManagementClient.d.ts +2 -2
  2. package/dist/browser/azureChangeAnalysisManagementClient.d.ts.map +1 -0
  3. package/{dist-esm/src → dist/browser}/azureChangeAnalysisManagementClient.js +15 -18
  4. package/dist/browser/azureChangeAnalysisManagementClient.js.map +1 -0
  5. package/dist/browser/index.d.ts +5 -0
  6. package/{dist-esm/src → dist/browser}/index.d.ts.map +1 -1
  7. package/{dist-esm/src → dist/browser}/index.js +4 -4
  8. package/dist/browser/index.js.map +1 -0
  9. package/dist/browser/models/index.js.map +1 -0
  10. package/dist/browser/models/mappers.js.map +1 -0
  11. package/dist/browser/models/parameters.js.map +1 -0
  12. package/{dist-esm/src → dist/browser}/operations/changes.d.ts +3 -3
  13. package/dist/browser/operations/changes.d.ts.map +1 -0
  14. package/{dist-esm/src → dist/browser}/operations/changes.js +3 -3
  15. package/dist/browser/operations/changes.js.map +1 -0
  16. package/dist/browser/operations/index.d.ts +4 -0
  17. package/{dist-esm/src → dist/browser}/operations/index.d.ts.map +1 -1
  18. package/{dist-esm/src/operationsInterfaces → dist/browser/operations}/index.js +3 -3
  19. package/dist/browser/operations/index.js.map +1 -0
  20. package/{dist-esm/src → dist/browser}/operations/operations.d.ts +3 -3
  21. package/dist/browser/operations/operations.d.ts.map +1 -0
  22. package/{dist-esm/src → dist/browser}/operations/operations.js +3 -3
  23. package/dist/browser/operations/operations.js.map +1 -0
  24. package/{dist-esm/src → dist/browser}/operations/resourceChanges.d.ts +3 -3
  25. package/dist/browser/operations/resourceChanges.d.ts.map +1 -0
  26. package/{dist-esm/src → dist/browser}/operations/resourceChanges.js +3 -3
  27. package/dist/browser/operations/resourceChanges.js.map +1 -0
  28. package/{dist-esm/src → dist/browser}/operationsInterfaces/changes.d.ts +1 -1
  29. package/dist/browser/operationsInterfaces/changes.d.ts.map +1 -0
  30. package/dist/browser/operationsInterfaces/changes.js.map +1 -0
  31. package/dist/browser/operationsInterfaces/index.d.ts +4 -0
  32. package/{dist-esm/src → dist/browser}/operationsInterfaces/index.d.ts.map +1 -1
  33. package/{dist-esm/src/operations → dist/browser/operationsInterfaces}/index.js +3 -3
  34. package/dist/browser/operationsInterfaces/index.js.map +1 -0
  35. package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts +1 -1
  36. package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts.map +1 -1
  37. package/dist/browser/operationsInterfaces/operations.js.map +1 -0
  38. package/{dist-esm/src → dist/browser}/operationsInterfaces/resourceChanges.d.ts +1 -1
  39. package/dist/browser/operationsInterfaces/resourceChanges.d.ts.map +1 -0
  40. package/dist/browser/operationsInterfaces/resourceChanges.js.map +1 -0
  41. package/dist/browser/package.json +3 -0
  42. package/dist/browser/pagingHelper.js.map +1 -0
  43. package/dist/commonjs/azureChangeAnalysisManagementClient.d.ts +22 -0
  44. package/dist/commonjs/azureChangeAnalysisManagementClient.d.ts.map +1 -0
  45. package/dist/commonjs/azureChangeAnalysisManagementClient.js +104 -0
  46. package/dist/commonjs/azureChangeAnalysisManagementClient.js.map +1 -0
  47. package/dist/commonjs/index.d.ts +5 -0
  48. package/dist/commonjs/index.d.ts.map +1 -0
  49. package/dist/commonjs/index.js +19 -0
  50. package/dist/commonjs/index.js.map +1 -0
  51. package/{types/arm-changeanalysis.d.ts → dist/commonjs/models/index.d.ts} +247 -355
  52. package/dist/commonjs/models/index.d.ts.map +1 -0
  53. package/dist/commonjs/models/index.js +31 -0
  54. package/dist/commonjs/models/index.js.map +1 -0
  55. package/dist/commonjs/models/mappers.d.ts +14 -0
  56. package/dist/commonjs/models/mappers.d.ts.map +1 -0
  57. package/dist/commonjs/models/mappers.js +370 -0
  58. package/dist/commonjs/models/mappers.js.map +1 -0
  59. package/dist/commonjs/models/parameters.d.ts +12 -0
  60. package/dist/commonjs/models/parameters.d.ts.map +1 -0
  61. package/dist/commonjs/models/parameters.js +121 -0
  62. package/dist/commonjs/models/parameters.js.map +1 -0
  63. package/dist/commonjs/operations/changes.d.ts +71 -0
  64. package/dist/commonjs/operations/changes.d.ts.map +1 -0
  65. package/dist/commonjs/operations/changes.js +300 -0
  66. package/dist/commonjs/operations/changes.js.map +1 -0
  67. package/dist/commonjs/operations/index.d.ts +4 -0
  68. package/dist/commonjs/operations/index.d.ts.map +1 -0
  69. package/dist/commonjs/operations/index.js +14 -0
  70. package/dist/commonjs/operations/index.js.map +1 -0
  71. package/dist/commonjs/operations/operations.d.ts +34 -0
  72. package/dist/commonjs/operations/operations.d.ts.map +1 -0
  73. package/dist/commonjs/operations/operations.js +140 -0
  74. package/dist/commonjs/operations/operations.js.map +1 -0
  75. package/dist/commonjs/operations/resourceChanges.d.ts +43 -0
  76. package/dist/commonjs/operations/resourceChanges.d.ts.map +1 -0
  77. package/dist/commonjs/operations/resourceChanges.js +159 -0
  78. package/dist/commonjs/operations/resourceChanges.js.map +1 -0
  79. package/dist/commonjs/operationsInterfaces/changes.d.ts +23 -0
  80. package/dist/commonjs/operationsInterfaces/changes.d.ts.map +1 -0
  81. package/dist/commonjs/operationsInterfaces/changes.js +10 -0
  82. package/dist/commonjs/operationsInterfaces/changes.js.map +1 -0
  83. package/dist/commonjs/operationsInterfaces/index.d.ts +4 -0
  84. package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
  85. package/dist/commonjs/operationsInterfaces/index.js +14 -0
  86. package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
  87. package/dist/commonjs/operationsInterfaces/operations.d.ts +12 -0
  88. package/dist/commonjs/operationsInterfaces/operations.d.ts.map +1 -0
  89. package/dist/commonjs/operationsInterfaces/operations.js +10 -0
  90. package/dist/commonjs/operationsInterfaces/operations.js.map +1 -0
  91. package/dist/commonjs/operationsInterfaces/resourceChanges.d.ts +15 -0
  92. package/dist/commonjs/operationsInterfaces/resourceChanges.d.ts.map +1 -0
  93. package/dist/commonjs/operationsInterfaces/resourceChanges.js +10 -0
  94. package/dist/commonjs/operationsInterfaces/resourceChanges.js.map +1 -0
  95. package/dist/commonjs/package.json +3 -0
  96. package/dist/commonjs/pagingHelper.d.ts +13 -0
  97. package/dist/commonjs/pagingHelper.d.ts.map +1 -0
  98. package/dist/commonjs/pagingHelper.js +36 -0
  99. package/dist/commonjs/pagingHelper.js.map +1 -0
  100. package/dist/esm/azureChangeAnalysisManagementClient.d.ts +22 -0
  101. package/dist/esm/azureChangeAnalysisManagementClient.d.ts.map +1 -0
  102. package/dist/esm/azureChangeAnalysisManagementClient.js +99 -0
  103. package/dist/esm/azureChangeAnalysisManagementClient.js.map +1 -0
  104. package/dist/esm/index.d.ts +5 -0
  105. package/dist/esm/index.d.ts.map +1 -0
  106. package/{src/index.ts → dist/esm/index.js} +5 -5
  107. package/dist/esm/index.js.map +1 -0
  108. package/dist/esm/models/index.d.ts +247 -0
  109. package/dist/esm/models/index.d.ts.map +1 -0
  110. package/dist/esm/models/index.js +28 -0
  111. package/dist/esm/models/index.js.map +1 -0
  112. package/dist/esm/models/mappers.d.ts +14 -0
  113. package/dist/esm/models/mappers.d.ts.map +1 -0
  114. package/dist/esm/models/mappers.js +367 -0
  115. package/dist/esm/models/mappers.js.map +1 -0
  116. package/dist/esm/models/parameters.d.ts +12 -0
  117. package/dist/esm/models/parameters.d.ts.map +1 -0
  118. package/dist/esm/models/parameters.js +118 -0
  119. package/dist/esm/models/parameters.js.map +1 -0
  120. package/dist/esm/operations/changes.d.ts +71 -0
  121. package/dist/esm/operations/changes.d.ts.map +1 -0
  122. package/dist/esm/operations/changes.js +296 -0
  123. package/dist/esm/operations/changes.js.map +1 -0
  124. package/dist/esm/operations/index.d.ts +4 -0
  125. package/dist/esm/operations/index.d.ts.map +1 -0
  126. package/dist/esm/operations/index.js +11 -0
  127. package/dist/esm/operations/index.js.map +1 -0
  128. package/dist/esm/operations/operations.d.ts +34 -0
  129. package/dist/esm/operations/operations.d.ts.map +1 -0
  130. package/dist/esm/operations/operations.js +136 -0
  131. package/dist/esm/operations/operations.js.map +1 -0
  132. package/dist/esm/operations/resourceChanges.d.ts +43 -0
  133. package/dist/esm/operations/resourceChanges.d.ts.map +1 -0
  134. package/dist/esm/operations/resourceChanges.js +155 -0
  135. package/dist/esm/operations/resourceChanges.js.map +1 -0
  136. package/dist/esm/operationsInterfaces/changes.d.ts +23 -0
  137. package/dist/esm/operationsInterfaces/changes.d.ts.map +1 -0
  138. package/{src/operations/index.ts → dist/esm/operationsInterfaces/changes.js} +2 -4
  139. package/dist/esm/operationsInterfaces/changes.js.map +1 -0
  140. package/dist/esm/operationsInterfaces/index.d.ts +4 -0
  141. package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
  142. package/dist/esm/operationsInterfaces/index.js +11 -0
  143. package/dist/esm/operationsInterfaces/index.js.map +1 -0
  144. package/dist/esm/operationsInterfaces/operations.d.ts +12 -0
  145. package/dist/esm/operationsInterfaces/operations.d.ts.map +1 -0
  146. package/dist/esm/operationsInterfaces/operations.js +9 -0
  147. package/dist/esm/operationsInterfaces/operations.js.map +1 -0
  148. package/dist/esm/operationsInterfaces/resourceChanges.d.ts +15 -0
  149. package/dist/esm/operationsInterfaces/resourceChanges.d.ts.map +1 -0
  150. package/dist/esm/operationsInterfaces/resourceChanges.js +9 -0
  151. package/dist/esm/operationsInterfaces/resourceChanges.js.map +1 -0
  152. package/dist/esm/package.json +3 -0
  153. package/dist/esm/pagingHelper.d.ts +13 -0
  154. package/dist/esm/pagingHelper.d.ts.map +1 -0
  155. package/dist/esm/pagingHelper.js +32 -0
  156. package/dist/esm/pagingHelper.js.map +1 -0
  157. package/dist/react-native/azureChangeAnalysisManagementClient.d.ts +22 -0
  158. package/dist/react-native/azureChangeAnalysisManagementClient.d.ts.map +1 -0
  159. package/dist/react-native/azureChangeAnalysisManagementClient.js +99 -0
  160. package/dist/react-native/azureChangeAnalysisManagementClient.js.map +1 -0
  161. package/dist/react-native/index.d.ts +5 -0
  162. package/dist/react-native/index.d.ts.map +1 -0
  163. package/dist/react-native/index.js +13 -0
  164. package/dist/react-native/index.js.map +1 -0
  165. package/dist/react-native/models/index.d.ts +247 -0
  166. package/dist/react-native/models/index.d.ts.map +1 -0
  167. package/dist/react-native/models/index.js +28 -0
  168. package/dist/react-native/models/index.js.map +1 -0
  169. package/dist/react-native/models/mappers.d.ts +14 -0
  170. package/dist/react-native/models/mappers.d.ts.map +1 -0
  171. package/dist/react-native/models/mappers.js +367 -0
  172. package/dist/react-native/models/mappers.js.map +1 -0
  173. package/dist/react-native/models/parameters.d.ts +12 -0
  174. package/dist/react-native/models/parameters.d.ts.map +1 -0
  175. package/dist/react-native/models/parameters.js +118 -0
  176. package/dist/react-native/models/parameters.js.map +1 -0
  177. package/dist/react-native/operations/changes.d.ts +71 -0
  178. package/dist/react-native/operations/changes.d.ts.map +1 -0
  179. package/dist/react-native/operations/changes.js +296 -0
  180. package/dist/react-native/operations/changes.js.map +1 -0
  181. package/dist/react-native/operations/index.d.ts +4 -0
  182. package/dist/react-native/operations/index.d.ts.map +1 -0
  183. package/dist/react-native/operations/index.js +11 -0
  184. package/dist/react-native/operations/index.js.map +1 -0
  185. package/dist/react-native/operations/operations.d.ts +34 -0
  186. package/dist/react-native/operations/operations.d.ts.map +1 -0
  187. package/dist/react-native/operations/operations.js +136 -0
  188. package/dist/react-native/operations/operations.js.map +1 -0
  189. package/dist/react-native/operations/resourceChanges.d.ts +43 -0
  190. package/dist/react-native/operations/resourceChanges.d.ts.map +1 -0
  191. package/dist/react-native/operations/resourceChanges.js +155 -0
  192. package/dist/react-native/operations/resourceChanges.js.map +1 -0
  193. package/dist/react-native/operationsInterfaces/changes.d.ts +23 -0
  194. package/dist/react-native/operationsInterfaces/changes.d.ts.map +1 -0
  195. package/dist/react-native/operationsInterfaces/changes.js +9 -0
  196. package/dist/react-native/operationsInterfaces/changes.js.map +1 -0
  197. package/dist/react-native/operationsInterfaces/index.d.ts +4 -0
  198. package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
  199. package/dist/react-native/operationsInterfaces/index.js +11 -0
  200. package/dist/react-native/operationsInterfaces/index.js.map +1 -0
  201. package/dist/react-native/operationsInterfaces/operations.d.ts +12 -0
  202. package/dist/react-native/operationsInterfaces/operations.d.ts.map +1 -0
  203. package/dist/react-native/operationsInterfaces/operations.js +9 -0
  204. package/dist/react-native/operationsInterfaces/operations.js.map +1 -0
  205. package/dist/react-native/operationsInterfaces/resourceChanges.d.ts +15 -0
  206. package/dist/react-native/operationsInterfaces/resourceChanges.d.ts.map +1 -0
  207. package/dist/react-native/operationsInterfaces/resourceChanges.js +9 -0
  208. package/dist/react-native/operationsInterfaces/resourceChanges.js.map +1 -0
  209. package/dist/react-native/package.json +3 -0
  210. package/dist/react-native/pagingHelper.d.ts +13 -0
  211. package/dist/react-native/pagingHelper.d.ts.map +1 -0
  212. package/dist/react-native/pagingHelper.js +32 -0
  213. package/dist/react-native/pagingHelper.js.map +1 -0
  214. package/package.json +58 -28
  215. package/dist/index.js +0 -1262
  216. package/dist/index.js.map +0 -1
  217. package/dist/index.min.js +0 -1
  218. package/dist/index.min.js.map +0 -1
  219. package/dist-esm/samples-dev/changesListChangesByResourceGroupSample.d.ts +0 -2
  220. package/dist-esm/samples-dev/changesListChangesByResourceGroupSample.d.ts.map +0 -1
  221. package/dist-esm/samples-dev/changesListChangesByResourceGroupSample.js +0 -48
  222. package/dist-esm/samples-dev/changesListChangesByResourceGroupSample.js.map +0 -1
  223. package/dist-esm/samples-dev/changesListChangesBySubscriptionSample.d.ts +0 -2
  224. package/dist-esm/samples-dev/changesListChangesBySubscriptionSample.d.ts.map +0 -1
  225. package/dist-esm/samples-dev/changesListChangesBySubscriptionSample.js +0 -47
  226. package/dist-esm/samples-dev/changesListChangesBySubscriptionSample.js.map +0 -1
  227. package/dist-esm/samples-dev/operationsListSample.d.ts +0 -2
  228. package/dist-esm/samples-dev/operationsListSample.d.ts.map +0 -1
  229. package/dist-esm/samples-dev/operationsListSample.js +0 -45
  230. package/dist-esm/samples-dev/operationsListSample.js.map +0 -1
  231. package/dist-esm/samples-dev/resourceChangesListSample.d.ts +0 -2
  232. package/dist-esm/samples-dev/resourceChangesListSample.d.ts.map +0 -1
  233. package/dist-esm/samples-dev/resourceChangesListSample.js +0 -48
  234. package/dist-esm/samples-dev/resourceChangesListSample.js.map +0 -1
  235. package/dist-esm/src/azureChangeAnalysisManagementClient.d.ts.map +0 -1
  236. package/dist-esm/src/azureChangeAnalysisManagementClient.js.map +0 -1
  237. package/dist-esm/src/index.d.ts +0 -5
  238. package/dist-esm/src/index.js.map +0 -1
  239. package/dist-esm/src/models/index.js.map +0 -1
  240. package/dist-esm/src/models/mappers.js.map +0 -1
  241. package/dist-esm/src/models/parameters.js.map +0 -1
  242. package/dist-esm/src/operations/changes.d.ts.map +0 -1
  243. package/dist-esm/src/operations/changes.js.map +0 -1
  244. package/dist-esm/src/operations/index.d.ts +0 -4
  245. package/dist-esm/src/operations/index.js.map +0 -1
  246. package/dist-esm/src/operations/operations.d.ts.map +0 -1
  247. package/dist-esm/src/operations/operations.js.map +0 -1
  248. package/dist-esm/src/operations/resourceChanges.d.ts.map +0 -1
  249. package/dist-esm/src/operations/resourceChanges.js.map +0 -1
  250. package/dist-esm/src/operationsInterfaces/changes.d.ts.map +0 -1
  251. package/dist-esm/src/operationsInterfaces/changes.js.map +0 -1
  252. package/dist-esm/src/operationsInterfaces/index.d.ts +0 -4
  253. package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
  254. package/dist-esm/src/operationsInterfaces/operations.js.map +0 -1
  255. package/dist-esm/src/operationsInterfaces/resourceChanges.d.ts.map +0 -1
  256. package/dist-esm/src/operationsInterfaces/resourceChanges.js.map +0 -1
  257. package/dist-esm/src/pagingHelper.js.map +0 -1
  258. package/dist-esm/test/sampleTest.d.ts +0 -2
  259. package/dist-esm/test/sampleTest.d.ts.map +0 -1
  260. package/dist-esm/test/sampleTest.js +0 -42
  261. package/dist-esm/test/sampleTest.js.map +0 -1
  262. package/src/azureChangeAnalysisManagementClient.ts +0 -144
  263. package/src/models/index.ts +0 -295
  264. package/src/models/mappers.ts +0 -385
  265. package/src/models/parameters.ts +0 -133
  266. package/src/operations/changes.ts +0 -401
  267. package/src/operations/operations.ts +0 -152
  268. package/src/operations/resourceChanges.ts +0 -206
  269. package/src/operationsInterfaces/changes.ts +0 -45
  270. package/src/operationsInterfaces/index.ts +0 -11
  271. package/src/operationsInterfaces/operations.ts +0 -26
  272. package/src/operationsInterfaces/resourceChanges.ts +0 -29
  273. package/src/pagingHelper.ts +0 -39
  274. package/tsconfig.json +0 -33
  275. /package/{dist-esm/src → dist/browser}/models/index.d.ts +0 -0
  276. /package/{dist-esm/src → dist/browser}/models/index.d.ts.map +0 -0
  277. /package/{dist-esm/src → dist/browser}/models/index.js +0 -0
  278. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts +0 -0
  279. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts.map +0 -0
  280. /package/{dist-esm/src → dist/browser}/models/mappers.js +0 -0
  281. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts +0 -0
  282. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +0 -0
  283. /package/{dist-esm/src → dist/browser}/models/parameters.js +0 -0
  284. /package/{dist-esm/src → dist/browser}/operationsInterfaces/changes.js +0 -0
  285. /package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.js +0 -0
  286. /package/{dist-esm/src → dist/browser}/operationsInterfaces/resourceChanges.js +0 -0
  287. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts +0 -0
  288. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts.map +0 -0
  289. /package/{dist-esm/src → dist/browser}/pagingHelper.js +0 -0
  290. /package/{types → dist/commonjs}/tsdoc-metadata.json +0 -0
@@ -0,0 +1,296 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
+ import { setContinuationToken } from "../pagingHelper.js";
10
+ import * as coreClient from "@azure/core-client";
11
+ import * as Mappers from "../models/mappers.js";
12
+ import * as Parameters from "../models/parameters.js";
13
+ /// <reference lib="esnext.asynciterable" />
14
+ /** Class containing Changes operations. */
15
+ export class ChangesImpl {
16
+ /**
17
+ * Initialize a new instance of the class Changes class.
18
+ * @param client Reference to the service client
19
+ */
20
+ constructor(client) {
21
+ this.client = client;
22
+ }
23
+ /**
24
+ * List the changes of a resource group within the specified time range. Customer data will always be
25
+ * masked.
26
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
27
+ * @param startTime Specifies the start time of the changes request.
28
+ * @param endTime Specifies the end time of the changes request.
29
+ * @param options The options parameters.
30
+ */
31
+ listChangesByResourceGroup(resourceGroupName, startTime, endTime, options) {
32
+ const iter = this.listChangesByResourceGroupPagingAll(resourceGroupName, startTime, endTime, options);
33
+ return {
34
+ next() {
35
+ return iter.next();
36
+ },
37
+ [Symbol.asyncIterator]() {
38
+ return this;
39
+ },
40
+ byPage: (settings) => {
41
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
42
+ throw new Error("maxPageSize is not supported by this operation.");
43
+ }
44
+ return this.listChangesByResourceGroupPagingPage(resourceGroupName, startTime, endTime, options, settings);
45
+ }
46
+ };
47
+ }
48
+ listChangesByResourceGroupPagingPage(resourceGroupName, startTime, endTime, options, settings) {
49
+ return __asyncGenerator(this, arguments, function* listChangesByResourceGroupPagingPage_1() {
50
+ let result;
51
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
52
+ if (!continuationToken) {
53
+ result = yield __await(this._listChangesByResourceGroup(resourceGroupName, startTime, endTime, options));
54
+ let page = result.value || [];
55
+ continuationToken = result.nextLink;
56
+ setContinuationToken(page, continuationToken);
57
+ yield yield __await(page);
58
+ }
59
+ while (continuationToken) {
60
+ result = yield __await(this._listChangesByResourceGroupNext(resourceGroupName, startTime, endTime, continuationToken, options));
61
+ continuationToken = result.nextLink;
62
+ let page = result.value || [];
63
+ setContinuationToken(page, continuationToken);
64
+ yield yield __await(page);
65
+ }
66
+ });
67
+ }
68
+ listChangesByResourceGroupPagingAll(resourceGroupName, startTime, endTime, options) {
69
+ return __asyncGenerator(this, arguments, function* listChangesByResourceGroupPagingAll_1() {
70
+ var _a, e_1, _b, _c;
71
+ try {
72
+ for (var _d = true, _e = __asyncValues(this.listChangesByResourceGroupPagingPage(resourceGroupName, startTime, endTime, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
73
+ _c = _f.value;
74
+ _d = false;
75
+ const page = _c;
76
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
77
+ }
78
+ }
79
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
80
+ finally {
81
+ try {
82
+ if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
83
+ }
84
+ finally { if (e_1) throw e_1.error; }
85
+ }
86
+ });
87
+ }
88
+ /**
89
+ * List the changes of a subscription within the specified time range. Customer data will always be
90
+ * masked.
91
+ * @param startTime Specifies the start time of the changes request.
92
+ * @param endTime Specifies the end time of the changes request.
93
+ * @param options The options parameters.
94
+ */
95
+ listChangesBySubscription(startTime, endTime, options) {
96
+ const iter = this.listChangesBySubscriptionPagingAll(startTime, endTime, options);
97
+ return {
98
+ next() {
99
+ return iter.next();
100
+ },
101
+ [Symbol.asyncIterator]() {
102
+ return this;
103
+ },
104
+ byPage: (settings) => {
105
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
106
+ throw new Error("maxPageSize is not supported by this operation.");
107
+ }
108
+ return this.listChangesBySubscriptionPagingPage(startTime, endTime, options, settings);
109
+ }
110
+ };
111
+ }
112
+ listChangesBySubscriptionPagingPage(startTime, endTime, options, settings) {
113
+ return __asyncGenerator(this, arguments, function* listChangesBySubscriptionPagingPage_1() {
114
+ let result;
115
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
116
+ if (!continuationToken) {
117
+ result = yield __await(this._listChangesBySubscription(startTime, endTime, 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._listChangesBySubscriptionNext(startTime, endTime, continuationToken, options));
125
+ continuationToken = result.nextLink;
126
+ let page = result.value || [];
127
+ setContinuationToken(page, continuationToken);
128
+ yield yield __await(page);
129
+ }
130
+ });
131
+ }
132
+ listChangesBySubscriptionPagingAll(startTime, endTime, options) {
133
+ return __asyncGenerator(this, arguments, function* listChangesBySubscriptionPagingAll_1() {
134
+ var _a, e_2, _b, _c;
135
+ try {
136
+ for (var _d = true, _e = __asyncValues(this.listChangesBySubscriptionPagingPage(startTime, endTime, 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
+ });
151
+ }
152
+ /**
153
+ * List the changes of a resource group within the specified time range. Customer data will always be
154
+ * masked.
155
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
156
+ * @param startTime Specifies the start time of the changes request.
157
+ * @param endTime Specifies the end time of the changes request.
158
+ * @param options The options parameters.
159
+ */
160
+ _listChangesByResourceGroup(resourceGroupName, startTime, endTime, options) {
161
+ return this.client.sendOperationRequest({ resourceGroupName, startTime, endTime, options }, listChangesByResourceGroupOperationSpec);
162
+ }
163
+ /**
164
+ * List the changes of a subscription within the specified time range. Customer data will always be
165
+ * masked.
166
+ * @param startTime Specifies the start time of the changes request.
167
+ * @param endTime Specifies the end time of the changes request.
168
+ * @param options The options parameters.
169
+ */
170
+ _listChangesBySubscription(startTime, endTime, options) {
171
+ return this.client.sendOperationRequest({ startTime, endTime, options }, listChangesBySubscriptionOperationSpec);
172
+ }
173
+ /**
174
+ * ListChangesByResourceGroupNext
175
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
176
+ * @param startTime Specifies the start time of the changes request.
177
+ * @param endTime Specifies the end time of the changes request.
178
+ * @param nextLink The nextLink from the previous successful call to the ListChangesByResourceGroup
179
+ * method.
180
+ * @param options The options parameters.
181
+ */
182
+ _listChangesByResourceGroupNext(resourceGroupName, startTime, endTime, nextLink, options) {
183
+ return this.client.sendOperationRequest({ resourceGroupName, startTime, endTime, nextLink, options }, listChangesByResourceGroupNextOperationSpec);
184
+ }
185
+ /**
186
+ * ListChangesBySubscriptionNext
187
+ * @param startTime Specifies the start time of the changes request.
188
+ * @param endTime Specifies the end time of the changes request.
189
+ * @param nextLink The nextLink from the previous successful call to the ListChangesBySubscription
190
+ * method.
191
+ * @param options The options parameters.
192
+ */
193
+ _listChangesBySubscriptionNext(startTime, endTime, nextLink, options) {
194
+ return this.client.sendOperationRequest({ startTime, endTime, nextLink, options }, listChangesBySubscriptionNextOperationSpec);
195
+ }
196
+ }
197
+ // Operation Specifications
198
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
199
+ const listChangesByResourceGroupOperationSpec = {
200
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ChangeAnalysis/changes",
201
+ httpMethod: "GET",
202
+ responses: {
203
+ 200: {
204
+ bodyMapper: Mappers.ChangeList
205
+ },
206
+ default: {
207
+ bodyMapper: Mappers.ErrorResponse
208
+ }
209
+ },
210
+ queryParameters: [
211
+ Parameters.apiVersion,
212
+ Parameters.skipToken,
213
+ Parameters.startTime,
214
+ Parameters.endTime
215
+ ],
216
+ urlParameters: [
217
+ Parameters.$host,
218
+ Parameters.subscriptionId,
219
+ Parameters.resourceGroupName
220
+ ],
221
+ headerParameters: [Parameters.accept],
222
+ serializer
223
+ };
224
+ const listChangesBySubscriptionOperationSpec = {
225
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.ChangeAnalysis/changes",
226
+ httpMethod: "GET",
227
+ responses: {
228
+ 200: {
229
+ bodyMapper: Mappers.ChangeList
230
+ },
231
+ default: {
232
+ bodyMapper: Mappers.ErrorResponse
233
+ }
234
+ },
235
+ queryParameters: [
236
+ Parameters.apiVersion,
237
+ Parameters.skipToken,
238
+ Parameters.startTime,
239
+ Parameters.endTime
240
+ ],
241
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
242
+ headerParameters: [Parameters.accept],
243
+ serializer
244
+ };
245
+ const listChangesByResourceGroupNextOperationSpec = {
246
+ path: "{nextLink}",
247
+ httpMethod: "GET",
248
+ responses: {
249
+ 200: {
250
+ bodyMapper: Mappers.ChangeList
251
+ },
252
+ default: {
253
+ bodyMapper: Mappers.ErrorResponse
254
+ }
255
+ },
256
+ queryParameters: [
257
+ Parameters.apiVersion,
258
+ Parameters.skipToken,
259
+ Parameters.startTime,
260
+ Parameters.endTime
261
+ ],
262
+ urlParameters: [
263
+ Parameters.$host,
264
+ Parameters.nextLink,
265
+ Parameters.subscriptionId,
266
+ Parameters.resourceGroupName
267
+ ],
268
+ headerParameters: [Parameters.accept],
269
+ serializer
270
+ };
271
+ const listChangesBySubscriptionNextOperationSpec = {
272
+ path: "{nextLink}",
273
+ httpMethod: "GET",
274
+ responses: {
275
+ 200: {
276
+ bodyMapper: Mappers.ChangeList
277
+ },
278
+ default: {
279
+ bodyMapper: Mappers.ErrorResponse
280
+ }
281
+ },
282
+ queryParameters: [
283
+ Parameters.apiVersion,
284
+ Parameters.skipToken,
285
+ Parameters.startTime,
286
+ Parameters.endTime
287
+ ],
288
+ urlParameters: [
289
+ Parameters.$host,
290
+ Parameters.nextLink,
291
+ Parameters.subscriptionId
292
+ ],
293
+ headerParameters: [Parameters.accept],
294
+ serializer
295
+ };
296
+ //# sourceMappingURL=changes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"changes.js","sourceRoot":"","sources":["../../../src/operations/changes.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;AActD,4CAA4C;AAC5C,2CAA2C;AAC3C,MAAM,OAAO,WAAW;IAGtB;;;OAGG;IACH,YAAY,MAA2C;QACrD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;OAOG;IACI,0BAA0B,CAC/B,iBAAyB,EACzB,SAAe,EACf,OAAa,EACb,OAAyD;QAEzD,MAAM,IAAI,GAAG,IAAI,CAAC,mCAAmC,CACnD,iBAAiB,EACjB,SAAS,EACT,OAAO,EACP,OAAO,CACR,CAAC;QACF,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,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,oCAAoC,CAC9C,iBAAiB,EACjB,SAAS,EACT,OAAO,EACP,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,oCAAoC,CACjD,iBAAyB,E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(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 { Changes } 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 { AzureChangeAnalysisManagementClient } from \"../azureChangeAnalysisManagementClient.js\";\nimport {\n Change,\n ChangesListChangesByResourceGroupNextOptionalParams,\n ChangesListChangesByResourceGroupOptionalParams,\n ChangesListChangesByResourceGroupResponse,\n ChangesListChangesBySubscriptionNextOptionalParams,\n ChangesListChangesBySubscriptionOptionalParams,\n ChangesListChangesBySubscriptionResponse,\n ChangesListChangesByResourceGroupNextResponse,\n ChangesListChangesBySubscriptionNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Changes operations. */\nexport class ChangesImpl implements Changes {\n private readonly client: AzureChangeAnalysisManagementClient;\n\n /**\n * Initialize a new instance of the class Changes class.\n * @param client Reference to the service client\n */\n constructor(client: AzureChangeAnalysisManagementClient) {\n this.client = client;\n }\n\n /**\n * List the changes of a resource group within the specified time range. Customer data will always be\n * masked.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param startTime Specifies the start time of the changes request.\n * @param endTime Specifies the end time of the changes request.\n * @param options The options parameters.\n */\n public listChangesByResourceGroup(\n resourceGroupName: string,\n startTime: Date,\n endTime: Date,\n options?: ChangesListChangesByResourceGroupOptionalParams\n ): PagedAsyncIterableIterator<Change> {\n const iter = this.listChangesByResourceGroupPagingAll(\n resourceGroupName,\n startTime,\n endTime,\n options\n );\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.listChangesByResourceGroupPagingPage(\n resourceGroupName,\n startTime,\n endTime,\n options,\n settings\n );\n }\n };\n }\n\n private async *listChangesByResourceGroupPagingPage(\n resourceGroupName: string,\n startTime: Date,\n endTime: Date,\n options?: ChangesListChangesByResourceGroupOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Change[]> {\n let result: ChangesListChangesByResourceGroupResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listChangesByResourceGroup(\n resourceGroupName,\n startTime,\n endTime,\n options\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listChangesByResourceGroupNext(\n resourceGroupName,\n startTime,\n endTime,\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 *listChangesByResourceGroupPagingAll(\n resourceGroupName: string,\n startTime: Date,\n endTime: Date,\n options?: ChangesListChangesByResourceGroupOptionalParams\n ): AsyncIterableIterator<Change> {\n for await (const page of this.listChangesByResourceGroupPagingPage(\n resourceGroupName,\n startTime,\n endTime,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * List the changes of a subscription within the specified time range. Customer data will always be\n * masked.\n * @param startTime Specifies the start time of the changes request.\n * @param endTime Specifies the end time of the changes request.\n * @param options The options parameters.\n */\n public listChangesBySubscription(\n startTime: Date,\n endTime: Date,\n options?: ChangesListChangesBySubscriptionOptionalParams\n ): PagedAsyncIterableIterator<Change> {\n const iter = this.listChangesBySubscriptionPagingAll(\n startTime,\n endTime,\n options\n );\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.listChangesBySubscriptionPagingPage(\n startTime,\n endTime,\n options,\n settings\n );\n }\n };\n }\n\n private async *listChangesBySubscriptionPagingPage(\n startTime: Date,\n endTime: Date,\n options?: ChangesListChangesBySubscriptionOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Change[]> {\n let result: ChangesListChangesBySubscriptionResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listChangesBySubscription(\n startTime,\n endTime,\n options\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listChangesBySubscriptionNext(\n startTime,\n endTime,\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 *listChangesBySubscriptionPagingAll(\n startTime: Date,\n endTime: Date,\n options?: ChangesListChangesBySubscriptionOptionalParams\n ): AsyncIterableIterator<Change> {\n for await (const page of this.listChangesBySubscriptionPagingPage(\n startTime,\n endTime,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * List the changes of a resource group within the specified time range. Customer data will always be\n * masked.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param startTime Specifies the start time of the changes request.\n * @param endTime Specifies the end time of the changes request.\n * @param options The options parameters.\n */\n private _listChangesByResourceGroup(\n resourceGroupName: string,\n startTime: Date,\n endTime: Date,\n options?: ChangesListChangesByResourceGroupOptionalParams\n ): Promise<ChangesListChangesByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, startTime, endTime, options },\n listChangesByResourceGroupOperationSpec\n );\n }\n\n /**\n * List the changes of a subscription within the specified time range. Customer data will always be\n * masked.\n * @param startTime Specifies the start time of the changes request.\n * @param endTime Specifies the end time of the changes request.\n * @param options The options parameters.\n */\n private _listChangesBySubscription(\n startTime: Date,\n endTime: Date,\n options?: ChangesListChangesBySubscriptionOptionalParams\n ): Promise<ChangesListChangesBySubscriptionResponse> {\n return this.client.sendOperationRequest(\n { startTime, endTime, options },\n listChangesBySubscriptionOperationSpec\n );\n }\n\n /**\n * ListChangesByResourceGroupNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param startTime Specifies the start time of the changes request.\n * @param endTime Specifies the end time of the changes request.\n * @param nextLink The nextLink from the previous successful call to the ListChangesByResourceGroup\n * method.\n * @param options The options parameters.\n */\n private _listChangesByResourceGroupNext(\n resourceGroupName: string,\n startTime: Date,\n endTime: Date,\n nextLink: string,\n options?: ChangesListChangesByResourceGroupNextOptionalParams\n ): Promise<ChangesListChangesByResourceGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, startTime, endTime, nextLink, options },\n listChangesByResourceGroupNextOperationSpec\n );\n }\n\n /**\n * ListChangesBySubscriptionNext\n * @param startTime Specifies the start time of the changes request.\n * @param endTime Specifies the end time of the changes request.\n * @param nextLink The nextLink from the previous successful call to the ListChangesBySubscription\n * method.\n * @param options The options parameters.\n */\n private _listChangesBySubscriptionNext(\n startTime: Date,\n endTime: Date,\n nextLink: string,\n options?: ChangesListChangesBySubscriptionNextOptionalParams\n ): Promise<ChangesListChangesBySubscriptionNextResponse> {\n return this.client.sendOperationRequest(\n { startTime, endTime, nextLink, options },\n listChangesBySubscriptionNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listChangesByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ChangeAnalysis/changes\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ChangeList\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.skipToken,\n Parameters.startTime,\n Parameters.endTime\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listChangesBySubscriptionOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.ChangeAnalysis/changes\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ChangeList\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.skipToken,\n Parameters.startTime,\n Parameters.endTime\n ],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listChangesByResourceGroupNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ChangeList\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.skipToken,\n Parameters.startTime,\n Parameters.endTime\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n Parameters.resourceGroupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listChangesBySubscriptionNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ChangeList\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.skipToken,\n Parameters.startTime,\n Parameters.endTime\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
@@ -0,0 +1,4 @@
1
+ export * from "./operations.js";
2
+ export * from "./resourceChanges.js";
3
+ export * from "./changes.js";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAQA,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,cAAc,CAAC"}
@@ -0,0 +1,11 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ export * from "./operations.js";
9
+ export * from "./resourceChanges.js";
10
+ export * from "./changes.js";
11
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,cAAc,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\nexport * from \"./operations.js\";\nexport * from \"./resourceChanges.js\";\nexport * from \"./changes.js\";\n"]}
@@ -0,0 +1,34 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { Operations } from "../operationsInterfaces/index.js";
3
+ import { AzureChangeAnalysisManagementClient } from "../azureChangeAnalysisManagementClient.js";
4
+ import { ResourceProviderOperationDefinition, OperationsListOptionalParams } from "../models/index.js";
5
+ /** Class containing Operations operations. */
6
+ export declare class OperationsImpl implements Operations {
7
+ private readonly client;
8
+ /**
9
+ * Initialize a new instance of the class Operations class.
10
+ * @param client Reference to the service client
11
+ */
12
+ constructor(client: AzureChangeAnalysisManagementClient);
13
+ /**
14
+ * Lists all the supported operations by the Microsoft.ChangeAnalysis resource provider along with
15
+ * their descriptions.
16
+ * @param options The options parameters.
17
+ */
18
+ list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<ResourceProviderOperationDefinition>;
19
+ private listPagingPage;
20
+ private listPagingAll;
21
+ /**
22
+ * Lists all the supported operations by the Microsoft.ChangeAnalysis resource provider along with
23
+ * their descriptions.
24
+ * @param options The options parameters.
25
+ */
26
+ private _list;
27
+ /**
28
+ * ListNext
29
+ * @param nextLink The nextLink from the previous successful call to the List method.
30
+ * @param options The options parameters.
31
+ */
32
+ private _listNext;
33
+ }
34
+ //# sourceMappingURL=operations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAI9D,OAAO,EAAE,mCAAmC,EAAE,MAAM,2CAA2C,CAAC;AAChG,OAAO,EACL,mCAAmC,EAEnC,4BAA4B,EAG7B,MAAM,oBAAoB,CAAC;AAG5B,8CAA8C;AAC9C,qBAAa,cAAe,YAAW,UAAU;IAC/C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAsC;IAE7D;;;OAGG;gBACS,MAAM,EAAE,mCAAmC;IAIvD;;;;OAIG;IACI,IAAI,CACT,OAAO,CAAC,EAAE,4BAA4B,GACrC,0BAA0B,CAAC,mCAAmC,CAAC;YAkBnD,cAAc;YAsBd,aAAa;IAQ5B;;;;OAIG;IACH,OAAO,CAAC,KAAK;IAMb;;;;OAIG;IACH,OAAO,CAAC,SAAS;CASlB"}
@@ -0,0 +1,136 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
+ import { setContinuationToken } from "../pagingHelper.js";
10
+ import * as coreClient from "@azure/core-client";
11
+ import * as Mappers from "../models/mappers.js";
12
+ import * as Parameters from "../models/parameters.js";
13
+ /// <reference lib="esnext.asynciterable" />
14
+ /** Class containing Operations operations. */
15
+ export class OperationsImpl {
16
+ /**
17
+ * Initialize a new instance of the class Operations class.
18
+ * @param client Reference to the service client
19
+ */
20
+ constructor(client) {
21
+ this.client = client;
22
+ }
23
+ /**
24
+ * Lists all the supported operations by the Microsoft.ChangeAnalysis resource provider along with
25
+ * their descriptions.
26
+ * @param options The options parameters.
27
+ */
28
+ list(options) {
29
+ const iter = this.listPagingAll(options);
30
+ return {
31
+ next() {
32
+ return iter.next();
33
+ },
34
+ [Symbol.asyncIterator]() {
35
+ return this;
36
+ },
37
+ byPage: (settings) => {
38
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
39
+ throw new Error("maxPageSize is not supported by this operation.");
40
+ }
41
+ return this.listPagingPage(options, settings);
42
+ }
43
+ };
44
+ }
45
+ listPagingPage(options, settings) {
46
+ return __asyncGenerator(this, arguments, function* listPagingPage_1() {
47
+ let result;
48
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
49
+ if (!continuationToken) {
50
+ result = yield __await(this._list(options));
51
+ let page = result.value || [];
52
+ continuationToken = result.nextLink;
53
+ setContinuationToken(page, continuationToken);
54
+ yield yield __await(page);
55
+ }
56
+ while (continuationToken) {
57
+ result = yield __await(this._listNext(continuationToken, options));
58
+ continuationToken = result.nextLink;
59
+ let page = result.value || [];
60
+ setContinuationToken(page, continuationToken);
61
+ yield yield __await(page);
62
+ }
63
+ });
64
+ }
65
+ listPagingAll(options) {
66
+ return __asyncGenerator(this, arguments, function* listPagingAll_1() {
67
+ var _a, e_1, _b, _c;
68
+ try {
69
+ for (var _d = true, _e = __asyncValues(this.listPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
70
+ _c = _f.value;
71
+ _d = false;
72
+ const page = _c;
73
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
74
+ }
75
+ }
76
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
77
+ finally {
78
+ try {
79
+ if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
80
+ }
81
+ finally { if (e_1) throw e_1.error; }
82
+ }
83
+ });
84
+ }
85
+ /**
86
+ * Lists all the supported operations by the Microsoft.ChangeAnalysis resource provider along with
87
+ * their descriptions.
88
+ * @param options The options parameters.
89
+ */
90
+ _list(options) {
91
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
92
+ }
93
+ /**
94
+ * ListNext
95
+ * @param nextLink The nextLink from the previous successful call to the List method.
96
+ * @param options The options parameters.
97
+ */
98
+ _listNext(nextLink, options) {
99
+ return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
100
+ }
101
+ }
102
+ // Operation Specifications
103
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
104
+ const listOperationSpec = {
105
+ path: "/providers/Microsoft.ChangeAnalysis/operations",
106
+ httpMethod: "GET",
107
+ responses: {
108
+ 200: {
109
+ bodyMapper: Mappers.ResourceProviderOperationList
110
+ },
111
+ default: {
112
+ bodyMapper: Mappers.ErrorResponse
113
+ }
114
+ },
115
+ queryParameters: [Parameters.apiVersion, Parameters.skipToken],
116
+ urlParameters: [Parameters.$host],
117
+ headerParameters: [Parameters.accept],
118
+ serializer
119
+ };
120
+ const listNextOperationSpec = {
121
+ path: "{nextLink}",
122
+ httpMethod: "GET",
123
+ responses: {
124
+ 200: {
125
+ bodyMapper: Mappers.ResourceProviderOperationList
126
+ },
127
+ default: {
128
+ bodyMapper: Mappers.ErrorResponse
129
+ }
130
+ },
131
+ queryParameters: [Parameters.apiVersion, Parameters.skipToken],
132
+ urlParameters: [Parameters.$host, Parameters.nextLink],
133
+ headerParameters: [Parameters.accept],
134
+ serializer
135
+ };
136
+ //# sourceMappingURL=operations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KA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OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,EAAE,UAAU,CAAC,SAAS,CAAC;IAC9D,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC;IACjC,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,6BAA6B;SAClD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,EAAE,UAAU,CAAC,SAAS,CAAC;IAC9D,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC;IACtD,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 { Operations } 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 { AzureChangeAnalysisManagementClient } from \"../azureChangeAnalysisManagementClient.js\";\nimport {\n ResourceProviderOperationDefinition,\n OperationsListNextOptionalParams,\n OperationsListOptionalParams,\n OperationsListResponse,\n OperationsListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Operations operations. */\nexport class OperationsImpl implements Operations {\n private readonly client: AzureChangeAnalysisManagementClient;\n\n /**\n * Initialize a new instance of the class Operations class.\n * @param client Reference to the service client\n */\n constructor(client: AzureChangeAnalysisManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists all the supported operations by the Microsoft.ChangeAnalysis resource provider along with\n * their descriptions.\n * @param options The options parameters.\n */\n public list(\n options?: OperationsListOptionalParams\n ): PagedAsyncIterableIterator<ResourceProviderOperationDefinition> {\n const iter = this.listPagingAll(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(options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n options?: OperationsListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<ResourceProviderOperationDefinition[]> {\n let result: OperationsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(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(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: OperationsListOptionalParams\n ): AsyncIterableIterator<ResourceProviderOperationDefinition> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Lists all the supported operations by the Microsoft.ChangeAnalysis resource provider along with\n * their descriptions.\n * @param options The options parameters.\n */\n private _list(\n options?: OperationsListOptionalParams\n ): Promise<OperationsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * ListNext\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 nextLink: string,\n options?: OperationsListNextOptionalParams\n ): Promise<OperationsListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.ChangeAnalysis/operations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ResourceProviderOperationList\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.skipToken],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ResourceProviderOperationList\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.skipToken],\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
@@ -0,0 +1,43 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { ResourceChanges } from "../operationsInterfaces/index.js";
3
+ import { AzureChangeAnalysisManagementClient } from "../azureChangeAnalysisManagementClient.js";
4
+ import { Change, ResourceChangesListOptionalParams } from "../models/index.js";
5
+ /** Class containing ResourceChanges operations. */
6
+ export declare class ResourceChangesImpl implements ResourceChanges {
7
+ private readonly client;
8
+ /**
9
+ * Initialize a new instance of the class ResourceChanges class.
10
+ * @param client Reference to the service client
11
+ */
12
+ constructor(client: AzureChangeAnalysisManagementClient);
13
+ /**
14
+ * List the changes of a resource within the specified time range. Customer data will be masked if the
15
+ * user doesn't have access.
16
+ * @param resourceId The identifier of the resource.
17
+ * @param startTime Specifies the start time of the changes request.
18
+ * @param endTime Specifies the end time of the changes request.
19
+ * @param options The options parameters.
20
+ */
21
+ list(resourceId: string, startTime: Date, endTime: Date, options?: ResourceChangesListOptionalParams): PagedAsyncIterableIterator<Change>;
22
+ private listPagingPage;
23
+ private listPagingAll;
24
+ /**
25
+ * List the changes of a resource within the specified time range. Customer data will be masked if the
26
+ * user doesn't have access.
27
+ * @param resourceId The identifier of the resource.
28
+ * @param startTime Specifies the start time of the changes request.
29
+ * @param endTime Specifies the end time of the changes request.
30
+ * @param options The options parameters.
31
+ */
32
+ private _list;
33
+ /**
34
+ * ListNext
35
+ * @param resourceId The identifier of the resource.
36
+ * @param startTime Specifies the start time of the changes request.
37
+ * @param endTime Specifies the end time of the changes request.
38
+ * @param nextLink The nextLink from the previous successful call to the List method.
39
+ * @param options The options parameters.
40
+ */
41
+ private _listNext;
42
+ }
43
+ //# sourceMappingURL=resourceChanges.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resourceChanges.d.ts","sourceRoot":"","sources":["../../../src/operations/resourceChanges.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAInE,OAAO,EAAE,mCAAmC,EAAE,MAAM,2CAA2C,CAAC;AAChG,OAAO,EACL,MAAM,EAEN,iCAAiC,EAGlC,MAAM,oBAAoB,CAAC;AAG5B,mDAAmD;AACnD,qBAAa,mBAAoB,YAAW,eAAe;IACzD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAsC;IAE7D;;;OAGG;gBACS,MAAM,EAAE,mCAAmC;IAIvD;;;;;;;OAOG;IACI,IAAI,CACT,UAAU,EAAE,MAAM,EAClB,SAAS,EAAE,IAAI,EACf,OAAO,EAAE,IAAI,EACb,OAAO,CAAC,EAAE,iCAAiC,GAC1C,0BAA0B,CAAC,MAAM,CAAC;YAwBtB,cAAc;YA+Bd,aAAa;IAgB5B;;;;;;;OAOG;IACH,OAAO,CAAC,KAAK;IAYb;;;;;;;OAOG;IACH,OAAO,CAAC,SAAS;CAYlB"}