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