@azure/arm-changeanalysis 2.1.1-alpha.20250102.1 → 2.1.1-alpha.20250106.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
@@ -1,401 +0,0 @@
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
-
9
- import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
10
- import { setContinuationToken } from "../pagingHelper";
11
- import { Changes } from "../operationsInterfaces";
12
- import * as coreClient from "@azure/core-client";
13
- import * as Mappers from "../models/mappers";
14
- import * as Parameters from "../models/parameters";
15
- import { AzureChangeAnalysisManagementClient } from "../azureChangeAnalysisManagementClient";
16
- import {
17
- Change,
18
- ChangesListChangesByResourceGroupNextOptionalParams,
19
- ChangesListChangesByResourceGroupOptionalParams,
20
- ChangesListChangesByResourceGroupResponse,
21
- ChangesListChangesBySubscriptionNextOptionalParams,
22
- ChangesListChangesBySubscriptionOptionalParams,
23
- ChangesListChangesBySubscriptionResponse,
24
- ChangesListChangesByResourceGroupNextResponse,
25
- ChangesListChangesBySubscriptionNextResponse
26
- } from "../models";
27
-
28
- /// <reference lib="esnext.asynciterable" />
29
- /** Class containing Changes operations. */
30
- export class ChangesImpl implements Changes {
31
- private readonly client: AzureChangeAnalysisManagementClient;
32
-
33
- /**
34
- * Initialize a new instance of the class Changes class.
35
- * @param client Reference to the service client
36
- */
37
- constructor(client: AzureChangeAnalysisManagementClient) {
38
- this.client = client;
39
- }
40
-
41
- /**
42
- * List the changes of a resource group within the specified time range. Customer data will always be
43
- * masked.
44
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
45
- * @param startTime Specifies the start time of the changes request.
46
- * @param endTime Specifies the end time of the changes request.
47
- * @param options The options parameters.
48
- */
49
- public listChangesByResourceGroup(
50
- resourceGroupName: string,
51
- startTime: Date,
52
- endTime: Date,
53
- options?: ChangesListChangesByResourceGroupOptionalParams
54
- ): PagedAsyncIterableIterator<Change> {
55
- const iter = this.listChangesByResourceGroupPagingAll(
56
- resourceGroupName,
57
- startTime,
58
- endTime,
59
- options
60
- );
61
- return {
62
- next() {
63
- return iter.next();
64
- },
65
- [Symbol.asyncIterator]() {
66
- return this;
67
- },
68
- byPage: (settings?: PageSettings) => {
69
- if (settings?.maxPageSize) {
70
- throw new Error("maxPageSize is not supported by this operation.");
71
- }
72
- return this.listChangesByResourceGroupPagingPage(
73
- resourceGroupName,
74
- startTime,
75
- endTime,
76
- options,
77
- settings
78
- );
79
- }
80
- };
81
- }
82
-
83
- private async *listChangesByResourceGroupPagingPage(
84
- resourceGroupName: string,
85
- startTime: Date,
86
- endTime: Date,
87
- options?: ChangesListChangesByResourceGroupOptionalParams,
88
- settings?: PageSettings
89
- ): AsyncIterableIterator<Change[]> {
90
- let result: ChangesListChangesByResourceGroupResponse;
91
- let continuationToken = settings?.continuationToken;
92
- if (!continuationToken) {
93
- result = await this._listChangesByResourceGroup(
94
- resourceGroupName,
95
- startTime,
96
- endTime,
97
- options
98
- );
99
- let page = result.value || [];
100
- continuationToken = result.nextLink;
101
- setContinuationToken(page, continuationToken);
102
- yield page;
103
- }
104
- while (continuationToken) {
105
- result = await this._listChangesByResourceGroupNext(
106
- resourceGroupName,
107
- startTime,
108
- endTime,
109
- continuationToken,
110
- options
111
- );
112
- continuationToken = result.nextLink;
113
- let page = result.value || [];
114
- setContinuationToken(page, continuationToken);
115
- yield page;
116
- }
117
- }
118
-
119
- private async *listChangesByResourceGroupPagingAll(
120
- resourceGroupName: string,
121
- startTime: Date,
122
- endTime: Date,
123
- options?: ChangesListChangesByResourceGroupOptionalParams
124
- ): AsyncIterableIterator<Change> {
125
- for await (const page of this.listChangesByResourceGroupPagingPage(
126
- resourceGroupName,
127
- startTime,
128
- endTime,
129
- options
130
- )) {
131
- yield* page;
132
- }
133
- }
134
-
135
- /**
136
- * List the changes of a subscription within the specified time range. Customer data will always be
137
- * masked.
138
- * @param startTime Specifies the start time of the changes request.
139
- * @param endTime Specifies the end time of the changes request.
140
- * @param options The options parameters.
141
- */
142
- public listChangesBySubscription(
143
- startTime: Date,
144
- endTime: Date,
145
- options?: ChangesListChangesBySubscriptionOptionalParams
146
- ): PagedAsyncIterableIterator<Change> {
147
- const iter = this.listChangesBySubscriptionPagingAll(
148
- startTime,
149
- endTime,
150
- options
151
- );
152
- return {
153
- next() {
154
- return iter.next();
155
- },
156
- [Symbol.asyncIterator]() {
157
- return this;
158
- },
159
- byPage: (settings?: PageSettings) => {
160
- if (settings?.maxPageSize) {
161
- throw new Error("maxPageSize is not supported by this operation.");
162
- }
163
- return this.listChangesBySubscriptionPagingPage(
164
- startTime,
165
- endTime,
166
- options,
167
- settings
168
- );
169
- }
170
- };
171
- }
172
-
173
- private async *listChangesBySubscriptionPagingPage(
174
- startTime: Date,
175
- endTime: Date,
176
- options?: ChangesListChangesBySubscriptionOptionalParams,
177
- settings?: PageSettings
178
- ): AsyncIterableIterator<Change[]> {
179
- let result: ChangesListChangesBySubscriptionResponse;
180
- let continuationToken = settings?.continuationToken;
181
- if (!continuationToken) {
182
- result = await this._listChangesBySubscription(
183
- startTime,
184
- endTime,
185
- options
186
- );
187
- let page = result.value || [];
188
- continuationToken = result.nextLink;
189
- setContinuationToken(page, continuationToken);
190
- yield page;
191
- }
192
- while (continuationToken) {
193
- result = await this._listChangesBySubscriptionNext(
194
- startTime,
195
- endTime,
196
- continuationToken,
197
- options
198
- );
199
- continuationToken = result.nextLink;
200
- let page = result.value || [];
201
- setContinuationToken(page, continuationToken);
202
- yield page;
203
- }
204
- }
205
-
206
- private async *listChangesBySubscriptionPagingAll(
207
- startTime: Date,
208
- endTime: Date,
209
- options?: ChangesListChangesBySubscriptionOptionalParams
210
- ): AsyncIterableIterator<Change> {
211
- for await (const page of this.listChangesBySubscriptionPagingPage(
212
- startTime,
213
- endTime,
214
- options
215
- )) {
216
- yield* page;
217
- }
218
- }
219
-
220
- /**
221
- * List the changes of a resource group within the specified time range. Customer data will always be
222
- * masked.
223
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
224
- * @param startTime Specifies the start time of the changes request.
225
- * @param endTime Specifies the end time of the changes request.
226
- * @param options The options parameters.
227
- */
228
- private _listChangesByResourceGroup(
229
- resourceGroupName: string,
230
- startTime: Date,
231
- endTime: Date,
232
- options?: ChangesListChangesByResourceGroupOptionalParams
233
- ): Promise<ChangesListChangesByResourceGroupResponse> {
234
- return this.client.sendOperationRequest(
235
- { resourceGroupName, startTime, endTime, options },
236
- listChangesByResourceGroupOperationSpec
237
- );
238
- }
239
-
240
- /**
241
- * List the changes of a subscription within the specified time range. Customer data will always be
242
- * masked.
243
- * @param startTime Specifies the start time of the changes request.
244
- * @param endTime Specifies the end time of the changes request.
245
- * @param options The options parameters.
246
- */
247
- private _listChangesBySubscription(
248
- startTime: Date,
249
- endTime: Date,
250
- options?: ChangesListChangesBySubscriptionOptionalParams
251
- ): Promise<ChangesListChangesBySubscriptionResponse> {
252
- return this.client.sendOperationRequest(
253
- { startTime, endTime, options },
254
- listChangesBySubscriptionOperationSpec
255
- );
256
- }
257
-
258
- /**
259
- * ListChangesByResourceGroupNext
260
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
261
- * @param startTime Specifies the start time of the changes request.
262
- * @param endTime Specifies the end time of the changes request.
263
- * @param nextLink The nextLink from the previous successful call to the ListChangesByResourceGroup
264
- * method.
265
- * @param options The options parameters.
266
- */
267
- private _listChangesByResourceGroupNext(
268
- resourceGroupName: string,
269
- startTime: Date,
270
- endTime: Date,
271
- nextLink: string,
272
- options?: ChangesListChangesByResourceGroupNextOptionalParams
273
- ): Promise<ChangesListChangesByResourceGroupNextResponse> {
274
- return this.client.sendOperationRequest(
275
- { resourceGroupName, startTime, endTime, nextLink, options },
276
- listChangesByResourceGroupNextOperationSpec
277
- );
278
- }
279
-
280
- /**
281
- * ListChangesBySubscriptionNext
282
- * @param startTime Specifies the start time of the changes request.
283
- * @param endTime Specifies the end time of the changes request.
284
- * @param nextLink The nextLink from the previous successful call to the ListChangesBySubscription
285
- * method.
286
- * @param options The options parameters.
287
- */
288
- private _listChangesBySubscriptionNext(
289
- startTime: Date,
290
- endTime: Date,
291
- nextLink: string,
292
- options?: ChangesListChangesBySubscriptionNextOptionalParams
293
- ): Promise<ChangesListChangesBySubscriptionNextResponse> {
294
- return this.client.sendOperationRequest(
295
- { startTime, endTime, nextLink, options },
296
- listChangesBySubscriptionNextOperationSpec
297
- );
298
- }
299
- }
300
- // Operation Specifications
301
- const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
302
-
303
- const listChangesByResourceGroupOperationSpec: coreClient.OperationSpec = {
304
- path:
305
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ChangeAnalysis/changes",
306
- httpMethod: "GET",
307
- responses: {
308
- 200: {
309
- bodyMapper: Mappers.ChangeList
310
- },
311
- default: {
312
- bodyMapper: Mappers.ErrorResponse
313
- }
314
- },
315
- queryParameters: [
316
- Parameters.apiVersion,
317
- Parameters.skipToken,
318
- Parameters.startTime,
319
- Parameters.endTime
320
- ],
321
- urlParameters: [
322
- Parameters.$host,
323
- Parameters.subscriptionId,
324
- Parameters.resourceGroupName
325
- ],
326
- headerParameters: [Parameters.accept],
327
- serializer
328
- };
329
- const listChangesBySubscriptionOperationSpec: coreClient.OperationSpec = {
330
- path:
331
- "/subscriptions/{subscriptionId}/providers/Microsoft.ChangeAnalysis/changes",
332
- httpMethod: "GET",
333
- responses: {
334
- 200: {
335
- bodyMapper: Mappers.ChangeList
336
- },
337
- default: {
338
- bodyMapper: Mappers.ErrorResponse
339
- }
340
- },
341
- queryParameters: [
342
- Parameters.apiVersion,
343
- Parameters.skipToken,
344
- Parameters.startTime,
345
- Parameters.endTime
346
- ],
347
- urlParameters: [Parameters.$host, Parameters.subscriptionId],
348
- headerParameters: [Parameters.accept],
349
- serializer
350
- };
351
- const listChangesByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
352
- path: "{nextLink}",
353
- httpMethod: "GET",
354
- responses: {
355
- 200: {
356
- bodyMapper: Mappers.ChangeList
357
- },
358
- default: {
359
- bodyMapper: Mappers.ErrorResponse
360
- }
361
- },
362
- queryParameters: [
363
- Parameters.apiVersion,
364
- Parameters.skipToken,
365
- Parameters.startTime,
366
- Parameters.endTime
367
- ],
368
- urlParameters: [
369
- Parameters.$host,
370
- Parameters.nextLink,
371
- Parameters.subscriptionId,
372
- Parameters.resourceGroupName
373
- ],
374
- headerParameters: [Parameters.accept],
375
- serializer
376
- };
377
- const listChangesBySubscriptionNextOperationSpec: coreClient.OperationSpec = {
378
- path: "{nextLink}",
379
- httpMethod: "GET",
380
- responses: {
381
- 200: {
382
- bodyMapper: Mappers.ChangeList
383
- },
384
- default: {
385
- bodyMapper: Mappers.ErrorResponse
386
- }
387
- },
388
- queryParameters: [
389
- Parameters.apiVersion,
390
- Parameters.skipToken,
391
- Parameters.startTime,
392
- Parameters.endTime
393
- ],
394
- urlParameters: [
395
- Parameters.$host,
396
- Parameters.nextLink,
397
- Parameters.subscriptionId
398
- ],
399
- headerParameters: [Parameters.accept],
400
- serializer
401
- };
@@ -1,152 +0,0 @@
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
-
9
- import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
10
- import { setContinuationToken } from "../pagingHelper";
11
- import { Operations } from "../operationsInterfaces";
12
- import * as coreClient from "@azure/core-client";
13
- import * as Mappers from "../models/mappers";
14
- import * as Parameters from "../models/parameters";
15
- import { AzureChangeAnalysisManagementClient } from "../azureChangeAnalysisManagementClient";
16
- import {
17
- ResourceProviderOperationDefinition,
18
- OperationsListNextOptionalParams,
19
- OperationsListOptionalParams,
20
- OperationsListResponse,
21
- OperationsListNextResponse
22
- } from "../models";
23
-
24
- /// <reference lib="esnext.asynciterable" />
25
- /** Class containing Operations operations. */
26
- export class OperationsImpl implements Operations {
27
- private readonly client: AzureChangeAnalysisManagementClient;
28
-
29
- /**
30
- * Initialize a new instance of the class Operations class.
31
- * @param client Reference to the service client
32
- */
33
- constructor(client: AzureChangeAnalysisManagementClient) {
34
- this.client = client;
35
- }
36
-
37
- /**
38
- * Lists all the supported operations by the Microsoft.ChangeAnalysis resource provider along with
39
- * their descriptions.
40
- * @param options The options parameters.
41
- */
42
- public list(
43
- options?: OperationsListOptionalParams
44
- ): PagedAsyncIterableIterator<ResourceProviderOperationDefinition> {
45
- const iter = this.listPagingAll(options);
46
- return {
47
- next() {
48
- return iter.next();
49
- },
50
- [Symbol.asyncIterator]() {
51
- return this;
52
- },
53
- byPage: (settings?: PageSettings) => {
54
- if (settings?.maxPageSize) {
55
- throw new Error("maxPageSize is not supported by this operation.");
56
- }
57
- return this.listPagingPage(options, settings);
58
- }
59
- };
60
- }
61
-
62
- private async *listPagingPage(
63
- options?: OperationsListOptionalParams,
64
- settings?: PageSettings
65
- ): AsyncIterableIterator<ResourceProviderOperationDefinition[]> {
66
- let result: OperationsListResponse;
67
- let continuationToken = settings?.continuationToken;
68
- if (!continuationToken) {
69
- result = await this._list(options);
70
- let page = result.value || [];
71
- continuationToken = result.nextLink;
72
- setContinuationToken(page, continuationToken);
73
- yield page;
74
- }
75
- while (continuationToken) {
76
- result = await this._listNext(continuationToken, options);
77
- continuationToken = result.nextLink;
78
- let page = result.value || [];
79
- setContinuationToken(page, continuationToken);
80
- yield page;
81
- }
82
- }
83
-
84
- private async *listPagingAll(
85
- options?: OperationsListOptionalParams
86
- ): AsyncIterableIterator<ResourceProviderOperationDefinition> {
87
- for await (const page of this.listPagingPage(options)) {
88
- yield* page;
89
- }
90
- }
91
-
92
- /**
93
- * Lists all the supported operations by the Microsoft.ChangeAnalysis resource provider along with
94
- * their descriptions.
95
- * @param options The options parameters.
96
- */
97
- private _list(
98
- options?: OperationsListOptionalParams
99
- ): Promise<OperationsListResponse> {
100
- return this.client.sendOperationRequest({ options }, listOperationSpec);
101
- }
102
-
103
- /**
104
- * ListNext
105
- * @param nextLink The nextLink from the previous successful call to the List method.
106
- * @param options The options parameters.
107
- */
108
- private _listNext(
109
- nextLink: string,
110
- options?: OperationsListNextOptionalParams
111
- ): Promise<OperationsListNextResponse> {
112
- return this.client.sendOperationRequest(
113
- { nextLink, options },
114
- listNextOperationSpec
115
- );
116
- }
117
- }
118
- // Operation Specifications
119
- const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
120
-
121
- const listOperationSpec: coreClient.OperationSpec = {
122
- path: "/providers/Microsoft.ChangeAnalysis/operations",
123
- httpMethod: "GET",
124
- responses: {
125
- 200: {
126
- bodyMapper: Mappers.ResourceProviderOperationList
127
- },
128
- default: {
129
- bodyMapper: Mappers.ErrorResponse
130
- }
131
- },
132
- queryParameters: [Parameters.apiVersion, Parameters.skipToken],
133
- urlParameters: [Parameters.$host],
134
- headerParameters: [Parameters.accept],
135
- serializer
136
- };
137
- const listNextOperationSpec: coreClient.OperationSpec = {
138
- path: "{nextLink}",
139
- httpMethod: "GET",
140
- responses: {
141
- 200: {
142
- bodyMapper: Mappers.ResourceProviderOperationList
143
- },
144
- default: {
145
- bodyMapper: Mappers.ErrorResponse
146
- }
147
- },
148
- queryParameters: [Parameters.apiVersion, Parameters.skipToken],
149
- urlParameters: [Parameters.$host, Parameters.nextLink],
150
- headerParameters: [Parameters.accept],
151
- serializer
152
- };