@azure/arm-resources 5.2.1-alpha.20250211.1 → 5.2.1-alpha.20250219.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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/{types → dist/commonjs}/tsdoc-metadata.json +1 -1
  183. package/dist/esm/index.d.ts +5 -0
  184. package/dist/esm/index.d.ts.map +1 -0
  185. package/{src/index.ts → dist/esm/index.js} +5 -5
  186. package/dist/esm/index.js.map +1 -0
  187. package/dist/esm/lroImpl.d.ts +11 -0
  188. package/dist/esm/lroImpl.d.ts.map +1 -0
  189. package/dist/esm/lroImpl.js +14 -0
  190. package/dist/esm/lroImpl.js.map +1 -0
  191. package/dist/esm/models/index.d.ts +1977 -0
  192. package/dist/esm/models/index.d.ts.map +1 -0
  193. package/dist/esm/models/index.js +102 -0
  194. package/dist/esm/models/index.js.map +1 -0
  195. package/dist/esm/models/mappers.d.ts +88 -0
  196. package/dist/esm/models/mappers.d.ts.map +1 -0
  197. package/dist/esm/models/mappers.js +2749 -0
  198. package/dist/esm/models/mappers.js.map +1 -0
  199. package/dist/esm/models/parameters.d.ts +40 -0
  200. package/dist/esm/models/parameters.d.ts.map +1 -0
  201. package/dist/esm/models/parameters.js +346 -0
  202. package/dist/esm/models/parameters.js.map +1 -0
  203. package/dist/esm/operations/deploymentOperations.d.ts +168 -0
  204. package/dist/esm/operations/deploymentOperations.d.ts.map +1 -0
  205. package/dist/esm/operations/deploymentOperations.js +782 -0
  206. package/dist/esm/operations/deploymentOperations.js.map +1 -0
  207. package/dist/esm/operations/deployments.d.ts +628 -0
  208. package/dist/esm/operations/deployments.d.ts.map +1 -0
  209. package/dist/esm/operations/deployments.js +2766 -0
  210. package/dist/esm/operations/deployments.js.map +1 -0
  211. package/dist/esm/operations/index.d.ts +9 -0
  212. package/dist/esm/operations/index.d.ts.map +1 -0
  213. package/dist/esm/operations/index.js +16 -0
  214. package/dist/esm/operations/index.js.map +1 -0
  215. package/dist/esm/operations/operations.d.ts +32 -0
  216. package/dist/esm/operations/operations.d.ts.map +1 -0
  217. package/dist/esm/operations/operations.js +133 -0
  218. package/dist/esm/operations/operations.js.map +1 -0
  219. package/dist/esm/operations/providerResourceTypes.d.ts +19 -0
  220. package/dist/esm/operations/providerResourceTypes.d.ts.map +1 -0
  221. package/dist/esm/operations/providerResourceTypes.js +51 -0
  222. package/dist/esm/operations/providerResourceTypes.js.map +1 -0
  223. package/dist/esm/operations/providers.d.ts +87 -0
  224. package/dist/esm/operations/providers.d.ts.map +1 -0
  225. package/dist/esm/operations/providers.js +409 -0
  226. package/dist/esm/operations/providers.js.map +1 -0
  227. package/dist/esm/operations/resourceGroups.d.ts +91 -0
  228. package/dist/esm/operations/resourceGroups.d.ts.map +1 -0
  229. package/dist/esm/operations/resourceGroups.js +418 -0
  230. package/dist/esm/operations/resourceGroups.js.map +1 -0
  231. package/dist/esm/operations/resources.d.ts +278 -0
  232. package/dist/esm/operations/resources.d.ts.map +1 -0
  233. package/dist/esm/operations/resources.js +1128 -0
  234. package/dist/esm/operations/resources.js.map +1 -0
  235. package/dist/esm/operations/tagsOperations.d.ts +102 -0
  236. package/dist/esm/operations/tagsOperations.d.ts.map +1 -0
  237. package/dist/esm/operations/tagsOperations.js +375 -0
  238. package/dist/esm/operations/tagsOperations.js.map +1 -0
  239. package/dist/esm/operationsInterfaces/deploymentOperations.d.ts +77 -0
  240. package/dist/esm/operationsInterfaces/deploymentOperations.d.ts.map +1 -0
  241. package/dist/esm/operationsInterfaces/deploymentOperations.js +9 -0
  242. package/dist/esm/operationsInterfaces/deploymentOperations.js.map +1 -0
  243. package/dist/esm/operationsInterfaces/deployments.d.ts +545 -0
  244. package/dist/esm/operationsInterfaces/deployments.d.ts.map +1 -0
  245. package/dist/esm/operationsInterfaces/deployments.js +9 -0
  246. package/dist/esm/operationsInterfaces/deployments.js.map +1 -0
  247. package/dist/esm/operationsInterfaces/index.d.ts +9 -0
  248. package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
  249. package/dist/esm/operationsInterfaces/index.js +16 -0
  250. package/dist/esm/operationsInterfaces/index.js.map +1 -0
  251. package/dist/esm/operationsInterfaces/operations.d.ts +11 -0
  252. package/dist/esm/operationsInterfaces/operations.d.ts.map +1 -0
  253. package/dist/esm/operationsInterfaces/operations.js +9 -0
  254. package/dist/esm/operationsInterfaces/operations.js.map +1 -0
  255. package/dist/esm/operationsInterfaces/providerResourceTypes.d.ts +11 -0
  256. package/dist/esm/operationsInterfaces/providerResourceTypes.d.ts.map +1 -0
  257. package/dist/esm/operationsInterfaces/providerResourceTypes.js +9 -0
  258. package/dist/esm/operationsInterfaces/providerResourceTypes.js.map +1 -0
  259. package/dist/esm/operationsInterfaces/providers.d.ts +53 -0
  260. package/dist/esm/operationsInterfaces/providers.d.ts.map +1 -0
  261. package/dist/esm/operationsInterfaces/providers.js +9 -0
  262. package/dist/esm/operationsInterfaces/providers.js.map +1 -0
  263. package/dist/esm/operationsInterfaces/resourceGroups.d.ts +70 -0
  264. package/dist/esm/operationsInterfaces/resourceGroups.d.ts.map +1 -0
  265. package/dist/esm/operationsInterfaces/resourceGroups.js +9 -0
  266. package/dist/esm/operationsInterfaces/resourceGroups.js.map +1 -0
  267. package/dist/esm/operationsInterfaces/resources.d.ts +242 -0
  268. package/dist/esm/operationsInterfaces/resources.d.ts.map +1 -0
  269. package/dist/esm/operationsInterfaces/resources.js +9 -0
  270. package/dist/esm/operationsInterfaces/resources.js.map +1 -0
  271. package/dist/esm/operationsInterfaces/tagsOperations.d.ts +78 -0
  272. package/dist/esm/operationsInterfaces/tagsOperations.d.ts.map +1 -0
  273. package/dist/esm/operationsInterfaces/tagsOperations.js +9 -0
  274. package/dist/esm/operationsInterfaces/tagsOperations.js.map +1 -0
  275. package/dist/esm/package.json +3 -0
  276. package/dist/esm/pagingHelper.d.ts +13 -0
  277. package/dist/esm/pagingHelper.d.ts.map +1 -0
  278. package/dist/esm/pagingHelper.js +32 -0
  279. package/dist/esm/pagingHelper.js.map +1 -0
  280. package/dist/esm/resourceManagementClient.d.ts +27 -0
  281. package/dist/esm/resourceManagementClient.d.ts.map +1 -0
  282. package/dist/esm/resourceManagementClient.js +104 -0
  283. package/dist/esm/resourceManagementClient.js.map +1 -0
  284. package/dist/react-native/index.d.ts +5 -0
  285. package/dist/react-native/index.d.ts.map +1 -0
  286. package/dist/react-native/index.js +13 -0
  287. package/dist/react-native/index.js.map +1 -0
  288. package/dist/react-native/lroImpl.d.ts +11 -0
  289. package/dist/react-native/lroImpl.d.ts.map +1 -0
  290. package/dist/react-native/lroImpl.js +14 -0
  291. package/dist/react-native/lroImpl.js.map +1 -0
  292. package/dist/react-native/models/index.d.ts +1977 -0
  293. package/dist/react-native/models/index.d.ts.map +1 -0
  294. package/dist/react-native/models/index.js +102 -0
  295. package/dist/react-native/models/index.js.map +1 -0
  296. package/dist/react-native/models/mappers.d.ts +88 -0
  297. package/dist/react-native/models/mappers.d.ts.map +1 -0
  298. package/dist/react-native/models/mappers.js +2749 -0
  299. package/dist/react-native/models/mappers.js.map +1 -0
  300. package/dist/react-native/models/parameters.d.ts +40 -0
  301. package/dist/react-native/models/parameters.d.ts.map +1 -0
  302. package/dist/react-native/models/parameters.js +346 -0
  303. package/dist/react-native/models/parameters.js.map +1 -0
  304. package/dist/react-native/operations/deploymentOperations.d.ts +168 -0
  305. package/dist/react-native/operations/deploymentOperations.d.ts.map +1 -0
  306. package/dist/react-native/operations/deploymentOperations.js +782 -0
  307. package/dist/react-native/operations/deploymentOperations.js.map +1 -0
  308. package/dist/react-native/operations/deployments.d.ts +628 -0
  309. package/dist/react-native/operations/deployments.d.ts.map +1 -0
  310. package/dist/react-native/operations/deployments.js +2766 -0
  311. package/dist/react-native/operations/deployments.js.map +1 -0
  312. package/dist/react-native/operations/index.d.ts +9 -0
  313. package/dist/react-native/operations/index.d.ts.map +1 -0
  314. package/dist/react-native/operations/index.js +16 -0
  315. package/dist/react-native/operations/index.js.map +1 -0
  316. package/dist/react-native/operations/operations.d.ts +32 -0
  317. package/dist/react-native/operations/operations.d.ts.map +1 -0
  318. package/dist/react-native/operations/operations.js +133 -0
  319. package/dist/react-native/operations/operations.js.map +1 -0
  320. package/dist/react-native/operations/providerResourceTypes.d.ts +19 -0
  321. package/dist/react-native/operations/providerResourceTypes.d.ts.map +1 -0
  322. package/dist/react-native/operations/providerResourceTypes.js +51 -0
  323. package/dist/react-native/operations/providerResourceTypes.js.map +1 -0
  324. package/dist/react-native/operations/providers.d.ts +87 -0
  325. package/dist/react-native/operations/providers.d.ts.map +1 -0
  326. package/dist/react-native/operations/providers.js +409 -0
  327. package/dist/react-native/operations/providers.js.map +1 -0
  328. package/dist/react-native/operations/resourceGroups.d.ts +91 -0
  329. package/dist/react-native/operations/resourceGroups.d.ts.map +1 -0
  330. package/dist/react-native/operations/resourceGroups.js +418 -0
  331. package/dist/react-native/operations/resourceGroups.js.map +1 -0
  332. package/dist/react-native/operations/resources.d.ts +278 -0
  333. package/dist/react-native/operations/resources.d.ts.map +1 -0
  334. package/dist/react-native/operations/resources.js +1128 -0
  335. package/dist/react-native/operations/resources.js.map +1 -0
  336. package/dist/react-native/operations/tagsOperations.d.ts +102 -0
  337. package/dist/react-native/operations/tagsOperations.d.ts.map +1 -0
  338. package/dist/react-native/operations/tagsOperations.js +375 -0
  339. package/dist/react-native/operations/tagsOperations.js.map +1 -0
  340. package/dist/react-native/operationsInterfaces/deploymentOperations.d.ts +77 -0
  341. package/dist/react-native/operationsInterfaces/deploymentOperations.d.ts.map +1 -0
  342. package/dist/react-native/operationsInterfaces/deploymentOperations.js +9 -0
  343. package/dist/react-native/operationsInterfaces/deploymentOperations.js.map +1 -0
  344. package/dist/react-native/operationsInterfaces/deployments.d.ts +545 -0
  345. package/dist/react-native/operationsInterfaces/deployments.d.ts.map +1 -0
  346. package/dist/react-native/operationsInterfaces/deployments.js +9 -0
  347. package/dist/react-native/operationsInterfaces/deployments.js.map +1 -0
  348. package/dist/react-native/operationsInterfaces/index.d.ts +9 -0
  349. package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
  350. package/dist/react-native/operationsInterfaces/index.js +16 -0
  351. package/dist/react-native/operationsInterfaces/index.js.map +1 -0
  352. package/dist/react-native/operationsInterfaces/operations.d.ts +11 -0
  353. package/dist/react-native/operationsInterfaces/operations.d.ts.map +1 -0
  354. package/dist/react-native/operationsInterfaces/operations.js +9 -0
  355. package/dist/react-native/operationsInterfaces/operations.js.map +1 -0
  356. package/dist/react-native/operationsInterfaces/providerResourceTypes.d.ts +11 -0
  357. package/dist/react-native/operationsInterfaces/providerResourceTypes.d.ts.map +1 -0
  358. package/dist/react-native/operationsInterfaces/providerResourceTypes.js +9 -0
  359. package/dist/react-native/operationsInterfaces/providerResourceTypes.js.map +1 -0
  360. package/dist/react-native/operationsInterfaces/providers.d.ts +53 -0
  361. package/dist/react-native/operationsInterfaces/providers.d.ts.map +1 -0
  362. package/dist/react-native/operationsInterfaces/providers.js +9 -0
  363. package/dist/react-native/operationsInterfaces/providers.js.map +1 -0
  364. package/dist/react-native/operationsInterfaces/resourceGroups.d.ts +70 -0
  365. package/dist/react-native/operationsInterfaces/resourceGroups.d.ts.map +1 -0
  366. package/dist/react-native/operationsInterfaces/resourceGroups.js +9 -0
  367. package/dist/react-native/operationsInterfaces/resourceGroups.js.map +1 -0
  368. package/dist/react-native/operationsInterfaces/resources.d.ts +242 -0
  369. package/dist/react-native/operationsInterfaces/resources.d.ts.map +1 -0
  370. package/dist/react-native/operationsInterfaces/resources.js +9 -0
  371. package/dist/react-native/operationsInterfaces/resources.js.map +1 -0
  372. package/dist/react-native/operationsInterfaces/tagsOperations.d.ts +78 -0
  373. package/dist/react-native/operationsInterfaces/tagsOperations.d.ts.map +1 -0
  374. package/dist/react-native/operationsInterfaces/tagsOperations.js +9 -0
  375. package/dist/react-native/operationsInterfaces/tagsOperations.js.map +1 -0
  376. package/dist/react-native/package.json +3 -0
  377. package/dist/react-native/pagingHelper.d.ts +13 -0
  378. package/dist/react-native/pagingHelper.d.ts.map +1 -0
  379. package/dist/react-native/pagingHelper.js +32 -0
  380. package/dist/react-native/pagingHelper.js.map +1 -0
  381. package/dist/react-native/resourceManagementClient.d.ts +27 -0
  382. package/dist/react-native/resourceManagementClient.d.ts.map +1 -0
  383. package/dist/react-native/resourceManagementClient.js +104 -0
  384. package/dist/react-native/resourceManagementClient.js.map +1 -0
  385. package/package.json +67 -36
  386. package/dist/index.js +0 -9600
  387. package/dist/index.js.map +0 -1
  388. package/dist/index.min.js +0 -1
  389. package/dist/index.min.js.map +0 -1
  390. package/dist-esm/samples-dev/deploymentsCalculateTemplateHashSample.d.ts +0 -2
  391. package/dist-esm/samples-dev/deploymentsCalculateTemplateHashSample.d.ts.map +0 -1
  392. package/dist-esm/samples-dev/deploymentsCalculateTemplateHashSample.js +0 -48
  393. package/dist-esm/samples-dev/deploymentsCalculateTemplateHashSample.js.map +0 -1
  394. package/dist-esm/samples-dev/deploymentsCreateOrUpdateAtManagementGroupScopeSample.d.ts +0 -2
  395. package/dist-esm/samples-dev/deploymentsCreateOrUpdateAtManagementGroupScopeSample.d.ts.map +0 -1
  396. package/dist-esm/samples-dev/deploymentsCreateOrUpdateAtManagementGroupScopeSample.js +0 -37
  397. package/dist-esm/samples-dev/deploymentsCreateOrUpdateAtManagementGroupScopeSample.js.map +0 -1
  398. package/dist-esm/samples-dev/deploymentsCreateOrUpdateAtScopeSample.d.ts +0 -2
  399. package/dist-esm/samples-dev/deploymentsCreateOrUpdateAtScopeSample.d.ts.map +0 -1
  400. package/dist-esm/samples-dev/deploymentsCreateOrUpdateAtScopeSample.js +0 -38
  401. package/dist-esm/samples-dev/deploymentsCreateOrUpdateAtScopeSample.js.map +0 -1
  402. package/dist-esm/samples-dev/deploymentsCreateOrUpdateAtSubscriptionScopeSample.d.ts +0 -2
  403. package/dist-esm/samples-dev/deploymentsCreateOrUpdateAtSubscriptionScopeSample.d.ts.map +0 -1
  404. package/dist-esm/samples-dev/deploymentsCreateOrUpdateAtSubscriptionScopeSample.js +0 -38
  405. package/dist-esm/samples-dev/deploymentsCreateOrUpdateAtSubscriptionScopeSample.js.map +0 -1
  406. package/dist-esm/samples-dev/deploymentsCreateOrUpdateAtTenantScopeSample.d.ts +0 -2
  407. package/dist-esm/samples-dev/deploymentsCreateOrUpdateAtTenantScopeSample.d.ts.map +0 -1
  408. package/dist-esm/samples-dev/deploymentsCreateOrUpdateAtTenantScopeSample.js +0 -37
  409. package/dist-esm/samples-dev/deploymentsCreateOrUpdateAtTenantScopeSample.js.map +0 -1
  410. package/dist-esm/samples-dev/deploymentsCreateOrUpdateSample.d.ts +0 -2
  411. package/dist-esm/samples-dev/deploymentsCreateOrUpdateSample.d.ts.map +0 -1
  412. package/dist-esm/samples-dev/deploymentsCreateOrUpdateSample.js +0 -121
  413. package/dist-esm/samples-dev/deploymentsCreateOrUpdateSample.js.map +0 -1
  414. package/dist-esm/samples-dev/deploymentsWhatIfAtManagementGroupScopeSample.d.ts +0 -2
  415. package/dist-esm/samples-dev/deploymentsWhatIfAtManagementGroupScopeSample.d.ts.map +0 -1
  416. package/dist-esm/samples-dev/deploymentsWhatIfAtManagementGroupScopeSample.js +0 -33
  417. package/dist-esm/samples-dev/deploymentsWhatIfAtManagementGroupScopeSample.js.map +0 -1
  418. package/dist-esm/samples-dev/deploymentsWhatIfAtSubscriptionScopeSample.d.ts +0 -2
  419. package/dist-esm/samples-dev/deploymentsWhatIfAtSubscriptionScopeSample.d.ts.map +0 -1
  420. package/dist-esm/samples-dev/deploymentsWhatIfAtSubscriptionScopeSample.js +0 -32
  421. package/dist-esm/samples-dev/deploymentsWhatIfAtSubscriptionScopeSample.js.map +0 -1
  422. package/dist-esm/samples-dev/deploymentsWhatIfAtTenantScopeSample.d.ts +0 -2
  423. package/dist-esm/samples-dev/deploymentsWhatIfAtTenantScopeSample.d.ts.map +0 -1
  424. package/dist-esm/samples-dev/deploymentsWhatIfAtTenantScopeSample.js +0 -32
  425. package/dist-esm/samples-dev/deploymentsWhatIfAtTenantScopeSample.js.map +0 -1
  426. package/dist-esm/samples-dev/deploymentsWhatIfSample.d.ts +0 -2
  427. package/dist-esm/samples-dev/deploymentsWhatIfSample.d.ts.map +0 -1
  428. package/dist-esm/samples-dev/deploymentsWhatIfSample.js +0 -32
  429. package/dist-esm/samples-dev/deploymentsWhatIfSample.js.map +0 -1
  430. package/dist-esm/samples-dev/providerResourceTypesListSample.d.ts +0 -2
  431. package/dist-esm/samples-dev/providerResourceTypesListSample.d.ts.map +0 -1
  432. package/dist-esm/samples-dev/providerResourceTypesListSample.js +0 -35
  433. package/dist-esm/samples-dev/providerResourceTypesListSample.js.map +0 -1
  434. package/dist-esm/samples-dev/providersGetAtTenantScopeSample.d.ts +0 -2
  435. package/dist-esm/samples-dev/providersGetAtTenantScopeSample.d.ts.map +0 -1
  436. package/dist-esm/samples-dev/providersGetAtTenantScopeSample.js +0 -30
  437. package/dist-esm/samples-dev/providersGetAtTenantScopeSample.js.map +0 -1
  438. package/dist-esm/samples-dev/providersGetSample.d.ts +0 -2
  439. package/dist-esm/samples-dev/providersGetSample.d.ts.map +0 -1
  440. package/dist-esm/samples-dev/providersGetSample.js +0 -35
  441. package/dist-esm/samples-dev/providersGetSample.js.map +0 -1
  442. package/dist-esm/samples-dev/providersListSample.d.ts +0 -2
  443. package/dist-esm/samples-dev/providersListSample.d.ts.map +0 -1
  444. package/dist-esm/samples-dev/providersListSample.js +0 -50
  445. package/dist-esm/samples-dev/providersListSample.js.map +0 -1
  446. package/dist-esm/samples-dev/providersProviderPermissionsSample.d.ts +0 -2
  447. package/dist-esm/samples-dev/providersProviderPermissionsSample.d.ts.map +0 -1
  448. package/dist-esm/samples-dev/providersProviderPermissionsSample.js +0 -35
  449. package/dist-esm/samples-dev/providersProviderPermissionsSample.js.map +0 -1
  450. package/dist-esm/samples-dev/resourceGroupsCreateOrUpdateSample.d.ts +0 -2
  451. package/dist-esm/samples-dev/resourceGroupsCreateOrUpdateSample.d.ts.map +0 -1
  452. package/dist-esm/samples-dev/resourceGroupsCreateOrUpdateSample.js +0 -29
  453. package/dist-esm/samples-dev/resourceGroupsCreateOrUpdateSample.js.map +0 -1
  454. package/dist-esm/samples-dev/resourceGroupsDeleteSample.d.ts +0 -2
  455. package/dist-esm/samples-dev/resourceGroupsDeleteSample.d.ts.map +0 -1
  456. package/dist-esm/samples-dev/resourceGroupsDeleteSample.js +0 -49
  457. package/dist-esm/samples-dev/resourceGroupsDeleteSample.js.map +0 -1
  458. package/dist-esm/samples-dev/resourceGroupsExportTemplateSample.d.ts +0 -2
  459. package/dist-esm/samples-dev/resourceGroupsExportTemplateSample.d.ts.map +0 -1
  460. package/dist-esm/samples-dev/resourceGroupsExportTemplateSample.js +0 -55
  461. package/dist-esm/samples-dev/resourceGroupsExportTemplateSample.js.map +0 -1
  462. package/dist-esm/samples-dev/tagsCreateOrUpdateAtScopeSample.d.ts +0 -2
  463. package/dist-esm/samples-dev/tagsCreateOrUpdateAtScopeSample.d.ts.map +0 -1
  464. package/dist-esm/samples-dev/tagsCreateOrUpdateAtScopeSample.js +0 -51
  465. package/dist-esm/samples-dev/tagsCreateOrUpdateAtScopeSample.js.map +0 -1
  466. package/dist-esm/samples-dev/tagsGetAtScopeSample.d.ts +0 -2
  467. package/dist-esm/samples-dev/tagsGetAtScopeSample.d.ts.map +0 -1
  468. package/dist-esm/samples-dev/tagsGetAtScopeSample.js +0 -52
  469. package/dist-esm/samples-dev/tagsGetAtScopeSample.js.map +0 -1
  470. package/dist-esm/src/index.d.ts +0 -5
  471. package/dist-esm/src/index.js.map +0 -1
  472. package/dist-esm/src/lroImpl.js.map +0 -1
  473. package/dist-esm/src/models/index.js.map +0 -1
  474. package/dist-esm/src/models/mappers.js.map +0 -1
  475. package/dist-esm/src/models/parameters.js.map +0 -1
  476. package/dist-esm/src/operations/deploymentOperations.d.ts.map +0 -1
  477. package/dist-esm/src/operations/deploymentOperations.js.map +0 -1
  478. package/dist-esm/src/operations/deployments.d.ts.map +0 -1
  479. package/dist-esm/src/operations/deployments.js.map +0 -1
  480. package/dist-esm/src/operations/index.d.ts +0 -9
  481. package/dist-esm/src/operations/index.d.ts.map +0 -1
  482. package/dist-esm/src/operations/index.js +0 -16
  483. package/dist-esm/src/operations/index.js.map +0 -1
  484. package/dist-esm/src/operations/operations.d.ts.map +0 -1
  485. package/dist-esm/src/operations/operations.js.map +0 -1
  486. package/dist-esm/src/operations/providerResourceTypes.d.ts.map +0 -1
  487. package/dist-esm/src/operations/providerResourceTypes.js.map +0 -1
  488. package/dist-esm/src/operations/providers.d.ts.map +0 -1
  489. package/dist-esm/src/operations/providers.js.map +0 -1
  490. package/dist-esm/src/operations/resourceGroups.d.ts.map +0 -1
  491. package/dist-esm/src/operations/resourceGroups.js.map +0 -1
  492. package/dist-esm/src/operations/resources.d.ts.map +0 -1
  493. package/dist-esm/src/operations/resources.js.map +0 -1
  494. package/dist-esm/src/operations/tagsOperations.d.ts.map +0 -1
  495. package/dist-esm/src/operations/tagsOperations.js.map +0 -1
  496. package/dist-esm/src/operationsInterfaces/deploymentOperations.d.ts.map +0 -1
  497. package/dist-esm/src/operationsInterfaces/deploymentOperations.js.map +0 -1
  498. package/dist-esm/src/operationsInterfaces/deployments.d.ts.map +0 -1
  499. package/dist-esm/src/operationsInterfaces/deployments.js.map +0 -1
  500. package/dist-esm/src/operationsInterfaces/index.d.ts +0 -9
  501. package/dist-esm/src/operationsInterfaces/index.d.ts.map +0 -1
  502. package/dist-esm/src/operationsInterfaces/index.js +0 -16
  503. package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
  504. package/dist-esm/src/operationsInterfaces/operations.js.map +0 -1
  505. package/dist-esm/src/operationsInterfaces/providerResourceTypes.js.map +0 -1
  506. package/dist-esm/src/operationsInterfaces/providers.d.ts.map +0 -1
  507. package/dist-esm/src/operationsInterfaces/providers.js.map +0 -1
  508. package/dist-esm/src/operationsInterfaces/resourceGroups.d.ts.map +0 -1
  509. package/dist-esm/src/operationsInterfaces/resourceGroups.js.map +0 -1
  510. package/dist-esm/src/operationsInterfaces/resources.d.ts.map +0 -1
  511. package/dist-esm/src/operationsInterfaces/resources.js.map +0 -1
  512. package/dist-esm/src/operationsInterfaces/tagsOperations.d.ts.map +0 -1
  513. package/dist-esm/src/operationsInterfaces/tagsOperations.js.map +0 -1
  514. package/dist-esm/src/pagingHelper.js.map +0 -1
  515. package/dist-esm/src/resourceManagementClient.d.ts.map +0 -1
  516. package/dist-esm/src/resourceManagementClient.js.map +0 -1
  517. package/dist-esm/test/cae_mock_test.d.ts +0 -2
  518. package/dist-esm/test/cae_mock_test.d.ts.map +0 -1
  519. package/dist-esm/test/cae_mock_test.js +0 -120
  520. package/dist-esm/test/cae_mock_test.js.map +0 -1
  521. package/dist-esm/test/resources_examples.d.ts +0 -4
  522. package/dist-esm/test/resources_examples.d.ts.map +0 -1
  523. package/dist-esm/test/resources_examples.js +0 -225
  524. package/dist-esm/test/resources_examples.js.map +0 -1
  525. package/src/lroImpl.ts +0 -38
  526. package/src/models/index.ts +0 -2347
  527. package/src/models/mappers.ts +0 -2852
  528. package/src/models/parameters.ts +0 -402
  529. package/src/operations/deploymentOperations.ts +0 -1016
  530. package/src/operations/deployments.ts +0 -3849
  531. package/src/operations/index.ts +0 -16
  532. package/src/operations/operations.ts +0 -149
  533. package/src/operations/providerResourceTypes.ts +0 -69
  534. package/src/operations/providers.ts +0 -493
  535. package/src/operations/resourceGroups.ts +0 -546
  536. package/src/operations/resources.ts +0 -1568
  537. package/src/operations/tagsOperations.ts +0 -463
  538. package/src/operationsInterfaces/deploymentOperations.ts +0 -144
  539. package/src/operationsInterfaces/deployments.ts +0 -957
  540. package/src/operationsInterfaces/index.ts +0 -16
  541. package/src/operationsInterfaces/operations.ts +0 -22
  542. package/src/operationsInterfaces/providerResourceTypes.ts +0 -25
  543. package/src/operationsInterfaces/providers.ts +0 -100
  544. package/src/operationsInterfaces/resourceGroups.ts +0 -130
  545. package/src/operationsInterfaces/resources.ts +0 -422
  546. package/src/operationsInterfaces/tagsOperations.ts +0 -132
  547. package/src/pagingHelper.ts +0 -39
  548. package/src/resourceManagementClient.ts +0 -172
  549. package/tsconfig.json +0 -33
  550. package/types/arm-resources.d.ts +0 -3398
  551. /package/{dist-esm/src → dist/browser}/lroImpl.d.ts +0 -0
  552. /package/{dist-esm/src → dist/browser}/lroImpl.d.ts.map +0 -0
  553. /package/{dist-esm/src → dist/browser}/lroImpl.js +0 -0
  554. /package/{dist-esm/src → dist/browser}/models/index.d.ts +0 -0
  555. /package/{dist-esm/src → dist/browser}/models/index.d.ts.map +0 -0
  556. /package/{dist-esm/src → dist/browser}/models/index.js +0 -0
  557. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts +0 -0
  558. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts.map +0 -0
  559. /package/{dist-esm/src → dist/browser}/models/mappers.js +0 -0
  560. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts +0 -0
  561. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +0 -0
  562. /package/{dist-esm/src → dist/browser}/operationsInterfaces/deploymentOperations.js +0 -0
  563. /package/{dist-esm/src → dist/browser}/operationsInterfaces/deployments.js +0 -0
  564. /package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.js +0 -0
  565. /package/{dist-esm/src → dist/browser}/operationsInterfaces/providerResourceTypes.js +0 -0
  566. /package/{dist-esm/src → dist/browser}/operationsInterfaces/providers.js +0 -0
  567. /package/{dist-esm/src → dist/browser}/operationsInterfaces/resourceGroups.js +0 -0
  568. /package/{dist-esm/src → dist/browser}/operationsInterfaces/resources.js +0 -0
  569. /package/{dist-esm/src → dist/browser}/operationsInterfaces/tagsOperations.js +0 -0
  570. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts +0 -0
  571. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts.map +0 -0
  572. /package/{dist-esm/src → dist/browser}/pagingHelper.js +0 -0
@@ -5,13 +5,13 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- import { __asyncDelegator, __asyncGenerator, __asyncValues, __await, __awaiter } from "tslib";
9
- import { setContinuationToken } from "../pagingHelper";
8
+ import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
+ import { setContinuationToken } from "../pagingHelper.js";
10
10
  import * as coreClient from "@azure/core-client";
11
- import * as Mappers from "../models/mappers";
12
- import * as Parameters from "../models/parameters";
11
+ import * as Mappers from "../models/mappers.js";
12
+ import * as Parameters from "../models/parameters.js";
13
13
  import { createHttpPoller } from "@azure/core-lro";
14
- import { createLroSpec } from "../lroImpl";
14
+ import { createLroSpec } from "../lroImpl.js";
15
15
  /// <reference lib="esnext.asynciterable" />
16
16
  /** Class containing Deployments operations. */
17
17
  export class DeploymentsImpl {
@@ -343,42 +343,40 @@ export class DeploymentsImpl {
343
343
  * @param deploymentName The name of the deployment.
344
344
  * @param options The options parameters.
345
345
  */
346
- beginDeleteAtScope(scope, deploymentName, options) {
347
- return __awaiter(this, void 0, void 0, function* () {
348
- const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
349
- return this.client.sendOperationRequest(args, spec);
350
- });
351
- const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
352
- var _a;
353
- let currentRawResponse = undefined;
354
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
355
- const callback = (rawResponse, flatResponse) => {
356
- currentRawResponse = rawResponse;
357
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
358
- };
359
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
360
- const flatResponse = yield directSendOperation(updatedArgs, spec);
361
- return {
362
- flatResponse,
363
- rawResponse: {
364
- statusCode: currentRawResponse.status,
365
- body: currentRawResponse.parsedBody,
366
- headers: currentRawResponse.headers.toJSON()
367
- }
368
- };
369
- });
370
- const lro = createLroSpec({
371
- sendOperationFn,
372
- args: { scope, deploymentName, options },
373
- spec: deleteAtScopeOperationSpec
374
- });
375
- const poller = yield createHttpPoller(lro, {
376
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
377
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
378
- });
379
- yield poller.poll();
380
- return poller;
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
381
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;
382
380
  }
383
381
  /**
384
382
  * A template deployment that is currently running cannot be deleted. Deleting a template deployment
@@ -392,11 +390,9 @@ export class DeploymentsImpl {
392
390
  * @param deploymentName The name of the deployment.
393
391
  * @param options The options parameters.
394
392
  */
395
- beginDeleteAtScopeAndWait(scope, deploymentName, options) {
396
- return __awaiter(this, void 0, void 0, function* () {
397
- const poller = yield this.beginDeleteAtScope(scope, deploymentName, options);
398
- return poller.pollUntilDone();
399
- });
393
+ async beginDeleteAtScopeAndWait(scope, deploymentName, options) {
394
+ const poller = await this.beginDeleteAtScope(scope, deploymentName, options);
395
+ return poller.pollUntilDone();
400
396
  }
401
397
  /**
402
398
  * Checks whether the deployment exists.
@@ -414,42 +410,40 @@ export class DeploymentsImpl {
414
410
  * @param parameters Additional parameters supplied to the operation.
415
411
  * @param options The options parameters.
416
412
  */
417
- beginCreateOrUpdateAtScope(scope, deploymentName, parameters, options) {
418
- return __awaiter(this, void 0, void 0, function* () {
419
- const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
420
- return this.client.sendOperationRequest(args, spec);
421
- });
422
- const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
423
- var _a;
424
- let currentRawResponse = undefined;
425
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
426
- const callback = (rawResponse, flatResponse) => {
427
- currentRawResponse = rawResponse;
428
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
429
- };
430
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
431
- const flatResponse = yield directSendOperation(updatedArgs, spec);
432
- return {
433
- flatResponse,
434
- rawResponse: {
435
- statusCode: currentRawResponse.status,
436
- body: currentRawResponse.parsedBody,
437
- headers: currentRawResponse.headers.toJSON()
438
- }
439
- };
440
- });
441
- const lro = createLroSpec({
442
- sendOperationFn,
443
- args: { scope, deploymentName, parameters, options },
444
- spec: createOrUpdateAtScopeOperationSpec
445
- });
446
- const poller = yield createHttpPoller(lro, {
447
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
448
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
449
- });
450
- yield poller.poll();
451
- return poller;
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
452
444
  });
445
+ await poller.poll();
446
+ return poller;
453
447
  }
454
448
  /**
455
449
  * You can provide the template and parameters directly in the request or link to JSON files.
@@ -458,11 +452,9 @@ export class DeploymentsImpl {
458
452
  * @param parameters Additional parameters supplied to the operation.
459
453
  * @param options The options parameters.
460
454
  */
461
- beginCreateOrUpdateAtScopeAndWait(scope, deploymentName, parameters, options) {
462
- return __awaiter(this, void 0, void 0, function* () {
463
- const poller = yield this.beginCreateOrUpdateAtScope(scope, deploymentName, parameters, options);
464
- return poller.pollUntilDone();
465
- });
455
+ async beginCreateOrUpdateAtScopeAndWait(scope, deploymentName, parameters, options) {
456
+ const poller = await this.beginCreateOrUpdateAtScope(scope, deploymentName, parameters, options);
457
+ return poller.pollUntilDone();
466
458
  }
467
459
  /**
468
460
  * Gets a deployment.
@@ -492,42 +484,40 @@ export class DeploymentsImpl {
492
484
  * @param parameters Parameters to validate.
493
485
  * @param options The options parameters.
494
486
  */
495
- beginValidateAtScope(scope, deploymentName, parameters, options) {
496
- return __awaiter(this, void 0, void 0, function* () {
497
- const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
498
- return this.client.sendOperationRequest(args, spec);
499
- });
500
- const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
501
- var _a;
502
- let currentRawResponse = undefined;
503
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
504
- const callback = (rawResponse, flatResponse) => {
505
- currentRawResponse = rawResponse;
506
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
507
- };
508
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
509
- const flatResponse = yield directSendOperation(updatedArgs, spec);
510
- return {
511
- flatResponse,
512
- rawResponse: {
513
- statusCode: currentRawResponse.status,
514
- body: currentRawResponse.parsedBody,
515
- headers: currentRawResponse.headers.toJSON()
516
- }
517
- };
518
- });
519
- const lro = createLroSpec({
520
- sendOperationFn,
521
- args: { scope, deploymentName, parameters, options },
522
- spec: validateAtScopeOperationSpec
523
- });
524
- const poller = yield createHttpPoller(lro, {
525
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
526
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
527
- });
528
- yield poller.poll();
529
- return poller;
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
530
518
  });
519
+ await poller.poll();
520
+ return poller;
531
521
  }
532
522
  /**
533
523
  * Validates whether the specified template is syntactically correct and will be accepted by Azure
@@ -537,11 +527,9 @@ export class DeploymentsImpl {
537
527
  * @param parameters Parameters to validate.
538
528
  * @param options The options parameters.
539
529
  */
540
- beginValidateAtScopeAndWait(scope, deploymentName, parameters, options) {
541
- return __awaiter(this, void 0, void 0, function* () {
542
- const poller = yield this.beginValidateAtScope(scope, deploymentName, parameters, options);
543
- return poller.pollUntilDone();
544
- });
530
+ async beginValidateAtScopeAndWait(scope, deploymentName, parameters, options) {
531
+ const poller = await this.beginValidateAtScope(scope, deploymentName, parameters, options);
532
+ return poller.pollUntilDone();
545
533
  }
546
534
  /**
547
535
  * Exports the template used for specified deployment.
@@ -571,42 +559,40 @@ export class DeploymentsImpl {
571
559
  * @param deploymentName The name of the deployment.
572
560
  * @param options The options parameters.
573
561
  */
574
- beginDeleteAtTenantScope(deploymentName, options) {
575
- return __awaiter(this, void 0, void 0, function* () {
576
- const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
577
- return this.client.sendOperationRequest(args, spec);
578
- });
579
- const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
580
- var _a;
581
- let currentRawResponse = undefined;
582
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
583
- const callback = (rawResponse, flatResponse) => {
584
- currentRawResponse = rawResponse;
585
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
586
- };
587
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
588
- const flatResponse = yield directSendOperation(updatedArgs, spec);
589
- return {
590
- flatResponse,
591
- rawResponse: {
592
- statusCode: currentRawResponse.status,
593
- body: currentRawResponse.parsedBody,
594
- headers: currentRawResponse.headers.toJSON()
595
- }
596
- };
597
- });
598
- const lro = createLroSpec({
599
- sendOperationFn,
600
- args: { deploymentName, options },
601
- spec: deleteAtTenantScopeOperationSpec
602
- });
603
- const poller = yield createHttpPoller(lro, {
604
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
605
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
606
- });
607
- yield poller.poll();
608
- return poller;
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
609
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;
610
596
  }
611
597
  /**
612
598
  * A template deployment that is currently running cannot be deleted. Deleting a template deployment
@@ -619,11 +605,9 @@ export class DeploymentsImpl {
619
605
  * @param deploymentName The name of the deployment.
620
606
  * @param options The options parameters.
621
607
  */
622
- beginDeleteAtTenantScopeAndWait(deploymentName, options) {
623
- return __awaiter(this, void 0, void 0, function* () {
624
- const poller = yield this.beginDeleteAtTenantScope(deploymentName, options);
625
- return poller.pollUntilDone();
626
- });
608
+ async beginDeleteAtTenantScopeAndWait(deploymentName, options) {
609
+ const poller = await this.beginDeleteAtTenantScope(deploymentName, options);
610
+ return poller.pollUntilDone();
627
611
  }
628
612
  /**
629
613
  * Checks whether the deployment exists.
@@ -639,42 +623,40 @@ export class DeploymentsImpl {
639
623
  * @param parameters Additional parameters supplied to the operation.
640
624
  * @param options The options parameters.
641
625
  */
642
- beginCreateOrUpdateAtTenantScope(deploymentName, parameters, options) {
643
- return __awaiter(this, void 0, void 0, function* () {
644
- const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
645
- return this.client.sendOperationRequest(args, spec);
646
- });
647
- const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
648
- var _a;
649
- let currentRawResponse = undefined;
650
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
651
- const callback = (rawResponse, flatResponse) => {
652
- currentRawResponse = rawResponse;
653
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
654
- };
655
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
656
- const flatResponse = yield directSendOperation(updatedArgs, spec);
657
- return {
658
- flatResponse,
659
- rawResponse: {
660
- statusCode: currentRawResponse.status,
661
- body: currentRawResponse.parsedBody,
662
- headers: currentRawResponse.headers.toJSON()
663
- }
664
- };
665
- });
666
- const lro = createLroSpec({
667
- sendOperationFn,
668
- args: { deploymentName, parameters, options },
669
- spec: createOrUpdateAtTenantScopeOperationSpec
670
- });
671
- const poller = yield createHttpPoller(lro, {
672
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
673
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
674
- });
675
- yield poller.poll();
676
- return poller;
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
677
657
  });
658
+ await poller.poll();
659
+ return poller;
678
660
  }
679
661
  /**
680
662
  * You can provide the template and parameters directly in the request or link to JSON files.
@@ -682,11 +664,9 @@ export class DeploymentsImpl {
682
664
  * @param parameters Additional parameters supplied to the operation.
683
665
  * @param options The options parameters.
684
666
  */
685
- beginCreateOrUpdateAtTenantScopeAndWait(deploymentName, parameters, options) {
686
- return __awaiter(this, void 0, void 0, function* () {
687
- const poller = yield this.beginCreateOrUpdateAtTenantScope(deploymentName, parameters, options);
688
- return poller.pollUntilDone();
689
- });
667
+ async beginCreateOrUpdateAtTenantScopeAndWait(deploymentName, parameters, options) {
668
+ const poller = await this.beginCreateOrUpdateAtTenantScope(deploymentName, parameters, options);
669
+ return poller.pollUntilDone();
690
670
  }
691
671
  /**
692
672
  * Gets a deployment.
@@ -713,42 +693,40 @@ export class DeploymentsImpl {
713
693
  * @param parameters Parameters to validate.
714
694
  * @param options The options parameters.
715
695
  */
716
- beginValidateAtTenantScope(deploymentName, parameters, options) {
717
- return __awaiter(this, void 0, void 0, function* () {
718
- const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
719
- return this.client.sendOperationRequest(args, spec);
720
- });
721
- const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
722
- var _a;
723
- let currentRawResponse = undefined;
724
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
725
- const callback = (rawResponse, flatResponse) => {
726
- currentRawResponse = rawResponse;
727
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
728
- };
729
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
730
- const flatResponse = yield directSendOperation(updatedArgs, spec);
731
- return {
732
- flatResponse,
733
- rawResponse: {
734
- statusCode: currentRawResponse.status,
735
- body: currentRawResponse.parsedBody,
736
- headers: currentRawResponse.headers.toJSON()
737
- }
738
- };
739
- });
740
- const lro = createLroSpec({
741
- sendOperationFn,
742
- args: { deploymentName, parameters, options },
743
- spec: validateAtTenantScopeOperationSpec
744
- });
745
- const poller = yield createHttpPoller(lro, {
746
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
747
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
748
- });
749
- yield poller.poll();
750
- return poller;
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
751
727
  });
728
+ await poller.poll();
729
+ return poller;
752
730
  }
753
731
  /**
754
732
  * Validates whether the specified template is syntactically correct and will be accepted by Azure
@@ -757,11 +735,9 @@ export class DeploymentsImpl {
757
735
  * @param parameters Parameters to validate.
758
736
  * @param options The options parameters.
759
737
  */
760
- beginValidateAtTenantScopeAndWait(deploymentName, parameters, options) {
761
- return __awaiter(this, void 0, void 0, function* () {
762
- const poller = yield this.beginValidateAtTenantScope(deploymentName, parameters, options);
763
- return poller.pollUntilDone();
764
- });
738
+ async beginValidateAtTenantScopeAndWait(deploymentName, parameters, options) {
739
+ const poller = await this.beginValidateAtTenantScope(deploymentName, parameters, options);
740
+ return poller.pollUntilDone();
765
741
  }
766
742
  /**
767
743
  * Returns changes that will be made by the deployment if executed at the scope of the tenant group.
@@ -769,43 +745,41 @@ export class DeploymentsImpl {
769
745
  * @param parameters Parameters to validate.
770
746
  * @param options The options parameters.
771
747
  */
772
- beginWhatIfAtTenantScope(deploymentName, parameters, options) {
773
- return __awaiter(this, void 0, void 0, function* () {
774
- const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
775
- return this.client.sendOperationRequest(args, spec);
776
- });
777
- const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
778
- var _a;
779
- let currentRawResponse = undefined;
780
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
781
- const callback = (rawResponse, flatResponse) => {
782
- currentRawResponse = rawResponse;
783
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
784
- };
785
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
786
- const flatResponse = yield directSendOperation(updatedArgs, spec);
787
- return {
788
- flatResponse,
789
- rawResponse: {
790
- statusCode: currentRawResponse.status,
791
- body: currentRawResponse.parsedBody,
792
- headers: currentRawResponse.headers.toJSON()
793
- }
794
- };
795
- });
796
- const lro = createLroSpec({
797
- sendOperationFn,
798
- args: { deploymentName, parameters, options },
799
- spec: whatIfAtTenantScopeOperationSpec
800
- });
801
- const poller = yield createHttpPoller(lro, {
802
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
803
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
804
- resourceLocationConfig: "location"
805
- });
806
- yield poller.poll();
807
- return poller;
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
808
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;
809
783
  }
810
784
  /**
811
785
  * Returns changes that will be made by the deployment if executed at the scope of the tenant group.
@@ -813,11 +787,9 @@ export class DeploymentsImpl {
813
787
  * @param parameters Parameters to validate.
814
788
  * @param options The options parameters.
815
789
  */
816
- beginWhatIfAtTenantScopeAndWait(deploymentName, parameters, options) {
817
- return __awaiter(this, void 0, void 0, function* () {
818
- const poller = yield this.beginWhatIfAtTenantScope(deploymentName, parameters, options);
819
- return poller.pollUntilDone();
820
- });
790
+ async beginWhatIfAtTenantScopeAndWait(deploymentName, parameters, options) {
791
+ const poller = await this.beginWhatIfAtTenantScope(deploymentName, parameters, options);
792
+ return poller.pollUntilDone();
821
793
  }
822
794
  /**
823
795
  * Exports the template used for specified deployment.
@@ -846,42 +818,40 @@ export class DeploymentsImpl {
846
818
  * @param deploymentName The name of the deployment.
847
819
  * @param options The options parameters.
848
820
  */
849
- beginDeleteAtManagementGroupScope(groupId, deploymentName, options) {
850
- return __awaiter(this, void 0, void 0, function* () {
851
- const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
852
- return this.client.sendOperationRequest(args, spec);
853
- });
854
- const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
855
- var _a;
856
- let currentRawResponse = undefined;
857
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
858
- const callback = (rawResponse, flatResponse) => {
859
- currentRawResponse = rawResponse;
860
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
861
- };
862
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
863
- const flatResponse = yield directSendOperation(updatedArgs, spec);
864
- return {
865
- flatResponse,
866
- rawResponse: {
867
- statusCode: currentRawResponse.status,
868
- body: currentRawResponse.parsedBody,
869
- headers: currentRawResponse.headers.toJSON()
870
- }
871
- };
872
- });
873
- const lro = createLroSpec({
874
- sendOperationFn,
875
- args: { groupId, deploymentName, options },
876
- spec: deleteAtManagementGroupScopeOperationSpec
877
- });
878
- const poller = yield createHttpPoller(lro, {
879
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
880
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
881
- });
882
- yield poller.poll();
883
- return poller;
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
884
852
  });
853
+ await poller.poll();
854
+ return poller;
885
855
  }
886
856
  /**
887
857
  * A template deployment that is currently running cannot be deleted. Deleting a template deployment
@@ -895,11 +865,9 @@ export class DeploymentsImpl {
895
865
  * @param deploymentName The name of the deployment.
896
866
  * @param options The options parameters.
897
867
  */
898
- beginDeleteAtManagementGroupScopeAndWait(groupId, deploymentName, options) {
899
- return __awaiter(this, void 0, void 0, function* () {
900
- const poller = yield this.beginDeleteAtManagementGroupScope(groupId, deploymentName, options);
901
- return poller.pollUntilDone();
902
- });
868
+ async beginDeleteAtManagementGroupScopeAndWait(groupId, deploymentName, options) {
869
+ const poller = await this.beginDeleteAtManagementGroupScope(groupId, deploymentName, options);
870
+ return poller.pollUntilDone();
903
871
  }
904
872
  /**
905
873
  * Checks whether the deployment exists.
@@ -917,42 +885,40 @@ export class DeploymentsImpl {
917
885
  * @param parameters Additional parameters supplied to the operation.
918
886
  * @param options The options parameters.
919
887
  */
920
- beginCreateOrUpdateAtManagementGroupScope(groupId, deploymentName, parameters, options) {
921
- return __awaiter(this, void 0, void 0, function* () {
922
- const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
923
- return this.client.sendOperationRequest(args, spec);
924
- });
925
- const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
926
- var _a;
927
- let currentRawResponse = undefined;
928
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
929
- const callback = (rawResponse, flatResponse) => {
930
- currentRawResponse = rawResponse;
931
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
932
- };
933
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
934
- const flatResponse = yield directSendOperation(updatedArgs, spec);
935
- return {
936
- flatResponse,
937
- rawResponse: {
938
- statusCode: currentRawResponse.status,
939
- body: currentRawResponse.parsedBody,
940
- headers: currentRawResponse.headers.toJSON()
941
- }
942
- };
943
- });
944
- const lro = createLroSpec({
945
- sendOperationFn,
946
- args: { groupId, deploymentName, parameters, options },
947
- spec: createOrUpdateAtManagementGroupScopeOperationSpec
948
- });
949
- const poller = yield createHttpPoller(lro, {
950
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
951
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
952
- });
953
- yield poller.poll();
954
- return poller;
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
955
919
  });
920
+ await poller.poll();
921
+ return poller;
956
922
  }
957
923
  /**
958
924
  * You can provide the template and parameters directly in the request or link to JSON files.
@@ -961,11 +927,9 @@ export class DeploymentsImpl {
961
927
  * @param parameters Additional parameters supplied to the operation.
962
928
  * @param options The options parameters.
963
929
  */
964
- beginCreateOrUpdateAtManagementGroupScopeAndWait(groupId, deploymentName, parameters, options) {
965
- return __awaiter(this, void 0, void 0, function* () {
966
- const poller = yield this.beginCreateOrUpdateAtManagementGroupScope(groupId, deploymentName, parameters, options);
967
- return poller.pollUntilDone();
968
- });
930
+ async beginCreateOrUpdateAtManagementGroupScopeAndWait(groupId, deploymentName, parameters, options) {
931
+ const poller = await this.beginCreateOrUpdateAtManagementGroupScope(groupId, deploymentName, parameters, options);
932
+ return poller.pollUntilDone();
969
933
  }
970
934
  /**
971
935
  * Gets a deployment.
@@ -995,42 +959,40 @@ export class DeploymentsImpl {
995
959
  * @param parameters Parameters to validate.
996
960
  * @param options The options parameters.
997
961
  */
998
- beginValidateAtManagementGroupScope(groupId, deploymentName, parameters, options) {
999
- return __awaiter(this, void 0, void 0, function* () {
1000
- const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
1001
- return this.client.sendOperationRequest(args, spec);
1002
- });
1003
- const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
1004
- var _a;
1005
- let currentRawResponse = undefined;
1006
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1007
- const callback = (rawResponse, flatResponse) => {
1008
- currentRawResponse = rawResponse;
1009
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1010
- };
1011
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1012
- const flatResponse = yield directSendOperation(updatedArgs, spec);
1013
- return {
1014
- flatResponse,
1015
- rawResponse: {
1016
- statusCode: currentRawResponse.status,
1017
- body: currentRawResponse.parsedBody,
1018
- headers: currentRawResponse.headers.toJSON()
1019
- }
1020
- };
1021
- });
1022
- const lro = createLroSpec({
1023
- sendOperationFn,
1024
- args: { groupId, deploymentName, parameters, options },
1025
- spec: validateAtManagementGroupScopeOperationSpec
1026
- });
1027
- const poller = yield createHttpPoller(lro, {
1028
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1029
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
1030
- });
1031
- yield poller.poll();
1032
- return poller;
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
1033
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;
1034
996
  }
1035
997
  /**
1036
998
  * Validates whether the specified template is syntactically correct and will be accepted by Azure
@@ -1040,11 +1002,9 @@ export class DeploymentsImpl {
1040
1002
  * @param parameters Parameters to validate.
1041
1003
  * @param options The options parameters.
1042
1004
  */
1043
- beginValidateAtManagementGroupScopeAndWait(groupId, deploymentName, parameters, options) {
1044
- return __awaiter(this, void 0, void 0, function* () {
1045
- const poller = yield this.beginValidateAtManagementGroupScope(groupId, deploymentName, parameters, options);
1046
- return poller.pollUntilDone();
1047
- });
1005
+ async beginValidateAtManagementGroupScopeAndWait(groupId, deploymentName, parameters, options) {
1006
+ const poller = await this.beginValidateAtManagementGroupScope(groupId, deploymentName, parameters, options);
1007
+ return poller.pollUntilDone();
1048
1008
  }
1049
1009
  /**
1050
1010
  * Returns changes that will be made by the deployment if executed at the scope of the management
@@ -1054,43 +1014,41 @@ export class DeploymentsImpl {
1054
1014
  * @param parameters Parameters to validate.
1055
1015
  * @param options The options parameters.
1056
1016
  */
1057
- beginWhatIfAtManagementGroupScope(groupId, deploymentName, parameters, options) {
1058
- return __awaiter(this, void 0, void 0, function* () {
1059
- const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
1060
- return this.client.sendOperationRequest(args, spec);
1061
- });
1062
- const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
1063
- var _a;
1064
- let currentRawResponse = undefined;
1065
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1066
- const callback = (rawResponse, flatResponse) => {
1067
- currentRawResponse = rawResponse;
1068
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1069
- };
1070
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1071
- const flatResponse = yield directSendOperation(updatedArgs, spec);
1072
- return {
1073
- flatResponse,
1074
- rawResponse: {
1075
- statusCode: currentRawResponse.status,
1076
- body: currentRawResponse.parsedBody,
1077
- headers: currentRawResponse.headers.toJSON()
1078
- }
1079
- };
1080
- });
1081
- const lro = createLroSpec({
1082
- sendOperationFn,
1083
- args: { groupId, deploymentName, parameters, options },
1084
- spec: whatIfAtManagementGroupScopeOperationSpec
1085
- });
1086
- const poller = yield createHttpPoller(lro, {
1087
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1088
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
1089
- resourceLocationConfig: "location"
1090
- });
1091
- yield poller.poll();
1092
- return poller;
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"
1093
1049
  });
1050
+ await poller.poll();
1051
+ return poller;
1094
1052
  }
1095
1053
  /**
1096
1054
  * Returns changes that will be made by the deployment if executed at the scope of the management
@@ -1100,11 +1058,9 @@ export class DeploymentsImpl {
1100
1058
  * @param parameters Parameters to validate.
1101
1059
  * @param options The options parameters.
1102
1060
  */
1103
- beginWhatIfAtManagementGroupScopeAndWait(groupId, deploymentName, parameters, options) {
1104
- return __awaiter(this, void 0, void 0, function* () {
1105
- const poller = yield this.beginWhatIfAtManagementGroupScope(groupId, deploymentName, parameters, options);
1106
- return poller.pollUntilDone();
1107
- });
1061
+ async beginWhatIfAtManagementGroupScopeAndWait(groupId, deploymentName, parameters, options) {
1062
+ const poller = await this.beginWhatIfAtManagementGroupScope(groupId, deploymentName, parameters, options);
1063
+ return poller.pollUntilDone();
1108
1064
  }
1109
1065
  /**
1110
1066
  * Exports the template used for specified deployment.
@@ -1134,42 +1090,40 @@ export class DeploymentsImpl {
1134
1090
  * @param deploymentName The name of the deployment.
1135
1091
  * @param options The options parameters.
1136
1092
  */
1137
- beginDeleteAtSubscriptionScope(deploymentName, options) {
1138
- return __awaiter(this, void 0, void 0, function* () {
1139
- const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
1140
- return this.client.sendOperationRequest(args, spec);
1141
- });
1142
- const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
1143
- var _a;
1144
- let currentRawResponse = undefined;
1145
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1146
- const callback = (rawResponse, flatResponse) => {
1147
- currentRawResponse = rawResponse;
1148
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1149
- };
1150
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1151
- const flatResponse = yield directSendOperation(updatedArgs, spec);
1152
- return {
1153
- flatResponse,
1154
- rawResponse: {
1155
- statusCode: currentRawResponse.status,
1156
- body: currentRawResponse.parsedBody,
1157
- headers: currentRawResponse.headers.toJSON()
1158
- }
1159
- };
1160
- });
1161
- const lro = createLroSpec({
1162
- sendOperationFn,
1163
- args: { deploymentName, options },
1164
- spec: deleteAtSubscriptionScopeOperationSpec
1165
- });
1166
- const poller = yield createHttpPoller(lro, {
1167
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1168
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
1169
- });
1170
- yield poller.poll();
1171
- return poller;
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
1172
1124
  });
1125
+ await poller.poll();
1126
+ return poller;
1173
1127
  }
1174
1128
  /**
1175
1129
  * A template deployment that is currently running cannot be deleted. Deleting a template deployment
@@ -1182,11 +1136,9 @@ export class DeploymentsImpl {
1182
1136
  * @param deploymentName The name of the deployment.
1183
1137
  * @param options The options parameters.
1184
1138
  */
1185
- beginDeleteAtSubscriptionScopeAndWait(deploymentName, options) {
1186
- return __awaiter(this, void 0, void 0, function* () {
1187
- const poller = yield this.beginDeleteAtSubscriptionScope(deploymentName, options);
1188
- return poller.pollUntilDone();
1189
- });
1139
+ async beginDeleteAtSubscriptionScopeAndWait(deploymentName, options) {
1140
+ const poller = await this.beginDeleteAtSubscriptionScope(deploymentName, options);
1141
+ return poller.pollUntilDone();
1190
1142
  }
1191
1143
  /**
1192
1144
  * Checks whether the deployment exists.
@@ -1202,42 +1154,40 @@ export class DeploymentsImpl {
1202
1154
  * @param parameters Additional parameters supplied to the operation.
1203
1155
  * @param options The options parameters.
1204
1156
  */
1205
- beginCreateOrUpdateAtSubscriptionScope(deploymentName, parameters, options) {
1206
- return __awaiter(this, void 0, void 0, function* () {
1207
- const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
1208
- return this.client.sendOperationRequest(args, spec);
1209
- });
1210
- const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
1211
- var _a;
1212
- let currentRawResponse = undefined;
1213
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1214
- const callback = (rawResponse, flatResponse) => {
1215
- currentRawResponse = rawResponse;
1216
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1217
- };
1218
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1219
- const flatResponse = yield directSendOperation(updatedArgs, spec);
1220
- return {
1221
- flatResponse,
1222
- rawResponse: {
1223
- statusCode: currentRawResponse.status,
1224
- body: currentRawResponse.parsedBody,
1225
- headers: currentRawResponse.headers.toJSON()
1226
- }
1227
- };
1228
- });
1229
- const lro = createLroSpec({
1230
- sendOperationFn,
1231
- args: { deploymentName, parameters, options },
1232
- spec: createOrUpdateAtSubscriptionScopeOperationSpec
1233
- });
1234
- const poller = yield createHttpPoller(lro, {
1235
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1236
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
1237
- });
1238
- yield poller.poll();
1239
- return poller;
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
1240
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;
1241
1191
  }
1242
1192
  /**
1243
1193
  * You can provide the template and parameters directly in the request or link to JSON files.
@@ -1245,11 +1195,9 @@ export class DeploymentsImpl {
1245
1195
  * @param parameters Additional parameters supplied to the operation.
1246
1196
  * @param options The options parameters.
1247
1197
  */
1248
- beginCreateOrUpdateAtSubscriptionScopeAndWait(deploymentName, parameters, options) {
1249
- return __awaiter(this, void 0, void 0, function* () {
1250
- const poller = yield this.beginCreateOrUpdateAtSubscriptionScope(deploymentName, parameters, options);
1251
- return poller.pollUntilDone();
1252
- });
1198
+ async beginCreateOrUpdateAtSubscriptionScopeAndWait(deploymentName, parameters, options) {
1199
+ const poller = await this.beginCreateOrUpdateAtSubscriptionScope(deploymentName, parameters, options);
1200
+ return poller.pollUntilDone();
1253
1201
  }
1254
1202
  /**
1255
1203
  * Gets a deployment.
@@ -1276,42 +1224,40 @@ export class DeploymentsImpl {
1276
1224
  * @param parameters Parameters to validate.
1277
1225
  * @param options The options parameters.
1278
1226
  */
1279
- beginValidateAtSubscriptionScope(deploymentName, parameters, options) {
1280
- return __awaiter(this, void 0, void 0, function* () {
1281
- const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
1282
- return this.client.sendOperationRequest(args, spec);
1283
- });
1284
- const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
1285
- var _a;
1286
- let currentRawResponse = undefined;
1287
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1288
- const callback = (rawResponse, flatResponse) => {
1289
- currentRawResponse = rawResponse;
1290
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1291
- };
1292
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1293
- const flatResponse = yield directSendOperation(updatedArgs, spec);
1294
- return {
1295
- flatResponse,
1296
- rawResponse: {
1297
- statusCode: currentRawResponse.status,
1298
- body: currentRawResponse.parsedBody,
1299
- headers: currentRawResponse.headers.toJSON()
1300
- }
1301
- };
1302
- });
1303
- const lro = createLroSpec({
1304
- sendOperationFn,
1305
- args: { deploymentName, parameters, options },
1306
- spec: validateAtSubscriptionScopeOperationSpec
1307
- });
1308
- const poller = yield createHttpPoller(lro, {
1309
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1310
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
1311
- });
1312
- yield poller.poll();
1313
- return poller;
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
1314
1258
  });
1259
+ await poller.poll();
1260
+ return poller;
1315
1261
  }
1316
1262
  /**
1317
1263
  * Validates whether the specified template is syntactically correct and will be accepted by Azure
@@ -1320,11 +1266,9 @@ export class DeploymentsImpl {
1320
1266
  * @param parameters Parameters to validate.
1321
1267
  * @param options The options parameters.
1322
1268
  */
1323
- beginValidateAtSubscriptionScopeAndWait(deploymentName, parameters, options) {
1324
- return __awaiter(this, void 0, void 0, function* () {
1325
- const poller = yield this.beginValidateAtSubscriptionScope(deploymentName, parameters, options);
1326
- return poller.pollUntilDone();
1327
- });
1269
+ async beginValidateAtSubscriptionScopeAndWait(deploymentName, parameters, options) {
1270
+ const poller = await this.beginValidateAtSubscriptionScope(deploymentName, parameters, options);
1271
+ return poller.pollUntilDone();
1328
1272
  }
1329
1273
  /**
1330
1274
  * Returns changes that will be made by the deployment if executed at the scope of the subscription.
@@ -1332,43 +1276,41 @@ export class DeploymentsImpl {
1332
1276
  * @param parameters Parameters to What If.
1333
1277
  * @param options The options parameters.
1334
1278
  */
1335
- beginWhatIfAtSubscriptionScope(deploymentName, parameters, options) {
1336
- return __awaiter(this, void 0, void 0, function* () {
1337
- const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
1338
- return this.client.sendOperationRequest(args, spec);
1339
- });
1340
- const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
1341
- var _a;
1342
- let currentRawResponse = undefined;
1343
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1344
- const callback = (rawResponse, flatResponse) => {
1345
- currentRawResponse = rawResponse;
1346
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1347
- };
1348
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1349
- const flatResponse = yield directSendOperation(updatedArgs, spec);
1350
- return {
1351
- flatResponse,
1352
- rawResponse: {
1353
- statusCode: currentRawResponse.status,
1354
- body: currentRawResponse.parsedBody,
1355
- headers: currentRawResponse.headers.toJSON()
1356
- }
1357
- };
1358
- });
1359
- const lro = createLroSpec({
1360
- sendOperationFn,
1361
- args: { deploymentName, parameters, options },
1362
- spec: whatIfAtSubscriptionScopeOperationSpec
1363
- });
1364
- const poller = yield createHttpPoller(lro, {
1365
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1366
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
1367
- resourceLocationConfig: "location"
1368
- });
1369
- yield poller.poll();
1370
- return poller;
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"
1371
1311
  });
1312
+ await poller.poll();
1313
+ return poller;
1372
1314
  }
1373
1315
  /**
1374
1316
  * Returns changes that will be made by the deployment if executed at the scope of the subscription.
@@ -1376,11 +1318,9 @@ export class DeploymentsImpl {
1376
1318
  * @param parameters Parameters to What If.
1377
1319
  * @param options The options parameters.
1378
1320
  */
1379
- beginWhatIfAtSubscriptionScopeAndWait(deploymentName, parameters, options) {
1380
- return __awaiter(this, void 0, void 0, function* () {
1381
- const poller = yield this.beginWhatIfAtSubscriptionScope(deploymentName, parameters, options);
1382
- return poller.pollUntilDone();
1383
- });
1321
+ async beginWhatIfAtSubscriptionScopeAndWait(deploymentName, parameters, options) {
1322
+ const poller = await this.beginWhatIfAtSubscriptionScope(deploymentName, parameters, options);
1323
+ return poller.pollUntilDone();
1384
1324
  }
1385
1325
  /**
1386
1326
  * Exports the template used for specified deployment.
@@ -1411,42 +1351,40 @@ export class DeploymentsImpl {
1411
1351
  * @param deploymentName The name of the deployment.
1412
1352
  * @param options The options parameters.
1413
1353
  */
1414
- beginDelete(resourceGroupName, deploymentName, options) {
1415
- return __awaiter(this, void 0, void 0, function* () {
1416
- const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
1417
- return this.client.sendOperationRequest(args, spec);
1418
- });
1419
- const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
1420
- var _a;
1421
- let currentRawResponse = undefined;
1422
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1423
- const callback = (rawResponse, flatResponse) => {
1424
- currentRawResponse = rawResponse;
1425
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1426
- };
1427
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1428
- const flatResponse = yield directSendOperation(updatedArgs, spec);
1429
- return {
1430
- flatResponse,
1431
- rawResponse: {
1432
- statusCode: currentRawResponse.status,
1433
- body: currentRawResponse.parsedBody,
1434
- headers: currentRawResponse.headers.toJSON()
1435
- }
1436
- };
1437
- });
1438
- const lro = createLroSpec({
1439
- sendOperationFn,
1440
- args: { resourceGroupName, deploymentName, options },
1441
- spec: deleteOperationSpec
1442
- });
1443
- const poller = yield createHttpPoller(lro, {
1444
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1445
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
1446
- });
1447
- yield poller.poll();
1448
- return poller;
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
1449
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;
1450
1388
  }
1451
1389
  /**
1452
1390
  * A template deployment that is currently running cannot be deleted. Deleting a template deployment
@@ -1462,11 +1400,9 @@ export class DeploymentsImpl {
1462
1400
  * @param deploymentName The name of the deployment.
1463
1401
  * @param options The options parameters.
1464
1402
  */
1465
- beginDeleteAndWait(resourceGroupName, deploymentName, options) {
1466
- return __awaiter(this, void 0, void 0, function* () {
1467
- const poller = yield this.beginDelete(resourceGroupName, deploymentName, options);
1468
- return poller.pollUntilDone();
1469
- });
1403
+ async beginDeleteAndWait(resourceGroupName, deploymentName, options) {
1404
+ const poller = await this.beginDelete(resourceGroupName, deploymentName, options);
1405
+ return poller.pollUntilDone();
1470
1406
  }
1471
1407
  /**
1472
1408
  * Checks whether the deployment exists.
@@ -1486,42 +1422,40 @@ export class DeploymentsImpl {
1486
1422
  * @param parameters Additional parameters supplied to the operation.
1487
1423
  * @param options The options parameters.
1488
1424
  */
1489
- beginCreateOrUpdate(resourceGroupName, deploymentName, parameters, options) {
1490
- return __awaiter(this, void 0, void 0, function* () {
1491
- const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
1492
- return this.client.sendOperationRequest(args, spec);
1493
- });
1494
- const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
1495
- var _a;
1496
- let currentRawResponse = undefined;
1497
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1498
- const callback = (rawResponse, flatResponse) => {
1499
- currentRawResponse = rawResponse;
1500
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1501
- };
1502
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1503
- const flatResponse = yield directSendOperation(updatedArgs, spec);
1504
- return {
1505
- flatResponse,
1506
- rawResponse: {
1507
- statusCode: currentRawResponse.status,
1508
- body: currentRawResponse.parsedBody,
1509
- headers: currentRawResponse.headers.toJSON()
1510
- }
1511
- };
1512
- });
1513
- const lro = createLroSpec({
1514
- sendOperationFn,
1515
- args: { resourceGroupName, deploymentName, parameters, options },
1516
- spec: createOrUpdateOperationSpec
1517
- });
1518
- const poller = yield createHttpPoller(lro, {
1519
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1520
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
1521
- });
1522
- yield poller.poll();
1523
- return poller;
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
1524
1456
  });
1457
+ await poller.poll();
1458
+ return poller;
1525
1459
  }
1526
1460
  /**
1527
1461
  * You can provide the template and parameters directly in the request or link to JSON files.
@@ -1531,11 +1465,9 @@ export class DeploymentsImpl {
1531
1465
  * @param parameters Additional parameters supplied to the operation.
1532
1466
  * @param options The options parameters.
1533
1467
  */
1534
- beginCreateOrUpdateAndWait(resourceGroupName, deploymentName, parameters, options) {
1535
- return __awaiter(this, void 0, void 0, function* () {
1536
- const poller = yield this.beginCreateOrUpdate(resourceGroupName, deploymentName, parameters, options);
1537
- return poller.pollUntilDone();
1538
- });
1468
+ async beginCreateOrUpdateAndWait(resourceGroupName, deploymentName, parameters, options) {
1469
+ const poller = await this.beginCreateOrUpdate(resourceGroupName, deploymentName, parameters, options);
1470
+ return poller.pollUntilDone();
1539
1471
  }
1540
1472
  /**
1541
1473
  * Gets a deployment.
@@ -1566,42 +1498,40 @@ export class DeploymentsImpl {
1566
1498
  * @param parameters Parameters to validate.
1567
1499
  * @param options The options parameters.
1568
1500
  */
1569
- beginValidate(resourceGroupName, deploymentName, parameters, options) {
1570
- return __awaiter(this, void 0, void 0, function* () {
1571
- const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
1572
- return this.client.sendOperationRequest(args, spec);
1573
- });
1574
- const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
1575
- var _a;
1576
- let currentRawResponse = undefined;
1577
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1578
- const callback = (rawResponse, flatResponse) => {
1579
- currentRawResponse = rawResponse;
1580
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1581
- };
1582
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1583
- const flatResponse = yield directSendOperation(updatedArgs, spec);
1584
- return {
1585
- flatResponse,
1586
- rawResponse: {
1587
- statusCode: currentRawResponse.status,
1588
- body: currentRawResponse.parsedBody,
1589
- headers: currentRawResponse.headers.toJSON()
1590
- }
1591
- };
1592
- });
1593
- const lro = createLroSpec({
1594
- sendOperationFn,
1595
- args: { resourceGroupName, deploymentName, parameters, options },
1596
- spec: validateOperationSpec
1597
- });
1598
- const poller = yield createHttpPoller(lro, {
1599
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1600
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
1601
- });
1602
- yield poller.poll();
1603
- return poller;
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
1604
1532
  });
1533
+ await poller.poll();
1534
+ return poller;
1605
1535
  }
1606
1536
  /**
1607
1537
  * Validates whether the specified template is syntactically correct and will be accepted by Azure
@@ -1612,11 +1542,9 @@ export class DeploymentsImpl {
1612
1542
  * @param parameters Parameters to validate.
1613
1543
  * @param options The options parameters.
1614
1544
  */
1615
- beginValidateAndWait(resourceGroupName, deploymentName, parameters, options) {
1616
- return __awaiter(this, void 0, void 0, function* () {
1617
- const poller = yield this.beginValidate(resourceGroupName, deploymentName, parameters, options);
1618
- return poller.pollUntilDone();
1619
- });
1545
+ async beginValidateAndWait(resourceGroupName, deploymentName, parameters, options) {
1546
+ const poller = await this.beginValidate(resourceGroupName, deploymentName, parameters, options);
1547
+ return poller.pollUntilDone();
1620
1548
  }
1621
1549
  /**
1622
1550
  * Returns changes that will be made by the deployment if executed at the scope of the resource group.
@@ -1626,43 +1554,41 @@ export class DeploymentsImpl {
1626
1554
  * @param parameters Parameters to validate.
1627
1555
  * @param options The options parameters.
1628
1556
  */
1629
- beginWhatIf(resourceGroupName, deploymentName, parameters, options) {
1630
- return __awaiter(this, void 0, void 0, function* () {
1631
- const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
1632
- return this.client.sendOperationRequest(args, spec);
1633
- });
1634
- const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
1635
- var _a;
1636
- let currentRawResponse = undefined;
1637
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1638
- const callback = (rawResponse, flatResponse) => {
1639
- currentRawResponse = rawResponse;
1640
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1641
- };
1642
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1643
- const flatResponse = yield directSendOperation(updatedArgs, spec);
1644
- return {
1645
- flatResponse,
1646
- rawResponse: {
1647
- statusCode: currentRawResponse.status,
1648
- body: currentRawResponse.parsedBody,
1649
- headers: currentRawResponse.headers.toJSON()
1650
- }
1651
- };
1652
- });
1653
- const lro = createLroSpec({
1654
- sendOperationFn,
1655
- args: { resourceGroupName, deploymentName, parameters, options },
1656
- spec: whatIfOperationSpec
1657
- });
1658
- const poller = yield createHttpPoller(lro, {
1659
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1660
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
1661
- resourceLocationConfig: "location"
1662
- });
1663
- yield poller.poll();
1664
- return poller;
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
1665
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;
1666
1592
  }
1667
1593
  /**
1668
1594
  * Returns changes that will be made by the deployment if executed at the scope of the resource group.
@@ -1672,11 +1598,9 @@ export class DeploymentsImpl {
1672
1598
  * @param parameters Parameters to validate.
1673
1599
  * @param options The options parameters.
1674
1600
  */
1675
- beginWhatIfAndWait(resourceGroupName, deploymentName, parameters, options) {
1676
- return __awaiter(this, void 0, void 0, function* () {
1677
- const poller = yield this.beginWhatIf(resourceGroupName, deploymentName, parameters, options);
1678
- return poller.pollUntilDone();
1679
- });
1601
+ async beginWhatIfAndWait(resourceGroupName, deploymentName, parameters, options) {
1602
+ const poller = await this.beginWhatIf(resourceGroupName, deploymentName, parameters, options);
1603
+ return poller.pollUntilDone();
1680
1604
  }
1681
1605
  /**
1682
1606
  * Exports the template used for specified deployment.