@azure/arm-resources-profile-2020-09-01-hybrid 2.1.1-alpha.20250211.1 → 2.1.1-alpha.20250219.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (504) hide show
  1. package/README.md +21 -12
  2. package/dist/browser/index.d.ts +5 -0
  3. package/{dist-esm/src → dist/browser}/index.d.ts.map +1 -1
  4. package/{dist-esm/src → dist/browser}/index.js +4 -4
  5. package/dist/browser/index.js.map +1 -0
  6. package/dist/browser/lroImpl.js +25 -0
  7. package/dist/browser/lroImpl.js.map +1 -0
  8. package/dist/browser/models/index.js.map +1 -0
  9. package/dist/browser/models/mappers.js.map +1 -0
  10. package/{dist-esm/src → dist/browser}/models/parameters.js +1 -1
  11. package/dist/browser/models/parameters.js.map +1 -0
  12. package/{dist-esm/src → dist/browser}/operations/deploymentOperations.d.ts +3 -3
  13. package/dist/browser/operations/deploymentOperations.d.ts.map +1 -0
  14. package/{dist-esm/src → dist/browser}/operations/deploymentOperations.js +3 -3
  15. package/dist/browser/operations/deploymentOperations.js.map +1 -0
  16. package/{dist-esm/src → dist/browser}/operations/deployments.d.ts +3 -3
  17. package/dist/browser/operations/deployments.d.ts.map +1 -0
  18. package/{dist-esm/src → dist/browser}/operations/deployments.js +617 -693
  19. package/dist/browser/operations/deployments.js.map +1 -0
  20. package/dist/browser/operations/index.d.ts +8 -0
  21. package/dist/browser/operations/index.d.ts.map +1 -0
  22. package/dist/browser/operations/index.js +15 -0
  23. package/dist/browser/operations/index.js.map +1 -0
  24. package/{dist-esm/src → dist/browser}/operations/operations.d.ts +3 -3
  25. package/dist/browser/operations/operations.d.ts.map +1 -0
  26. package/{dist-esm/src → dist/browser}/operations/operations.js +3 -3
  27. package/dist/browser/operations/operations.js.map +1 -0
  28. package/{dist-esm/src → dist/browser}/operations/providers.d.ts +3 -3
  29. package/dist/browser/operations/providers.d.ts.map +1 -0
  30. package/{dist-esm/src → dist/browser}/operations/providers.js +3 -3
  31. package/dist/browser/operations/providers.js.map +1 -0
  32. package/{dist-esm/src → dist/browser}/operations/resourceGroups.d.ts +3 -3
  33. package/dist/browser/operations/resourceGroups.d.ts.map +1 -0
  34. package/{dist-esm/src → dist/browser}/operations/resourceGroups.js +70 -78
  35. package/dist/browser/operations/resourceGroups.js.map +1 -0
  36. package/{dist-esm/src → dist/browser}/operations/resources.d.ts +3 -3
  37. package/dist/browser/operations/resources.d.ts.map +1 -0
  38. package/{dist-esm/src → dist/browser}/operations/resources.js +287 -319
  39. package/dist/browser/operations/resources.js.map +1 -0
  40. package/{dist-esm/src → dist/browser}/operations/tagsOperations.d.ts +3 -3
  41. package/dist/browser/operations/tagsOperations.d.ts.map +1 -0
  42. package/{dist-esm/src → dist/browser}/operations/tagsOperations.js +3 -3
  43. package/dist/browser/operations/tagsOperations.js.map +1 -0
  44. package/{dist-esm/src → dist/browser}/operationsInterfaces/deploymentOperations.d.ts +1 -1
  45. package/dist/browser/operationsInterfaces/deploymentOperations.d.ts.map +1 -0
  46. package/dist/browser/operationsInterfaces/deploymentOperations.js.map +1 -0
  47. package/{dist-esm/src → dist/browser}/operationsInterfaces/deployments.d.ts +1 -1
  48. package/dist/browser/operationsInterfaces/deployments.d.ts.map +1 -0
  49. package/dist/browser/operationsInterfaces/deployments.js.map +1 -0
  50. package/dist/browser/operationsInterfaces/index.d.ts +8 -0
  51. package/dist/browser/operationsInterfaces/index.d.ts.map +1 -0
  52. package/dist/browser/operationsInterfaces/index.js +15 -0
  53. package/dist/browser/operationsInterfaces/index.js.map +1 -0
  54. package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts +1 -1
  55. package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts.map +1 -1
  56. package/dist/browser/operationsInterfaces/operations.js.map +1 -0
  57. package/{dist-esm/src → dist/browser}/operationsInterfaces/providers.d.ts +1 -1
  58. package/dist/browser/operationsInterfaces/providers.d.ts.map +1 -0
  59. package/dist/browser/operationsInterfaces/providers.js.map +1 -0
  60. package/{dist-esm/src → dist/browser}/operationsInterfaces/resourceGroups.d.ts +1 -1
  61. package/dist/browser/operationsInterfaces/resourceGroups.d.ts.map +1 -0
  62. package/dist/browser/operationsInterfaces/resourceGroups.js.map +1 -0
  63. package/{dist-esm/src → dist/browser}/operationsInterfaces/resources.d.ts +1 -1
  64. package/dist/browser/operationsInterfaces/resources.d.ts.map +1 -0
  65. package/dist/browser/operationsInterfaces/resources.js.map +1 -0
  66. package/{dist-esm/src → dist/browser}/operationsInterfaces/tagsOperations.d.ts +1 -1
  67. package/dist/browser/operationsInterfaces/tagsOperations.d.ts.map +1 -0
  68. package/dist/browser/operationsInterfaces/tagsOperations.js.map +1 -0
  69. package/dist/browser/package.json +3 -0
  70. package/dist/browser/pagingHelper.js.map +1 -0
  71. package/{dist-esm/src → dist/browser}/resourceManagementClient.d.ts +2 -2
  72. package/dist/browser/resourceManagementClient.d.ts.map +1 -0
  73. package/{dist-esm/src → dist/browser}/resourceManagementClient.js +15 -18
  74. package/dist/browser/resourceManagementClient.js.map +1 -0
  75. package/dist/commonjs/index.d.ts +5 -0
  76. package/dist/commonjs/index.d.ts.map +1 -0
  77. package/dist/commonjs/index.js +19 -0
  78. package/dist/commonjs/index.js.map +1 -0
  79. package/dist/commonjs/lroImpl.d.ts +16 -0
  80. package/dist/commonjs/lroImpl.d.ts.map +1 -0
  81. package/dist/commonjs/lroImpl.js +29 -0
  82. package/dist/commonjs/lroImpl.js.map +1 -0
  83. package/dist/commonjs/models/index.d.ts +1659 -0
  84. package/dist/commonjs/models/index.d.ts.map +1 -0
  85. package/dist/commonjs/models/index.js +21 -0
  86. package/dist/commonjs/models/index.js.map +1 -0
  87. package/dist/commonjs/models/mappers.d.ts +75 -0
  88. package/dist/commonjs/models/mappers.d.ts.map +1 -0
  89. package/dist/commonjs/models/mappers.js +2316 -0
  90. package/dist/commonjs/models/mappers.js.map +1 -0
  91. package/dist/commonjs/models/parameters.d.ts +38 -0
  92. package/dist/commonjs/models/parameters.d.ts.map +1 -0
  93. package/dist/commonjs/models/parameters.js +336 -0
  94. package/dist/commonjs/models/parameters.js.map +1 -0
  95. package/dist/commonjs/operations/deploymentOperations.d.ts +168 -0
  96. package/dist/commonjs/operations/deploymentOperations.d.ts.map +1 -0
  97. package/dist/commonjs/operations/deploymentOperations.js +786 -0
  98. package/dist/commonjs/operations/deploymentOperations.js.map +1 -0
  99. package/dist/commonjs/operations/deployments.d.ts +628 -0
  100. package/dist/commonjs/operations/deployments.d.ts.map +1 -0
  101. package/dist/commonjs/operations/deployments.js +2694 -0
  102. package/dist/commonjs/operations/deployments.js.map +1 -0
  103. package/dist/commonjs/operations/index.d.ts +8 -0
  104. package/dist/commonjs/operations/index.d.ts.map +1 -0
  105. package/dist/commonjs/operations/index.js +18 -0
  106. package/dist/commonjs/operations/index.js.map +1 -0
  107. package/dist/commonjs/operations/operations.d.ts +32 -0
  108. package/dist/commonjs/operations/operations.d.ts.map +1 -0
  109. package/dist/commonjs/operations/operations.js +137 -0
  110. package/dist/commonjs/operations/operations.js.map +1 -0
  111. package/dist/commonjs/operations/providers.d.ts +74 -0
  112. package/dist/commonjs/operations/providers.d.ts.map +1 -0
  113. package/dist/commonjs/operations/providers.js +356 -0
  114. package/dist/commonjs/operations/providers.js.map +1 -0
  115. package/dist/commonjs/operations/resourceGroups.d.ts +91 -0
  116. package/dist/commonjs/operations/resourceGroups.d.ts.map +1 -0
  117. package/dist/commonjs/operations/resourceGroups.js +414 -0
  118. package/dist/commonjs/operations/resourceGroups.js.map +1 -0
  119. package/dist/commonjs/operations/resources.d.ts +274 -0
  120. package/dist/commonjs/operations/resources.d.ts.map +1 -0
  121. package/dist/commonjs/operations/resources.js +1096 -0
  122. package/dist/commonjs/operations/resources.js.map +1 -0
  123. package/dist/commonjs/operations/tagsOperations.d.ts +102 -0
  124. package/dist/commonjs/operations/tagsOperations.d.ts.map +1 -0
  125. package/dist/commonjs/operations/tagsOperations.js +379 -0
  126. package/dist/commonjs/operations/tagsOperations.js.map +1 -0
  127. package/dist/commonjs/operationsInterfaces/deploymentOperations.d.ts +77 -0
  128. package/dist/commonjs/operationsInterfaces/deploymentOperations.d.ts.map +1 -0
  129. package/dist/commonjs/operationsInterfaces/deploymentOperations.js +10 -0
  130. package/dist/commonjs/operationsInterfaces/deploymentOperations.js.map +1 -0
  131. package/dist/commonjs/operationsInterfaces/deployments.d.ts +545 -0
  132. package/dist/commonjs/operationsInterfaces/deployments.d.ts.map +1 -0
  133. package/dist/commonjs/operationsInterfaces/deployments.js +10 -0
  134. package/dist/commonjs/operationsInterfaces/deployments.js.map +1 -0
  135. package/dist/commonjs/operationsInterfaces/index.d.ts +8 -0
  136. package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
  137. package/dist/commonjs/operationsInterfaces/index.js +18 -0
  138. package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
  139. package/dist/commonjs/operationsInterfaces/operations.d.ts +11 -0
  140. package/dist/commonjs/operationsInterfaces/operations.d.ts.map +1 -0
  141. package/dist/commonjs/operationsInterfaces/operations.js +10 -0
  142. package/dist/commonjs/operationsInterfaces/operations.js.map +1 -0
  143. package/dist/commonjs/operationsInterfaces/providers.d.ts +40 -0
  144. package/dist/commonjs/operationsInterfaces/providers.d.ts.map +1 -0
  145. package/dist/commonjs/operationsInterfaces/providers.js +10 -0
  146. package/dist/commonjs/operationsInterfaces/providers.js.map +1 -0
  147. package/dist/commonjs/operationsInterfaces/resourceGroups.d.ts +70 -0
  148. package/dist/commonjs/operationsInterfaces/resourceGroups.d.ts.map +1 -0
  149. package/dist/commonjs/operationsInterfaces/resourceGroups.js +10 -0
  150. package/dist/commonjs/operationsInterfaces/resourceGroups.js.map +1 -0
  151. package/dist/commonjs/operationsInterfaces/resources.d.ts +238 -0
  152. package/dist/commonjs/operationsInterfaces/resources.d.ts.map +1 -0
  153. package/dist/commonjs/operationsInterfaces/resources.js +10 -0
  154. package/dist/commonjs/operationsInterfaces/resources.js.map +1 -0
  155. package/dist/commonjs/operationsInterfaces/tagsOperations.d.ts +78 -0
  156. package/dist/commonjs/operationsInterfaces/tagsOperations.d.ts.map +1 -0
  157. package/dist/commonjs/operationsInterfaces/tagsOperations.js +10 -0
  158. package/dist/commonjs/operationsInterfaces/tagsOperations.js.map +1 -0
  159. package/dist/commonjs/package.json +3 -0
  160. package/dist/commonjs/pagingHelper.d.ts +13 -0
  161. package/dist/commonjs/pagingHelper.d.ts.map +1 -0
  162. package/dist/commonjs/pagingHelper.js +36 -0
  163. package/dist/commonjs/pagingHelper.js.map +1 -0
  164. package/dist/commonjs/resourceManagementClient.d.ts +26 -0
  165. package/dist/commonjs/resourceManagementClient.d.ts.map +1 -0
  166. package/dist/commonjs/resourceManagementClient.js +108 -0
  167. package/dist/commonjs/resourceManagementClient.js.map +1 -0
  168. package/{types → dist/commonjs}/tsdoc-metadata.json +1 -1
  169. package/dist/esm/index.d.ts +5 -0
  170. package/dist/esm/index.d.ts.map +1 -0
  171. package/{src/index.ts → dist/esm/index.js} +5 -5
  172. package/dist/esm/index.js.map +1 -0
  173. package/dist/esm/lroImpl.d.ts +16 -0
  174. package/dist/esm/lroImpl.d.ts.map +1 -0
  175. package/dist/esm/lroImpl.js +25 -0
  176. package/dist/esm/lroImpl.js.map +1 -0
  177. package/dist/esm/models/index.d.ts +1659 -0
  178. package/dist/esm/models/index.d.ts.map +1 -0
  179. package/dist/esm/models/index.js +18 -0
  180. package/dist/esm/models/index.js.map +1 -0
  181. package/dist/esm/models/mappers.d.ts +75 -0
  182. package/dist/esm/models/mappers.d.ts.map +1 -0
  183. package/dist/esm/models/mappers.js +2312 -0
  184. package/dist/esm/models/mappers.js.map +1 -0
  185. package/dist/esm/models/parameters.d.ts +38 -0
  186. package/dist/esm/models/parameters.d.ts.map +1 -0
  187. package/dist/esm/models/parameters.js +333 -0
  188. package/dist/esm/models/parameters.js.map +1 -0
  189. package/dist/esm/operations/deploymentOperations.d.ts +168 -0
  190. package/dist/esm/operations/deploymentOperations.d.ts.map +1 -0
  191. package/dist/esm/operations/deploymentOperations.js +782 -0
  192. package/dist/esm/operations/deploymentOperations.js.map +1 -0
  193. package/dist/esm/operations/deployments.d.ts +628 -0
  194. package/dist/esm/operations/deployments.d.ts.map +1 -0
  195. package/dist/esm/operations/deployments.js +2690 -0
  196. package/dist/esm/operations/deployments.js.map +1 -0
  197. package/dist/esm/operations/index.d.ts +8 -0
  198. package/dist/esm/operations/index.d.ts.map +1 -0
  199. package/dist/esm/operations/index.js +15 -0
  200. package/dist/esm/operations/index.js.map +1 -0
  201. package/dist/esm/operations/operations.d.ts +32 -0
  202. package/dist/esm/operations/operations.d.ts.map +1 -0
  203. package/dist/esm/operations/operations.js +133 -0
  204. package/dist/esm/operations/operations.js.map +1 -0
  205. package/dist/esm/operations/providers.d.ts +74 -0
  206. package/dist/esm/operations/providers.d.ts.map +1 -0
  207. package/dist/esm/operations/providers.js +352 -0
  208. package/dist/esm/operations/providers.js.map +1 -0
  209. package/dist/esm/operations/resourceGroups.d.ts +91 -0
  210. package/dist/esm/operations/resourceGroups.d.ts.map +1 -0
  211. package/dist/esm/operations/resourceGroups.js +410 -0
  212. package/dist/esm/operations/resourceGroups.js.map +1 -0
  213. package/dist/esm/operations/resources.d.ts +274 -0
  214. package/dist/esm/operations/resources.d.ts.map +1 -0
  215. package/dist/esm/operations/resources.js +1092 -0
  216. package/dist/esm/operations/resources.js.map +1 -0
  217. package/dist/esm/operations/tagsOperations.d.ts +102 -0
  218. package/dist/esm/operations/tagsOperations.d.ts.map +1 -0
  219. package/dist/esm/operations/tagsOperations.js +375 -0
  220. package/dist/esm/operations/tagsOperations.js.map +1 -0
  221. package/dist/esm/operationsInterfaces/deploymentOperations.d.ts +77 -0
  222. package/dist/esm/operationsInterfaces/deploymentOperations.d.ts.map +1 -0
  223. package/dist/esm/operationsInterfaces/deploymentOperations.js +9 -0
  224. package/dist/esm/operationsInterfaces/deploymentOperations.js.map +1 -0
  225. package/dist/esm/operationsInterfaces/deployments.d.ts +545 -0
  226. package/dist/esm/operationsInterfaces/deployments.d.ts.map +1 -0
  227. package/dist/esm/operationsInterfaces/deployments.js +9 -0
  228. package/dist/esm/operationsInterfaces/deployments.js.map +1 -0
  229. package/dist/esm/operationsInterfaces/index.d.ts +8 -0
  230. package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
  231. package/dist/esm/operationsInterfaces/index.js +15 -0
  232. package/dist/esm/operationsInterfaces/index.js.map +1 -0
  233. package/dist/esm/operationsInterfaces/operations.d.ts +11 -0
  234. package/dist/esm/operationsInterfaces/operations.d.ts.map +1 -0
  235. package/dist/esm/operationsInterfaces/operations.js +9 -0
  236. package/dist/esm/operationsInterfaces/operations.js.map +1 -0
  237. package/dist/esm/operationsInterfaces/providers.d.ts +40 -0
  238. package/dist/esm/operationsInterfaces/providers.d.ts.map +1 -0
  239. package/dist/esm/operationsInterfaces/providers.js +9 -0
  240. package/dist/esm/operationsInterfaces/providers.js.map +1 -0
  241. package/dist/esm/operationsInterfaces/resourceGroups.d.ts +70 -0
  242. package/dist/esm/operationsInterfaces/resourceGroups.d.ts.map +1 -0
  243. package/dist/esm/operationsInterfaces/resourceGroups.js +9 -0
  244. package/dist/esm/operationsInterfaces/resourceGroups.js.map +1 -0
  245. package/dist/esm/operationsInterfaces/resources.d.ts +238 -0
  246. package/dist/esm/operationsInterfaces/resources.d.ts.map +1 -0
  247. package/dist/esm/operationsInterfaces/resources.js +9 -0
  248. package/dist/esm/operationsInterfaces/resources.js.map +1 -0
  249. package/dist/esm/operationsInterfaces/tagsOperations.d.ts +78 -0
  250. package/dist/esm/operationsInterfaces/tagsOperations.d.ts.map +1 -0
  251. package/dist/esm/operationsInterfaces/tagsOperations.js +9 -0
  252. package/dist/esm/operationsInterfaces/tagsOperations.js.map +1 -0
  253. package/dist/esm/package.json +3 -0
  254. package/dist/esm/pagingHelper.d.ts +13 -0
  255. package/dist/esm/pagingHelper.d.ts.map +1 -0
  256. package/dist/esm/pagingHelper.js +32 -0
  257. package/dist/esm/pagingHelper.js.map +1 -0
  258. package/dist/esm/resourceManagementClient.d.ts +26 -0
  259. package/dist/esm/resourceManagementClient.d.ts.map +1 -0
  260. package/dist/esm/resourceManagementClient.js +103 -0
  261. package/dist/esm/resourceManagementClient.js.map +1 -0
  262. package/dist/react-native/index.d.ts +5 -0
  263. package/dist/react-native/index.d.ts.map +1 -0
  264. package/dist/react-native/index.js +13 -0
  265. package/dist/react-native/index.js.map +1 -0
  266. package/dist/react-native/lroImpl.d.ts +16 -0
  267. package/dist/react-native/lroImpl.d.ts.map +1 -0
  268. package/dist/react-native/lroImpl.js +25 -0
  269. package/dist/react-native/lroImpl.js.map +1 -0
  270. package/dist/react-native/models/index.d.ts +1659 -0
  271. package/dist/react-native/models/index.d.ts.map +1 -0
  272. package/dist/react-native/models/index.js +18 -0
  273. package/dist/react-native/models/index.js.map +1 -0
  274. package/dist/react-native/models/mappers.d.ts +75 -0
  275. package/dist/react-native/models/mappers.d.ts.map +1 -0
  276. package/dist/react-native/models/mappers.js +2312 -0
  277. package/dist/react-native/models/mappers.js.map +1 -0
  278. package/dist/react-native/models/parameters.d.ts +38 -0
  279. package/dist/react-native/models/parameters.d.ts.map +1 -0
  280. package/dist/react-native/models/parameters.js +333 -0
  281. package/dist/react-native/models/parameters.js.map +1 -0
  282. package/dist/react-native/operations/deploymentOperations.d.ts +168 -0
  283. package/dist/react-native/operations/deploymentOperations.d.ts.map +1 -0
  284. package/dist/react-native/operations/deploymentOperations.js +782 -0
  285. package/dist/react-native/operations/deploymentOperations.js.map +1 -0
  286. package/dist/react-native/operations/deployments.d.ts +628 -0
  287. package/dist/react-native/operations/deployments.d.ts.map +1 -0
  288. package/dist/react-native/operations/deployments.js +2690 -0
  289. package/dist/react-native/operations/deployments.js.map +1 -0
  290. package/dist/react-native/operations/index.d.ts +8 -0
  291. package/dist/react-native/operations/index.d.ts.map +1 -0
  292. package/dist/react-native/operations/index.js +15 -0
  293. package/dist/react-native/operations/index.js.map +1 -0
  294. package/dist/react-native/operations/operations.d.ts +32 -0
  295. package/dist/react-native/operations/operations.d.ts.map +1 -0
  296. package/dist/react-native/operations/operations.js +133 -0
  297. package/dist/react-native/operations/operations.js.map +1 -0
  298. package/dist/react-native/operations/providers.d.ts +74 -0
  299. package/dist/react-native/operations/providers.d.ts.map +1 -0
  300. package/dist/react-native/operations/providers.js +352 -0
  301. package/dist/react-native/operations/providers.js.map +1 -0
  302. package/dist/react-native/operations/resourceGroups.d.ts +91 -0
  303. package/dist/react-native/operations/resourceGroups.d.ts.map +1 -0
  304. package/dist/react-native/operations/resourceGroups.js +410 -0
  305. package/dist/react-native/operations/resourceGroups.js.map +1 -0
  306. package/dist/react-native/operations/resources.d.ts +274 -0
  307. package/dist/react-native/operations/resources.d.ts.map +1 -0
  308. package/dist/react-native/operations/resources.js +1092 -0
  309. package/dist/react-native/operations/resources.js.map +1 -0
  310. package/dist/react-native/operations/tagsOperations.d.ts +102 -0
  311. package/dist/react-native/operations/tagsOperations.d.ts.map +1 -0
  312. package/dist/react-native/operations/tagsOperations.js +375 -0
  313. package/dist/react-native/operations/tagsOperations.js.map +1 -0
  314. package/dist/react-native/operationsInterfaces/deploymentOperations.d.ts +77 -0
  315. package/dist/react-native/operationsInterfaces/deploymentOperations.d.ts.map +1 -0
  316. package/dist/react-native/operationsInterfaces/deploymentOperations.js +9 -0
  317. package/dist/react-native/operationsInterfaces/deploymentOperations.js.map +1 -0
  318. package/dist/react-native/operationsInterfaces/deployments.d.ts +545 -0
  319. package/dist/react-native/operationsInterfaces/deployments.d.ts.map +1 -0
  320. package/dist/react-native/operationsInterfaces/deployments.js +9 -0
  321. package/dist/react-native/operationsInterfaces/deployments.js.map +1 -0
  322. package/dist/react-native/operationsInterfaces/index.d.ts +8 -0
  323. package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
  324. package/dist/react-native/operationsInterfaces/index.js +15 -0
  325. package/dist/react-native/operationsInterfaces/index.js.map +1 -0
  326. package/dist/react-native/operationsInterfaces/operations.d.ts +11 -0
  327. package/dist/react-native/operationsInterfaces/operations.d.ts.map +1 -0
  328. package/dist/react-native/operationsInterfaces/operations.js +9 -0
  329. package/dist/react-native/operationsInterfaces/operations.js.map +1 -0
  330. package/dist/react-native/operationsInterfaces/providers.d.ts +40 -0
  331. package/dist/react-native/operationsInterfaces/providers.d.ts.map +1 -0
  332. package/dist/react-native/operationsInterfaces/providers.js +9 -0
  333. package/dist/react-native/operationsInterfaces/providers.js.map +1 -0
  334. package/dist/react-native/operationsInterfaces/resourceGroups.d.ts +70 -0
  335. package/dist/react-native/operationsInterfaces/resourceGroups.d.ts.map +1 -0
  336. package/dist/react-native/operationsInterfaces/resourceGroups.js +9 -0
  337. package/dist/react-native/operationsInterfaces/resourceGroups.js.map +1 -0
  338. package/dist/react-native/operationsInterfaces/resources.d.ts +238 -0
  339. package/dist/react-native/operationsInterfaces/resources.d.ts.map +1 -0
  340. package/dist/react-native/operationsInterfaces/resources.js +9 -0
  341. package/dist/react-native/operationsInterfaces/resources.js.map +1 -0
  342. package/dist/react-native/operationsInterfaces/tagsOperations.d.ts +78 -0
  343. package/dist/react-native/operationsInterfaces/tagsOperations.d.ts.map +1 -0
  344. package/dist/react-native/operationsInterfaces/tagsOperations.js +9 -0
  345. package/dist/react-native/operationsInterfaces/tagsOperations.js.map +1 -0
  346. package/dist/react-native/package.json +3 -0
  347. package/dist/react-native/pagingHelper.d.ts +13 -0
  348. package/dist/react-native/pagingHelper.d.ts.map +1 -0
  349. package/dist/react-native/pagingHelper.js +32 -0
  350. package/dist/react-native/pagingHelper.js.map +1 -0
  351. package/dist/react-native/resourceManagementClient.d.ts +26 -0
  352. package/dist/react-native/resourceManagementClient.d.ts.map +1 -0
  353. package/dist/react-native/resourceManagementClient.js +103 -0
  354. package/dist/react-native/resourceManagementClient.js.map +1 -0
  355. package/package.json +67 -36
  356. package/dist/index.js +0 -8842
  357. package/dist/index.js.map +0 -1
  358. package/dist/index.min.js +0 -1
  359. package/dist/index.min.js.map +0 -1
  360. package/dist-esm/samples-dev/deploymentsCalculateTemplateHashSample.d.ts +0 -2
  361. package/dist-esm/samples-dev/deploymentsCalculateTemplateHashSample.d.ts.map +0 -1
  362. package/dist-esm/samples-dev/deploymentsCalculateTemplateHashSample.js +0 -48
  363. package/dist-esm/samples-dev/deploymentsCalculateTemplateHashSample.js.map +0 -1
  364. package/dist-esm/samples-dev/deploymentsCreateOrUpdateAtManagementGroupScopeSample.d.ts +0 -2
  365. package/dist-esm/samples-dev/deploymentsCreateOrUpdateAtManagementGroupScopeSample.d.ts.map +0 -1
  366. package/dist-esm/samples-dev/deploymentsCreateOrUpdateAtManagementGroupScopeSample.js +0 -37
  367. package/dist-esm/samples-dev/deploymentsCreateOrUpdateAtManagementGroupScopeSample.js.map +0 -1
  368. package/dist-esm/samples-dev/deploymentsCreateOrUpdateAtScopeSample.d.ts +0 -2
  369. package/dist-esm/samples-dev/deploymentsCreateOrUpdateAtScopeSample.d.ts.map +0 -1
  370. package/dist-esm/samples-dev/deploymentsCreateOrUpdateAtScopeSample.js +0 -38
  371. package/dist-esm/samples-dev/deploymentsCreateOrUpdateAtScopeSample.js.map +0 -1
  372. package/dist-esm/samples-dev/deploymentsCreateOrUpdateAtTenantScopeSample.d.ts +0 -2
  373. package/dist-esm/samples-dev/deploymentsCreateOrUpdateAtTenantScopeSample.d.ts.map +0 -1
  374. package/dist-esm/samples-dev/deploymentsCreateOrUpdateAtTenantScopeSample.js +0 -37
  375. package/dist-esm/samples-dev/deploymentsCreateOrUpdateAtTenantScopeSample.js.map +0 -1
  376. package/dist-esm/samples-dev/deploymentsCreateOrUpdateSample.d.ts +0 -2
  377. package/dist-esm/samples-dev/deploymentsCreateOrUpdateSample.d.ts.map +0 -1
  378. package/dist-esm/samples-dev/deploymentsCreateOrUpdateSample.js +0 -66
  379. package/dist-esm/samples-dev/deploymentsCreateOrUpdateSample.js.map +0 -1
  380. package/dist-esm/samples-dev/deploymentsWhatIfAtManagementGroupScopeSample.d.ts +0 -2
  381. package/dist-esm/samples-dev/deploymentsWhatIfAtManagementGroupScopeSample.d.ts.map +0 -1
  382. package/dist-esm/samples-dev/deploymentsWhatIfAtManagementGroupScopeSample.js +0 -37
  383. package/dist-esm/samples-dev/deploymentsWhatIfAtManagementGroupScopeSample.js.map +0 -1
  384. package/dist-esm/samples-dev/deploymentsWhatIfAtSubscriptionScopeSample.d.ts +0 -2
  385. package/dist-esm/samples-dev/deploymentsWhatIfAtSubscriptionScopeSample.d.ts.map +0 -1
  386. package/dist-esm/samples-dev/deploymentsWhatIfAtSubscriptionScopeSample.js +0 -36
  387. package/dist-esm/samples-dev/deploymentsWhatIfAtSubscriptionScopeSample.js.map +0 -1
  388. package/dist-esm/samples-dev/deploymentsWhatIfAtTenantScopeSample.d.ts +0 -2
  389. package/dist-esm/samples-dev/deploymentsWhatIfAtTenantScopeSample.d.ts.map +0 -1
  390. package/dist-esm/samples-dev/deploymentsWhatIfAtTenantScopeSample.js +0 -36
  391. package/dist-esm/samples-dev/deploymentsWhatIfAtTenantScopeSample.js.map +0 -1
  392. package/dist-esm/samples-dev/deploymentsWhatIfSample.d.ts +0 -2
  393. package/dist-esm/samples-dev/deploymentsWhatIfSample.d.ts.map +0 -1
  394. package/dist-esm/samples-dev/deploymentsWhatIfSample.js +0 -36
  395. package/dist-esm/samples-dev/deploymentsWhatIfSample.js.map +0 -1
  396. package/dist-esm/samples-dev/resourceGroupsCreateOrUpdateSample.d.ts +0 -2
  397. package/dist-esm/samples-dev/resourceGroupsCreateOrUpdateSample.d.ts.map +0 -1
  398. package/dist-esm/samples-dev/resourceGroupsCreateOrUpdateSample.js +0 -29
  399. package/dist-esm/samples-dev/resourceGroupsCreateOrUpdateSample.js.map +0 -1
  400. package/dist-esm/samples-dev/resourceGroupsExportTemplateSample.d.ts +0 -2
  401. package/dist-esm/samples-dev/resourceGroupsExportTemplateSample.d.ts.map +0 -1
  402. package/dist-esm/samples-dev/resourceGroupsExportTemplateSample.js +0 -55
  403. package/dist-esm/samples-dev/resourceGroupsExportTemplateSample.js.map +0 -1
  404. package/dist-esm/samples-dev/tagsCreateOrUpdateAtScopeSample.d.ts +0 -2
  405. package/dist-esm/samples-dev/tagsCreateOrUpdateAtScopeSample.d.ts.map +0 -1
  406. package/dist-esm/samples-dev/tagsCreateOrUpdateAtScopeSample.js +0 -51
  407. package/dist-esm/samples-dev/tagsCreateOrUpdateAtScopeSample.js.map +0 -1
  408. package/dist-esm/samples-dev/tagsGetAtScopeSample.d.ts +0 -2
  409. package/dist-esm/samples-dev/tagsGetAtScopeSample.d.ts.map +0 -1
  410. package/dist-esm/samples-dev/tagsGetAtScopeSample.js +0 -52
  411. package/dist-esm/samples-dev/tagsGetAtScopeSample.js.map +0 -1
  412. package/dist-esm/src/index.d.ts +0 -5
  413. package/dist-esm/src/index.js.map +0 -1
  414. package/dist-esm/src/lroImpl.js +0 -29
  415. package/dist-esm/src/lroImpl.js.map +0 -1
  416. package/dist-esm/src/models/index.js.map +0 -1
  417. package/dist-esm/src/models/mappers.js.map +0 -1
  418. package/dist-esm/src/models/parameters.js.map +0 -1
  419. package/dist-esm/src/operations/deploymentOperations.d.ts.map +0 -1
  420. package/dist-esm/src/operations/deploymentOperations.js.map +0 -1
  421. package/dist-esm/src/operations/deployments.d.ts.map +0 -1
  422. package/dist-esm/src/operations/deployments.js.map +0 -1
  423. package/dist-esm/src/operations/index.d.ts +0 -8
  424. package/dist-esm/src/operations/index.d.ts.map +0 -1
  425. package/dist-esm/src/operations/index.js +0 -15
  426. package/dist-esm/src/operations/index.js.map +0 -1
  427. package/dist-esm/src/operations/operations.d.ts.map +0 -1
  428. package/dist-esm/src/operations/operations.js.map +0 -1
  429. package/dist-esm/src/operations/providers.d.ts.map +0 -1
  430. package/dist-esm/src/operations/providers.js.map +0 -1
  431. package/dist-esm/src/operations/resourceGroups.d.ts.map +0 -1
  432. package/dist-esm/src/operations/resourceGroups.js.map +0 -1
  433. package/dist-esm/src/operations/resources.d.ts.map +0 -1
  434. package/dist-esm/src/operations/resources.js.map +0 -1
  435. package/dist-esm/src/operations/tagsOperations.d.ts.map +0 -1
  436. package/dist-esm/src/operations/tagsOperations.js.map +0 -1
  437. package/dist-esm/src/operationsInterfaces/deploymentOperations.d.ts.map +0 -1
  438. package/dist-esm/src/operationsInterfaces/deploymentOperations.js.map +0 -1
  439. package/dist-esm/src/operationsInterfaces/deployments.d.ts.map +0 -1
  440. package/dist-esm/src/operationsInterfaces/deployments.js.map +0 -1
  441. package/dist-esm/src/operationsInterfaces/index.d.ts +0 -8
  442. package/dist-esm/src/operationsInterfaces/index.d.ts.map +0 -1
  443. package/dist-esm/src/operationsInterfaces/index.js +0 -15
  444. package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
  445. package/dist-esm/src/operationsInterfaces/operations.js.map +0 -1
  446. package/dist-esm/src/operationsInterfaces/providers.d.ts.map +0 -1
  447. package/dist-esm/src/operationsInterfaces/providers.js.map +0 -1
  448. package/dist-esm/src/operationsInterfaces/resourceGroups.d.ts.map +0 -1
  449. package/dist-esm/src/operationsInterfaces/resourceGroups.js.map +0 -1
  450. package/dist-esm/src/operationsInterfaces/resources.d.ts.map +0 -1
  451. package/dist-esm/src/operationsInterfaces/resources.js.map +0 -1
  452. package/dist-esm/src/operationsInterfaces/tagsOperations.d.ts.map +0 -1
  453. package/dist-esm/src/operationsInterfaces/tagsOperations.js.map +0 -1
  454. package/dist-esm/src/pagingHelper.js.map +0 -1
  455. package/dist-esm/src/resourceManagementClient.d.ts.map +0 -1
  456. package/dist-esm/src/resourceManagementClient.js.map +0 -1
  457. package/dist-esm/test/sampleTest.d.ts +0 -2
  458. package/dist-esm/test/sampleTest.d.ts.map +0 -1
  459. package/dist-esm/test/sampleTest.js +0 -42
  460. package/dist-esm/test/sampleTest.js.map +0 -1
  461. package/src/lroImpl.ts +0 -34
  462. package/src/models/index.ts +0 -1991
  463. package/src/models/mappers.ts +0 -2402
  464. package/src/models/parameters.ts +0 -386
  465. package/src/operations/deploymentOperations.ts +0 -1016
  466. package/src/operations/deployments.ts +0 -3805
  467. package/src/operations/index.ts +0 -15
  468. package/src/operations/operations.ts +0 -149
  469. package/src/operations/providers.ts +0 -416
  470. package/src/operations/resourceGroups.ts +0 -539
  471. package/src/operations/resources.ts +0 -1548
  472. package/src/operations/tagsOperations.ts +0 -463
  473. package/src/operationsInterfaces/deploymentOperations.ts +0 -144
  474. package/src/operationsInterfaces/deployments.ts +0 -959
  475. package/src/operationsInterfaces/index.ts +0 -15
  476. package/src/operationsInterfaces/operations.ts +0 -22
  477. package/src/operationsInterfaces/providers.ts +0 -77
  478. package/src/operationsInterfaces/resourceGroups.ts +0 -130
  479. package/src/operationsInterfaces/resources.ts +0 -418
  480. package/src/operationsInterfaces/tagsOperations.ts +0 -132
  481. package/src/pagingHelper.ts +0 -39
  482. package/src/resourceManagementClient.ts +0 -168
  483. package/tsconfig.json +0 -33
  484. package/types/arm-resources-profile-2020-09-01-hybrid.d.ts +0 -3022
  485. /package/{dist-esm/src → dist/browser}/lroImpl.d.ts +0 -0
  486. /package/{dist-esm/src → dist/browser}/lroImpl.d.ts.map +0 -0
  487. /package/{dist-esm/src → dist/browser}/models/index.d.ts +0 -0
  488. /package/{dist-esm/src → dist/browser}/models/index.d.ts.map +0 -0
  489. /package/{dist-esm/src → dist/browser}/models/index.js +0 -0
  490. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts +0 -0
  491. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts.map +0 -0
  492. /package/{dist-esm/src → dist/browser}/models/mappers.js +0 -0
  493. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts +0 -0
  494. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +0 -0
  495. /package/{dist-esm/src → dist/browser}/operationsInterfaces/deploymentOperations.js +0 -0
  496. /package/{dist-esm/src → dist/browser}/operationsInterfaces/deployments.js +0 -0
  497. /package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.js +0 -0
  498. /package/{dist-esm/src → dist/browser}/operationsInterfaces/providers.js +0 -0
  499. /package/{dist-esm/src → dist/browser}/operationsInterfaces/resourceGroups.js +0 -0
  500. /package/{dist-esm/src → dist/browser}/operationsInterfaces/resources.js +0 -0
  501. /package/{dist-esm/src → dist/browser}/operationsInterfaces/tagsOperations.js +0 -0
  502. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts +0 -0
  503. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts.map +0 -0
  504. /package/{dist-esm/src → dist/browser}/pagingHelper.js +0 -0
@@ -0,0 +1,2694 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) Microsoft Corporation.
4
+ * Licensed under the MIT License.
5
+ *
6
+ * Code generated by Microsoft (R) AutoRest Code Generator.
7
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.DeploymentsImpl = void 0;
11
+ const tslib_1 = require("tslib");
12
+ const pagingHelper_js_1 = require("../pagingHelper.js");
13
+ const coreClient = tslib_1.__importStar(require("@azure/core-client"));
14
+ const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
15
+ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
16
+ const core_lro_1 = require("@azure/core-lro");
17
+ const lroImpl_js_1 = require("../lroImpl.js");
18
+ /// <reference lib="esnext.asynciterable" />
19
+ /** Class containing Deployments operations. */
20
+ class DeploymentsImpl {
21
+ /**
22
+ * Initialize a new instance of the class Deployments class.
23
+ * @param client Reference to the service client
24
+ */
25
+ constructor(client) {
26
+ this.client = client;
27
+ }
28
+ /**
29
+ * Get all the deployments at the given scope.
30
+ * @param scope The resource scope.
31
+ * @param options The options parameters.
32
+ */
33
+ listAtScope(scope, options) {
34
+ const iter = this.listAtScopePagingAll(scope, options);
35
+ return {
36
+ next() {
37
+ return iter.next();
38
+ },
39
+ [Symbol.asyncIterator]() {
40
+ return this;
41
+ },
42
+ byPage: (settings) => {
43
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
44
+ throw new Error("maxPageSize is not supported by this operation.");
45
+ }
46
+ return this.listAtScopePagingPage(scope, options, settings);
47
+ }
48
+ };
49
+ }
50
+ listAtScopePagingPage(scope, options, settings) {
51
+ return tslib_1.__asyncGenerator(this, arguments, function* listAtScopePagingPage_1() {
52
+ let result;
53
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
54
+ if (!continuationToken) {
55
+ result = yield tslib_1.__await(this._listAtScope(scope, options));
56
+ let page = result.value || [];
57
+ continuationToken = result.nextLink;
58
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
59
+ yield yield tslib_1.__await(page);
60
+ }
61
+ while (continuationToken) {
62
+ result = yield tslib_1.__await(this._listAtScopeNext(scope, continuationToken, options));
63
+ continuationToken = result.nextLink;
64
+ let page = result.value || [];
65
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
66
+ yield yield tslib_1.__await(page);
67
+ }
68
+ });
69
+ }
70
+ listAtScopePagingAll(scope, options) {
71
+ return tslib_1.__asyncGenerator(this, arguments, function* listAtScopePagingAll_1() {
72
+ var _a, e_1, _b, _c;
73
+ try {
74
+ for (var _d = true, _e = tslib_1.__asyncValues(this.listAtScopePagingPage(scope, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
75
+ _c = _f.value;
76
+ _d = false;
77
+ const page = _c;
78
+ yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
79
+ }
80
+ }
81
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
82
+ finally {
83
+ try {
84
+ if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
85
+ }
86
+ finally { if (e_1) throw e_1.error; }
87
+ }
88
+ });
89
+ }
90
+ /**
91
+ * Get all the deployments at the tenant scope.
92
+ * @param options The options parameters.
93
+ */
94
+ listAtTenantScope(options) {
95
+ const iter = this.listAtTenantScopePagingAll(options);
96
+ return {
97
+ next() {
98
+ return iter.next();
99
+ },
100
+ [Symbol.asyncIterator]() {
101
+ return this;
102
+ },
103
+ byPage: (settings) => {
104
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
105
+ throw new Error("maxPageSize is not supported by this operation.");
106
+ }
107
+ return this.listAtTenantScopePagingPage(options, settings);
108
+ }
109
+ };
110
+ }
111
+ listAtTenantScopePagingPage(options, settings) {
112
+ return tslib_1.__asyncGenerator(this, arguments, function* listAtTenantScopePagingPage_1() {
113
+ let result;
114
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
115
+ if (!continuationToken) {
116
+ result = yield tslib_1.__await(this._listAtTenantScope(options));
117
+ let page = result.value || [];
118
+ continuationToken = result.nextLink;
119
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
120
+ yield yield tslib_1.__await(page);
121
+ }
122
+ while (continuationToken) {
123
+ result = yield tslib_1.__await(this._listAtTenantScopeNext(continuationToken, options));
124
+ continuationToken = result.nextLink;
125
+ let page = result.value || [];
126
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
127
+ yield yield tslib_1.__await(page);
128
+ }
129
+ });
130
+ }
131
+ listAtTenantScopePagingAll(options) {
132
+ return tslib_1.__asyncGenerator(this, arguments, function* listAtTenantScopePagingAll_1() {
133
+ var _a, e_2, _b, _c;
134
+ try {
135
+ for (var _d = true, _e = tslib_1.__asyncValues(this.listAtTenantScopePagingPage(options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
136
+ _c = _f.value;
137
+ _d = false;
138
+ const page = _c;
139
+ yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
140
+ }
141
+ }
142
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
143
+ finally {
144
+ try {
145
+ if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
146
+ }
147
+ finally { if (e_2) throw e_2.error; }
148
+ }
149
+ });
150
+ }
151
+ /**
152
+ * Get all the deployments for a management group.
153
+ * @param groupId The management group ID.
154
+ * @param options The options parameters.
155
+ */
156
+ listAtManagementGroupScope(groupId, options) {
157
+ const iter = this.listAtManagementGroupScopePagingAll(groupId, options);
158
+ return {
159
+ next() {
160
+ return iter.next();
161
+ },
162
+ [Symbol.asyncIterator]() {
163
+ return this;
164
+ },
165
+ byPage: (settings) => {
166
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
167
+ throw new Error("maxPageSize is not supported by this operation.");
168
+ }
169
+ return this.listAtManagementGroupScopePagingPage(groupId, options, settings);
170
+ }
171
+ };
172
+ }
173
+ listAtManagementGroupScopePagingPage(groupId, options, settings) {
174
+ return tslib_1.__asyncGenerator(this, arguments, function* listAtManagementGroupScopePagingPage_1() {
175
+ let result;
176
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
177
+ if (!continuationToken) {
178
+ result = yield tslib_1.__await(this._listAtManagementGroupScope(groupId, options));
179
+ let page = result.value || [];
180
+ continuationToken = result.nextLink;
181
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
182
+ yield yield tslib_1.__await(page);
183
+ }
184
+ while (continuationToken) {
185
+ result = yield tslib_1.__await(this._listAtManagementGroupScopeNext(groupId, continuationToken, options));
186
+ continuationToken = result.nextLink;
187
+ let page = result.value || [];
188
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
189
+ yield yield tslib_1.__await(page);
190
+ }
191
+ });
192
+ }
193
+ listAtManagementGroupScopePagingAll(groupId, options) {
194
+ return tslib_1.__asyncGenerator(this, arguments, function* listAtManagementGroupScopePagingAll_1() {
195
+ var _a, e_3, _b, _c;
196
+ try {
197
+ for (var _d = true, _e = tslib_1.__asyncValues(this.listAtManagementGroupScopePagingPage(groupId, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
198
+ _c = _f.value;
199
+ _d = false;
200
+ const page = _c;
201
+ yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
202
+ }
203
+ }
204
+ catch (e_3_1) { e_3 = { error: e_3_1 }; }
205
+ finally {
206
+ try {
207
+ if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
208
+ }
209
+ finally { if (e_3) throw e_3.error; }
210
+ }
211
+ });
212
+ }
213
+ /**
214
+ * Get all the deployments for a subscription.
215
+ * @param options The options parameters.
216
+ */
217
+ listAtSubscriptionScope(options) {
218
+ const iter = this.listAtSubscriptionScopePagingAll(options);
219
+ return {
220
+ next() {
221
+ return iter.next();
222
+ },
223
+ [Symbol.asyncIterator]() {
224
+ return this;
225
+ },
226
+ byPage: (settings) => {
227
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
228
+ throw new Error("maxPageSize is not supported by this operation.");
229
+ }
230
+ return this.listAtSubscriptionScopePagingPage(options, settings);
231
+ }
232
+ };
233
+ }
234
+ listAtSubscriptionScopePagingPage(options, settings) {
235
+ return tslib_1.__asyncGenerator(this, arguments, function* listAtSubscriptionScopePagingPage_1() {
236
+ let result;
237
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
238
+ if (!continuationToken) {
239
+ result = yield tslib_1.__await(this._listAtSubscriptionScope(options));
240
+ let page = result.value || [];
241
+ continuationToken = result.nextLink;
242
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
243
+ yield yield tslib_1.__await(page);
244
+ }
245
+ while (continuationToken) {
246
+ result = yield tslib_1.__await(this._listAtSubscriptionScopeNext(continuationToken, options));
247
+ continuationToken = result.nextLink;
248
+ let page = result.value || [];
249
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
250
+ yield yield tslib_1.__await(page);
251
+ }
252
+ });
253
+ }
254
+ listAtSubscriptionScopePagingAll(options) {
255
+ return tslib_1.__asyncGenerator(this, arguments, function* listAtSubscriptionScopePagingAll_1() {
256
+ var _a, e_4, _b, _c;
257
+ try {
258
+ for (var _d = true, _e = tslib_1.__asyncValues(this.listAtSubscriptionScopePagingPage(options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
259
+ _c = _f.value;
260
+ _d = false;
261
+ const page = _c;
262
+ yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
263
+ }
264
+ }
265
+ catch (e_4_1) { e_4 = { error: e_4_1 }; }
266
+ finally {
267
+ try {
268
+ if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
269
+ }
270
+ finally { if (e_4) throw e_4.error; }
271
+ }
272
+ });
273
+ }
274
+ /**
275
+ * Get all the deployments for a resource group.
276
+ * @param resourceGroupName The name of the resource group with the deployments to get. The name is
277
+ * case insensitive.
278
+ * @param options The options parameters.
279
+ */
280
+ listByResourceGroup(resourceGroupName, options) {
281
+ const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
282
+ return {
283
+ next() {
284
+ return iter.next();
285
+ },
286
+ [Symbol.asyncIterator]() {
287
+ return this;
288
+ },
289
+ byPage: (settings) => {
290
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
291
+ throw new Error("maxPageSize is not supported by this operation.");
292
+ }
293
+ return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
294
+ }
295
+ };
296
+ }
297
+ listByResourceGroupPagingPage(resourceGroupName, options, settings) {
298
+ return tslib_1.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
299
+ let result;
300
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
301
+ if (!continuationToken) {
302
+ result = yield tslib_1.__await(this._listByResourceGroup(resourceGroupName, options));
303
+ let page = result.value || [];
304
+ continuationToken = result.nextLink;
305
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
306
+ yield yield tslib_1.__await(page);
307
+ }
308
+ while (continuationToken) {
309
+ result = yield tslib_1.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
310
+ continuationToken = result.nextLink;
311
+ let page = result.value || [];
312
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
313
+ yield yield tslib_1.__await(page);
314
+ }
315
+ });
316
+ }
317
+ listByResourceGroupPagingAll(resourceGroupName, options) {
318
+ return tslib_1.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
319
+ var _a, e_5, _b, _c;
320
+ try {
321
+ for (var _d = true, _e = tslib_1.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
322
+ _c = _f.value;
323
+ _d = false;
324
+ const page = _c;
325
+ yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
326
+ }
327
+ }
328
+ catch (e_5_1) { e_5 = { error: e_5_1 }; }
329
+ finally {
330
+ try {
331
+ if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
332
+ }
333
+ finally { if (e_5) throw e_5.error; }
334
+ }
335
+ });
336
+ }
337
+ /**
338
+ * A template deployment that is currently running cannot be deleted. Deleting a template deployment
339
+ * removes the associated deployment operations. This is an asynchronous operation that returns a
340
+ * status of 202 until the template deployment is successfully deleted. The Location response header
341
+ * contains the URI that is used to obtain the status of the process. While the process is running, a
342
+ * call to the URI in the Location header returns a status of 202. When the process finishes, the URI
343
+ * in the Location header returns a status of 204 on success. If the asynchronous request failed, the
344
+ * URI in the Location header returns an error-level status code.
345
+ * @param scope The resource scope.
346
+ * @param deploymentName The name of the deployment.
347
+ * @param options The options parameters.
348
+ */
349
+ async beginDeleteAtScope(scope, deploymentName, options) {
350
+ const directSendOperation = async (args, spec) => {
351
+ return this.client.sendOperationRequest(args, spec);
352
+ };
353
+ const sendOperation = async (args, spec) => {
354
+ var _a;
355
+ let currentRawResponse = undefined;
356
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
357
+ const callback = (rawResponse, flatResponse) => {
358
+ currentRawResponse = rawResponse;
359
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
360
+ };
361
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
362
+ const flatResponse = await directSendOperation(updatedArgs, spec);
363
+ return {
364
+ flatResponse,
365
+ rawResponse: {
366
+ statusCode: currentRawResponse.status,
367
+ body: currentRawResponse.parsedBody,
368
+ headers: currentRawResponse.headers.toJSON()
369
+ }
370
+ };
371
+ };
372
+ const lro = new lroImpl_js_1.LroImpl(sendOperation, { scope, deploymentName, options }, deleteAtScopeOperationSpec);
373
+ const poller = new core_lro_1.LroEngine(lro, {
374
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
375
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
376
+ });
377
+ await poller.poll();
378
+ return poller;
379
+ }
380
+ /**
381
+ * A template deployment that is currently running cannot be deleted. Deleting a template deployment
382
+ * removes the associated deployment operations. This is an asynchronous operation that returns a
383
+ * status of 202 until the template deployment is successfully deleted. The Location response header
384
+ * contains the URI that is used to obtain the status of the process. While the process is running, a
385
+ * call to the URI in the Location header returns a status of 202. When the process finishes, the URI
386
+ * in the Location header returns a status of 204 on success. If the asynchronous request failed, the
387
+ * URI in the Location header returns an error-level status code.
388
+ * @param scope The resource scope.
389
+ * @param deploymentName The name of the deployment.
390
+ * @param options The options parameters.
391
+ */
392
+ async beginDeleteAtScopeAndWait(scope, deploymentName, options) {
393
+ const poller = await this.beginDeleteAtScope(scope, deploymentName, options);
394
+ return poller.pollUntilDone();
395
+ }
396
+ /**
397
+ * Checks whether the deployment exists.
398
+ * @param scope The resource scope.
399
+ * @param deploymentName The name of the deployment.
400
+ * @param options The options parameters.
401
+ */
402
+ checkExistenceAtScope(scope, deploymentName, options) {
403
+ return this.client.sendOperationRequest({ scope, deploymentName, options }, checkExistenceAtScopeOperationSpec);
404
+ }
405
+ /**
406
+ * You can provide the template and parameters directly in the request or link to JSON files.
407
+ * @param scope The resource scope.
408
+ * @param deploymentName The name of the deployment.
409
+ * @param parameters Additional parameters supplied to the operation.
410
+ * @param options The options parameters.
411
+ */
412
+ async beginCreateOrUpdateAtScope(scope, deploymentName, parameters, options) {
413
+ const directSendOperation = async (args, spec) => {
414
+ return this.client.sendOperationRequest(args, spec);
415
+ };
416
+ const sendOperation = async (args, spec) => {
417
+ var _a;
418
+ let currentRawResponse = undefined;
419
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
420
+ const callback = (rawResponse, flatResponse) => {
421
+ currentRawResponse = rawResponse;
422
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
423
+ };
424
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
425
+ const flatResponse = await directSendOperation(updatedArgs, spec);
426
+ return {
427
+ flatResponse,
428
+ rawResponse: {
429
+ statusCode: currentRawResponse.status,
430
+ body: currentRawResponse.parsedBody,
431
+ headers: currentRawResponse.headers.toJSON()
432
+ }
433
+ };
434
+ };
435
+ const lro = new lroImpl_js_1.LroImpl(sendOperation, { scope, deploymentName, parameters, options }, createOrUpdateAtScopeOperationSpec);
436
+ const poller = new core_lro_1.LroEngine(lro, {
437
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
438
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
439
+ });
440
+ await poller.poll();
441
+ return poller;
442
+ }
443
+ /**
444
+ * You can provide the template and parameters directly in the request or link to JSON files.
445
+ * @param scope The resource scope.
446
+ * @param deploymentName The name of the deployment.
447
+ * @param parameters Additional parameters supplied to the operation.
448
+ * @param options The options parameters.
449
+ */
450
+ async beginCreateOrUpdateAtScopeAndWait(scope, deploymentName, parameters, options) {
451
+ const poller = await this.beginCreateOrUpdateAtScope(scope, deploymentName, parameters, options);
452
+ return poller.pollUntilDone();
453
+ }
454
+ /**
455
+ * Gets a deployment.
456
+ * @param scope The resource scope.
457
+ * @param deploymentName The name of the deployment.
458
+ * @param options The options parameters.
459
+ */
460
+ getAtScope(scope, deploymentName, options) {
461
+ return this.client.sendOperationRequest({ scope, deploymentName, options }, getAtScopeOperationSpec);
462
+ }
463
+ /**
464
+ * You can cancel a deployment only if the provisioningState is Accepted or Running. After the
465
+ * deployment is canceled, the provisioningState is set to Canceled. Canceling a template deployment
466
+ * stops the currently running template deployment and leaves the resources partially deployed.
467
+ * @param scope The resource scope.
468
+ * @param deploymentName The name of the deployment.
469
+ * @param options The options parameters.
470
+ */
471
+ cancelAtScope(scope, deploymentName, options) {
472
+ return this.client.sendOperationRequest({ scope, deploymentName, options }, cancelAtScopeOperationSpec);
473
+ }
474
+ /**
475
+ * Validates whether the specified template is syntactically correct and will be accepted by Azure
476
+ * Resource Manager..
477
+ * @param scope The resource scope.
478
+ * @param deploymentName The name of the deployment.
479
+ * @param parameters Parameters to validate.
480
+ * @param options The options parameters.
481
+ */
482
+ async beginValidateAtScope(scope, deploymentName, parameters, options) {
483
+ const directSendOperation = async (args, spec) => {
484
+ return this.client.sendOperationRequest(args, spec);
485
+ };
486
+ const sendOperation = async (args, spec) => {
487
+ var _a;
488
+ let currentRawResponse = undefined;
489
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
490
+ const callback = (rawResponse, flatResponse) => {
491
+ currentRawResponse = rawResponse;
492
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
493
+ };
494
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
495
+ const flatResponse = await directSendOperation(updatedArgs, spec);
496
+ return {
497
+ flatResponse,
498
+ rawResponse: {
499
+ statusCode: currentRawResponse.status,
500
+ body: currentRawResponse.parsedBody,
501
+ headers: currentRawResponse.headers.toJSON()
502
+ }
503
+ };
504
+ };
505
+ const lro = new lroImpl_js_1.LroImpl(sendOperation, { scope, deploymentName, parameters, options }, validateAtScopeOperationSpec);
506
+ const poller = new core_lro_1.LroEngine(lro, {
507
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
508
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
509
+ });
510
+ await poller.poll();
511
+ return poller;
512
+ }
513
+ /**
514
+ * Validates whether the specified template is syntactically correct and will be accepted by Azure
515
+ * Resource Manager..
516
+ * @param scope The resource scope.
517
+ * @param deploymentName The name of the deployment.
518
+ * @param parameters Parameters to validate.
519
+ * @param options The options parameters.
520
+ */
521
+ async beginValidateAtScopeAndWait(scope, deploymentName, parameters, options) {
522
+ const poller = await this.beginValidateAtScope(scope, deploymentName, parameters, options);
523
+ return poller.pollUntilDone();
524
+ }
525
+ /**
526
+ * Exports the template used for specified deployment.
527
+ * @param scope The resource scope.
528
+ * @param deploymentName The name of the deployment.
529
+ * @param options The options parameters.
530
+ */
531
+ exportTemplateAtScope(scope, deploymentName, options) {
532
+ return this.client.sendOperationRequest({ scope, deploymentName, options }, exportTemplateAtScopeOperationSpec);
533
+ }
534
+ /**
535
+ * Get all the deployments at the given scope.
536
+ * @param scope The resource scope.
537
+ * @param options The options parameters.
538
+ */
539
+ _listAtScope(scope, options) {
540
+ return this.client.sendOperationRequest({ scope, options }, listAtScopeOperationSpec);
541
+ }
542
+ /**
543
+ * A template deployment that is currently running cannot be deleted. Deleting a template deployment
544
+ * removes the associated deployment operations. This is an asynchronous operation that returns a
545
+ * status of 202 until the template deployment is successfully deleted. The Location response header
546
+ * contains the URI that is used to obtain the status of the process. While the process is running, a
547
+ * call to the URI in the Location header returns a status of 202. When the process finishes, the URI
548
+ * in the Location header returns a status of 204 on success. If the asynchronous request failed, the
549
+ * URI in the Location header returns an error-level status code.
550
+ * @param deploymentName The name of the deployment.
551
+ * @param options The options parameters.
552
+ */
553
+ async beginDeleteAtTenantScope(deploymentName, options) {
554
+ const directSendOperation = async (args, spec) => {
555
+ return this.client.sendOperationRequest(args, spec);
556
+ };
557
+ const sendOperation = async (args, spec) => {
558
+ var _a;
559
+ let currentRawResponse = undefined;
560
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
561
+ const callback = (rawResponse, flatResponse) => {
562
+ currentRawResponse = rawResponse;
563
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
564
+ };
565
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
566
+ const flatResponse = await directSendOperation(updatedArgs, spec);
567
+ return {
568
+ flatResponse,
569
+ rawResponse: {
570
+ statusCode: currentRawResponse.status,
571
+ body: currentRawResponse.parsedBody,
572
+ headers: currentRawResponse.headers.toJSON()
573
+ }
574
+ };
575
+ };
576
+ const lro = new lroImpl_js_1.LroImpl(sendOperation, { deploymentName, options }, deleteAtTenantScopeOperationSpec);
577
+ const poller = new core_lro_1.LroEngine(lro, {
578
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
579
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
580
+ });
581
+ await poller.poll();
582
+ return poller;
583
+ }
584
+ /**
585
+ * A template deployment that is currently running cannot be deleted. Deleting a template deployment
586
+ * removes the associated deployment operations. This is an asynchronous operation that returns a
587
+ * status of 202 until the template deployment is successfully deleted. The Location response header
588
+ * contains the URI that is used to obtain the status of the process. While the process is running, a
589
+ * call to the URI in the Location header returns a status of 202. When the process finishes, the URI
590
+ * in the Location header returns a status of 204 on success. If the asynchronous request failed, the
591
+ * URI in the Location header returns an error-level status code.
592
+ * @param deploymentName The name of the deployment.
593
+ * @param options The options parameters.
594
+ */
595
+ async beginDeleteAtTenantScopeAndWait(deploymentName, options) {
596
+ const poller = await this.beginDeleteAtTenantScope(deploymentName, options);
597
+ return poller.pollUntilDone();
598
+ }
599
+ /**
600
+ * Checks whether the deployment exists.
601
+ * @param deploymentName The name of the deployment.
602
+ * @param options The options parameters.
603
+ */
604
+ checkExistenceAtTenantScope(deploymentName, options) {
605
+ return this.client.sendOperationRequest({ deploymentName, options }, checkExistenceAtTenantScopeOperationSpec);
606
+ }
607
+ /**
608
+ * You can provide the template and parameters directly in the request or link to JSON files.
609
+ * @param deploymentName The name of the deployment.
610
+ * @param parameters Additional parameters supplied to the operation.
611
+ * @param options The options parameters.
612
+ */
613
+ async beginCreateOrUpdateAtTenantScope(deploymentName, parameters, options) {
614
+ const directSendOperation = async (args, spec) => {
615
+ return this.client.sendOperationRequest(args, spec);
616
+ };
617
+ const sendOperation = async (args, spec) => {
618
+ var _a;
619
+ let currentRawResponse = undefined;
620
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
621
+ const callback = (rawResponse, flatResponse) => {
622
+ currentRawResponse = rawResponse;
623
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
624
+ };
625
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
626
+ const flatResponse = await directSendOperation(updatedArgs, spec);
627
+ return {
628
+ flatResponse,
629
+ rawResponse: {
630
+ statusCode: currentRawResponse.status,
631
+ body: currentRawResponse.parsedBody,
632
+ headers: currentRawResponse.headers.toJSON()
633
+ }
634
+ };
635
+ };
636
+ const lro = new lroImpl_js_1.LroImpl(sendOperation, { deploymentName, parameters, options }, createOrUpdateAtTenantScopeOperationSpec);
637
+ const poller = new core_lro_1.LroEngine(lro, {
638
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
639
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
640
+ });
641
+ await poller.poll();
642
+ return poller;
643
+ }
644
+ /**
645
+ * You can provide the template and parameters directly in the request or link to JSON files.
646
+ * @param deploymentName The name of the deployment.
647
+ * @param parameters Additional parameters supplied to the operation.
648
+ * @param options The options parameters.
649
+ */
650
+ async beginCreateOrUpdateAtTenantScopeAndWait(deploymentName, parameters, options) {
651
+ const poller = await this.beginCreateOrUpdateAtTenantScope(deploymentName, parameters, options);
652
+ return poller.pollUntilDone();
653
+ }
654
+ /**
655
+ * Gets a deployment.
656
+ * @param deploymentName The name of the deployment.
657
+ * @param options The options parameters.
658
+ */
659
+ getAtTenantScope(deploymentName, options) {
660
+ return this.client.sendOperationRequest({ deploymentName, options }, getAtTenantScopeOperationSpec);
661
+ }
662
+ /**
663
+ * You can cancel a deployment only if the provisioningState is Accepted or Running. After the
664
+ * deployment is canceled, the provisioningState is set to Canceled. Canceling a template deployment
665
+ * stops the currently running template deployment and leaves the resources partially deployed.
666
+ * @param deploymentName The name of the deployment.
667
+ * @param options The options parameters.
668
+ */
669
+ cancelAtTenantScope(deploymentName, options) {
670
+ return this.client.sendOperationRequest({ deploymentName, options }, cancelAtTenantScopeOperationSpec);
671
+ }
672
+ /**
673
+ * Validates whether the specified template is syntactically correct and will be accepted by Azure
674
+ * Resource Manager..
675
+ * @param deploymentName The name of the deployment.
676
+ * @param parameters Parameters to validate.
677
+ * @param options The options parameters.
678
+ */
679
+ async beginValidateAtTenantScope(deploymentName, parameters, options) {
680
+ const directSendOperation = async (args, spec) => {
681
+ return this.client.sendOperationRequest(args, spec);
682
+ };
683
+ const sendOperation = async (args, spec) => {
684
+ var _a;
685
+ let currentRawResponse = undefined;
686
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
687
+ const callback = (rawResponse, flatResponse) => {
688
+ currentRawResponse = rawResponse;
689
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
690
+ };
691
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
692
+ const flatResponse = await directSendOperation(updatedArgs, spec);
693
+ return {
694
+ flatResponse,
695
+ rawResponse: {
696
+ statusCode: currentRawResponse.status,
697
+ body: currentRawResponse.parsedBody,
698
+ headers: currentRawResponse.headers.toJSON()
699
+ }
700
+ };
701
+ };
702
+ const lro = new lroImpl_js_1.LroImpl(sendOperation, { deploymentName, parameters, options }, validateAtTenantScopeOperationSpec);
703
+ const poller = new core_lro_1.LroEngine(lro, {
704
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
705
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
706
+ });
707
+ await poller.poll();
708
+ return poller;
709
+ }
710
+ /**
711
+ * Validates whether the specified template is syntactically correct and will be accepted by Azure
712
+ * Resource Manager..
713
+ * @param deploymentName The name of the deployment.
714
+ * @param parameters Parameters to validate.
715
+ * @param options The options parameters.
716
+ */
717
+ async beginValidateAtTenantScopeAndWait(deploymentName, parameters, options) {
718
+ const poller = await this.beginValidateAtTenantScope(deploymentName, parameters, options);
719
+ return poller.pollUntilDone();
720
+ }
721
+ /**
722
+ * Returns changes that will be made by the deployment if executed at the scope of the tenant group.
723
+ * @param deploymentName The name of the deployment.
724
+ * @param parameters Parameters to validate.
725
+ * @param options The options parameters.
726
+ */
727
+ async beginWhatIfAtTenantScope(deploymentName, parameters, options) {
728
+ const directSendOperation = async (args, spec) => {
729
+ return this.client.sendOperationRequest(args, spec);
730
+ };
731
+ const sendOperation = async (args, spec) => {
732
+ var _a;
733
+ let currentRawResponse = undefined;
734
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
735
+ const callback = (rawResponse, flatResponse) => {
736
+ currentRawResponse = rawResponse;
737
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
738
+ };
739
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
740
+ const flatResponse = await directSendOperation(updatedArgs, spec);
741
+ return {
742
+ flatResponse,
743
+ rawResponse: {
744
+ statusCode: currentRawResponse.status,
745
+ body: currentRawResponse.parsedBody,
746
+ headers: currentRawResponse.headers.toJSON()
747
+ }
748
+ };
749
+ };
750
+ const lro = new lroImpl_js_1.LroImpl(sendOperation, { deploymentName, parameters, options }, whatIfAtTenantScopeOperationSpec);
751
+ const poller = new core_lro_1.LroEngine(lro, {
752
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
753
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
754
+ lroResourceLocationConfig: "location"
755
+ });
756
+ await poller.poll();
757
+ return poller;
758
+ }
759
+ /**
760
+ * Returns changes that will be made by the deployment if executed at the scope of the tenant group.
761
+ * @param deploymentName The name of the deployment.
762
+ * @param parameters Parameters to validate.
763
+ * @param options The options parameters.
764
+ */
765
+ async beginWhatIfAtTenantScopeAndWait(deploymentName, parameters, options) {
766
+ const poller = await this.beginWhatIfAtTenantScope(deploymentName, parameters, options);
767
+ return poller.pollUntilDone();
768
+ }
769
+ /**
770
+ * Exports the template used for specified deployment.
771
+ * @param deploymentName The name of the deployment.
772
+ * @param options The options parameters.
773
+ */
774
+ exportTemplateAtTenantScope(deploymentName, options) {
775
+ return this.client.sendOperationRequest({ deploymentName, options }, exportTemplateAtTenantScopeOperationSpec);
776
+ }
777
+ /**
778
+ * Get all the deployments at the tenant scope.
779
+ * @param options The options parameters.
780
+ */
781
+ _listAtTenantScope(options) {
782
+ return this.client.sendOperationRequest({ options }, listAtTenantScopeOperationSpec);
783
+ }
784
+ /**
785
+ * A template deployment that is currently running cannot be deleted. Deleting a template deployment
786
+ * removes the associated deployment operations. This is an asynchronous operation that returns a
787
+ * status of 202 until the template deployment is successfully deleted. The Location response header
788
+ * contains the URI that is used to obtain the status of the process. While the process is running, a
789
+ * call to the URI in the Location header returns a status of 202. When the process finishes, the URI
790
+ * in the Location header returns a status of 204 on success. If the asynchronous request failed, the
791
+ * URI in the Location header returns an error-level status code.
792
+ * @param groupId The management group ID.
793
+ * @param deploymentName The name of the deployment.
794
+ * @param options The options parameters.
795
+ */
796
+ async beginDeleteAtManagementGroupScope(groupId, deploymentName, options) {
797
+ const directSendOperation = async (args, spec) => {
798
+ return this.client.sendOperationRequest(args, spec);
799
+ };
800
+ const sendOperation = async (args, spec) => {
801
+ var _a;
802
+ let currentRawResponse = undefined;
803
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
804
+ const callback = (rawResponse, flatResponse) => {
805
+ currentRawResponse = rawResponse;
806
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
807
+ };
808
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
809
+ const flatResponse = await directSendOperation(updatedArgs, spec);
810
+ return {
811
+ flatResponse,
812
+ rawResponse: {
813
+ statusCode: currentRawResponse.status,
814
+ body: currentRawResponse.parsedBody,
815
+ headers: currentRawResponse.headers.toJSON()
816
+ }
817
+ };
818
+ };
819
+ const lro = new lroImpl_js_1.LroImpl(sendOperation, { groupId, deploymentName, options }, deleteAtManagementGroupScopeOperationSpec);
820
+ const poller = new core_lro_1.LroEngine(lro, {
821
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
822
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
823
+ });
824
+ await poller.poll();
825
+ return poller;
826
+ }
827
+ /**
828
+ * A template deployment that is currently running cannot be deleted. Deleting a template deployment
829
+ * removes the associated deployment operations. This is an asynchronous operation that returns a
830
+ * status of 202 until the template deployment is successfully deleted. The Location response header
831
+ * contains the URI that is used to obtain the status of the process. While the process is running, a
832
+ * call to the URI in the Location header returns a status of 202. When the process finishes, the URI
833
+ * in the Location header returns a status of 204 on success. If the asynchronous request failed, the
834
+ * URI in the Location header returns an error-level status code.
835
+ * @param groupId The management group ID.
836
+ * @param deploymentName The name of the deployment.
837
+ * @param options The options parameters.
838
+ */
839
+ async beginDeleteAtManagementGroupScopeAndWait(groupId, deploymentName, options) {
840
+ const poller = await this.beginDeleteAtManagementGroupScope(groupId, deploymentName, options);
841
+ return poller.pollUntilDone();
842
+ }
843
+ /**
844
+ * Checks whether the deployment exists.
845
+ * @param groupId The management group ID.
846
+ * @param deploymentName The name of the deployment.
847
+ * @param options The options parameters.
848
+ */
849
+ checkExistenceAtManagementGroupScope(groupId, deploymentName, options) {
850
+ return this.client.sendOperationRequest({ groupId, deploymentName, options }, checkExistenceAtManagementGroupScopeOperationSpec);
851
+ }
852
+ /**
853
+ * You can provide the template and parameters directly in the request or link to JSON files.
854
+ * @param groupId The management group ID.
855
+ * @param deploymentName The name of the deployment.
856
+ * @param parameters Additional parameters supplied to the operation.
857
+ * @param options The options parameters.
858
+ */
859
+ async beginCreateOrUpdateAtManagementGroupScope(groupId, deploymentName, parameters, options) {
860
+ const directSendOperation = async (args, spec) => {
861
+ return this.client.sendOperationRequest(args, spec);
862
+ };
863
+ const sendOperation = async (args, spec) => {
864
+ var _a;
865
+ let currentRawResponse = undefined;
866
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
867
+ const callback = (rawResponse, flatResponse) => {
868
+ currentRawResponse = rawResponse;
869
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
870
+ };
871
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
872
+ const flatResponse = await directSendOperation(updatedArgs, spec);
873
+ return {
874
+ flatResponse,
875
+ rawResponse: {
876
+ statusCode: currentRawResponse.status,
877
+ body: currentRawResponse.parsedBody,
878
+ headers: currentRawResponse.headers.toJSON()
879
+ }
880
+ };
881
+ };
882
+ const lro = new lroImpl_js_1.LroImpl(sendOperation, { groupId, deploymentName, parameters, options }, createOrUpdateAtManagementGroupScopeOperationSpec);
883
+ const poller = new core_lro_1.LroEngine(lro, {
884
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
885
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
886
+ });
887
+ await poller.poll();
888
+ return poller;
889
+ }
890
+ /**
891
+ * You can provide the template and parameters directly in the request or link to JSON files.
892
+ * @param groupId The management group ID.
893
+ * @param deploymentName The name of the deployment.
894
+ * @param parameters Additional parameters supplied to the operation.
895
+ * @param options The options parameters.
896
+ */
897
+ async beginCreateOrUpdateAtManagementGroupScopeAndWait(groupId, deploymentName, parameters, options) {
898
+ const poller = await this.beginCreateOrUpdateAtManagementGroupScope(groupId, deploymentName, parameters, options);
899
+ return poller.pollUntilDone();
900
+ }
901
+ /**
902
+ * Gets a deployment.
903
+ * @param groupId The management group ID.
904
+ * @param deploymentName The name of the deployment.
905
+ * @param options The options parameters.
906
+ */
907
+ getAtManagementGroupScope(groupId, deploymentName, options) {
908
+ return this.client.sendOperationRequest({ groupId, deploymentName, options }, getAtManagementGroupScopeOperationSpec);
909
+ }
910
+ /**
911
+ * You can cancel a deployment only if the provisioningState is Accepted or Running. After the
912
+ * deployment is canceled, the provisioningState is set to Canceled. Canceling a template deployment
913
+ * stops the currently running template deployment and leaves the resources partially deployed.
914
+ * @param groupId The management group ID.
915
+ * @param deploymentName The name of the deployment.
916
+ * @param options The options parameters.
917
+ */
918
+ cancelAtManagementGroupScope(groupId, deploymentName, options) {
919
+ return this.client.sendOperationRequest({ groupId, deploymentName, options }, cancelAtManagementGroupScopeOperationSpec);
920
+ }
921
+ /**
922
+ * Validates whether the specified template is syntactically correct and will be accepted by Azure
923
+ * Resource Manager..
924
+ * @param groupId The management group ID.
925
+ * @param deploymentName The name of the deployment.
926
+ * @param parameters Parameters to validate.
927
+ * @param options The options parameters.
928
+ */
929
+ async beginValidateAtManagementGroupScope(groupId, deploymentName, parameters, options) {
930
+ const directSendOperation = async (args, spec) => {
931
+ return this.client.sendOperationRequest(args, spec);
932
+ };
933
+ const sendOperation = async (args, spec) => {
934
+ var _a;
935
+ let currentRawResponse = undefined;
936
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
937
+ const callback = (rawResponse, flatResponse) => {
938
+ currentRawResponse = rawResponse;
939
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
940
+ };
941
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
942
+ const flatResponse = await directSendOperation(updatedArgs, spec);
943
+ return {
944
+ flatResponse,
945
+ rawResponse: {
946
+ statusCode: currentRawResponse.status,
947
+ body: currentRawResponse.parsedBody,
948
+ headers: currentRawResponse.headers.toJSON()
949
+ }
950
+ };
951
+ };
952
+ const lro = new lroImpl_js_1.LroImpl(sendOperation, { groupId, deploymentName, parameters, options }, validateAtManagementGroupScopeOperationSpec);
953
+ const poller = new core_lro_1.LroEngine(lro, {
954
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
955
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
956
+ });
957
+ await poller.poll();
958
+ return poller;
959
+ }
960
+ /**
961
+ * Validates whether the specified template is syntactically correct and will be accepted by Azure
962
+ * Resource Manager..
963
+ * @param groupId The management group ID.
964
+ * @param deploymentName The name of the deployment.
965
+ * @param parameters Parameters to validate.
966
+ * @param options The options parameters.
967
+ */
968
+ async beginValidateAtManagementGroupScopeAndWait(groupId, deploymentName, parameters, options) {
969
+ const poller = await this.beginValidateAtManagementGroupScope(groupId, deploymentName, parameters, options);
970
+ return poller.pollUntilDone();
971
+ }
972
+ /**
973
+ * Returns changes that will be made by the deployment if executed at the scope of the management
974
+ * group.
975
+ * @param groupId The management group ID.
976
+ * @param deploymentName The name of the deployment.
977
+ * @param parameters Parameters to validate.
978
+ * @param options The options parameters.
979
+ */
980
+ async beginWhatIfAtManagementGroupScope(groupId, deploymentName, parameters, options) {
981
+ const directSendOperation = async (args, spec) => {
982
+ return this.client.sendOperationRequest(args, spec);
983
+ };
984
+ const sendOperation = async (args, spec) => {
985
+ var _a;
986
+ let currentRawResponse = undefined;
987
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
988
+ const callback = (rawResponse, flatResponse) => {
989
+ currentRawResponse = rawResponse;
990
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
991
+ };
992
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
993
+ const flatResponse = await directSendOperation(updatedArgs, spec);
994
+ return {
995
+ flatResponse,
996
+ rawResponse: {
997
+ statusCode: currentRawResponse.status,
998
+ body: currentRawResponse.parsedBody,
999
+ headers: currentRawResponse.headers.toJSON()
1000
+ }
1001
+ };
1002
+ };
1003
+ const lro = new lroImpl_js_1.LroImpl(sendOperation, { groupId, deploymentName, parameters, options }, whatIfAtManagementGroupScopeOperationSpec);
1004
+ const poller = new core_lro_1.LroEngine(lro, {
1005
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1006
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
1007
+ lroResourceLocationConfig: "location"
1008
+ });
1009
+ await poller.poll();
1010
+ return poller;
1011
+ }
1012
+ /**
1013
+ * Returns changes that will be made by the deployment if executed at the scope of the management
1014
+ * group.
1015
+ * @param groupId The management group ID.
1016
+ * @param deploymentName The name of the deployment.
1017
+ * @param parameters Parameters to validate.
1018
+ * @param options The options parameters.
1019
+ */
1020
+ async beginWhatIfAtManagementGroupScopeAndWait(groupId, deploymentName, parameters, options) {
1021
+ const poller = await this.beginWhatIfAtManagementGroupScope(groupId, deploymentName, parameters, options);
1022
+ return poller.pollUntilDone();
1023
+ }
1024
+ /**
1025
+ * Exports the template used for specified deployment.
1026
+ * @param groupId The management group ID.
1027
+ * @param deploymentName The name of the deployment.
1028
+ * @param options The options parameters.
1029
+ */
1030
+ exportTemplateAtManagementGroupScope(groupId, deploymentName, options) {
1031
+ return this.client.sendOperationRequest({ groupId, deploymentName, options }, exportTemplateAtManagementGroupScopeOperationSpec);
1032
+ }
1033
+ /**
1034
+ * Get all the deployments for a management group.
1035
+ * @param groupId The management group ID.
1036
+ * @param options The options parameters.
1037
+ */
1038
+ _listAtManagementGroupScope(groupId, options) {
1039
+ return this.client.sendOperationRequest({ groupId, options }, listAtManagementGroupScopeOperationSpec);
1040
+ }
1041
+ /**
1042
+ * A template deployment that is currently running cannot be deleted. Deleting a template deployment
1043
+ * removes the associated deployment operations. This is an asynchronous operation that returns a
1044
+ * status of 202 until the template deployment is successfully deleted. The Location response header
1045
+ * contains the URI that is used to obtain the status of the process. While the process is running, a
1046
+ * call to the URI in the Location header returns a status of 202. When the process finishes, the URI
1047
+ * in the Location header returns a status of 204 on success. If the asynchronous request failed, the
1048
+ * URI in the Location header returns an error-level status code.
1049
+ * @param deploymentName The name of the deployment.
1050
+ * @param options The options parameters.
1051
+ */
1052
+ async beginDeleteAtSubscriptionScope(deploymentName, options) {
1053
+ const directSendOperation = async (args, spec) => {
1054
+ return this.client.sendOperationRequest(args, spec);
1055
+ };
1056
+ const sendOperation = async (args, spec) => {
1057
+ var _a;
1058
+ let currentRawResponse = undefined;
1059
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1060
+ const callback = (rawResponse, flatResponse) => {
1061
+ currentRawResponse = rawResponse;
1062
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1063
+ };
1064
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1065
+ const flatResponse = await directSendOperation(updatedArgs, spec);
1066
+ return {
1067
+ flatResponse,
1068
+ rawResponse: {
1069
+ statusCode: currentRawResponse.status,
1070
+ body: currentRawResponse.parsedBody,
1071
+ headers: currentRawResponse.headers.toJSON()
1072
+ }
1073
+ };
1074
+ };
1075
+ const lro = new lroImpl_js_1.LroImpl(sendOperation, { deploymentName, options }, deleteAtSubscriptionScopeOperationSpec);
1076
+ const poller = new core_lro_1.LroEngine(lro, {
1077
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1078
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
1079
+ });
1080
+ await poller.poll();
1081
+ return poller;
1082
+ }
1083
+ /**
1084
+ * A template deployment that is currently running cannot be deleted. Deleting a template deployment
1085
+ * removes the associated deployment operations. This is an asynchronous operation that returns a
1086
+ * status of 202 until the template deployment is successfully deleted. The Location response header
1087
+ * contains the URI that is used to obtain the status of the process. While the process is running, a
1088
+ * call to the URI in the Location header returns a status of 202. When the process finishes, the URI
1089
+ * in the Location header returns a status of 204 on success. If the asynchronous request failed, the
1090
+ * URI in the Location header returns an error-level status code.
1091
+ * @param deploymentName The name of the deployment.
1092
+ * @param options The options parameters.
1093
+ */
1094
+ async beginDeleteAtSubscriptionScopeAndWait(deploymentName, options) {
1095
+ const poller = await this.beginDeleteAtSubscriptionScope(deploymentName, options);
1096
+ return poller.pollUntilDone();
1097
+ }
1098
+ /**
1099
+ * Checks whether the deployment exists.
1100
+ * @param deploymentName The name of the deployment.
1101
+ * @param options The options parameters.
1102
+ */
1103
+ checkExistenceAtSubscriptionScope(deploymentName, options) {
1104
+ return this.client.sendOperationRequest({ deploymentName, options }, checkExistenceAtSubscriptionScopeOperationSpec);
1105
+ }
1106
+ /**
1107
+ * You can provide the template and parameters directly in the request or link to JSON files.
1108
+ * @param deploymentName The name of the deployment.
1109
+ * @param parameters Additional parameters supplied to the operation.
1110
+ * @param options The options parameters.
1111
+ */
1112
+ async beginCreateOrUpdateAtSubscriptionScope(deploymentName, parameters, options) {
1113
+ const directSendOperation = async (args, spec) => {
1114
+ return this.client.sendOperationRequest(args, spec);
1115
+ };
1116
+ const sendOperation = async (args, spec) => {
1117
+ var _a;
1118
+ let currentRawResponse = undefined;
1119
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1120
+ const callback = (rawResponse, flatResponse) => {
1121
+ currentRawResponse = rawResponse;
1122
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1123
+ };
1124
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1125
+ const flatResponse = await directSendOperation(updatedArgs, spec);
1126
+ return {
1127
+ flatResponse,
1128
+ rawResponse: {
1129
+ statusCode: currentRawResponse.status,
1130
+ body: currentRawResponse.parsedBody,
1131
+ headers: currentRawResponse.headers.toJSON()
1132
+ }
1133
+ };
1134
+ };
1135
+ const lro = new lroImpl_js_1.LroImpl(sendOperation, { deploymentName, parameters, options }, createOrUpdateAtSubscriptionScopeOperationSpec);
1136
+ const poller = new core_lro_1.LroEngine(lro, {
1137
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1138
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
1139
+ });
1140
+ await poller.poll();
1141
+ return poller;
1142
+ }
1143
+ /**
1144
+ * You can provide the template and parameters directly in the request or link to JSON files.
1145
+ * @param deploymentName The name of the deployment.
1146
+ * @param parameters Additional parameters supplied to the operation.
1147
+ * @param options The options parameters.
1148
+ */
1149
+ async beginCreateOrUpdateAtSubscriptionScopeAndWait(deploymentName, parameters, options) {
1150
+ const poller = await this.beginCreateOrUpdateAtSubscriptionScope(deploymentName, parameters, options);
1151
+ return poller.pollUntilDone();
1152
+ }
1153
+ /**
1154
+ * Gets a deployment.
1155
+ * @param deploymentName The name of the deployment.
1156
+ * @param options The options parameters.
1157
+ */
1158
+ getAtSubscriptionScope(deploymentName, options) {
1159
+ return this.client.sendOperationRequest({ deploymentName, options }, getAtSubscriptionScopeOperationSpec);
1160
+ }
1161
+ /**
1162
+ * You can cancel a deployment only if the provisioningState is Accepted or Running. After the
1163
+ * deployment is canceled, the provisioningState is set to Canceled. Canceling a template deployment
1164
+ * stops the currently running template deployment and leaves the resources partially deployed.
1165
+ * @param deploymentName The name of the deployment.
1166
+ * @param options The options parameters.
1167
+ */
1168
+ cancelAtSubscriptionScope(deploymentName, options) {
1169
+ return this.client.sendOperationRequest({ deploymentName, options }, cancelAtSubscriptionScopeOperationSpec);
1170
+ }
1171
+ /**
1172
+ * Validates whether the specified template is syntactically correct and will be accepted by Azure
1173
+ * Resource Manager..
1174
+ * @param deploymentName The name of the deployment.
1175
+ * @param parameters Parameters to validate.
1176
+ * @param options The options parameters.
1177
+ */
1178
+ async beginValidateAtSubscriptionScope(deploymentName, parameters, options) {
1179
+ const directSendOperation = async (args, spec) => {
1180
+ return this.client.sendOperationRequest(args, spec);
1181
+ };
1182
+ const sendOperation = async (args, spec) => {
1183
+ var _a;
1184
+ let currentRawResponse = undefined;
1185
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1186
+ const callback = (rawResponse, flatResponse) => {
1187
+ currentRawResponse = rawResponse;
1188
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1189
+ };
1190
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1191
+ const flatResponse = await directSendOperation(updatedArgs, spec);
1192
+ return {
1193
+ flatResponse,
1194
+ rawResponse: {
1195
+ statusCode: currentRawResponse.status,
1196
+ body: currentRawResponse.parsedBody,
1197
+ headers: currentRawResponse.headers.toJSON()
1198
+ }
1199
+ };
1200
+ };
1201
+ const lro = new lroImpl_js_1.LroImpl(sendOperation, { deploymentName, parameters, options }, validateAtSubscriptionScopeOperationSpec);
1202
+ const poller = new core_lro_1.LroEngine(lro, {
1203
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1204
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
1205
+ });
1206
+ await poller.poll();
1207
+ return poller;
1208
+ }
1209
+ /**
1210
+ * Validates whether the specified template is syntactically correct and will be accepted by Azure
1211
+ * Resource Manager..
1212
+ * @param deploymentName The name of the deployment.
1213
+ * @param parameters Parameters to validate.
1214
+ * @param options The options parameters.
1215
+ */
1216
+ async beginValidateAtSubscriptionScopeAndWait(deploymentName, parameters, options) {
1217
+ const poller = await this.beginValidateAtSubscriptionScope(deploymentName, parameters, options);
1218
+ return poller.pollUntilDone();
1219
+ }
1220
+ /**
1221
+ * Returns changes that will be made by the deployment if executed at the scope of the subscription.
1222
+ * @param deploymentName The name of the deployment.
1223
+ * @param parameters Parameters to What If.
1224
+ * @param options The options parameters.
1225
+ */
1226
+ async beginWhatIfAtSubscriptionScope(deploymentName, parameters, options) {
1227
+ const directSendOperation = async (args, spec) => {
1228
+ return this.client.sendOperationRequest(args, spec);
1229
+ };
1230
+ const sendOperation = async (args, spec) => {
1231
+ var _a;
1232
+ let currentRawResponse = undefined;
1233
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1234
+ const callback = (rawResponse, flatResponse) => {
1235
+ currentRawResponse = rawResponse;
1236
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1237
+ };
1238
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1239
+ const flatResponse = await directSendOperation(updatedArgs, spec);
1240
+ return {
1241
+ flatResponse,
1242
+ rawResponse: {
1243
+ statusCode: currentRawResponse.status,
1244
+ body: currentRawResponse.parsedBody,
1245
+ headers: currentRawResponse.headers.toJSON()
1246
+ }
1247
+ };
1248
+ };
1249
+ const lro = new lroImpl_js_1.LroImpl(sendOperation, { deploymentName, parameters, options }, whatIfAtSubscriptionScopeOperationSpec);
1250
+ const poller = new core_lro_1.LroEngine(lro, {
1251
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1252
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
1253
+ lroResourceLocationConfig: "location"
1254
+ });
1255
+ await poller.poll();
1256
+ return poller;
1257
+ }
1258
+ /**
1259
+ * Returns changes that will be made by the deployment if executed at the scope of the subscription.
1260
+ * @param deploymentName The name of the deployment.
1261
+ * @param parameters Parameters to What If.
1262
+ * @param options The options parameters.
1263
+ */
1264
+ async beginWhatIfAtSubscriptionScopeAndWait(deploymentName, parameters, options) {
1265
+ const poller = await this.beginWhatIfAtSubscriptionScope(deploymentName, parameters, options);
1266
+ return poller.pollUntilDone();
1267
+ }
1268
+ /**
1269
+ * Exports the template used for specified deployment.
1270
+ * @param deploymentName The name of the deployment.
1271
+ * @param options The options parameters.
1272
+ */
1273
+ exportTemplateAtSubscriptionScope(deploymentName, options) {
1274
+ return this.client.sendOperationRequest({ deploymentName, options }, exportTemplateAtSubscriptionScopeOperationSpec);
1275
+ }
1276
+ /**
1277
+ * Get all the deployments for a subscription.
1278
+ * @param options The options parameters.
1279
+ */
1280
+ _listAtSubscriptionScope(options) {
1281
+ return this.client.sendOperationRequest({ options }, listAtSubscriptionScopeOperationSpec);
1282
+ }
1283
+ /**
1284
+ * A template deployment that is currently running cannot be deleted. Deleting a template deployment
1285
+ * removes the associated deployment operations. Deleting a template deployment does not affect the
1286
+ * state of the resource group. This is an asynchronous operation that returns a status of 202 until
1287
+ * the template deployment is successfully deleted. The Location response header contains the URI that
1288
+ * is used to obtain the status of the process. While the process is running, a call to the URI in the
1289
+ * Location header returns a status of 202. When the process finishes, the URI in the Location header
1290
+ * returns a status of 204 on success. If the asynchronous request failed, the URI in the Location
1291
+ * header returns an error-level status code.
1292
+ * @param resourceGroupName The name of the resource group with the deployment to delete. The name is
1293
+ * case insensitive.
1294
+ * @param deploymentName The name of the deployment.
1295
+ * @param options The options parameters.
1296
+ */
1297
+ async beginDelete(resourceGroupName, deploymentName, options) {
1298
+ const directSendOperation = async (args, spec) => {
1299
+ return this.client.sendOperationRequest(args, spec);
1300
+ };
1301
+ const sendOperation = async (args, spec) => {
1302
+ var _a;
1303
+ let currentRawResponse = undefined;
1304
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1305
+ const callback = (rawResponse, flatResponse) => {
1306
+ currentRawResponse = rawResponse;
1307
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1308
+ };
1309
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1310
+ const flatResponse = await directSendOperation(updatedArgs, spec);
1311
+ return {
1312
+ flatResponse,
1313
+ rawResponse: {
1314
+ statusCode: currentRawResponse.status,
1315
+ body: currentRawResponse.parsedBody,
1316
+ headers: currentRawResponse.headers.toJSON()
1317
+ }
1318
+ };
1319
+ };
1320
+ const lro = new lroImpl_js_1.LroImpl(sendOperation, { resourceGroupName, deploymentName, options }, deleteOperationSpec);
1321
+ const poller = new core_lro_1.LroEngine(lro, {
1322
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1323
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
1324
+ });
1325
+ await poller.poll();
1326
+ return poller;
1327
+ }
1328
+ /**
1329
+ * A template deployment that is currently running cannot be deleted. Deleting a template deployment
1330
+ * removes the associated deployment operations. Deleting a template deployment does not affect the
1331
+ * state of the resource group. This is an asynchronous operation that returns a status of 202 until
1332
+ * the template deployment is successfully deleted. The Location response header contains the URI that
1333
+ * is used to obtain the status of the process. While the process is running, a call to the URI in the
1334
+ * Location header returns a status of 202. When the process finishes, the URI in the Location header
1335
+ * returns a status of 204 on success. If the asynchronous request failed, the URI in the Location
1336
+ * header returns an error-level status code.
1337
+ * @param resourceGroupName The name of the resource group with the deployment to delete. The name is
1338
+ * case insensitive.
1339
+ * @param deploymentName The name of the deployment.
1340
+ * @param options The options parameters.
1341
+ */
1342
+ async beginDeleteAndWait(resourceGroupName, deploymentName, options) {
1343
+ const poller = await this.beginDelete(resourceGroupName, deploymentName, options);
1344
+ return poller.pollUntilDone();
1345
+ }
1346
+ /**
1347
+ * Checks whether the deployment exists.
1348
+ * @param resourceGroupName The name of the resource group with the deployment to check. The name is
1349
+ * case insensitive.
1350
+ * @param deploymentName The name of the deployment.
1351
+ * @param options The options parameters.
1352
+ */
1353
+ checkExistence(resourceGroupName, deploymentName, options) {
1354
+ return this.client.sendOperationRequest({ resourceGroupName, deploymentName, options }, checkExistenceOperationSpec);
1355
+ }
1356
+ /**
1357
+ * You can provide the template and parameters directly in the request or link to JSON files.
1358
+ * @param resourceGroupName The name of the resource group to deploy the resources to. The name is case
1359
+ * insensitive. The resource group must already exist.
1360
+ * @param deploymentName The name of the deployment.
1361
+ * @param parameters Additional parameters supplied to the operation.
1362
+ * @param options The options parameters.
1363
+ */
1364
+ async beginCreateOrUpdate(resourceGroupName, deploymentName, parameters, options) {
1365
+ const directSendOperation = async (args, spec) => {
1366
+ return this.client.sendOperationRequest(args, spec);
1367
+ };
1368
+ const sendOperation = async (args, spec) => {
1369
+ var _a;
1370
+ let currentRawResponse = undefined;
1371
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1372
+ const callback = (rawResponse, flatResponse) => {
1373
+ currentRawResponse = rawResponse;
1374
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1375
+ };
1376
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1377
+ const flatResponse = await directSendOperation(updatedArgs, spec);
1378
+ return {
1379
+ flatResponse,
1380
+ rawResponse: {
1381
+ statusCode: currentRawResponse.status,
1382
+ body: currentRawResponse.parsedBody,
1383
+ headers: currentRawResponse.headers.toJSON()
1384
+ }
1385
+ };
1386
+ };
1387
+ const lro = new lroImpl_js_1.LroImpl(sendOperation, { resourceGroupName, deploymentName, parameters, options }, createOrUpdateOperationSpec);
1388
+ const poller = new core_lro_1.LroEngine(lro, {
1389
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1390
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
1391
+ });
1392
+ await poller.poll();
1393
+ return poller;
1394
+ }
1395
+ /**
1396
+ * You can provide the template and parameters directly in the request or link to JSON files.
1397
+ * @param resourceGroupName The name of the resource group to deploy the resources to. The name is case
1398
+ * insensitive. The resource group must already exist.
1399
+ * @param deploymentName The name of the deployment.
1400
+ * @param parameters Additional parameters supplied to the operation.
1401
+ * @param options The options parameters.
1402
+ */
1403
+ async beginCreateOrUpdateAndWait(resourceGroupName, deploymentName, parameters, options) {
1404
+ const poller = await this.beginCreateOrUpdate(resourceGroupName, deploymentName, parameters, options);
1405
+ return poller.pollUntilDone();
1406
+ }
1407
+ /**
1408
+ * Gets a deployment.
1409
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1410
+ * @param deploymentName The name of the deployment.
1411
+ * @param options The options parameters.
1412
+ */
1413
+ get(resourceGroupName, deploymentName, options) {
1414
+ return this.client.sendOperationRequest({ resourceGroupName, deploymentName, options }, getOperationSpec);
1415
+ }
1416
+ /**
1417
+ * You can cancel a deployment only if the provisioningState is Accepted or Running. After the
1418
+ * deployment is canceled, the provisioningState is set to Canceled. Canceling a template deployment
1419
+ * stops the currently running template deployment and leaves the resource group partially deployed.
1420
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1421
+ * @param deploymentName The name of the deployment.
1422
+ * @param options The options parameters.
1423
+ */
1424
+ cancel(resourceGroupName, deploymentName, options) {
1425
+ return this.client.sendOperationRequest({ resourceGroupName, deploymentName, options }, cancelOperationSpec);
1426
+ }
1427
+ /**
1428
+ * Validates whether the specified template is syntactically correct and will be accepted by Azure
1429
+ * Resource Manager..
1430
+ * @param resourceGroupName The name of the resource group the template will be deployed to. The name
1431
+ * is case insensitive.
1432
+ * @param deploymentName The name of the deployment.
1433
+ * @param parameters Parameters to validate.
1434
+ * @param options The options parameters.
1435
+ */
1436
+ async beginValidate(resourceGroupName, deploymentName, parameters, options) {
1437
+ const directSendOperation = async (args, spec) => {
1438
+ return this.client.sendOperationRequest(args, spec);
1439
+ };
1440
+ const sendOperation = async (args, spec) => {
1441
+ var _a;
1442
+ let currentRawResponse = undefined;
1443
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1444
+ const callback = (rawResponse, flatResponse) => {
1445
+ currentRawResponse = rawResponse;
1446
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1447
+ };
1448
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1449
+ const flatResponse = await directSendOperation(updatedArgs, spec);
1450
+ return {
1451
+ flatResponse,
1452
+ rawResponse: {
1453
+ statusCode: currentRawResponse.status,
1454
+ body: currentRawResponse.parsedBody,
1455
+ headers: currentRawResponse.headers.toJSON()
1456
+ }
1457
+ };
1458
+ };
1459
+ const lro = new lroImpl_js_1.LroImpl(sendOperation, { resourceGroupName, deploymentName, parameters, options }, validateOperationSpec);
1460
+ const poller = new core_lro_1.LroEngine(lro, {
1461
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1462
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
1463
+ });
1464
+ await poller.poll();
1465
+ return poller;
1466
+ }
1467
+ /**
1468
+ * Validates whether the specified template is syntactically correct and will be accepted by Azure
1469
+ * Resource Manager..
1470
+ * @param resourceGroupName The name of the resource group the template will be deployed to. The name
1471
+ * is case insensitive.
1472
+ * @param deploymentName The name of the deployment.
1473
+ * @param parameters Parameters to validate.
1474
+ * @param options The options parameters.
1475
+ */
1476
+ async beginValidateAndWait(resourceGroupName, deploymentName, parameters, options) {
1477
+ const poller = await this.beginValidate(resourceGroupName, deploymentName, parameters, options);
1478
+ return poller.pollUntilDone();
1479
+ }
1480
+ /**
1481
+ * Returns changes that will be made by the deployment if executed at the scope of the resource group.
1482
+ * @param resourceGroupName The name of the resource group the template will be deployed to. The name
1483
+ * is case insensitive.
1484
+ * @param deploymentName The name of the deployment.
1485
+ * @param parameters Parameters to validate.
1486
+ * @param options The options parameters.
1487
+ */
1488
+ async beginWhatIf(resourceGroupName, deploymentName, parameters, options) {
1489
+ const directSendOperation = async (args, spec) => {
1490
+ return this.client.sendOperationRequest(args, spec);
1491
+ };
1492
+ const sendOperation = async (args, spec) => {
1493
+ var _a;
1494
+ let currentRawResponse = undefined;
1495
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1496
+ const callback = (rawResponse, flatResponse) => {
1497
+ currentRawResponse = rawResponse;
1498
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1499
+ };
1500
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1501
+ const flatResponse = await directSendOperation(updatedArgs, spec);
1502
+ return {
1503
+ flatResponse,
1504
+ rawResponse: {
1505
+ statusCode: currentRawResponse.status,
1506
+ body: currentRawResponse.parsedBody,
1507
+ headers: currentRawResponse.headers.toJSON()
1508
+ }
1509
+ };
1510
+ };
1511
+ const lro = new lroImpl_js_1.LroImpl(sendOperation, { resourceGroupName, deploymentName, parameters, options }, whatIfOperationSpec);
1512
+ const poller = new core_lro_1.LroEngine(lro, {
1513
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1514
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
1515
+ lroResourceLocationConfig: "location"
1516
+ });
1517
+ await poller.poll();
1518
+ return poller;
1519
+ }
1520
+ /**
1521
+ * Returns changes that will be made by the deployment if executed at the scope of the resource group.
1522
+ * @param resourceGroupName The name of the resource group the template will be deployed to. The name
1523
+ * is case insensitive.
1524
+ * @param deploymentName The name of the deployment.
1525
+ * @param parameters Parameters to validate.
1526
+ * @param options The options parameters.
1527
+ */
1528
+ async beginWhatIfAndWait(resourceGroupName, deploymentName, parameters, options) {
1529
+ const poller = await this.beginWhatIf(resourceGroupName, deploymentName, parameters, options);
1530
+ return poller.pollUntilDone();
1531
+ }
1532
+ /**
1533
+ * Exports the template used for specified deployment.
1534
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1535
+ * @param deploymentName The name of the deployment.
1536
+ * @param options The options parameters.
1537
+ */
1538
+ exportTemplate(resourceGroupName, deploymentName, options) {
1539
+ return this.client.sendOperationRequest({ resourceGroupName, deploymentName, options }, exportTemplateOperationSpec);
1540
+ }
1541
+ /**
1542
+ * Get all the deployments for a resource group.
1543
+ * @param resourceGroupName The name of the resource group with the deployments to get. The name is
1544
+ * case insensitive.
1545
+ * @param options The options parameters.
1546
+ */
1547
+ _listByResourceGroup(resourceGroupName, options) {
1548
+ return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
1549
+ }
1550
+ /**
1551
+ * Calculate the hash of the given template.
1552
+ * @param template The template provided to calculate hash.
1553
+ * @param options The options parameters.
1554
+ */
1555
+ calculateTemplateHash(template, options) {
1556
+ return this.client.sendOperationRequest({ template, options }, calculateTemplateHashOperationSpec);
1557
+ }
1558
+ /**
1559
+ * ListAtScopeNext
1560
+ * @param scope The resource scope.
1561
+ * @param nextLink The nextLink from the previous successful call to the ListAtScope method.
1562
+ * @param options The options parameters.
1563
+ */
1564
+ _listAtScopeNext(scope, nextLink, options) {
1565
+ return this.client.sendOperationRequest({ scope, nextLink, options }, listAtScopeNextOperationSpec);
1566
+ }
1567
+ /**
1568
+ * ListAtTenantScopeNext
1569
+ * @param nextLink The nextLink from the previous successful call to the ListAtTenantScope method.
1570
+ * @param options The options parameters.
1571
+ */
1572
+ _listAtTenantScopeNext(nextLink, options) {
1573
+ return this.client.sendOperationRequest({ nextLink, options }, listAtTenantScopeNextOperationSpec);
1574
+ }
1575
+ /**
1576
+ * ListAtManagementGroupScopeNext
1577
+ * @param groupId The management group ID.
1578
+ * @param nextLink The nextLink from the previous successful call to the ListAtManagementGroupScope
1579
+ * method.
1580
+ * @param options The options parameters.
1581
+ */
1582
+ _listAtManagementGroupScopeNext(groupId, nextLink, options) {
1583
+ return this.client.sendOperationRequest({ groupId, nextLink, options }, listAtManagementGroupScopeNextOperationSpec);
1584
+ }
1585
+ /**
1586
+ * ListAtSubscriptionScopeNext
1587
+ * @param nextLink The nextLink from the previous successful call to the ListAtSubscriptionScope
1588
+ * method.
1589
+ * @param options The options parameters.
1590
+ */
1591
+ _listAtSubscriptionScopeNext(nextLink, options) {
1592
+ return this.client.sendOperationRequest({ nextLink, options }, listAtSubscriptionScopeNextOperationSpec);
1593
+ }
1594
+ /**
1595
+ * ListByResourceGroupNext
1596
+ * @param resourceGroupName The name of the resource group with the deployments to get. The name is
1597
+ * case insensitive.
1598
+ * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
1599
+ * @param options The options parameters.
1600
+ */
1601
+ _listByResourceGroupNext(resourceGroupName, nextLink, options) {
1602
+ return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
1603
+ }
1604
+ }
1605
+ exports.DeploymentsImpl = DeploymentsImpl;
1606
+ // Operation Specifications
1607
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
1608
+ const deleteAtScopeOperationSpec = {
1609
+ path: "/{scope}/providers/Microsoft.Resources/deployments/{deploymentName}",
1610
+ httpMethod: "DELETE",
1611
+ responses: {
1612
+ 200: {},
1613
+ 201: {},
1614
+ 202: {},
1615
+ 204: {},
1616
+ default: {
1617
+ bodyMapper: Mappers.CloudError
1618
+ }
1619
+ },
1620
+ queryParameters: [Parameters.apiVersion],
1621
+ urlParameters: [
1622
+ Parameters.$host,
1623
+ Parameters.scope,
1624
+ Parameters.deploymentName
1625
+ ],
1626
+ headerParameters: [Parameters.accept],
1627
+ serializer
1628
+ };
1629
+ const checkExistenceAtScopeOperationSpec = {
1630
+ path: "/{scope}/providers/Microsoft.Resources/deployments/{deploymentName}",
1631
+ httpMethod: "HEAD",
1632
+ responses: {
1633
+ 204: {},
1634
+ 404: {},
1635
+ default: {
1636
+ bodyMapper: Mappers.CloudError
1637
+ }
1638
+ },
1639
+ queryParameters: [Parameters.apiVersion],
1640
+ urlParameters: [
1641
+ Parameters.$host,
1642
+ Parameters.scope,
1643
+ Parameters.deploymentName
1644
+ ],
1645
+ headerParameters: [Parameters.accept],
1646
+ serializer
1647
+ };
1648
+ const createOrUpdateAtScopeOperationSpec = {
1649
+ path: "/{scope}/providers/Microsoft.Resources/deployments/{deploymentName}",
1650
+ httpMethod: "PUT",
1651
+ responses: {
1652
+ 200: {
1653
+ bodyMapper: Mappers.DeploymentExtended
1654
+ },
1655
+ 201: {
1656
+ bodyMapper: Mappers.DeploymentExtended
1657
+ },
1658
+ 202: {
1659
+ bodyMapper: Mappers.DeploymentExtended
1660
+ },
1661
+ 204: {
1662
+ bodyMapper: Mappers.DeploymentExtended
1663
+ },
1664
+ default: {
1665
+ bodyMapper: Mappers.CloudError
1666
+ }
1667
+ },
1668
+ requestBody: Parameters.parameters,
1669
+ queryParameters: [Parameters.apiVersion],
1670
+ urlParameters: [
1671
+ Parameters.$host,
1672
+ Parameters.scope,
1673
+ Parameters.deploymentName
1674
+ ],
1675
+ headerParameters: [Parameters.accept, Parameters.contentType],
1676
+ mediaType: "json",
1677
+ serializer
1678
+ };
1679
+ const getAtScopeOperationSpec = {
1680
+ path: "/{scope}/providers/Microsoft.Resources/deployments/{deploymentName}",
1681
+ httpMethod: "GET",
1682
+ responses: {
1683
+ 200: {
1684
+ bodyMapper: Mappers.DeploymentExtended
1685
+ },
1686
+ default: {
1687
+ bodyMapper: Mappers.CloudError
1688
+ }
1689
+ },
1690
+ queryParameters: [Parameters.apiVersion],
1691
+ urlParameters: [
1692
+ Parameters.$host,
1693
+ Parameters.scope,
1694
+ Parameters.deploymentName
1695
+ ],
1696
+ headerParameters: [Parameters.accept],
1697
+ serializer
1698
+ };
1699
+ const cancelAtScopeOperationSpec = {
1700
+ path: "/{scope}/providers/Microsoft.Resources/deployments/{deploymentName}/cancel",
1701
+ httpMethod: "POST",
1702
+ responses: {
1703
+ 204: {},
1704
+ default: {
1705
+ bodyMapper: Mappers.CloudError
1706
+ }
1707
+ },
1708
+ queryParameters: [Parameters.apiVersion],
1709
+ urlParameters: [
1710
+ Parameters.$host,
1711
+ Parameters.scope,
1712
+ Parameters.deploymentName
1713
+ ],
1714
+ headerParameters: [Parameters.accept],
1715
+ serializer
1716
+ };
1717
+ const validateAtScopeOperationSpec = {
1718
+ path: "/{scope}/providers/Microsoft.Resources/deployments/{deploymentName}/validate",
1719
+ httpMethod: "POST",
1720
+ responses: {
1721
+ 200: {
1722
+ bodyMapper: Mappers.DeploymentValidateResult
1723
+ },
1724
+ 201: {
1725
+ bodyMapper: Mappers.DeploymentValidateResult
1726
+ },
1727
+ 202: {
1728
+ bodyMapper: Mappers.DeploymentValidateResult
1729
+ },
1730
+ 204: {
1731
+ bodyMapper: Mappers.DeploymentValidateResult
1732
+ },
1733
+ default: {
1734
+ bodyMapper: Mappers.CloudError
1735
+ }
1736
+ },
1737
+ requestBody: Parameters.parameters,
1738
+ queryParameters: [Parameters.apiVersion],
1739
+ urlParameters: [
1740
+ Parameters.$host,
1741
+ Parameters.scope,
1742
+ Parameters.deploymentName
1743
+ ],
1744
+ headerParameters: [Parameters.accept, Parameters.contentType],
1745
+ mediaType: "json",
1746
+ serializer
1747
+ };
1748
+ const exportTemplateAtScopeOperationSpec = {
1749
+ path: "/{scope}/providers/Microsoft.Resources/deployments/{deploymentName}/exportTemplate",
1750
+ httpMethod: "POST",
1751
+ responses: {
1752
+ 200: {
1753
+ bodyMapper: Mappers.DeploymentExportResult
1754
+ },
1755
+ default: {
1756
+ bodyMapper: Mappers.CloudError
1757
+ }
1758
+ },
1759
+ queryParameters: [Parameters.apiVersion],
1760
+ urlParameters: [
1761
+ Parameters.$host,
1762
+ Parameters.scope,
1763
+ Parameters.deploymentName
1764
+ ],
1765
+ headerParameters: [Parameters.accept],
1766
+ serializer
1767
+ };
1768
+ const listAtScopeOperationSpec = {
1769
+ path: "/{scope}/providers/Microsoft.Resources/deployments/",
1770
+ httpMethod: "GET",
1771
+ responses: {
1772
+ 200: {
1773
+ bodyMapper: Mappers.DeploymentListResult
1774
+ },
1775
+ default: {
1776
+ bodyMapper: Mappers.CloudError
1777
+ }
1778
+ },
1779
+ queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
1780
+ urlParameters: [Parameters.$host, Parameters.scope],
1781
+ headerParameters: [Parameters.accept],
1782
+ serializer
1783
+ };
1784
+ const deleteAtTenantScopeOperationSpec = {
1785
+ path: "/providers/Microsoft.Resources/deployments/{deploymentName}",
1786
+ httpMethod: "DELETE",
1787
+ responses: {
1788
+ 200: {},
1789
+ 201: {},
1790
+ 202: {},
1791
+ 204: {},
1792
+ default: {
1793
+ bodyMapper: Mappers.CloudError
1794
+ }
1795
+ },
1796
+ queryParameters: [Parameters.apiVersion],
1797
+ urlParameters: [Parameters.$host, Parameters.deploymentName],
1798
+ headerParameters: [Parameters.accept],
1799
+ serializer
1800
+ };
1801
+ const checkExistenceAtTenantScopeOperationSpec = {
1802
+ path: "/providers/Microsoft.Resources/deployments/{deploymentName}",
1803
+ httpMethod: "HEAD",
1804
+ responses: {
1805
+ 204: {},
1806
+ 404: {},
1807
+ default: {
1808
+ bodyMapper: Mappers.CloudError
1809
+ }
1810
+ },
1811
+ queryParameters: [Parameters.apiVersion],
1812
+ urlParameters: [Parameters.$host, Parameters.deploymentName],
1813
+ headerParameters: [Parameters.accept],
1814
+ serializer
1815
+ };
1816
+ const createOrUpdateAtTenantScopeOperationSpec = {
1817
+ path: "/providers/Microsoft.Resources/deployments/{deploymentName}",
1818
+ httpMethod: "PUT",
1819
+ responses: {
1820
+ 200: {
1821
+ bodyMapper: Mappers.DeploymentExtended
1822
+ },
1823
+ 201: {
1824
+ bodyMapper: Mappers.DeploymentExtended
1825
+ },
1826
+ 202: {
1827
+ bodyMapper: Mappers.DeploymentExtended
1828
+ },
1829
+ 204: {
1830
+ bodyMapper: Mappers.DeploymentExtended
1831
+ },
1832
+ default: {
1833
+ bodyMapper: Mappers.CloudError
1834
+ }
1835
+ },
1836
+ requestBody: Parameters.parameters1,
1837
+ queryParameters: [Parameters.apiVersion],
1838
+ urlParameters: [Parameters.$host, Parameters.deploymentName],
1839
+ headerParameters: [Parameters.accept, Parameters.contentType],
1840
+ mediaType: "json",
1841
+ serializer
1842
+ };
1843
+ const getAtTenantScopeOperationSpec = {
1844
+ path: "/providers/Microsoft.Resources/deployments/{deploymentName}",
1845
+ httpMethod: "GET",
1846
+ responses: {
1847
+ 200: {
1848
+ bodyMapper: Mappers.DeploymentExtended
1849
+ },
1850
+ default: {
1851
+ bodyMapper: Mappers.CloudError
1852
+ }
1853
+ },
1854
+ queryParameters: [Parameters.apiVersion],
1855
+ urlParameters: [Parameters.$host, Parameters.deploymentName],
1856
+ headerParameters: [Parameters.accept],
1857
+ serializer
1858
+ };
1859
+ const cancelAtTenantScopeOperationSpec = {
1860
+ path: "/providers/Microsoft.Resources/deployments/{deploymentName}/cancel",
1861
+ httpMethod: "POST",
1862
+ responses: {
1863
+ 204: {},
1864
+ default: {
1865
+ bodyMapper: Mappers.CloudError
1866
+ }
1867
+ },
1868
+ queryParameters: [Parameters.apiVersion],
1869
+ urlParameters: [Parameters.$host, Parameters.deploymentName],
1870
+ headerParameters: [Parameters.accept],
1871
+ serializer
1872
+ };
1873
+ const validateAtTenantScopeOperationSpec = {
1874
+ path: "/providers/Microsoft.Resources/deployments/{deploymentName}/validate",
1875
+ httpMethod: "POST",
1876
+ responses: {
1877
+ 200: {
1878
+ bodyMapper: Mappers.DeploymentValidateResult
1879
+ },
1880
+ 201: {
1881
+ bodyMapper: Mappers.DeploymentValidateResult
1882
+ },
1883
+ 202: {
1884
+ bodyMapper: Mappers.DeploymentValidateResult
1885
+ },
1886
+ 204: {
1887
+ bodyMapper: Mappers.DeploymentValidateResult
1888
+ },
1889
+ default: {
1890
+ bodyMapper: Mappers.CloudError
1891
+ }
1892
+ },
1893
+ requestBody: Parameters.parameters1,
1894
+ queryParameters: [Parameters.apiVersion],
1895
+ urlParameters: [Parameters.$host, Parameters.deploymentName],
1896
+ headerParameters: [Parameters.accept, Parameters.contentType],
1897
+ mediaType: "json",
1898
+ serializer
1899
+ };
1900
+ const whatIfAtTenantScopeOperationSpec = {
1901
+ path: "/providers/Microsoft.Resources/deployments/{deploymentName}/whatIf",
1902
+ httpMethod: "POST",
1903
+ responses: {
1904
+ 200: {
1905
+ bodyMapper: Mappers.WhatIfOperationResult
1906
+ },
1907
+ 201: {
1908
+ bodyMapper: Mappers.WhatIfOperationResult
1909
+ },
1910
+ 202: {
1911
+ bodyMapper: Mappers.WhatIfOperationResult
1912
+ },
1913
+ 204: {
1914
+ bodyMapper: Mappers.WhatIfOperationResult
1915
+ },
1916
+ default: {
1917
+ bodyMapper: Mappers.CloudError
1918
+ }
1919
+ },
1920
+ requestBody: Parameters.parameters2,
1921
+ queryParameters: [Parameters.apiVersion],
1922
+ urlParameters: [Parameters.$host, Parameters.deploymentName],
1923
+ headerParameters: [Parameters.accept, Parameters.contentType],
1924
+ mediaType: "json",
1925
+ serializer
1926
+ };
1927
+ const exportTemplateAtTenantScopeOperationSpec = {
1928
+ path: "/providers/Microsoft.Resources/deployments/{deploymentName}/exportTemplate",
1929
+ httpMethod: "POST",
1930
+ responses: {
1931
+ 200: {
1932
+ bodyMapper: Mappers.DeploymentExportResult
1933
+ },
1934
+ default: {
1935
+ bodyMapper: Mappers.CloudError
1936
+ }
1937
+ },
1938
+ queryParameters: [Parameters.apiVersion],
1939
+ urlParameters: [Parameters.$host, Parameters.deploymentName],
1940
+ headerParameters: [Parameters.accept],
1941
+ serializer
1942
+ };
1943
+ const listAtTenantScopeOperationSpec = {
1944
+ path: "/providers/Microsoft.Resources/deployments/",
1945
+ httpMethod: "GET",
1946
+ responses: {
1947
+ 200: {
1948
+ bodyMapper: Mappers.DeploymentListResult
1949
+ },
1950
+ default: {
1951
+ bodyMapper: Mappers.CloudError
1952
+ }
1953
+ },
1954
+ queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
1955
+ urlParameters: [Parameters.$host],
1956
+ headerParameters: [Parameters.accept],
1957
+ serializer
1958
+ };
1959
+ const deleteAtManagementGroupScopeOperationSpec = {
1960
+ path: "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}",
1961
+ httpMethod: "DELETE",
1962
+ responses: {
1963
+ 200: {},
1964
+ 201: {},
1965
+ 202: {},
1966
+ 204: {},
1967
+ default: {
1968
+ bodyMapper: Mappers.CloudError
1969
+ }
1970
+ },
1971
+ queryParameters: [Parameters.apiVersion],
1972
+ urlParameters: [
1973
+ Parameters.$host,
1974
+ Parameters.deploymentName,
1975
+ Parameters.groupId
1976
+ ],
1977
+ headerParameters: [Parameters.accept],
1978
+ serializer
1979
+ };
1980
+ const checkExistenceAtManagementGroupScopeOperationSpec = {
1981
+ path: "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}",
1982
+ httpMethod: "HEAD",
1983
+ responses: {
1984
+ 204: {},
1985
+ 404: {},
1986
+ default: {
1987
+ bodyMapper: Mappers.CloudError
1988
+ }
1989
+ },
1990
+ queryParameters: [Parameters.apiVersion],
1991
+ urlParameters: [
1992
+ Parameters.$host,
1993
+ Parameters.deploymentName,
1994
+ Parameters.groupId
1995
+ ],
1996
+ headerParameters: [Parameters.accept],
1997
+ serializer
1998
+ };
1999
+ const createOrUpdateAtManagementGroupScopeOperationSpec = {
2000
+ path: "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}",
2001
+ httpMethod: "PUT",
2002
+ responses: {
2003
+ 200: {
2004
+ bodyMapper: Mappers.DeploymentExtended
2005
+ },
2006
+ 201: {
2007
+ bodyMapper: Mappers.DeploymentExtended
2008
+ },
2009
+ 202: {
2010
+ bodyMapper: Mappers.DeploymentExtended
2011
+ },
2012
+ 204: {
2013
+ bodyMapper: Mappers.DeploymentExtended
2014
+ },
2015
+ default: {
2016
+ bodyMapper: Mappers.CloudError
2017
+ }
2018
+ },
2019
+ requestBody: Parameters.parameters1,
2020
+ queryParameters: [Parameters.apiVersion],
2021
+ urlParameters: [
2022
+ Parameters.$host,
2023
+ Parameters.deploymentName,
2024
+ Parameters.groupId
2025
+ ],
2026
+ headerParameters: [Parameters.accept, Parameters.contentType],
2027
+ mediaType: "json",
2028
+ serializer
2029
+ };
2030
+ const getAtManagementGroupScopeOperationSpec = {
2031
+ path: "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}",
2032
+ httpMethod: "GET",
2033
+ responses: {
2034
+ 200: {
2035
+ bodyMapper: Mappers.DeploymentExtended
2036
+ },
2037
+ default: {
2038
+ bodyMapper: Mappers.CloudError
2039
+ }
2040
+ },
2041
+ queryParameters: [Parameters.apiVersion],
2042
+ urlParameters: [
2043
+ Parameters.$host,
2044
+ Parameters.deploymentName,
2045
+ Parameters.groupId
2046
+ ],
2047
+ headerParameters: [Parameters.accept],
2048
+ serializer
2049
+ };
2050
+ const cancelAtManagementGroupScopeOperationSpec = {
2051
+ path: "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/cancel",
2052
+ httpMethod: "POST",
2053
+ responses: {
2054
+ 204: {},
2055
+ default: {
2056
+ bodyMapper: Mappers.CloudError
2057
+ }
2058
+ },
2059
+ queryParameters: [Parameters.apiVersion],
2060
+ urlParameters: [
2061
+ Parameters.$host,
2062
+ Parameters.deploymentName,
2063
+ Parameters.groupId
2064
+ ],
2065
+ headerParameters: [Parameters.accept],
2066
+ serializer
2067
+ };
2068
+ const validateAtManagementGroupScopeOperationSpec = {
2069
+ path: "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/validate",
2070
+ httpMethod: "POST",
2071
+ responses: {
2072
+ 200: {
2073
+ bodyMapper: Mappers.DeploymentValidateResult
2074
+ },
2075
+ 201: {
2076
+ bodyMapper: Mappers.DeploymentValidateResult
2077
+ },
2078
+ 202: {
2079
+ bodyMapper: Mappers.DeploymentValidateResult
2080
+ },
2081
+ 204: {
2082
+ bodyMapper: Mappers.DeploymentValidateResult
2083
+ },
2084
+ default: {
2085
+ bodyMapper: Mappers.CloudError
2086
+ }
2087
+ },
2088
+ requestBody: Parameters.parameters1,
2089
+ queryParameters: [Parameters.apiVersion],
2090
+ urlParameters: [
2091
+ Parameters.$host,
2092
+ Parameters.deploymentName,
2093
+ Parameters.groupId
2094
+ ],
2095
+ headerParameters: [Parameters.accept, Parameters.contentType],
2096
+ mediaType: "json",
2097
+ serializer
2098
+ };
2099
+ const whatIfAtManagementGroupScopeOperationSpec = {
2100
+ path: "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/whatIf",
2101
+ httpMethod: "POST",
2102
+ responses: {
2103
+ 200: {
2104
+ bodyMapper: Mappers.WhatIfOperationResult
2105
+ },
2106
+ 201: {
2107
+ bodyMapper: Mappers.WhatIfOperationResult
2108
+ },
2109
+ 202: {
2110
+ bodyMapper: Mappers.WhatIfOperationResult
2111
+ },
2112
+ 204: {
2113
+ bodyMapper: Mappers.WhatIfOperationResult
2114
+ },
2115
+ default: {
2116
+ bodyMapper: Mappers.CloudError
2117
+ }
2118
+ },
2119
+ requestBody: Parameters.parameters2,
2120
+ queryParameters: [Parameters.apiVersion],
2121
+ urlParameters: [
2122
+ Parameters.$host,
2123
+ Parameters.deploymentName,
2124
+ Parameters.groupId
2125
+ ],
2126
+ headerParameters: [Parameters.accept, Parameters.contentType],
2127
+ mediaType: "json",
2128
+ serializer
2129
+ };
2130
+ const exportTemplateAtManagementGroupScopeOperationSpec = {
2131
+ path: "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/exportTemplate",
2132
+ httpMethod: "POST",
2133
+ responses: {
2134
+ 200: {
2135
+ bodyMapper: Mappers.DeploymentExportResult
2136
+ },
2137
+ default: {
2138
+ bodyMapper: Mappers.CloudError
2139
+ }
2140
+ },
2141
+ queryParameters: [Parameters.apiVersion],
2142
+ urlParameters: [
2143
+ Parameters.$host,
2144
+ Parameters.deploymentName,
2145
+ Parameters.groupId
2146
+ ],
2147
+ headerParameters: [Parameters.accept],
2148
+ serializer
2149
+ };
2150
+ const listAtManagementGroupScopeOperationSpec = {
2151
+ path: "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/",
2152
+ httpMethod: "GET",
2153
+ responses: {
2154
+ 200: {
2155
+ bodyMapper: Mappers.DeploymentListResult
2156
+ },
2157
+ default: {
2158
+ bodyMapper: Mappers.CloudError
2159
+ }
2160
+ },
2161
+ queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
2162
+ urlParameters: [Parameters.$host, Parameters.groupId],
2163
+ headerParameters: [Parameters.accept],
2164
+ serializer
2165
+ };
2166
+ const deleteAtSubscriptionScopeOperationSpec = {
2167
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}",
2168
+ httpMethod: "DELETE",
2169
+ responses: {
2170
+ 200: {},
2171
+ 201: {},
2172
+ 202: {},
2173
+ 204: {},
2174
+ default: {
2175
+ bodyMapper: Mappers.CloudError
2176
+ }
2177
+ },
2178
+ queryParameters: [Parameters.apiVersion],
2179
+ urlParameters: [
2180
+ Parameters.$host,
2181
+ Parameters.deploymentName,
2182
+ Parameters.subscriptionId
2183
+ ],
2184
+ headerParameters: [Parameters.accept],
2185
+ serializer
2186
+ };
2187
+ const checkExistenceAtSubscriptionScopeOperationSpec = {
2188
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}",
2189
+ httpMethod: "HEAD",
2190
+ responses: {
2191
+ 204: {},
2192
+ 404: {},
2193
+ default: {
2194
+ bodyMapper: Mappers.CloudError
2195
+ }
2196
+ },
2197
+ queryParameters: [Parameters.apiVersion],
2198
+ urlParameters: [
2199
+ Parameters.$host,
2200
+ Parameters.deploymentName,
2201
+ Parameters.subscriptionId
2202
+ ],
2203
+ headerParameters: [Parameters.accept],
2204
+ serializer
2205
+ };
2206
+ const createOrUpdateAtSubscriptionScopeOperationSpec = {
2207
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}",
2208
+ httpMethod: "PUT",
2209
+ responses: {
2210
+ 200: {
2211
+ bodyMapper: Mappers.DeploymentExtended
2212
+ },
2213
+ 201: {
2214
+ bodyMapper: Mappers.DeploymentExtended
2215
+ },
2216
+ 202: {
2217
+ bodyMapper: Mappers.DeploymentExtended
2218
+ },
2219
+ 204: {
2220
+ bodyMapper: Mappers.DeploymentExtended
2221
+ },
2222
+ default: {
2223
+ bodyMapper: Mappers.CloudError
2224
+ }
2225
+ },
2226
+ requestBody: Parameters.parameters,
2227
+ queryParameters: [Parameters.apiVersion],
2228
+ urlParameters: [
2229
+ Parameters.$host,
2230
+ Parameters.deploymentName,
2231
+ Parameters.subscriptionId
2232
+ ],
2233
+ headerParameters: [Parameters.accept, Parameters.contentType],
2234
+ mediaType: "json",
2235
+ serializer
2236
+ };
2237
+ const getAtSubscriptionScopeOperationSpec = {
2238
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}",
2239
+ httpMethod: "GET",
2240
+ responses: {
2241
+ 200: {
2242
+ bodyMapper: Mappers.DeploymentExtended
2243
+ },
2244
+ default: {
2245
+ bodyMapper: Mappers.CloudError
2246
+ }
2247
+ },
2248
+ queryParameters: [Parameters.apiVersion],
2249
+ urlParameters: [
2250
+ Parameters.$host,
2251
+ Parameters.deploymentName,
2252
+ Parameters.subscriptionId
2253
+ ],
2254
+ headerParameters: [Parameters.accept],
2255
+ serializer
2256
+ };
2257
+ const cancelAtSubscriptionScopeOperationSpec = {
2258
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/cancel",
2259
+ httpMethod: "POST",
2260
+ responses: {
2261
+ 204: {},
2262
+ default: {
2263
+ bodyMapper: Mappers.CloudError
2264
+ }
2265
+ },
2266
+ queryParameters: [Parameters.apiVersion],
2267
+ urlParameters: [
2268
+ Parameters.$host,
2269
+ Parameters.deploymentName,
2270
+ Parameters.subscriptionId
2271
+ ],
2272
+ headerParameters: [Parameters.accept],
2273
+ serializer
2274
+ };
2275
+ const validateAtSubscriptionScopeOperationSpec = {
2276
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/validate",
2277
+ httpMethod: "POST",
2278
+ responses: {
2279
+ 200: {
2280
+ bodyMapper: Mappers.DeploymentValidateResult
2281
+ },
2282
+ 201: {
2283
+ bodyMapper: Mappers.DeploymentValidateResult
2284
+ },
2285
+ 202: {
2286
+ bodyMapper: Mappers.DeploymentValidateResult
2287
+ },
2288
+ 204: {
2289
+ bodyMapper: Mappers.DeploymentValidateResult
2290
+ },
2291
+ default: {
2292
+ bodyMapper: Mappers.CloudError
2293
+ }
2294
+ },
2295
+ requestBody: Parameters.parameters,
2296
+ queryParameters: [Parameters.apiVersion],
2297
+ urlParameters: [
2298
+ Parameters.$host,
2299
+ Parameters.deploymentName,
2300
+ Parameters.subscriptionId
2301
+ ],
2302
+ headerParameters: [Parameters.accept, Parameters.contentType],
2303
+ mediaType: "json",
2304
+ serializer
2305
+ };
2306
+ const whatIfAtSubscriptionScopeOperationSpec = {
2307
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/whatIf",
2308
+ httpMethod: "POST",
2309
+ responses: {
2310
+ 200: {
2311
+ bodyMapper: Mappers.WhatIfOperationResult
2312
+ },
2313
+ 201: {
2314
+ bodyMapper: Mappers.WhatIfOperationResult
2315
+ },
2316
+ 202: {
2317
+ bodyMapper: Mappers.WhatIfOperationResult
2318
+ },
2319
+ 204: {
2320
+ bodyMapper: Mappers.WhatIfOperationResult
2321
+ },
2322
+ default: {
2323
+ bodyMapper: Mappers.CloudError
2324
+ }
2325
+ },
2326
+ requestBody: Parameters.parameters3,
2327
+ queryParameters: [Parameters.apiVersion],
2328
+ urlParameters: [
2329
+ Parameters.$host,
2330
+ Parameters.deploymentName,
2331
+ Parameters.subscriptionId
2332
+ ],
2333
+ headerParameters: [Parameters.accept, Parameters.contentType],
2334
+ mediaType: "json",
2335
+ serializer
2336
+ };
2337
+ const exportTemplateAtSubscriptionScopeOperationSpec = {
2338
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/exportTemplate",
2339
+ httpMethod: "POST",
2340
+ responses: {
2341
+ 200: {
2342
+ bodyMapper: Mappers.DeploymentExportResult
2343
+ },
2344
+ default: {
2345
+ bodyMapper: Mappers.CloudError
2346
+ }
2347
+ },
2348
+ queryParameters: [Parameters.apiVersion],
2349
+ urlParameters: [
2350
+ Parameters.$host,
2351
+ Parameters.deploymentName,
2352
+ Parameters.subscriptionId
2353
+ ],
2354
+ headerParameters: [Parameters.accept],
2355
+ serializer
2356
+ };
2357
+ const listAtSubscriptionScopeOperationSpec = {
2358
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/",
2359
+ httpMethod: "GET",
2360
+ responses: {
2361
+ 200: {
2362
+ bodyMapper: Mappers.DeploymentListResult
2363
+ },
2364
+ default: {
2365
+ bodyMapper: Mappers.CloudError
2366
+ }
2367
+ },
2368
+ queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
2369
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
2370
+ headerParameters: [Parameters.accept],
2371
+ serializer
2372
+ };
2373
+ const deleteOperationSpec = {
2374
+ path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}",
2375
+ httpMethod: "DELETE",
2376
+ responses: {
2377
+ 200: {},
2378
+ 201: {},
2379
+ 202: {},
2380
+ 204: {},
2381
+ default: {
2382
+ bodyMapper: Mappers.CloudError
2383
+ }
2384
+ },
2385
+ queryParameters: [Parameters.apiVersion],
2386
+ urlParameters: [
2387
+ Parameters.$host,
2388
+ Parameters.deploymentName,
2389
+ Parameters.subscriptionId,
2390
+ Parameters.resourceGroupName
2391
+ ],
2392
+ headerParameters: [Parameters.accept],
2393
+ serializer
2394
+ };
2395
+ const checkExistenceOperationSpec = {
2396
+ path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}",
2397
+ httpMethod: "HEAD",
2398
+ responses: {
2399
+ 204: {},
2400
+ 404: {},
2401
+ default: {
2402
+ bodyMapper: Mappers.CloudError
2403
+ }
2404
+ },
2405
+ queryParameters: [Parameters.apiVersion],
2406
+ urlParameters: [
2407
+ Parameters.$host,
2408
+ Parameters.deploymentName,
2409
+ Parameters.subscriptionId,
2410
+ Parameters.resourceGroupName
2411
+ ],
2412
+ headerParameters: [Parameters.accept],
2413
+ serializer
2414
+ };
2415
+ const createOrUpdateOperationSpec = {
2416
+ path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}",
2417
+ httpMethod: "PUT",
2418
+ responses: {
2419
+ 200: {
2420
+ bodyMapper: Mappers.DeploymentExtended
2421
+ },
2422
+ 201: {
2423
+ bodyMapper: Mappers.DeploymentExtended
2424
+ },
2425
+ 202: {
2426
+ bodyMapper: Mappers.DeploymentExtended
2427
+ },
2428
+ 204: {
2429
+ bodyMapper: Mappers.DeploymentExtended
2430
+ },
2431
+ default: {
2432
+ bodyMapper: Mappers.CloudError
2433
+ }
2434
+ },
2435
+ requestBody: Parameters.parameters,
2436
+ queryParameters: [Parameters.apiVersion],
2437
+ urlParameters: [
2438
+ Parameters.$host,
2439
+ Parameters.deploymentName,
2440
+ Parameters.subscriptionId,
2441
+ Parameters.resourceGroupName
2442
+ ],
2443
+ headerParameters: [Parameters.accept, Parameters.contentType],
2444
+ mediaType: "json",
2445
+ serializer
2446
+ };
2447
+ const getOperationSpec = {
2448
+ path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}",
2449
+ httpMethod: "GET",
2450
+ responses: {
2451
+ 200: {
2452
+ bodyMapper: Mappers.DeploymentExtended
2453
+ },
2454
+ default: {
2455
+ bodyMapper: Mappers.CloudError
2456
+ }
2457
+ },
2458
+ queryParameters: [Parameters.apiVersion],
2459
+ urlParameters: [
2460
+ Parameters.$host,
2461
+ Parameters.deploymentName,
2462
+ Parameters.subscriptionId,
2463
+ Parameters.resourceGroupName
2464
+ ],
2465
+ headerParameters: [Parameters.accept],
2466
+ serializer
2467
+ };
2468
+ const cancelOperationSpec = {
2469
+ path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/cancel",
2470
+ httpMethod: "POST",
2471
+ responses: {
2472
+ 204: {},
2473
+ default: {
2474
+ bodyMapper: Mappers.CloudError
2475
+ }
2476
+ },
2477
+ queryParameters: [Parameters.apiVersion],
2478
+ urlParameters: [
2479
+ Parameters.$host,
2480
+ Parameters.deploymentName,
2481
+ Parameters.subscriptionId,
2482
+ Parameters.resourceGroupName
2483
+ ],
2484
+ headerParameters: [Parameters.accept],
2485
+ serializer
2486
+ };
2487
+ const validateOperationSpec = {
2488
+ path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/validate",
2489
+ httpMethod: "POST",
2490
+ responses: {
2491
+ 200: {
2492
+ bodyMapper: Mappers.DeploymentValidateResult
2493
+ },
2494
+ 201: {
2495
+ bodyMapper: Mappers.DeploymentValidateResult
2496
+ },
2497
+ 202: {
2498
+ bodyMapper: Mappers.DeploymentValidateResult
2499
+ },
2500
+ 204: {
2501
+ bodyMapper: Mappers.DeploymentValidateResult
2502
+ },
2503
+ default: {
2504
+ bodyMapper: Mappers.CloudError
2505
+ }
2506
+ },
2507
+ requestBody: Parameters.parameters,
2508
+ queryParameters: [Parameters.apiVersion],
2509
+ urlParameters: [
2510
+ Parameters.$host,
2511
+ Parameters.deploymentName,
2512
+ Parameters.subscriptionId,
2513
+ Parameters.resourceGroupName
2514
+ ],
2515
+ headerParameters: [Parameters.accept, Parameters.contentType],
2516
+ mediaType: "json",
2517
+ serializer
2518
+ };
2519
+ const whatIfOperationSpec = {
2520
+ path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/whatIf",
2521
+ httpMethod: "POST",
2522
+ responses: {
2523
+ 200: {
2524
+ bodyMapper: Mappers.WhatIfOperationResult
2525
+ },
2526
+ 201: {
2527
+ bodyMapper: Mappers.WhatIfOperationResult
2528
+ },
2529
+ 202: {
2530
+ bodyMapper: Mappers.WhatIfOperationResult
2531
+ },
2532
+ 204: {
2533
+ bodyMapper: Mappers.WhatIfOperationResult
2534
+ },
2535
+ default: {
2536
+ bodyMapper: Mappers.CloudError
2537
+ }
2538
+ },
2539
+ requestBody: Parameters.parameters3,
2540
+ queryParameters: [Parameters.apiVersion],
2541
+ urlParameters: [
2542
+ Parameters.$host,
2543
+ Parameters.deploymentName,
2544
+ Parameters.subscriptionId,
2545
+ Parameters.resourceGroupName
2546
+ ],
2547
+ headerParameters: [Parameters.accept, Parameters.contentType],
2548
+ mediaType: "json",
2549
+ serializer
2550
+ };
2551
+ const exportTemplateOperationSpec = {
2552
+ path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/exportTemplate",
2553
+ httpMethod: "POST",
2554
+ responses: {
2555
+ 200: {
2556
+ bodyMapper: Mappers.DeploymentExportResult
2557
+ },
2558
+ default: {
2559
+ bodyMapper: Mappers.CloudError
2560
+ }
2561
+ },
2562
+ queryParameters: [Parameters.apiVersion],
2563
+ urlParameters: [
2564
+ Parameters.$host,
2565
+ Parameters.deploymentName,
2566
+ Parameters.subscriptionId,
2567
+ Parameters.resourceGroupName
2568
+ ],
2569
+ headerParameters: [Parameters.accept],
2570
+ serializer
2571
+ };
2572
+ const listByResourceGroupOperationSpec = {
2573
+ path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/",
2574
+ httpMethod: "GET",
2575
+ responses: {
2576
+ 200: {
2577
+ bodyMapper: Mappers.DeploymentListResult
2578
+ },
2579
+ default: {
2580
+ bodyMapper: Mappers.CloudError
2581
+ }
2582
+ },
2583
+ queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
2584
+ urlParameters: [
2585
+ Parameters.$host,
2586
+ Parameters.subscriptionId,
2587
+ Parameters.resourceGroupName
2588
+ ],
2589
+ headerParameters: [Parameters.accept],
2590
+ serializer
2591
+ };
2592
+ const calculateTemplateHashOperationSpec = {
2593
+ path: "/providers/Microsoft.Resources/calculateTemplateHash",
2594
+ httpMethod: "POST",
2595
+ responses: {
2596
+ 200: {
2597
+ bodyMapper: Mappers.TemplateHashResult
2598
+ },
2599
+ default: {
2600
+ bodyMapper: Mappers.CloudError
2601
+ }
2602
+ },
2603
+ requestBody: Parameters.template,
2604
+ queryParameters: [Parameters.apiVersion],
2605
+ urlParameters: [Parameters.$host],
2606
+ headerParameters: [Parameters.accept, Parameters.contentType],
2607
+ mediaType: "json",
2608
+ serializer
2609
+ };
2610
+ const listAtScopeNextOperationSpec = {
2611
+ path: "{nextLink}",
2612
+ httpMethod: "GET",
2613
+ responses: {
2614
+ 200: {
2615
+ bodyMapper: Mappers.DeploymentListResult
2616
+ },
2617
+ default: {
2618
+ bodyMapper: Mappers.CloudError
2619
+ }
2620
+ },
2621
+ urlParameters: [Parameters.$host, Parameters.nextLink, Parameters.scope],
2622
+ headerParameters: [Parameters.accept],
2623
+ serializer
2624
+ };
2625
+ const listAtTenantScopeNextOperationSpec = {
2626
+ path: "{nextLink}",
2627
+ httpMethod: "GET",
2628
+ responses: {
2629
+ 200: {
2630
+ bodyMapper: Mappers.DeploymentListResult
2631
+ },
2632
+ default: {
2633
+ bodyMapper: Mappers.CloudError
2634
+ }
2635
+ },
2636
+ urlParameters: [Parameters.$host, Parameters.nextLink],
2637
+ headerParameters: [Parameters.accept],
2638
+ serializer
2639
+ };
2640
+ const listAtManagementGroupScopeNextOperationSpec = {
2641
+ path: "{nextLink}",
2642
+ httpMethod: "GET",
2643
+ responses: {
2644
+ 200: {
2645
+ bodyMapper: Mappers.DeploymentListResult
2646
+ },
2647
+ default: {
2648
+ bodyMapper: Mappers.CloudError
2649
+ }
2650
+ },
2651
+ urlParameters: [Parameters.$host, Parameters.nextLink, Parameters.groupId],
2652
+ headerParameters: [Parameters.accept],
2653
+ serializer
2654
+ };
2655
+ const listAtSubscriptionScopeNextOperationSpec = {
2656
+ path: "{nextLink}",
2657
+ httpMethod: "GET",
2658
+ responses: {
2659
+ 200: {
2660
+ bodyMapper: Mappers.DeploymentListResult
2661
+ },
2662
+ default: {
2663
+ bodyMapper: Mappers.CloudError
2664
+ }
2665
+ },
2666
+ urlParameters: [
2667
+ Parameters.$host,
2668
+ Parameters.nextLink,
2669
+ Parameters.subscriptionId
2670
+ ],
2671
+ headerParameters: [Parameters.accept],
2672
+ serializer
2673
+ };
2674
+ const listByResourceGroupNextOperationSpec = {
2675
+ path: "{nextLink}",
2676
+ httpMethod: "GET",
2677
+ responses: {
2678
+ 200: {
2679
+ bodyMapper: Mappers.DeploymentListResult
2680
+ },
2681
+ default: {
2682
+ bodyMapper: Mappers.CloudError
2683
+ }
2684
+ },
2685
+ urlParameters: [
2686
+ Parameters.$host,
2687
+ Parameters.nextLink,
2688
+ Parameters.subscriptionId,
2689
+ Parameters.resourceGroupName
2690
+ ],
2691
+ headerParameters: [Parameters.accept],
2692
+ serializer
2693
+ };
2694
+ //# sourceMappingURL=deployments.js.map