@azure/arm-resources-subscriptions 2.1.2-alpha.20260310.1 → 3.0.0-beta.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 (423) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +12 -17
  3. package/dist/browser/api/index.d.ts +5 -0
  4. package/dist/browser/api/index.js +5 -0
  5. package/dist/browser/api/index.js.map +1 -0
  6. package/dist/browser/api/operations/index.d.ts +3 -0
  7. package/dist/browser/api/operations/index.js +4 -0
  8. package/dist/browser/api/operations/index.js.map +1 -0
  9. package/dist/browser/api/operations/operations.d.ts +10 -0
  10. package/dist/browser/api/operations/operations.js +31 -0
  11. package/dist/browser/api/operations/operations.js.map +1 -0
  12. package/dist/browser/api/operations/options.d.ts +5 -0
  13. package/dist/browser/api/operations/options.js +4 -0
  14. package/dist/browser/api/operations/options.js.map +1 -0
  15. package/dist/browser/api/operations.d.ts +9 -0
  16. package/dist/browser/api/operations.js +35 -0
  17. package/dist/browser/api/operations.js.map +1 -0
  18. package/dist/browser/api/options.d.ts +8 -0
  19. package/dist/browser/api/options.js +4 -0
  20. package/dist/browser/api/options.js.map +1 -0
  21. package/dist/browser/api/subscriptionContext.d.ts +18 -0
  22. package/dist/browser/api/subscriptionContext.js +25 -0
  23. package/dist/browser/api/subscriptionContext.js.map +1 -0
  24. package/dist/browser/api/subscriptions/index.d.ts +3 -0
  25. package/dist/browser/api/subscriptions/index.js +4 -0
  26. package/dist/browser/api/subscriptions/index.js.map +1 -0
  27. package/dist/browser/api/subscriptions/operations.d.ts +22 -0
  28. package/dist/browser/api/subscriptions/operations.js +111 -0
  29. package/dist/browser/api/subscriptions/operations.js.map +1 -0
  30. package/dist/browser/api/subscriptions/options.d.ts +16 -0
  31. package/dist/browser/api/subscriptions/options.js +4 -0
  32. package/dist/browser/api/subscriptions/options.js.map +1 -0
  33. package/dist/browser/api/tenants/index.d.ts +3 -0
  34. package/dist/browser/api/tenants/index.js +4 -0
  35. package/dist/browser/api/tenants/index.js.map +1 -0
  36. package/dist/browser/api/tenants/operations.d.ts +10 -0
  37. package/dist/browser/api/tenants/operations.js +31 -0
  38. package/dist/browser/api/tenants/operations.js.map +1 -0
  39. package/dist/browser/api/tenants/options.d.ts +5 -0
  40. package/dist/browser/api/tenants/options.js +4 -0
  41. package/dist/browser/api/tenants/options.js.map +1 -0
  42. package/dist/browser/classic/index.d.ts +4 -0
  43. package/dist/browser/classic/index.js +4 -0
  44. package/dist/browser/classic/index.js.map +1 -0
  45. package/dist/browser/classic/operations/index.d.ts +11 -0
  46. package/dist/browser/classic/operations/index.js +14 -0
  47. package/dist/browser/classic/operations/index.js.map +1 -0
  48. package/dist/browser/classic/subscriptions/index.d.ts +17 -0
  49. package/dist/browser/classic/subscriptions/index.js +17 -0
  50. package/dist/browser/classic/subscriptions/index.js.map +1 -0
  51. package/dist/browser/classic/tenants/index.d.ts +11 -0
  52. package/dist/browser/classic/tenants/index.js +14 -0
  53. package/dist/browser/classic/tenants/index.js.map +1 -0
  54. package/dist/browser/index.d.ts +13 -3
  55. package/dist/browser/index.js +6 -11
  56. package/dist/browser/index.js.map +1 -1
  57. package/dist/browser/logger.d.ts +2 -0
  58. package/dist/browser/logger.js +5 -0
  59. package/dist/browser/logger.js.map +1 -0
  60. package/dist/browser/models/index.d.ts +2 -642
  61. package/dist/browser/models/index.js +3 -49
  62. package/dist/browser/models/index.js.map +1 -1
  63. package/dist/browser/models/models.d.ts +378 -0
  64. package/dist/browser/models/models.js +306 -0
  65. package/dist/browser/models/models.js.map +1 -0
  66. package/dist/browser/static-helpers/cloudSettingHelpers.d.ts +22 -0
  67. package/dist/browser/static-helpers/cloudSettingHelpers.js +38 -0
  68. package/dist/browser/static-helpers/cloudSettingHelpers.js.map +1 -0
  69. package/dist/browser/static-helpers/pagingHelpers.d.ts +74 -0
  70. package/dist/browser/static-helpers/pagingHelpers.js +143 -0
  71. package/dist/browser/static-helpers/pagingHelpers.js.map +1 -0
  72. package/dist/browser/static-helpers/urlTemplate.d.ts +5 -0
  73. package/dist/browser/static-helpers/urlTemplate.js +200 -0
  74. package/dist/browser/static-helpers/urlTemplate.js.map +1 -0
  75. package/dist/browser/subscriptionClient.d.ts +22 -24
  76. package/dist/browser/subscriptionClient.js +31 -127
  77. package/dist/browser/subscriptionClient.js.map +1 -1
  78. package/dist/commonjs/api/index.d.ts +5 -0
  79. package/dist/commonjs/{operationsInterfaces → api}/index.js +15 -9
  80. package/dist/commonjs/api/index.js.map +7 -0
  81. package/dist/commonjs/api/operations/index.d.ts +3 -0
  82. package/dist/commonjs/{operations → api/operations}/index.js +10 -7
  83. package/dist/commonjs/api/operations/index.js.map +7 -0
  84. package/dist/commonjs/api/operations/operations.d.ts +10 -0
  85. package/dist/commonjs/api/operations/operations.js +68 -0
  86. package/dist/commonjs/api/operations/operations.js.map +7 -0
  87. package/dist/commonjs/api/operations/options.d.ts +5 -0
  88. package/dist/commonjs/{operationsInterfaces/operations.js → api/operations/options.js} +3 -2
  89. package/dist/commonjs/api/operations/options.js.map +7 -0
  90. package/dist/commonjs/api/operations.d.ts +9 -0
  91. package/dist/commonjs/api/operations.js +64 -0
  92. package/dist/commonjs/api/operations.js.map +7 -0
  93. package/dist/commonjs/api/options.d.ts +8 -0
  94. package/dist/commonjs/{operationsInterfaces/subscriptions.js → api/options.js} +3 -2
  95. package/dist/commonjs/api/options.js.map +7 -0
  96. package/dist/commonjs/api/subscriptionContext.d.ts +18 -0
  97. package/dist/commonjs/api/subscriptionContext.js +47 -0
  98. package/dist/commonjs/api/subscriptionContext.js.map +7 -0
  99. package/dist/commonjs/api/subscriptions/index.d.ts +3 -0
  100. package/dist/commonjs/api/subscriptions/index.js +34 -0
  101. package/dist/commonjs/api/subscriptions/index.js.map +7 -0
  102. package/dist/commonjs/api/subscriptions/operations.d.ts +22 -0
  103. package/dist/commonjs/api/subscriptions/operations.js +181 -0
  104. package/dist/commonjs/api/subscriptions/operations.js.map +7 -0
  105. package/dist/commonjs/api/subscriptions/options.d.ts +16 -0
  106. package/dist/commonjs/api/subscriptions/options.js +16 -0
  107. package/dist/commonjs/api/subscriptions/options.js.map +7 -0
  108. package/dist/commonjs/api/tenants/index.d.ts +3 -0
  109. package/dist/commonjs/api/tenants/index.js +28 -0
  110. package/dist/commonjs/api/tenants/index.js.map +7 -0
  111. package/dist/commonjs/api/tenants/operations.d.ts +10 -0
  112. package/dist/commonjs/api/tenants/operations.js +68 -0
  113. package/dist/commonjs/api/tenants/operations.js.map +7 -0
  114. package/dist/commonjs/api/tenants/options.d.ts +5 -0
  115. package/dist/commonjs/api/tenants/options.js +16 -0
  116. package/dist/commonjs/api/tenants/options.js.map +7 -0
  117. package/dist/commonjs/classic/index.d.ts +4 -0
  118. package/dist/commonjs/{operationsInterfaces/tenants.js → classic/index.js} +3 -2
  119. package/dist/commonjs/classic/index.js.map +7 -0
  120. package/dist/commonjs/classic/operations/index.d.ts +11 -0
  121. package/dist/commonjs/{pagingHelper.js → classic/operations/index.js} +15 -20
  122. package/dist/commonjs/classic/operations/index.js.map +7 -0
  123. package/dist/commonjs/classic/subscriptions/index.d.ts +17 -0
  124. package/dist/commonjs/classic/subscriptions/index.js +41 -0
  125. package/dist/commonjs/classic/subscriptions/index.js.map +7 -0
  126. package/dist/commonjs/classic/tenants/index.d.ts +11 -0
  127. package/dist/commonjs/classic/tenants/index.js +38 -0
  128. package/dist/commonjs/classic/tenants/index.js.map +7 -0
  129. package/dist/commonjs/index.d.ts +13 -3
  130. package/dist/commonjs/index.js +22 -8
  131. package/dist/commonjs/index.js.map +3 -3
  132. package/dist/commonjs/logger.d.ts +2 -0
  133. package/dist/commonjs/logger.js +29 -0
  134. package/dist/commonjs/logger.js.map +7 -0
  135. package/dist/commonjs/models/index.d.ts +2 -642
  136. package/dist/commonjs/models/index.js +10 -32
  137. package/dist/commonjs/models/index.js.map +4 -4
  138. package/dist/commonjs/models/models.d.ts +378 -0
  139. package/dist/commonjs/models/models.js +374 -0
  140. package/dist/commonjs/models/models.js.map +7 -0
  141. package/dist/commonjs/static-helpers/cloudSettingHelpers.d.ts +22 -0
  142. package/dist/commonjs/static-helpers/cloudSettingHelpers.js +52 -0
  143. package/dist/commonjs/static-helpers/cloudSettingHelpers.js.map +7 -0
  144. package/dist/commonjs/static-helpers/pagingHelpers.d.ts +74 -0
  145. package/dist/commonjs/static-helpers/pagingHelpers.js +143 -0
  146. package/dist/commonjs/static-helpers/pagingHelpers.js.map +7 -0
  147. package/dist/commonjs/static-helpers/urlTemplate.d.ts +5 -0
  148. package/dist/commonjs/static-helpers/urlTemplate.js +197 -0
  149. package/dist/commonjs/static-helpers/urlTemplate.js.map +7 -0
  150. package/dist/commonjs/subscriptionClient.d.ts +22 -24
  151. package/dist/commonjs/subscriptionClient.js +28 -130
  152. package/dist/commonjs/subscriptionClient.js.map +4 -4
  153. package/dist/commonjs/tsdoc-metadata.json +1 -1
  154. package/dist/esm/api/index.d.ts +5 -0
  155. package/dist/esm/api/index.js +5 -0
  156. package/dist/esm/api/index.js.map +1 -0
  157. package/dist/esm/api/operations/index.d.ts +3 -0
  158. package/dist/esm/api/operations/index.js +4 -0
  159. package/dist/esm/api/operations/index.js.map +1 -0
  160. package/dist/esm/api/operations/operations.d.ts +10 -0
  161. package/dist/esm/api/operations/operations.js +31 -0
  162. package/dist/esm/api/operations/operations.js.map +1 -0
  163. package/dist/esm/api/operations/options.d.ts +5 -0
  164. package/dist/esm/api/operations/options.js +4 -0
  165. package/dist/esm/api/operations/options.js.map +1 -0
  166. package/dist/esm/api/operations.d.ts +9 -0
  167. package/dist/esm/api/operations.js +35 -0
  168. package/dist/esm/api/operations.js.map +1 -0
  169. package/dist/esm/api/options.d.ts +8 -0
  170. package/dist/esm/api/options.js +4 -0
  171. package/dist/esm/api/options.js.map +1 -0
  172. package/dist/esm/api/subscriptionContext.d.ts +18 -0
  173. package/dist/esm/api/subscriptionContext.js +25 -0
  174. package/dist/esm/api/subscriptionContext.js.map +1 -0
  175. package/dist/esm/api/subscriptions/index.d.ts +3 -0
  176. package/dist/esm/api/subscriptions/index.js +4 -0
  177. package/dist/esm/api/subscriptions/index.js.map +1 -0
  178. package/dist/esm/api/subscriptions/operations.d.ts +22 -0
  179. package/dist/esm/api/subscriptions/operations.js +111 -0
  180. package/dist/esm/api/subscriptions/operations.js.map +1 -0
  181. package/dist/esm/api/subscriptions/options.d.ts +16 -0
  182. package/dist/esm/api/subscriptions/options.js +4 -0
  183. package/dist/esm/api/subscriptions/options.js.map +1 -0
  184. package/dist/esm/api/tenants/index.d.ts +3 -0
  185. package/dist/esm/api/tenants/index.js +4 -0
  186. package/dist/esm/api/tenants/index.js.map +1 -0
  187. package/dist/esm/api/tenants/operations.d.ts +10 -0
  188. package/dist/esm/api/tenants/operations.js +31 -0
  189. package/dist/esm/api/tenants/operations.js.map +1 -0
  190. package/dist/esm/api/tenants/options.d.ts +5 -0
  191. package/dist/esm/api/tenants/options.js +4 -0
  192. package/dist/esm/api/tenants/options.js.map +1 -0
  193. package/dist/esm/classic/index.d.ts +4 -0
  194. package/dist/esm/classic/index.js +4 -0
  195. package/dist/esm/classic/index.js.map +1 -0
  196. package/dist/esm/classic/operations/index.d.ts +11 -0
  197. package/dist/esm/classic/operations/index.js +14 -0
  198. package/dist/esm/classic/operations/index.js.map +1 -0
  199. package/dist/esm/classic/subscriptions/index.d.ts +17 -0
  200. package/dist/esm/classic/subscriptions/index.js +17 -0
  201. package/dist/esm/classic/subscriptions/index.js.map +1 -0
  202. package/dist/esm/classic/tenants/index.d.ts +11 -0
  203. package/dist/esm/classic/tenants/index.js +14 -0
  204. package/dist/esm/classic/tenants/index.js.map +1 -0
  205. package/dist/esm/index.d.ts +13 -3
  206. package/dist/esm/index.js +8 -8
  207. package/dist/esm/index.js.map +1 -7
  208. package/dist/esm/logger.d.ts +2 -0
  209. package/dist/esm/logger.js +5 -0
  210. package/dist/esm/logger.js.map +1 -0
  211. package/dist/esm/models/index.d.ts +2 -642
  212. package/dist/esm/models/index.js +4 -33
  213. package/dist/esm/models/index.js.map +1 -7
  214. package/dist/esm/models/models.d.ts +378 -0
  215. package/dist/esm/models/models.js +306 -0
  216. package/dist/esm/models/models.js.map +1 -0
  217. package/dist/esm/static-helpers/cloudSettingHelpers.d.ts +22 -0
  218. package/dist/esm/static-helpers/cloudSettingHelpers.js +38 -0
  219. package/dist/esm/static-helpers/cloudSettingHelpers.js.map +1 -0
  220. package/dist/esm/static-helpers/pagingHelpers.d.ts +74 -0
  221. package/dist/esm/static-helpers/pagingHelpers.js +143 -0
  222. package/dist/esm/static-helpers/pagingHelpers.js.map +1 -0
  223. package/dist/esm/static-helpers/urlTemplate.d.ts +5 -0
  224. package/dist/esm/static-helpers/urlTemplate.js +200 -0
  225. package/dist/esm/static-helpers/urlTemplate.js.map +1 -0
  226. package/dist/esm/subscriptionClient.d.ts +22 -24
  227. package/dist/esm/subscriptionClient.js +34 -125
  228. package/dist/esm/subscriptionClient.js.map +1 -7
  229. package/package.json +156 -77
  230. package/CHANGELOG.md +0 -75
  231. package/dist/browser/index.d.ts.map +0 -1
  232. package/dist/browser/models/index.d.ts.map +0 -1
  233. package/dist/browser/models/mappers.d.ts +0 -30
  234. package/dist/browser/models/mappers.d.ts.map +0 -1
  235. package/dist/browser/models/mappers.js +0 -1009
  236. package/dist/browser/models/mappers.js.map +0 -1
  237. package/dist/browser/models/parameters.d.ts +0 -11
  238. package/dist/browser/models/parameters.d.ts.map +0 -1
  239. package/dist/browser/models/parameters.js +0 -91
  240. package/dist/browser/models/parameters.js.map +0 -1
  241. package/dist/browser/operations/index.d.ts +0 -4
  242. package/dist/browser/operations/index.d.ts.map +0 -1
  243. package/dist/browser/operations/index.js +0 -11
  244. package/dist/browser/operations/index.js.map +0 -1
  245. package/dist/browser/operations/operations.d.ts +0 -32
  246. package/dist/browser/operations/operations.d.ts.map +0 -1
  247. package/dist/browser/operations/operations.js +0 -116
  248. package/dist/browser/operations/operations.js.map +0 -1
  249. package/dist/browser/operations/subscriptions.d.ts +0 -61
  250. package/dist/browser/operations/subscriptions.d.ts.map +0 -1
  251. package/dist/browser/operations/subscriptions.js +0 -225
  252. package/dist/browser/operations/subscriptions.js.map +0 -1
  253. package/dist/browser/operations/tenants.d.ts +0 -32
  254. package/dist/browser/operations/tenants.d.ts.map +0 -1
  255. package/dist/browser/operations/tenants.js +0 -116
  256. package/dist/browser/operations/tenants.js.map +0 -1
  257. package/dist/browser/operationsInterfaces/index.d.ts +0 -4
  258. package/dist/browser/operationsInterfaces/index.d.ts.map +0 -1
  259. package/dist/browser/operationsInterfaces/index.js +0 -11
  260. package/dist/browser/operationsInterfaces/index.js.map +0 -1
  261. package/dist/browser/operationsInterfaces/operations.d.ts +0 -11
  262. package/dist/browser/operationsInterfaces/operations.d.ts.map +0 -1
  263. package/dist/browser/operationsInterfaces/operations.js +0 -9
  264. package/dist/browser/operationsInterfaces/operations.js.map +0 -1
  265. package/dist/browser/operationsInterfaces/subscriptions.d.ts +0 -31
  266. package/dist/browser/operationsInterfaces/subscriptions.d.ts.map +0 -1
  267. package/dist/browser/operationsInterfaces/subscriptions.js +0 -9
  268. package/dist/browser/operationsInterfaces/subscriptions.js.map +0 -1
  269. package/dist/browser/operationsInterfaces/tenants.d.ts +0 -11
  270. package/dist/browser/operationsInterfaces/tenants.d.ts.map +0 -1
  271. package/dist/browser/operationsInterfaces/tenants.js +0 -9
  272. package/dist/browser/operationsInterfaces/tenants.js.map +0 -1
  273. package/dist/browser/pagingHelper.d.ts +0 -13
  274. package/dist/browser/pagingHelper.d.ts.map +0 -1
  275. package/dist/browser/pagingHelper.js +0 -30
  276. package/dist/browser/pagingHelper.js.map +0 -1
  277. package/dist/browser/subscriptionClient.d.ts.map +0 -1
  278. package/dist/commonjs/index.d.ts.map +0 -1
  279. package/dist/commonjs/models/index.d.ts.map +0 -1
  280. package/dist/commonjs/models/mappers.d.ts +0 -30
  281. package/dist/commonjs/models/mappers.d.ts.map +0 -1
  282. package/dist/commonjs/models/mappers.js +0 -1081
  283. package/dist/commonjs/models/mappers.js.map +0 -7
  284. package/dist/commonjs/models/parameters.d.ts +0 -11
  285. package/dist/commonjs/models/parameters.d.ts.map +0 -1
  286. package/dist/commonjs/models/parameters.js +0 -125
  287. package/dist/commonjs/models/parameters.js.map +0 -7
  288. package/dist/commonjs/operations/index.d.ts +0 -4
  289. package/dist/commonjs/operations/index.d.ts.map +0 -1
  290. package/dist/commonjs/operations/index.js.map +0 -7
  291. package/dist/commonjs/operations/operations.d.ts +0 -32
  292. package/dist/commonjs/operations/operations.d.ts.map +0 -1
  293. package/dist/commonjs/operations/operations.js +0 -148
  294. package/dist/commonjs/operations/operations.js.map +0 -7
  295. package/dist/commonjs/operations/subscriptions.d.ts +0 -61
  296. package/dist/commonjs/operations/subscriptions.d.ts.map +0 -1
  297. package/dist/commonjs/operations/subscriptions.js +0 -269
  298. package/dist/commonjs/operations/subscriptions.js.map +0 -7
  299. package/dist/commonjs/operations/tenants.d.ts +0 -32
  300. package/dist/commonjs/operations/tenants.d.ts.map +0 -1
  301. package/dist/commonjs/operations/tenants.js +0 -148
  302. package/dist/commonjs/operations/tenants.js.map +0 -7
  303. package/dist/commonjs/operationsInterfaces/index.d.ts +0 -4
  304. package/dist/commonjs/operationsInterfaces/index.d.ts.map +0 -1
  305. package/dist/commonjs/operationsInterfaces/index.js.map +0 -7
  306. package/dist/commonjs/operationsInterfaces/operations.d.ts +0 -11
  307. package/dist/commonjs/operationsInterfaces/operations.d.ts.map +0 -1
  308. package/dist/commonjs/operationsInterfaces/operations.js.map +0 -7
  309. package/dist/commonjs/operationsInterfaces/subscriptions.d.ts +0 -31
  310. package/dist/commonjs/operationsInterfaces/subscriptions.d.ts.map +0 -1
  311. package/dist/commonjs/operationsInterfaces/subscriptions.js.map +0 -7
  312. package/dist/commonjs/operationsInterfaces/tenants.d.ts +0 -11
  313. package/dist/commonjs/operationsInterfaces/tenants.d.ts.map +0 -1
  314. package/dist/commonjs/operationsInterfaces/tenants.js.map +0 -7
  315. package/dist/commonjs/pagingHelper.d.ts +0 -13
  316. package/dist/commonjs/pagingHelper.d.ts.map +0 -1
  317. package/dist/commonjs/pagingHelper.js.map +0 -7
  318. package/dist/commonjs/subscriptionClient.d.ts.map +0 -1
  319. package/dist/esm/index.d.ts.map +0 -1
  320. package/dist/esm/models/index.d.ts.map +0 -1
  321. package/dist/esm/models/mappers.d.ts +0 -30
  322. package/dist/esm/models/mappers.d.ts.map +0 -1
  323. package/dist/esm/models/mappers.js +0 -1031
  324. package/dist/esm/models/mappers.js.map +0 -7
  325. package/dist/esm/models/parameters.d.ts +0 -11
  326. package/dist/esm/models/parameters.d.ts.map +0 -1
  327. package/dist/esm/models/parameters.js +0 -97
  328. package/dist/esm/models/parameters.js.map +0 -7
  329. package/dist/esm/operations/index.d.ts +0 -4
  330. package/dist/esm/operations/index.d.ts.map +0 -1
  331. package/dist/esm/operations/index.js +0 -3
  332. package/dist/esm/operations/index.js.map +0 -7
  333. package/dist/esm/operations/operations.d.ts +0 -32
  334. package/dist/esm/operations/operations.d.ts.map +0 -1
  335. package/dist/esm/operations/operations.js +0 -115
  336. package/dist/esm/operations/operations.js.map +0 -7
  337. package/dist/esm/operations/subscriptions.d.ts +0 -61
  338. package/dist/esm/operations/subscriptions.d.ts.map +0 -1
  339. package/dist/esm/operations/subscriptions.js +0 -236
  340. package/dist/esm/operations/subscriptions.js.map +0 -7
  341. package/dist/esm/operations/tenants.d.ts +0 -32
  342. package/dist/esm/operations/tenants.d.ts.map +0 -1
  343. package/dist/esm/operations/tenants.js +0 -115
  344. package/dist/esm/operations/tenants.js.map +0 -7
  345. package/dist/esm/operationsInterfaces/index.d.ts +0 -4
  346. package/dist/esm/operationsInterfaces/index.d.ts.map +0 -1
  347. package/dist/esm/operationsInterfaces/index.js +0 -3
  348. package/dist/esm/operationsInterfaces/index.js.map +0 -7
  349. package/dist/esm/operationsInterfaces/operations.d.ts +0 -11
  350. package/dist/esm/operationsInterfaces/operations.d.ts.map +0 -1
  351. package/dist/esm/operationsInterfaces/operations.js +0 -0
  352. package/dist/esm/operationsInterfaces/operations.js.map +0 -7
  353. package/dist/esm/operationsInterfaces/subscriptions.d.ts +0 -31
  354. package/dist/esm/operationsInterfaces/subscriptions.d.ts.map +0 -1
  355. package/dist/esm/operationsInterfaces/subscriptions.js +0 -0
  356. package/dist/esm/operationsInterfaces/subscriptions.js.map +0 -7
  357. package/dist/esm/operationsInterfaces/tenants.d.ts +0 -11
  358. package/dist/esm/operationsInterfaces/tenants.d.ts.map +0 -1
  359. package/dist/esm/operationsInterfaces/tenants.js +0 -0
  360. package/dist/esm/operationsInterfaces/tenants.js.map +0 -7
  361. package/dist/esm/pagingHelper.d.ts +0 -13
  362. package/dist/esm/pagingHelper.d.ts.map +0 -1
  363. package/dist/esm/pagingHelper.js +0 -19
  364. package/dist/esm/pagingHelper.js.map +0 -7
  365. package/dist/esm/subscriptionClient.d.ts.map +0 -1
  366. package/dist/react-native/index.d.ts +0 -5
  367. package/dist/react-native/index.d.ts.map +0 -1
  368. package/dist/react-native/index.js +0 -13
  369. package/dist/react-native/index.js.map +0 -1
  370. package/dist/react-native/models/index.d.ts +0 -643
  371. package/dist/react-native/models/index.d.ts.map +0 -1
  372. package/dist/react-native/models/index.js +0 -50
  373. package/dist/react-native/models/index.js.map +0 -1
  374. package/dist/react-native/models/mappers.d.ts +0 -30
  375. package/dist/react-native/models/mappers.d.ts.map +0 -1
  376. package/dist/react-native/models/mappers.js +0 -1009
  377. package/dist/react-native/models/mappers.js.map +0 -1
  378. package/dist/react-native/models/parameters.d.ts +0 -11
  379. package/dist/react-native/models/parameters.d.ts.map +0 -1
  380. package/dist/react-native/models/parameters.js +0 -91
  381. package/dist/react-native/models/parameters.js.map +0 -1
  382. package/dist/react-native/operations/index.d.ts +0 -4
  383. package/dist/react-native/operations/index.d.ts.map +0 -1
  384. package/dist/react-native/operations/index.js +0 -11
  385. package/dist/react-native/operations/index.js.map +0 -1
  386. package/dist/react-native/operations/operations.d.ts +0 -32
  387. package/dist/react-native/operations/operations.d.ts.map +0 -1
  388. package/dist/react-native/operations/operations.js +0 -116
  389. package/dist/react-native/operations/operations.js.map +0 -1
  390. package/dist/react-native/operations/subscriptions.d.ts +0 -61
  391. package/dist/react-native/operations/subscriptions.d.ts.map +0 -1
  392. package/dist/react-native/operations/subscriptions.js +0 -225
  393. package/dist/react-native/operations/subscriptions.js.map +0 -1
  394. package/dist/react-native/operations/tenants.d.ts +0 -32
  395. package/dist/react-native/operations/tenants.d.ts.map +0 -1
  396. package/dist/react-native/operations/tenants.js +0 -116
  397. package/dist/react-native/operations/tenants.js.map +0 -1
  398. package/dist/react-native/operationsInterfaces/index.d.ts +0 -4
  399. package/dist/react-native/operationsInterfaces/index.d.ts.map +0 -1
  400. package/dist/react-native/operationsInterfaces/index.js +0 -11
  401. package/dist/react-native/operationsInterfaces/index.js.map +0 -1
  402. package/dist/react-native/operationsInterfaces/operations.d.ts +0 -11
  403. package/dist/react-native/operationsInterfaces/operations.d.ts.map +0 -1
  404. package/dist/react-native/operationsInterfaces/operations.js +0 -9
  405. package/dist/react-native/operationsInterfaces/operations.js.map +0 -1
  406. package/dist/react-native/operationsInterfaces/subscriptions.d.ts +0 -31
  407. package/dist/react-native/operationsInterfaces/subscriptions.d.ts.map +0 -1
  408. package/dist/react-native/operationsInterfaces/subscriptions.js +0 -9
  409. package/dist/react-native/operationsInterfaces/subscriptions.js.map +0 -1
  410. package/dist/react-native/operationsInterfaces/tenants.d.ts +0 -11
  411. package/dist/react-native/operationsInterfaces/tenants.d.ts.map +0 -1
  412. package/dist/react-native/operationsInterfaces/tenants.js +0 -9
  413. package/dist/react-native/operationsInterfaces/tenants.js.map +0 -1
  414. package/dist/react-native/package.json +0 -3
  415. package/dist/react-native/pagingHelper.d.ts +0 -13
  416. package/dist/react-native/pagingHelper.d.ts.map +0 -1
  417. package/dist/react-native/pagingHelper.js +0 -30
  418. package/dist/react-native/pagingHelper.js.map +0 -1
  419. package/dist/react-native/subscriptionClient.d.ts +0 -26
  420. package/dist/react-native/subscriptionClient.d.ts.map +0 -1
  421. package/dist/react-native/subscriptionClient.js +0 -133
  422. package/dist/react-native/subscriptionClient.js.map +0 -1
  423. package/review/arm-resources-subscriptions-node.api.md +0 -401
@@ -0,0 +1,306 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ export function resourceNameSerializer(item) {
4
+ return { name: item["name"], type: item["type"] };
5
+ }
6
+ export function checkResourceNameResultDeserializer(item) {
7
+ return {
8
+ name: item["name"],
9
+ type: item["type"],
10
+ status: item["status"],
11
+ };
12
+ }
13
+ /** Is the resource name Allowed or Reserved */
14
+ export var KnownResourceNameStatus;
15
+ (function (KnownResourceNameStatus) {
16
+ /** Allowed */
17
+ KnownResourceNameStatus["Allowed"] = "Allowed";
18
+ /** Reserved */
19
+ KnownResourceNameStatus["Reserved"] = "Reserved";
20
+ })(KnownResourceNameStatus || (KnownResourceNameStatus = {}));
21
+ export function cloudErrorDeserializer(item) {
22
+ return {
23
+ error: !item["error"] ? item["error"] : errorResponseDeserializer(item["error"]),
24
+ };
25
+ }
26
+ export function errorResponseDeserializer(item) {
27
+ return {
28
+ error: !item["error"] ? item["error"] : errorDetailDeserializer(item["error"]),
29
+ };
30
+ }
31
+ export function errorDetailDeserializer(item) {
32
+ return {
33
+ code: item["code"],
34
+ message: item["message"],
35
+ target: item["target"],
36
+ details: !item["details"] ? item["details"] : errorDetailArrayDeserializer(item["details"]),
37
+ additionalInfo: !item["additionalInfo"]
38
+ ? item["additionalInfo"]
39
+ : errorAdditionalInfoArrayDeserializer(item["additionalInfo"]),
40
+ };
41
+ }
42
+ export function errorDetailArrayDeserializer(result) {
43
+ return result.map((item) => {
44
+ return errorDetailDeserializer(item);
45
+ });
46
+ }
47
+ export function errorAdditionalInfoArrayDeserializer(result) {
48
+ return result.map((item) => {
49
+ return errorAdditionalInfoDeserializer(item);
50
+ });
51
+ }
52
+ export function errorAdditionalInfoDeserializer(item) {
53
+ return {
54
+ type: item["type"],
55
+ info: item["info"],
56
+ };
57
+ }
58
+ export function _operationListResultDeserializer(item) {
59
+ return {
60
+ value: operationArrayDeserializer(item["value"]),
61
+ nextLink: item["nextLink"],
62
+ };
63
+ }
64
+ export function operationArrayDeserializer(result) {
65
+ return result.map((item) => {
66
+ return operationDeserializer(item);
67
+ });
68
+ }
69
+ export function operationDeserializer(item) {
70
+ return {
71
+ name: item["name"],
72
+ isDataAction: item["isDataAction"],
73
+ display: !item["display"] ? item["display"] : operationDisplayDeserializer(item["display"]),
74
+ origin: item["origin"],
75
+ actionType: item["actionType"],
76
+ };
77
+ }
78
+ export function operationDisplayDeserializer(item) {
79
+ return {
80
+ provider: item["provider"],
81
+ resource: item["resource"],
82
+ operation: item["operation"],
83
+ description: item["description"],
84
+ };
85
+ }
86
+ /** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system" */
87
+ export var KnownOrigin;
88
+ (function (KnownOrigin) {
89
+ /** Indicates the operation is initiated by a user. */
90
+ KnownOrigin["User"] = "user";
91
+ /** Indicates the operation is initiated by a system. */
92
+ KnownOrigin["System"] = "system";
93
+ /** Indicates the operation is initiated by a user or system. */
94
+ KnownOrigin["UserSystem"] = "user,system";
95
+ })(KnownOrigin || (KnownOrigin = {}));
96
+ /** Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. */
97
+ export var KnownActionType;
98
+ (function (KnownActionType) {
99
+ /** Actions are for internal-only APIs. */
100
+ KnownActionType["Internal"] = "Internal";
101
+ })(KnownActionType || (KnownActionType = {}));
102
+ export function _locationListResultDeserializer(item) {
103
+ return {
104
+ value: !item["value"] ? item["value"] : locationArrayDeserializer(item["value"]),
105
+ nextLink: item["nextLink"],
106
+ };
107
+ }
108
+ export function locationArrayDeserializer(result) {
109
+ return result.map((item) => {
110
+ return locationDeserializer(item);
111
+ });
112
+ }
113
+ export function locationDeserializer(item) {
114
+ return {
115
+ id: item["id"],
116
+ subscriptionId: item["subscriptionId"],
117
+ name: item["name"],
118
+ type: item["type"],
119
+ displayName: item["displayName"],
120
+ regionalDisplayName: item["regionalDisplayName"],
121
+ metadata: !item["metadata"] ? item["metadata"] : locationMetadataDeserializer(item["metadata"]),
122
+ availabilityZoneMappings: !item["availabilityZoneMappings"]
123
+ ? item["availabilityZoneMappings"]
124
+ : availabilityZoneMappingsArrayDeserializer(item["availabilityZoneMappings"]),
125
+ };
126
+ }
127
+ export function locationMetadataDeserializer(item) {
128
+ return {
129
+ regionType: item["regionType"],
130
+ regionCategory: item["regionCategory"],
131
+ geography: item["geography"],
132
+ geographyGroup: item["geographyGroup"],
133
+ longitude: item["longitude"],
134
+ latitude: item["latitude"],
135
+ physicalLocation: item["physicalLocation"],
136
+ pairedRegion: !item["pairedRegion"]
137
+ ? item["pairedRegion"]
138
+ : pairedRegionArrayDeserializer(item["pairedRegion"]),
139
+ homeLocation: item["homeLocation"],
140
+ };
141
+ }
142
+ /** The type of the region. */
143
+ export var KnownRegionType;
144
+ (function (KnownRegionType) {
145
+ /** Physical */
146
+ KnownRegionType["Physical"] = "Physical";
147
+ /** Logical */
148
+ KnownRegionType["Logical"] = "Logical";
149
+ })(KnownRegionType || (KnownRegionType = {}));
150
+ /** The category of the region. */
151
+ export var KnownRegionCategory;
152
+ (function (KnownRegionCategory) {
153
+ /** Recommended */
154
+ KnownRegionCategory["Recommended"] = "Recommended";
155
+ /** Extended */
156
+ KnownRegionCategory["Extended"] = "Extended";
157
+ /** Other */
158
+ KnownRegionCategory["Other"] = "Other";
159
+ })(KnownRegionCategory || (KnownRegionCategory = {}));
160
+ export function pairedRegionArrayDeserializer(result) {
161
+ return result.map((item) => {
162
+ return pairedRegionDeserializer(item);
163
+ });
164
+ }
165
+ export function pairedRegionDeserializer(item) {
166
+ return {
167
+ name: item["name"],
168
+ id: item["id"],
169
+ subscriptionId: item["subscriptionId"],
170
+ };
171
+ }
172
+ export function availabilityZoneMappingsArrayDeserializer(result) {
173
+ return result.map((item) => {
174
+ return availabilityZoneMappingsDeserializer(item);
175
+ });
176
+ }
177
+ export function availabilityZoneMappingsDeserializer(item) {
178
+ return {
179
+ logicalZone: item["logicalZone"],
180
+ physicalZone: item["physicalZone"],
181
+ };
182
+ }
183
+ export function subscriptionDeserializer(item) {
184
+ return {
185
+ id: item["id"],
186
+ subscriptionId: item["subscriptionId"],
187
+ displayName: item["displayName"],
188
+ tenantId: item["tenantId"],
189
+ state: item["state"],
190
+ subscriptionPolicies: !item["subscriptionPolicies"]
191
+ ? item["subscriptionPolicies"]
192
+ : subscriptionPoliciesDeserializer(item["subscriptionPolicies"]),
193
+ authorizationSource: item["authorizationSource"],
194
+ managedByTenants: !item["managedByTenants"]
195
+ ? item["managedByTenants"]
196
+ : managedByTenantArrayDeserializer(item["managedByTenants"]),
197
+ tags: !item["tags"]
198
+ ? item["tags"]
199
+ : Object.fromEntries(Object.entries(item["tags"]).map(([k, p]) => [k, p])),
200
+ };
201
+ }
202
+ export function subscriptionPoliciesDeserializer(item) {
203
+ return {
204
+ locationPlacementId: item["locationPlacementId"],
205
+ quotaId: item["quotaId"],
206
+ spendingLimit: item["spendingLimit"],
207
+ };
208
+ }
209
+ export function managedByTenantArrayDeserializer(result) {
210
+ return result.map((item) => {
211
+ return managedByTenantDeserializer(item);
212
+ });
213
+ }
214
+ export function managedByTenantDeserializer(item) {
215
+ return {
216
+ tenantId: item["tenantId"],
217
+ };
218
+ }
219
+ export function _subscriptionListResultDeserializer(item) {
220
+ return {
221
+ value: subscriptionArrayDeserializer(item["value"]),
222
+ nextLink: item["nextLink"],
223
+ };
224
+ }
225
+ export function subscriptionArrayDeserializer(result) {
226
+ return result.map((item) => {
227
+ return subscriptionDeserializer(item);
228
+ });
229
+ }
230
+ export function checkZonePeersRequestSerializer(item) {
231
+ return {
232
+ location: item["location"],
233
+ subscriptionIds: !item["subscriptionIds"]
234
+ ? item["subscriptionIds"]
235
+ : item["subscriptionIds"].map((p) => {
236
+ return p;
237
+ }),
238
+ };
239
+ }
240
+ export function checkZonePeersResultDeserializer(item) {
241
+ return {
242
+ subscriptionId: item["subscriptionId"],
243
+ location: item["location"],
244
+ availabilityZonePeers: !item["availabilityZonePeers"]
245
+ ? item["availabilityZonePeers"]
246
+ : availabilityZonePeersArrayDeserializer(item["availabilityZonePeers"]),
247
+ };
248
+ }
249
+ export function availabilityZonePeersArrayDeserializer(result) {
250
+ return result.map((item) => {
251
+ return availabilityZonePeersDeserializer(item);
252
+ });
253
+ }
254
+ export function availabilityZonePeersDeserializer(item) {
255
+ return {
256
+ availabilityZone: item["availabilityZone"],
257
+ peers: !item["peers"] ? item["peers"] : peersArrayDeserializer(item["peers"]),
258
+ };
259
+ }
260
+ export function peersArrayDeserializer(result) {
261
+ return result.map((item) => {
262
+ return peersDeserializer(item);
263
+ });
264
+ }
265
+ export function peersDeserializer(item) {
266
+ return {
267
+ subscriptionId: item["subscriptionId"],
268
+ availabilityZone: item["availabilityZone"],
269
+ };
270
+ }
271
+ export function _tenantListResultDeserializer(item) {
272
+ return {
273
+ value: tenantIdDescriptionArrayDeserializer(item["value"]),
274
+ nextLink: item["nextLink"],
275
+ };
276
+ }
277
+ export function tenantIdDescriptionArrayDeserializer(result) {
278
+ return result.map((item) => {
279
+ return tenantIdDescriptionDeserializer(item);
280
+ });
281
+ }
282
+ export function tenantIdDescriptionDeserializer(item) {
283
+ return {
284
+ id: item["id"],
285
+ tenantId: item["tenantId"],
286
+ tenantCategory: item["tenantCategory"],
287
+ country: item["country"],
288
+ countryCode: item["countryCode"],
289
+ displayName: item["displayName"],
290
+ domains: !item["domains"]
291
+ ? item["domains"]
292
+ : item["domains"].map((p) => {
293
+ return p;
294
+ }),
295
+ defaultDomain: item["defaultDomain"],
296
+ tenantType: item["tenantType"],
297
+ tenantBrandingLogoUrl: item["tenantBrandingLogoUrl"],
298
+ };
299
+ }
300
+ /** The available API versions. */
301
+ export var KnownVersions;
302
+ (function (KnownVersions) {
303
+ /** The 2022-12-01 API version. */
304
+ KnownVersions["V20221201"] = "2022-12-01";
305
+ })(KnownVersions || (KnownVersions = {}));
306
+ //# sourceMappingURL=models.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/models/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAgBlC,MAAM,UAAU,sBAAsB,CAAC,IAAkB;IACvD,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC;AACpD,CAAC;AAYD,MAAM,UAAU,mCAAmC,CAAC,IAAS;IAC3D,OAAO;QACL,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC;QAClB,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC;QAClB,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC;KACvB,CAAC;AACJ,CAAC;AAED,+CAA+C;AAC/C,MAAM,CAAN,IAAY,uBAKX;AALD,WAAY,uBAAuB;IACjC,cAAc;IACd,8CAAmB,CAAA;IACnB,eAAe;IACf,gDAAqB,CAAA;AACvB,CAAC,EALW,uBAAuB,KAAvB,uBAAuB,QAKlC;AAkBD,MAAM,UAAU,sBAAsB,CAAC,IAAS;IAC9C,OAAO;QACL,KAAK,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,yBAAyB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;KACjF,CAAC;AACJ,CAAC;AAQD,MAAM,UAAU,yBAAyB,CAAC,IAAS;IACjD,OAAO;QACL,KAAK,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,uBAAuB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;KAC/E,CAAC;AACJ,CAAC;AAgBD,MAAM,UAAU,uBAAuB,CAAC,IAAS;IAC/C,OAAO;QACL,IAAI,EAAE,IAAI,CAAC,MA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M,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QACzB,OAAO,+BAA+B,CAAC,IAAI,CAAC,CAAC;IAC/C,CAAC,CAAC,CAAC;AACL,CAAC;AA0BD,MAAM,UAAU,+BAA+B,CAAC,IAAS;IACvD,OAAO;QACL,EAAE,EAAE,IAAI,CAAC,IAAI,CAAC;QACd,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC;QAC1B,cAAc,EAAE,IAAI,CAAC,gBAAgB,CAAC;QACtC,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC;QACxB,WAAW,EAAE,IAAI,CAAC,aAAa,CAAC;QAChC,WAAW,EAAE,IAAI,CAAC,aAAa,CAAC;QAChC,OAAO,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC;YACvB,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC;YACjB,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,CAAC,CAAM,EAAE,EAAE;gBAC7B,OAAO,CAAC,CAAC;YACX,CAAC,CAAC;QACN,aAAa,EAAE,IAAI,CAAC,eAAe,CAAC;QACpC,UAAU,EAAE,IAAI,CAAC,YAAY,CAAC;QAC9B,qBAAqB,EAAE,IAAI,CAAC,uBAAuB,CAAC;KACrD,CAAC;AACJ,CAAC;AAKD,kCAAkC;AAClC,MAAM,CAAN,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,kCAAkC;IAClC,yCAAwB,CAAA;AAC1B,CAAC,EAHW,aAAa,KAAb,aAAa,QAGxB","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * This file contains only generated model types and their (de)serializers.\n * Disable the following rules for internal models with '_' prefix and deserializers which require 'any' for raw JSON input.\n */\n/* eslint-disable @typescript-eslint/naming-convention */\n/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\n/** Name and Type of the Resource */\nexport interface ResourceName {\n /** Name of the resource */\n name: string;\n /** The type of the resource */\n type: string;\n}\n\nexport function resourceNameSerializer(item: ResourceName): any {\n return { name: item[\"name\"], type: item[\"type\"] };\n}\n\n/** Resource Name valid if not a reserved word, does not contain a reserved word and does not start with a reserved word */\nexport interface CheckResourceNameResult {\n /** Name of Resource */\n name?: string;\n /** Type of Resource */\n type?: string;\n /** Is the resource name Allowed or Reserved */\n status?: ResourceNameStatus;\n}\n\nexport function checkResourceNameResultDeserializer(item: any): CheckResourceNameResult {\n return {\n name: item[\"name\"],\n type: item[\"type\"],\n status: item[\"status\"],\n };\n}\n\n/** Is the resource name Allowed or Reserved */\nexport enum KnownResourceNameStatus {\n /** Allowed */\n Allowed = \"Allowed\",\n /** Reserved */\n Reserved = \"Reserved\",\n}\n\n/**\n * Is the resource name Allowed or Reserved \\\n * {@link KnownResourceNameStatus} can be used interchangeably with ResourceNameStatus,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Allowed**: Allowed \\\n * **Reserved**: Reserved\n */\nexport type ResourceNameStatus = string;\n\n/** An error response for a resource management request. */\nexport interface CloudError {\n /** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */\n error?: ErrorResponse;\n}\n\nexport function cloudErrorDeserializer(item: any): CloudError {\n return {\n error: !item[\"error\"] ? item[\"error\"] : errorResponseDeserializer(item[\"error\"]),\n };\n}\n\n/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. */\nexport interface ErrorResponse {\n /** The error object. */\n error?: ErrorDetail;\n}\n\nexport function errorResponseDeserializer(item: any): ErrorResponse {\n return {\n error: !item[\"error\"] ? item[\"error\"] : errorDetailDeserializer(item[\"error\"]),\n };\n}\n\n/** The error detail. */\nexport interface ErrorDetail {\n /** The error code. */\n readonly code?: string;\n /** The error message. */\n readonly message?: string;\n /** The error target. */\n readonly target?: string;\n /** The error details. */\n readonly details?: ErrorDetail[];\n /** The error additional info. */\n readonly additionalInfo?: ErrorAdditionalInfo[];\n}\n\nexport function errorDetailDeserializer(item: any): ErrorDetail {\n return {\n code: item[\"code\"],\n message: item[\"message\"],\n target: item[\"target\"],\n details: !item[\"details\"] ? item[\"details\"] : errorDetailArrayDeserializer(item[\"details\"]),\n additionalInfo: !item[\"additionalInfo\"]\n ? item[\"additionalInfo\"]\n : errorAdditionalInfoArrayDeserializer(item[\"additionalInfo\"]),\n };\n}\n\nexport function errorDetailArrayDeserializer(result: Array<ErrorDetail>): any[] {\n return result.map((item) => {\n return errorDetailDeserializer(item);\n });\n}\n\nexport function errorAdditionalInfoArrayDeserializer(result: Array<ErrorAdditionalInfo>): any[] {\n return result.map((item) => {\n return errorAdditionalInfoDeserializer(item);\n });\n}\n\n/** The resource management error additional info. */\nexport interface ErrorAdditionalInfo {\n /** The additional info type. */\n readonly type?: string;\n /** The additional info. */\n readonly info?: any;\n}\n\nexport function errorAdditionalInfoDeserializer(item: any): ErrorAdditionalInfo {\n return {\n type: item[\"type\"],\n info: item[\"info\"],\n };\n}\n\n/** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */\nexport interface _OperationListResult {\n /** The Operation items on this page */\n value: Operation[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _operationListResultDeserializer(item: any): _OperationListResult {\n return {\n value: operationArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function operationArrayDeserializer(result: Array<Operation>): any[] {\n return result.map((item) => {\n return operationDeserializer(item);\n });\n}\n\n/** Details of a REST API operation, returned from the Resource Provider Operations API */\nexport interface Operation {\n /** The name of the operation, as per Resource-Based Access Control (RBAC). Examples: \"Microsoft.Compute/virtualMachines/write\", \"Microsoft.Compute/virtualMachines/capture/action\" */\n readonly name?: string;\n /** Whether the operation applies to data-plane. This is \"true\" for data-plane operations and \"false\" for Azure Resource Manager/control-plane operations. */\n readonly isDataAction?: boolean;\n /** Localized display information for this particular operation. */\n display?: OperationDisplay;\n /** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\" */\n readonly origin?: Origin;\n /** Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. */\n readonly actionType?: ActionType;\n}\n\nexport function operationDeserializer(item: any): Operation {\n return {\n name: item[\"name\"],\n isDataAction: item[\"isDataAction\"],\n display: !item[\"display\"] ? item[\"display\"] : operationDisplayDeserializer(item[\"display\"]),\n origin: item[\"origin\"],\n actionType: item[\"actionType\"],\n };\n}\n\n/** Localized display information for an operation. */\nexport interface OperationDisplay {\n /** The localized friendly form of the resource provider name, e.g. \"Microsoft Monitoring Insights\" or \"Microsoft Compute\". */\n readonly provider?: string;\n /** The localized friendly name of the resource type related to this operation. E.g. \"Virtual Machines\" or \"Job Schedule Collections\". */\n readonly resource?: string;\n /** The concise, localized friendly name for the operation; suitable for dropdowns. E.g. \"Create or Update Virtual Machine\", \"Restart Virtual Machine\". */\n readonly operation?: string;\n /** The short, localized friendly description of the operation; suitable for tool tips and detailed views. */\n readonly description?: string;\n}\n\nexport function operationDisplayDeserializer(item: any): OperationDisplay {\n return {\n provider: item[\"provider\"],\n resource: item[\"resource\"],\n operation: item[\"operation\"],\n description: item[\"description\"],\n };\n}\n\n/** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\" */\nexport enum KnownOrigin {\n /** Indicates the operation is initiated by a user. */\n User = \"user\",\n /** Indicates the operation is initiated by a system. */\n System = \"system\",\n /** Indicates the operation is initiated by a user or system. */\n UserSystem = \"user,system\",\n}\n\n/**\n * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\" \\\n * {@link KnownOrigin} can be used interchangeably with Origin,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **user**: Indicates the operation is initiated by a user. \\\n * **system**: Indicates the operation is initiated by a system. \\\n * **user,system**: Indicates the operation is initiated by a user or system.\n */\nexport type Origin = string;\n\n/** Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. */\nexport enum KnownActionType {\n /** Actions are for internal-only APIs. */\n Internal = \"Internal\",\n}\n\n/**\n * Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. \\\n * {@link KnownActionType} can be used interchangeably with ActionType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Internal**: Actions are for internal-only APIs.\n */\nexport type ActionType = string;\n\n/** Location list operation response. */\nexport interface _LocationListResult {\n /** An array of locations. */\n value?: Location[];\n /** The URL to get the next set of results. */\n nextLink?: string;\n}\n\nexport function _locationListResultDeserializer(item: any): _LocationListResult {\n return {\n value: !item[\"value\"] ? item[\"value\"] : locationArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function locationArrayDeserializer(result: Array<Location>): any[] {\n return result.map((item) => {\n return locationDeserializer(item);\n });\n}\n\n/** Location information. */\nexport interface Location {\n /** The fully qualified ID of the location. For example, /subscriptions/8d65815f-a5b6-402f-9298-045155da7d74/locations/westus. */\n readonly id?: string;\n /** The subscription ID. */\n readonly subscriptionId?: string;\n /** The location name. */\n readonly name?: string;\n /** The location type. */\n readonly type?: LocationType;\n /** The display name of the location. */\n readonly displayName?: string;\n /** The display name of the location and its region. */\n readonly regionalDisplayName?: string;\n /** Metadata of the location, such as lat/long, paired region, and others. */\n metadata?: LocationMetadata;\n /** The availability zone mappings for this region. */\n availabilityZoneMappings?: AvailabilityZoneMappings[];\n}\n\nexport function locationDeserializer(item: any): Location {\n return {\n id: item[\"id\"],\n subscriptionId: item[\"subscriptionId\"],\n name: item[\"name\"],\n type: item[\"type\"],\n displayName: item[\"displayName\"],\n regionalDisplayName: item[\"regionalDisplayName\"],\n metadata: !item[\"metadata\"] ? item[\"metadata\"] : locationMetadataDeserializer(item[\"metadata\"]),\n availabilityZoneMappings: !item[\"availabilityZoneMappings\"]\n ? item[\"availabilityZoneMappings\"]\n : availabilityZoneMappingsArrayDeserializer(item[\"availabilityZoneMappings\"]),\n };\n}\n\n/** The location type. */\nexport type LocationType = \"Region\" | \"EdgeZone\";\n\n/** Location metadata information */\nexport interface LocationMetadata {\n /** The type of the region. */\n readonly regionType?: RegionType;\n /** The category of the region. */\n readonly regionCategory?: RegionCategory;\n /** The geography of the location. */\n readonly geography?: string;\n /** The geography group of the location. */\n readonly geographyGroup?: string;\n /** The longitude of the location. */\n readonly longitude?: string;\n /** The latitude of the location. */\n readonly latitude?: string;\n /** The physical location of the Azure location. */\n readonly physicalLocation?: string;\n /** The regions paired to this region. */\n pairedRegion?: PairedRegion[];\n /** The home location of an edge zone. */\n readonly homeLocation?: string;\n}\n\nexport function locationMetadataDeserializer(item: any): LocationMetadata {\n return {\n regionType: item[\"regionType\"],\n regionCategory: item[\"regionCategory\"],\n geography: item[\"geography\"],\n geographyGroup: item[\"geographyGroup\"],\n longitude: item[\"longitude\"],\n latitude: item[\"latitude\"],\n physicalLocation: item[\"physicalLocation\"],\n pairedRegion: !item[\"pairedRegion\"]\n ? item[\"pairedRegion\"]\n : pairedRegionArrayDeserializer(item[\"pairedRegion\"]),\n homeLocation: item[\"homeLocation\"],\n };\n}\n\n/** The type of the region. */\nexport enum KnownRegionType {\n /** Physical */\n Physical = \"Physical\",\n /** Logical */\n Logical = \"Logical\",\n}\n\n/**\n * The type of the region. \\\n * {@link KnownRegionType} can be used interchangeably with RegionType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Physical**: Physical \\\n * **Logical**: Logical\n */\nexport type RegionType = string;\n\n/** The category of the region. */\nexport enum KnownRegionCategory {\n /** Recommended */\n Recommended = \"Recommended\",\n /** Extended */\n Extended = \"Extended\",\n /** Other */\n Other = \"Other\",\n}\n\n/**\n * The category of the region. \\\n * {@link KnownRegionCategory} can be used interchangeably with RegionCategory,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Recommended**: Recommended \\\n * **Extended**: Extended \\\n * **Other**: Other\n */\nexport type RegionCategory = string;\n\nexport function pairedRegionArrayDeserializer(result: Array<PairedRegion>): any[] {\n return result.map((item) => {\n return pairedRegionDeserializer(item);\n });\n}\n\n/** Information regarding paired region. */\nexport interface PairedRegion {\n /** The name of the paired region. */\n readonly name?: string;\n /** The fully qualified ID of the location. For example, /subscriptions/8d65815f-a5b6-402f-9298-045155da7d74/locations/westus. */\n readonly id?: string;\n /** The subscription ID. */\n readonly subscriptionId?: string;\n}\n\nexport function pairedRegionDeserializer(item: any): PairedRegion {\n return {\n name: item[\"name\"],\n id: item[\"id\"],\n subscriptionId: item[\"subscriptionId\"],\n };\n}\n\nexport function availabilityZoneMappingsArrayDeserializer(\n result: Array<AvailabilityZoneMappings>,\n): any[] {\n return result.map((item) => {\n return availabilityZoneMappingsDeserializer(item);\n });\n}\n\n/** Availability zone mappings for the region */\nexport interface AvailabilityZoneMappings {\n /** The logical zone id for the availability zone */\n readonly logicalZone?: string;\n /** The fully qualified physical zone id of availability zone to which logical zone id is mapped to */\n readonly physicalZone?: string;\n}\n\nexport function availabilityZoneMappingsDeserializer(item: any): AvailabilityZoneMappings {\n return {\n logicalZone: item[\"logicalZone\"],\n physicalZone: item[\"physicalZone\"],\n };\n}\n\n/** Subscription information. */\nexport interface Subscription {\n /** The fully qualified ID for the subscription. For example, /subscriptions/8d65815f-a5b6-402f-9298-045155da7d74 */\n readonly id?: string;\n /** The subscription ID. */\n readonly subscriptionId?: string;\n /** The subscription display name. */\n readonly displayName?: string;\n /** The subscription tenant ID. */\n readonly tenantId?: string;\n /** The subscription state. Possible values are Enabled, Warned, PastDue, Disabled, and Deleted. */\n readonly state?: SubscriptionState;\n /** The subscription policies. */\n subscriptionPolicies?: SubscriptionPolicies;\n /** The authorization source of the request. Valid values are one or more combinations of Legacy, RoleBased, Bypassed, Direct and Management. For example, 'Legacy, RoleBased'. */\n authorizationSource?: string;\n /** An array containing the tenants managing the subscription. */\n managedByTenants?: ManagedByTenant[];\n /** The tags attached to the subscription. */\n tags?: Record<string, string>;\n}\n\nexport function subscriptionDeserializer(item: any): Subscription {\n return {\n id: item[\"id\"],\n subscriptionId: item[\"subscriptionId\"],\n displayName: item[\"displayName\"],\n tenantId: item[\"tenantId\"],\n state: item[\"state\"],\n subscriptionPolicies: !item[\"subscriptionPolicies\"]\n ? item[\"subscriptionPolicies\"]\n : subscriptionPoliciesDeserializer(item[\"subscriptionPolicies\"]),\n authorizationSource: item[\"authorizationSource\"],\n managedByTenants: !item[\"managedByTenants\"]\n ? item[\"managedByTenants\"]\n : managedByTenantArrayDeserializer(item[\"managedByTenants\"]),\n tags: !item[\"tags\"]\n ? item[\"tags\"]\n : Object.fromEntries(Object.entries(item[\"tags\"]).map(([k, p]: [string, any]) => [k, p])),\n };\n}\n\n/** The subscription state. Possible values are Enabled, Warned, PastDue, Disabled, and Deleted. */\nexport type SubscriptionState = \"Enabled\" | \"Warned\" | \"PastDue\" | \"Disabled\" | \"Deleted\";\n\n/** Subscription policies. */\nexport interface SubscriptionPolicies {\n /** The subscription location placement ID. The ID indicates which regions are visible for a subscription. For example, a subscription with a location placement Id of Public_2014-09-01 has access to Azure public regions. */\n readonly locationPlacementId?: string;\n /** The subscription quota ID. */\n readonly quotaId?: string;\n /** The subscription spending limit. */\n readonly spendingLimit?: SpendingLimit;\n}\n\nexport function subscriptionPoliciesDeserializer(item: any): SubscriptionPolicies {\n return {\n locationPlacementId: item[\"locationPlacementId\"],\n quotaId: item[\"quotaId\"],\n spendingLimit: item[\"spendingLimit\"],\n };\n}\n\n/** The subscription spending limit. */\nexport type SpendingLimit = \"On\" | \"Off\" | \"CurrentPeriodOff\";\n\nexport function managedByTenantArrayDeserializer(result: Array<ManagedByTenant>): any[] {\n return result.map((item) => {\n return managedByTenantDeserializer(item);\n });\n}\n\n/** Information about a tenant managing the subscription. */\nexport interface ManagedByTenant {\n /** The tenant ID of the managing tenant. This is a GUID. */\n readonly tenantId?: string;\n}\n\nexport function managedByTenantDeserializer(item: any): ManagedByTenant {\n return {\n tenantId: item[\"tenantId\"],\n };\n}\n\n/** Subscription list operation response. */\nexport interface _SubscriptionListResult {\n /** The Subscription items on this page */\n value: Subscription[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _subscriptionListResultDeserializer(item: any): _SubscriptionListResult {\n return {\n value: subscriptionArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function subscriptionArrayDeserializer(result: Array<Subscription>): any[] {\n return result.map((item) => {\n return subscriptionDeserializer(item);\n });\n}\n\n/** Check zone peers request parameters. */\nexport interface CheckZonePeersRequest {\n /** The Microsoft location. */\n location?: string;\n /** The peer Microsoft Azure subscription ID. */\n subscriptionIds?: string[];\n}\n\nexport function checkZonePeersRequestSerializer(item: CheckZonePeersRequest): any {\n return {\n location: item[\"location\"],\n subscriptionIds: !item[\"subscriptionIds\"]\n ? item[\"subscriptionIds\"]\n : item[\"subscriptionIds\"].map((p: any) => {\n return p;\n }),\n };\n}\n\n/** Result of the Check zone peers operation. */\nexport interface CheckZonePeersResult {\n /** The subscription ID. */\n readonly subscriptionId?: string;\n /** the location of the subscription. */\n location?: string;\n /** The Availability Zones shared by the subscriptions. */\n availabilityZonePeers?: AvailabilityZonePeers[];\n}\n\nexport function checkZonePeersResultDeserializer(item: any): CheckZonePeersResult {\n return {\n subscriptionId: item[\"subscriptionId\"],\n location: item[\"location\"],\n availabilityZonePeers: !item[\"availabilityZonePeers\"]\n ? item[\"availabilityZonePeers\"]\n : availabilityZonePeersArrayDeserializer(item[\"availabilityZonePeers\"]),\n };\n}\n\nexport function availabilityZonePeersArrayDeserializer(\n result: Array<AvailabilityZonePeers>,\n): any[] {\n return result.map((item) => {\n return availabilityZonePeersDeserializer(item);\n });\n}\n\n/** List of availability zones shared by the subscriptions. */\nexport interface AvailabilityZonePeers {\n /** The availabilityZone. */\n readonly availabilityZone?: string;\n /** Details of shared availability zone. */\n peers?: Peers[];\n}\n\nexport function availabilityZonePeersDeserializer(item: any): AvailabilityZonePeers {\n return {\n availabilityZone: item[\"availabilityZone\"],\n peers: !item[\"peers\"] ? item[\"peers\"] : peersArrayDeserializer(item[\"peers\"]),\n };\n}\n\nexport function peersArrayDeserializer(result: Array<Peers>): any[] {\n return result.map((item) => {\n return peersDeserializer(item);\n });\n}\n\n/** Information about shared availability zone. */\nexport interface Peers {\n /** The subscription ID. */\n readonly subscriptionId?: string;\n /** The availabilityZone. */\n readonly availabilityZone?: string;\n}\n\nexport function peersDeserializer(item: any): Peers {\n return {\n subscriptionId: item[\"subscriptionId\"],\n availabilityZone: item[\"availabilityZone\"],\n };\n}\n\n/** Tenant Ids information. */\nexport interface _TenantListResult {\n /** The TenantIdDescription items on this page */\n value: TenantIdDescription[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _tenantListResultDeserializer(item: any): _TenantListResult {\n return {\n value: tenantIdDescriptionArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function tenantIdDescriptionArrayDeserializer(result: Array<TenantIdDescription>): any[] {\n return result.map((item) => {\n return tenantIdDescriptionDeserializer(item);\n });\n}\n\n/** Tenant Id information. */\nexport interface TenantIdDescription {\n /** The fully qualified ID of the tenant. For example, /tenants/8d65815f-a5b6-402f-9298-045155da7d74 */\n readonly id?: string;\n /** The tenant ID. For example, 8d65815f-a5b6-402f-9298-045155da7d74 */\n readonly tenantId?: string;\n /** Category of the tenant. */\n readonly tenantCategory?: TenantCategory;\n /** Country/region name of the address for the tenant. */\n readonly country?: string;\n /** Country/region abbreviation for the tenant. */\n readonly countryCode?: string;\n /** The display name of the tenant. */\n readonly displayName?: string;\n /** The list of domains for the tenant. */\n readonly domains?: string[];\n /** The default domain for the tenant. */\n readonly defaultDomain?: string;\n /** The tenant type. Only available for 'Home' tenant category. */\n readonly tenantType?: string;\n /** The tenant's branding logo URL. Only available for 'Home' tenant category. */\n readonly tenantBrandingLogoUrl?: string;\n}\n\nexport function tenantIdDescriptionDeserializer(item: any): TenantIdDescription {\n return {\n id: item[\"id\"],\n tenantId: item[\"tenantId\"],\n tenantCategory: item[\"tenantCategory\"],\n country: item[\"country\"],\n countryCode: item[\"countryCode\"],\n displayName: item[\"displayName\"],\n domains: !item[\"domains\"]\n ? item[\"domains\"]\n : item[\"domains\"].map((p: any) => {\n return p;\n }),\n defaultDomain: item[\"defaultDomain\"],\n tenantType: item[\"tenantType\"],\n tenantBrandingLogoUrl: item[\"tenantBrandingLogoUrl\"],\n };\n}\n\n/** Category of the tenant. */\nexport type TenantCategory = \"Home\" | \"ProjectedBy\" | \"ManagedBy\";\n\n/** The available API versions. */\nexport enum KnownVersions {\n /** The 2022-12-01 API version. */\n V20221201 = \"2022-12-01\",\n}\n"]}
@@ -0,0 +1,22 @@
1
+ /**
2
+ * An enum to describe Azure Cloud environments.
3
+ * @enum {string}
4
+ */
5
+ export declare enum AzureClouds {
6
+ /** Azure public cloud, which is the default cloud for Azure SDKs. */
7
+ AZURE_PUBLIC_CLOUD = "AZURE_PUBLIC_CLOUD",
8
+ /** Azure China cloud */
9
+ AZURE_CHINA_CLOUD = "AZURE_CHINA_CLOUD",
10
+ /** Azure US government cloud */
11
+ AZURE_US_GOVERNMENT = "AZURE_US_GOVERNMENT"
12
+ }
13
+ /** The supported values for cloud setting as a string literal type */
14
+ export type AzureSupportedClouds = `${AzureClouds}`;
15
+ /**
16
+ * Gets the Azure Resource Manager endpoint URL for the specified cloud setting.
17
+ * @param cloudSetting - The Azure cloud environment setting. Use one of the AzureClouds enum values.
18
+ * @returns The ARM endpoint URL for the specified cloud, or undefined if cloudSetting is undefined.
19
+ * @throws {Error} Throws an error if an unknown cloud setting is provided.
20
+ */
21
+ export declare function getArmEndpoint(cloudSetting?: AzureSupportedClouds): string | undefined;
22
+ //# sourceMappingURL=cloudSettingHelpers.d.ts.map
@@ -0,0 +1,38 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ /**
4
+ * An enum to describe Azure Cloud environments.
5
+ * @enum {string}
6
+ */
7
+ export var AzureClouds;
8
+ (function (AzureClouds) {
9
+ /** Azure public cloud, which is the default cloud for Azure SDKs. */
10
+ AzureClouds["AZURE_PUBLIC_CLOUD"] = "AZURE_PUBLIC_CLOUD";
11
+ /** Azure China cloud */
12
+ AzureClouds["AZURE_CHINA_CLOUD"] = "AZURE_CHINA_CLOUD";
13
+ /** Azure US government cloud */
14
+ AzureClouds["AZURE_US_GOVERNMENT"] = "AZURE_US_GOVERNMENT";
15
+ })(AzureClouds || (AzureClouds = {}));
16
+ /**
17
+ * Gets the Azure Resource Manager endpoint URL for the specified cloud setting.
18
+ * @param cloudSetting - The Azure cloud environment setting. Use one of the AzureClouds enum values.
19
+ * @returns The ARM endpoint URL for the specified cloud, or undefined if cloudSetting is undefined.
20
+ * @throws {Error} Throws an error if an unknown cloud setting is provided.
21
+ */
22
+ export function getArmEndpoint(cloudSetting) {
23
+ if (cloudSetting === undefined) {
24
+ return undefined;
25
+ }
26
+ const cloudEndpoints = {
27
+ AZURE_CHINA_CLOUD: "https://management.chinacloudapi.cn/",
28
+ AZURE_US_GOVERNMENT: "https://management.usgovcloudapi.net/",
29
+ AZURE_PUBLIC_CLOUD: "https://management.azure.com/",
30
+ };
31
+ if (cloudSetting in cloudEndpoints) {
32
+ return cloudEndpoints[cloudSetting];
33
+ }
34
+ else {
35
+ throw new Error(`Unknown cloud setting: ${cloudSetting}. Please refer to the enum AzureClouds for possible values.`);
36
+ }
37
+ }
38
+ //# sourceMappingURL=cloudSettingHelpers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cloudSettingHelpers.js","sourceRoot":"","sources":["../../../src/static-helpers/cloudSettingHelpers.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC;;;GAGG;AACH,MAAM,CAAN,IAAY,WAOX;AAPD,WAAY,WAAW;IACrB,qEAAqE;IACrE,wDAAyC,CAAA;IACzC,wBAAwB;IACxB,sDAAuC,CAAA;IACvC,gCAAgC;IAChC,0DAA2C,CAAA;AAC7C,CAAC,EAPW,WAAW,KAAX,WAAW,QAOtB;AAKD;;;;;GAKG;AACH,MAAM,UAAU,cAAc,CAAC,YAAmC;IAChE,IAAI,YAAY,KAAK,SAAS,EAAE,CAAC;QAC/B,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,MAAM,cAAc,GAA6C;QAC/D,iBAAiB,EAAE,sCAAsC;QACzD,mBAAmB,EAAE,uCAAuC;QAC5D,kBAAkB,EAAE,+BAA+B;KACpD,CAAC;IACF,IAAI,YAAY,IAAI,cAAc,EAAE,CAAC;QACnC,OAAO,cAAc,CAAC,YAAY,CAAC,CAAC;IACtC,CAAC;SAAM,CAAC;QACN,MAAM,IAAI,KAAK,CACb,0BAA0B,YAAY,6DAA6D,CACpG,CAAC;IACJ,CAAC;AACH,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * An enum to describe Azure Cloud environments.\n * @enum {string}\n */\nexport enum AzureClouds {\n /** Azure public cloud, which is the default cloud for Azure SDKs. */\n AZURE_PUBLIC_CLOUD = \"AZURE_PUBLIC_CLOUD\",\n /** Azure China cloud */\n AZURE_CHINA_CLOUD = \"AZURE_CHINA_CLOUD\",\n /** Azure US government cloud */\n AZURE_US_GOVERNMENT = \"AZURE_US_GOVERNMENT\",\n}\n\n/** The supported values for cloud setting as a string literal type */\nexport type AzureSupportedClouds = `${AzureClouds}`;\n\n/**\n * Gets the Azure Resource Manager endpoint URL for the specified cloud setting.\n * @param cloudSetting - The Azure cloud environment setting. Use one of the AzureClouds enum values.\n * @returns The ARM endpoint URL for the specified cloud, or undefined if cloudSetting is undefined.\n * @throws {Error} Throws an error if an unknown cloud setting is provided.\n */\nexport function getArmEndpoint(cloudSetting?: AzureSupportedClouds): string | undefined {\n if (cloudSetting === undefined) {\n return undefined;\n }\n const cloudEndpoints: Record<keyof typeof AzureClouds, string> = {\n AZURE_CHINA_CLOUD: \"https://management.chinacloudapi.cn/\",\n AZURE_US_GOVERNMENT: \"https://management.usgovcloudapi.net/\",\n AZURE_PUBLIC_CLOUD: \"https://management.azure.com/\",\n };\n if (cloudSetting in cloudEndpoints) {\n return cloudEndpoints[cloudSetting];\n } else {\n throw new Error(\n `Unknown cloud setting: ${cloudSetting}. Please refer to the enum AzureClouds for possible values.`,\n );\n }\n}\n"]}
@@ -0,0 +1,74 @@
1
+ import { Client, PathUncheckedResponse } from "@azure-rest/core-client";
2
+ /**
3
+ * Options for the byPage method
4
+ */
5
+ export interface PageSettings {
6
+ /**
7
+ * A reference to a specific page to start iterating from.
8
+ */
9
+ continuationToken?: string;
10
+ }
11
+ /**
12
+ * An interface that describes a page of results.
13
+ */
14
+ export type ContinuablePage<TElement, TPage = TElement[]> = TPage & {
15
+ /**
16
+ * The token that keeps track of where to continue the iterator
17
+ */
18
+ continuationToken?: string;
19
+ };
20
+ /**
21
+ * An interface that allows async iterable iteration both to completion and by page.
22
+ */
23
+ export interface PagedAsyncIterableIterator<TElement, TPage = TElement[], TPageSettings extends PageSettings = PageSettings> {
24
+ /**
25
+ * The next method, part of the iteration protocol
26
+ */
27
+ next(): Promise<IteratorResult<TElement>>;
28
+ /**
29
+ * The connection to the async iterator, part of the iteration protocol
30
+ */
31
+ [Symbol.asyncIterator](): PagedAsyncIterableIterator<TElement, TPage, TPageSettings>;
32
+ /**
33
+ * Return an AsyncIterableIterator that works a page at a time
34
+ */
35
+ byPage: (settings?: TPageSettings) => AsyncIterableIterator<ContinuablePage<TElement, TPage>>;
36
+ }
37
+ /**
38
+ * An interface that describes how to communicate with the service.
39
+ */
40
+ export interface PagedResult<TElement, TPage = TElement[], TPageSettings extends PageSettings = PageSettings> {
41
+ /**
42
+ * Link to the first page of results.
43
+ */
44
+ firstPageLink?: string;
45
+ /**
46
+ * A method that returns a page of results.
47
+ */
48
+ getPage: (pageLink?: string) => Promise<{
49
+ page: TPage;
50
+ nextPageLink?: string;
51
+ } | undefined>;
52
+ /**
53
+ * a function to implement the `byPage` method on the paged async iterator.
54
+ */
55
+ byPage?: (settings?: TPageSettings) => AsyncIterableIterator<ContinuablePage<TElement, TPage>>;
56
+ /**
57
+ * A function to extract elements from a page.
58
+ */
59
+ toElements?: (page: TPage) => TElement[];
60
+ }
61
+ /**
62
+ * Options for the paging helper
63
+ */
64
+ export interface BuildPagedAsyncIteratorOptions {
65
+ itemName?: string;
66
+ nextLinkName?: string;
67
+ nextLinkMethod?: "GET" | "POST";
68
+ apiVersion?: string;
69
+ }
70
+ /**
71
+ * Helper to paginate results in a generic way and return a PagedAsyncIterableIterator
72
+ */
73
+ export declare function buildPagedAsyncIterator<TElement, TPage = TElement[], TPageSettings extends PageSettings = PageSettings, TResponse extends PathUncheckedResponse = PathUncheckedResponse>(client: Client, getInitialResponse: () => PromiseLike<TResponse>, processResponseBody: (result: TResponse) => PromiseLike<unknown>, expectedStatuses: string[], options?: BuildPagedAsyncIteratorOptions): PagedAsyncIterableIterator<TElement, TPage, TPageSettings>;
74
+ //# sourceMappingURL=pagingHelpers.d.ts.map