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