@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,43 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { ResourceChanges } from "../operationsInterfaces/index.js";
3
+ import { AzureChangeAnalysisManagementClient } from "../azureChangeAnalysisManagementClient.js";
4
+ import { Change, ResourceChangesListOptionalParams } from "../models/index.js";
5
+ /** Class containing ResourceChanges operations. */
6
+ export declare class ResourceChangesImpl implements ResourceChanges {
7
+ private readonly client;
8
+ /**
9
+ * Initialize a new instance of the class ResourceChanges class.
10
+ * @param client Reference to the service client
11
+ */
12
+ constructor(client: AzureChangeAnalysisManagementClient);
13
+ /**
14
+ * List the changes of a resource within the specified time range. Customer data will be masked if the
15
+ * user doesn't have access.
16
+ * @param resourceId The identifier of the resource.
17
+ * @param startTime Specifies the start time of the changes request.
18
+ * @param endTime Specifies the end time of the changes request.
19
+ * @param options The options parameters.
20
+ */
21
+ list(resourceId: string, startTime: Date, endTime: Date, options?: ResourceChangesListOptionalParams): PagedAsyncIterableIterator<Change>;
22
+ private listPagingPage;
23
+ private listPagingAll;
24
+ /**
25
+ * List the changes of a resource within the specified time range. Customer data will be masked if the
26
+ * user doesn't have access.
27
+ * @param resourceId The identifier of the resource.
28
+ * @param startTime Specifies the start time of the changes request.
29
+ * @param endTime Specifies the end time of the changes request.
30
+ * @param options The options parameters.
31
+ */
32
+ private _list;
33
+ /**
34
+ * ListNext
35
+ * @param resourceId The identifier of the resource.
36
+ * @param startTime Specifies the start time of the changes request.
37
+ * @param endTime Specifies the end time of the changes request.
38
+ * @param nextLink The nextLink from the previous successful call to the List method.
39
+ * @param options The options parameters.
40
+ */
41
+ private _listNext;
42
+ }
43
+ //# sourceMappingURL=resourceChanges.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resourceChanges.d.ts","sourceRoot":"","sources":["../../../src/operations/resourceChanges.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAInE,OAAO,EAAE,mCAAmC,EAAE,MAAM,2CAA2C,CAAC;AAChG,OAAO,EACL,MAAM,EAEN,iCAAiC,EAGlC,MAAM,oBAAoB,CAAC;AAG5B,mDAAmD;AACnD,qBAAa,mBAAoB,YAAW,eAAe;IACzD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAsC;IAE7D;;;OAGG;gBACS,MAAM,EAAE,mCAAmC;IAIvD;;;;;;;OAOG;IACI,IAAI,CACT,UAAU,EAAE,MAAM,EAClB,SAAS,EAAE,IAAI,EACf,OAAO,EAAE,IAAI,EACb,OAAO,CAAC,EAAE,iCAAiC,GAC1C,0BAA0B,CAAC,MAAM,CAAC;YAwBtB,cAAc;YA+Bd,aAAa;IAgB5B;;;;;;;OAOG;IACH,OAAO,CAAC,KAAK;IAYb;;;;;;;OAOG;IACH,OAAO,CAAC,SAAS;CAYlB"}
@@ -0,0 +1,159 @@
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.ResourceChangesImpl = 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 ResourceChanges operations. */
18
+ class ResourceChangesImpl {
19
+ /**
20
+ * Initialize a new instance of the class ResourceChanges 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 within the specified time range. Customer data will be masked if the
28
+ * user doesn't have access.
29
+ * @param resourceId The identifier of the resource.
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
+ list(resourceId, startTime, endTime, options) {
35
+ const iter = this.listPagingAll(resourceId, 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.listPagingPage(resourceId, startTime, endTime, options, settings);
48
+ }
49
+ };
50
+ }
51
+ listPagingPage(resourceId, startTime, endTime, options, settings) {
52
+ return tslib_1.__asyncGenerator(this, arguments, function* listPagingPage_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._list(resourceId, 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._listNext(resourceId, 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
+ listPagingAll(resourceId, startTime, endTime, options) {
72
+ return tslib_1.__asyncGenerator(this, arguments, function* listPagingAll_1() {
73
+ var _a, e_1, _b, _c;
74
+ try {
75
+ for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(resourceId, 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 resource within the specified time range. Customer data will be masked if the
93
+ * user doesn't have access.
94
+ * @param resourceId The identifier of the resource.
95
+ * @param startTime Specifies the start time of the changes request.
96
+ * @param endTime Specifies the end time of the changes request.
97
+ * @param options The options parameters.
98
+ */
99
+ _list(resourceId, startTime, endTime, options) {
100
+ return this.client.sendOperationRequest({ resourceId, startTime, endTime, options }, listOperationSpec);
101
+ }
102
+ /**
103
+ * ListNext
104
+ * @param resourceId The identifier of the resource.
105
+ * @param startTime Specifies the start time of the changes request.
106
+ * @param endTime Specifies the end time of the changes request.
107
+ * @param nextLink The nextLink from the previous successful call to the List method.
108
+ * @param options The options parameters.
109
+ */
110
+ _listNext(resourceId, startTime, endTime, nextLink, options) {
111
+ return this.client.sendOperationRequest({ resourceId, startTime, endTime, nextLink, options }, listNextOperationSpec);
112
+ }
113
+ }
114
+ exports.ResourceChangesImpl = ResourceChangesImpl;
115
+ // Operation Specifications
116
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
117
+ const listOperationSpec = {
118
+ path: "/{resourceId}/providers/Microsoft.ChangeAnalysis/resourceChanges",
119
+ httpMethod: "POST",
120
+ responses: {
121
+ 200: {
122
+ bodyMapper: Mappers.ChangeList
123
+ },
124
+ default: {
125
+ bodyMapper: Mappers.ErrorResponse
126
+ }
127
+ },
128
+ queryParameters: [
129
+ Parameters.apiVersion,
130
+ Parameters.skipToken,
131
+ Parameters.startTime,
132
+ Parameters.endTime
133
+ ],
134
+ urlParameters: [Parameters.$host, Parameters.resourceId],
135
+ headerParameters: [Parameters.accept],
136
+ serializer
137
+ };
138
+ const listNextOperationSpec = {
139
+ path: "{nextLink}",
140
+ httpMethod: "GET",
141
+ responses: {
142
+ 200: {
143
+ bodyMapper: Mappers.ChangeList
144
+ },
145
+ default: {
146
+ bodyMapper: Mappers.ErrorResponse
147
+ }
148
+ },
149
+ queryParameters: [
150
+ Parameters.apiVersion,
151
+ Parameters.skipToken,
152
+ Parameters.startTime,
153
+ Parameters.endTime
154
+ ],
155
+ urlParameters: [Parameters.$host, Parameters.nextLink, Parameters.resourceId],
156
+ headerParameters: [Parameters.accept],
157
+ serializer
158
+ };
159
+ //# sourceMappingURL=resourceChanges.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resourceChanges.js","sourceRoot":"","sources":["../../../src/operations/resourceChanges.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAUtD,4CAA4C;AAC5C,mDAAmD;AACnD,MAAa,mBAAmB;IAG9B;;;OAGG;IACH,YAAY,MAA2C;QACrD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;OAOG;IACI,IAAI,CACT,UAAkB,EAClB,SAAe,EACf,OAAa,EACb,OAA2C;QAE3C,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,UAAU,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;QACzE,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,cAAc,CACxB,UAAU,EACV,SAAS,EACT,OAAO,EACP,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,CAAC;SACF,CAAC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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,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,EAAE,UAAU,CAAC,UAAU,CAAC;IAC7E,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 { ResourceChanges } 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 ResourceChangesListNextOptionalParams,\n ResourceChangesListOptionalParams,\n ResourceChangesListResponse,\n ResourceChangesListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ResourceChanges operations. */\nexport class ResourceChangesImpl implements ResourceChanges {\n private readonly client: AzureChangeAnalysisManagementClient;\n\n /**\n * Initialize a new instance of the class ResourceChanges 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 within the specified time range. Customer data will be masked if the\n * user doesn't have access.\n * @param resourceId The identifier of the resource.\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 list(\n resourceId: string,\n startTime: Date,\n endTime: Date,\n options?: ResourceChangesListOptionalParams\n ): PagedAsyncIterableIterator<Change> {\n const iter = this.listPagingAll(resourceId, startTime, endTime, 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(\n resourceId,\n startTime,\n endTime,\n options,\n settings\n );\n }\n };\n }\n\n private async *listPagingPage(\n resourceId: string,\n startTime: Date,\n endTime: Date,\n options?: ResourceChangesListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Change[]> {\n let result: ResourceChangesListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(resourceId, startTime, endTime, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(\n resourceId,\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 *listPagingAll(\n resourceId: string,\n startTime: Date,\n endTime: Date,\n options?: ResourceChangesListOptionalParams\n ): AsyncIterableIterator<Change> {\n for await (const page of this.listPagingPage(\n resourceId,\n startTime,\n endTime,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * List the changes of a resource within the specified time range. Customer data will be masked if the\n * user doesn't have access.\n * @param resourceId The identifier of the resource.\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 _list(\n resourceId: string,\n startTime: Date,\n endTime: Date,\n options?: ResourceChangesListOptionalParams\n ): Promise<ResourceChangesListResponse> {\n return this.client.sendOperationRequest(\n { resourceId, startTime, endTime, options },\n listOperationSpec\n );\n }\n\n /**\n * ListNext\n * @param resourceId The identifier of the resource.\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 List method.\n * @param options The options parameters.\n */\n private _listNext(\n resourceId: string,\n startTime: Date,\n endTime: Date,\n nextLink: string,\n options?: ResourceChangesListNextOptionalParams\n ): Promise<ResourceChangesListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceId, startTime, endTime, nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/{resourceId}/providers/Microsoft.ChangeAnalysis/resourceChanges\",\n httpMethod: \"POST\",\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.resourceId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: 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: [Parameters.$host, Parameters.nextLink, Parameters.resourceId],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
@@ -0,0 +1,23 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { Change, ChangesListChangesByResourceGroupOptionalParams, ChangesListChangesBySubscriptionOptionalParams } from "../models/index.js";
3
+ /** Interface representing a Changes. */
4
+ export interface Changes {
5
+ /**
6
+ * List the changes of a resource group within the specified time range. Customer data will always be
7
+ * masked.
8
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
9
+ * @param startTime Specifies the start time of the changes request.
10
+ * @param endTime Specifies the end time of the changes request.
11
+ * @param options The options parameters.
12
+ */
13
+ listChangesByResourceGroup(resourceGroupName: string, startTime: Date, endTime: Date, options?: ChangesListChangesByResourceGroupOptionalParams): PagedAsyncIterableIterator<Change>;
14
+ /**
15
+ * List the changes of a subscription within the specified time range. Customer data will always be
16
+ * masked.
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
+ listChangesBySubscription(startTime: Date, endTime: Date, options?: ChangesListChangesBySubscriptionOptionalParams): PagedAsyncIterableIterator<Change>;
22
+ }
23
+ //# sourceMappingURL=changes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"changes.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/changes.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EACL,MAAM,EACN,+CAA+C,EAC/C,8CAA8C,EAC/C,MAAM,oBAAoB,CAAC;AAG5B,wCAAwC;AACxC,MAAM,WAAW,OAAO;IACtB;;;;;;;OAOG;IACH,0BAA0B,CACxB,iBAAiB,EAAE,MAAM,EACzB,SAAS,EAAE,IAAI,EACf,OAAO,EAAE,IAAI,EACb,OAAO,CAAC,EAAE,+CAA+C,GACxD,0BAA0B,CAAC,MAAM,CAAC,CAAC;IACtC;;;;;;OAMG;IACH,yBAAyB,CACvB,SAAS,EAAE,IAAI,EACf,OAAO,EAAE,IAAI,EACb,OAAO,CAAC,EAAE,8CAA8C,GACvD,0BAA0B,CAAC,MAAM,CAAC,CAAC;CACvC"}
@@ -0,0 +1,10 @@
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
+ //# sourceMappingURL=changes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"changes.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/changes.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG","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 } from \"@azure/core-paging\";\nimport {\n Change,\n ChangesListChangesByResourceGroupOptionalParams,\n ChangesListChangesBySubscriptionOptionalParams\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Interface representing a Changes. */\nexport interface Changes {\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 listChangesByResourceGroup(\n resourceGroupName: string,\n startTime: Date,\n endTime: Date,\n options?: ChangesListChangesByResourceGroupOptionalParams\n ): PagedAsyncIterableIterator<Change>;\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 listChangesBySubscription(\n startTime: Date,\n endTime: Date,\n options?: ChangesListChangesBySubscriptionOptionalParams\n ): PagedAsyncIterableIterator<Change>;\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/operationsInterfaces/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/operationsInterfaces/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,12 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { ResourceProviderOperationDefinition, OperationsListOptionalParams } from "../models/index.js";
3
+ /** Interface representing a Operations. */
4
+ export interface Operations {
5
+ /**
6
+ * Lists all the supported operations by the Microsoft.ChangeAnalysis resource provider along with
7
+ * their descriptions.
8
+ * @param options The options parameters.
9
+ */
10
+ list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<ResourceProviderOperationDefinition>;
11
+ }
12
+ //# sourceMappingURL=operations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/operations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EACL,mCAAmC,EACnC,4BAA4B,EAC7B,MAAM,oBAAoB,CAAC;AAG5B,2CAA2C;AAC3C,MAAM,WAAW,UAAU;IACzB;;;;OAIG;IACH,IAAI,CACF,OAAO,CAAC,EAAE,4BAA4B,GACrC,0BAA0B,CAAC,mCAAmC,CAAC,CAAC;CACpE"}
@@ -0,0 +1,10 @@
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
+ //# sourceMappingURL=operations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/operations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG","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 } from \"@azure/core-paging\";\nimport {\n ResourceProviderOperationDefinition,\n OperationsListOptionalParams\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Interface representing a Operations. */\nexport interface Operations {\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 list(\n options?: OperationsListOptionalParams\n ): PagedAsyncIterableIterator<ResourceProviderOperationDefinition>;\n}\n"]}
@@ -0,0 +1,15 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { Change, ResourceChangesListOptionalParams } from "../models/index.js";
3
+ /** Interface representing a ResourceChanges. */
4
+ export interface ResourceChanges {
5
+ /**
6
+ * List the changes of a resource within the specified time range. Customer data will be masked if the
7
+ * user doesn't have access.
8
+ * @param resourceId The identifier of the resource.
9
+ * @param startTime Specifies the start time of the changes request.
10
+ * @param endTime Specifies the end time of the changes request.
11
+ * @param options The options parameters.
12
+ */
13
+ list(resourceId: string, startTime: Date, endTime: Date, options?: ResourceChangesListOptionalParams): PagedAsyncIterableIterator<Change>;
14
+ }
15
+ //# sourceMappingURL=resourceChanges.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resourceChanges.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/resourceChanges.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,MAAM,EAAE,iCAAiC,EAAE,MAAM,oBAAoB,CAAC;AAG/E,gDAAgD;AAChD,MAAM,WAAW,eAAe;IAC9B;;;;;;;OAOG;IACH,IAAI,CACF,UAAU,EAAE,MAAM,EAClB,SAAS,EAAE,IAAI,EACf,OAAO,EAAE,IAAI,EACb,OAAO,CAAC,EAAE,iCAAiC,GAC1C,0BAA0B,CAAC,MAAM,CAAC,CAAC;CACvC"}
@@ -0,0 +1,10 @@
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
+ //# sourceMappingURL=resourceChanges.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resourceChanges.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/resourceChanges.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG","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 } from \"@azure/core-paging\";\nimport { Change, ResourceChangesListOptionalParams } from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Interface representing a ResourceChanges. */\nexport interface ResourceChanges {\n /**\n * List the changes of a resource within the specified time range. Customer data will be masked if the\n * user doesn't have access.\n * @param resourceId The identifier of the resource.\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 list(\n resourceId: string,\n startTime: Date,\n endTime: Date,\n options?: ResourceChangesListOptionalParams\n ): PagedAsyncIterableIterator<Change>;\n}\n"]}
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "commonjs"
3
+ }
@@ -0,0 +1,13 @@
1
+ export interface PageInfo {
2
+ continuationToken?: string;
3
+ }
4
+ /**
5
+ * Given a result page from a pageable operation, returns a
6
+ * continuation token that can be used to begin paging from
7
+ * that point later.
8
+ * @param page A result object from calling .byPage() on a paged operation.
9
+ * @returns The continuation token that can be passed into byPage().
10
+ */
11
+ export declare function getContinuationToken(page: unknown): string | undefined;
12
+ export declare function setContinuationToken(page: unknown, continuationToken: string | undefined): void;
13
+ //# sourceMappingURL=pagingHelper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pagingHelper.d.ts","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,QAAQ;IACvB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAID;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAKtE;AAED,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,OAAO,EACb,iBAAiB,EAAE,MAAM,GAAG,SAAS,GACpC,IAAI,CAON"}
@@ -0,0 +1,36 @@
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.getContinuationToken = getContinuationToken;
11
+ exports.setContinuationToken = setContinuationToken;
12
+ const pageMap = new WeakMap();
13
+ /**
14
+ * Given a result page from a pageable operation, returns a
15
+ * continuation token that can be used to begin paging from
16
+ * that point later.
17
+ * @param page A result object from calling .byPage() on a paged operation.
18
+ * @returns The continuation token that can be passed into byPage().
19
+ */
20
+ function getContinuationToken(page) {
21
+ var _a;
22
+ if (typeof page !== "object" || page === null) {
23
+ return undefined;
24
+ }
25
+ return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
26
+ }
27
+ function setContinuationToken(page, continuationToken) {
28
+ var _a;
29
+ if (typeof page !== "object" || page === null || !continuationToken) {
30
+ return;
31
+ }
32
+ const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
33
+ pageInfo.continuationToken = continuationToken;
34
+ pageMap.set(page, pageInfo);
35
+ }
36
+ //# sourceMappingURL=pagingHelper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAeH,oDAKC;AAED,oDAUC;AA1BD,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,SAAgB,oBAAoB,CAAC,IAAa;;IAChD,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;QAC9C,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,MAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,0CAAE,iBAAiB,CAAC;AAC9C,CAAC;AAED,SAAgB,oBAAoB,CAClC,IAAa,EACb,iBAAqC;;IAErC,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACpE,OAAO;IACT,CAAC;IACD,MAAM,QAAQ,GAAG,MAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,mCAAI,EAAE,CAAC;IACzC,QAAQ,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC9B,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport interface PageInfo {\n continuationToken?: string;\n}\n\nconst pageMap = new WeakMap<object, PageInfo>();\n\n/**\n * Given a result page from a pageable operation, returns a\n * continuation token that can be used to begin paging from\n * that point later.\n * @param page A result object from calling .byPage() on a paged operation.\n * @returns The continuation token that can be passed into byPage().\n */\nexport function getContinuationToken(page: unknown): string | undefined {\n if (typeof page !== \"object\" || page === null) {\n return undefined;\n }\n return pageMap.get(page)?.continuationToken;\n}\n\nexport function setContinuationToken(\n page: unknown,\n continuationToken: string | undefined\n): void {\n if (typeof page !== \"object\" || page === null || !continuationToken) {\n return;\n }\n const pageInfo = pageMap.get(page) ?? {};\n pageInfo.continuationToken = continuationToken;\n pageMap.set(page, pageInfo);\n}\n"]}
@@ -0,0 +1,22 @@
1
+ import * as coreClient from "@azure/core-client";
2
+ import * as coreAuth from "@azure/core-auth";
3
+ import { Operations, ResourceChanges, Changes } from "./operationsInterfaces/index.js";
4
+ import { AzureChangeAnalysisManagementClientOptionalParams } from "./models/index.js";
5
+ export declare class AzureChangeAnalysisManagementClient extends coreClient.ServiceClient {
6
+ $host: string;
7
+ apiVersion: string;
8
+ subscriptionId: string;
9
+ /**
10
+ * Initializes a new instance of the AzureChangeAnalysisManagementClient class.
11
+ * @param credentials Subscription credentials which uniquely identify client subscription.
12
+ * @param subscriptionId The ID of the target subscription.
13
+ * @param options The parameter options
14
+ */
15
+ constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: AzureChangeAnalysisManagementClientOptionalParams);
16
+ /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
17
+ private addCustomApiVersionPolicy;
18
+ operations: Operations;
19
+ resourceChanges: ResourceChanges;
20
+ changes: Changes;
21
+ }
22
+ //# sourceMappingURL=azureChangeAnalysisManagementClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"azureChangeAnalysisManagementClient.d.ts","sourceRoot":"","sources":["../../src/azureChangeAnalysisManagementClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAOjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAE7C,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,iCAAiC,CAAC;AACvF,OAAO,EAAE,iDAAiD,EAAE,MAAM,mBAAmB,CAAC;AAEtF,qBAAa,mCAAoC,SAAQ,UAAU,CAAC,aAAa;IAC/E,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IAEvB;;;;;OAKG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,iDAAiD;IA8E7D,8GAA8G;IAC9G,OAAO,CAAC,yBAAyB;IA2BjC,UAAU,EAAE,UAAU,CAAC;IACvB,eAAe,EAAE,eAAe,CAAC;IACjC,OAAO,EAAE,OAAO,CAAC;CAClB"}
@@ -0,0 +1,99 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import * as coreClient from "@azure/core-client";
9
+ import * as coreRestPipeline from "@azure/core-rest-pipeline";
10
+ import { OperationsImpl, ResourceChangesImpl, ChangesImpl } from "./operations/index.js";
11
+ export class AzureChangeAnalysisManagementClient extends coreClient.ServiceClient {
12
+ /**
13
+ * Initializes a new instance of the AzureChangeAnalysisManagementClient class.
14
+ * @param credentials Subscription credentials which uniquely identify client subscription.
15
+ * @param subscriptionId The ID of the target subscription.
16
+ * @param options The parameter options
17
+ */
18
+ constructor(credentials, subscriptionId, options) {
19
+ var _a, _b, _c;
20
+ if (credentials === undefined) {
21
+ throw new Error("'credentials' cannot be null");
22
+ }
23
+ if (subscriptionId === undefined) {
24
+ throw new Error("'subscriptionId' cannot be null");
25
+ }
26
+ // Initializing default values for options
27
+ if (!options) {
28
+ options = {};
29
+ }
30
+ const defaults = {
31
+ requestContentType: "application/json; charset=utf-8",
32
+ credential: credentials
33
+ };
34
+ const packageDetails = `azsdk-js-arm-changeanalysis/2.1.1`;
35
+ const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
36
+ ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
37
+ : `${packageDetails}`;
38
+ const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
39
+ userAgentPrefix
40
+ }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
41
+ super(optionsWithDefaults);
42
+ let bearerTokenAuthenticationPolicyFound = false;
43
+ if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
44
+ const pipelinePolicies = options.pipeline.getOrderedPolicies();
45
+ bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
46
+ coreRestPipeline.bearerTokenAuthenticationPolicyName);
47
+ }
48
+ if (!options ||
49
+ !options.pipeline ||
50
+ options.pipeline.getOrderedPolicies().length == 0 ||
51
+ !bearerTokenAuthenticationPolicyFound) {
52
+ this.pipeline.removePolicy({
53
+ name: coreRestPipeline.bearerTokenAuthenticationPolicyName
54
+ });
55
+ this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
56
+ credential: credentials,
57
+ scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
58
+ challengeCallbacks: {
59
+ authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge
60
+ }
61
+ }));
62
+ }
63
+ // Parameter assignments
64
+ this.subscriptionId = subscriptionId;
65
+ // Assigning values to Constant parameters
66
+ this.$host = options.$host || "https://management.azure.com";
67
+ this.apiVersion = options.apiVersion || "2021-04-01";
68
+ this.operations = new OperationsImpl(this);
69
+ this.resourceChanges = new ResourceChangesImpl(this);
70
+ this.changes = new ChangesImpl(this);
71
+ this.addCustomApiVersionPolicy(options.apiVersion);
72
+ }
73
+ /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
74
+ addCustomApiVersionPolicy(apiVersion) {
75
+ if (!apiVersion) {
76
+ return;
77
+ }
78
+ const apiVersionPolicy = {
79
+ name: "CustomApiVersionPolicy",
80
+ async sendRequest(request, next) {
81
+ const param = request.url.split("?");
82
+ if (param.length > 1) {
83
+ const newParams = param[1].split("&").map((item) => {
84
+ if (item.indexOf("api-version") > -1) {
85
+ return "api-version=" + apiVersion;
86
+ }
87
+ else {
88
+ return item;
89
+ }
90
+ });
91
+ request.url = param[0] + "?" + newParams.join("&");
92
+ }
93
+ return next(request);
94
+ }
95
+ };
96
+ this.pipeline.addPolicy(apiVersionPolicy);
97
+ }
98
+ }
99
+ //# sourceMappingURL=azureChangeAnalysisManagementClient.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"azureChangeAnalysisManagementClient.js","sourceRoot":"","sources":["../../src/azureChangeAnalysisManagementClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAIzF,MAAM,OAAO,mC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CAAC;YAChB,OAAO;QACT,CAAC;QACD,MAAM,gBAAgB,GAAG;YACvB,IAAI,EAAE,wBAAwB;YAC9B,KAAK,CAAC,WAAW,CACf,OAAwB,EACxB,IAAiB;gBAEjB,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;gBACrC,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;oBACrB,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;wBACjD,IAAI,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;4BACrC,OAAO,cAAc,GAAG,UAAU,CAAC;wBACrC,CAAC;6BAAM,CAAC;4BACN,OAAO,IAAI,CAAC;wBACd,CAAC;oBACH,CAAC,CAAC,CAAC;oBACH,OAAO,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACrD,CAAC;gBACD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;YACvB,CAAC;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;CAKF","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 * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport { OperationsImpl, ResourceChangesImpl, ChangesImpl } from \"./operations/index.js\";\nimport { Operations, ResourceChanges, Changes } from \"./operationsInterfaces/index.js\";\nimport { AzureChangeAnalysisManagementClientOptionalParams } from \"./models/index.js\";\n\nexport class AzureChangeAnalysisManagementClient extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the AzureChangeAnalysisManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The ID of the target subscription.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: AzureChangeAnalysisManagementClientOptionalParams\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: AzureChangeAnalysisManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-changeanalysis/2.1.1`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\"\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge\n }\n })\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2021-04-01\";\n this.operations = new OperationsImpl(this);\n this.resourceChanges = new ResourceChangesImpl(this);\n this.changes = new ChangesImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n }\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n operations: Operations;\n resourceChanges: ResourceChanges;\n changes: Changes;\n}\n"]}
@@ -0,0 +1,5 @@
1
+ export { getContinuationToken } from "./pagingHelper.js";
2
+ export * from "./models/index.js";
3
+ export { AzureChangeAnalysisManagementClient } from "./azureChangeAnalysisManagementClient.js";
4
+ export * from "./operationsInterfaces/index.js";
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,mCAAmC,EAAE,MAAM,0CAA0C,CAAC;AAC/F,cAAc,iCAAiC,CAAC"}
@@ -5,9 +5,9 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
-
9
8
  /// <reference lib="esnext.asynciterable" />
10
- export { getContinuationToken } from "./pagingHelper";
11
- export * from "./models";
12
- export { AzureChangeAnalysisManagementClient } from "./azureChangeAnalysisManagementClient";
13
- export * from "./operationsInterfaces";
9
+ export { getContinuationToken } from "./pagingHelper.js";
10
+ export * from "./models/index.js";
11
+ export { AzureChangeAnalysisManagementClient } from "./azureChangeAnalysisManagementClient.js";
12
+ export * from "./operationsInterfaces/index.js";
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,4CAA4C;AAC5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,mCAAmC,EAAE,MAAM,0CAA0C,CAAC;AAC/F,cAAc,iCAAiC,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\n/// <reference lib=\"esnext.asynciterable\" />\nexport { getContinuationToken } from \"./pagingHelper.js\";\nexport * from \"./models/index.js\";\nexport { AzureChangeAnalysisManagementClient } from \"./azureChangeAnalysisManagementClient.js\";\nexport * from \"./operationsInterfaces/index.js\";\n"]}