@azure/arm-changeanalysis 2.1.1-alpha.20250101.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,71 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { Changes } from "../operationsInterfaces/index.js";
3
+ import { AzureChangeAnalysisManagementClient } from "../azureChangeAnalysisManagementClient.js";
4
+ import { Change, ChangesListChangesByResourceGroupOptionalParams, ChangesListChangesBySubscriptionOptionalParams } from "../models/index.js";
5
+ /** Class containing Changes operations. */
6
+ export declare class ChangesImpl implements Changes {
7
+ private readonly client;
8
+ /**
9
+ * Initialize a new instance of the class Changes class.
10
+ * @param client Reference to the service client
11
+ */
12
+ constructor(client: AzureChangeAnalysisManagementClient);
13
+ /**
14
+ * List the changes of a resource group within the specified time range. Customer data will always be
15
+ * masked.
16
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
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
+ listChangesByResourceGroup(resourceGroupName: string, startTime: Date, endTime: Date, options?: ChangesListChangesByResourceGroupOptionalParams): PagedAsyncIterableIterator<Change>;
22
+ private listChangesByResourceGroupPagingPage;
23
+ private listChangesByResourceGroupPagingAll;
24
+ /**
25
+ * List the changes of a subscription within the specified time range. Customer data will always be
26
+ * masked.
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
+ listChangesBySubscription(startTime: Date, endTime: Date, options?: ChangesListChangesBySubscriptionOptionalParams): PagedAsyncIterableIterator<Change>;
32
+ private listChangesBySubscriptionPagingPage;
33
+ private listChangesBySubscriptionPagingAll;
34
+ /**
35
+ * List the changes of a resource group within the specified time range. Customer data will always be
36
+ * masked.
37
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
38
+ * @param startTime Specifies the start time of the changes request.
39
+ * @param endTime Specifies the end time of the changes request.
40
+ * @param options The options parameters.
41
+ */
42
+ private _listChangesByResourceGroup;
43
+ /**
44
+ * List the changes of a subscription within the specified time range. Customer data will always be
45
+ * masked.
46
+ * @param startTime Specifies the start time of the changes request.
47
+ * @param endTime Specifies the end time of the changes request.
48
+ * @param options The options parameters.
49
+ */
50
+ private _listChangesBySubscription;
51
+ /**
52
+ * ListChangesByResourceGroupNext
53
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
54
+ * @param startTime Specifies the start time of the changes request.
55
+ * @param endTime Specifies the end time of the changes request.
56
+ * @param nextLink The nextLink from the previous successful call to the ListChangesByResourceGroup
57
+ * method.
58
+ * @param options The options parameters.
59
+ */
60
+ private _listChangesByResourceGroupNext;
61
+ /**
62
+ * ListChangesBySubscriptionNext
63
+ * @param startTime Specifies the start time of the changes request.
64
+ * @param endTime Specifies the end time of the changes request.
65
+ * @param nextLink The nextLink from the previous successful call to the ListChangesBySubscription
66
+ * method.
67
+ * @param options The options parameters.
68
+ */
69
+ private _listChangesBySubscriptionNext;
70
+ }
71
+ //# sourceMappingURL=changes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"changes.d.ts","sourceRoot":"","sources":["../../../src/operations/changes.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAI3D,OAAO,EAAE,mCAAmC,EAAE,MAAM,2CAA2C,CAAC;AAChG,OAAO,EACL,MAAM,EAEN,+CAA+C,EAG/C,8CAA8C,EAI/C,MAAM,oBAAoB,CAAC;AAG5B,2CAA2C;AAC3C,qBAAa,WAAY,YAAW,OAAO;IACzC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAsC;IAE7D;;;OAGG;gBACS,MAAM,EAAE,mCAAmC;IAIvD;;;;;;;OAOG;IACI,0BAA0B,CAC/B,iBAAiB,EAAE,MAAM,EACzB,SAAS,EAAE,IAAI,EACf,OAAO,EAAE,IAAI,EACb,OAAO,CAAC,EAAE,+CAA+C,GACxD,0BAA0B,CAAC,MAAM,CAAC;YA6BtB,oCAAoC;YAoCpC,mCAAmC;IAgBlD;;;;;;OAMG;IACI,yBAAyB,CAC9B,SAAS,EAAE,IAAI,EACf,OAAO,EAAE,IAAI,EACb,OAAO,CAAC,EAAE,8CAA8C,GACvD,0BAA0B,CAAC,MAAM,CAAC;YA2BtB,mCAAmC;YAiCnC,kCAAkC;IAcjD;;;;;;;OAOG;IACH,OAAO,CAAC,2BAA2B;IAYnC;;;;;;OAMG;IACH,OAAO,CAAC,0BAA0B;IAWlC;;;;;;;;OAQG;IACH,OAAO,CAAC,+BAA+B;IAavC;;;;;;;OAOG;IACH,OAAO,CAAC,8BAA8B;CAWvC"}
@@ -0,0 +1,300 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) Microsoft Corporation.
4
+ * Licensed under the MIT License.
5
+ *
6
+ * Code generated by Microsoft (R) AutoRest Code Generator.
7
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.ChangesImpl = void 0;
11
+ const tslib_1 = require("tslib");
12
+ const pagingHelper_js_1 = require("../pagingHelper.js");
13
+ const coreClient = tslib_1.__importStar(require("@azure/core-client"));
14
+ const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
15
+ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
16
+ /// <reference lib="esnext.asynciterable" />
17
+ /** Class containing Changes operations. */
18
+ class ChangesImpl {
19
+ /**
20
+ * Initialize a new instance of the class Changes class.
21
+ * @param client Reference to the service client
22
+ */
23
+ constructor(client) {
24
+ this.client = client;
25
+ }
26
+ /**
27
+ * List the changes of a resource group within the specified time range. Customer data will always be
28
+ * masked.
29
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
30
+ * @param startTime Specifies the start time of the changes request.
31
+ * @param endTime Specifies the end time of the changes request.
32
+ * @param options The options parameters.
33
+ */
34
+ listChangesByResourceGroup(resourceGroupName, startTime, endTime, options) {
35
+ const iter = this.listChangesByResourceGroupPagingAll(resourceGroupName, startTime, endTime, options);
36
+ return {
37
+ next() {
38
+ return iter.next();
39
+ },
40
+ [Symbol.asyncIterator]() {
41
+ return this;
42
+ },
43
+ byPage: (settings) => {
44
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
45
+ throw new Error("maxPageSize is not supported by this operation.");
46
+ }
47
+ return this.listChangesByResourceGroupPagingPage(resourceGroupName, startTime, endTime, options, settings);
48
+ }
49
+ };
50
+ }
51
+ listChangesByResourceGroupPagingPage(resourceGroupName, startTime, endTime, options, settings) {
52
+ return tslib_1.__asyncGenerator(this, arguments, function* listChangesByResourceGroupPagingPage_1() {
53
+ let result;
54
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
55
+ if (!continuationToken) {
56
+ result = yield tslib_1.__await(this._listChangesByResourceGroup(resourceGroupName, startTime, endTime, options));
57
+ let page = result.value || [];
58
+ continuationToken = result.nextLink;
59
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
60
+ yield yield tslib_1.__await(page);
61
+ }
62
+ while (continuationToken) {
63
+ result = yield tslib_1.__await(this._listChangesByResourceGroupNext(resourceGroupName, startTime, endTime, continuationToken, options));
64
+ continuationToken = result.nextLink;
65
+ let page = result.value || [];
66
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
67
+ yield yield tslib_1.__await(page);
68
+ }
69
+ });
70
+ }
71
+ listChangesByResourceGroupPagingAll(resourceGroupName, startTime, endTime, options) {
72
+ return tslib_1.__asyncGenerator(this, arguments, function* listChangesByResourceGroupPagingAll_1() {
73
+ var _a, e_1, _b, _c;
74
+ try {
75
+ for (var _d = true, _e = tslib_1.__asyncValues(this.listChangesByResourceGroupPagingPage(resourceGroupName, startTime, endTime, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
76
+ _c = _f.value;
77
+ _d = false;
78
+ const page = _c;
79
+ yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
80
+ }
81
+ }
82
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
83
+ finally {
84
+ try {
85
+ if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
86
+ }
87
+ finally { if (e_1) throw e_1.error; }
88
+ }
89
+ });
90
+ }
91
+ /**
92
+ * List the changes of a subscription within the specified time range. Customer data will always be
93
+ * masked.
94
+ * @param startTime Specifies the start time of the changes request.
95
+ * @param endTime Specifies the end time of the changes request.
96
+ * @param options The options parameters.
97
+ */
98
+ listChangesBySubscription(startTime, endTime, options) {
99
+ const iter = this.listChangesBySubscriptionPagingAll(startTime, endTime, options);
100
+ return {
101
+ next() {
102
+ return iter.next();
103
+ },
104
+ [Symbol.asyncIterator]() {
105
+ return this;
106
+ },
107
+ byPage: (settings) => {
108
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
109
+ throw new Error("maxPageSize is not supported by this operation.");
110
+ }
111
+ return this.listChangesBySubscriptionPagingPage(startTime, endTime, options, settings);
112
+ }
113
+ };
114
+ }
115
+ listChangesBySubscriptionPagingPage(startTime, endTime, options, settings) {
116
+ return tslib_1.__asyncGenerator(this, arguments, function* listChangesBySubscriptionPagingPage_1() {
117
+ let result;
118
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
119
+ if (!continuationToken) {
120
+ result = yield tslib_1.__await(this._listChangesBySubscription(startTime, endTime, options));
121
+ let page = result.value || [];
122
+ continuationToken = result.nextLink;
123
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
124
+ yield yield tslib_1.__await(page);
125
+ }
126
+ while (continuationToken) {
127
+ result = yield tslib_1.__await(this._listChangesBySubscriptionNext(startTime, endTime, continuationToken, options));
128
+ continuationToken = result.nextLink;
129
+ let page = result.value || [];
130
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
131
+ yield yield tslib_1.__await(page);
132
+ }
133
+ });
134
+ }
135
+ listChangesBySubscriptionPagingAll(startTime, endTime, options) {
136
+ return tslib_1.__asyncGenerator(this, arguments, function* listChangesBySubscriptionPagingAll_1() {
137
+ var _a, e_2, _b, _c;
138
+ try {
139
+ for (var _d = true, _e = tslib_1.__asyncValues(this.listChangesBySubscriptionPagingPage(startTime, endTime, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
140
+ _c = _f.value;
141
+ _d = false;
142
+ const page = _c;
143
+ yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
144
+ }
145
+ }
146
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
147
+ finally {
148
+ try {
149
+ if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
150
+ }
151
+ finally { if (e_2) throw e_2.error; }
152
+ }
153
+ });
154
+ }
155
+ /**
156
+ * List the changes of a resource group within the specified time range. Customer data will always be
157
+ * masked.
158
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
159
+ * @param startTime Specifies the start time of the changes request.
160
+ * @param endTime Specifies the end time of the changes request.
161
+ * @param options The options parameters.
162
+ */
163
+ _listChangesByResourceGroup(resourceGroupName, startTime, endTime, options) {
164
+ return this.client.sendOperationRequest({ resourceGroupName, startTime, endTime, options }, listChangesByResourceGroupOperationSpec);
165
+ }
166
+ /**
167
+ * List the changes of a subscription within the specified time range. Customer data will always be
168
+ * masked.
169
+ * @param startTime Specifies the start time of the changes request.
170
+ * @param endTime Specifies the end time of the changes request.
171
+ * @param options The options parameters.
172
+ */
173
+ _listChangesBySubscription(startTime, endTime, options) {
174
+ return this.client.sendOperationRequest({ startTime, endTime, options }, listChangesBySubscriptionOperationSpec);
175
+ }
176
+ /**
177
+ * ListChangesByResourceGroupNext
178
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
179
+ * @param startTime Specifies the start time of the changes request.
180
+ * @param endTime Specifies the end time of the changes request.
181
+ * @param nextLink The nextLink from the previous successful call to the ListChangesByResourceGroup
182
+ * method.
183
+ * @param options The options parameters.
184
+ */
185
+ _listChangesByResourceGroupNext(resourceGroupName, startTime, endTime, nextLink, options) {
186
+ return this.client.sendOperationRequest({ resourceGroupName, startTime, endTime, nextLink, options }, listChangesByResourceGroupNextOperationSpec);
187
+ }
188
+ /**
189
+ * ListChangesBySubscriptionNext
190
+ * @param startTime Specifies the start time of the changes request.
191
+ * @param endTime Specifies the end time of the changes request.
192
+ * @param nextLink The nextLink from the previous successful call to the ListChangesBySubscription
193
+ * method.
194
+ * @param options The options parameters.
195
+ */
196
+ _listChangesBySubscriptionNext(startTime, endTime, nextLink, options) {
197
+ return this.client.sendOperationRequest({ startTime, endTime, nextLink, options }, listChangesBySubscriptionNextOperationSpec);
198
+ }
199
+ }
200
+ exports.ChangesImpl = ChangesImpl;
201
+ // Operation Specifications
202
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
203
+ const listChangesByResourceGroupOperationSpec = {
204
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ChangeAnalysis/changes",
205
+ httpMethod: "GET",
206
+ responses: {
207
+ 200: {
208
+ bodyMapper: Mappers.ChangeList
209
+ },
210
+ default: {
211
+ bodyMapper: Mappers.ErrorResponse
212
+ }
213
+ },
214
+ queryParameters: [
215
+ Parameters.apiVersion,
216
+ Parameters.skipToken,
217
+ Parameters.startTime,
218
+ Parameters.endTime
219
+ ],
220
+ urlParameters: [
221
+ Parameters.$host,
222
+ Parameters.subscriptionId,
223
+ Parameters.resourceGroupName
224
+ ],
225
+ headerParameters: [Parameters.accept],
226
+ serializer
227
+ };
228
+ const listChangesBySubscriptionOperationSpec = {
229
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.ChangeAnalysis/changes",
230
+ httpMethod: "GET",
231
+ responses: {
232
+ 200: {
233
+ bodyMapper: Mappers.ChangeList
234
+ },
235
+ default: {
236
+ bodyMapper: Mappers.ErrorResponse
237
+ }
238
+ },
239
+ queryParameters: [
240
+ Parameters.apiVersion,
241
+ Parameters.skipToken,
242
+ Parameters.startTime,
243
+ Parameters.endTime
244
+ ],
245
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
246
+ headerParameters: [Parameters.accept],
247
+ serializer
248
+ };
249
+ const listChangesByResourceGroupNextOperationSpec = {
250
+ path: "{nextLink}",
251
+ httpMethod: "GET",
252
+ responses: {
253
+ 200: {
254
+ bodyMapper: Mappers.ChangeList
255
+ },
256
+ default: {
257
+ bodyMapper: Mappers.ErrorResponse
258
+ }
259
+ },
260
+ queryParameters: [
261
+ Parameters.apiVersion,
262
+ Parameters.skipToken,
263
+ Parameters.startTime,
264
+ Parameters.endTime
265
+ ],
266
+ urlParameters: [
267
+ Parameters.$host,
268
+ Parameters.nextLink,
269
+ Parameters.subscriptionId,
270
+ Parameters.resourceGroupName
271
+ ],
272
+ headerParameters: [Parameters.accept],
273
+ serializer
274
+ };
275
+ const listChangesBySubscriptionNextOperationSpec = {
276
+ path: "{nextLink}",
277
+ httpMethod: "GET",
278
+ responses: {
279
+ 200: {
280
+ bodyMapper: Mappers.ChangeList
281
+ },
282
+ default: {
283
+ bodyMapper: Mappers.ErrorResponse
284
+ }
285
+ },
286
+ queryParameters: [
287
+ Parameters.apiVersion,
288
+ Parameters.skipToken,
289
+ Parameters.startTime,
290
+ Parameters.endTime
291
+ ],
292
+ urlParameters: [
293
+ Parameters.$host,
294
+ Parameters.nextLink,
295
+ Parameters.subscriptionId
296
+ ],
297
+ headerParameters: [Parameters.accept],
298
+ serializer
299
+ };
300
+ //# sourceMappingURL=changes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"changes.js","sourceRoot":"","sources":["../../../src/operations/changes.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AActD,4CAA4C;AAC5C,2CAA2C;AAC3C,MAAa,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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,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;KAC7B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,0CAA0C,GAA6B;IAC3E,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE;QACf,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,OAAO;KACnB;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","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 { 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,14 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) Microsoft Corporation.
4
+ * Licensed under the MIT License.
5
+ *
6
+ * Code generated by Microsoft (R) AutoRest Code Generator.
7
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ const tslib_1 = require("tslib");
11
+ tslib_1.__exportStar(require("./operations.js"), exports);
12
+ tslib_1.__exportStar(require("./resourceChanges.js"), exports);
13
+ tslib_1.__exportStar(require("./changes.js"), exports);
14
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,0DAAgC;AAChC,+DAAqC;AACrC,uDAA6B","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,140 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) Microsoft Corporation.
4
+ * Licensed under the MIT License.
5
+ *
6
+ * Code generated by Microsoft (R) AutoRest Code Generator.
7
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.OperationsImpl = void 0;
11
+ const tslib_1 = require("tslib");
12
+ const pagingHelper_js_1 = require("../pagingHelper.js");
13
+ const coreClient = tslib_1.__importStar(require("@azure/core-client"));
14
+ const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
15
+ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
16
+ /// <reference lib="esnext.asynciterable" />
17
+ /** Class containing Operations operations. */
18
+ class OperationsImpl {
19
+ /**
20
+ * Initialize a new instance of the class Operations class.
21
+ * @param client Reference to the service client
22
+ */
23
+ constructor(client) {
24
+ this.client = client;
25
+ }
26
+ /**
27
+ * Lists all the supported operations by the Microsoft.ChangeAnalysis resource provider along with
28
+ * their descriptions.
29
+ * @param options The options parameters.
30
+ */
31
+ list(options) {
32
+ const iter = this.listPagingAll(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.listPagingPage(options, settings);
45
+ }
46
+ };
47
+ }
48
+ listPagingPage(options, settings) {
49
+ return tslib_1.__asyncGenerator(this, arguments, function* listPagingPage_1() {
50
+ let result;
51
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
52
+ if (!continuationToken) {
53
+ result = yield tslib_1.__await(this._list(options));
54
+ let page = result.value || [];
55
+ continuationToken = result.nextLink;
56
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
57
+ yield yield tslib_1.__await(page);
58
+ }
59
+ while (continuationToken) {
60
+ result = yield tslib_1.__await(this._listNext(continuationToken, options));
61
+ continuationToken = result.nextLink;
62
+ let page = result.value || [];
63
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
64
+ yield yield tslib_1.__await(page);
65
+ }
66
+ });
67
+ }
68
+ listPagingAll(options) {
69
+ return tslib_1.__asyncGenerator(this, arguments, function* listPagingAll_1() {
70
+ var _a, e_1, _b, _c;
71
+ try {
72
+ for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
73
+ _c = _f.value;
74
+ _d = false;
75
+ const page = _c;
76
+ yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__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 tslib_1.__await(_b.call(_e));
83
+ }
84
+ finally { if (e_1) throw e_1.error; }
85
+ }
86
+ });
87
+ }
88
+ /**
89
+ * Lists all the supported operations by the Microsoft.ChangeAnalysis resource provider along with
90
+ * their descriptions.
91
+ * @param options The options parameters.
92
+ */
93
+ _list(options) {
94
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
95
+ }
96
+ /**
97
+ * ListNext
98
+ * @param nextLink The nextLink from the previous successful call to the List method.
99
+ * @param options The options parameters.
100
+ */
101
+ _listNext(nextLink, options) {
102
+ return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
103
+ }
104
+ }
105
+ exports.OperationsImpl = OperationsImpl;
106
+ // Operation Specifications
107
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
108
+ const listOperationSpec = {
109
+ path: "/providers/Microsoft.ChangeAnalysis/operations",
110
+ httpMethod: "GET",
111
+ responses: {
112
+ 200: {
113
+ bodyMapper: Mappers.ResourceProviderOperationList
114
+ },
115
+ default: {
116
+ bodyMapper: Mappers.ErrorResponse
117
+ }
118
+ },
119
+ queryParameters: [Parameters.apiVersion, Parameters.skipToken],
120
+ urlParameters: [Parameters.$host],
121
+ headerParameters: [Parameters.accept],
122
+ serializer
123
+ };
124
+ const listNextOperationSpec = {
125
+ path: "{nextLink}",
126
+ httpMethod: "GET",
127
+ responses: {
128
+ 200: {
129
+ bodyMapper: Mappers.ResourceProviderOperationList
130
+ },
131
+ default: {
132
+ bodyMapper: Mappers.ErrorResponse
133
+ }
134
+ },
135
+ queryParameters: [Parameters.apiVersion, Parameters.skipToken],
136
+ urlParameters: [Parameters.$host, Parameters.nextLink],
137
+ headerParameters: [Parameters.accept],
138
+ serializer
139
+ };
140
+ //# sourceMappingURL=operations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAUtD,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAa,cAAc;IAGzB;;;OAGG;IACH,YAAY,MAA2C;QACrD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,IAAI,CACT,OAAsC;QAEtC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IA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AAE;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"]}