@azure/arm-resourcesdeployments 1.0.0-beta.1 → 1.0.0-beta.2

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 (385) hide show
  1. package/README.md +11 -11
  2. package/dist/browser/api/deploymentOperations/index.d.ts +3 -0
  3. package/dist/browser/api/deploymentOperations/index.js +4 -0
  4. package/dist/browser/api/deploymentOperations/index.js.map +1 -0
  5. package/dist/browser/api/deploymentOperations/operations.d.ts +46 -0
  6. package/dist/browser/api/deploymentOperations/operations.js +282 -0
  7. package/dist/browser/api/deploymentOperations/operations.js.map +1 -0
  8. package/dist/browser/api/deploymentOperations/options.d.ts +42 -0
  9. package/dist/browser/api/deploymentOperations/options.js +4 -0
  10. package/dist/browser/api/deploymentOperations/options.js.map +1 -0
  11. package/dist/browser/api/deployments/index.d.ts +3 -0
  12. package/dist/browser/api/deployments/index.js +4 -0
  13. package/dist/browser/api/deployments/index.js.map +1 -0
  14. package/dist/browser/api/deployments/operations.d.ts +187 -0
  15. package/dist/browser/api/deployments/operations.js +1301 -0
  16. package/dist/browser/api/deployments/operations.js.map +1 -0
  17. package/dist/browser/api/deployments/options.d.ts +195 -0
  18. package/dist/browser/api/deployments/options.js +4 -0
  19. package/dist/browser/api/deployments/options.js.map +1 -0
  20. package/dist/browser/api/deploymentsContext.d.ts +22 -0
  21. package/dist/browser/api/deploymentsContext.js +26 -0
  22. package/dist/browser/api/deploymentsContext.js.map +1 -0
  23. package/dist/browser/api/index.d.ts +3 -0
  24. package/dist/browser/api/index.js +4 -0
  25. package/dist/browser/api/index.js.map +1 -0
  26. package/dist/browser/classic/deploymentOperations/index.d.ts +29 -0
  27. package/dist/browser/classic/deploymentOperations/index.js +23 -0
  28. package/dist/browser/classic/deploymentOperations/index.js.map +1 -0
  29. package/dist/browser/classic/deployments/index.d.ts +177 -0
  30. package/dist/browser/classic/deployments/index.js +211 -0
  31. package/dist/browser/classic/deployments/index.js.map +1 -0
  32. package/dist/browser/classic/index.d.ts +3 -0
  33. package/dist/browser/classic/index.js +4 -0
  34. package/dist/browser/classic/index.js.map +1 -0
  35. package/dist/browser/deploymentsClient.d.ts +16 -20
  36. package/dist/browser/deploymentsClient.js +27 -86
  37. package/dist/browser/deploymentsClient.js.map +1 -1
  38. package/dist/browser/index.d.ts +16 -3
  39. package/dist/browser/index.js +7 -11
  40. package/dist/browser/index.js.map +1 -1
  41. package/dist/browser/logger.d.ts +2 -0
  42. package/dist/browser/logger.js +5 -0
  43. package/dist/browser/logger.js.map +1 -0
  44. package/dist/browser/models/index.d.ts +2 -1540
  45. package/dist/browser/models/index.js +3 -131
  46. package/dist/browser/models/index.js.map +1 -1
  47. package/dist/browser/models/models.d.ts +966 -0
  48. package/dist/browser/models/models.js +925 -0
  49. package/dist/browser/models/models.js.map +1 -0
  50. package/dist/browser/restorePollerHelpers.d.ts +21 -0
  51. package/dist/browser/restorePollerHelpers.js +157 -0
  52. package/dist/browser/restorePollerHelpers.js.map +1 -0
  53. package/dist/browser/static-helpers/cloudSettingHelpers.d.ts +22 -0
  54. package/dist/browser/static-helpers/cloudSettingHelpers.js +38 -0
  55. package/dist/browser/static-helpers/cloudSettingHelpers.js.map +1 -0
  56. package/dist/browser/static-helpers/pagingHelpers.d.ts +74 -0
  57. package/dist/browser/static-helpers/pagingHelpers.js +143 -0
  58. package/dist/browser/static-helpers/pagingHelpers.js.map +1 -0
  59. package/dist/browser/static-helpers/pollingHelpers.d.ts +34 -0
  60. package/dist/browser/static-helpers/pollingHelpers.js +95 -0
  61. package/dist/browser/static-helpers/pollingHelpers.js.map +1 -0
  62. package/dist/browser/static-helpers/simplePollerHelpers.d.ts +73 -0
  63. package/dist/browser/static-helpers/simplePollerHelpers.js +44 -0
  64. package/dist/browser/static-helpers/simplePollerHelpers.js.map +1 -0
  65. package/dist/browser/static-helpers/urlTemplate.d.ts +5 -0
  66. package/dist/browser/static-helpers/urlTemplate.js +200 -0
  67. package/dist/browser/static-helpers/urlTemplate.js.map +1 -0
  68. package/dist/commonjs/api/deploymentOperations/index.d.ts +3 -0
  69. package/dist/commonjs/api/deploymentOperations/index.js +46 -0
  70. package/dist/commonjs/api/deploymentOperations/index.js.map +7 -0
  71. package/dist/commonjs/api/deploymentOperations/operations.d.ts +46 -0
  72. package/dist/commonjs/api/deploymentOperations/operations.js +430 -0
  73. package/dist/commonjs/api/deploymentOperations/operations.js.map +7 -0
  74. package/dist/commonjs/api/deploymentOperations/options.d.ts +42 -0
  75. package/dist/commonjs/api/deploymentOperations/options.js +16 -0
  76. package/dist/commonjs/api/deploymentOperations/options.js.map +7 -0
  77. package/dist/commonjs/api/deployments/index.d.ts +3 -0
  78. package/dist/commonjs/api/deployments/index.js +116 -0
  79. package/dist/commonjs/api/deployments/index.js.map +7 -0
  80. package/dist/commonjs/api/deployments/operations.d.ts +187 -0
  81. package/dist/commonjs/api/deployments/operations.js +1824 -0
  82. package/dist/commonjs/api/deployments/operations.js.map +7 -0
  83. package/dist/commonjs/api/deployments/options.d.ts +195 -0
  84. package/dist/commonjs/api/deployments/options.js +16 -0
  85. package/dist/commonjs/api/deployments/options.js.map +7 -0
  86. package/dist/commonjs/api/deploymentsContext.d.ts +22 -0
  87. package/dist/commonjs/api/deploymentsContext.js +47 -0
  88. package/dist/commonjs/api/deploymentsContext.js.map +7 -0
  89. package/dist/commonjs/api/index.d.ts +3 -0
  90. package/dist/commonjs/api/index.js +28 -0
  91. package/dist/commonjs/api/index.js.map +7 -0
  92. package/dist/commonjs/classic/deploymentOperations/index.d.ts +29 -0
  93. package/dist/commonjs/classic/deploymentOperations/index.js +47 -0
  94. package/dist/commonjs/classic/deploymentOperations/index.js.map +7 -0
  95. package/dist/commonjs/classic/deployments/index.d.ts +177 -0
  96. package/dist/commonjs/classic/deployments/index.js +282 -0
  97. package/dist/commonjs/classic/deployments/index.js.map +7 -0
  98. package/dist/commonjs/classic/index.d.ts +3 -0
  99. package/dist/commonjs/classic/index.js +16 -0
  100. package/dist/commonjs/classic/index.js.map +7 -0
  101. package/dist/commonjs/deploymentsClient.d.ts +16 -20
  102. package/dist/commonjs/deploymentsClient.js +56 -99
  103. package/dist/commonjs/deploymentsClient.js.map +7 -1
  104. package/dist/commonjs/index.d.ts +16 -3
  105. package/dist/commonjs/index.js +62 -19
  106. package/dist/commonjs/index.js.map +7 -1
  107. package/dist/commonjs/logger.d.ts +2 -0
  108. package/dist/commonjs/logger.js +29 -0
  109. package/dist/commonjs/logger.js.map +7 -0
  110. package/dist/commonjs/models/index.d.ts +2 -1540
  111. package/dist/commonjs/models/index.js +48 -135
  112. package/dist/commonjs/models/index.js.map +7 -1
  113. package/dist/commonjs/models/models.d.ts +966 -0
  114. package/dist/commonjs/models/models.js +951 -0
  115. package/dist/commonjs/models/models.js.map +7 -0
  116. package/dist/commonjs/restorePollerHelpers.d.ts +21 -0
  117. package/dist/commonjs/restorePollerHelpers.js +170 -0
  118. package/dist/commonjs/restorePollerHelpers.js.map +7 -0
  119. package/dist/commonjs/static-helpers/cloudSettingHelpers.d.ts +22 -0
  120. package/dist/commonjs/static-helpers/cloudSettingHelpers.js +52 -0
  121. package/dist/commonjs/static-helpers/cloudSettingHelpers.js.map +7 -0
  122. package/dist/commonjs/static-helpers/pagingHelpers.d.ts +74 -0
  123. package/dist/commonjs/static-helpers/pagingHelpers.js +143 -0
  124. package/dist/commonjs/static-helpers/pagingHelpers.js.map +7 -0
  125. package/dist/commonjs/static-helpers/pollingHelpers.d.ts +34 -0
  126. package/dist/commonjs/static-helpers/pollingHelpers.js +101 -0
  127. package/dist/commonjs/static-helpers/pollingHelpers.js.map +7 -0
  128. package/dist/commonjs/static-helpers/simplePollerHelpers.d.ts +73 -0
  129. package/dist/commonjs/static-helpers/simplePollerHelpers.js +67 -0
  130. package/dist/commonjs/static-helpers/simplePollerHelpers.js.map +7 -0
  131. package/dist/commonjs/static-helpers/urlTemplate.d.ts +5 -0
  132. package/dist/commonjs/static-helpers/urlTemplate.js +197 -0
  133. package/dist/commonjs/static-helpers/urlTemplate.js.map +7 -0
  134. package/dist/commonjs/tsdoc-metadata.json +11 -11
  135. package/dist/esm/api/deploymentOperations/index.d.ts +3 -0
  136. package/dist/esm/api/deploymentOperations/index.js +4 -0
  137. package/dist/esm/api/deploymentOperations/index.js.map +1 -0
  138. package/dist/esm/api/deploymentOperations/operations.d.ts +46 -0
  139. package/dist/esm/api/deploymentOperations/operations.js +282 -0
  140. package/dist/esm/api/deploymentOperations/operations.js.map +1 -0
  141. package/dist/esm/api/deploymentOperations/options.d.ts +42 -0
  142. package/dist/esm/api/deploymentOperations/options.js +4 -0
  143. package/dist/esm/api/deploymentOperations/options.js.map +1 -0
  144. package/dist/esm/api/deployments/index.d.ts +3 -0
  145. package/dist/esm/api/deployments/index.js +4 -0
  146. package/dist/esm/api/deployments/index.js.map +1 -0
  147. package/dist/esm/api/deployments/operations.d.ts +187 -0
  148. package/dist/esm/api/deployments/operations.js +1301 -0
  149. package/dist/esm/api/deployments/operations.js.map +1 -0
  150. package/dist/esm/api/deployments/options.d.ts +195 -0
  151. package/dist/esm/api/deployments/options.js +4 -0
  152. package/dist/esm/api/deployments/options.js.map +1 -0
  153. package/dist/esm/api/deploymentsContext.d.ts +22 -0
  154. package/dist/esm/api/deploymentsContext.js +26 -0
  155. package/dist/esm/api/deploymentsContext.js.map +1 -0
  156. package/dist/esm/api/index.d.ts +3 -0
  157. package/dist/esm/api/index.js +4 -0
  158. package/dist/esm/api/index.js.map +1 -0
  159. package/dist/esm/classic/deploymentOperations/index.d.ts +29 -0
  160. package/dist/esm/classic/deploymentOperations/index.js +23 -0
  161. package/dist/esm/classic/deploymentOperations/index.js.map +1 -0
  162. package/dist/esm/classic/deployments/index.d.ts +177 -0
  163. package/dist/esm/classic/deployments/index.js +211 -0
  164. package/dist/esm/classic/deployments/index.js.map +1 -0
  165. package/dist/esm/classic/index.d.ts +3 -0
  166. package/dist/esm/classic/index.js +4 -0
  167. package/dist/esm/classic/index.js.map +1 -0
  168. package/dist/esm/deploymentsClient.d.ts +16 -20
  169. package/dist/esm/deploymentsClient.js +27 -86
  170. package/dist/esm/deploymentsClient.js.map +1 -1
  171. package/dist/esm/index.d.ts +16 -3
  172. package/dist/esm/index.js +7 -11
  173. package/dist/esm/index.js.map +1 -1
  174. package/dist/esm/logger.d.ts +2 -0
  175. package/dist/esm/logger.js +5 -0
  176. package/dist/esm/logger.js.map +1 -0
  177. package/dist/esm/models/index.d.ts +2 -1540
  178. package/dist/esm/models/index.js +3 -131
  179. package/dist/esm/models/index.js.map +1 -1
  180. package/dist/esm/models/models.d.ts +966 -0
  181. package/dist/esm/models/models.js +925 -0
  182. package/dist/esm/models/models.js.map +1 -0
  183. package/dist/esm/restorePollerHelpers.d.ts +21 -0
  184. package/dist/esm/restorePollerHelpers.js +157 -0
  185. package/dist/esm/restorePollerHelpers.js.map +1 -0
  186. package/dist/esm/static-helpers/cloudSettingHelpers.d.ts +22 -0
  187. package/dist/esm/static-helpers/cloudSettingHelpers.js +38 -0
  188. package/dist/esm/static-helpers/cloudSettingHelpers.js.map +1 -0
  189. package/dist/esm/static-helpers/pagingHelpers.d.ts +74 -0
  190. package/dist/esm/static-helpers/pagingHelpers.js +143 -0
  191. package/dist/esm/static-helpers/pagingHelpers.js.map +1 -0
  192. package/dist/esm/static-helpers/pollingHelpers.d.ts +34 -0
  193. package/dist/esm/static-helpers/pollingHelpers.js +95 -0
  194. package/dist/esm/static-helpers/pollingHelpers.js.map +1 -0
  195. package/dist/esm/static-helpers/simplePollerHelpers.d.ts +73 -0
  196. package/dist/esm/static-helpers/simplePollerHelpers.js +44 -0
  197. package/dist/esm/static-helpers/simplePollerHelpers.js.map +1 -0
  198. package/dist/esm/static-helpers/urlTemplate.d.ts +5 -0
  199. package/dist/esm/static-helpers/urlTemplate.js +200 -0
  200. package/dist/esm/static-helpers/urlTemplate.js.map +1 -0
  201. package/package.json +150 -99
  202. package/CHANGELOG.md +0 -7
  203. package/dist/browser/deploymentsClient.d.ts.map +0 -1
  204. package/dist/browser/index.d.ts.map +0 -1
  205. package/dist/browser/lroImpl.d.ts +0 -11
  206. package/dist/browser/lroImpl.d.ts.map +0 -1
  207. package/dist/browser/lroImpl.js +0 -21
  208. package/dist/browser/lroImpl.js.map +0 -1
  209. package/dist/browser/models/index.d.ts.map +0 -1
  210. package/dist/browser/models/mappers.d.ts +0 -62
  211. package/dist/browser/models/mappers.d.ts.map +0 -1
  212. package/dist/browser/models/mappers.js +0 -2165
  213. package/dist/browser/models/mappers.js.map +0 -1
  214. package/dist/browser/models/parameters.d.ts +0 -20
  215. package/dist/browser/models/parameters.d.ts.map +0 -1
  216. package/dist/browser/models/parameters.js +0 -184
  217. package/dist/browser/models/parameters.js.map +0 -1
  218. package/dist/browser/operations/deploymentOperations.d.ts +0 -168
  219. package/dist/browser/operations/deploymentOperations.d.ts.map +0 -1
  220. package/dist/browser/operations/deploymentOperations.js +0 -782
  221. package/dist/browser/operations/deploymentOperations.js.map +0 -1
  222. package/dist/browser/operations/deployments.d.ts +0 -628
  223. package/dist/browser/operations/deployments.d.ts.map +0 -1
  224. package/dist/browser/operations/deployments.js +0 -2766
  225. package/dist/browser/operations/deployments.js.map +0 -1
  226. package/dist/browser/operations/index.d.ts +0 -3
  227. package/dist/browser/operations/index.d.ts.map +0 -1
  228. package/dist/browser/operations/index.js +0 -10
  229. package/dist/browser/operations/index.js.map +0 -1
  230. package/dist/browser/operationsInterfaces/deploymentOperations.d.ts +0 -77
  231. package/dist/browser/operationsInterfaces/deploymentOperations.d.ts.map +0 -1
  232. package/dist/browser/operationsInterfaces/deploymentOperations.js +0 -9
  233. package/dist/browser/operationsInterfaces/deploymentOperations.js.map +0 -1
  234. package/dist/browser/operationsInterfaces/deployments.d.ts +0 -545
  235. package/dist/browser/operationsInterfaces/deployments.d.ts.map +0 -1
  236. package/dist/browser/operationsInterfaces/deployments.js +0 -9
  237. package/dist/browser/operationsInterfaces/deployments.js.map +0 -1
  238. package/dist/browser/operationsInterfaces/index.d.ts +0 -3
  239. package/dist/browser/operationsInterfaces/index.d.ts.map +0 -1
  240. package/dist/browser/operationsInterfaces/index.js +0 -10
  241. package/dist/browser/operationsInterfaces/index.js.map +0 -1
  242. package/dist/browser/pagingHelper.d.ts +0 -13
  243. package/dist/browser/pagingHelper.d.ts.map +0 -1
  244. package/dist/browser/pagingHelper.js +0 -32
  245. package/dist/browser/pagingHelper.js.map +0 -1
  246. package/dist/commonjs/deploymentsClient.d.ts.map +0 -1
  247. package/dist/commonjs/index.d.ts.map +0 -1
  248. package/dist/commonjs/lroImpl.d.ts +0 -11
  249. package/dist/commonjs/lroImpl.d.ts.map +0 -1
  250. package/dist/commonjs/lroImpl.js +0 -24
  251. package/dist/commonjs/lroImpl.js.map +0 -1
  252. package/dist/commonjs/models/index.d.ts.map +0 -1
  253. package/dist/commonjs/models/mappers.d.ts +0 -62
  254. package/dist/commonjs/models/mappers.d.ts.map +0 -1
  255. package/dist/commonjs/models/mappers.js +0 -2169
  256. package/dist/commonjs/models/mappers.js.map +0 -1
  257. package/dist/commonjs/models/parameters.d.ts +0 -20
  258. package/dist/commonjs/models/parameters.d.ts.map +0 -1
  259. package/dist/commonjs/models/parameters.js +0 -187
  260. package/dist/commonjs/models/parameters.js.map +0 -1
  261. package/dist/commonjs/operations/deploymentOperations.d.ts +0 -168
  262. package/dist/commonjs/operations/deploymentOperations.d.ts.map +0 -1
  263. package/dist/commonjs/operations/deploymentOperations.js +0 -786
  264. package/dist/commonjs/operations/deploymentOperations.js.map +0 -1
  265. package/dist/commonjs/operations/deployments.d.ts +0 -628
  266. package/dist/commonjs/operations/deployments.d.ts.map +0 -1
  267. package/dist/commonjs/operations/deployments.js +0 -2770
  268. package/dist/commonjs/operations/deployments.js.map +0 -1
  269. package/dist/commonjs/operations/index.d.ts +0 -3
  270. package/dist/commonjs/operations/index.d.ts.map +0 -1
  271. package/dist/commonjs/operations/index.js +0 -13
  272. package/dist/commonjs/operations/index.js.map +0 -1
  273. package/dist/commonjs/operationsInterfaces/deploymentOperations.d.ts +0 -77
  274. package/dist/commonjs/operationsInterfaces/deploymentOperations.d.ts.map +0 -1
  275. package/dist/commonjs/operationsInterfaces/deploymentOperations.js +0 -10
  276. package/dist/commonjs/operationsInterfaces/deploymentOperations.js.map +0 -1
  277. package/dist/commonjs/operationsInterfaces/deployments.d.ts +0 -545
  278. package/dist/commonjs/operationsInterfaces/deployments.d.ts.map +0 -1
  279. package/dist/commonjs/operationsInterfaces/deployments.js +0 -10
  280. package/dist/commonjs/operationsInterfaces/deployments.js.map +0 -1
  281. package/dist/commonjs/operationsInterfaces/index.d.ts +0 -3
  282. package/dist/commonjs/operationsInterfaces/index.d.ts.map +0 -1
  283. package/dist/commonjs/operationsInterfaces/index.js +0 -13
  284. package/dist/commonjs/operationsInterfaces/index.js.map +0 -1
  285. package/dist/commonjs/pagingHelper.d.ts +0 -13
  286. package/dist/commonjs/pagingHelper.d.ts.map +0 -1
  287. package/dist/commonjs/pagingHelper.js +0 -36
  288. package/dist/commonjs/pagingHelper.js.map +0 -1
  289. package/dist/esm/deploymentsClient.d.ts.map +0 -1
  290. package/dist/esm/index.d.ts.map +0 -1
  291. package/dist/esm/lroImpl.d.ts +0 -11
  292. package/dist/esm/lroImpl.d.ts.map +0 -1
  293. package/dist/esm/lroImpl.js +0 -21
  294. package/dist/esm/lroImpl.js.map +0 -1
  295. package/dist/esm/models/index.d.ts.map +0 -1
  296. package/dist/esm/models/mappers.d.ts +0 -62
  297. package/dist/esm/models/mappers.d.ts.map +0 -1
  298. package/dist/esm/models/mappers.js +0 -2165
  299. package/dist/esm/models/mappers.js.map +0 -1
  300. package/dist/esm/models/parameters.d.ts +0 -20
  301. package/dist/esm/models/parameters.d.ts.map +0 -1
  302. package/dist/esm/models/parameters.js +0 -184
  303. package/dist/esm/models/parameters.js.map +0 -1
  304. package/dist/esm/operations/deploymentOperations.d.ts +0 -168
  305. package/dist/esm/operations/deploymentOperations.d.ts.map +0 -1
  306. package/dist/esm/operations/deploymentOperations.js +0 -782
  307. package/dist/esm/operations/deploymentOperations.js.map +0 -1
  308. package/dist/esm/operations/deployments.d.ts +0 -628
  309. package/dist/esm/operations/deployments.d.ts.map +0 -1
  310. package/dist/esm/operations/deployments.js +0 -2766
  311. package/dist/esm/operations/deployments.js.map +0 -1
  312. package/dist/esm/operations/index.d.ts +0 -3
  313. package/dist/esm/operations/index.d.ts.map +0 -1
  314. package/dist/esm/operations/index.js +0 -10
  315. package/dist/esm/operations/index.js.map +0 -1
  316. package/dist/esm/operationsInterfaces/deploymentOperations.d.ts +0 -77
  317. package/dist/esm/operationsInterfaces/deploymentOperations.d.ts.map +0 -1
  318. package/dist/esm/operationsInterfaces/deploymentOperations.js +0 -9
  319. package/dist/esm/operationsInterfaces/deploymentOperations.js.map +0 -1
  320. package/dist/esm/operationsInterfaces/deployments.d.ts +0 -545
  321. package/dist/esm/operationsInterfaces/deployments.d.ts.map +0 -1
  322. package/dist/esm/operationsInterfaces/deployments.js +0 -9
  323. package/dist/esm/operationsInterfaces/deployments.js.map +0 -1
  324. package/dist/esm/operationsInterfaces/index.d.ts +0 -3
  325. package/dist/esm/operationsInterfaces/index.d.ts.map +0 -1
  326. package/dist/esm/operationsInterfaces/index.js +0 -10
  327. package/dist/esm/operationsInterfaces/index.js.map +0 -1
  328. package/dist/esm/pagingHelper.d.ts +0 -13
  329. package/dist/esm/pagingHelper.d.ts.map +0 -1
  330. package/dist/esm/pagingHelper.js +0 -32
  331. package/dist/esm/pagingHelper.js.map +0 -1
  332. package/dist/react-native/deploymentsClient.d.ts +0 -22
  333. package/dist/react-native/deploymentsClient.d.ts.map +0 -1
  334. package/dist/react-native/deploymentsClient.js +0 -96
  335. package/dist/react-native/deploymentsClient.js.map +0 -1
  336. package/dist/react-native/index.d.ts +0 -5
  337. package/dist/react-native/index.d.ts.map +0 -1
  338. package/dist/react-native/index.js +0 -13
  339. package/dist/react-native/index.js.map +0 -1
  340. package/dist/react-native/lroImpl.d.ts +0 -11
  341. package/dist/react-native/lroImpl.d.ts.map +0 -1
  342. package/dist/react-native/lroImpl.js +0 -21
  343. package/dist/react-native/lroImpl.js.map +0 -1
  344. package/dist/react-native/models/index.d.ts +0 -1541
  345. package/dist/react-native/models/index.d.ts.map +0 -1
  346. package/dist/react-native/models/index.js +0 -132
  347. package/dist/react-native/models/index.js.map +0 -1
  348. package/dist/react-native/models/mappers.d.ts +0 -62
  349. package/dist/react-native/models/mappers.d.ts.map +0 -1
  350. package/dist/react-native/models/mappers.js +0 -2165
  351. package/dist/react-native/models/mappers.js.map +0 -1
  352. package/dist/react-native/models/parameters.d.ts +0 -20
  353. package/dist/react-native/models/parameters.d.ts.map +0 -1
  354. package/dist/react-native/models/parameters.js +0 -184
  355. package/dist/react-native/models/parameters.js.map +0 -1
  356. package/dist/react-native/operations/deploymentOperations.d.ts +0 -168
  357. package/dist/react-native/operations/deploymentOperations.d.ts.map +0 -1
  358. package/dist/react-native/operations/deploymentOperations.js +0 -782
  359. package/dist/react-native/operations/deploymentOperations.js.map +0 -1
  360. package/dist/react-native/operations/deployments.d.ts +0 -628
  361. package/dist/react-native/operations/deployments.d.ts.map +0 -1
  362. package/dist/react-native/operations/deployments.js +0 -2766
  363. package/dist/react-native/operations/deployments.js.map +0 -1
  364. package/dist/react-native/operations/index.d.ts +0 -3
  365. package/dist/react-native/operations/index.d.ts.map +0 -1
  366. package/dist/react-native/operations/index.js +0 -10
  367. package/dist/react-native/operations/index.js.map +0 -1
  368. package/dist/react-native/operationsInterfaces/deploymentOperations.d.ts +0 -77
  369. package/dist/react-native/operationsInterfaces/deploymentOperations.d.ts.map +0 -1
  370. package/dist/react-native/operationsInterfaces/deploymentOperations.js +0 -9
  371. package/dist/react-native/operationsInterfaces/deploymentOperations.js.map +0 -1
  372. package/dist/react-native/operationsInterfaces/deployments.d.ts +0 -545
  373. package/dist/react-native/operationsInterfaces/deployments.d.ts.map +0 -1
  374. package/dist/react-native/operationsInterfaces/deployments.js +0 -9
  375. package/dist/react-native/operationsInterfaces/deployments.js.map +0 -1
  376. package/dist/react-native/operationsInterfaces/index.d.ts +0 -3
  377. package/dist/react-native/operationsInterfaces/index.d.ts.map +0 -1
  378. package/dist/react-native/operationsInterfaces/index.js +0 -10
  379. package/dist/react-native/operationsInterfaces/index.js.map +0 -1
  380. package/dist/react-native/package.json +0 -3
  381. package/dist/react-native/pagingHelper.d.ts +0 -13
  382. package/dist/react-native/pagingHelper.d.ts.map +0 -1
  383. package/dist/react-native/pagingHelper.js +0 -32
  384. package/dist/react-native/pagingHelper.js.map +0 -1
  385. package/review/arm-resourcesdeployments-node.api.md +0 -1226
@@ -0,0 +1,1824 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var operations_exports = {};
19
+ __export(operations_exports, {
20
+ $delete: () => $delete,
21
+ _$deleteDeserialize: () => _$deleteDeserialize,
22
+ _$deleteSend: () => _$deleteSend,
23
+ _calculateTemplateHashDeserialize: () => _calculateTemplateHashDeserialize,
24
+ _calculateTemplateHashSend: () => _calculateTemplateHashSend,
25
+ _cancelAtManagementGroupScopeDeserialize: () => _cancelAtManagementGroupScopeDeserialize,
26
+ _cancelAtManagementGroupScopeSend: () => _cancelAtManagementGroupScopeSend,
27
+ _cancelAtScopeDeserialize: () => _cancelAtScopeDeserialize,
28
+ _cancelAtScopeSend: () => _cancelAtScopeSend,
29
+ _cancelAtSubscriptionScopeDeserialize: () => _cancelAtSubscriptionScopeDeserialize,
30
+ _cancelAtSubscriptionScopeSend: () => _cancelAtSubscriptionScopeSend,
31
+ _cancelAtTenantScopeDeserialize: () => _cancelAtTenantScopeDeserialize,
32
+ _cancelAtTenantScopeSend: () => _cancelAtTenantScopeSend,
33
+ _cancelDeserialize: () => _cancelDeserialize,
34
+ _cancelSend: () => _cancelSend,
35
+ _checkExistenceAtManagementGroupScopeDeserialize: () => _checkExistenceAtManagementGroupScopeDeserialize,
36
+ _checkExistenceAtManagementGroupScopeSend: () => _checkExistenceAtManagementGroupScopeSend,
37
+ _checkExistenceAtScopeDeserialize: () => _checkExistenceAtScopeDeserialize,
38
+ _checkExistenceAtScopeSend: () => _checkExistenceAtScopeSend,
39
+ _checkExistenceAtSubscriptionScopeDeserialize: () => _checkExistenceAtSubscriptionScopeDeserialize,
40
+ _checkExistenceAtSubscriptionScopeSend: () => _checkExistenceAtSubscriptionScopeSend,
41
+ _checkExistenceAtTenantScopeDeserialize: () => _checkExistenceAtTenantScopeDeserialize,
42
+ _checkExistenceAtTenantScopeSend: () => _checkExistenceAtTenantScopeSend,
43
+ _checkExistenceDeserialize: () => _checkExistenceDeserialize,
44
+ _checkExistenceSend: () => _checkExistenceSend,
45
+ _createOrUpdateAtManagementGroupScopeDeserialize: () => _createOrUpdateAtManagementGroupScopeDeserialize,
46
+ _createOrUpdateAtManagementGroupScopeSend: () => _createOrUpdateAtManagementGroupScopeSend,
47
+ _createOrUpdateAtScopeDeserialize: () => _createOrUpdateAtScopeDeserialize,
48
+ _createOrUpdateAtScopeSend: () => _createOrUpdateAtScopeSend,
49
+ _createOrUpdateAtSubscriptionScopeDeserialize: () => _createOrUpdateAtSubscriptionScopeDeserialize,
50
+ _createOrUpdateAtSubscriptionScopeSend: () => _createOrUpdateAtSubscriptionScopeSend,
51
+ _createOrUpdateAtTenantScopeDeserialize: () => _createOrUpdateAtTenantScopeDeserialize,
52
+ _createOrUpdateAtTenantScopeSend: () => _createOrUpdateAtTenantScopeSend,
53
+ _createOrUpdateDeserialize: () => _createOrUpdateDeserialize,
54
+ _createOrUpdateSend: () => _createOrUpdateSend,
55
+ _deleteAtManagementGroupScopeDeserialize: () => _deleteAtManagementGroupScopeDeserialize,
56
+ _deleteAtManagementGroupScopeSend: () => _deleteAtManagementGroupScopeSend,
57
+ _deleteAtScopeDeserialize: () => _deleteAtScopeDeserialize,
58
+ _deleteAtScopeSend: () => _deleteAtScopeSend,
59
+ _deleteAtSubscriptionScopeDeserialize: () => _deleteAtSubscriptionScopeDeserialize,
60
+ _deleteAtSubscriptionScopeSend: () => _deleteAtSubscriptionScopeSend,
61
+ _deleteAtTenantScopeDeserialize: () => _deleteAtTenantScopeDeserialize,
62
+ _deleteAtTenantScopeSend: () => _deleteAtTenantScopeSend,
63
+ _exportTemplateAtManagementGroupScopeDeserialize: () => _exportTemplateAtManagementGroupScopeDeserialize,
64
+ _exportTemplateAtManagementGroupScopeSend: () => _exportTemplateAtManagementGroupScopeSend,
65
+ _exportTemplateAtScopeDeserialize: () => _exportTemplateAtScopeDeserialize,
66
+ _exportTemplateAtScopeSend: () => _exportTemplateAtScopeSend,
67
+ _exportTemplateAtSubscriptionScopeDeserialize: () => _exportTemplateAtSubscriptionScopeDeserialize,
68
+ _exportTemplateAtSubscriptionScopeSend: () => _exportTemplateAtSubscriptionScopeSend,
69
+ _exportTemplateAtTenantScopeDeserialize: () => _exportTemplateAtTenantScopeDeserialize,
70
+ _exportTemplateAtTenantScopeSend: () => _exportTemplateAtTenantScopeSend,
71
+ _exportTemplateDeserialize: () => _exportTemplateDeserialize,
72
+ _exportTemplateSend: () => _exportTemplateSend,
73
+ _getAtManagementGroupScopeDeserialize: () => _getAtManagementGroupScopeDeserialize,
74
+ _getAtManagementGroupScopeSend: () => _getAtManagementGroupScopeSend,
75
+ _getAtScopeDeserialize: () => _getAtScopeDeserialize,
76
+ _getAtScopeSend: () => _getAtScopeSend,
77
+ _getAtSubscriptionScopeDeserialize: () => _getAtSubscriptionScopeDeserialize,
78
+ _getAtSubscriptionScopeSend: () => _getAtSubscriptionScopeSend,
79
+ _getAtTenantScopeDeserialize: () => _getAtTenantScopeDeserialize,
80
+ _getAtTenantScopeSend: () => _getAtTenantScopeSend,
81
+ _getDeserialize: () => _getDeserialize,
82
+ _getSend: () => _getSend,
83
+ _listAtManagementGroupScopeDeserialize: () => _listAtManagementGroupScopeDeserialize,
84
+ _listAtManagementGroupScopeSend: () => _listAtManagementGroupScopeSend,
85
+ _listAtScopeDeserialize: () => _listAtScopeDeserialize,
86
+ _listAtScopeSend: () => _listAtScopeSend,
87
+ _listAtSubscriptionScopeDeserialize: () => _listAtSubscriptionScopeDeserialize,
88
+ _listAtSubscriptionScopeSend: () => _listAtSubscriptionScopeSend,
89
+ _listAtTenantScopeDeserialize: () => _listAtTenantScopeDeserialize,
90
+ _listAtTenantScopeSend: () => _listAtTenantScopeSend,
91
+ _listByResourceGroupDeserialize: () => _listByResourceGroupDeserialize,
92
+ _listByResourceGroupSend: () => _listByResourceGroupSend,
93
+ _validateAtManagementGroupScopeDeserialize: () => _validateAtManagementGroupScopeDeserialize,
94
+ _validateAtManagementGroupScopeSend: () => _validateAtManagementGroupScopeSend,
95
+ _validateAtScopeDeserialize: () => _validateAtScopeDeserialize,
96
+ _validateAtScopeSend: () => _validateAtScopeSend,
97
+ _validateAtSubscriptionScopeDeserialize: () => _validateAtSubscriptionScopeDeserialize,
98
+ _validateAtSubscriptionScopeSend: () => _validateAtSubscriptionScopeSend,
99
+ _validateAtTenantScopeDeserialize: () => _validateAtTenantScopeDeserialize,
100
+ _validateAtTenantScopeSend: () => _validateAtTenantScopeSend,
101
+ _validateDeserialize: () => _validateDeserialize,
102
+ _validateSend: () => _validateSend,
103
+ _whatIfAtManagementGroupScopeDeserialize: () => _whatIfAtManagementGroupScopeDeserialize,
104
+ _whatIfAtManagementGroupScopeSend: () => _whatIfAtManagementGroupScopeSend,
105
+ _whatIfAtSubscriptionScopeDeserialize: () => _whatIfAtSubscriptionScopeDeserialize,
106
+ _whatIfAtSubscriptionScopeSend: () => _whatIfAtSubscriptionScopeSend,
107
+ _whatIfAtTenantScopeDeserialize: () => _whatIfAtTenantScopeDeserialize,
108
+ _whatIfAtTenantScopeSend: () => _whatIfAtTenantScopeSend,
109
+ _whatIfDeserialize: () => _whatIfDeserialize,
110
+ _whatIfSend: () => _whatIfSend,
111
+ calculateTemplateHash: () => calculateTemplateHash,
112
+ cancel: () => cancel,
113
+ cancelAtManagementGroupScope: () => cancelAtManagementGroupScope,
114
+ cancelAtScope: () => cancelAtScope,
115
+ cancelAtSubscriptionScope: () => cancelAtSubscriptionScope,
116
+ cancelAtTenantScope: () => cancelAtTenantScope,
117
+ checkExistence: () => checkExistence,
118
+ checkExistenceAtManagementGroupScope: () => checkExistenceAtManagementGroupScope,
119
+ checkExistenceAtScope: () => checkExistenceAtScope,
120
+ checkExistenceAtSubscriptionScope: () => checkExistenceAtSubscriptionScope,
121
+ checkExistenceAtTenantScope: () => checkExistenceAtTenantScope,
122
+ createOrUpdate: () => createOrUpdate,
123
+ createOrUpdateAtManagementGroupScope: () => createOrUpdateAtManagementGroupScope,
124
+ createOrUpdateAtScope: () => createOrUpdateAtScope,
125
+ createOrUpdateAtSubscriptionScope: () => createOrUpdateAtSubscriptionScope,
126
+ createOrUpdateAtTenantScope: () => createOrUpdateAtTenantScope,
127
+ deleteAtManagementGroupScope: () => deleteAtManagementGroupScope,
128
+ deleteAtScope: () => deleteAtScope,
129
+ deleteAtSubscriptionScope: () => deleteAtSubscriptionScope,
130
+ deleteAtTenantScope: () => deleteAtTenantScope,
131
+ exportTemplate: () => exportTemplate,
132
+ exportTemplateAtManagementGroupScope: () => exportTemplateAtManagementGroupScope,
133
+ exportTemplateAtScope: () => exportTemplateAtScope,
134
+ exportTemplateAtSubscriptionScope: () => exportTemplateAtSubscriptionScope,
135
+ exportTemplateAtTenantScope: () => exportTemplateAtTenantScope,
136
+ get: () => get,
137
+ getAtManagementGroupScope: () => getAtManagementGroupScope,
138
+ getAtScope: () => getAtScope,
139
+ getAtSubscriptionScope: () => getAtSubscriptionScope,
140
+ getAtTenantScope: () => getAtTenantScope,
141
+ listAtManagementGroupScope: () => listAtManagementGroupScope,
142
+ listAtScope: () => listAtScope,
143
+ listAtSubscriptionScope: () => listAtSubscriptionScope,
144
+ listAtTenantScope: () => listAtTenantScope,
145
+ listByResourceGroup: () => listByResourceGroup,
146
+ validate: () => validate,
147
+ validateAtManagementGroupScope: () => validateAtManagementGroupScope,
148
+ validateAtScope: () => validateAtScope,
149
+ validateAtSubscriptionScope: () => validateAtSubscriptionScope,
150
+ validateAtTenantScope: () => validateAtTenantScope,
151
+ whatIf: () => whatIf,
152
+ whatIfAtManagementGroupScope: () => whatIfAtManagementGroupScope,
153
+ whatIfAtSubscriptionScope: () => whatIfAtSubscriptionScope,
154
+ whatIfAtTenantScope: () => whatIfAtTenantScope
155
+ });
156
+ module.exports = __toCommonJS(operations_exports);
157
+ var import_models = require("../../models/models.js");
158
+ var import_pagingHelpers = require("../../static-helpers/pagingHelpers.js");
159
+ var import_pollingHelpers = require("../../static-helpers/pollingHelpers.js");
160
+ var import_urlTemplate = require("../../static-helpers/urlTemplate.js");
161
+ var import_core_client = require("@azure-rest/core-client");
162
+ function _calculateTemplateHashSend(context, template, options = { requestOptions: {} }) {
163
+ const path = (0, import_urlTemplate.expandUrlTemplate)(
164
+ "/providers/Microsoft.Resources/calculateTemplateHash{?api%2Dversion}",
165
+ {
166
+ "api%2Dversion": context.apiVersion ?? "2025-04-01"
167
+ },
168
+ {
169
+ allowReserved: options?.requestOptions?.skipUrlEncoding
170
+ }
171
+ );
172
+ return context.path(path).post({
173
+ ...(0, import_core_client.operationOptionsToRequestParameters)(options),
174
+ contentType: "application/json",
175
+ headers: { accept: "application/json", ...options.requestOptions?.headers },
176
+ body: template
177
+ });
178
+ }
179
+ async function _calculateTemplateHashDeserialize(result) {
180
+ const expectedStatuses = ["200"];
181
+ if (!expectedStatuses.includes(result.status)) {
182
+ const error = (0, import_core_client.createRestError)(result);
183
+ error.details = (0, import_models.cloudErrorDeserializer)(result.body);
184
+ throw error;
185
+ }
186
+ return (0, import_models.templateHashResultDeserializer)(result.body);
187
+ }
188
+ async function calculateTemplateHash(context, template, options = { requestOptions: {} }) {
189
+ const result = await _calculateTemplateHashSend(context, template, options);
190
+ return _calculateTemplateHashDeserialize(result);
191
+ }
192
+ function _exportTemplateSend(context, resourceGroupName, deploymentName, options = { requestOptions: {} }) {
193
+ const path = (0, import_urlTemplate.expandUrlTemplate)(
194
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/exportTemplate{?api%2Dversion}",
195
+ {
196
+ subscriptionId: context.subscriptionId,
197
+ resourceGroupName,
198
+ deploymentName,
199
+ "api%2Dversion": context.apiVersion ?? "2025-04-01"
200
+ },
201
+ {
202
+ allowReserved: options?.requestOptions?.skipUrlEncoding
203
+ }
204
+ );
205
+ return context.path(path).post({
206
+ ...(0, import_core_client.operationOptionsToRequestParameters)(options),
207
+ headers: { accept: "application/json", ...options.requestOptions?.headers }
208
+ });
209
+ }
210
+ async function _exportTemplateDeserialize(result) {
211
+ const expectedStatuses = ["200"];
212
+ if (!expectedStatuses.includes(result.status)) {
213
+ const error = (0, import_core_client.createRestError)(result);
214
+ error.details = (0, import_models.cloudErrorDeserializer)(result.body);
215
+ throw error;
216
+ }
217
+ return (0, import_models.deploymentExportResultDeserializer)(result.body);
218
+ }
219
+ async function exportTemplate(context, resourceGroupName, deploymentName, options = { requestOptions: {} }) {
220
+ const result = await _exportTemplateSend(context, resourceGroupName, deploymentName, options);
221
+ return _exportTemplateDeserialize(result);
222
+ }
223
+ function _whatIfSend(context, resourceGroupName, deploymentName, parameters, options = { requestOptions: {} }) {
224
+ const path = (0, import_urlTemplate.expandUrlTemplate)(
225
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/whatIf{?api%2Dversion}",
226
+ {
227
+ subscriptionId: context.subscriptionId,
228
+ resourceGroupName,
229
+ deploymentName,
230
+ "api%2Dversion": context.apiVersion ?? "2025-04-01"
231
+ },
232
+ {
233
+ allowReserved: options?.requestOptions?.skipUrlEncoding
234
+ }
235
+ );
236
+ return context.path(path).post({
237
+ ...(0, import_core_client.operationOptionsToRequestParameters)(options),
238
+ contentType: "application/json",
239
+ headers: { accept: "application/json", ...options.requestOptions?.headers },
240
+ body: (0, import_models.deploymentWhatIfSerializer)(parameters)
241
+ });
242
+ }
243
+ async function _whatIfDeserialize(result) {
244
+ const expectedStatuses = ["200", "202", "201"];
245
+ if (!expectedStatuses.includes(result.status)) {
246
+ const error = (0, import_core_client.createRestError)(result);
247
+ error.details = (0, import_models.cloudErrorDeserializer)(result.body);
248
+ throw error;
249
+ }
250
+ return (0, import_models.whatIfOperationResultDeserializer)(result.body);
251
+ }
252
+ function whatIf(context, resourceGroupName, deploymentName, parameters, options = { requestOptions: {} }) {
253
+ return (0, import_pollingHelpers.getLongRunningPoller)(context, _whatIfDeserialize, ["200", "202", "201"], {
254
+ updateIntervalInMs: options?.updateIntervalInMs,
255
+ abortSignal: options?.abortSignal,
256
+ getInitialResponse: () => _whatIfSend(context, resourceGroupName, deploymentName, parameters, options),
257
+ resourceLocationConfig: "location",
258
+ apiVersion: context.apiVersion ?? "2025-04-01"
259
+ });
260
+ }
261
+ function _validateSend(context, resourceGroupName, deploymentName, parameters, options = { requestOptions: {} }) {
262
+ const path = (0, import_urlTemplate.expandUrlTemplate)(
263
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/validate{?api%2Dversion}",
264
+ {
265
+ subscriptionId: context.subscriptionId,
266
+ resourceGroupName,
267
+ deploymentName,
268
+ "api%2Dversion": context.apiVersion ?? "2025-04-01"
269
+ },
270
+ {
271
+ allowReserved: options?.requestOptions?.skipUrlEncoding
272
+ }
273
+ );
274
+ return context.path(path).post({
275
+ ...(0, import_core_client.operationOptionsToRequestParameters)(options),
276
+ contentType: "application/json",
277
+ headers: { accept: "application/json", ...options.requestOptions?.headers },
278
+ body: (0, import_models.deploymentSerializer)(parameters)
279
+ });
280
+ }
281
+ async function _validateDeserialize(result) {
282
+ const expectedStatuses = ["200", "202", "400", "201"];
283
+ if (!expectedStatuses.includes(result.status)) {
284
+ const error = (0, import_core_client.createRestError)(result);
285
+ error.details = (0, import_models.cloudErrorDeserializer)(result.body);
286
+ throw error;
287
+ }
288
+ return (0, import_models.deploymentValidateResultDeserializer)(result.body);
289
+ }
290
+ function validate(context, resourceGroupName, deploymentName, parameters, options = { requestOptions: {} }) {
291
+ return (0, import_pollingHelpers.getLongRunningPoller)(context, _validateDeserialize, ["200", "202", "400", "201"], {
292
+ updateIntervalInMs: options?.updateIntervalInMs,
293
+ abortSignal: options?.abortSignal,
294
+ getInitialResponse: () => _validateSend(context, resourceGroupName, deploymentName, parameters, options),
295
+ resourceLocationConfig: "location",
296
+ apiVersion: context.apiVersion ?? "2025-04-01"
297
+ });
298
+ }
299
+ function _cancelSend(context, resourceGroupName, deploymentName, options = { requestOptions: {} }) {
300
+ const path = (0, import_urlTemplate.expandUrlTemplate)(
301
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/cancel{?api%2Dversion}",
302
+ {
303
+ subscriptionId: context.subscriptionId,
304
+ resourceGroupName,
305
+ deploymentName,
306
+ "api%2Dversion": context.apiVersion ?? "2025-04-01"
307
+ },
308
+ {
309
+ allowReserved: options?.requestOptions?.skipUrlEncoding
310
+ }
311
+ );
312
+ return context.path(path).post({ ...(0, import_core_client.operationOptionsToRequestParameters)(options) });
313
+ }
314
+ async function _cancelDeserialize(result) {
315
+ const expectedStatuses = ["204"];
316
+ if (!expectedStatuses.includes(result.status)) {
317
+ const error = (0, import_core_client.createRestError)(result);
318
+ error.details = (0, import_models.cloudErrorDeserializer)(result.body);
319
+ throw error;
320
+ }
321
+ return;
322
+ }
323
+ async function cancel(context, resourceGroupName, deploymentName, options = { requestOptions: {} }) {
324
+ const result = await _cancelSend(context, resourceGroupName, deploymentName, options);
325
+ return _cancelDeserialize(result);
326
+ }
327
+ function _listByResourceGroupSend(context, resourceGroupName, options = { requestOptions: {} }) {
328
+ const path = (0, import_urlTemplate.expandUrlTemplate)(
329
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments{?api%2Dversion,%24filter,%24top}",
330
+ {
331
+ subscriptionId: context.subscriptionId,
332
+ resourceGroupName,
333
+ "api%2Dversion": context.apiVersion ?? "2025-04-01",
334
+ "%24filter": options?.filter,
335
+ "%24top": options?.top
336
+ },
337
+ {
338
+ allowReserved: options?.requestOptions?.skipUrlEncoding
339
+ }
340
+ );
341
+ return context.path(path).get({
342
+ ...(0, import_core_client.operationOptionsToRequestParameters)(options),
343
+ headers: { accept: "application/json", ...options.requestOptions?.headers }
344
+ });
345
+ }
346
+ async function _listByResourceGroupDeserialize(result) {
347
+ const expectedStatuses = ["200"];
348
+ if (!expectedStatuses.includes(result.status)) {
349
+ const error = (0, import_core_client.createRestError)(result);
350
+ error.details = (0, import_models.cloudErrorDeserializer)(result.body);
351
+ throw error;
352
+ }
353
+ return (0, import_models._deploymentListResultDeserializer)(result.body);
354
+ }
355
+ function listByResourceGroup(context, resourceGroupName, options = { requestOptions: {} }) {
356
+ return (0, import_pagingHelpers.buildPagedAsyncIterator)(
357
+ context,
358
+ () => _listByResourceGroupSend(context, resourceGroupName, options),
359
+ _listByResourceGroupDeserialize,
360
+ ["200"],
361
+ { itemName: "value", nextLinkName: "nextLink", apiVersion: context.apiVersion ?? "2025-04-01" }
362
+ );
363
+ }
364
+ function _$deleteSend(context, resourceGroupName, deploymentName, options = { requestOptions: {} }) {
365
+ const path = (0, import_urlTemplate.expandUrlTemplate)(
366
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}{?api%2Dversion}",
367
+ {
368
+ subscriptionId: context.subscriptionId,
369
+ resourceGroupName,
370
+ deploymentName,
371
+ "api%2Dversion": context.apiVersion ?? "2025-04-01"
372
+ },
373
+ {
374
+ allowReserved: options?.requestOptions?.skipUrlEncoding
375
+ }
376
+ );
377
+ return context.path(path).delete({ ...(0, import_core_client.operationOptionsToRequestParameters)(options) });
378
+ }
379
+ async function _$deleteDeserialize(result) {
380
+ const expectedStatuses = ["202", "204", "200"];
381
+ if (!expectedStatuses.includes(result.status)) {
382
+ const error = (0, import_core_client.createRestError)(result);
383
+ error.details = (0, import_models.cloudErrorDeserializer)(result.body);
384
+ throw error;
385
+ }
386
+ return;
387
+ }
388
+ function $delete(context, resourceGroupName, deploymentName, options = { requestOptions: {} }) {
389
+ return (0, import_pollingHelpers.getLongRunningPoller)(context, _$deleteDeserialize, ["202", "204", "200"], {
390
+ updateIntervalInMs: options?.updateIntervalInMs,
391
+ abortSignal: options?.abortSignal,
392
+ getInitialResponse: () => _$deleteSend(context, resourceGroupName, deploymentName, options),
393
+ resourceLocationConfig: "location",
394
+ apiVersion: context.apiVersion ?? "2025-04-01"
395
+ });
396
+ }
397
+ function _createOrUpdateSend(context, resourceGroupName, deploymentName, parameters, options = { requestOptions: {} }) {
398
+ const path = (0, import_urlTemplate.expandUrlTemplate)(
399
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}{?api%2Dversion}",
400
+ {
401
+ subscriptionId: context.subscriptionId,
402
+ resourceGroupName,
403
+ deploymentName,
404
+ "api%2Dversion": context.apiVersion ?? "2025-04-01"
405
+ },
406
+ {
407
+ allowReserved: options?.requestOptions?.skipUrlEncoding
408
+ }
409
+ );
410
+ return context.path(path).put({
411
+ ...(0, import_core_client.operationOptionsToRequestParameters)(options),
412
+ contentType: "application/json",
413
+ headers: { accept: "application/json", ...options.requestOptions?.headers },
414
+ body: (0, import_models.deploymentSerializer)(parameters)
415
+ });
416
+ }
417
+ async function _createOrUpdateDeserialize(result) {
418
+ const expectedStatuses = ["200", "201", "202"];
419
+ if (!expectedStatuses.includes(result.status)) {
420
+ const error = (0, import_core_client.createRestError)(result);
421
+ error.details = (0, import_models.cloudErrorDeserializer)(result.body);
422
+ throw error;
423
+ }
424
+ return (0, import_models.deploymentExtendedDeserializer)(result.body);
425
+ }
426
+ function createOrUpdate(context, resourceGroupName, deploymentName, parameters, options = { requestOptions: {} }) {
427
+ return (0, import_pollingHelpers.getLongRunningPoller)(context, _createOrUpdateDeserialize, ["200", "201", "202"], {
428
+ updateIntervalInMs: options?.updateIntervalInMs,
429
+ abortSignal: options?.abortSignal,
430
+ getInitialResponse: () => _createOrUpdateSend(context, resourceGroupName, deploymentName, parameters, options),
431
+ resourceLocationConfig: "location",
432
+ apiVersion: context.apiVersion ?? "2025-04-01"
433
+ });
434
+ }
435
+ function _checkExistenceSend(context, resourceGroupName, deploymentName, options = { requestOptions: {} }) {
436
+ const path = (0, import_urlTemplate.expandUrlTemplate)(
437
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}{?api%2Dversion}",
438
+ {
439
+ subscriptionId: context.subscriptionId,
440
+ resourceGroupName,
441
+ deploymentName,
442
+ "api%2Dversion": context.apiVersion ?? "2025-04-01"
443
+ },
444
+ {
445
+ allowReserved: options?.requestOptions?.skipUrlEncoding
446
+ }
447
+ );
448
+ return context.path(path).head({ ...(0, import_core_client.operationOptionsToRequestParameters)(options) });
449
+ }
450
+ async function _checkExistenceDeserialize(result) {
451
+ const expectedStatuses = ["204", "404"];
452
+ if (!expectedStatuses.includes(result.status)) {
453
+ const error = (0, import_core_client.createRestError)(result);
454
+ error.details = (0, import_models.cloudErrorDeserializer)(result.body);
455
+ throw error;
456
+ }
457
+ return { body: result.status.startsWith("2") };
458
+ }
459
+ async function checkExistence(context, resourceGroupName, deploymentName, options = { requestOptions: {} }) {
460
+ const result = await _checkExistenceSend(context, resourceGroupName, deploymentName, options);
461
+ return _checkExistenceDeserialize(result);
462
+ }
463
+ function _getSend(context, resourceGroupName, deploymentName, options = { requestOptions: {} }) {
464
+ const path = (0, import_urlTemplate.expandUrlTemplate)(
465
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}{?api%2Dversion}",
466
+ {
467
+ subscriptionId: context.subscriptionId,
468
+ resourceGroupName,
469
+ deploymentName,
470
+ "api%2Dversion": context.apiVersion ?? "2025-04-01"
471
+ },
472
+ {
473
+ allowReserved: options?.requestOptions?.skipUrlEncoding
474
+ }
475
+ );
476
+ return context.path(path).get({
477
+ ...(0, import_core_client.operationOptionsToRequestParameters)(options),
478
+ headers: { accept: "application/json", ...options.requestOptions?.headers }
479
+ });
480
+ }
481
+ async function _getDeserialize(result) {
482
+ const expectedStatuses = ["200"];
483
+ if (!expectedStatuses.includes(result.status)) {
484
+ const error = (0, import_core_client.createRestError)(result);
485
+ error.details = (0, import_models.cloudErrorDeserializer)(result.body);
486
+ throw error;
487
+ }
488
+ return (0, import_models.deploymentExtendedDeserializer)(result.body);
489
+ }
490
+ async function get(context, resourceGroupName, deploymentName, options = { requestOptions: {} }) {
491
+ const result = await _getSend(context, resourceGroupName, deploymentName, options);
492
+ return _getDeserialize(result);
493
+ }
494
+ function _exportTemplateAtSubscriptionScopeSend(context, deploymentName, options = { requestOptions: {} }) {
495
+ const path = (0, import_urlTemplate.expandUrlTemplate)(
496
+ "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/exportTemplate{?api%2Dversion}",
497
+ {
498
+ subscriptionId: context.subscriptionId,
499
+ deploymentName,
500
+ "api%2Dversion": context.apiVersion ?? "2025-04-01"
501
+ },
502
+ {
503
+ allowReserved: options?.requestOptions?.skipUrlEncoding
504
+ }
505
+ );
506
+ return context.path(path).post({
507
+ ...(0, import_core_client.operationOptionsToRequestParameters)(options),
508
+ headers: { accept: "application/json", ...options.requestOptions?.headers }
509
+ });
510
+ }
511
+ async function _exportTemplateAtSubscriptionScopeDeserialize(result) {
512
+ const expectedStatuses = ["200"];
513
+ if (!expectedStatuses.includes(result.status)) {
514
+ const error = (0, import_core_client.createRestError)(result);
515
+ error.details = (0, import_models.cloudErrorDeserializer)(result.body);
516
+ throw error;
517
+ }
518
+ return (0, import_models.deploymentExportResultDeserializer)(result.body);
519
+ }
520
+ async function exportTemplateAtSubscriptionScope(context, deploymentName, options = { requestOptions: {} }) {
521
+ const result = await _exportTemplateAtSubscriptionScopeSend(context, deploymentName, options);
522
+ return _exportTemplateAtSubscriptionScopeDeserialize(result);
523
+ }
524
+ function _whatIfAtSubscriptionScopeSend(context, deploymentName, parameters, options = { requestOptions: {} }) {
525
+ const path = (0, import_urlTemplate.expandUrlTemplate)(
526
+ "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/whatIf{?api%2Dversion}",
527
+ {
528
+ subscriptionId: context.subscriptionId,
529
+ deploymentName,
530
+ "api%2Dversion": context.apiVersion ?? "2025-04-01"
531
+ },
532
+ {
533
+ allowReserved: options?.requestOptions?.skipUrlEncoding
534
+ }
535
+ );
536
+ return context.path(path).post({
537
+ ...(0, import_core_client.operationOptionsToRequestParameters)(options),
538
+ contentType: "application/json",
539
+ headers: { accept: "application/json", ...options.requestOptions?.headers },
540
+ body: (0, import_models.deploymentWhatIfSerializer)(parameters)
541
+ });
542
+ }
543
+ async function _whatIfAtSubscriptionScopeDeserialize(result) {
544
+ const expectedStatuses = ["200", "202", "201"];
545
+ if (!expectedStatuses.includes(result.status)) {
546
+ const error = (0, import_core_client.createRestError)(result);
547
+ error.details = (0, import_models.cloudErrorDeserializer)(result.body);
548
+ throw error;
549
+ }
550
+ return (0, import_models.whatIfOperationResultDeserializer)(result.body);
551
+ }
552
+ function whatIfAtSubscriptionScope(context, deploymentName, parameters, options = { requestOptions: {} }) {
553
+ return (0, import_pollingHelpers.getLongRunningPoller)(
554
+ context,
555
+ _whatIfAtSubscriptionScopeDeserialize,
556
+ ["200", "202", "201"],
557
+ {
558
+ updateIntervalInMs: options?.updateIntervalInMs,
559
+ abortSignal: options?.abortSignal,
560
+ getInitialResponse: () => _whatIfAtSubscriptionScopeSend(context, deploymentName, parameters, options),
561
+ resourceLocationConfig: "location",
562
+ apiVersion: context.apiVersion ?? "2025-04-01"
563
+ }
564
+ );
565
+ }
566
+ function _validateAtSubscriptionScopeSend(context, deploymentName, parameters, options = { requestOptions: {} }) {
567
+ const path = (0, import_urlTemplate.expandUrlTemplate)(
568
+ "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/validate{?api%2Dversion}",
569
+ {
570
+ subscriptionId: context.subscriptionId,
571
+ deploymentName,
572
+ "api%2Dversion": context.apiVersion ?? "2025-04-01"
573
+ },
574
+ {
575
+ allowReserved: options?.requestOptions?.skipUrlEncoding
576
+ }
577
+ );
578
+ return context.path(path).post({
579
+ ...(0, import_core_client.operationOptionsToRequestParameters)(options),
580
+ contentType: "application/json",
581
+ headers: { accept: "application/json", ...options.requestOptions?.headers },
582
+ body: (0, import_models.deploymentSerializer)(parameters)
583
+ });
584
+ }
585
+ async function _validateAtSubscriptionScopeDeserialize(result) {
586
+ const expectedStatuses = ["200", "202", "400", "201"];
587
+ if (!expectedStatuses.includes(result.status)) {
588
+ const error = (0, import_core_client.createRestError)(result);
589
+ error.details = (0, import_models.cloudErrorDeserializer)(result.body);
590
+ throw error;
591
+ }
592
+ return (0, import_models.deploymentValidateResultDeserializer)(result.body);
593
+ }
594
+ function validateAtSubscriptionScope(context, deploymentName, parameters, options = { requestOptions: {} }) {
595
+ return (0, import_pollingHelpers.getLongRunningPoller)(
596
+ context,
597
+ _validateAtSubscriptionScopeDeserialize,
598
+ ["200", "202", "400", "201"],
599
+ {
600
+ updateIntervalInMs: options?.updateIntervalInMs,
601
+ abortSignal: options?.abortSignal,
602
+ getInitialResponse: () => _validateAtSubscriptionScopeSend(context, deploymentName, parameters, options),
603
+ resourceLocationConfig: "location",
604
+ apiVersion: context.apiVersion ?? "2025-04-01"
605
+ }
606
+ );
607
+ }
608
+ function _cancelAtSubscriptionScopeSend(context, deploymentName, options = { requestOptions: {} }) {
609
+ const path = (0, import_urlTemplate.expandUrlTemplate)(
610
+ "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/cancel{?api%2Dversion}",
611
+ {
612
+ subscriptionId: context.subscriptionId,
613
+ deploymentName,
614
+ "api%2Dversion": context.apiVersion ?? "2025-04-01"
615
+ },
616
+ {
617
+ allowReserved: options?.requestOptions?.skipUrlEncoding
618
+ }
619
+ );
620
+ return context.path(path).post({ ...(0, import_core_client.operationOptionsToRequestParameters)(options) });
621
+ }
622
+ async function _cancelAtSubscriptionScopeDeserialize(result) {
623
+ const expectedStatuses = ["204"];
624
+ if (!expectedStatuses.includes(result.status)) {
625
+ const error = (0, import_core_client.createRestError)(result);
626
+ error.details = (0, import_models.cloudErrorDeserializer)(result.body);
627
+ throw error;
628
+ }
629
+ return;
630
+ }
631
+ async function cancelAtSubscriptionScope(context, deploymentName, options = { requestOptions: {} }) {
632
+ const result = await _cancelAtSubscriptionScopeSend(context, deploymentName, options);
633
+ return _cancelAtSubscriptionScopeDeserialize(result);
634
+ }
635
+ function _listAtSubscriptionScopeSend(context, options = { requestOptions: {} }) {
636
+ const path = (0, import_urlTemplate.expandUrlTemplate)(
637
+ "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments{?api%2Dversion,%24filter,%24top}",
638
+ {
639
+ subscriptionId: context.subscriptionId,
640
+ "api%2Dversion": context.apiVersion ?? "2025-04-01",
641
+ "%24filter": options?.filter,
642
+ "%24top": options?.top
643
+ },
644
+ {
645
+ allowReserved: options?.requestOptions?.skipUrlEncoding
646
+ }
647
+ );
648
+ return context.path(path).get({
649
+ ...(0, import_core_client.operationOptionsToRequestParameters)(options),
650
+ headers: { accept: "application/json", ...options.requestOptions?.headers }
651
+ });
652
+ }
653
+ async function _listAtSubscriptionScopeDeserialize(result) {
654
+ const expectedStatuses = ["200"];
655
+ if (!expectedStatuses.includes(result.status)) {
656
+ const error = (0, import_core_client.createRestError)(result);
657
+ error.details = (0, import_models.cloudErrorDeserializer)(result.body);
658
+ throw error;
659
+ }
660
+ return (0, import_models._deploymentListResultDeserializer)(result.body);
661
+ }
662
+ function listAtSubscriptionScope(context, options = { requestOptions: {} }) {
663
+ return (0, import_pagingHelpers.buildPagedAsyncIterator)(
664
+ context,
665
+ () => _listAtSubscriptionScopeSend(context, options),
666
+ _listAtSubscriptionScopeDeserialize,
667
+ ["200"],
668
+ { itemName: "value", nextLinkName: "nextLink", apiVersion: context.apiVersion ?? "2025-04-01" }
669
+ );
670
+ }
671
+ function _deleteAtSubscriptionScopeSend(context, deploymentName, options = { requestOptions: {} }) {
672
+ const path = (0, import_urlTemplate.expandUrlTemplate)(
673
+ "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}{?api%2Dversion}",
674
+ {
675
+ subscriptionId: context.subscriptionId,
676
+ deploymentName,
677
+ "api%2Dversion": context.apiVersion ?? "2025-04-01"
678
+ },
679
+ {
680
+ allowReserved: options?.requestOptions?.skipUrlEncoding
681
+ }
682
+ );
683
+ return context.path(path).delete({ ...(0, import_core_client.operationOptionsToRequestParameters)(options) });
684
+ }
685
+ async function _deleteAtSubscriptionScopeDeserialize(result) {
686
+ const expectedStatuses = ["202", "204", "200"];
687
+ if (!expectedStatuses.includes(result.status)) {
688
+ const error = (0, import_core_client.createRestError)(result);
689
+ error.details = (0, import_models.cloudErrorDeserializer)(result.body);
690
+ throw error;
691
+ }
692
+ return;
693
+ }
694
+ function deleteAtSubscriptionScope(context, deploymentName, options = { requestOptions: {} }) {
695
+ return (0, import_pollingHelpers.getLongRunningPoller)(
696
+ context,
697
+ _deleteAtSubscriptionScopeDeserialize,
698
+ ["202", "204", "200"],
699
+ {
700
+ updateIntervalInMs: options?.updateIntervalInMs,
701
+ abortSignal: options?.abortSignal,
702
+ getInitialResponse: () => _deleteAtSubscriptionScopeSend(context, deploymentName, options),
703
+ resourceLocationConfig: "location",
704
+ apiVersion: context.apiVersion ?? "2025-04-01"
705
+ }
706
+ );
707
+ }
708
+ function _createOrUpdateAtSubscriptionScopeSend(context, deploymentName, parameters, options = { requestOptions: {} }) {
709
+ const path = (0, import_urlTemplate.expandUrlTemplate)(
710
+ "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}{?api%2Dversion}",
711
+ {
712
+ subscriptionId: context.subscriptionId,
713
+ deploymentName,
714
+ "api%2Dversion": context.apiVersion ?? "2025-04-01"
715
+ },
716
+ {
717
+ allowReserved: options?.requestOptions?.skipUrlEncoding
718
+ }
719
+ );
720
+ return context.path(path).put({
721
+ ...(0, import_core_client.operationOptionsToRequestParameters)(options),
722
+ contentType: "application/json",
723
+ headers: { accept: "application/json", ...options.requestOptions?.headers },
724
+ body: (0, import_models.deploymentSerializer)(parameters)
725
+ });
726
+ }
727
+ async function _createOrUpdateAtSubscriptionScopeDeserialize(result) {
728
+ const expectedStatuses = ["200", "201", "202"];
729
+ if (!expectedStatuses.includes(result.status)) {
730
+ const error = (0, import_core_client.createRestError)(result);
731
+ error.details = (0, import_models.cloudErrorDeserializer)(result.body);
732
+ throw error;
733
+ }
734
+ return (0, import_models.deploymentExtendedDeserializer)(result.body);
735
+ }
736
+ function createOrUpdateAtSubscriptionScope(context, deploymentName, parameters, options = { requestOptions: {} }) {
737
+ return (0, import_pollingHelpers.getLongRunningPoller)(
738
+ context,
739
+ _createOrUpdateAtSubscriptionScopeDeserialize,
740
+ ["200", "201", "202"],
741
+ {
742
+ updateIntervalInMs: options?.updateIntervalInMs,
743
+ abortSignal: options?.abortSignal,
744
+ getInitialResponse: () => _createOrUpdateAtSubscriptionScopeSend(context, deploymentName, parameters, options),
745
+ resourceLocationConfig: "location",
746
+ apiVersion: context.apiVersion ?? "2025-04-01"
747
+ }
748
+ );
749
+ }
750
+ function _checkExistenceAtSubscriptionScopeSend(context, deploymentName, options = { requestOptions: {} }) {
751
+ const path = (0, import_urlTemplate.expandUrlTemplate)(
752
+ "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}{?api%2Dversion}",
753
+ {
754
+ subscriptionId: context.subscriptionId,
755
+ deploymentName,
756
+ "api%2Dversion": context.apiVersion ?? "2025-04-01"
757
+ },
758
+ {
759
+ allowReserved: options?.requestOptions?.skipUrlEncoding
760
+ }
761
+ );
762
+ return context.path(path).head({ ...(0, import_core_client.operationOptionsToRequestParameters)(options) });
763
+ }
764
+ async function _checkExistenceAtSubscriptionScopeDeserialize(result) {
765
+ const expectedStatuses = ["204", "404"];
766
+ if (!expectedStatuses.includes(result.status)) {
767
+ const error = (0, import_core_client.createRestError)(result);
768
+ error.details = (0, import_models.cloudErrorDeserializer)(result.body);
769
+ throw error;
770
+ }
771
+ return { body: result.status.startsWith("2") };
772
+ }
773
+ async function checkExistenceAtSubscriptionScope(context, deploymentName, options = { requestOptions: {} }) {
774
+ const result = await _checkExistenceAtSubscriptionScopeSend(context, deploymentName, options);
775
+ return _checkExistenceAtSubscriptionScopeDeserialize(result);
776
+ }
777
+ function _getAtSubscriptionScopeSend(context, deploymentName, options = { requestOptions: {} }) {
778
+ const path = (0, import_urlTemplate.expandUrlTemplate)(
779
+ "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}{?api%2Dversion}",
780
+ {
781
+ subscriptionId: context.subscriptionId,
782
+ deploymentName,
783
+ "api%2Dversion": context.apiVersion ?? "2025-04-01"
784
+ },
785
+ {
786
+ allowReserved: options?.requestOptions?.skipUrlEncoding
787
+ }
788
+ );
789
+ return context.path(path).get({
790
+ ...(0, import_core_client.operationOptionsToRequestParameters)(options),
791
+ headers: { accept: "application/json", ...options.requestOptions?.headers }
792
+ });
793
+ }
794
+ async function _getAtSubscriptionScopeDeserialize(result) {
795
+ const expectedStatuses = ["200"];
796
+ if (!expectedStatuses.includes(result.status)) {
797
+ const error = (0, import_core_client.createRestError)(result);
798
+ error.details = (0, import_models.cloudErrorDeserializer)(result.body);
799
+ throw error;
800
+ }
801
+ return (0, import_models.deploymentExtendedDeserializer)(result.body);
802
+ }
803
+ async function getAtSubscriptionScope(context, deploymentName, options = { requestOptions: {} }) {
804
+ const result = await _getAtSubscriptionScopeSend(context, deploymentName, options);
805
+ return _getAtSubscriptionScopeDeserialize(result);
806
+ }
807
+ function _exportTemplateAtManagementGroupScopeSend(context, groupId, deploymentName, options = { requestOptions: {} }) {
808
+ const path = (0, import_urlTemplate.expandUrlTemplate)(
809
+ "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/exportTemplate{?api%2Dversion}",
810
+ {
811
+ groupId,
812
+ deploymentName,
813
+ "api%2Dversion": context.apiVersion ?? "2025-04-01"
814
+ },
815
+ {
816
+ allowReserved: options?.requestOptions?.skipUrlEncoding
817
+ }
818
+ );
819
+ return context.path(path).post({
820
+ ...(0, import_core_client.operationOptionsToRequestParameters)(options),
821
+ headers: { accept: "application/json", ...options.requestOptions?.headers }
822
+ });
823
+ }
824
+ async function _exportTemplateAtManagementGroupScopeDeserialize(result) {
825
+ const expectedStatuses = ["200"];
826
+ if (!expectedStatuses.includes(result.status)) {
827
+ const error = (0, import_core_client.createRestError)(result);
828
+ error.details = (0, import_models.cloudErrorDeserializer)(result.body);
829
+ throw error;
830
+ }
831
+ return (0, import_models.deploymentExportResultDeserializer)(result.body);
832
+ }
833
+ async function exportTemplateAtManagementGroupScope(context, groupId, deploymentName, options = { requestOptions: {} }) {
834
+ const result = await _exportTemplateAtManagementGroupScopeSend(
835
+ context,
836
+ groupId,
837
+ deploymentName,
838
+ options
839
+ );
840
+ return _exportTemplateAtManagementGroupScopeDeserialize(result);
841
+ }
842
+ function _whatIfAtManagementGroupScopeSend(context, groupId, deploymentName, parameters, options = { requestOptions: {} }) {
843
+ const path = (0, import_urlTemplate.expandUrlTemplate)(
844
+ "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/whatIf{?api%2Dversion}",
845
+ {
846
+ groupId,
847
+ deploymentName,
848
+ "api%2Dversion": context.apiVersion ?? "2025-04-01"
849
+ },
850
+ {
851
+ allowReserved: options?.requestOptions?.skipUrlEncoding
852
+ }
853
+ );
854
+ return context.path(path).post({
855
+ ...(0, import_core_client.operationOptionsToRequestParameters)(options),
856
+ contentType: "application/json",
857
+ headers: { accept: "application/json", ...options.requestOptions?.headers },
858
+ body: (0, import_models.scopedDeploymentWhatIfSerializer)(parameters)
859
+ });
860
+ }
861
+ async function _whatIfAtManagementGroupScopeDeserialize(result) {
862
+ const expectedStatuses = ["200", "202", "201"];
863
+ if (!expectedStatuses.includes(result.status)) {
864
+ const error = (0, import_core_client.createRestError)(result);
865
+ error.details = (0, import_models.cloudErrorDeserializer)(result.body);
866
+ throw error;
867
+ }
868
+ return (0, import_models.whatIfOperationResultDeserializer)(result.body);
869
+ }
870
+ function whatIfAtManagementGroupScope(context, groupId, deploymentName, parameters, options = { requestOptions: {} }) {
871
+ return (0, import_pollingHelpers.getLongRunningPoller)(
872
+ context,
873
+ _whatIfAtManagementGroupScopeDeserialize,
874
+ ["200", "202", "201"],
875
+ {
876
+ updateIntervalInMs: options?.updateIntervalInMs,
877
+ abortSignal: options?.abortSignal,
878
+ getInitialResponse: () => _whatIfAtManagementGroupScopeSend(context, groupId, deploymentName, parameters, options),
879
+ resourceLocationConfig: "location",
880
+ apiVersion: context.apiVersion ?? "2025-04-01"
881
+ }
882
+ );
883
+ }
884
+ function _validateAtManagementGroupScopeSend(context, groupId, deploymentName, parameters, options = { requestOptions: {} }) {
885
+ const path = (0, import_urlTemplate.expandUrlTemplate)(
886
+ "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/validate{?api%2Dversion}",
887
+ {
888
+ groupId,
889
+ deploymentName,
890
+ "api%2Dversion": context.apiVersion ?? "2025-04-01"
891
+ },
892
+ {
893
+ allowReserved: options?.requestOptions?.skipUrlEncoding
894
+ }
895
+ );
896
+ return context.path(path).post({
897
+ ...(0, import_core_client.operationOptionsToRequestParameters)(options),
898
+ contentType: "application/json",
899
+ headers: { accept: "application/json", ...options.requestOptions?.headers },
900
+ body: (0, import_models.scopedDeploymentSerializer)(parameters)
901
+ });
902
+ }
903
+ async function _validateAtManagementGroupScopeDeserialize(result) {
904
+ const expectedStatuses = ["200", "202", "400", "201"];
905
+ if (!expectedStatuses.includes(result.status)) {
906
+ const error = (0, import_core_client.createRestError)(result);
907
+ error.details = (0, import_models.cloudErrorDeserializer)(result.body);
908
+ throw error;
909
+ }
910
+ return (0, import_models.deploymentValidateResultDeserializer)(result.body);
911
+ }
912
+ function validateAtManagementGroupScope(context, groupId, deploymentName, parameters, options = { requestOptions: {} }) {
913
+ return (0, import_pollingHelpers.getLongRunningPoller)(
914
+ context,
915
+ _validateAtManagementGroupScopeDeserialize,
916
+ ["200", "202", "400", "201"],
917
+ {
918
+ updateIntervalInMs: options?.updateIntervalInMs,
919
+ abortSignal: options?.abortSignal,
920
+ getInitialResponse: () => _validateAtManagementGroupScopeSend(context, groupId, deploymentName, parameters, options),
921
+ resourceLocationConfig: "location",
922
+ apiVersion: context.apiVersion ?? "2025-04-01"
923
+ }
924
+ );
925
+ }
926
+ function _cancelAtManagementGroupScopeSend(context, groupId, deploymentName, options = { requestOptions: {} }) {
927
+ const path = (0, import_urlTemplate.expandUrlTemplate)(
928
+ "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/cancel{?api%2Dversion}",
929
+ {
930
+ groupId,
931
+ deploymentName,
932
+ "api%2Dversion": context.apiVersion ?? "2025-04-01"
933
+ },
934
+ {
935
+ allowReserved: options?.requestOptions?.skipUrlEncoding
936
+ }
937
+ );
938
+ return context.path(path).post({ ...(0, import_core_client.operationOptionsToRequestParameters)(options) });
939
+ }
940
+ async function _cancelAtManagementGroupScopeDeserialize(result) {
941
+ const expectedStatuses = ["204"];
942
+ if (!expectedStatuses.includes(result.status)) {
943
+ const error = (0, import_core_client.createRestError)(result);
944
+ error.details = (0, import_models.cloudErrorDeserializer)(result.body);
945
+ throw error;
946
+ }
947
+ return;
948
+ }
949
+ async function cancelAtManagementGroupScope(context, groupId, deploymentName, options = { requestOptions: {} }) {
950
+ const result = await _cancelAtManagementGroupScopeSend(context, groupId, deploymentName, options);
951
+ return _cancelAtManagementGroupScopeDeserialize(result);
952
+ }
953
+ function _listAtManagementGroupScopeSend(context, groupId, options = { requestOptions: {} }) {
954
+ const path = (0, import_urlTemplate.expandUrlTemplate)(
955
+ "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments{?api%2Dversion,%24filter,%24top}",
956
+ {
957
+ groupId,
958
+ "api%2Dversion": context.apiVersion ?? "2025-04-01",
959
+ "%24filter": options?.filter,
960
+ "%24top": options?.top
961
+ },
962
+ {
963
+ allowReserved: options?.requestOptions?.skipUrlEncoding
964
+ }
965
+ );
966
+ return context.path(path).get({
967
+ ...(0, import_core_client.operationOptionsToRequestParameters)(options),
968
+ headers: { accept: "application/json", ...options.requestOptions?.headers }
969
+ });
970
+ }
971
+ async function _listAtManagementGroupScopeDeserialize(result) {
972
+ const expectedStatuses = ["200"];
973
+ if (!expectedStatuses.includes(result.status)) {
974
+ const error = (0, import_core_client.createRestError)(result);
975
+ error.details = (0, import_models.cloudErrorDeserializer)(result.body);
976
+ throw error;
977
+ }
978
+ return (0, import_models._deploymentListResultDeserializer)(result.body);
979
+ }
980
+ function listAtManagementGroupScope(context, groupId, options = { requestOptions: {} }) {
981
+ return (0, import_pagingHelpers.buildPagedAsyncIterator)(
982
+ context,
983
+ () => _listAtManagementGroupScopeSend(context, groupId, options),
984
+ _listAtManagementGroupScopeDeserialize,
985
+ ["200"],
986
+ { itemName: "value", nextLinkName: "nextLink", apiVersion: context.apiVersion ?? "2025-04-01" }
987
+ );
988
+ }
989
+ function _deleteAtManagementGroupScopeSend(context, groupId, deploymentName, options = { requestOptions: {} }) {
990
+ const path = (0, import_urlTemplate.expandUrlTemplate)(
991
+ "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}{?api%2Dversion}",
992
+ {
993
+ groupId,
994
+ deploymentName,
995
+ "api%2Dversion": context.apiVersion ?? "2025-04-01"
996
+ },
997
+ {
998
+ allowReserved: options?.requestOptions?.skipUrlEncoding
999
+ }
1000
+ );
1001
+ return context.path(path).delete({ ...(0, import_core_client.operationOptionsToRequestParameters)(options) });
1002
+ }
1003
+ async function _deleteAtManagementGroupScopeDeserialize(result) {
1004
+ const expectedStatuses = ["202", "204", "200"];
1005
+ if (!expectedStatuses.includes(result.status)) {
1006
+ const error = (0, import_core_client.createRestError)(result);
1007
+ error.details = (0, import_models.cloudErrorDeserializer)(result.body);
1008
+ throw error;
1009
+ }
1010
+ return;
1011
+ }
1012
+ function deleteAtManagementGroupScope(context, groupId, deploymentName, options = { requestOptions: {} }) {
1013
+ return (0, import_pollingHelpers.getLongRunningPoller)(
1014
+ context,
1015
+ _deleteAtManagementGroupScopeDeserialize,
1016
+ ["202", "204", "200"],
1017
+ {
1018
+ updateIntervalInMs: options?.updateIntervalInMs,
1019
+ abortSignal: options?.abortSignal,
1020
+ getInitialResponse: () => _deleteAtManagementGroupScopeSend(context, groupId, deploymentName, options),
1021
+ resourceLocationConfig: "location",
1022
+ apiVersion: context.apiVersion ?? "2025-04-01"
1023
+ }
1024
+ );
1025
+ }
1026
+ function _createOrUpdateAtManagementGroupScopeSend(context, groupId, deploymentName, parameters, options = { requestOptions: {} }) {
1027
+ const path = (0, import_urlTemplate.expandUrlTemplate)(
1028
+ "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}{?api%2Dversion}",
1029
+ {
1030
+ groupId,
1031
+ deploymentName,
1032
+ "api%2Dversion": context.apiVersion ?? "2025-04-01"
1033
+ },
1034
+ {
1035
+ allowReserved: options?.requestOptions?.skipUrlEncoding
1036
+ }
1037
+ );
1038
+ return context.path(path).put({
1039
+ ...(0, import_core_client.operationOptionsToRequestParameters)(options),
1040
+ contentType: "application/json",
1041
+ headers: { accept: "application/json", ...options.requestOptions?.headers },
1042
+ body: (0, import_models.scopedDeploymentSerializer)(parameters)
1043
+ });
1044
+ }
1045
+ async function _createOrUpdateAtManagementGroupScopeDeserialize(result) {
1046
+ const expectedStatuses = ["200", "201", "202"];
1047
+ if (!expectedStatuses.includes(result.status)) {
1048
+ const error = (0, import_core_client.createRestError)(result);
1049
+ error.details = (0, import_models.cloudErrorDeserializer)(result.body);
1050
+ throw error;
1051
+ }
1052
+ return (0, import_models.deploymentExtendedDeserializer)(result.body);
1053
+ }
1054
+ function createOrUpdateAtManagementGroupScope(context, groupId, deploymentName, parameters, options = { requestOptions: {} }) {
1055
+ return (0, import_pollingHelpers.getLongRunningPoller)(
1056
+ context,
1057
+ _createOrUpdateAtManagementGroupScopeDeserialize,
1058
+ ["200", "201", "202"],
1059
+ {
1060
+ updateIntervalInMs: options?.updateIntervalInMs,
1061
+ abortSignal: options?.abortSignal,
1062
+ getInitialResponse: () => _createOrUpdateAtManagementGroupScopeSend(
1063
+ context,
1064
+ groupId,
1065
+ deploymentName,
1066
+ parameters,
1067
+ options
1068
+ ),
1069
+ resourceLocationConfig: "location",
1070
+ apiVersion: context.apiVersion ?? "2025-04-01"
1071
+ }
1072
+ );
1073
+ }
1074
+ function _checkExistenceAtManagementGroupScopeSend(context, groupId, deploymentName, options = { requestOptions: {} }) {
1075
+ const path = (0, import_urlTemplate.expandUrlTemplate)(
1076
+ "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}{?api%2Dversion}",
1077
+ {
1078
+ groupId,
1079
+ deploymentName,
1080
+ "api%2Dversion": context.apiVersion ?? "2025-04-01"
1081
+ },
1082
+ {
1083
+ allowReserved: options?.requestOptions?.skipUrlEncoding
1084
+ }
1085
+ );
1086
+ return context.path(path).head({ ...(0, import_core_client.operationOptionsToRequestParameters)(options) });
1087
+ }
1088
+ async function _checkExistenceAtManagementGroupScopeDeserialize(result) {
1089
+ const expectedStatuses = ["204", "404"];
1090
+ if (!expectedStatuses.includes(result.status)) {
1091
+ const error = (0, import_core_client.createRestError)(result);
1092
+ error.details = (0, import_models.cloudErrorDeserializer)(result.body);
1093
+ throw error;
1094
+ }
1095
+ return { body: result.status.startsWith("2") };
1096
+ }
1097
+ async function checkExistenceAtManagementGroupScope(context, groupId, deploymentName, options = { requestOptions: {} }) {
1098
+ const result = await _checkExistenceAtManagementGroupScopeSend(
1099
+ context,
1100
+ groupId,
1101
+ deploymentName,
1102
+ options
1103
+ );
1104
+ return _checkExistenceAtManagementGroupScopeDeserialize(result);
1105
+ }
1106
+ function _getAtManagementGroupScopeSend(context, groupId, deploymentName, options = { requestOptions: {} }) {
1107
+ const path = (0, import_urlTemplate.expandUrlTemplate)(
1108
+ "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}{?api%2Dversion}",
1109
+ {
1110
+ groupId,
1111
+ deploymentName,
1112
+ "api%2Dversion": context.apiVersion ?? "2025-04-01"
1113
+ },
1114
+ {
1115
+ allowReserved: options?.requestOptions?.skipUrlEncoding
1116
+ }
1117
+ );
1118
+ return context.path(path).get({
1119
+ ...(0, import_core_client.operationOptionsToRequestParameters)(options),
1120
+ headers: { accept: "application/json", ...options.requestOptions?.headers }
1121
+ });
1122
+ }
1123
+ async function _getAtManagementGroupScopeDeserialize(result) {
1124
+ const expectedStatuses = ["200"];
1125
+ if (!expectedStatuses.includes(result.status)) {
1126
+ const error = (0, import_core_client.createRestError)(result);
1127
+ error.details = (0, import_models.cloudErrorDeserializer)(result.body);
1128
+ throw error;
1129
+ }
1130
+ return (0, import_models.deploymentExtendedDeserializer)(result.body);
1131
+ }
1132
+ async function getAtManagementGroupScope(context, groupId, deploymentName, options = { requestOptions: {} }) {
1133
+ const result = await _getAtManagementGroupScopeSend(context, groupId, deploymentName, options);
1134
+ return _getAtManagementGroupScopeDeserialize(result);
1135
+ }
1136
+ function _listAtTenantScopeSend(context, options = { requestOptions: {} }) {
1137
+ const path = (0, import_urlTemplate.expandUrlTemplate)(
1138
+ "/providers/Microsoft.Resources/deployments{?api%2Dversion,%24filter,%24top}",
1139
+ {
1140
+ "api%2Dversion": context.apiVersion ?? "2025-04-01",
1141
+ "%24filter": options?.filter,
1142
+ "%24top": options?.top
1143
+ },
1144
+ {
1145
+ allowReserved: options?.requestOptions?.skipUrlEncoding
1146
+ }
1147
+ );
1148
+ return context.path(path).get({
1149
+ ...(0, import_core_client.operationOptionsToRequestParameters)(options),
1150
+ headers: { accept: "application/json", ...options.requestOptions?.headers }
1151
+ });
1152
+ }
1153
+ async function _listAtTenantScopeDeserialize(result) {
1154
+ const expectedStatuses = ["200"];
1155
+ if (!expectedStatuses.includes(result.status)) {
1156
+ const error = (0, import_core_client.createRestError)(result);
1157
+ error.details = (0, import_models.cloudErrorDeserializer)(result.body);
1158
+ throw error;
1159
+ }
1160
+ return (0, import_models._deploymentListResultDeserializer)(result.body);
1161
+ }
1162
+ function listAtTenantScope(context, options = { requestOptions: {} }) {
1163
+ return (0, import_pagingHelpers.buildPagedAsyncIterator)(
1164
+ context,
1165
+ () => _listAtTenantScopeSend(context, options),
1166
+ _listAtTenantScopeDeserialize,
1167
+ ["200"],
1168
+ { itemName: "value", nextLinkName: "nextLink", apiVersion: context.apiVersion ?? "2025-04-01" }
1169
+ );
1170
+ }
1171
+ function _exportTemplateAtTenantScopeSend(context, deploymentName, options = { requestOptions: {} }) {
1172
+ const path = (0, import_urlTemplate.expandUrlTemplate)(
1173
+ "/providers/Microsoft.Resources/deployments/{deploymentName}/exportTemplate{?api%2Dversion}",
1174
+ {
1175
+ deploymentName,
1176
+ "api%2Dversion": context.apiVersion ?? "2025-04-01"
1177
+ },
1178
+ {
1179
+ allowReserved: options?.requestOptions?.skipUrlEncoding
1180
+ }
1181
+ );
1182
+ return context.path(path).post({
1183
+ ...(0, import_core_client.operationOptionsToRequestParameters)(options),
1184
+ headers: { accept: "application/json", ...options.requestOptions?.headers }
1185
+ });
1186
+ }
1187
+ async function _exportTemplateAtTenantScopeDeserialize(result) {
1188
+ const expectedStatuses = ["200"];
1189
+ if (!expectedStatuses.includes(result.status)) {
1190
+ const error = (0, import_core_client.createRestError)(result);
1191
+ error.details = (0, import_models.cloudErrorDeserializer)(result.body);
1192
+ throw error;
1193
+ }
1194
+ return (0, import_models.deploymentExportResultDeserializer)(result.body);
1195
+ }
1196
+ async function exportTemplateAtTenantScope(context, deploymentName, options = { requestOptions: {} }) {
1197
+ const result = await _exportTemplateAtTenantScopeSend(context, deploymentName, options);
1198
+ return _exportTemplateAtTenantScopeDeserialize(result);
1199
+ }
1200
+ function _whatIfAtTenantScopeSend(context, deploymentName, parameters, options = { requestOptions: {} }) {
1201
+ const path = (0, import_urlTemplate.expandUrlTemplate)(
1202
+ "/providers/Microsoft.Resources/deployments/{deploymentName}/whatIf{?api%2Dversion}",
1203
+ {
1204
+ deploymentName,
1205
+ "api%2Dversion": context.apiVersion ?? "2025-04-01"
1206
+ },
1207
+ {
1208
+ allowReserved: options?.requestOptions?.skipUrlEncoding
1209
+ }
1210
+ );
1211
+ return context.path(path).post({
1212
+ ...(0, import_core_client.operationOptionsToRequestParameters)(options),
1213
+ contentType: "application/json",
1214
+ headers: { accept: "application/json", ...options.requestOptions?.headers },
1215
+ body: (0, import_models.scopedDeploymentWhatIfSerializer)(parameters)
1216
+ });
1217
+ }
1218
+ async function _whatIfAtTenantScopeDeserialize(result) {
1219
+ const expectedStatuses = ["200", "202", "201"];
1220
+ if (!expectedStatuses.includes(result.status)) {
1221
+ const error = (0, import_core_client.createRestError)(result);
1222
+ error.details = (0, import_models.cloudErrorDeserializer)(result.body);
1223
+ throw error;
1224
+ }
1225
+ return (0, import_models.whatIfOperationResultDeserializer)(result.body);
1226
+ }
1227
+ function whatIfAtTenantScope(context, deploymentName, parameters, options = { requestOptions: {} }) {
1228
+ return (0, import_pollingHelpers.getLongRunningPoller)(context, _whatIfAtTenantScopeDeserialize, ["200", "202", "201"], {
1229
+ updateIntervalInMs: options?.updateIntervalInMs,
1230
+ abortSignal: options?.abortSignal,
1231
+ getInitialResponse: () => _whatIfAtTenantScopeSend(context, deploymentName, parameters, options),
1232
+ resourceLocationConfig: "location",
1233
+ apiVersion: context.apiVersion ?? "2025-04-01"
1234
+ });
1235
+ }
1236
+ function _validateAtTenantScopeSend(context, deploymentName, parameters, options = { requestOptions: {} }) {
1237
+ const path = (0, import_urlTemplate.expandUrlTemplate)(
1238
+ "/providers/Microsoft.Resources/deployments/{deploymentName}/validate{?api%2Dversion}",
1239
+ {
1240
+ deploymentName,
1241
+ "api%2Dversion": context.apiVersion ?? "2025-04-01"
1242
+ },
1243
+ {
1244
+ allowReserved: options?.requestOptions?.skipUrlEncoding
1245
+ }
1246
+ );
1247
+ return context.path(path).post({
1248
+ ...(0, import_core_client.operationOptionsToRequestParameters)(options),
1249
+ contentType: "application/json",
1250
+ headers: { accept: "application/json", ...options.requestOptions?.headers },
1251
+ body: (0, import_models.scopedDeploymentSerializer)(parameters)
1252
+ });
1253
+ }
1254
+ async function _validateAtTenantScopeDeserialize(result) {
1255
+ const expectedStatuses = ["200", "202", "400", "201"];
1256
+ if (!expectedStatuses.includes(result.status)) {
1257
+ const error = (0, import_core_client.createRestError)(result);
1258
+ error.details = (0, import_models.cloudErrorDeserializer)(result.body);
1259
+ throw error;
1260
+ }
1261
+ return (0, import_models.deploymentValidateResultDeserializer)(result.body);
1262
+ }
1263
+ function validateAtTenantScope(context, deploymentName, parameters, options = { requestOptions: {} }) {
1264
+ return (0, import_pollingHelpers.getLongRunningPoller)(
1265
+ context,
1266
+ _validateAtTenantScopeDeserialize,
1267
+ ["200", "202", "400", "201"],
1268
+ {
1269
+ updateIntervalInMs: options?.updateIntervalInMs,
1270
+ abortSignal: options?.abortSignal,
1271
+ getInitialResponse: () => _validateAtTenantScopeSend(context, deploymentName, parameters, options),
1272
+ resourceLocationConfig: "location",
1273
+ apiVersion: context.apiVersion ?? "2025-04-01"
1274
+ }
1275
+ );
1276
+ }
1277
+ function _cancelAtTenantScopeSend(context, deploymentName, options = { requestOptions: {} }) {
1278
+ const path = (0, import_urlTemplate.expandUrlTemplate)(
1279
+ "/providers/Microsoft.Resources/deployments/{deploymentName}/cancel{?api%2Dversion}",
1280
+ {
1281
+ deploymentName,
1282
+ "api%2Dversion": context.apiVersion ?? "2025-04-01"
1283
+ },
1284
+ {
1285
+ allowReserved: options?.requestOptions?.skipUrlEncoding
1286
+ }
1287
+ );
1288
+ return context.path(path).post({ ...(0, import_core_client.operationOptionsToRequestParameters)(options) });
1289
+ }
1290
+ async function _cancelAtTenantScopeDeserialize(result) {
1291
+ const expectedStatuses = ["204"];
1292
+ if (!expectedStatuses.includes(result.status)) {
1293
+ const error = (0, import_core_client.createRestError)(result);
1294
+ error.details = (0, import_models.cloudErrorDeserializer)(result.body);
1295
+ throw error;
1296
+ }
1297
+ return;
1298
+ }
1299
+ async function cancelAtTenantScope(context, deploymentName, options = { requestOptions: {} }) {
1300
+ const result = await _cancelAtTenantScopeSend(context, deploymentName, options);
1301
+ return _cancelAtTenantScopeDeserialize(result);
1302
+ }
1303
+ function _deleteAtTenantScopeSend(context, deploymentName, options = { requestOptions: {} }) {
1304
+ const path = (0, import_urlTemplate.expandUrlTemplate)(
1305
+ "/providers/Microsoft.Resources/deployments/{deploymentName}{?api%2Dversion}",
1306
+ {
1307
+ deploymentName,
1308
+ "api%2Dversion": context.apiVersion ?? "2025-04-01"
1309
+ },
1310
+ {
1311
+ allowReserved: options?.requestOptions?.skipUrlEncoding
1312
+ }
1313
+ );
1314
+ return context.path(path).delete({ ...(0, import_core_client.operationOptionsToRequestParameters)(options) });
1315
+ }
1316
+ async function _deleteAtTenantScopeDeserialize(result) {
1317
+ const expectedStatuses = ["202", "204", "200"];
1318
+ if (!expectedStatuses.includes(result.status)) {
1319
+ const error = (0, import_core_client.createRestError)(result);
1320
+ error.details = (0, import_models.cloudErrorDeserializer)(result.body);
1321
+ throw error;
1322
+ }
1323
+ return;
1324
+ }
1325
+ function deleteAtTenantScope(context, deploymentName, options = { requestOptions: {} }) {
1326
+ return (0, import_pollingHelpers.getLongRunningPoller)(context, _deleteAtTenantScopeDeserialize, ["202", "204", "200"], {
1327
+ updateIntervalInMs: options?.updateIntervalInMs,
1328
+ abortSignal: options?.abortSignal,
1329
+ getInitialResponse: () => _deleteAtTenantScopeSend(context, deploymentName, options),
1330
+ resourceLocationConfig: "location",
1331
+ apiVersion: context.apiVersion ?? "2025-04-01"
1332
+ });
1333
+ }
1334
+ function _createOrUpdateAtTenantScopeSend(context, deploymentName, parameters, options = { requestOptions: {} }) {
1335
+ const path = (0, import_urlTemplate.expandUrlTemplate)(
1336
+ "/providers/Microsoft.Resources/deployments/{deploymentName}{?api%2Dversion}",
1337
+ {
1338
+ deploymentName,
1339
+ "api%2Dversion": context.apiVersion ?? "2025-04-01"
1340
+ },
1341
+ {
1342
+ allowReserved: options?.requestOptions?.skipUrlEncoding
1343
+ }
1344
+ );
1345
+ return context.path(path).put({
1346
+ ...(0, import_core_client.operationOptionsToRequestParameters)(options),
1347
+ contentType: "application/json",
1348
+ headers: { accept: "application/json", ...options.requestOptions?.headers },
1349
+ body: (0, import_models.scopedDeploymentSerializer)(parameters)
1350
+ });
1351
+ }
1352
+ async function _createOrUpdateAtTenantScopeDeserialize(result) {
1353
+ const expectedStatuses = ["200", "201", "202"];
1354
+ if (!expectedStatuses.includes(result.status)) {
1355
+ const error = (0, import_core_client.createRestError)(result);
1356
+ error.details = (0, import_models.cloudErrorDeserializer)(result.body);
1357
+ throw error;
1358
+ }
1359
+ return (0, import_models.deploymentExtendedDeserializer)(result.body);
1360
+ }
1361
+ function createOrUpdateAtTenantScope(context, deploymentName, parameters, options = { requestOptions: {} }) {
1362
+ return (0, import_pollingHelpers.getLongRunningPoller)(
1363
+ context,
1364
+ _createOrUpdateAtTenantScopeDeserialize,
1365
+ ["200", "201", "202"],
1366
+ {
1367
+ updateIntervalInMs: options?.updateIntervalInMs,
1368
+ abortSignal: options?.abortSignal,
1369
+ getInitialResponse: () => _createOrUpdateAtTenantScopeSend(context, deploymentName, parameters, options),
1370
+ resourceLocationConfig: "location",
1371
+ apiVersion: context.apiVersion ?? "2025-04-01"
1372
+ }
1373
+ );
1374
+ }
1375
+ function _checkExistenceAtTenantScopeSend(context, deploymentName, options = { requestOptions: {} }) {
1376
+ const path = (0, import_urlTemplate.expandUrlTemplate)(
1377
+ "/providers/Microsoft.Resources/deployments/{deploymentName}{?api%2Dversion}",
1378
+ {
1379
+ deploymentName,
1380
+ "api%2Dversion": context.apiVersion ?? "2025-04-01"
1381
+ },
1382
+ {
1383
+ allowReserved: options?.requestOptions?.skipUrlEncoding
1384
+ }
1385
+ );
1386
+ return context.path(path).head({ ...(0, import_core_client.operationOptionsToRequestParameters)(options) });
1387
+ }
1388
+ async function _checkExistenceAtTenantScopeDeserialize(result) {
1389
+ const expectedStatuses = ["204", "404"];
1390
+ if (!expectedStatuses.includes(result.status)) {
1391
+ const error = (0, import_core_client.createRestError)(result);
1392
+ error.details = (0, import_models.cloudErrorDeserializer)(result.body);
1393
+ throw error;
1394
+ }
1395
+ return { body: result.status.startsWith("2") };
1396
+ }
1397
+ async function checkExistenceAtTenantScope(context, deploymentName, options = { requestOptions: {} }) {
1398
+ const result = await _checkExistenceAtTenantScopeSend(context, deploymentName, options);
1399
+ return _checkExistenceAtTenantScopeDeserialize(result);
1400
+ }
1401
+ function _getAtTenantScopeSend(context, deploymentName, options = { requestOptions: {} }) {
1402
+ const path = (0, import_urlTemplate.expandUrlTemplate)(
1403
+ "/providers/Microsoft.Resources/deployments/{deploymentName}{?api%2Dversion}",
1404
+ {
1405
+ deploymentName,
1406
+ "api%2Dversion": context.apiVersion ?? "2025-04-01"
1407
+ },
1408
+ {
1409
+ allowReserved: options?.requestOptions?.skipUrlEncoding
1410
+ }
1411
+ );
1412
+ return context.path(path).get({
1413
+ ...(0, import_core_client.operationOptionsToRequestParameters)(options),
1414
+ headers: { accept: "application/json", ...options.requestOptions?.headers }
1415
+ });
1416
+ }
1417
+ async function _getAtTenantScopeDeserialize(result) {
1418
+ const expectedStatuses = ["200"];
1419
+ if (!expectedStatuses.includes(result.status)) {
1420
+ const error = (0, import_core_client.createRestError)(result);
1421
+ error.details = (0, import_models.cloudErrorDeserializer)(result.body);
1422
+ throw error;
1423
+ }
1424
+ return (0, import_models.deploymentExtendedDeserializer)(result.body);
1425
+ }
1426
+ async function getAtTenantScope(context, deploymentName, options = { requestOptions: {} }) {
1427
+ const result = await _getAtTenantScopeSend(context, deploymentName, options);
1428
+ return _getAtTenantScopeDeserialize(result);
1429
+ }
1430
+ function _exportTemplateAtScopeSend(context, scope, deploymentName, options = { requestOptions: {} }) {
1431
+ const path = (0, import_urlTemplate.expandUrlTemplate)(
1432
+ "/{+scope}/providers/Microsoft.Resources/deployments/{deploymentName}/exportTemplate{?api%2Dversion}",
1433
+ {
1434
+ scope,
1435
+ deploymentName,
1436
+ "api%2Dversion": context.apiVersion ?? "2025-04-01"
1437
+ },
1438
+ {
1439
+ allowReserved: options?.requestOptions?.skipUrlEncoding
1440
+ }
1441
+ );
1442
+ return context.path(path).post({
1443
+ ...(0, import_core_client.operationOptionsToRequestParameters)(options),
1444
+ headers: { accept: "application/json", ...options.requestOptions?.headers }
1445
+ });
1446
+ }
1447
+ async function _exportTemplateAtScopeDeserialize(result) {
1448
+ const expectedStatuses = ["200"];
1449
+ if (!expectedStatuses.includes(result.status)) {
1450
+ const error = (0, import_core_client.createRestError)(result);
1451
+ error.details = (0, import_models.cloudErrorDeserializer)(result.body);
1452
+ throw error;
1453
+ }
1454
+ return (0, import_models.deploymentExportResultDeserializer)(result.body);
1455
+ }
1456
+ async function exportTemplateAtScope(context, scope, deploymentName, options = { requestOptions: {} }) {
1457
+ const result = await _exportTemplateAtScopeSend(context, scope, deploymentName, options);
1458
+ return _exportTemplateAtScopeDeserialize(result);
1459
+ }
1460
+ function _validateAtScopeSend(context, scope, deploymentName, parameters, options = { requestOptions: {} }) {
1461
+ const path = (0, import_urlTemplate.expandUrlTemplate)(
1462
+ "/{+scope}/providers/Microsoft.Resources/deployments/{deploymentName}/validate{?api%2Dversion}",
1463
+ {
1464
+ scope,
1465
+ deploymentName,
1466
+ "api%2Dversion": context.apiVersion ?? "2025-04-01"
1467
+ },
1468
+ {
1469
+ allowReserved: options?.requestOptions?.skipUrlEncoding
1470
+ }
1471
+ );
1472
+ return context.path(path).post({
1473
+ ...(0, import_core_client.operationOptionsToRequestParameters)(options),
1474
+ contentType: "application/json",
1475
+ headers: { accept: "application/json", ...options.requestOptions?.headers },
1476
+ body: (0, import_models.deploymentSerializer)(parameters)
1477
+ });
1478
+ }
1479
+ async function _validateAtScopeDeserialize(result) {
1480
+ const expectedStatuses = ["200", "202", "400", "201"];
1481
+ if (!expectedStatuses.includes(result.status)) {
1482
+ const error = (0, import_core_client.createRestError)(result);
1483
+ error.details = (0, import_models.cloudErrorDeserializer)(result.body);
1484
+ throw error;
1485
+ }
1486
+ return (0, import_models.deploymentValidateResultDeserializer)(result.body);
1487
+ }
1488
+ function validateAtScope(context, scope, deploymentName, parameters, options = { requestOptions: {} }) {
1489
+ return (0, import_pollingHelpers.getLongRunningPoller)(context, _validateAtScopeDeserialize, ["200", "202", "400", "201"], {
1490
+ updateIntervalInMs: options?.updateIntervalInMs,
1491
+ abortSignal: options?.abortSignal,
1492
+ getInitialResponse: () => _validateAtScopeSend(context, scope, deploymentName, parameters, options),
1493
+ resourceLocationConfig: "location",
1494
+ apiVersion: context.apiVersion ?? "2025-04-01"
1495
+ });
1496
+ }
1497
+ function _cancelAtScopeSend(context, scope, deploymentName, options = { requestOptions: {} }) {
1498
+ const path = (0, import_urlTemplate.expandUrlTemplate)(
1499
+ "/{+scope}/providers/Microsoft.Resources/deployments/{deploymentName}/cancel{?api%2Dversion}",
1500
+ {
1501
+ scope,
1502
+ deploymentName,
1503
+ "api%2Dversion": context.apiVersion ?? "2025-04-01"
1504
+ },
1505
+ {
1506
+ allowReserved: options?.requestOptions?.skipUrlEncoding
1507
+ }
1508
+ );
1509
+ return context.path(path).post({ ...(0, import_core_client.operationOptionsToRequestParameters)(options) });
1510
+ }
1511
+ async function _cancelAtScopeDeserialize(result) {
1512
+ const expectedStatuses = ["204"];
1513
+ if (!expectedStatuses.includes(result.status)) {
1514
+ const error = (0, import_core_client.createRestError)(result);
1515
+ error.details = (0, import_models.cloudErrorDeserializer)(result.body);
1516
+ throw error;
1517
+ }
1518
+ return;
1519
+ }
1520
+ async function cancelAtScope(context, scope, deploymentName, options = { requestOptions: {} }) {
1521
+ const result = await _cancelAtScopeSend(context, scope, deploymentName, options);
1522
+ return _cancelAtScopeDeserialize(result);
1523
+ }
1524
+ function _listAtScopeSend(context, scope, options = { requestOptions: {} }) {
1525
+ const path = (0, import_urlTemplate.expandUrlTemplate)(
1526
+ "/{+scope}/providers/Microsoft.Resources/deployments{?api%2Dversion,%24filter,%24top}",
1527
+ {
1528
+ scope,
1529
+ "api%2Dversion": context.apiVersion ?? "2025-04-01",
1530
+ "%24filter": options?.filter,
1531
+ "%24top": options?.top
1532
+ },
1533
+ {
1534
+ allowReserved: options?.requestOptions?.skipUrlEncoding
1535
+ }
1536
+ );
1537
+ return context.path(path).get({
1538
+ ...(0, import_core_client.operationOptionsToRequestParameters)(options),
1539
+ headers: { accept: "application/json", ...options.requestOptions?.headers }
1540
+ });
1541
+ }
1542
+ async function _listAtScopeDeserialize(result) {
1543
+ const expectedStatuses = ["200"];
1544
+ if (!expectedStatuses.includes(result.status)) {
1545
+ const error = (0, import_core_client.createRestError)(result);
1546
+ error.details = (0, import_models.cloudErrorDeserializer)(result.body);
1547
+ throw error;
1548
+ }
1549
+ return (0, import_models._deploymentListResultDeserializer)(result.body);
1550
+ }
1551
+ function listAtScope(context, scope, options = { requestOptions: {} }) {
1552
+ return (0, import_pagingHelpers.buildPagedAsyncIterator)(
1553
+ context,
1554
+ () => _listAtScopeSend(context, scope, options),
1555
+ _listAtScopeDeserialize,
1556
+ ["200"],
1557
+ { itemName: "value", nextLinkName: "nextLink", apiVersion: context.apiVersion ?? "2025-04-01" }
1558
+ );
1559
+ }
1560
+ function _deleteAtScopeSend(context, scope, deploymentName, options = { requestOptions: {} }) {
1561
+ const path = (0, import_urlTemplate.expandUrlTemplate)(
1562
+ "/{+scope}/providers/Microsoft.Resources/deployments/{deploymentName}{?api%2Dversion}",
1563
+ {
1564
+ scope,
1565
+ deploymentName,
1566
+ "api%2Dversion": context.apiVersion ?? "2025-04-01"
1567
+ },
1568
+ {
1569
+ allowReserved: options?.requestOptions?.skipUrlEncoding
1570
+ }
1571
+ );
1572
+ return context.path(path).delete({ ...(0, import_core_client.operationOptionsToRequestParameters)(options) });
1573
+ }
1574
+ async function _deleteAtScopeDeserialize(result) {
1575
+ const expectedStatuses = ["202", "204", "200"];
1576
+ if (!expectedStatuses.includes(result.status)) {
1577
+ const error = (0, import_core_client.createRestError)(result);
1578
+ error.details = (0, import_models.cloudErrorDeserializer)(result.body);
1579
+ throw error;
1580
+ }
1581
+ return;
1582
+ }
1583
+ function deleteAtScope(context, scope, deploymentName, options = { requestOptions: {} }) {
1584
+ return (0, import_pollingHelpers.getLongRunningPoller)(context, _deleteAtScopeDeserialize, ["202", "204", "200"], {
1585
+ updateIntervalInMs: options?.updateIntervalInMs,
1586
+ abortSignal: options?.abortSignal,
1587
+ getInitialResponse: () => _deleteAtScopeSend(context, scope, deploymentName, options),
1588
+ resourceLocationConfig: "location",
1589
+ apiVersion: context.apiVersion ?? "2025-04-01"
1590
+ });
1591
+ }
1592
+ function _createOrUpdateAtScopeSend(context, scope, deploymentName, parameters, options = { requestOptions: {} }) {
1593
+ const path = (0, import_urlTemplate.expandUrlTemplate)(
1594
+ "/{+scope}/providers/Microsoft.Resources/deployments/{deploymentName}{?api%2Dversion}",
1595
+ {
1596
+ scope,
1597
+ deploymentName,
1598
+ "api%2Dversion": context.apiVersion ?? "2025-04-01"
1599
+ },
1600
+ {
1601
+ allowReserved: options?.requestOptions?.skipUrlEncoding
1602
+ }
1603
+ );
1604
+ return context.path(path).put({
1605
+ ...(0, import_core_client.operationOptionsToRequestParameters)(options),
1606
+ contentType: "application/json",
1607
+ headers: { accept: "application/json", ...options.requestOptions?.headers },
1608
+ body: (0, import_models.deploymentSerializer)(parameters)
1609
+ });
1610
+ }
1611
+ async function _createOrUpdateAtScopeDeserialize(result) {
1612
+ const expectedStatuses = ["200", "201", "202"];
1613
+ if (!expectedStatuses.includes(result.status)) {
1614
+ const error = (0, import_core_client.createRestError)(result);
1615
+ error.details = (0, import_models.cloudErrorDeserializer)(result.body);
1616
+ throw error;
1617
+ }
1618
+ return (0, import_models.deploymentExtendedDeserializer)(result.body);
1619
+ }
1620
+ function createOrUpdateAtScope(context, scope, deploymentName, parameters, options = { requestOptions: {} }) {
1621
+ return (0, import_pollingHelpers.getLongRunningPoller)(context, _createOrUpdateAtScopeDeserialize, ["200", "201", "202"], {
1622
+ updateIntervalInMs: options?.updateIntervalInMs,
1623
+ abortSignal: options?.abortSignal,
1624
+ getInitialResponse: () => _createOrUpdateAtScopeSend(context, scope, deploymentName, parameters, options),
1625
+ resourceLocationConfig: "location",
1626
+ apiVersion: context.apiVersion ?? "2025-04-01"
1627
+ });
1628
+ }
1629
+ function _checkExistenceAtScopeSend(context, scope, deploymentName, options = { requestOptions: {} }) {
1630
+ const path = (0, import_urlTemplate.expandUrlTemplate)(
1631
+ "/{+scope}/providers/Microsoft.Resources/deployments/{deploymentName}{?api%2Dversion}",
1632
+ {
1633
+ scope,
1634
+ deploymentName,
1635
+ "api%2Dversion": context.apiVersion ?? "2025-04-01"
1636
+ },
1637
+ {
1638
+ allowReserved: options?.requestOptions?.skipUrlEncoding
1639
+ }
1640
+ );
1641
+ return context.path(path).head({ ...(0, import_core_client.operationOptionsToRequestParameters)(options) });
1642
+ }
1643
+ async function _checkExistenceAtScopeDeserialize(result) {
1644
+ const expectedStatuses = ["204", "404"];
1645
+ if (!expectedStatuses.includes(result.status)) {
1646
+ const error = (0, import_core_client.createRestError)(result);
1647
+ error.details = (0, import_models.cloudErrorDeserializer)(result.body);
1648
+ throw error;
1649
+ }
1650
+ return { body: result.status.startsWith("2") };
1651
+ }
1652
+ async function checkExistenceAtScope(context, scope, deploymentName, options = { requestOptions: {} }) {
1653
+ const result = await _checkExistenceAtScopeSend(context, scope, deploymentName, options);
1654
+ return _checkExistenceAtScopeDeserialize(result);
1655
+ }
1656
+ function _getAtScopeSend(context, scope, deploymentName, options = { requestOptions: {} }) {
1657
+ const path = (0, import_urlTemplate.expandUrlTemplate)(
1658
+ "/{+scope}/providers/Microsoft.Resources/deployments/{deploymentName}{?api%2Dversion}",
1659
+ {
1660
+ scope,
1661
+ deploymentName,
1662
+ "api%2Dversion": context.apiVersion ?? "2025-04-01"
1663
+ },
1664
+ {
1665
+ allowReserved: options?.requestOptions?.skipUrlEncoding
1666
+ }
1667
+ );
1668
+ return context.path(path).get({
1669
+ ...(0, import_core_client.operationOptionsToRequestParameters)(options),
1670
+ headers: { accept: "application/json", ...options.requestOptions?.headers }
1671
+ });
1672
+ }
1673
+ async function _getAtScopeDeserialize(result) {
1674
+ const expectedStatuses = ["200"];
1675
+ if (!expectedStatuses.includes(result.status)) {
1676
+ const error = (0, import_core_client.createRestError)(result);
1677
+ error.details = (0, import_models.cloudErrorDeserializer)(result.body);
1678
+ throw error;
1679
+ }
1680
+ return (0, import_models.deploymentExtendedDeserializer)(result.body);
1681
+ }
1682
+ async function getAtScope(context, scope, deploymentName, options = { requestOptions: {} }) {
1683
+ const result = await _getAtScopeSend(context, scope, deploymentName, options);
1684
+ return _getAtScopeDeserialize(result);
1685
+ }
1686
+ // Annotate the CommonJS export names for ESM import in node:
1687
+ 0 && (module.exports = {
1688
+ $delete,
1689
+ _$deleteDeserialize,
1690
+ _$deleteSend,
1691
+ _calculateTemplateHashDeserialize,
1692
+ _calculateTemplateHashSend,
1693
+ _cancelAtManagementGroupScopeDeserialize,
1694
+ _cancelAtManagementGroupScopeSend,
1695
+ _cancelAtScopeDeserialize,
1696
+ _cancelAtScopeSend,
1697
+ _cancelAtSubscriptionScopeDeserialize,
1698
+ _cancelAtSubscriptionScopeSend,
1699
+ _cancelAtTenantScopeDeserialize,
1700
+ _cancelAtTenantScopeSend,
1701
+ _cancelDeserialize,
1702
+ _cancelSend,
1703
+ _checkExistenceAtManagementGroupScopeDeserialize,
1704
+ _checkExistenceAtManagementGroupScopeSend,
1705
+ _checkExistenceAtScopeDeserialize,
1706
+ _checkExistenceAtScopeSend,
1707
+ _checkExistenceAtSubscriptionScopeDeserialize,
1708
+ _checkExistenceAtSubscriptionScopeSend,
1709
+ _checkExistenceAtTenantScopeDeserialize,
1710
+ _checkExistenceAtTenantScopeSend,
1711
+ _checkExistenceDeserialize,
1712
+ _checkExistenceSend,
1713
+ _createOrUpdateAtManagementGroupScopeDeserialize,
1714
+ _createOrUpdateAtManagementGroupScopeSend,
1715
+ _createOrUpdateAtScopeDeserialize,
1716
+ _createOrUpdateAtScopeSend,
1717
+ _createOrUpdateAtSubscriptionScopeDeserialize,
1718
+ _createOrUpdateAtSubscriptionScopeSend,
1719
+ _createOrUpdateAtTenantScopeDeserialize,
1720
+ _createOrUpdateAtTenantScopeSend,
1721
+ _createOrUpdateDeserialize,
1722
+ _createOrUpdateSend,
1723
+ _deleteAtManagementGroupScopeDeserialize,
1724
+ _deleteAtManagementGroupScopeSend,
1725
+ _deleteAtScopeDeserialize,
1726
+ _deleteAtScopeSend,
1727
+ _deleteAtSubscriptionScopeDeserialize,
1728
+ _deleteAtSubscriptionScopeSend,
1729
+ _deleteAtTenantScopeDeserialize,
1730
+ _deleteAtTenantScopeSend,
1731
+ _exportTemplateAtManagementGroupScopeDeserialize,
1732
+ _exportTemplateAtManagementGroupScopeSend,
1733
+ _exportTemplateAtScopeDeserialize,
1734
+ _exportTemplateAtScopeSend,
1735
+ _exportTemplateAtSubscriptionScopeDeserialize,
1736
+ _exportTemplateAtSubscriptionScopeSend,
1737
+ _exportTemplateAtTenantScopeDeserialize,
1738
+ _exportTemplateAtTenantScopeSend,
1739
+ _exportTemplateDeserialize,
1740
+ _exportTemplateSend,
1741
+ _getAtManagementGroupScopeDeserialize,
1742
+ _getAtManagementGroupScopeSend,
1743
+ _getAtScopeDeserialize,
1744
+ _getAtScopeSend,
1745
+ _getAtSubscriptionScopeDeserialize,
1746
+ _getAtSubscriptionScopeSend,
1747
+ _getAtTenantScopeDeserialize,
1748
+ _getAtTenantScopeSend,
1749
+ _getDeserialize,
1750
+ _getSend,
1751
+ _listAtManagementGroupScopeDeserialize,
1752
+ _listAtManagementGroupScopeSend,
1753
+ _listAtScopeDeserialize,
1754
+ _listAtScopeSend,
1755
+ _listAtSubscriptionScopeDeserialize,
1756
+ _listAtSubscriptionScopeSend,
1757
+ _listAtTenantScopeDeserialize,
1758
+ _listAtTenantScopeSend,
1759
+ _listByResourceGroupDeserialize,
1760
+ _listByResourceGroupSend,
1761
+ _validateAtManagementGroupScopeDeserialize,
1762
+ _validateAtManagementGroupScopeSend,
1763
+ _validateAtScopeDeserialize,
1764
+ _validateAtScopeSend,
1765
+ _validateAtSubscriptionScopeDeserialize,
1766
+ _validateAtSubscriptionScopeSend,
1767
+ _validateAtTenantScopeDeserialize,
1768
+ _validateAtTenantScopeSend,
1769
+ _validateDeserialize,
1770
+ _validateSend,
1771
+ _whatIfAtManagementGroupScopeDeserialize,
1772
+ _whatIfAtManagementGroupScopeSend,
1773
+ _whatIfAtSubscriptionScopeDeserialize,
1774
+ _whatIfAtSubscriptionScopeSend,
1775
+ _whatIfAtTenantScopeDeserialize,
1776
+ _whatIfAtTenantScopeSend,
1777
+ _whatIfDeserialize,
1778
+ _whatIfSend,
1779
+ calculateTemplateHash,
1780
+ cancel,
1781
+ cancelAtManagementGroupScope,
1782
+ cancelAtScope,
1783
+ cancelAtSubscriptionScope,
1784
+ cancelAtTenantScope,
1785
+ checkExistence,
1786
+ checkExistenceAtManagementGroupScope,
1787
+ checkExistenceAtScope,
1788
+ checkExistenceAtSubscriptionScope,
1789
+ checkExistenceAtTenantScope,
1790
+ createOrUpdate,
1791
+ createOrUpdateAtManagementGroupScope,
1792
+ createOrUpdateAtScope,
1793
+ createOrUpdateAtSubscriptionScope,
1794
+ createOrUpdateAtTenantScope,
1795
+ deleteAtManagementGroupScope,
1796
+ deleteAtScope,
1797
+ deleteAtSubscriptionScope,
1798
+ deleteAtTenantScope,
1799
+ exportTemplate,
1800
+ exportTemplateAtManagementGroupScope,
1801
+ exportTemplateAtScope,
1802
+ exportTemplateAtSubscriptionScope,
1803
+ exportTemplateAtTenantScope,
1804
+ get,
1805
+ getAtManagementGroupScope,
1806
+ getAtScope,
1807
+ getAtSubscriptionScope,
1808
+ getAtTenantScope,
1809
+ listAtManagementGroupScope,
1810
+ listAtScope,
1811
+ listAtSubscriptionScope,
1812
+ listAtTenantScope,
1813
+ listByResourceGroup,
1814
+ validate,
1815
+ validateAtManagementGroupScope,
1816
+ validateAtScope,
1817
+ validateAtSubscriptionScope,
1818
+ validateAtTenantScope,
1819
+ whatIf,
1820
+ whatIfAtManagementGroupScope,
1821
+ whatIfAtSubscriptionScope,
1822
+ whatIfAtTenantScope
1823
+ });
1824
+ //# sourceMappingURL=operations.js.map