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