@azure/arm-subscriptions 5.1.2-alpha.20251027.1 → 6.0.0

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 (421) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +6 -11
  3. package/dist/browser/index.d.ts.map +1 -1
  4. package/dist/browser/index.js +4 -7
  5. package/dist/browser/index.js.map +1 -1
  6. package/dist/browser/lroImpl.d.ts +7 -12
  7. package/dist/browser/lroImpl.d.ts.map +1 -1
  8. package/dist/browser/lroImpl.js +18 -31
  9. package/dist/browser/lroImpl.js.map +1 -1
  10. package/dist/browser/models/index.d.ts +20 -189
  11. package/dist/browser/models/index.d.ts.map +1 -1
  12. package/dist/browser/models/index.js +2 -7
  13. package/dist/browser/models/index.js.map +1 -1
  14. package/dist/browser/models/mappers.d.ts +3 -8
  15. package/dist/browser/models/mappers.d.ts.map +1 -1
  16. package/dist/browser/models/mappers.js +309 -568
  17. package/dist/browser/models/mappers.js.map +1 -1
  18. package/dist/browser/models/parameters.d.ts +3 -3
  19. package/dist/browser/models/parameters.d.ts.map +1 -1
  20. package/dist/browser/models/parameters.js +49 -55
  21. package/dist/browser/models/parameters.js.map +1 -1
  22. package/dist/browser/operations/alias.d.ts +5 -5
  23. package/dist/browser/operations/alias.d.ts.map +1 -1
  24. package/dist/browser/operations/alias.js +39 -40
  25. package/dist/browser/operations/alias.js.map +1 -1
  26. package/dist/browser/operations/billingAccount.d.ts +3 -3
  27. package/dist/browser/operations/billingAccount.d.ts.map +1 -1
  28. package/dist/browser/operations/billingAccount.js +7 -12
  29. package/dist/browser/operations/billingAccount.js.map +1 -1
  30. package/dist/browser/operations/index.d.ts +2 -3
  31. package/dist/browser/operations/index.d.ts.map +1 -1
  32. package/dist/browser/operations/index.js +6 -10
  33. package/dist/browser/operations/index.js.map +1 -1
  34. package/dist/browser/operations/operations.d.ts +4 -4
  35. package/dist/browser/operations/operations.d.ts.map +1 -1
  36. package/dist/browser/operations/operations.js +14 -20
  37. package/dist/browser/operations/operations.js.map +1 -1
  38. package/dist/{esm/operations/subscriptionOperations.d.ts → browser/operations/subscription.d.ts} +9 -9
  39. package/dist/browser/operations/subscription.d.ts.map +1 -0
  40. package/dist/{esm/operations/subscriptionOperations.js → browser/operations/subscription.js} +49 -50
  41. package/dist/browser/operations/subscription.js.map +1 -0
  42. package/dist/browser/operations/subscriptionOperation.d.ts +20 -0
  43. package/dist/browser/operations/subscriptionOperation.d.ts.map +1 -0
  44. package/dist/browser/operations/subscriptionOperation.js +47 -0
  45. package/dist/browser/operations/subscriptionOperation.js.map +1 -0
  46. package/dist/browser/operations/subscriptionPolicy.d.ts +4 -4
  47. package/dist/browser/operations/subscriptionPolicy.d.ts.map +1 -1
  48. package/dist/browser/operations/subscriptionPolicy.js +24 -30
  49. package/dist/browser/operations/subscriptionPolicy.js.map +1 -1
  50. package/dist/browser/operationsInterfaces/alias.d.ts +3 -3
  51. package/dist/browser/operationsInterfaces/alias.d.ts.map +1 -1
  52. package/dist/browser/operationsInterfaces/alias.js +2 -7
  53. package/dist/browser/operationsInterfaces/alias.js.map +1 -1
  54. package/dist/browser/operationsInterfaces/billingAccount.d.ts +1 -1
  55. package/dist/browser/operationsInterfaces/billingAccount.d.ts.map +1 -1
  56. package/dist/browser/operationsInterfaces/billingAccount.js +2 -7
  57. package/dist/browser/operationsInterfaces/billingAccount.js.map +1 -1
  58. package/dist/browser/operationsInterfaces/index.d.ts +2 -3
  59. package/dist/browser/operationsInterfaces/index.d.ts.map +1 -1
  60. package/dist/browser/operationsInterfaces/index.js +6 -10
  61. package/dist/browser/operationsInterfaces/index.js.map +1 -1
  62. package/dist/browser/operationsInterfaces/operations.d.ts +2 -2
  63. package/dist/browser/operationsInterfaces/operations.d.ts.map +1 -1
  64. package/dist/browser/operationsInterfaces/operations.js +2 -7
  65. package/dist/browser/operationsInterfaces/operations.js.map +1 -1
  66. package/dist/{commonjs/operationsInterfaces/subscriptionOperations.d.ts → browser/operationsInterfaces/subscription.d.ts} +6 -6
  67. package/dist/browser/operationsInterfaces/subscription.d.ts.map +1 -0
  68. package/dist/browser/operationsInterfaces/subscription.js +4 -0
  69. package/dist/browser/operationsInterfaces/subscription.js.map +1 -0
  70. package/dist/browser/operationsInterfaces/subscriptionOperation.d.ts +12 -0
  71. package/dist/browser/operationsInterfaces/subscriptionOperation.d.ts.map +1 -0
  72. package/dist/browser/operationsInterfaces/subscriptionOperation.js +4 -0
  73. package/dist/browser/operationsInterfaces/subscriptionOperation.js.map +1 -0
  74. package/dist/browser/operationsInterfaces/subscriptionPolicy.d.ts +2 -2
  75. package/dist/browser/operationsInterfaces/subscriptionPolicy.d.ts.map +1 -1
  76. package/dist/browser/operationsInterfaces/subscriptionPolicy.js +2 -7
  77. package/dist/browser/operationsInterfaces/subscriptionPolicy.js.map +1 -1
  78. package/dist/browser/pagingHelper.d.ts +4 -4
  79. package/dist/browser/pagingHelper.d.ts.map +1 -1
  80. package/dist/browser/pagingHelper.js +6 -11
  81. package/dist/browser/pagingHelper.js.map +1 -1
  82. package/dist/browser/subscriptionClient.d.ts +8 -6
  83. package/dist/browser/subscriptionClient.d.ts.map +1 -1
  84. package/dist/browser/subscriptionClient.js +46 -25
  85. package/dist/browser/subscriptionClient.js.map +1 -1
  86. package/dist/commonjs/index.d.ts.map +1 -1
  87. package/dist/commonjs/index.js +4 -7
  88. package/dist/commonjs/index.js.map +1 -1
  89. package/dist/commonjs/lroImpl.d.ts +7 -12
  90. package/dist/commonjs/lroImpl.d.ts.map +1 -1
  91. package/dist/commonjs/lroImpl.js +19 -33
  92. package/dist/commonjs/lroImpl.js.map +1 -1
  93. package/dist/commonjs/models/index.d.ts +20 -189
  94. package/dist/commonjs/models/index.d.ts.map +1 -1
  95. package/dist/commonjs/models/index.js +2 -7
  96. package/dist/commonjs/models/index.js.map +1 -1
  97. package/dist/commonjs/models/mappers.d.ts +3 -8
  98. package/dist/commonjs/models/mappers.d.ts.map +1 -1
  99. package/dist/commonjs/models/mappers.js +310 -569
  100. package/dist/commonjs/models/mappers.js.map +1 -1
  101. package/dist/commonjs/models/parameters.d.ts +3 -3
  102. package/dist/commonjs/models/parameters.d.ts.map +1 -1
  103. package/dist/commonjs/models/parameters.js +49 -55
  104. package/dist/commonjs/models/parameters.js.map +1 -1
  105. package/dist/commonjs/operations/alias.d.ts +5 -5
  106. package/dist/commonjs/operations/alias.d.ts.map +1 -1
  107. package/dist/commonjs/operations/alias.js +37 -38
  108. package/dist/commonjs/operations/alias.js.map +1 -1
  109. package/dist/commonjs/operations/billingAccount.d.ts +3 -3
  110. package/dist/commonjs/operations/billingAccount.d.ts.map +1 -1
  111. package/dist/commonjs/operations/billingAccount.js +7 -12
  112. package/dist/commonjs/operations/billingAccount.js.map +1 -1
  113. package/dist/commonjs/operations/index.d.ts +2 -3
  114. package/dist/commonjs/operations/index.d.ts.map +1 -1
  115. package/dist/commonjs/operations/index.js +6 -10
  116. package/dist/commonjs/operations/index.js.map +1 -1
  117. package/dist/commonjs/operations/operations.d.ts +4 -4
  118. package/dist/commonjs/operations/operations.d.ts.map +1 -1
  119. package/dist/commonjs/operations/operations.js +14 -20
  120. package/dist/commonjs/operations/operations.js.map +1 -1
  121. package/dist/{browser/operations/subscriptionOperations.d.ts → commonjs/operations/subscription.d.ts} +9 -9
  122. package/dist/commonjs/operations/subscription.d.ts.map +1 -0
  123. package/dist/commonjs/operations/{subscriptionOperations.js → subscription.js} +49 -50
  124. package/dist/commonjs/operations/subscription.js.map +1 -0
  125. package/dist/commonjs/operations/subscriptionOperation.d.ts +20 -0
  126. package/dist/commonjs/operations/subscriptionOperation.d.ts.map +1 -0
  127. package/dist/commonjs/operations/subscriptionOperation.js +52 -0
  128. package/dist/commonjs/operations/subscriptionOperation.js.map +1 -0
  129. package/dist/commonjs/operations/subscriptionPolicy.d.ts +4 -4
  130. package/dist/commonjs/operations/subscriptionPolicy.d.ts.map +1 -1
  131. package/dist/commonjs/operations/subscriptionPolicy.js +24 -30
  132. package/dist/commonjs/operations/subscriptionPolicy.js.map +1 -1
  133. package/dist/commonjs/operationsInterfaces/alias.d.ts +3 -3
  134. package/dist/commonjs/operationsInterfaces/alias.d.ts.map +1 -1
  135. package/dist/commonjs/operationsInterfaces/alias.js +2 -7
  136. package/dist/commonjs/operationsInterfaces/alias.js.map +1 -1
  137. package/dist/commonjs/operationsInterfaces/billingAccount.d.ts +1 -1
  138. package/dist/commonjs/operationsInterfaces/billingAccount.d.ts.map +1 -1
  139. package/dist/commonjs/operationsInterfaces/billingAccount.js +2 -7
  140. package/dist/commonjs/operationsInterfaces/billingAccount.js.map +1 -1
  141. package/dist/commonjs/operationsInterfaces/index.d.ts +2 -3
  142. package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -1
  143. package/dist/commonjs/operationsInterfaces/index.js +6 -10
  144. package/dist/commonjs/operationsInterfaces/index.js.map +1 -1
  145. package/dist/commonjs/operationsInterfaces/operations.d.ts +2 -2
  146. package/dist/commonjs/operationsInterfaces/operations.d.ts.map +1 -1
  147. package/dist/commonjs/operationsInterfaces/operations.js +2 -7
  148. package/dist/commonjs/operationsInterfaces/operations.js.map +1 -1
  149. package/dist/{esm/operationsInterfaces/subscriptionOperations.d.ts → commonjs/operationsInterfaces/subscription.d.ts} +6 -6
  150. package/dist/commonjs/operationsInterfaces/subscription.d.ts.map +1 -0
  151. package/dist/commonjs/operationsInterfaces/subscription.js +5 -0
  152. package/dist/commonjs/operationsInterfaces/subscription.js.map +1 -0
  153. package/dist/commonjs/operationsInterfaces/subscriptionOperation.d.ts +12 -0
  154. package/dist/commonjs/operationsInterfaces/subscriptionOperation.d.ts.map +1 -0
  155. package/dist/commonjs/operationsInterfaces/subscriptionOperation.js +5 -0
  156. package/dist/commonjs/operationsInterfaces/subscriptionOperation.js.map +1 -0
  157. package/dist/commonjs/operationsInterfaces/subscriptionPolicy.d.ts +2 -2
  158. package/dist/commonjs/operationsInterfaces/subscriptionPolicy.d.ts.map +1 -1
  159. package/dist/commonjs/operationsInterfaces/subscriptionPolicy.js +2 -7
  160. package/dist/commonjs/operationsInterfaces/subscriptionPolicy.js.map +1 -1
  161. package/dist/commonjs/pagingHelper.d.ts +4 -4
  162. package/dist/commonjs/pagingHelper.d.ts.map +1 -1
  163. package/dist/commonjs/pagingHelper.js +6 -11
  164. package/dist/commonjs/pagingHelper.js.map +1 -1
  165. package/dist/commonjs/subscriptionClient.d.ts +8 -6
  166. package/dist/commonjs/subscriptionClient.d.ts.map +1 -1
  167. package/dist/commonjs/subscriptionClient.js +45 -24
  168. package/dist/commonjs/subscriptionClient.js.map +1 -1
  169. package/dist/esm/index.d.ts.map +1 -1
  170. package/dist/esm/index.js +4 -7
  171. package/dist/esm/index.js.map +1 -1
  172. package/dist/esm/lroImpl.d.ts +7 -12
  173. package/dist/esm/lroImpl.d.ts.map +1 -1
  174. package/dist/esm/lroImpl.js +18 -31
  175. package/dist/esm/lroImpl.js.map +1 -1
  176. package/dist/esm/models/index.d.ts +20 -189
  177. package/dist/esm/models/index.d.ts.map +1 -1
  178. package/dist/esm/models/index.js +2 -7
  179. package/dist/esm/models/index.js.map +1 -1
  180. package/dist/esm/models/mappers.d.ts +3 -8
  181. package/dist/esm/models/mappers.d.ts.map +1 -1
  182. package/dist/esm/models/mappers.js +309 -568
  183. package/dist/esm/models/mappers.js.map +1 -1
  184. package/dist/esm/models/parameters.d.ts +3 -3
  185. package/dist/esm/models/parameters.d.ts.map +1 -1
  186. package/dist/esm/models/parameters.js +49 -55
  187. package/dist/esm/models/parameters.js.map +1 -1
  188. package/dist/esm/operations/alias.d.ts +5 -5
  189. package/dist/esm/operations/alias.d.ts.map +1 -1
  190. package/dist/esm/operations/alias.js +39 -40
  191. package/dist/esm/operations/alias.js.map +1 -1
  192. package/dist/esm/operations/billingAccount.d.ts +3 -3
  193. package/dist/esm/operations/billingAccount.d.ts.map +1 -1
  194. package/dist/esm/operations/billingAccount.js +7 -12
  195. package/dist/esm/operations/billingAccount.js.map +1 -1
  196. package/dist/esm/operations/index.d.ts +2 -3
  197. package/dist/esm/operations/index.d.ts.map +1 -1
  198. package/dist/esm/operations/index.js +6 -10
  199. package/dist/esm/operations/index.js.map +1 -1
  200. package/dist/esm/operations/operations.d.ts +4 -4
  201. package/dist/esm/operations/operations.d.ts.map +1 -1
  202. package/dist/esm/operations/operations.js +14 -20
  203. package/dist/esm/operations/operations.js.map +1 -1
  204. package/dist/{commonjs/operations/subscriptionOperations.d.ts → esm/operations/subscription.d.ts} +9 -9
  205. package/dist/esm/operations/subscription.d.ts.map +1 -0
  206. package/dist/{react-native/operations/subscriptionOperations.js → esm/operations/subscription.js} +49 -50
  207. package/dist/esm/operations/subscription.js.map +1 -0
  208. package/dist/esm/operations/subscriptionOperation.d.ts +20 -0
  209. package/dist/esm/operations/subscriptionOperation.d.ts.map +1 -0
  210. package/dist/esm/operations/subscriptionOperation.js +47 -0
  211. package/dist/esm/operations/subscriptionOperation.js.map +1 -0
  212. package/dist/esm/operations/subscriptionPolicy.d.ts +4 -4
  213. package/dist/esm/operations/subscriptionPolicy.d.ts.map +1 -1
  214. package/dist/esm/operations/subscriptionPolicy.js +24 -30
  215. package/dist/esm/operations/subscriptionPolicy.js.map +1 -1
  216. package/dist/esm/operationsInterfaces/alias.d.ts +3 -3
  217. package/dist/esm/operationsInterfaces/alias.d.ts.map +1 -1
  218. package/dist/esm/operationsInterfaces/alias.js +2 -7
  219. package/dist/esm/operationsInterfaces/alias.js.map +1 -1
  220. package/dist/esm/operationsInterfaces/billingAccount.d.ts +1 -1
  221. package/dist/esm/operationsInterfaces/billingAccount.d.ts.map +1 -1
  222. package/dist/esm/operationsInterfaces/billingAccount.js +2 -7
  223. package/dist/esm/operationsInterfaces/billingAccount.js.map +1 -1
  224. package/dist/esm/operationsInterfaces/index.d.ts +2 -3
  225. package/dist/esm/operationsInterfaces/index.d.ts.map +1 -1
  226. package/dist/esm/operationsInterfaces/index.js +6 -10
  227. package/dist/esm/operationsInterfaces/index.js.map +1 -1
  228. package/dist/esm/operationsInterfaces/operations.d.ts +2 -2
  229. package/dist/esm/operationsInterfaces/operations.d.ts.map +1 -1
  230. package/dist/esm/operationsInterfaces/operations.js +2 -7
  231. package/dist/esm/operationsInterfaces/operations.js.map +1 -1
  232. package/dist/{react-native/operationsInterfaces/subscriptionOperations.d.ts → esm/operationsInterfaces/subscription.d.ts} +6 -6
  233. package/dist/esm/operationsInterfaces/subscription.d.ts.map +1 -0
  234. package/dist/esm/operationsInterfaces/subscription.js +4 -0
  235. package/dist/esm/operationsInterfaces/subscription.js.map +1 -0
  236. package/dist/esm/operationsInterfaces/subscriptionOperation.d.ts +12 -0
  237. package/dist/esm/operationsInterfaces/subscriptionOperation.d.ts.map +1 -0
  238. package/dist/esm/operationsInterfaces/subscriptionOperation.js +4 -0
  239. package/dist/esm/operationsInterfaces/subscriptionOperation.js.map +1 -0
  240. package/dist/esm/operationsInterfaces/subscriptionPolicy.d.ts +2 -2
  241. package/dist/esm/operationsInterfaces/subscriptionPolicy.d.ts.map +1 -1
  242. package/dist/esm/operationsInterfaces/subscriptionPolicy.js +2 -7
  243. package/dist/esm/operationsInterfaces/subscriptionPolicy.js.map +1 -1
  244. package/dist/esm/pagingHelper.d.ts +4 -4
  245. package/dist/esm/pagingHelper.d.ts.map +1 -1
  246. package/dist/esm/pagingHelper.js +6 -11
  247. package/dist/esm/pagingHelper.js.map +1 -1
  248. package/dist/esm/subscriptionClient.d.ts +8 -6
  249. package/dist/esm/subscriptionClient.d.ts.map +1 -1
  250. package/dist/esm/subscriptionClient.js +46 -25
  251. package/dist/esm/subscriptionClient.js.map +1 -1
  252. package/dist/react-native/index.d.ts.map +1 -1
  253. package/dist/react-native/index.js +4 -7
  254. package/dist/react-native/index.js.map +1 -1
  255. package/dist/react-native/lroImpl.d.ts +7 -12
  256. package/dist/react-native/lroImpl.d.ts.map +1 -1
  257. package/dist/react-native/lroImpl.js +18 -31
  258. package/dist/react-native/lroImpl.js.map +1 -1
  259. package/dist/react-native/models/index.d.ts +20 -189
  260. package/dist/react-native/models/index.d.ts.map +1 -1
  261. package/dist/react-native/models/index.js +2 -7
  262. package/dist/react-native/models/index.js.map +1 -1
  263. package/dist/react-native/models/mappers.d.ts +3 -8
  264. package/dist/react-native/models/mappers.d.ts.map +1 -1
  265. package/dist/react-native/models/mappers.js +309 -568
  266. package/dist/react-native/models/mappers.js.map +1 -1
  267. package/dist/react-native/models/parameters.d.ts +3 -3
  268. package/dist/react-native/models/parameters.d.ts.map +1 -1
  269. package/dist/react-native/models/parameters.js +49 -55
  270. package/dist/react-native/models/parameters.js.map +1 -1
  271. package/dist/react-native/operations/alias.d.ts +5 -5
  272. package/dist/react-native/operations/alias.d.ts.map +1 -1
  273. package/dist/react-native/operations/alias.js +39 -40
  274. package/dist/react-native/operations/alias.js.map +1 -1
  275. package/dist/react-native/operations/billingAccount.d.ts +3 -3
  276. package/dist/react-native/operations/billingAccount.d.ts.map +1 -1
  277. package/dist/react-native/operations/billingAccount.js +7 -12
  278. package/dist/react-native/operations/billingAccount.js.map +1 -1
  279. package/dist/react-native/operations/index.d.ts +2 -3
  280. package/dist/react-native/operations/index.d.ts.map +1 -1
  281. package/dist/react-native/operations/index.js +6 -10
  282. package/dist/react-native/operations/index.js.map +1 -1
  283. package/dist/react-native/operations/operations.d.ts +4 -4
  284. package/dist/react-native/operations/operations.d.ts.map +1 -1
  285. package/dist/react-native/operations/operations.js +14 -20
  286. package/dist/react-native/operations/operations.js.map +1 -1
  287. package/dist/react-native/operations/{subscriptionOperations.d.ts → subscription.d.ts} +9 -9
  288. package/dist/react-native/operations/subscription.d.ts.map +1 -0
  289. package/dist/{browser/operations/subscriptionOperations.js → react-native/operations/subscription.js} +49 -50
  290. package/dist/react-native/operations/subscription.js.map +1 -0
  291. package/dist/react-native/operations/subscriptionOperation.d.ts +20 -0
  292. package/dist/react-native/operations/subscriptionOperation.d.ts.map +1 -0
  293. package/dist/react-native/operations/subscriptionOperation.js +47 -0
  294. package/dist/react-native/operations/subscriptionOperation.js.map +1 -0
  295. package/dist/react-native/operations/subscriptionPolicy.d.ts +4 -4
  296. package/dist/react-native/operations/subscriptionPolicy.d.ts.map +1 -1
  297. package/dist/react-native/operations/subscriptionPolicy.js +24 -30
  298. package/dist/react-native/operations/subscriptionPolicy.js.map +1 -1
  299. package/dist/react-native/operationsInterfaces/alias.d.ts +3 -3
  300. package/dist/react-native/operationsInterfaces/alias.d.ts.map +1 -1
  301. package/dist/react-native/operationsInterfaces/alias.js +2 -7
  302. package/dist/react-native/operationsInterfaces/alias.js.map +1 -1
  303. package/dist/react-native/operationsInterfaces/billingAccount.d.ts +1 -1
  304. package/dist/react-native/operationsInterfaces/billingAccount.d.ts.map +1 -1
  305. package/dist/react-native/operationsInterfaces/billingAccount.js +2 -7
  306. package/dist/react-native/operationsInterfaces/billingAccount.js.map +1 -1
  307. package/dist/react-native/operationsInterfaces/index.d.ts +2 -3
  308. package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -1
  309. package/dist/react-native/operationsInterfaces/index.js +6 -10
  310. package/dist/react-native/operationsInterfaces/index.js.map +1 -1
  311. package/dist/react-native/operationsInterfaces/operations.d.ts +2 -2
  312. package/dist/react-native/operationsInterfaces/operations.d.ts.map +1 -1
  313. package/dist/react-native/operationsInterfaces/operations.js +2 -7
  314. package/dist/react-native/operationsInterfaces/operations.js.map +1 -1
  315. package/dist/{browser/operationsInterfaces/subscriptionOperations.d.ts → react-native/operationsInterfaces/subscription.d.ts} +6 -6
  316. package/dist/react-native/operationsInterfaces/subscription.d.ts.map +1 -0
  317. package/dist/react-native/operationsInterfaces/subscription.js +4 -0
  318. package/dist/react-native/operationsInterfaces/subscription.js.map +1 -0
  319. package/dist/react-native/operationsInterfaces/subscriptionOperation.d.ts +12 -0
  320. package/dist/react-native/operationsInterfaces/subscriptionOperation.d.ts.map +1 -0
  321. package/dist/react-native/operationsInterfaces/subscriptionOperation.js +4 -0
  322. package/dist/react-native/operationsInterfaces/subscriptionOperation.js.map +1 -0
  323. package/dist/react-native/operationsInterfaces/subscriptionPolicy.d.ts +2 -2
  324. package/dist/react-native/operationsInterfaces/subscriptionPolicy.d.ts.map +1 -1
  325. package/dist/react-native/operationsInterfaces/subscriptionPolicy.js +2 -7
  326. package/dist/react-native/operationsInterfaces/subscriptionPolicy.js.map +1 -1
  327. package/dist/react-native/pagingHelper.d.ts +4 -4
  328. package/dist/react-native/pagingHelper.d.ts.map +1 -1
  329. package/dist/react-native/pagingHelper.js +6 -11
  330. package/dist/react-native/pagingHelper.js.map +1 -1
  331. package/dist/react-native/subscriptionClient.d.ts +8 -6
  332. package/dist/react-native/subscriptionClient.d.ts.map +1 -1
  333. package/dist/react-native/subscriptionClient.js +46 -25
  334. package/dist/react-native/subscriptionClient.js.map +1 -1
  335. package/package.json +44 -44
  336. package/CHANGELOG.md +0 -97
  337. package/dist/browser/operations/subscriptionOperations.d.ts.map +0 -1
  338. package/dist/browser/operations/subscriptionOperations.js.map +0 -1
  339. package/dist/browser/operations/subscriptions.d.ts +0 -54
  340. package/dist/browser/operations/subscriptions.d.ts.map +0 -1
  341. package/dist/browser/operations/subscriptions.js +0 -187
  342. package/dist/browser/operations/subscriptions.js.map +0 -1
  343. package/dist/browser/operations/tenants.d.ts +0 -32
  344. package/dist/browser/operations/tenants.d.ts.map +0 -1
  345. package/dist/browser/operations/tenants.js +0 -111
  346. package/dist/browser/operations/tenants.js.map +0 -1
  347. package/dist/browser/operationsInterfaces/subscriptionOperations.d.ts.map +0 -1
  348. package/dist/browser/operationsInterfaces/subscriptionOperations.js +0 -9
  349. package/dist/browser/operationsInterfaces/subscriptionOperations.js.map +0 -1
  350. package/dist/browser/operationsInterfaces/subscriptions.d.ts +0 -24
  351. package/dist/browser/operationsInterfaces/subscriptions.d.ts.map +0 -1
  352. package/dist/browser/operationsInterfaces/subscriptions.js +0 -9
  353. package/dist/browser/operationsInterfaces/subscriptions.js.map +0 -1
  354. package/dist/browser/operationsInterfaces/tenants.d.ts +0 -11
  355. package/dist/browser/operationsInterfaces/tenants.d.ts.map +0 -1
  356. package/dist/browser/operationsInterfaces/tenants.js +0 -9
  357. package/dist/browser/operationsInterfaces/tenants.js.map +0 -1
  358. package/dist/commonjs/operations/subscriptionOperations.d.ts.map +0 -1
  359. package/dist/commonjs/operations/subscriptionOperations.js.map +0 -1
  360. package/dist/commonjs/operations/subscriptions.d.ts +0 -54
  361. package/dist/commonjs/operations/subscriptions.d.ts.map +0 -1
  362. package/dist/commonjs/operations/subscriptions.js +0 -192
  363. package/dist/commonjs/operations/subscriptions.js.map +0 -1
  364. package/dist/commonjs/operations/tenants.d.ts +0 -32
  365. package/dist/commonjs/operations/tenants.d.ts.map +0 -1
  366. package/dist/commonjs/operations/tenants.js +0 -116
  367. package/dist/commonjs/operations/tenants.js.map +0 -1
  368. package/dist/commonjs/operationsInterfaces/subscriptionOperations.d.ts.map +0 -1
  369. package/dist/commonjs/operationsInterfaces/subscriptionOperations.js +0 -10
  370. package/dist/commonjs/operationsInterfaces/subscriptionOperations.js.map +0 -1
  371. package/dist/commonjs/operationsInterfaces/subscriptions.d.ts +0 -24
  372. package/dist/commonjs/operationsInterfaces/subscriptions.d.ts.map +0 -1
  373. package/dist/commonjs/operationsInterfaces/subscriptions.js +0 -10
  374. package/dist/commonjs/operationsInterfaces/subscriptions.js.map +0 -1
  375. package/dist/commonjs/operationsInterfaces/tenants.d.ts +0 -11
  376. package/dist/commonjs/operationsInterfaces/tenants.d.ts.map +0 -1
  377. package/dist/commonjs/operationsInterfaces/tenants.js +0 -10
  378. package/dist/commonjs/operationsInterfaces/tenants.js.map +0 -1
  379. package/dist/esm/operations/subscriptionOperations.d.ts.map +0 -1
  380. package/dist/esm/operations/subscriptionOperations.js.map +0 -1
  381. package/dist/esm/operations/subscriptions.d.ts +0 -54
  382. package/dist/esm/operations/subscriptions.d.ts.map +0 -1
  383. package/dist/esm/operations/subscriptions.js +0 -187
  384. package/dist/esm/operations/subscriptions.js.map +0 -1
  385. package/dist/esm/operations/tenants.d.ts +0 -32
  386. package/dist/esm/operations/tenants.d.ts.map +0 -1
  387. package/dist/esm/operations/tenants.js +0 -111
  388. package/dist/esm/operations/tenants.js.map +0 -1
  389. package/dist/esm/operationsInterfaces/subscriptionOperations.d.ts.map +0 -1
  390. package/dist/esm/operationsInterfaces/subscriptionOperations.js +0 -9
  391. package/dist/esm/operationsInterfaces/subscriptionOperations.js.map +0 -1
  392. package/dist/esm/operationsInterfaces/subscriptions.d.ts +0 -24
  393. package/dist/esm/operationsInterfaces/subscriptions.d.ts.map +0 -1
  394. package/dist/esm/operationsInterfaces/subscriptions.js +0 -9
  395. package/dist/esm/operationsInterfaces/subscriptions.js.map +0 -1
  396. package/dist/esm/operationsInterfaces/tenants.d.ts +0 -11
  397. package/dist/esm/operationsInterfaces/tenants.d.ts.map +0 -1
  398. package/dist/esm/operationsInterfaces/tenants.js +0 -9
  399. package/dist/esm/operationsInterfaces/tenants.js.map +0 -1
  400. package/dist/react-native/operations/subscriptionOperations.d.ts.map +0 -1
  401. package/dist/react-native/operations/subscriptionOperations.js.map +0 -1
  402. package/dist/react-native/operations/subscriptions.d.ts +0 -54
  403. package/dist/react-native/operations/subscriptions.d.ts.map +0 -1
  404. package/dist/react-native/operations/subscriptions.js +0 -187
  405. package/dist/react-native/operations/subscriptions.js.map +0 -1
  406. package/dist/react-native/operations/tenants.d.ts +0 -32
  407. package/dist/react-native/operations/tenants.d.ts.map +0 -1
  408. package/dist/react-native/operations/tenants.js +0 -111
  409. package/dist/react-native/operations/tenants.js.map +0 -1
  410. package/dist/react-native/operationsInterfaces/subscriptionOperations.d.ts.map +0 -1
  411. package/dist/react-native/operationsInterfaces/subscriptionOperations.js +0 -9
  412. package/dist/react-native/operationsInterfaces/subscriptionOperations.js.map +0 -1
  413. package/dist/react-native/operationsInterfaces/subscriptions.d.ts +0 -24
  414. package/dist/react-native/operationsInterfaces/subscriptions.d.ts.map +0 -1
  415. package/dist/react-native/operationsInterfaces/subscriptions.js +0 -9
  416. package/dist/react-native/operationsInterfaces/subscriptions.js.map +0 -1
  417. package/dist/react-native/operationsInterfaces/tenants.d.ts +0 -11
  418. package/dist/react-native/operationsInterfaces/tenants.d.ts.map +0 -1
  419. package/dist/react-native/operationsInterfaces/tenants.js +0 -9
  420. package/dist/react-native/operationsInterfaces/tenants.js.map +0 -1
  421. package/review/arm-subscriptions-node.api.md +0 -571
@@ -0,0 +1,47 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ import * as coreClient from "@azure/core-client";
4
+ import * as Mappers from "../models/mappers.js";
5
+ import * as Parameters from "../models/parameters.js";
6
+ /** Class containing SubscriptionOperation operations. */
7
+ export class SubscriptionOperationImpl {
8
+ client;
9
+ /**
10
+ * Initialize a new instance of the class SubscriptionOperation class.
11
+ * @param client Reference to the service client
12
+ */
13
+ constructor(client) {
14
+ this.client = client;
15
+ }
16
+ /**
17
+ * Get the status of the pending Microsoft.Subscription API operations.
18
+ * @param operationId The operation ID, which can be found from the Location field in the generate
19
+ * recommendation response header.
20
+ * @param options The options parameters.
21
+ */
22
+ get(operationId, options) {
23
+ return this.client.sendOperationRequest({ operationId, options }, getOperationSpec);
24
+ }
25
+ }
26
+ // Operation Specifications
27
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
28
+ const getOperationSpec = {
29
+ path: "/providers/Microsoft.Subscription/subscriptionOperations/{operationId}",
30
+ httpMethod: "GET",
31
+ responses: {
32
+ 200: {
33
+ bodyMapper: Mappers.SubscriptionCreationResult,
34
+ },
35
+ 202: {
36
+ headersMapper: Mappers.SubscriptionOperationGetHeaders,
37
+ },
38
+ default: {
39
+ bodyMapper: Mappers.ErrorResponseBody,
40
+ },
41
+ },
42
+ queryParameters: [Parameters.apiVersion],
43
+ urlParameters: [Parameters.$host, Parameters.operationId],
44
+ headerParameters: [Parameters.accept],
45
+ serializer,
46
+ };
47
+ //# sourceMappingURL=subscriptionOperation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subscriptionOperation.js","sourceRoot":"","sources":["../../../src/operations/subscriptionOperation.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAMlC,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAOtD,yDAAyD;AACzD,MAAM,OAAO,yBAAyB;IACnB,MAAM,CAAqB;IAE5C;;;OAGG;IACH,YAAY,MAA0B;QACpC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACH,GAAG,CACD,WAAmB,EACnB,OAAgD;QAEhD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,EAAE,WAAW,EAAE,OAAO,EAAE,EAAE,gBAAgB,CAAC,CAAC;IACtF,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EAAE,wEAAwE;IAC9E,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,0BAA0B;SAC/C;QACD,GAAG,EAAE;YACH,aAAa,EAAE,OAAO,CAAC,+BAA+B;SACvD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,iBAAiB;SACtC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,WAAW,CAAC;IACzD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["// 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\nimport type { SubscriptionOperation } 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 type { SubscriptionClient } from \"../subscriptionClient.js\";\nimport type {\n SubscriptionOperationGetOptionalParams,\n SubscriptionOperationGetResponse,\n} from \"../models/index.js\";\n\n/** Class containing SubscriptionOperation operations. */\nexport class SubscriptionOperationImpl implements SubscriptionOperation {\n private readonly client: SubscriptionClient;\n\n /**\n * Initialize a new instance of the class SubscriptionOperation class.\n * @param client Reference to the service client\n */\n constructor(client: SubscriptionClient) {\n this.client = client;\n }\n\n /**\n * Get the status of the pending Microsoft.Subscription API operations.\n * @param operationId The operation ID, which can be found from the Location field in the generate\n * recommendation response header.\n * @param options The options parameters.\n */\n get(\n operationId: string,\n options?: SubscriptionOperationGetOptionalParams,\n ): Promise<SubscriptionOperationGetResponse> {\n return this.client.sendOperationRequest({ operationId, options }, getOperationSpec);\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Subscription/subscriptionOperations/{operationId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SubscriptionCreationResult,\n },\n 202: {\n headersMapper: Mappers.SubscriptionOperationGetHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseBody,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.operationId],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -1,7 +1,7 @@
1
- import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
- import { SubscriptionPolicy } from "../operationsInterfaces/index.js";
3
- import { SubscriptionClient } from "../subscriptionClient.js";
4
- import { GetTenantPolicyResponse, SubscriptionPolicyListPolicyForTenantOptionalParams, PutTenantPolicyRequestProperties, SubscriptionPolicyAddUpdatePolicyForTenantOptionalParams, SubscriptionPolicyAddUpdatePolicyForTenantResponse, SubscriptionPolicyGetPolicyForTenantOptionalParams, SubscriptionPolicyGetPolicyForTenantResponse } from "../models/index.js";
1
+ import type { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import type { SubscriptionPolicy } from "../operationsInterfaces/index.js";
3
+ import type { SubscriptionClient } from "../subscriptionClient.js";
4
+ import type { GetTenantPolicyResponse, SubscriptionPolicyListPolicyForTenantOptionalParams, PutTenantPolicyRequestProperties, SubscriptionPolicyAddUpdatePolicyForTenantOptionalParams, SubscriptionPolicyAddUpdatePolicyForTenantResponse, SubscriptionPolicyGetPolicyForTenantOptionalParams, SubscriptionPolicyGetPolicyForTenantResponse } from "../models/index.js";
5
5
  /** Class containing SubscriptionPolicy operations. */
6
6
  export declare class SubscriptionPolicyImpl implements SubscriptionPolicy {
7
7
  private readonly client;
@@ -1 +1 @@
1
- {"version":3,"file":"subscriptionPolicy.d.ts","sourceRoot":"","sources":["../../../src/operations/subscriptionPolicy.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAItE,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EACL,uBAAuB,EAEvB,mDAAmD,EAEnD,gCAAgC,EAChC,wDAAwD,EACxD,kDAAkD,EAClD,kDAAkD,EAClD,4CAA4C,EAE7C,MAAM,oBAAoB,CAAC;AAG5B,sDAAsD;AACtD,qBAAa,sBAAuB,YAAW,kBAAkB;IAC/D,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAqB;IAE5C;;;OAGG;gBACS,MAAM,EAAE,kBAAkB;IAItC;;;OAGG;IACI,mBAAmB,CACxB,OAAO,CAAC,EAAE,mDAAmD,GAC5D,0BAA0B,CAAC,uBAAuB,CAAC;YAkBvC,6BAA6B;YAsB7B,4BAA4B;IAQ3C;;;;OAIG;IAC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oB;IAM5B;;;;OAIG;IACH,OAAO,CAAC,wBAAwB;CASjC"}
@@ -1,10 +1,5 @@
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
- */
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
8
3
  import { setContinuationToken } from "../pagingHelper.js";
9
4
  import * as coreClient from "@azure/core-client";
10
5
  import * as Mappers from "../models/mappers.js";
@@ -38,7 +33,7 @@ export class SubscriptionPolicyImpl {
38
33
  throw new Error("maxPageSize is not supported by this operation.");
39
34
  }
40
35
  return this.listPolicyForTenantPagingPage(options, settings);
41
- }
36
+ },
42
37
  };
43
38
  }
44
39
  async *listPolicyForTenantPagingPage(options, settings) {
@@ -46,7 +41,7 @@ export class SubscriptionPolicyImpl {
46
41
  let continuationToken = settings?.continuationToken;
47
42
  if (!continuationToken) {
48
43
  result = await this._listPolicyForTenant(options);
49
- let page = result.value || [];
44
+ const page = result.value || [];
50
45
  continuationToken = result.nextLink;
51
46
  setContinuationToken(page, continuationToken);
52
47
  yield page;
@@ -54,7 +49,7 @@ export class SubscriptionPolicyImpl {
54
49
  while (continuationToken) {
55
50
  result = await this._listPolicyForTenantNext(continuationToken, options);
56
51
  continuationToken = result.nextLink;
57
- let page = result.value || [];
52
+ const page = result.value || [];
58
53
  setContinuationToken(page, continuationToken);
59
54
  yield page;
60
55
  }
@@ -102,65 +97,64 @@ const addUpdatePolicyForTenantOperationSpec = {
102
97
  httpMethod: "PUT",
103
98
  responses: {
104
99
  200: {
105
- bodyMapper: Mappers.GetTenantPolicyResponse
100
+ bodyMapper: Mappers.GetTenantPolicyResponse,
106
101
  },
107
102
  default: {
108
- bodyMapper: Mappers.ErrorResponseBody
109
- }
103
+ bodyMapper: Mappers.ErrorResponseBody,
104
+ },
110
105
  },
111
106
  requestBody: Parameters.body3,
112
- queryParameters: [Parameters.apiVersion1],
107
+ queryParameters: [Parameters.apiVersion],
113
108
  urlParameters: [Parameters.$host],
114
109
  headerParameters: [Parameters.accept, Parameters.contentType],
115
110
  mediaType: "json",
116
- serializer
111
+ serializer,
117
112
  };
118
113
  const getPolicyForTenantOperationSpec = {
119
114
  path: "/providers/Microsoft.Subscription/policies/default",
120
115
  httpMethod: "GET",
121
116
  responses: {
122
117
  200: {
123
- bodyMapper: Mappers.GetTenantPolicyResponse
118
+ bodyMapper: Mappers.GetTenantPolicyResponse,
124
119
  },
125
120
  default: {
126
- bodyMapper: Mappers.ErrorResponseBody
127
- }
121
+ bodyMapper: Mappers.ErrorResponseBody,
122
+ },
128
123
  },
129
- queryParameters: [Parameters.apiVersion1],
124
+ queryParameters: [Parameters.apiVersion],
130
125
  urlParameters: [Parameters.$host],
131
126
  headerParameters: [Parameters.accept],
132
- serializer
127
+ serializer,
133
128
  };
134
129
  const listPolicyForTenantOperationSpec = {
135
130
  path: "/providers/Microsoft.Subscription/policies",
136
131
  httpMethod: "GET",
137
132
  responses: {
138
133
  200: {
139
- bodyMapper: Mappers.GetTenantPolicyListResponse
134
+ bodyMapper: Mappers.GetTenantPolicyListResponse,
140
135
  },
141
136
  default: {
142
- bodyMapper: Mappers.ErrorResponseBody
143
- }
137
+ bodyMapper: Mappers.ErrorResponseBody,
138
+ },
144
139
  },
145
- queryParameters: [Parameters.apiVersion1],
140
+ queryParameters: [Parameters.apiVersion],
146
141
  urlParameters: [Parameters.$host],
147
142
  headerParameters: [Parameters.accept],
148
- serializer
143
+ serializer,
149
144
  };
150
145
  const listPolicyForTenantNextOperationSpec = {
151
146
  path: "{nextLink}",
152
147
  httpMethod: "GET",
153
148
  responses: {
154
149
  200: {
155
- bodyMapper: Mappers.GetTenantPolicyListResponse
150
+ bodyMapper: Mappers.GetTenantPolicyListResponse,
156
151
  },
157
152
  default: {
158
- bodyMapper: Mappers.ErrorResponseBody
159
- }
153
+ bodyMapper: Mappers.ErrorResponseBody,
154
+ },
160
155
  },
161
- queryParameters: [Parameters.apiVersion1],
162
156
  urlParameters: [Parameters.$host, Parameters.nextLink],
163
157
  headerParameters: [Parameters.accept],
164
- serializer
158
+ serializer,
165
159
  };
166
160
  //# sourceMappingURL=subscriptionPolicy.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"subscriptionPolicy.js","sourceRoot":"","sources":["../../../src/operations/subscriptionPolicy.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAetD,4CAA4C;AAC5C,sDAAsD;AACtD,MAAM,OAAO,sBAAsB;IAChB,MAAM,CAAqB;IAE5C;;;OAGG;IACH,YAAY,MAA0B;QACpC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,mBAAmB,CACxB,OAA6D;QAE7D,MAAM,IAAI,GAAG,IAAI,CAAC,4BAA4B,CAAC,OAAO,CAAC,CAAC;QACxD,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,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,6BAA6B,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;YAC/D,CAAC;SACF,CAAC;IACJ,CAAC;IAEO,KAAK,CAAC,CAAC,6BAA6B,CAC1C,OAA6D,EAC7D,QAAuB;QAEvB,IAAI,MAA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AC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,gCAAgC,GAA6B;IACjE,IAAI,EAAE,4CAA4C;IAClD,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,2BAA2B;SAChD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,iBAAiB;SACtC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC;IACjC,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,oCAAoC,GAA6B;IACrE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,2BAA2B;SAChD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,iBAAiB;SACtC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC;IACtD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { SubscriptionPolicy } 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 { SubscriptionClient } from \"../subscriptionClient.js\";\nimport {\n GetTenantPolicyResponse,\n SubscriptionPolicyListPolicyForTenantNextOptionalParams,\n SubscriptionPolicyListPolicyForTenantOptionalParams,\n SubscriptionPolicyListPolicyForTenantResponse,\n PutTenantPolicyRequestProperties,\n SubscriptionPolicyAddUpdatePolicyForTenantOptionalParams,\n SubscriptionPolicyAddUpdatePolicyForTenantResponse,\n SubscriptionPolicyGetPolicyForTenantOptionalParams,\n SubscriptionPolicyGetPolicyForTenantResponse,\n SubscriptionPolicyListPolicyForTenantNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing SubscriptionPolicy operations. */\nexport class SubscriptionPolicyImpl implements SubscriptionPolicy {\n private readonly client: SubscriptionClient;\n\n /**\n * Initialize a new instance of the class SubscriptionPolicy class.\n * @param client Reference to the service client\n */\n constructor(client: SubscriptionClient) {\n this.client = client;\n }\n\n /**\n * Get the subscription tenant policy for the user's tenant.\n * @param options The options parameters.\n */\n public listPolicyForTenant(\n options?: SubscriptionPolicyListPolicyForTenantOptionalParams\n ): PagedAsyncIterableIterator<GetTenantPolicyResponse> {\n const iter = this.listPolicyForTenantPagingAll(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.listPolicyForTenantPagingPage(options, settings);\n }\n };\n }\n\n private async *listPolicyForTenantPagingPage(\n options?: SubscriptionPolicyListPolicyForTenantOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<GetTenantPolicyResponse[]> {\n let result: SubscriptionPolicyListPolicyForTenantResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listPolicyForTenant(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._listPolicyForTenantNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPolicyForTenantPagingAll(\n options?: SubscriptionPolicyListPolicyForTenantOptionalParams\n ): AsyncIterableIterator<GetTenantPolicyResponse> {\n for await (const page of this.listPolicyForTenantPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Create or Update Subscription tenant policy for user's tenant.\n * @param body Put tenant policy request properties.\n * @param options The options parameters.\n */\n addUpdatePolicyForTenant(\n body: PutTenantPolicyRequestProperties,\n options?: SubscriptionPolicyAddUpdatePolicyForTenantOptionalParams\n ): Promise<SubscriptionPolicyAddUpdatePolicyForTenantResponse> {\n return this.client.sendOperationRequest(\n { body, options },\n addUpdatePolicyForTenantOperationSpec\n );\n }\n\n /**\n * Get the subscription tenant policy for the user's tenant.\n * @param options The options parameters.\n */\n getPolicyForTenant(\n options?: SubscriptionPolicyGetPolicyForTenantOptionalParams\n ): Promise<SubscriptionPolicyGetPolicyForTenantResponse> {\n return this.client.sendOperationRequest(\n { options },\n getPolicyForTenantOperationSpec\n );\n }\n\n /**\n * Get the subscription tenant policy for the user's tenant.\n * @param options The options parameters.\n */\n private _listPolicyForTenant(\n options?: SubscriptionPolicyListPolicyForTenantOptionalParams\n ): Promise<SubscriptionPolicyListPolicyForTenantResponse> {\n return this.client.sendOperationRequest(\n { options },\n listPolicyForTenantOperationSpec\n );\n }\n\n /**\n * ListPolicyForTenantNext\n * @param nextLink The nextLink from the previous successful call to the ListPolicyForTenant method.\n * @param options The options parameters.\n */\n private _listPolicyForTenantNext(\n nextLink: string,\n options?: SubscriptionPolicyListPolicyForTenantNextOptionalParams\n ): Promise<SubscriptionPolicyListPolicyForTenantNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listPolicyForTenantNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst addUpdatePolicyForTenantOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Subscription/policies/default\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.GetTenantPolicyResponse\n },\n default: {\n bodyMapper: Mappers.ErrorResponseBody\n }\n },\n requestBody: Parameters.body3,\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst getPolicyForTenantOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Subscription/policies/default\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.GetTenantPolicyResponse\n },\n default: {\n bodyMapper: Mappers.ErrorResponseBody\n }\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listPolicyForTenantOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Subscription/policies\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.GetTenantPolicyListResponse\n },\n default: {\n bodyMapper: Mappers.ErrorResponseBody\n }\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listPolicyForTenantNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.GetTenantPolicyListResponse\n },\n default: {\n bodyMapper: Mappers.ErrorResponseBody\n }\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
1
+ {"version":3,"file":"subscriptionPolicy.js","sourceRoot":"","sources":["../../../src/operations/subscriptionPolicy.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAMlC,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MA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AAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,oCAAoC,GAA6B;IACrE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,2BAA2B;SAChD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,iBAAiB;SACtC;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC;IACtD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["// 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\nimport type { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport type { SubscriptionPolicy } 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 type { SubscriptionClient } from \"../subscriptionClient.js\";\nimport type {\n GetTenantPolicyResponse,\n SubscriptionPolicyListPolicyForTenantNextOptionalParams,\n SubscriptionPolicyListPolicyForTenantOptionalParams,\n SubscriptionPolicyListPolicyForTenantResponse,\n PutTenantPolicyRequestProperties,\n SubscriptionPolicyAddUpdatePolicyForTenantOptionalParams,\n SubscriptionPolicyAddUpdatePolicyForTenantResponse,\n SubscriptionPolicyGetPolicyForTenantOptionalParams,\n SubscriptionPolicyGetPolicyForTenantResponse,\n SubscriptionPolicyListPolicyForTenantNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing SubscriptionPolicy operations. */\nexport class SubscriptionPolicyImpl implements SubscriptionPolicy {\n private readonly client: SubscriptionClient;\n\n /**\n * Initialize a new instance of the class SubscriptionPolicy class.\n * @param client Reference to the service client\n */\n constructor(client: SubscriptionClient) {\n this.client = client;\n }\n\n /**\n * Get the subscription tenant policy for the user's tenant.\n * @param options The options parameters.\n */\n public listPolicyForTenant(\n options?: SubscriptionPolicyListPolicyForTenantOptionalParams,\n ): PagedAsyncIterableIterator<GetTenantPolicyResponse> {\n const iter = this.listPolicyForTenantPagingAll(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.listPolicyForTenantPagingPage(options, settings);\n },\n };\n }\n\n private async *listPolicyForTenantPagingPage(\n options?: SubscriptionPolicyListPolicyForTenantOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<GetTenantPolicyResponse[]> {\n let result: SubscriptionPolicyListPolicyForTenantResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listPolicyForTenant(options);\n const page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listPolicyForTenantNext(continuationToken, options);\n continuationToken = result.nextLink;\n const page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPolicyForTenantPagingAll(\n options?: SubscriptionPolicyListPolicyForTenantOptionalParams,\n ): AsyncIterableIterator<GetTenantPolicyResponse> {\n for await (const page of this.listPolicyForTenantPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Create or Update Subscription tenant policy for user's tenant.\n * @param body Put tenant policy request properties.\n * @param options The options parameters.\n */\n addUpdatePolicyForTenant(\n body: PutTenantPolicyRequestProperties,\n options?: SubscriptionPolicyAddUpdatePolicyForTenantOptionalParams,\n ): Promise<SubscriptionPolicyAddUpdatePolicyForTenantResponse> {\n return this.client.sendOperationRequest(\n { body, options },\n addUpdatePolicyForTenantOperationSpec,\n );\n }\n\n /**\n * Get the subscription tenant policy for the user's tenant.\n * @param options The options parameters.\n */\n getPolicyForTenant(\n options?: SubscriptionPolicyGetPolicyForTenantOptionalParams,\n ): Promise<SubscriptionPolicyGetPolicyForTenantResponse> {\n return this.client.sendOperationRequest({ options }, getPolicyForTenantOperationSpec);\n }\n\n /**\n * Get the subscription tenant policy for the user's tenant.\n * @param options The options parameters.\n */\n private _listPolicyForTenant(\n options?: SubscriptionPolicyListPolicyForTenantOptionalParams,\n ): Promise<SubscriptionPolicyListPolicyForTenantResponse> {\n return this.client.sendOperationRequest({ options }, listPolicyForTenantOperationSpec);\n }\n\n /**\n * ListPolicyForTenantNext\n * @param nextLink The nextLink from the previous successful call to the ListPolicyForTenant method.\n * @param options The options parameters.\n */\n private _listPolicyForTenantNext(\n nextLink: string,\n options?: SubscriptionPolicyListPolicyForTenantNextOptionalParams,\n ): Promise<SubscriptionPolicyListPolicyForTenantNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listPolicyForTenantNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst addUpdatePolicyForTenantOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Subscription/policies/default\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.GetTenantPolicyResponse,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseBody,\n },\n },\n requestBody: Parameters.body3,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst getPolicyForTenantOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Subscription/policies/default\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.GetTenantPolicyResponse,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseBody,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listPolicyForTenantOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Subscription/policies\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.GetTenantPolicyListResponse,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseBody,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listPolicyForTenantNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.GetTenantPolicyListResponse,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseBody,\n },\n },\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -1,5 +1,5 @@
1
- import { PollerLike, PollOperationState } from "@azure/core-lro";
2
- import { PutAliasRequest, AliasCreateOptionalParams, AliasCreateResponse, AliasGetOptionalParams, AliasGetResponse, AliasDeleteOptionalParams, AliasListOptionalParams, AliasListResponse } from "../models/index.js";
1
+ import type { SimplePollerLike, OperationState } from "@azure/core-lro";
2
+ import type { PutAliasRequest, AliasCreateOptionalParams, AliasCreateResponse, AliasGetOptionalParams, AliasGetResponse, AliasDeleteOptionalParams, AliasListOptionalParams, AliasListResponse } from "../models/index.js";
3
3
  /** Interface representing a Alias. */
4
4
  export interface Alias {
5
5
  /**
@@ -10,7 +10,7 @@ export interface Alias {
10
10
  * @param body The parameters required to create a new subscription.
11
11
  * @param options The options parameters.
12
12
  */
13
- beginCreate(aliasName: string, body: PutAliasRequest, options?: AliasCreateOptionalParams): Promise<PollerLike<PollOperationState<AliasCreateResponse>, AliasCreateResponse>>;
13
+ beginCreate(aliasName: string, body: PutAliasRequest, options?: AliasCreateOptionalParams): Promise<SimplePollerLike<OperationState<AliasCreateResponse>, AliasCreateResponse>>;
14
14
  /**
15
15
  * Create Alias Subscription.
16
16
  * @param aliasName AliasName is the name for the subscription creation request. Note that this is not
@@ -1 +1 @@
1
- {"version":3,"file":"alias.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/alias.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,EACL,eAAe,EACf,yBAAyB,EACzB,mBAAmB,EACnB,sBAAsB,EACtB,gBAAgB,EAChB,yBAAyB,EACzB,uBAAuB,EACvB,iBAAiB,EAClB,MAAM,oBAAoB,CAAC;AAE5B,sCAAsC;AACtC,MAAM,WAAW,KAAK;IACpB;;;;;;;OAOG;IACH,WAAW,CACT,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,eAAe,EACrB,OAAO,CAAC,EAAE,yBAAyB,GAClC,OAAO,CACR,UAAU,CAAC,kBAAkB,CAAC,mBAAmB,CAAC,EAAE,mBAAmB,CAAC,CACzE,CAAC;IACF;;;;;;;OAOG;IACH,kBAAkB,CAChB,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,eAAe,EACrB,OAAO,CAAC,EAAE,yBAAyB,GAClC,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAChC;;;;;;OAMG;IACH,GAAG,CACD,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,sBAAsB,GAC/B,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAC7B;;;;;;OAMG;IACH,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,yBAAyB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9E;;;OAGG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,uBAAuB,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;CACrE"}
1
+ {"version":3,"file":"alias.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/alias.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACxE,OAAO,KAAK,EACV,eAAe,EACf,yBAAyB,EACzB,mBAAmB,EACnB,sBAAsB,EACtB,gBAAgB,EAChB,yBAAyB,EACzB,uBAAuB,EACvB,iBAAiB,EAClB,MAAM,oBAAoB,CAAC;AAE5B,sCAAsC;AACtC,MAAM,WAAW,KAAK;IACpB;;;;;;;OAOG;IACH,WAAW,CACT,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,eAAe,EACrB,OAAO,CAAC,EAAE,yBAAyB,GAClC,OAAO,CAAC,gBAAgB,CAAC,cAAc,CAAC,mBAAmB,CAAC,EAAE,mBAAmB,CAAC,CAAC,CAAC;IACvF;;;;;;;OAOG;IACH,kBAAkB,CAChB,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,eAAe,EACrB,OAAO,CAAC,EAAE,yBAAyB,GAClC,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAChC;;;;;;OAMG;IACH,GAAG,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,sBAAsB,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;IACpF;;;;;;OAMG;IACH,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,yBAAyB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9E;;;OAGG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,uBAAuB,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;CACrE"}
@@ -1,9 +1,4 @@
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
- */
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
8
3
  export {};
9
4
  //# sourceMappingURL=alias.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"alias.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/alias.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 { PollerLike, PollOperationState } from \"@azure/core-lro\";\nimport {\n PutAliasRequest,\n AliasCreateOptionalParams,\n AliasCreateResponse,\n AliasGetOptionalParams,\n AliasGetResponse,\n AliasDeleteOptionalParams,\n AliasListOptionalParams,\n AliasListResponse\n} from \"../models/index.js\";\n\n/** Interface representing a Alias. */\nexport interface Alias {\n /**\n * Create Alias Subscription.\n * @param aliasName AliasName is the name for the subscription creation request. Note that this is not\n * the same as subscription name and this doesn’t have any other lifecycle need beyond the request for\n * subscription creation.\n * @param body The parameters required to create a new subscription.\n * @param options The options parameters.\n */\n beginCreate(\n aliasName: string,\n body: PutAliasRequest,\n options?: AliasCreateOptionalParams\n ): Promise<\n PollerLike<PollOperationState<AliasCreateResponse>, AliasCreateResponse>\n >;\n /**\n * Create Alias Subscription.\n * @param aliasName AliasName is the name for the subscription creation request. Note that this is not\n * the same as subscription name and this doesn’t have any other lifecycle need beyond the request for\n * subscription creation.\n * @param body The parameters required to create a new subscription.\n * @param options The options parameters.\n */\n beginCreateAndWait(\n aliasName: string,\n body: PutAliasRequest,\n options?: AliasCreateOptionalParams\n ): Promise<AliasCreateResponse>;\n /**\n * Get Alias Subscription.\n * @param aliasName AliasName is the name for the subscription creation request. Note that this is not\n * the same as subscription name and this doesn’t have any other lifecycle need beyond the request for\n * subscription creation.\n * @param options The options parameters.\n */\n get(\n aliasName: string,\n options?: AliasGetOptionalParams\n ): Promise<AliasGetResponse>;\n /**\n * Delete Alias.\n * @param aliasName AliasName is the name for the subscription creation request. Note that this is not\n * the same as subscription name and this doesn’t have any other lifecycle need beyond the request for\n * subscription creation.\n * @param options The options parameters.\n */\n delete(aliasName: string, options?: AliasDeleteOptionalParams): Promise<void>;\n /**\n * List Alias Subscription.\n * @param options The options parameters.\n */\n list(options?: AliasListOptionalParams): Promise<AliasListResponse>;\n}\n"]}
1
+ {"version":3,"file":"alias.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/alias.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// 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\nimport type { SimplePollerLike, OperationState } from \"@azure/core-lro\";\nimport type {\n PutAliasRequest,\n AliasCreateOptionalParams,\n AliasCreateResponse,\n AliasGetOptionalParams,\n AliasGetResponse,\n AliasDeleteOptionalParams,\n AliasListOptionalParams,\n AliasListResponse,\n} from \"../models/index.js\";\n\n/** Interface representing a Alias. */\nexport interface Alias {\n /**\n * Create Alias Subscription.\n * @param aliasName AliasName is the name for the subscription creation request. Note that this is not\n * the same as subscription name and this doesn’t have any other lifecycle need beyond the request for\n * subscription creation.\n * @param body The parameters required to create a new subscription.\n * @param options The options parameters.\n */\n beginCreate(\n aliasName: string,\n body: PutAliasRequest,\n options?: AliasCreateOptionalParams,\n ): Promise<SimplePollerLike<OperationState<AliasCreateResponse>, AliasCreateResponse>>;\n /**\n * Create Alias Subscription.\n * @param aliasName AliasName is the name for the subscription creation request. Note that this is not\n * the same as subscription name and this doesn’t have any other lifecycle need beyond the request for\n * subscription creation.\n * @param body The parameters required to create a new subscription.\n * @param options The options parameters.\n */\n beginCreateAndWait(\n aliasName: string,\n body: PutAliasRequest,\n options?: AliasCreateOptionalParams,\n ): Promise<AliasCreateResponse>;\n /**\n * Get Alias Subscription.\n * @param aliasName AliasName is the name for the subscription creation request. Note that this is not\n * the same as subscription name and this doesn’t have any other lifecycle need beyond the request for\n * subscription creation.\n * @param options The options parameters.\n */\n get(aliasName: string, options?: AliasGetOptionalParams): Promise<AliasGetResponse>;\n /**\n * Delete Alias.\n * @param aliasName AliasName is the name for the subscription creation request. Note that this is not\n * the same as subscription name and this doesn’t have any other lifecycle need beyond the request for\n * subscription creation.\n * @param options The options parameters.\n */\n delete(aliasName: string, options?: AliasDeleteOptionalParams): Promise<void>;\n /**\n * List Alias Subscription.\n * @param options The options parameters.\n */\n list(options?: AliasListOptionalParams): Promise<AliasListResponse>;\n}\n"]}
@@ -1,4 +1,4 @@
1
- import { BillingAccountGetPolicyOptionalParams, BillingAccountGetPolicyResponse } from "../models/index.js";
1
+ import type { BillingAccountGetPolicyOptionalParams, BillingAccountGetPolicyResponse } from "../models/index.js";
2
2
  /** Interface representing a BillingAccount. */
3
3
  export interface BillingAccount {
4
4
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"billingAccount.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/billingAccount.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,qCAAqC,EACrC,+BAA+B,EAChC,MAAM,oBAAoB,CAAC;AAE5B,+CAA+C;AAC/C,MAAM,WAAW,cAAc;IAC7B;;;;OAIG;IACH,SAAS,CACP,gBAAgB,EAAE,MAAM,EACxB,OAAO,CAAC,EAAE,qCAAqC,GAC9C,OAAO,CAAC,+BAA+B,CAAC,CAAC;CAC7C"}
1
+ {"version":3,"file":"billingAccount.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/billingAccount.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EACV,qCAAqC,EACrC,+BAA+B,EAChC,MAAM,oBAAoB,CAAC;AAE5B,+CAA+C;AAC/C,MAAM,WAAW,cAAc;IAC7B;;;;OAIG;IACH,SAAS,CACP,gBAAgB,EAAE,MAAM,EACxB,OAAO,CAAC,EAAE,qCAAqC,GAC9C,OAAO,CAAC,+BAA+B,CAAC,CAAC;CAC7C"}
@@ -1,9 +1,4 @@
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
- */
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
8
3
  export {};
9
4
  //# sourceMappingURL=billingAccount.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"billingAccount.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/billingAccount.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 {\n BillingAccountGetPolicyOptionalParams,\n BillingAccountGetPolicyResponse\n} from \"../models/index.js\";\n\n/** Interface representing a BillingAccount. */\nexport interface BillingAccount {\n /**\n * Get Billing Account Policy.\n * @param billingAccountId Billing Account Id.\n * @param options The options parameters.\n */\n getPolicy(\n billingAccountId: string,\n options?: BillingAccountGetPolicyOptionalParams\n ): Promise<BillingAccountGetPolicyResponse>;\n}\n"]}
1
+ {"version":3,"file":"billingAccount.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/billingAccount.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// 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\nimport type {\n BillingAccountGetPolicyOptionalParams,\n BillingAccountGetPolicyResponse,\n} from \"../models/index.js\";\n\n/** Interface representing a BillingAccount. */\nexport interface BillingAccount {\n /**\n * Get Billing Account Policy.\n * @param billingAccountId Billing Account Id.\n * @param options The options parameters.\n */\n getPolicy(\n billingAccountId: string,\n options?: BillingAccountGetPolicyOptionalParams,\n ): Promise<BillingAccountGetPolicyResponse>;\n}\n"]}
@@ -1,6 +1,5 @@
1
- export * from "./subscriptions.js";
2
- export * from "./tenants.js";
3
- export * from "./subscriptionOperations.js";
1
+ export * from "./subscription.js";
2
+ export * from "./subscriptionOperation.js";
4
3
  export * from "./operations.js";
5
4
  export * from "./alias.js";
6
5
  export * from "./subscriptionPolicy.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAQA,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAMA,cAAc,mBAAmB,CAAC;AAClC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC"}
@@ -1,13 +1,9 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- *
5
- * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- */
8
- export * from "./subscriptions.js";
9
- export * from "./tenants.js";
10
- export * from "./subscriptionOperations.js";
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ // Code generated by Microsoft (R) AutoRest Code Generator.
4
+ // Changes may cause incorrect behavior and will be lost if the code is regenerated.
5
+ export * from "./subscription.js";
6
+ export * from "./subscriptionOperation.js";
11
7
  export * from "./operations.js";
12
8
  export * from "./alias.js";
13
9
  export * from "./subscriptionPolicy.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport * from \"./subscriptions.js\";\nexport * from \"./tenants.js\";\nexport * from \"./subscriptionOperations.js\";\nexport * from \"./operations.js\";\nexport * from \"./alias.js\";\nexport * from \"./subscriptionPolicy.js\";\nexport * from \"./billingAccount.js\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,2DAA2D;AAC3D,oFAAoF;AAEpF,cAAc,mBAAmB,CAAC;AAClC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC","sourcesContent":["// 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\nexport * from \"./subscription.js\";\nexport * from \"./subscriptionOperation.js\";\nexport * from \"./operations.js\";\nexport * from \"./alias.js\";\nexport * from \"./subscriptionPolicy.js\";\nexport * from \"./billingAccount.js\";\n"]}
@@ -1,5 +1,5 @@
1
- import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
- import { Operation, OperationsListOptionalParams } from "../models/index.js";
1
+ import type { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import type { Operation, OperationsListOptionalParams } from "../models/index.js";
3
3
  /** Interface representing a Operations. */
4
4
  export interface Operations {
5
5
  /**
@@ -1 +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,EAAE,SAAS,EAAE,4BAA4B,EAAE,MAAM,oBAAoB,CAAC;AAG7E,2CAA2C;AAC3C,MAAM,WAAW,UAAU;IACzB;;;OAGG;IACH,IAAI,CACF,OAAO,CAAC,EAAE,4BAA4B,GACrC,0BAA0B,CAAC,SAAS,CAAC,CAAC;CAC1C"}
1
+ {"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/operations.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AACrE,OAAO,KAAK,EAAE,SAAS,EAAE,4BAA4B,EAAE,MAAM,oBAAoB,CAAC;AAGlF,2CAA2C;AAC3C,MAAM,WAAW,UAAU;IACzB;;;OAGG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,4BAA4B,GAAG,0BAA0B,CAAC,SAAS,CAAC,CAAC;CACrF"}
@@ -1,9 +1,4 @@
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
- */
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
8
3
  export {};
9
4
  //# sourceMappingURL=operations.js.map
@@ -1 +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 { Operation, OperationsListOptionalParams } from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Interface representing a Operations. */\nexport interface Operations {\n /**\n * Lists all of the available Microsoft.Subscription API operations.\n * @param options The options parameters.\n */\n list(\n options?: OperationsListOptionalParams\n ): PagedAsyncIterableIterator<Operation>;\n}\n"]}
1
+ {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// 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\nimport type { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport type { Operation, OperationsListOptionalParams } from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Interface representing a Operations. */\nexport interface Operations {\n /**\n * Lists all of the available Microsoft.Subscription API operations.\n * @param options The options parameters.\n */\n list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<Operation>;\n}\n"]}
@@ -1,7 +1,7 @@
1
- import { PollerLike, PollOperationState } from "@azure/core-lro";
2
- import { SubscriptionCancelOptionalParams, SubscriptionCancelResponse, SubscriptionName, SubscriptionRenameOptionalParams, SubscriptionRenameResponse, SubscriptionEnableOptionalParams, SubscriptionEnableResponse, AcceptOwnershipRequest, SubscriptionAcceptOwnershipOptionalParams, SubscriptionAcceptOwnershipResponse, SubscriptionAcceptOwnershipStatusOptionalParams, SubscriptionAcceptOwnershipStatusResponse } from "../models/index.js";
3
- /** Interface representing a SubscriptionOperations. */
4
- export interface SubscriptionOperations {
1
+ import type { SimplePollerLike, OperationState } from "@azure/core-lro";
2
+ import type { SubscriptionCancelOptionalParams, SubscriptionCancelResponse, SubscriptionName, SubscriptionRenameOptionalParams, SubscriptionRenameResponse, SubscriptionEnableOptionalParams, SubscriptionEnableResponse, AcceptOwnershipRequest, SubscriptionAcceptOwnershipOptionalParams, SubscriptionAcceptOwnershipResponse, SubscriptionAcceptOwnershipStatusOptionalParams, SubscriptionAcceptOwnershipStatusResponse } from "../models/index.js";
3
+ /** Interface representing a Subscription. */
4
+ export interface Subscription {
5
5
  /**
6
6
  * The operation to cancel a subscription
7
7
  * @param subscriptionId Subscription Id.
@@ -27,7 +27,7 @@ export interface SubscriptionOperations {
27
27
  * @param body The parameters required to accept subscription ownership.
28
28
  * @param options The options parameters.
29
29
  */
30
- beginAcceptOwnership(subscriptionId: string, body: AcceptOwnershipRequest, options?: SubscriptionAcceptOwnershipOptionalParams): Promise<PollerLike<PollOperationState<SubscriptionAcceptOwnershipResponse>, SubscriptionAcceptOwnershipResponse>>;
30
+ beginAcceptOwnership(subscriptionId: string, body: AcceptOwnershipRequest, options?: SubscriptionAcceptOwnershipOptionalParams): Promise<SimplePollerLike<OperationState<SubscriptionAcceptOwnershipResponse>, SubscriptionAcceptOwnershipResponse>>;
31
31
  /**
32
32
  * Accept subscription ownership.
33
33
  * @param subscriptionId Subscription Id.
@@ -42,4 +42,4 @@ export interface SubscriptionOperations {
42
42
  */
43
43
  acceptOwnershipStatus(subscriptionId: string, options?: SubscriptionAcceptOwnershipStatusOptionalParams): Promise<SubscriptionAcceptOwnershipStatusResponse>;
44
44
  }
45
- //# sourceMappingURL=subscriptionOperations.d.ts.map
45
+ //# sourceMappingURL=subscription.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subscription.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/subscription.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACxE,OAAO,KAAK,EACV,gCAAgC,EAChC,0BAA0B,EAC1B,gBAAgB,EAChB,gCAAgC,EAChC,0BAA0B,EAC1B,gCAAgC,EAChC,0BAA0B,EAC1B,sBAAsB,EACtB,yCAAyC,EACzC,mCAAmC,EACnC,+CAA+C,EAC/C,yCAAyC,EAC1C,MAAM,oBAAoB,CAAC;AAE5B,6CAA6C;AAC7C,MAAM,WAAW,YAAY;IAC3B;;;;OAIG;IACH,MAAM,CACJ,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,gCAAgC,GACzC,OAAO,CAAC,0BAA0B,CAAC,CAAC;IACvC;;;;;OAKG;IACH,MAAM,CACJ,cAAc,EAAE,MAAM,EACtB,IAAI,EAAE,gBAAgB,EACtB,OAAO,CAAC,EAAE,gCAAgC,GACzC,OAAO,CAAC,0BAA0B,CAAC,CAAC;IACvC;;;;OAIG;IACH,MAAM,CACJ,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,gCAAgC,GACzC,OAAO,CAAC,0BAA0B,CAAC,CAAC;IACvC;;;;;OAKG;IACH,oBAAoB,CAClB,cAAc,EAAE,MAAM,EACtB,IAAI,EAAE,sBAAsB,EAC5B,OAAO,CAAC,EAAE,yCAAyC,GAClD,OAAO,CACR,gBAAgB,CACd,cAAc,CAAC,mCAAmC,CAAC,EACnD,mCAAmC,CACpC,CACF,CAAC;IACF;;;;;OAKG;IACH,2BAA2B,CACzB,cAAc,EAAE,MAAM,EACtB,IAAI,EAAE,sBAAsB,EAC5B,OAAO,CAAC,EAAE,yCAAyC,GAClD,OAAO,CAAC,mCAAmC,CAAC,CAAC;IAChD;;;;OAIG;IACH,qBAAqB,CACnB,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,+CAA+C,GACxD,OAAO,CAAC,yCAAyC,CAAC,CAAC;CACvD"}
@@ -0,0 +1,4 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ export {};
4
+ //# sourceMappingURL=subscription.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subscription.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/subscription.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// 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\nimport type { SimplePollerLike, OperationState } from \"@azure/core-lro\";\nimport type {\n SubscriptionCancelOptionalParams,\n SubscriptionCancelResponse,\n SubscriptionName,\n SubscriptionRenameOptionalParams,\n SubscriptionRenameResponse,\n SubscriptionEnableOptionalParams,\n SubscriptionEnableResponse,\n AcceptOwnershipRequest,\n SubscriptionAcceptOwnershipOptionalParams,\n SubscriptionAcceptOwnershipResponse,\n SubscriptionAcceptOwnershipStatusOptionalParams,\n SubscriptionAcceptOwnershipStatusResponse,\n} from \"../models/index.js\";\n\n/** Interface representing a Subscription. */\nexport interface Subscription {\n /**\n * The operation to cancel a subscription\n * @param subscriptionId Subscription Id.\n * @param options The options parameters.\n */\n cancel(\n subscriptionId: string,\n options?: SubscriptionCancelOptionalParams,\n ): Promise<SubscriptionCancelResponse>;\n /**\n * The operation to rename a subscription\n * @param subscriptionId Subscription Id.\n * @param body Subscription Name\n * @param options The options parameters.\n */\n rename(\n subscriptionId: string,\n body: SubscriptionName,\n options?: SubscriptionRenameOptionalParams,\n ): Promise<SubscriptionRenameResponse>;\n /**\n * The operation to enable a subscription\n * @param subscriptionId Subscription Id.\n * @param options The options parameters.\n */\n enable(\n subscriptionId: string,\n options?: SubscriptionEnableOptionalParams,\n ): Promise<SubscriptionEnableResponse>;\n /**\n * Accept subscription ownership.\n * @param subscriptionId Subscription Id.\n * @param body The parameters required to accept subscription ownership.\n * @param options The options parameters.\n */\n beginAcceptOwnership(\n subscriptionId: string,\n body: AcceptOwnershipRequest,\n options?: SubscriptionAcceptOwnershipOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<SubscriptionAcceptOwnershipResponse>,\n SubscriptionAcceptOwnershipResponse\n >\n >;\n /**\n * Accept subscription ownership.\n * @param subscriptionId Subscription Id.\n * @param body The parameters required to accept subscription ownership.\n * @param options The options parameters.\n */\n beginAcceptOwnershipAndWait(\n subscriptionId: string,\n body: AcceptOwnershipRequest,\n options?: SubscriptionAcceptOwnershipOptionalParams,\n ): Promise<SubscriptionAcceptOwnershipResponse>;\n /**\n * Accept subscription ownership status.\n * @param subscriptionId Subscription Id.\n * @param options The options parameters.\n */\n acceptOwnershipStatus(\n subscriptionId: string,\n options?: SubscriptionAcceptOwnershipStatusOptionalParams,\n ): Promise<SubscriptionAcceptOwnershipStatusResponse>;\n}\n"]}
@@ -0,0 +1,12 @@
1
+ import type { SubscriptionOperationGetOptionalParams, SubscriptionOperationGetResponse } from "../models/index.js";
2
+ /** Interface representing a SubscriptionOperation. */
3
+ export interface SubscriptionOperation {
4
+ /**
5
+ * Get the status of the pending Microsoft.Subscription API operations.
6
+ * @param operationId The operation ID, which can be found from the Location field in the generate
7
+ * recommendation response header.
8
+ * @param options The options parameters.
9
+ */
10
+ get(operationId: string, options?: SubscriptionOperationGetOptionalParams): Promise<SubscriptionOperationGetResponse>;
11
+ }
12
+ //# sourceMappingURL=subscriptionOperation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subscriptionOperation.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/subscriptionOperation.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EACV,sCAAsC,EACtC,gCAAgC,EACjC,MAAM,oBAAoB,CAAC;AAE5B,sDAAsD;AACtD,MAAM,WAAW,qBAAqB;IACpC;;;;;OAKG;IACH,GAAG,CACD,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,sCAAsC,GAC/C,OAAO,CAAC,gCAAgC,CAAC,CAAC;CAC9C"}
@@ -0,0 +1,4 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ export {};
4
+ //# sourceMappingURL=subscriptionOperation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subscriptionOperation.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/subscriptionOperation.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// 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\nimport type {\n SubscriptionOperationGetOptionalParams,\n SubscriptionOperationGetResponse,\n} from \"../models/index.js\";\n\n/** Interface representing a SubscriptionOperation. */\nexport interface SubscriptionOperation {\n /**\n * Get the status of the pending Microsoft.Subscription API operations.\n * @param operationId The operation ID, which can be found from the Location field in the generate\n * recommendation response header.\n * @param options The options parameters.\n */\n get(\n operationId: string,\n options?: SubscriptionOperationGetOptionalParams,\n ): Promise<SubscriptionOperationGetResponse>;\n}\n"]}
@@ -1,5 +1,5 @@
1
- import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
- import { GetTenantPolicyResponse, SubscriptionPolicyListPolicyForTenantOptionalParams, PutTenantPolicyRequestProperties, SubscriptionPolicyAddUpdatePolicyForTenantOptionalParams, SubscriptionPolicyAddUpdatePolicyForTenantResponse, SubscriptionPolicyGetPolicyForTenantOptionalParams, SubscriptionPolicyGetPolicyForTenantResponse } from "../models/index.js";
1
+ import type { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import type { GetTenantPolicyResponse, SubscriptionPolicyListPolicyForTenantOptionalParams, PutTenantPolicyRequestProperties, SubscriptionPolicyAddUpdatePolicyForTenantOptionalParams, SubscriptionPolicyAddUpdatePolicyForTenantResponse, SubscriptionPolicyGetPolicyForTenantOptionalParams, SubscriptionPolicyGetPolicyForTenantResponse } from "../models/index.js";
3
3
  /** Interface representing a SubscriptionPolicy. */
4
4
  export interface SubscriptionPolicy {
5
5
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"subscriptionPolicy.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/subscriptionPolicy.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EACL,uBAAuB,EACvB,mDAAmD,EACnD,gCAAgC,EAChC,wDAAwD,EACxD,kDAAkD,EAClD,kDAAkD,EAClD,4CAA4C,EAC7C,MAAM,oBAAoB,CAAC;AAG5B,mDAAmD;AACnD,MAAM,WAAW,kBAAkB;IACjC;;;OAGG;IACH,mBAAmB,CACjB,OAAO,CAAC,EAAE,mDAAmD,GAC5D,0BAA0B,CAAC,uBAAuB,CAAC,CAAC;IACvD;;;;OAIG;IACH,wBAAwB,CACtB,IAAI,EAAE,gCAAgC,EACtC,OAAO,CAAC,EAAE,wDAAwD,GACjE,OAAO,CAAC,kDAAkD,CAAC,CAAC;IAC/D;;;OAGG;IACH,kBAAkB,CAChB,OAAO,CAAC,EAAE,kDAAkD,GAC3D,OAAO,CAAC,4CAA4C,CAAC,CAAC;CAC1D"}
1
+ {"version":3,"file":"subscriptionPolicy.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/subscriptionPolicy.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AACrE,OAAO,KAAK,EACV,uBAAuB,EACvB,mDAAmD,EACnD,gCAAgC,EAChC,wDAAwD,EACxD,kDAAkD,EAClD,kDAAkD,EAClD,4CAA4C,EAC7C,MAAM,oBAAoB,CAAC;AAG5B,mDAAmD;AACnD,MAAM,WAAW,kBAAkB;IACjC;;;OAGG;IACH,mBAAmB,CACjB,OAAO,CAAC,EAAE,mDAAmD,GAC5D,0BAA0B,CAAC,uBAAuB,CAAC,CAAC;IACvD;;;;OAIG;IACH,wBAAwB,CACtB,IAAI,EAAE,gCAAgC,EACtC,OAAO,CAAC,EAAE,wDAAwD,GACjE,OAAO,CAAC,kDAAkD,CAAC,CAAC;IAC/D;;;OAGG;IACH,kBAAkB,CAChB,OAAO,CAAC,EAAE,kDAAkD,GAC3D,OAAO,CAAC,4CAA4C,CAAC,CAAC;CAC1D"}
@@ -1,9 +1,4 @@
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
- */
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
8
3
  export {};
9
4
  //# sourceMappingURL=subscriptionPolicy.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"subscriptionPolicy.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/subscriptionPolicy.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 GetTenantPolicyResponse,\n SubscriptionPolicyListPolicyForTenantOptionalParams,\n PutTenantPolicyRequestProperties,\n SubscriptionPolicyAddUpdatePolicyForTenantOptionalParams,\n SubscriptionPolicyAddUpdatePolicyForTenantResponse,\n SubscriptionPolicyGetPolicyForTenantOptionalParams,\n SubscriptionPolicyGetPolicyForTenantResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Interface representing a SubscriptionPolicy. */\nexport interface SubscriptionPolicy {\n /**\n * Get the subscription tenant policy for the user's tenant.\n * @param options The options parameters.\n */\n listPolicyForTenant(\n options?: SubscriptionPolicyListPolicyForTenantOptionalParams\n ): PagedAsyncIterableIterator<GetTenantPolicyResponse>;\n /**\n * Create or Update Subscription tenant policy for user's tenant.\n * @param body Put tenant policy request properties.\n * @param options The options parameters.\n */\n addUpdatePolicyForTenant(\n body: PutTenantPolicyRequestProperties,\n options?: SubscriptionPolicyAddUpdatePolicyForTenantOptionalParams\n ): Promise<SubscriptionPolicyAddUpdatePolicyForTenantResponse>;\n /**\n * Get the subscription tenant policy for the user's tenant.\n * @param options The options parameters.\n */\n getPolicyForTenant(\n options?: SubscriptionPolicyGetPolicyForTenantOptionalParams\n ): Promise<SubscriptionPolicyGetPolicyForTenantResponse>;\n}\n"]}
1
+ {"version":3,"file":"subscriptionPolicy.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/subscriptionPolicy.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// 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\nimport type { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport type {\n GetTenantPolicyResponse,\n SubscriptionPolicyListPolicyForTenantOptionalParams,\n PutTenantPolicyRequestProperties,\n SubscriptionPolicyAddUpdatePolicyForTenantOptionalParams,\n SubscriptionPolicyAddUpdatePolicyForTenantResponse,\n SubscriptionPolicyGetPolicyForTenantOptionalParams,\n SubscriptionPolicyGetPolicyForTenantResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Interface representing a SubscriptionPolicy. */\nexport interface SubscriptionPolicy {\n /**\n * Get the subscription tenant policy for the user's tenant.\n * @param options The options parameters.\n */\n listPolicyForTenant(\n options?: SubscriptionPolicyListPolicyForTenantOptionalParams,\n ): PagedAsyncIterableIterator<GetTenantPolicyResponse>;\n /**\n * Create or Update Subscription tenant policy for user's tenant.\n * @param body Put tenant policy request properties.\n * @param options The options parameters.\n */\n addUpdatePolicyForTenant(\n body: PutTenantPolicyRequestProperties,\n options?: SubscriptionPolicyAddUpdatePolicyForTenantOptionalParams,\n ): Promise<SubscriptionPolicyAddUpdatePolicyForTenantResponse>;\n /**\n * Get the subscription tenant policy for the user's tenant.\n * @param options The options parameters.\n */\n getPolicyForTenant(\n options?: SubscriptionPolicyGetPolicyForTenantOptionalParams,\n ): Promise<SubscriptionPolicyGetPolicyForTenantResponse>;\n}\n"]}
@@ -2,11 +2,11 @@ export interface PageInfo {
2
2
  continuationToken?: string;
3
3
  }
4
4
  /**
5
- * Given a result page from a pageable operation, returns a
6
- * continuation token that can be used to begin paging from
5
+ * Given the last `.value` produced by the `byPage` iterator,
6
+ * returns a continuation token that can be used to begin paging from
7
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().
8
+ * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
9
+ * @returns The continuation token that can be passed into byPage() during future calls.
10
10
  */
11
11
  export declare function getContinuationToken(page: unknown): string | undefined;
12
12
  export declare function setContinuationToken(page: unknown, continuationToken: string | undefined): void;
@@ -1 +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"}
1
+ {"version":3,"file":"pagingHelper.d.ts","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAMA,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,CAAC,IAAI,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CAO/F"}