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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (572) hide show
  1. package/README.md +21 -12
  2. package/dist/browser/index.d.ts +5 -0
  3. package/{dist-esm/src → dist/browser}/index.d.ts.map +1 -1
  4. package/{dist-esm/src → dist/browser}/index.js +4 -4
  5. package/dist/browser/index.js.map +1 -0
  6. package/dist/browser/lroImpl.js.map +1 -0
  7. package/dist/browser/models/index.js.map +1 -0
  8. package/dist/browser/models/mappers.js.map +1 -0
  9. package/{dist-esm/src → dist/browser}/models/parameters.js +1 -1
  10. package/dist/browser/models/parameters.js.map +1 -0
  11. package/{dist-esm/src → dist/browser}/operations/deploymentOperations.d.ts +3 -3
  12. package/dist/browser/operations/deploymentOperations.d.ts.map +1 -0
  13. package/{dist-esm/src → dist/browser}/operations/deploymentOperations.js +3 -3
  14. package/dist/browser/operations/deploymentOperations.js.map +1 -0
  15. package/{dist-esm/src → dist/browser}/operations/deployments.d.ts +3 -3
  16. package/dist/browser/operations/deployments.d.ts.map +1 -0
  17. package/{dist-esm/src → dist/browser}/operations/deployments.js +693 -769
  18. package/dist/browser/operations/deployments.js.map +1 -0
  19. package/dist/browser/operations/index.d.ts +9 -0
  20. package/dist/browser/operations/index.d.ts.map +1 -0
  21. package/dist/browser/operations/index.js +16 -0
  22. package/dist/browser/operations/index.js.map +1 -0
  23. package/{dist-esm/src → dist/browser}/operations/operations.d.ts +3 -3
  24. package/dist/browser/operations/operations.d.ts.map +1 -0
  25. package/{dist-esm/src → dist/browser}/operations/operations.js +3 -3
  26. package/dist/browser/operations/operations.js.map +1 -0
  27. package/{dist-esm/src → dist/browser}/operations/providerResourceTypes.d.ts +3 -3
  28. package/dist/browser/operations/providerResourceTypes.d.ts.map +1 -0
  29. package/{dist-esm/src → dist/browser}/operations/providerResourceTypes.js +2 -2
  30. package/dist/browser/operations/providerResourceTypes.js.map +1 -0
  31. package/{dist-esm/src → dist/browser}/operations/providers.d.ts +3 -3
  32. package/dist/browser/operations/providers.d.ts.map +1 -0
  33. package/{dist-esm/src → dist/browser}/operations/providers.js +3 -3
  34. package/dist/browser/operations/providers.js.map +1 -0
  35. package/{dist-esm/src → dist/browser}/operations/resourceGroups.d.ts +3 -3
  36. package/dist/browser/operations/resourceGroups.d.ts.map +1 -0
  37. package/{dist-esm/src → dist/browser}/operations/resourceGroups.js +78 -86
  38. package/dist/browser/operations/resourceGroups.js.map +1 -0
  39. package/{dist-esm/src → dist/browser}/operations/resources.d.ts +3 -3
  40. package/dist/browser/operations/resources.d.ts.map +1 -0
  41. package/{dist-esm/src → dist/browser}/operations/resources.js +319 -351
  42. package/dist/browser/operations/resources.js.map +1 -0
  43. package/{dist-esm/src → dist/browser}/operations/tagsOperations.d.ts +3 -3
  44. package/dist/browser/operations/tagsOperations.d.ts.map +1 -0
  45. package/{dist-esm/src → dist/browser}/operations/tagsOperations.js +3 -3
  46. package/dist/browser/operations/tagsOperations.js.map +1 -0
  47. package/{dist-esm/src → dist/browser}/operationsInterfaces/deploymentOperations.d.ts +1 -1
  48. package/dist/browser/operationsInterfaces/deploymentOperations.d.ts.map +1 -0
  49. package/dist/browser/operationsInterfaces/deploymentOperations.js.map +1 -0
  50. package/{dist-esm/src → dist/browser}/operationsInterfaces/deployments.d.ts +1 -1
  51. package/dist/browser/operationsInterfaces/deployments.d.ts.map +1 -0
  52. package/dist/browser/operationsInterfaces/deployments.js.map +1 -0
  53. package/dist/browser/operationsInterfaces/index.d.ts +9 -0
  54. package/dist/browser/operationsInterfaces/index.d.ts.map +1 -0
  55. package/dist/browser/operationsInterfaces/index.js +16 -0
  56. package/dist/browser/operationsInterfaces/index.js.map +1 -0
  57. package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts +1 -1
  58. package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts.map +1 -1
  59. package/dist/browser/operationsInterfaces/operations.js.map +1 -0
  60. package/{dist-esm/src → dist/browser}/operationsInterfaces/providerResourceTypes.d.ts +1 -1
  61. package/{dist-esm/src → dist/browser}/operationsInterfaces/providerResourceTypes.d.ts.map +1 -1
  62. package/dist/browser/operationsInterfaces/providerResourceTypes.js.map +1 -0
  63. package/{dist-esm/src → dist/browser}/operationsInterfaces/providers.d.ts +1 -1
  64. package/dist/browser/operationsInterfaces/providers.d.ts.map +1 -0
  65. package/dist/browser/operationsInterfaces/providers.js.map +1 -0
  66. package/{dist-esm/src → dist/browser}/operationsInterfaces/resourceGroups.d.ts +1 -1
  67. package/dist/browser/operationsInterfaces/resourceGroups.d.ts.map +1 -0
  68. package/dist/browser/operationsInterfaces/resourceGroups.js.map +1 -0
  69. package/{dist-esm/src → dist/browser}/operationsInterfaces/resources.d.ts +1 -1
  70. package/dist/browser/operationsInterfaces/resources.d.ts.map +1 -0
  71. package/dist/browser/operationsInterfaces/resources.js.map +1 -0
  72. package/{dist-esm/src → dist/browser}/operationsInterfaces/tagsOperations.d.ts +1 -1
  73. package/dist/browser/operationsInterfaces/tagsOperations.d.ts.map +1 -0
  74. package/dist/browser/operationsInterfaces/tagsOperations.js.map +1 -0
  75. package/dist/browser/package.json +3 -0
  76. package/dist/browser/pagingHelper.js.map +1 -0
  77. package/{dist-esm/src → dist/browser}/resourceManagementClient.d.ts +2 -2
  78. package/dist/browser/resourceManagementClient.d.ts.map +1 -0
  79. package/{dist-esm/src → dist/browser}/resourceManagementClient.js +15 -18
  80. package/dist/browser/resourceManagementClient.js.map +1 -0
  81. package/dist/commonjs/index.d.ts +5 -0
  82. package/dist/commonjs/index.d.ts.map +1 -0
  83. package/dist/commonjs/index.js +19 -0
  84. package/dist/commonjs/index.js.map +1 -0
  85. package/dist/commonjs/lroImpl.d.ts +11 -0
  86. package/dist/commonjs/lroImpl.d.ts.map +1 -0
  87. package/dist/commonjs/lroImpl.js +17 -0
  88. package/dist/commonjs/lroImpl.js.map +1 -0
  89. package/dist/commonjs/models/index.d.ts +1977 -0
  90. package/dist/commonjs/models/index.d.ts.map +1 -0
  91. package/dist/commonjs/models/index.js +105 -0
  92. package/dist/commonjs/models/index.js.map +1 -0
  93. package/dist/commonjs/models/mappers.d.ts +88 -0
  94. package/dist/commonjs/models/mappers.d.ts.map +1 -0
  95. package/dist/commonjs/models/mappers.js +2753 -0
  96. package/dist/commonjs/models/mappers.js.map +1 -0
  97. package/dist/commonjs/models/parameters.d.ts +40 -0
  98. package/dist/commonjs/models/parameters.d.ts.map +1 -0
  99. package/dist/commonjs/models/parameters.js +349 -0
  100. package/dist/commonjs/models/parameters.js.map +1 -0
  101. package/dist/commonjs/operations/deploymentOperations.d.ts +168 -0
  102. package/dist/commonjs/operations/deploymentOperations.d.ts.map +1 -0
  103. package/dist/commonjs/operations/deploymentOperations.js +786 -0
  104. package/dist/commonjs/operations/deploymentOperations.js.map +1 -0
  105. package/dist/commonjs/operations/deployments.d.ts +628 -0
  106. package/dist/commonjs/operations/deployments.d.ts.map +1 -0
  107. package/dist/commonjs/operations/deployments.js +2770 -0
  108. package/dist/commonjs/operations/deployments.js.map +1 -0
  109. package/dist/commonjs/operations/index.d.ts +9 -0
  110. package/dist/commonjs/operations/index.d.ts.map +1 -0
  111. package/dist/commonjs/operations/index.js +19 -0
  112. package/dist/commonjs/operations/index.js.map +1 -0
  113. package/dist/commonjs/operations/operations.d.ts +32 -0
  114. package/dist/commonjs/operations/operations.d.ts.map +1 -0
  115. package/dist/commonjs/operations/operations.js +137 -0
  116. package/dist/commonjs/operations/operations.js.map +1 -0
  117. package/dist/commonjs/operations/providerResourceTypes.d.ts +19 -0
  118. package/dist/commonjs/operations/providerResourceTypes.d.ts.map +1 -0
  119. package/dist/commonjs/operations/providerResourceTypes.js +56 -0
  120. package/dist/commonjs/operations/providerResourceTypes.js.map +1 -0
  121. package/dist/commonjs/operations/providers.d.ts +87 -0
  122. package/dist/commonjs/operations/providers.d.ts.map +1 -0
  123. package/dist/commonjs/operations/providers.js +413 -0
  124. package/dist/commonjs/operations/providers.js.map +1 -0
  125. package/dist/commonjs/operations/resourceGroups.d.ts +91 -0
  126. package/dist/commonjs/operations/resourceGroups.d.ts.map +1 -0
  127. package/dist/commonjs/operations/resourceGroups.js +422 -0
  128. package/dist/commonjs/operations/resourceGroups.js.map +1 -0
  129. package/dist/commonjs/operations/resources.d.ts +278 -0
  130. package/dist/commonjs/operations/resources.d.ts.map +1 -0
  131. package/dist/commonjs/operations/resources.js +1132 -0
  132. package/dist/commonjs/operations/resources.js.map +1 -0
  133. package/dist/commonjs/operations/tagsOperations.d.ts +102 -0
  134. package/dist/commonjs/operations/tagsOperations.d.ts.map +1 -0
  135. package/dist/commonjs/operations/tagsOperations.js +379 -0
  136. package/dist/commonjs/operations/tagsOperations.js.map +1 -0
  137. package/dist/commonjs/operationsInterfaces/deploymentOperations.d.ts +77 -0
  138. package/dist/commonjs/operationsInterfaces/deploymentOperations.d.ts.map +1 -0
  139. package/dist/commonjs/operationsInterfaces/deploymentOperations.js +10 -0
  140. package/dist/commonjs/operationsInterfaces/deploymentOperations.js.map +1 -0
  141. package/dist/commonjs/operationsInterfaces/deployments.d.ts +545 -0
  142. package/dist/commonjs/operationsInterfaces/deployments.d.ts.map +1 -0
  143. package/dist/commonjs/operationsInterfaces/deployments.js +10 -0
  144. package/dist/commonjs/operationsInterfaces/deployments.js.map +1 -0
  145. package/dist/commonjs/operationsInterfaces/index.d.ts +9 -0
  146. package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
  147. package/dist/commonjs/operationsInterfaces/index.js +19 -0
  148. package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
  149. package/dist/commonjs/operationsInterfaces/operations.d.ts +11 -0
  150. package/dist/commonjs/operationsInterfaces/operations.d.ts.map +1 -0
  151. package/dist/commonjs/operationsInterfaces/operations.js +10 -0
  152. package/dist/commonjs/operationsInterfaces/operations.js.map +1 -0
  153. package/dist/commonjs/operationsInterfaces/providerResourceTypes.d.ts +11 -0
  154. package/dist/commonjs/operationsInterfaces/providerResourceTypes.d.ts.map +1 -0
  155. package/dist/commonjs/operationsInterfaces/providerResourceTypes.js +10 -0
  156. package/dist/commonjs/operationsInterfaces/providerResourceTypes.js.map +1 -0
  157. package/dist/commonjs/operationsInterfaces/providers.d.ts +53 -0
  158. package/dist/commonjs/operationsInterfaces/providers.d.ts.map +1 -0
  159. package/dist/commonjs/operationsInterfaces/providers.js +10 -0
  160. package/dist/commonjs/operationsInterfaces/providers.js.map +1 -0
  161. package/dist/commonjs/operationsInterfaces/resourceGroups.d.ts +70 -0
  162. package/dist/commonjs/operationsInterfaces/resourceGroups.d.ts.map +1 -0
  163. package/dist/commonjs/operationsInterfaces/resourceGroups.js +10 -0
  164. package/dist/commonjs/operationsInterfaces/resourceGroups.js.map +1 -0
  165. package/dist/commonjs/operationsInterfaces/resources.d.ts +242 -0
  166. package/dist/commonjs/operationsInterfaces/resources.d.ts.map +1 -0
  167. package/dist/commonjs/operationsInterfaces/resources.js +10 -0
  168. package/dist/commonjs/operationsInterfaces/resources.js.map +1 -0
  169. package/dist/commonjs/operationsInterfaces/tagsOperations.d.ts +78 -0
  170. package/dist/commonjs/operationsInterfaces/tagsOperations.d.ts.map +1 -0
  171. package/dist/commonjs/operationsInterfaces/tagsOperations.js +10 -0
  172. package/dist/commonjs/operationsInterfaces/tagsOperations.js.map +1 -0
  173. package/dist/commonjs/package.json +3 -0
  174. package/dist/commonjs/pagingHelper.d.ts +13 -0
  175. package/dist/commonjs/pagingHelper.d.ts.map +1 -0
  176. package/dist/commonjs/pagingHelper.js +36 -0
  177. package/dist/commonjs/pagingHelper.js.map +1 -0
  178. package/dist/commonjs/resourceManagementClient.d.ts +27 -0
  179. package/dist/commonjs/resourceManagementClient.d.ts.map +1 -0
  180. package/dist/commonjs/resourceManagementClient.js +109 -0
  181. package/dist/commonjs/resourceManagementClient.js.map +1 -0
  182. package/dist/esm/index.d.ts +5 -0
  183. package/dist/esm/index.d.ts.map +1 -0
  184. package/{src/index.ts → dist/esm/index.js} +5 -5
  185. package/dist/esm/index.js.map +1 -0
  186. package/dist/esm/lroImpl.d.ts +11 -0
  187. package/dist/esm/lroImpl.d.ts.map +1 -0
  188. package/dist/esm/lroImpl.js +14 -0
  189. package/dist/esm/lroImpl.js.map +1 -0
  190. package/dist/esm/models/index.d.ts +1977 -0
  191. package/dist/esm/models/index.d.ts.map +1 -0
  192. package/dist/esm/models/index.js +102 -0
  193. package/dist/esm/models/index.js.map +1 -0
  194. package/dist/esm/models/mappers.d.ts +88 -0
  195. package/dist/esm/models/mappers.d.ts.map +1 -0
  196. package/dist/esm/models/mappers.js +2749 -0
  197. package/dist/esm/models/mappers.js.map +1 -0
  198. package/dist/esm/models/parameters.d.ts +40 -0
  199. package/dist/esm/models/parameters.d.ts.map +1 -0
  200. package/dist/esm/models/parameters.js +346 -0
  201. package/dist/esm/models/parameters.js.map +1 -0
  202. package/dist/esm/operations/deploymentOperations.d.ts +168 -0
  203. package/dist/esm/operations/deploymentOperations.d.ts.map +1 -0
  204. package/dist/esm/operations/deploymentOperations.js +782 -0
  205. package/dist/esm/operations/deploymentOperations.js.map +1 -0
  206. package/dist/esm/operations/deployments.d.ts +628 -0
  207. package/dist/esm/operations/deployments.d.ts.map +1 -0
  208. package/dist/esm/operations/deployments.js +2766 -0
  209. package/dist/esm/operations/deployments.js.map +1 -0
  210. package/dist/esm/operations/index.d.ts +9 -0
  211. package/dist/esm/operations/index.d.ts.map +1 -0
  212. package/dist/esm/operations/index.js +16 -0
  213. package/dist/esm/operations/index.js.map +1 -0
  214. package/dist/esm/operations/operations.d.ts +32 -0
  215. package/dist/esm/operations/operations.d.ts.map +1 -0
  216. package/dist/esm/operations/operations.js +133 -0
  217. package/dist/esm/operations/operations.js.map +1 -0
  218. package/dist/esm/operations/providerResourceTypes.d.ts +19 -0
  219. package/dist/esm/operations/providerResourceTypes.d.ts.map +1 -0
  220. package/dist/esm/operations/providerResourceTypes.js +51 -0
  221. package/dist/esm/operations/providerResourceTypes.js.map +1 -0
  222. package/dist/esm/operations/providers.d.ts +87 -0
  223. package/dist/esm/operations/providers.d.ts.map +1 -0
  224. package/dist/esm/operations/providers.js +409 -0
  225. package/dist/esm/operations/providers.js.map +1 -0
  226. package/dist/esm/operations/resourceGroups.d.ts +91 -0
  227. package/dist/esm/operations/resourceGroups.d.ts.map +1 -0
  228. package/dist/esm/operations/resourceGroups.js +418 -0
  229. package/dist/esm/operations/resourceGroups.js.map +1 -0
  230. package/dist/esm/operations/resources.d.ts +278 -0
  231. package/dist/esm/operations/resources.d.ts.map +1 -0
  232. package/dist/esm/operations/resources.js +1128 -0
  233. package/dist/esm/operations/resources.js.map +1 -0
  234. package/dist/esm/operations/tagsOperations.d.ts +102 -0
  235. package/dist/esm/operations/tagsOperations.d.ts.map +1 -0
  236. package/dist/esm/operations/tagsOperations.js +375 -0
  237. package/dist/esm/operations/tagsOperations.js.map +1 -0
  238. package/dist/esm/operationsInterfaces/deploymentOperations.d.ts +77 -0
  239. package/dist/esm/operationsInterfaces/deploymentOperations.d.ts.map +1 -0
  240. package/dist/esm/operationsInterfaces/deploymentOperations.js +9 -0
  241. package/dist/esm/operationsInterfaces/deploymentOperations.js.map +1 -0
  242. package/dist/esm/operationsInterfaces/deployments.d.ts +545 -0
  243. package/dist/esm/operationsInterfaces/deployments.d.ts.map +1 -0
  244. package/dist/esm/operationsInterfaces/deployments.js +9 -0
  245. package/dist/esm/operationsInterfaces/deployments.js.map +1 -0
  246. package/dist/esm/operationsInterfaces/index.d.ts +9 -0
  247. package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
  248. package/dist/esm/operationsInterfaces/index.js +16 -0
  249. package/dist/esm/operationsInterfaces/index.js.map +1 -0
  250. package/dist/esm/operationsInterfaces/operations.d.ts +11 -0
  251. package/dist/esm/operationsInterfaces/operations.d.ts.map +1 -0
  252. package/dist/esm/operationsInterfaces/operations.js +9 -0
  253. package/dist/esm/operationsInterfaces/operations.js.map +1 -0
  254. package/dist/esm/operationsInterfaces/providerResourceTypes.d.ts +11 -0
  255. package/dist/esm/operationsInterfaces/providerResourceTypes.d.ts.map +1 -0
  256. package/dist/esm/operationsInterfaces/providerResourceTypes.js +9 -0
  257. package/dist/esm/operationsInterfaces/providerResourceTypes.js.map +1 -0
  258. package/dist/esm/operationsInterfaces/providers.d.ts +53 -0
  259. package/dist/esm/operationsInterfaces/providers.d.ts.map +1 -0
  260. package/dist/esm/operationsInterfaces/providers.js +9 -0
  261. package/dist/esm/operationsInterfaces/providers.js.map +1 -0
  262. package/dist/esm/operationsInterfaces/resourceGroups.d.ts +70 -0
  263. package/dist/esm/operationsInterfaces/resourceGroups.d.ts.map +1 -0
  264. package/dist/esm/operationsInterfaces/resourceGroups.js +9 -0
  265. package/dist/esm/operationsInterfaces/resourceGroups.js.map +1 -0
  266. package/dist/esm/operationsInterfaces/resources.d.ts +242 -0
  267. package/dist/esm/operationsInterfaces/resources.d.ts.map +1 -0
  268. package/dist/esm/operationsInterfaces/resources.js +9 -0
  269. package/dist/esm/operationsInterfaces/resources.js.map +1 -0
  270. package/dist/esm/operationsInterfaces/tagsOperations.d.ts +78 -0
  271. package/dist/esm/operationsInterfaces/tagsOperations.d.ts.map +1 -0
  272. package/dist/esm/operationsInterfaces/tagsOperations.js +9 -0
  273. package/dist/esm/operationsInterfaces/tagsOperations.js.map +1 -0
  274. package/dist/esm/package.json +3 -0
  275. package/dist/esm/pagingHelper.d.ts +13 -0
  276. package/dist/esm/pagingHelper.d.ts.map +1 -0
  277. package/dist/esm/pagingHelper.js +32 -0
  278. package/dist/esm/pagingHelper.js.map +1 -0
  279. package/dist/esm/resourceManagementClient.d.ts +27 -0
  280. package/dist/esm/resourceManagementClient.d.ts.map +1 -0
  281. package/dist/esm/resourceManagementClient.js +104 -0
  282. package/dist/esm/resourceManagementClient.js.map +1 -0
  283. package/dist/react-native/index.d.ts +5 -0
  284. package/dist/react-native/index.d.ts.map +1 -0
  285. package/dist/react-native/index.js +13 -0
  286. package/dist/react-native/index.js.map +1 -0
  287. package/dist/react-native/lroImpl.d.ts +11 -0
  288. package/dist/react-native/lroImpl.d.ts.map +1 -0
  289. package/dist/react-native/lroImpl.js +14 -0
  290. package/dist/react-native/lroImpl.js.map +1 -0
  291. package/dist/react-native/models/index.d.ts +1977 -0
  292. package/dist/react-native/models/index.d.ts.map +1 -0
  293. package/dist/react-native/models/index.js +102 -0
  294. package/dist/react-native/models/index.js.map +1 -0
  295. package/dist/react-native/models/mappers.d.ts +88 -0
  296. package/dist/react-native/models/mappers.d.ts.map +1 -0
  297. package/dist/react-native/models/mappers.js +2749 -0
  298. package/dist/react-native/models/mappers.js.map +1 -0
  299. package/dist/react-native/models/parameters.d.ts +40 -0
  300. package/dist/react-native/models/parameters.d.ts.map +1 -0
  301. package/dist/react-native/models/parameters.js +346 -0
  302. package/dist/react-native/models/parameters.js.map +1 -0
  303. package/dist/react-native/operations/deploymentOperations.d.ts +168 -0
  304. package/dist/react-native/operations/deploymentOperations.d.ts.map +1 -0
  305. package/dist/react-native/operations/deploymentOperations.js +782 -0
  306. package/dist/react-native/operations/deploymentOperations.js.map +1 -0
  307. package/dist/react-native/operations/deployments.d.ts +628 -0
  308. package/dist/react-native/operations/deployments.d.ts.map +1 -0
  309. package/dist/react-native/operations/deployments.js +2766 -0
  310. package/dist/react-native/operations/deployments.js.map +1 -0
  311. package/dist/react-native/operations/index.d.ts +9 -0
  312. package/dist/react-native/operations/index.d.ts.map +1 -0
  313. package/dist/react-native/operations/index.js +16 -0
  314. package/dist/react-native/operations/index.js.map +1 -0
  315. package/dist/react-native/operations/operations.d.ts +32 -0
  316. package/dist/react-native/operations/operations.d.ts.map +1 -0
  317. package/dist/react-native/operations/operations.js +133 -0
  318. package/dist/react-native/operations/operations.js.map +1 -0
  319. package/dist/react-native/operations/providerResourceTypes.d.ts +19 -0
  320. package/dist/react-native/operations/providerResourceTypes.d.ts.map +1 -0
  321. package/dist/react-native/operations/providerResourceTypes.js +51 -0
  322. package/dist/react-native/operations/providerResourceTypes.js.map +1 -0
  323. package/dist/react-native/operations/providers.d.ts +87 -0
  324. package/dist/react-native/operations/providers.d.ts.map +1 -0
  325. package/dist/react-native/operations/providers.js +409 -0
  326. package/dist/react-native/operations/providers.js.map +1 -0
  327. package/dist/react-native/operations/resourceGroups.d.ts +91 -0
  328. package/dist/react-native/operations/resourceGroups.d.ts.map +1 -0
  329. package/dist/react-native/operations/resourceGroups.js +418 -0
  330. package/dist/react-native/operations/resourceGroups.js.map +1 -0
  331. package/dist/react-native/operations/resources.d.ts +278 -0
  332. package/dist/react-native/operations/resources.d.ts.map +1 -0
  333. package/dist/react-native/operations/resources.js +1128 -0
  334. package/dist/react-native/operations/resources.js.map +1 -0
  335. package/dist/react-native/operations/tagsOperations.d.ts +102 -0
  336. package/dist/react-native/operations/tagsOperations.d.ts.map +1 -0
  337. package/dist/react-native/operations/tagsOperations.js +375 -0
  338. package/dist/react-native/operations/tagsOperations.js.map +1 -0
  339. package/dist/react-native/operationsInterfaces/deploymentOperations.d.ts +77 -0
  340. package/dist/react-native/operationsInterfaces/deploymentOperations.d.ts.map +1 -0
  341. package/dist/react-native/operationsInterfaces/deploymentOperations.js +9 -0
  342. package/dist/react-native/operationsInterfaces/deploymentOperations.js.map +1 -0
  343. package/dist/react-native/operationsInterfaces/deployments.d.ts +545 -0
  344. package/dist/react-native/operationsInterfaces/deployments.d.ts.map +1 -0
  345. package/dist/react-native/operationsInterfaces/deployments.js +9 -0
  346. package/dist/react-native/operationsInterfaces/deployments.js.map +1 -0
  347. package/dist/react-native/operationsInterfaces/index.d.ts +9 -0
  348. package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
  349. package/dist/react-native/operationsInterfaces/index.js +16 -0
  350. package/dist/react-native/operationsInterfaces/index.js.map +1 -0
  351. package/dist/react-native/operationsInterfaces/operations.d.ts +11 -0
  352. package/dist/react-native/operationsInterfaces/operations.d.ts.map +1 -0
  353. package/dist/react-native/operationsInterfaces/operations.js +9 -0
  354. package/dist/react-native/operationsInterfaces/operations.js.map +1 -0
  355. package/dist/react-native/operationsInterfaces/providerResourceTypes.d.ts +11 -0
  356. package/dist/react-native/operationsInterfaces/providerResourceTypes.d.ts.map +1 -0
  357. package/dist/react-native/operationsInterfaces/providerResourceTypes.js +9 -0
  358. package/dist/react-native/operationsInterfaces/providerResourceTypes.js.map +1 -0
  359. package/dist/react-native/operationsInterfaces/providers.d.ts +53 -0
  360. package/dist/react-native/operationsInterfaces/providers.d.ts.map +1 -0
  361. package/dist/react-native/operationsInterfaces/providers.js +9 -0
  362. package/dist/react-native/operationsInterfaces/providers.js.map +1 -0
  363. package/dist/react-native/operationsInterfaces/resourceGroups.d.ts +70 -0
  364. package/dist/react-native/operationsInterfaces/resourceGroups.d.ts.map +1 -0
  365. package/dist/react-native/operationsInterfaces/resourceGroups.js +9 -0
  366. package/dist/react-native/operationsInterfaces/resourceGroups.js.map +1 -0
  367. package/dist/react-native/operationsInterfaces/resources.d.ts +242 -0
  368. package/dist/react-native/operationsInterfaces/resources.d.ts.map +1 -0
  369. package/dist/react-native/operationsInterfaces/resources.js +9 -0
  370. package/dist/react-native/operationsInterfaces/resources.js.map +1 -0
  371. package/dist/react-native/operationsInterfaces/tagsOperations.d.ts +78 -0
  372. package/dist/react-native/operationsInterfaces/tagsOperations.d.ts.map +1 -0
  373. package/dist/react-native/operationsInterfaces/tagsOperations.js +9 -0
  374. package/dist/react-native/operationsInterfaces/tagsOperations.js.map +1 -0
  375. package/dist/react-native/package.json +3 -0
  376. package/dist/react-native/pagingHelper.d.ts +13 -0
  377. package/dist/react-native/pagingHelper.d.ts.map +1 -0
  378. package/dist/react-native/pagingHelper.js +32 -0
  379. package/dist/react-native/pagingHelper.js.map +1 -0
  380. package/dist/react-native/resourceManagementClient.d.ts +27 -0
  381. package/dist/react-native/resourceManagementClient.d.ts.map +1 -0
  382. package/dist/react-native/resourceManagementClient.js +104 -0
  383. package/dist/react-native/resourceManagementClient.js.map +1 -0
  384. package/package.json +67 -36
  385. package/dist/index.js +0 -9600
  386. package/dist/index.js.map +0 -1
  387. package/dist/index.min.js +0 -1
  388. package/dist/index.min.js.map +0 -1
  389. package/dist-esm/samples-dev/deploymentsCalculateTemplateHashSample.d.ts +0 -2
  390. package/dist-esm/samples-dev/deploymentsCalculateTemplateHashSample.d.ts.map +0 -1
  391. package/dist-esm/samples-dev/deploymentsCalculateTemplateHashSample.js +0 -48
  392. package/dist-esm/samples-dev/deploymentsCalculateTemplateHashSample.js.map +0 -1
  393. package/dist-esm/samples-dev/deploymentsCreateOrUpdateAtManagementGroupScopeSample.d.ts +0 -2
  394. package/dist-esm/samples-dev/deploymentsCreateOrUpdateAtManagementGroupScopeSample.d.ts.map +0 -1
  395. package/dist-esm/samples-dev/deploymentsCreateOrUpdateAtManagementGroupScopeSample.js +0 -37
  396. package/dist-esm/samples-dev/deploymentsCreateOrUpdateAtManagementGroupScopeSample.js.map +0 -1
  397. package/dist-esm/samples-dev/deploymentsCreateOrUpdateAtScopeSample.d.ts +0 -2
  398. package/dist-esm/samples-dev/deploymentsCreateOrUpdateAtScopeSample.d.ts.map +0 -1
  399. package/dist-esm/samples-dev/deploymentsCreateOrUpdateAtScopeSample.js +0 -38
  400. package/dist-esm/samples-dev/deploymentsCreateOrUpdateAtScopeSample.js.map +0 -1
  401. package/dist-esm/samples-dev/deploymentsCreateOrUpdateAtSubscriptionScopeSample.d.ts +0 -2
  402. package/dist-esm/samples-dev/deploymentsCreateOrUpdateAtSubscriptionScopeSample.d.ts.map +0 -1
  403. package/dist-esm/samples-dev/deploymentsCreateOrUpdateAtSubscriptionScopeSample.js +0 -38
  404. package/dist-esm/samples-dev/deploymentsCreateOrUpdateAtSubscriptionScopeSample.js.map +0 -1
  405. package/dist-esm/samples-dev/deploymentsCreateOrUpdateAtTenantScopeSample.d.ts +0 -2
  406. package/dist-esm/samples-dev/deploymentsCreateOrUpdateAtTenantScopeSample.d.ts.map +0 -1
  407. package/dist-esm/samples-dev/deploymentsCreateOrUpdateAtTenantScopeSample.js +0 -37
  408. package/dist-esm/samples-dev/deploymentsCreateOrUpdateAtTenantScopeSample.js.map +0 -1
  409. package/dist-esm/samples-dev/deploymentsCreateOrUpdateSample.d.ts +0 -2
  410. package/dist-esm/samples-dev/deploymentsCreateOrUpdateSample.d.ts.map +0 -1
  411. package/dist-esm/samples-dev/deploymentsCreateOrUpdateSample.js +0 -121
  412. package/dist-esm/samples-dev/deploymentsCreateOrUpdateSample.js.map +0 -1
  413. package/dist-esm/samples-dev/deploymentsWhatIfAtManagementGroupScopeSample.d.ts +0 -2
  414. package/dist-esm/samples-dev/deploymentsWhatIfAtManagementGroupScopeSample.d.ts.map +0 -1
  415. package/dist-esm/samples-dev/deploymentsWhatIfAtManagementGroupScopeSample.js +0 -33
  416. package/dist-esm/samples-dev/deploymentsWhatIfAtManagementGroupScopeSample.js.map +0 -1
  417. package/dist-esm/samples-dev/deploymentsWhatIfAtSubscriptionScopeSample.d.ts +0 -2
  418. package/dist-esm/samples-dev/deploymentsWhatIfAtSubscriptionScopeSample.d.ts.map +0 -1
  419. package/dist-esm/samples-dev/deploymentsWhatIfAtSubscriptionScopeSample.js +0 -32
  420. package/dist-esm/samples-dev/deploymentsWhatIfAtSubscriptionScopeSample.js.map +0 -1
  421. package/dist-esm/samples-dev/deploymentsWhatIfAtTenantScopeSample.d.ts +0 -2
  422. package/dist-esm/samples-dev/deploymentsWhatIfAtTenantScopeSample.d.ts.map +0 -1
  423. package/dist-esm/samples-dev/deploymentsWhatIfAtTenantScopeSample.js +0 -32
  424. package/dist-esm/samples-dev/deploymentsWhatIfAtTenantScopeSample.js.map +0 -1
  425. package/dist-esm/samples-dev/deploymentsWhatIfSample.d.ts +0 -2
  426. package/dist-esm/samples-dev/deploymentsWhatIfSample.d.ts.map +0 -1
  427. package/dist-esm/samples-dev/deploymentsWhatIfSample.js +0 -32
  428. package/dist-esm/samples-dev/deploymentsWhatIfSample.js.map +0 -1
  429. package/dist-esm/samples-dev/providerResourceTypesListSample.d.ts +0 -2
  430. package/dist-esm/samples-dev/providerResourceTypesListSample.d.ts.map +0 -1
  431. package/dist-esm/samples-dev/providerResourceTypesListSample.js +0 -35
  432. package/dist-esm/samples-dev/providerResourceTypesListSample.js.map +0 -1
  433. package/dist-esm/samples-dev/providersGetAtTenantScopeSample.d.ts +0 -2
  434. package/dist-esm/samples-dev/providersGetAtTenantScopeSample.d.ts.map +0 -1
  435. package/dist-esm/samples-dev/providersGetAtTenantScopeSample.js +0 -30
  436. package/dist-esm/samples-dev/providersGetAtTenantScopeSample.js.map +0 -1
  437. package/dist-esm/samples-dev/providersGetSample.d.ts +0 -2
  438. package/dist-esm/samples-dev/providersGetSample.d.ts.map +0 -1
  439. package/dist-esm/samples-dev/providersGetSample.js +0 -35
  440. package/dist-esm/samples-dev/providersGetSample.js.map +0 -1
  441. package/dist-esm/samples-dev/providersListSample.d.ts +0 -2
  442. package/dist-esm/samples-dev/providersListSample.d.ts.map +0 -1
  443. package/dist-esm/samples-dev/providersListSample.js +0 -50
  444. package/dist-esm/samples-dev/providersListSample.js.map +0 -1
  445. package/dist-esm/samples-dev/providersProviderPermissionsSample.d.ts +0 -2
  446. package/dist-esm/samples-dev/providersProviderPermissionsSample.d.ts.map +0 -1
  447. package/dist-esm/samples-dev/providersProviderPermissionsSample.js +0 -35
  448. package/dist-esm/samples-dev/providersProviderPermissionsSample.js.map +0 -1
  449. package/dist-esm/samples-dev/resourceGroupsCreateOrUpdateSample.d.ts +0 -2
  450. package/dist-esm/samples-dev/resourceGroupsCreateOrUpdateSample.d.ts.map +0 -1
  451. package/dist-esm/samples-dev/resourceGroupsCreateOrUpdateSample.js +0 -29
  452. package/dist-esm/samples-dev/resourceGroupsCreateOrUpdateSample.js.map +0 -1
  453. package/dist-esm/samples-dev/resourceGroupsDeleteSample.d.ts +0 -2
  454. package/dist-esm/samples-dev/resourceGroupsDeleteSample.d.ts.map +0 -1
  455. package/dist-esm/samples-dev/resourceGroupsDeleteSample.js +0 -49
  456. package/dist-esm/samples-dev/resourceGroupsDeleteSample.js.map +0 -1
  457. package/dist-esm/samples-dev/resourceGroupsExportTemplateSample.d.ts +0 -2
  458. package/dist-esm/samples-dev/resourceGroupsExportTemplateSample.d.ts.map +0 -1
  459. package/dist-esm/samples-dev/resourceGroupsExportTemplateSample.js +0 -55
  460. package/dist-esm/samples-dev/resourceGroupsExportTemplateSample.js.map +0 -1
  461. package/dist-esm/samples-dev/tagsCreateOrUpdateAtScopeSample.d.ts +0 -2
  462. package/dist-esm/samples-dev/tagsCreateOrUpdateAtScopeSample.d.ts.map +0 -1
  463. package/dist-esm/samples-dev/tagsCreateOrUpdateAtScopeSample.js +0 -51
  464. package/dist-esm/samples-dev/tagsCreateOrUpdateAtScopeSample.js.map +0 -1
  465. package/dist-esm/samples-dev/tagsGetAtScopeSample.d.ts +0 -2
  466. package/dist-esm/samples-dev/tagsGetAtScopeSample.d.ts.map +0 -1
  467. package/dist-esm/samples-dev/tagsGetAtScopeSample.js +0 -52
  468. package/dist-esm/samples-dev/tagsGetAtScopeSample.js.map +0 -1
  469. package/dist-esm/src/index.d.ts +0 -5
  470. package/dist-esm/src/index.js.map +0 -1
  471. package/dist-esm/src/lroImpl.js.map +0 -1
  472. package/dist-esm/src/models/index.js.map +0 -1
  473. package/dist-esm/src/models/mappers.js.map +0 -1
  474. package/dist-esm/src/models/parameters.js.map +0 -1
  475. package/dist-esm/src/operations/deploymentOperations.d.ts.map +0 -1
  476. package/dist-esm/src/operations/deploymentOperations.js.map +0 -1
  477. package/dist-esm/src/operations/deployments.d.ts.map +0 -1
  478. package/dist-esm/src/operations/deployments.js.map +0 -1
  479. package/dist-esm/src/operations/index.d.ts +0 -9
  480. package/dist-esm/src/operations/index.d.ts.map +0 -1
  481. package/dist-esm/src/operations/index.js +0 -16
  482. package/dist-esm/src/operations/index.js.map +0 -1
  483. package/dist-esm/src/operations/operations.d.ts.map +0 -1
  484. package/dist-esm/src/operations/operations.js.map +0 -1
  485. package/dist-esm/src/operations/providerResourceTypes.d.ts.map +0 -1
  486. package/dist-esm/src/operations/providerResourceTypes.js.map +0 -1
  487. package/dist-esm/src/operations/providers.d.ts.map +0 -1
  488. package/dist-esm/src/operations/providers.js.map +0 -1
  489. package/dist-esm/src/operations/resourceGroups.d.ts.map +0 -1
  490. package/dist-esm/src/operations/resourceGroups.js.map +0 -1
  491. package/dist-esm/src/operations/resources.d.ts.map +0 -1
  492. package/dist-esm/src/operations/resources.js.map +0 -1
  493. package/dist-esm/src/operations/tagsOperations.d.ts.map +0 -1
  494. package/dist-esm/src/operations/tagsOperations.js.map +0 -1
  495. package/dist-esm/src/operationsInterfaces/deploymentOperations.d.ts.map +0 -1
  496. package/dist-esm/src/operationsInterfaces/deploymentOperations.js.map +0 -1
  497. package/dist-esm/src/operationsInterfaces/deployments.d.ts.map +0 -1
  498. package/dist-esm/src/operationsInterfaces/deployments.js.map +0 -1
  499. package/dist-esm/src/operationsInterfaces/index.d.ts +0 -9
  500. package/dist-esm/src/operationsInterfaces/index.d.ts.map +0 -1
  501. package/dist-esm/src/operationsInterfaces/index.js +0 -16
  502. package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
  503. package/dist-esm/src/operationsInterfaces/operations.js.map +0 -1
  504. package/dist-esm/src/operationsInterfaces/providerResourceTypes.js.map +0 -1
  505. package/dist-esm/src/operationsInterfaces/providers.d.ts.map +0 -1
  506. package/dist-esm/src/operationsInterfaces/providers.js.map +0 -1
  507. package/dist-esm/src/operationsInterfaces/resourceGroups.d.ts.map +0 -1
  508. package/dist-esm/src/operationsInterfaces/resourceGroups.js.map +0 -1
  509. package/dist-esm/src/operationsInterfaces/resources.d.ts.map +0 -1
  510. package/dist-esm/src/operationsInterfaces/resources.js.map +0 -1
  511. package/dist-esm/src/operationsInterfaces/tagsOperations.d.ts.map +0 -1
  512. package/dist-esm/src/operationsInterfaces/tagsOperations.js.map +0 -1
  513. package/dist-esm/src/pagingHelper.js.map +0 -1
  514. package/dist-esm/src/resourceManagementClient.d.ts.map +0 -1
  515. package/dist-esm/src/resourceManagementClient.js.map +0 -1
  516. package/dist-esm/test/cae_mock_test.d.ts +0 -2
  517. package/dist-esm/test/cae_mock_test.d.ts.map +0 -1
  518. package/dist-esm/test/cae_mock_test.js +0 -120
  519. package/dist-esm/test/cae_mock_test.js.map +0 -1
  520. package/dist-esm/test/resources_examples.d.ts +0 -4
  521. package/dist-esm/test/resources_examples.d.ts.map +0 -1
  522. package/dist-esm/test/resources_examples.js +0 -225
  523. package/dist-esm/test/resources_examples.js.map +0 -1
  524. package/src/lroImpl.ts +0 -38
  525. package/src/models/index.ts +0 -2347
  526. package/src/models/mappers.ts +0 -2852
  527. package/src/models/parameters.ts +0 -402
  528. package/src/operations/deploymentOperations.ts +0 -1016
  529. package/src/operations/deployments.ts +0 -3849
  530. package/src/operations/index.ts +0 -16
  531. package/src/operations/operations.ts +0 -149
  532. package/src/operations/providerResourceTypes.ts +0 -69
  533. package/src/operations/providers.ts +0 -493
  534. package/src/operations/resourceGroups.ts +0 -546
  535. package/src/operations/resources.ts +0 -1568
  536. package/src/operations/tagsOperations.ts +0 -463
  537. package/src/operationsInterfaces/deploymentOperations.ts +0 -144
  538. package/src/operationsInterfaces/deployments.ts +0 -957
  539. package/src/operationsInterfaces/index.ts +0 -16
  540. package/src/operationsInterfaces/operations.ts +0 -22
  541. package/src/operationsInterfaces/providerResourceTypes.ts +0 -25
  542. package/src/operationsInterfaces/providers.ts +0 -100
  543. package/src/operationsInterfaces/resourceGroups.ts +0 -130
  544. package/src/operationsInterfaces/resources.ts +0 -422
  545. package/src/operationsInterfaces/tagsOperations.ts +0 -132
  546. package/src/pagingHelper.ts +0 -39
  547. package/src/resourceManagementClient.ts +0 -172
  548. package/tsconfig.json +0 -33
  549. package/types/arm-resources.d.ts +0 -3398
  550. /package/{dist-esm/src → dist/browser}/lroImpl.d.ts +0 -0
  551. /package/{dist-esm/src → dist/browser}/lroImpl.d.ts.map +0 -0
  552. /package/{dist-esm/src → dist/browser}/lroImpl.js +0 -0
  553. /package/{dist-esm/src → dist/browser}/models/index.d.ts +0 -0
  554. /package/{dist-esm/src → dist/browser}/models/index.d.ts.map +0 -0
  555. /package/{dist-esm/src → dist/browser}/models/index.js +0 -0
  556. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts +0 -0
  557. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts.map +0 -0
  558. /package/{dist-esm/src → dist/browser}/models/mappers.js +0 -0
  559. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts +0 -0
  560. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +0 -0
  561. /package/{dist-esm/src → dist/browser}/operationsInterfaces/deploymentOperations.js +0 -0
  562. /package/{dist-esm/src → dist/browser}/operationsInterfaces/deployments.js +0 -0
  563. /package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.js +0 -0
  564. /package/{dist-esm/src → dist/browser}/operationsInterfaces/providerResourceTypes.js +0 -0
  565. /package/{dist-esm/src → dist/browser}/operationsInterfaces/providers.js +0 -0
  566. /package/{dist-esm/src → dist/browser}/operationsInterfaces/resourceGroups.js +0 -0
  567. /package/{dist-esm/src → dist/browser}/operationsInterfaces/resources.js +0 -0
  568. /package/{dist-esm/src → dist/browser}/operationsInterfaces/tagsOperations.js +0 -0
  569. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts +0 -0
  570. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts.map +0 -0
  571. /package/{dist-esm/src → dist/browser}/pagingHelper.js +0 -0
  572. /package/{types → dist/commonjs}/tsdoc-metadata.json +0 -0
@@ -1,3849 +0,0 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- *
5
- * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- */
8
-
9
- import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
10
- import { setContinuationToken } from "../pagingHelper";
11
- import { Deployments } from "../operationsInterfaces";
12
- import * as coreClient from "@azure/core-client";
13
- import * as Mappers from "../models/mappers";
14
- import * as Parameters from "../models/parameters";
15
- import { ResourceManagementClient } from "../resourceManagementClient";
16
- import {
17
- SimplePollerLike,
18
- OperationState,
19
- createHttpPoller
20
- } from "@azure/core-lro";
21
- import { createLroSpec } from "../lroImpl";
22
- import {
23
- DeploymentExtended,
24
- DeploymentsListAtScopeNextOptionalParams,
25
- DeploymentsListAtScopeOptionalParams,
26
- DeploymentsListAtScopeResponse,
27
- DeploymentsListAtTenantScopeNextOptionalParams,
28
- DeploymentsListAtTenantScopeOptionalParams,
29
- DeploymentsListAtTenantScopeResponse,
30
- DeploymentsListAtManagementGroupScopeNextOptionalParams,
31
- DeploymentsListAtManagementGroupScopeOptionalParams,
32
- DeploymentsListAtManagementGroupScopeResponse,
33
- DeploymentsListAtSubscriptionScopeNextOptionalParams,
34
- DeploymentsListAtSubscriptionScopeOptionalParams,
35
- DeploymentsListAtSubscriptionScopeResponse,
36
- DeploymentsListByResourceGroupNextOptionalParams,
37
- DeploymentsListByResourceGroupOptionalParams,
38
- DeploymentsListByResourceGroupResponse,
39
- DeploymentsDeleteAtScopeOptionalParams,
40
- DeploymentsCheckExistenceAtScopeOptionalParams,
41
- DeploymentsCheckExistenceAtScopeResponse,
42
- Deployment,
43
- DeploymentsCreateOrUpdateAtScopeOptionalParams,
44
- DeploymentsCreateOrUpdateAtScopeResponse,
45
- DeploymentsGetAtScopeOptionalParams,
46
- DeploymentsGetAtScopeResponse,
47
- DeploymentsCancelAtScopeOptionalParams,
48
- DeploymentsValidateAtScopeOptionalParams,
49
- DeploymentsValidateAtScopeResponse,
50
- DeploymentsExportTemplateAtScopeOptionalParams,
51
- DeploymentsExportTemplateAtScopeResponse,
52
- DeploymentsDeleteAtTenantScopeOptionalParams,
53
- DeploymentsCheckExistenceAtTenantScopeOptionalParams,
54
- DeploymentsCheckExistenceAtTenantScopeResponse,
55
- ScopedDeployment,
56
- DeploymentsCreateOrUpdateAtTenantScopeOptionalParams,
57
- DeploymentsCreateOrUpdateAtTenantScopeResponse,
58
- DeploymentsGetAtTenantScopeOptionalParams,
59
- DeploymentsGetAtTenantScopeResponse,
60
- DeploymentsCancelAtTenantScopeOptionalParams,
61
- DeploymentsValidateAtTenantScopeOptionalParams,
62
- DeploymentsValidateAtTenantScopeResponse,
63
- ScopedDeploymentWhatIf,
64
- DeploymentsWhatIfAtTenantScopeOptionalParams,
65
- DeploymentsWhatIfAtTenantScopeResponse,
66
- DeploymentsExportTemplateAtTenantScopeOptionalParams,
67
- DeploymentsExportTemplateAtTenantScopeResponse,
68
- DeploymentsDeleteAtManagementGroupScopeOptionalParams,
69
- DeploymentsCheckExistenceAtManagementGroupScopeOptionalParams,
70
- DeploymentsCheckExistenceAtManagementGroupScopeResponse,
71
- DeploymentsCreateOrUpdateAtManagementGroupScopeOptionalParams,
72
- DeploymentsCreateOrUpdateAtManagementGroupScopeResponse,
73
- DeploymentsGetAtManagementGroupScopeOptionalParams,
74
- DeploymentsGetAtManagementGroupScopeResponse,
75
- DeploymentsCancelAtManagementGroupScopeOptionalParams,
76
- DeploymentsValidateAtManagementGroupScopeOptionalParams,
77
- DeploymentsValidateAtManagementGroupScopeResponse,
78
- DeploymentsWhatIfAtManagementGroupScopeOptionalParams,
79
- DeploymentsWhatIfAtManagementGroupScopeResponse,
80
- DeploymentsExportTemplateAtManagementGroupScopeOptionalParams,
81
- DeploymentsExportTemplateAtManagementGroupScopeResponse,
82
- DeploymentsDeleteAtSubscriptionScopeOptionalParams,
83
- DeploymentsCheckExistenceAtSubscriptionScopeOptionalParams,
84
- DeploymentsCheckExistenceAtSubscriptionScopeResponse,
85
- DeploymentsCreateOrUpdateAtSubscriptionScopeOptionalParams,
86
- DeploymentsCreateOrUpdateAtSubscriptionScopeResponse,
87
- DeploymentsGetAtSubscriptionScopeOptionalParams,
88
- DeploymentsGetAtSubscriptionScopeResponse,
89
- DeploymentsCancelAtSubscriptionScopeOptionalParams,
90
- DeploymentsValidateAtSubscriptionScopeOptionalParams,
91
- DeploymentsValidateAtSubscriptionScopeResponse,
92
- DeploymentWhatIf,
93
- DeploymentsWhatIfAtSubscriptionScopeOptionalParams,
94
- DeploymentsWhatIfAtSubscriptionScopeResponse,
95
- DeploymentsExportTemplateAtSubscriptionScopeOptionalParams,
96
- DeploymentsExportTemplateAtSubscriptionScopeResponse,
97
- DeploymentsDeleteOptionalParams,
98
- DeploymentsCheckExistenceOptionalParams,
99
- DeploymentsCheckExistenceResponse,
100
- DeploymentsCreateOrUpdateOptionalParams,
101
- DeploymentsCreateOrUpdateResponse,
102
- DeploymentsGetOptionalParams,
103
- DeploymentsGetResponse,
104
- DeploymentsCancelOptionalParams,
105
- DeploymentsValidateOptionalParams,
106
- DeploymentsValidateResponse,
107
- DeploymentsWhatIfOptionalParams,
108
- DeploymentsWhatIfResponse,
109
- DeploymentsExportTemplateOptionalParams,
110
- DeploymentsExportTemplateResponse,
111
- DeploymentsCalculateTemplateHashOptionalParams,
112
- DeploymentsCalculateTemplateHashResponse,
113
- DeploymentsListAtScopeNextResponse,
114
- DeploymentsListAtTenantScopeNextResponse,
115
- DeploymentsListAtManagementGroupScopeNextResponse,
116
- DeploymentsListAtSubscriptionScopeNextResponse,
117
- DeploymentsListByResourceGroupNextResponse
118
- } from "../models";
119
-
120
- /// <reference lib="esnext.asynciterable" />
121
- /** Class containing Deployments operations. */
122
- export class DeploymentsImpl implements Deployments {
123
- private readonly client: ResourceManagementClient;
124
-
125
- /**
126
- * Initialize a new instance of the class Deployments class.
127
- * @param client Reference to the service client
128
- */
129
- constructor(client: ResourceManagementClient) {
130
- this.client = client;
131
- }
132
-
133
- /**
134
- * Get all the deployments at the given scope.
135
- * @param scope The resource scope.
136
- * @param options The options parameters.
137
- */
138
- public listAtScope(
139
- scope: string,
140
- options?: DeploymentsListAtScopeOptionalParams
141
- ): PagedAsyncIterableIterator<DeploymentExtended> {
142
- const iter = this.listAtScopePagingAll(scope, options);
143
- return {
144
- next() {
145
- return iter.next();
146
- },
147
- [Symbol.asyncIterator]() {
148
- return this;
149
- },
150
- byPage: (settings?: PageSettings) => {
151
- if (settings?.maxPageSize) {
152
- throw new Error("maxPageSize is not supported by this operation.");
153
- }
154
- return this.listAtScopePagingPage(scope, options, settings);
155
- }
156
- };
157
- }
158
-
159
- private async *listAtScopePagingPage(
160
- scope: string,
161
- options?: DeploymentsListAtScopeOptionalParams,
162
- settings?: PageSettings
163
- ): AsyncIterableIterator<DeploymentExtended[]> {
164
- let result: DeploymentsListAtScopeResponse;
165
- let continuationToken = settings?.continuationToken;
166
- if (!continuationToken) {
167
- result = await this._listAtScope(scope, options);
168
- let page = result.value || [];
169
- continuationToken = result.nextLink;
170
- setContinuationToken(page, continuationToken);
171
- yield page;
172
- }
173
- while (continuationToken) {
174
- result = await this._listAtScopeNext(scope, continuationToken, options);
175
- continuationToken = result.nextLink;
176
- let page = result.value || [];
177
- setContinuationToken(page, continuationToken);
178
- yield page;
179
- }
180
- }
181
-
182
- private async *listAtScopePagingAll(
183
- scope: string,
184
- options?: DeploymentsListAtScopeOptionalParams
185
- ): AsyncIterableIterator<DeploymentExtended> {
186
- for await (const page of this.listAtScopePagingPage(scope, options)) {
187
- yield* page;
188
- }
189
- }
190
-
191
- /**
192
- * Get all the deployments at the tenant scope.
193
- * @param options The options parameters.
194
- */
195
- public listAtTenantScope(
196
- options?: DeploymentsListAtTenantScopeOptionalParams
197
- ): PagedAsyncIterableIterator<DeploymentExtended> {
198
- const iter = this.listAtTenantScopePagingAll(options);
199
- return {
200
- next() {
201
- return iter.next();
202
- },
203
- [Symbol.asyncIterator]() {
204
- return this;
205
- },
206
- byPage: (settings?: PageSettings) => {
207
- if (settings?.maxPageSize) {
208
- throw new Error("maxPageSize is not supported by this operation.");
209
- }
210
- return this.listAtTenantScopePagingPage(options, settings);
211
- }
212
- };
213
- }
214
-
215
- private async *listAtTenantScopePagingPage(
216
- options?: DeploymentsListAtTenantScopeOptionalParams,
217
- settings?: PageSettings
218
- ): AsyncIterableIterator<DeploymentExtended[]> {
219
- let result: DeploymentsListAtTenantScopeResponse;
220
- let continuationToken = settings?.continuationToken;
221
- if (!continuationToken) {
222
- result = await this._listAtTenantScope(options);
223
- let page = result.value || [];
224
- continuationToken = result.nextLink;
225
- setContinuationToken(page, continuationToken);
226
- yield page;
227
- }
228
- while (continuationToken) {
229
- result = await this._listAtTenantScopeNext(continuationToken, options);
230
- continuationToken = result.nextLink;
231
- let page = result.value || [];
232
- setContinuationToken(page, continuationToken);
233
- yield page;
234
- }
235
- }
236
-
237
- private async *listAtTenantScopePagingAll(
238
- options?: DeploymentsListAtTenantScopeOptionalParams
239
- ): AsyncIterableIterator<DeploymentExtended> {
240
- for await (const page of this.listAtTenantScopePagingPage(options)) {
241
- yield* page;
242
- }
243
- }
244
-
245
- /**
246
- * Get all the deployments for a management group.
247
- * @param groupId The management group ID.
248
- * @param options The options parameters.
249
- */
250
- public listAtManagementGroupScope(
251
- groupId: string,
252
- options?: DeploymentsListAtManagementGroupScopeOptionalParams
253
- ): PagedAsyncIterableIterator<DeploymentExtended> {
254
- const iter = this.listAtManagementGroupScopePagingAll(groupId, options);
255
- return {
256
- next() {
257
- return iter.next();
258
- },
259
- [Symbol.asyncIterator]() {
260
- return this;
261
- },
262
- byPage: (settings?: PageSettings) => {
263
- if (settings?.maxPageSize) {
264
- throw new Error("maxPageSize is not supported by this operation.");
265
- }
266
- return this.listAtManagementGroupScopePagingPage(
267
- groupId,
268
- options,
269
- settings
270
- );
271
- }
272
- };
273
- }
274
-
275
- private async *listAtManagementGroupScopePagingPage(
276
- groupId: string,
277
- options?: DeploymentsListAtManagementGroupScopeOptionalParams,
278
- settings?: PageSettings
279
- ): AsyncIterableIterator<DeploymentExtended[]> {
280
- let result: DeploymentsListAtManagementGroupScopeResponse;
281
- let continuationToken = settings?.continuationToken;
282
- if (!continuationToken) {
283
- result = await this._listAtManagementGroupScope(groupId, options);
284
- let page = result.value || [];
285
- continuationToken = result.nextLink;
286
- setContinuationToken(page, continuationToken);
287
- yield page;
288
- }
289
- while (continuationToken) {
290
- result = await this._listAtManagementGroupScopeNext(
291
- groupId,
292
- continuationToken,
293
- options
294
- );
295
- continuationToken = result.nextLink;
296
- let page = result.value || [];
297
- setContinuationToken(page, continuationToken);
298
- yield page;
299
- }
300
- }
301
-
302
- private async *listAtManagementGroupScopePagingAll(
303
- groupId: string,
304
- options?: DeploymentsListAtManagementGroupScopeOptionalParams
305
- ): AsyncIterableIterator<DeploymentExtended> {
306
- for await (const page of this.listAtManagementGroupScopePagingPage(
307
- groupId,
308
- options
309
- )) {
310
- yield* page;
311
- }
312
- }
313
-
314
- /**
315
- * Get all the deployments for a subscription.
316
- * @param options The options parameters.
317
- */
318
- public listAtSubscriptionScope(
319
- options?: DeploymentsListAtSubscriptionScopeOptionalParams
320
- ): PagedAsyncIterableIterator<DeploymentExtended> {
321
- const iter = this.listAtSubscriptionScopePagingAll(options);
322
- return {
323
- next() {
324
- return iter.next();
325
- },
326
- [Symbol.asyncIterator]() {
327
- return this;
328
- },
329
- byPage: (settings?: PageSettings) => {
330
- if (settings?.maxPageSize) {
331
- throw new Error("maxPageSize is not supported by this operation.");
332
- }
333
- return this.listAtSubscriptionScopePagingPage(options, settings);
334
- }
335
- };
336
- }
337
-
338
- private async *listAtSubscriptionScopePagingPage(
339
- options?: DeploymentsListAtSubscriptionScopeOptionalParams,
340
- settings?: PageSettings
341
- ): AsyncIterableIterator<DeploymentExtended[]> {
342
- let result: DeploymentsListAtSubscriptionScopeResponse;
343
- let continuationToken = settings?.continuationToken;
344
- if (!continuationToken) {
345
- result = await this._listAtSubscriptionScope(options);
346
- let page = result.value || [];
347
- continuationToken = result.nextLink;
348
- setContinuationToken(page, continuationToken);
349
- yield page;
350
- }
351
- while (continuationToken) {
352
- result = await this._listAtSubscriptionScopeNext(
353
- continuationToken,
354
- options
355
- );
356
- continuationToken = result.nextLink;
357
- let page = result.value || [];
358
- setContinuationToken(page, continuationToken);
359
- yield page;
360
- }
361
- }
362
-
363
- private async *listAtSubscriptionScopePagingAll(
364
- options?: DeploymentsListAtSubscriptionScopeOptionalParams
365
- ): AsyncIterableIterator<DeploymentExtended> {
366
- for await (const page of this.listAtSubscriptionScopePagingPage(options)) {
367
- yield* page;
368
- }
369
- }
370
-
371
- /**
372
- * Get all the deployments for a resource group.
373
- * @param resourceGroupName The name of the resource group with the deployments to get. The name is
374
- * case insensitive.
375
- * @param options The options parameters.
376
- */
377
- public listByResourceGroup(
378
- resourceGroupName: string,
379
- options?: DeploymentsListByResourceGroupOptionalParams
380
- ): PagedAsyncIterableIterator<DeploymentExtended> {
381
- const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
382
- return {
383
- next() {
384
- return iter.next();
385
- },
386
- [Symbol.asyncIterator]() {
387
- return this;
388
- },
389
- byPage: (settings?: PageSettings) => {
390
- if (settings?.maxPageSize) {
391
- throw new Error("maxPageSize is not supported by this operation.");
392
- }
393
- return this.listByResourceGroupPagingPage(
394
- resourceGroupName,
395
- options,
396
- settings
397
- );
398
- }
399
- };
400
- }
401
-
402
- private async *listByResourceGroupPagingPage(
403
- resourceGroupName: string,
404
- options?: DeploymentsListByResourceGroupOptionalParams,
405
- settings?: PageSettings
406
- ): AsyncIterableIterator<DeploymentExtended[]> {
407
- let result: DeploymentsListByResourceGroupResponse;
408
- let continuationToken = settings?.continuationToken;
409
- if (!continuationToken) {
410
- result = await this._listByResourceGroup(resourceGroupName, options);
411
- let page = result.value || [];
412
- continuationToken = result.nextLink;
413
- setContinuationToken(page, continuationToken);
414
- yield page;
415
- }
416
- while (continuationToken) {
417
- result = await this._listByResourceGroupNext(
418
- resourceGroupName,
419
- continuationToken,
420
- options
421
- );
422
- continuationToken = result.nextLink;
423
- let page = result.value || [];
424
- setContinuationToken(page, continuationToken);
425
- yield page;
426
- }
427
- }
428
-
429
- private async *listByResourceGroupPagingAll(
430
- resourceGroupName: string,
431
- options?: DeploymentsListByResourceGroupOptionalParams
432
- ): AsyncIterableIterator<DeploymentExtended> {
433
- for await (const page of this.listByResourceGroupPagingPage(
434
- resourceGroupName,
435
- options
436
- )) {
437
- yield* page;
438
- }
439
- }
440
-
441
- /**
442
- * A template deployment that is currently running cannot be deleted. Deleting a template deployment
443
- * removes the associated deployment operations. This is an asynchronous operation that returns a
444
- * status of 202 until the template deployment is successfully deleted. The Location response header
445
- * contains the URI that is used to obtain the status of the process. While the process is running, a
446
- * call to the URI in the Location header returns a status of 202. When the process finishes, the URI
447
- * in the Location header returns a status of 204 on success. If the asynchronous request failed, the
448
- * URI in the Location header returns an error-level status code.
449
- * @param scope The resource scope.
450
- * @param deploymentName The name of the deployment.
451
- * @param options The options parameters.
452
- */
453
- async beginDeleteAtScope(
454
- scope: string,
455
- deploymentName: string,
456
- options?: DeploymentsDeleteAtScopeOptionalParams
457
- ): Promise<SimplePollerLike<OperationState<void>, void>> {
458
- const directSendOperation = async (
459
- args: coreClient.OperationArguments,
460
- spec: coreClient.OperationSpec
461
- ): Promise<void> => {
462
- return this.client.sendOperationRequest(args, spec);
463
- };
464
- const sendOperationFn = async (
465
- args: coreClient.OperationArguments,
466
- spec: coreClient.OperationSpec
467
- ) => {
468
- let currentRawResponse:
469
- | coreClient.FullOperationResponse
470
- | undefined = undefined;
471
- const providedCallback = args.options?.onResponse;
472
- const callback: coreClient.RawResponseCallback = (
473
- rawResponse: coreClient.FullOperationResponse,
474
- flatResponse: unknown
475
- ) => {
476
- currentRawResponse = rawResponse;
477
- providedCallback?.(rawResponse, flatResponse);
478
- };
479
- const updatedArgs = {
480
- ...args,
481
- options: {
482
- ...args.options,
483
- onResponse: callback
484
- }
485
- };
486
- const flatResponse = await directSendOperation(updatedArgs, spec);
487
- return {
488
- flatResponse,
489
- rawResponse: {
490
- statusCode: currentRawResponse!.status,
491
- body: currentRawResponse!.parsedBody,
492
- headers: currentRawResponse!.headers.toJSON()
493
- }
494
- };
495
- };
496
-
497
- const lro = createLroSpec({
498
- sendOperationFn,
499
- args: { scope, deploymentName, options },
500
- spec: deleteAtScopeOperationSpec
501
- });
502
- const poller = await createHttpPoller<void, OperationState<void>>(lro, {
503
- restoreFrom: options?.resumeFrom,
504
- intervalInMs: options?.updateIntervalInMs
505
- });
506
- await poller.poll();
507
- return poller;
508
- }
509
-
510
- /**
511
- * A template deployment that is currently running cannot be deleted. Deleting a template deployment
512
- * removes the associated deployment operations. This is an asynchronous operation that returns a
513
- * status of 202 until the template deployment is successfully deleted. The Location response header
514
- * contains the URI that is used to obtain the status of the process. While the process is running, a
515
- * call to the URI in the Location header returns a status of 202. When the process finishes, the URI
516
- * in the Location header returns a status of 204 on success. If the asynchronous request failed, the
517
- * URI in the Location header returns an error-level status code.
518
- * @param scope The resource scope.
519
- * @param deploymentName The name of the deployment.
520
- * @param options The options parameters.
521
- */
522
- async beginDeleteAtScopeAndWait(
523
- scope: string,
524
- deploymentName: string,
525
- options?: DeploymentsDeleteAtScopeOptionalParams
526
- ): Promise<void> {
527
- const poller = await this.beginDeleteAtScope(
528
- scope,
529
- deploymentName,
530
- options
531
- );
532
- return poller.pollUntilDone();
533
- }
534
-
535
- /**
536
- * Checks whether the deployment exists.
537
- * @param scope The resource scope.
538
- * @param deploymentName The name of the deployment.
539
- * @param options The options parameters.
540
- */
541
- checkExistenceAtScope(
542
- scope: string,
543
- deploymentName: string,
544
- options?: DeploymentsCheckExistenceAtScopeOptionalParams
545
- ): Promise<DeploymentsCheckExistenceAtScopeResponse> {
546
- return this.client.sendOperationRequest(
547
- { scope, deploymentName, options },
548
- checkExistenceAtScopeOperationSpec
549
- );
550
- }
551
-
552
- /**
553
- * You can provide the template and parameters directly in the request or link to JSON files.
554
- * @param scope The resource scope.
555
- * @param deploymentName The name of the deployment.
556
- * @param parameters Additional parameters supplied to the operation.
557
- * @param options The options parameters.
558
- */
559
- async beginCreateOrUpdateAtScope(
560
- scope: string,
561
- deploymentName: string,
562
- parameters: Deployment,
563
- options?: DeploymentsCreateOrUpdateAtScopeOptionalParams
564
- ): Promise<
565
- SimplePollerLike<
566
- OperationState<DeploymentsCreateOrUpdateAtScopeResponse>,
567
- DeploymentsCreateOrUpdateAtScopeResponse
568
- >
569
- > {
570
- const directSendOperation = async (
571
- args: coreClient.OperationArguments,
572
- spec: coreClient.OperationSpec
573
- ): Promise<DeploymentsCreateOrUpdateAtScopeResponse> => {
574
- return this.client.sendOperationRequest(args, spec);
575
- };
576
- const sendOperationFn = async (
577
- args: coreClient.OperationArguments,
578
- spec: coreClient.OperationSpec
579
- ) => {
580
- let currentRawResponse:
581
- | coreClient.FullOperationResponse
582
- | undefined = undefined;
583
- const providedCallback = args.options?.onResponse;
584
- const callback: coreClient.RawResponseCallback = (
585
- rawResponse: coreClient.FullOperationResponse,
586
- flatResponse: unknown
587
- ) => {
588
- currentRawResponse = rawResponse;
589
- providedCallback?.(rawResponse, flatResponse);
590
- };
591
- const updatedArgs = {
592
- ...args,
593
- options: {
594
- ...args.options,
595
- onResponse: callback
596
- }
597
- };
598
- const flatResponse = await directSendOperation(updatedArgs, spec);
599
- return {
600
- flatResponse,
601
- rawResponse: {
602
- statusCode: currentRawResponse!.status,
603
- body: currentRawResponse!.parsedBody,
604
- headers: currentRawResponse!.headers.toJSON()
605
- }
606
- };
607
- };
608
-
609
- const lro = createLroSpec({
610
- sendOperationFn,
611
- args: { scope, deploymentName, parameters, options },
612
- spec: createOrUpdateAtScopeOperationSpec
613
- });
614
- const poller = await createHttpPoller<
615
- DeploymentsCreateOrUpdateAtScopeResponse,
616
- OperationState<DeploymentsCreateOrUpdateAtScopeResponse>
617
- >(lro, {
618
- restoreFrom: options?.resumeFrom,
619
- intervalInMs: options?.updateIntervalInMs
620
- });
621
- await poller.poll();
622
- return poller;
623
- }
624
-
625
- /**
626
- * You can provide the template and parameters directly in the request or link to JSON files.
627
- * @param scope The resource scope.
628
- * @param deploymentName The name of the deployment.
629
- * @param parameters Additional parameters supplied to the operation.
630
- * @param options The options parameters.
631
- */
632
- async beginCreateOrUpdateAtScopeAndWait(
633
- scope: string,
634
- deploymentName: string,
635
- parameters: Deployment,
636
- options?: DeploymentsCreateOrUpdateAtScopeOptionalParams
637
- ): Promise<DeploymentsCreateOrUpdateAtScopeResponse> {
638
- const poller = await this.beginCreateOrUpdateAtScope(
639
- scope,
640
- deploymentName,
641
- parameters,
642
- options
643
- );
644
- return poller.pollUntilDone();
645
- }
646
-
647
- /**
648
- * Gets a deployment.
649
- * @param scope The resource scope.
650
- * @param deploymentName The name of the deployment.
651
- * @param options The options parameters.
652
- */
653
- getAtScope(
654
- scope: string,
655
- deploymentName: string,
656
- options?: DeploymentsGetAtScopeOptionalParams
657
- ): Promise<DeploymentsGetAtScopeResponse> {
658
- return this.client.sendOperationRequest(
659
- { scope, deploymentName, options },
660
- getAtScopeOperationSpec
661
- );
662
- }
663
-
664
- /**
665
- * You can cancel a deployment only if the provisioningState is Accepted or Running. After the
666
- * deployment is canceled, the provisioningState is set to Canceled. Canceling a template deployment
667
- * stops the currently running template deployment and leaves the resources partially deployed.
668
- * @param scope The resource scope.
669
- * @param deploymentName The name of the deployment.
670
- * @param options The options parameters.
671
- */
672
- cancelAtScope(
673
- scope: string,
674
- deploymentName: string,
675
- options?: DeploymentsCancelAtScopeOptionalParams
676
- ): Promise<void> {
677
- return this.client.sendOperationRequest(
678
- { scope, deploymentName, options },
679
- cancelAtScopeOperationSpec
680
- );
681
- }
682
-
683
- /**
684
- * Validates whether the specified template is syntactically correct and will be accepted by Azure
685
- * Resource Manager..
686
- * @param scope The resource scope.
687
- * @param deploymentName The name of the deployment.
688
- * @param parameters Parameters to validate.
689
- * @param options The options parameters.
690
- */
691
- async beginValidateAtScope(
692
- scope: string,
693
- deploymentName: string,
694
- parameters: Deployment,
695
- options?: DeploymentsValidateAtScopeOptionalParams
696
- ): Promise<
697
- SimplePollerLike<
698
- OperationState<DeploymentsValidateAtScopeResponse>,
699
- DeploymentsValidateAtScopeResponse
700
- >
701
- > {
702
- const directSendOperation = async (
703
- args: coreClient.OperationArguments,
704
- spec: coreClient.OperationSpec
705
- ): Promise<DeploymentsValidateAtScopeResponse> => {
706
- return this.client.sendOperationRequest(args, spec);
707
- };
708
- const sendOperationFn = async (
709
- args: coreClient.OperationArguments,
710
- spec: coreClient.OperationSpec
711
- ) => {
712
- let currentRawResponse:
713
- | coreClient.FullOperationResponse
714
- | undefined = undefined;
715
- const providedCallback = args.options?.onResponse;
716
- const callback: coreClient.RawResponseCallback = (
717
- rawResponse: coreClient.FullOperationResponse,
718
- flatResponse: unknown
719
- ) => {
720
- currentRawResponse = rawResponse;
721
- providedCallback?.(rawResponse, flatResponse);
722
- };
723
- const updatedArgs = {
724
- ...args,
725
- options: {
726
- ...args.options,
727
- onResponse: callback
728
- }
729
- };
730
- const flatResponse = await 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
-
741
- const lro = createLroSpec({
742
- sendOperationFn,
743
- args: { scope, deploymentName, parameters, options },
744
- spec: validateAtScopeOperationSpec
745
- });
746
- const poller = await createHttpPoller<
747
- DeploymentsValidateAtScopeResponse,
748
- OperationState<DeploymentsValidateAtScopeResponse>
749
- >(lro, {
750
- restoreFrom: options?.resumeFrom,
751
- intervalInMs: options?.updateIntervalInMs
752
- });
753
- await poller.poll();
754
- return poller;
755
- }
756
-
757
- /**
758
- * Validates whether the specified template is syntactically correct and will be accepted by Azure
759
- * Resource Manager..
760
- * @param scope The resource scope.
761
- * @param deploymentName The name of the deployment.
762
- * @param parameters Parameters to validate.
763
- * @param options The options parameters.
764
- */
765
- async beginValidateAtScopeAndWait(
766
- scope: string,
767
- deploymentName: string,
768
- parameters: Deployment,
769
- options?: DeploymentsValidateAtScopeOptionalParams
770
- ): Promise<DeploymentsValidateAtScopeResponse> {
771
- const poller = await this.beginValidateAtScope(
772
- scope,
773
- deploymentName,
774
- parameters,
775
- options
776
- );
777
- return poller.pollUntilDone();
778
- }
779
-
780
- /**
781
- * Exports the template used for specified deployment.
782
- * @param scope The resource scope.
783
- * @param deploymentName The name of the deployment.
784
- * @param options The options parameters.
785
- */
786
- exportTemplateAtScope(
787
- scope: string,
788
- deploymentName: string,
789
- options?: DeploymentsExportTemplateAtScopeOptionalParams
790
- ): Promise<DeploymentsExportTemplateAtScopeResponse> {
791
- return this.client.sendOperationRequest(
792
- { scope, deploymentName, options },
793
- exportTemplateAtScopeOperationSpec
794
- );
795
- }
796
-
797
- /**
798
- * Get all the deployments at the given scope.
799
- * @param scope The resource scope.
800
- * @param options The options parameters.
801
- */
802
- private _listAtScope(
803
- scope: string,
804
- options?: DeploymentsListAtScopeOptionalParams
805
- ): Promise<DeploymentsListAtScopeResponse> {
806
- return this.client.sendOperationRequest(
807
- { scope, options },
808
- listAtScopeOperationSpec
809
- );
810
- }
811
-
812
- /**
813
- * A template deployment that is currently running cannot be deleted. Deleting a template deployment
814
- * removes the associated deployment operations. This is an asynchronous operation that returns a
815
- * status of 202 until the template deployment is successfully deleted. The Location response header
816
- * contains the URI that is used to obtain the status of the process. While the process is running, a
817
- * call to the URI in the Location header returns a status of 202. When the process finishes, the URI
818
- * in the Location header returns a status of 204 on success. If the asynchronous request failed, the
819
- * URI in the Location header returns an error-level status code.
820
- * @param deploymentName The name of the deployment.
821
- * @param options The options parameters.
822
- */
823
- async beginDeleteAtTenantScope(
824
- deploymentName: string,
825
- options?: DeploymentsDeleteAtTenantScopeOptionalParams
826
- ): Promise<SimplePollerLike<OperationState<void>, void>> {
827
- const directSendOperation = async (
828
- args: coreClient.OperationArguments,
829
- spec: coreClient.OperationSpec
830
- ): Promise<void> => {
831
- return this.client.sendOperationRequest(args, spec);
832
- };
833
- const sendOperationFn = async (
834
- args: coreClient.OperationArguments,
835
- spec: coreClient.OperationSpec
836
- ) => {
837
- let currentRawResponse:
838
- | coreClient.FullOperationResponse
839
- | undefined = undefined;
840
- const providedCallback = args.options?.onResponse;
841
- const callback: coreClient.RawResponseCallback = (
842
- rawResponse: coreClient.FullOperationResponse,
843
- flatResponse: unknown
844
- ) => {
845
- currentRawResponse = rawResponse;
846
- providedCallback?.(rawResponse, flatResponse);
847
- };
848
- const updatedArgs = {
849
- ...args,
850
- options: {
851
- ...args.options,
852
- onResponse: callback
853
- }
854
- };
855
- const flatResponse = await directSendOperation(updatedArgs, spec);
856
- return {
857
- flatResponse,
858
- rawResponse: {
859
- statusCode: currentRawResponse!.status,
860
- body: currentRawResponse!.parsedBody,
861
- headers: currentRawResponse!.headers.toJSON()
862
- }
863
- };
864
- };
865
-
866
- const lro = createLroSpec({
867
- sendOperationFn,
868
- args: { deploymentName, options },
869
- spec: deleteAtTenantScopeOperationSpec
870
- });
871
- const poller = await createHttpPoller<void, OperationState<void>>(lro, {
872
- restoreFrom: options?.resumeFrom,
873
- intervalInMs: options?.updateIntervalInMs
874
- });
875
- await poller.poll();
876
- return poller;
877
- }
878
-
879
- /**
880
- * A template deployment that is currently running cannot be deleted. Deleting a template deployment
881
- * removes the associated deployment operations. This is an asynchronous operation that returns a
882
- * status of 202 until the template deployment is successfully deleted. The Location response header
883
- * contains the URI that is used to obtain the status of the process. While the process is running, a
884
- * call to the URI in the Location header returns a status of 202. When the process finishes, the URI
885
- * in the Location header returns a status of 204 on success. If the asynchronous request failed, the
886
- * URI in the Location header returns an error-level status code.
887
- * @param deploymentName The name of the deployment.
888
- * @param options The options parameters.
889
- */
890
- async beginDeleteAtTenantScopeAndWait(
891
- deploymentName: string,
892
- options?: DeploymentsDeleteAtTenantScopeOptionalParams
893
- ): Promise<void> {
894
- const poller = await this.beginDeleteAtTenantScope(deploymentName, options);
895
- return poller.pollUntilDone();
896
- }
897
-
898
- /**
899
- * Checks whether the deployment exists.
900
- * @param deploymentName The name of the deployment.
901
- * @param options The options parameters.
902
- */
903
- checkExistenceAtTenantScope(
904
- deploymentName: string,
905
- options?: DeploymentsCheckExistenceAtTenantScopeOptionalParams
906
- ): Promise<DeploymentsCheckExistenceAtTenantScopeResponse> {
907
- return this.client.sendOperationRequest(
908
- { deploymentName, options },
909
- checkExistenceAtTenantScopeOperationSpec
910
- );
911
- }
912
-
913
- /**
914
- * You can provide the template and parameters directly in the request or link to JSON files.
915
- * @param deploymentName The name of the deployment.
916
- * @param parameters Additional parameters supplied to the operation.
917
- * @param options The options parameters.
918
- */
919
- async beginCreateOrUpdateAtTenantScope(
920
- deploymentName: string,
921
- parameters: ScopedDeployment,
922
- options?: DeploymentsCreateOrUpdateAtTenantScopeOptionalParams
923
- ): Promise<
924
- SimplePollerLike<
925
- OperationState<DeploymentsCreateOrUpdateAtTenantScopeResponse>,
926
- DeploymentsCreateOrUpdateAtTenantScopeResponse
927
- >
928
- > {
929
- const directSendOperation = async (
930
- args: coreClient.OperationArguments,
931
- spec: coreClient.OperationSpec
932
- ): Promise<DeploymentsCreateOrUpdateAtTenantScopeResponse> => {
933
- return this.client.sendOperationRequest(args, spec);
934
- };
935
- const sendOperationFn = async (
936
- args: coreClient.OperationArguments,
937
- spec: coreClient.OperationSpec
938
- ) => {
939
- let currentRawResponse:
940
- | coreClient.FullOperationResponse
941
- | undefined = undefined;
942
- const providedCallback = args.options?.onResponse;
943
- const callback: coreClient.RawResponseCallback = (
944
- rawResponse: coreClient.FullOperationResponse,
945
- flatResponse: unknown
946
- ) => {
947
- currentRawResponse = rawResponse;
948
- providedCallback?.(rawResponse, flatResponse);
949
- };
950
- const updatedArgs = {
951
- ...args,
952
- options: {
953
- ...args.options,
954
- onResponse: callback
955
- }
956
- };
957
- const flatResponse = await directSendOperation(updatedArgs, spec);
958
- return {
959
- flatResponse,
960
- rawResponse: {
961
- statusCode: currentRawResponse!.status,
962
- body: currentRawResponse!.parsedBody,
963
- headers: currentRawResponse!.headers.toJSON()
964
- }
965
- };
966
- };
967
-
968
- const lro = createLroSpec({
969
- sendOperationFn,
970
- args: { deploymentName, parameters, options },
971
- spec: createOrUpdateAtTenantScopeOperationSpec
972
- });
973
- const poller = await createHttpPoller<
974
- DeploymentsCreateOrUpdateAtTenantScopeResponse,
975
- OperationState<DeploymentsCreateOrUpdateAtTenantScopeResponse>
976
- >(lro, {
977
- restoreFrom: options?.resumeFrom,
978
- intervalInMs: options?.updateIntervalInMs
979
- });
980
- await poller.poll();
981
- return poller;
982
- }
983
-
984
- /**
985
- * You can provide the template and parameters directly in the request or link to JSON files.
986
- * @param deploymentName The name of the deployment.
987
- * @param parameters Additional parameters supplied to the operation.
988
- * @param options The options parameters.
989
- */
990
- async beginCreateOrUpdateAtTenantScopeAndWait(
991
- deploymentName: string,
992
- parameters: ScopedDeployment,
993
- options?: DeploymentsCreateOrUpdateAtTenantScopeOptionalParams
994
- ): Promise<DeploymentsCreateOrUpdateAtTenantScopeResponse> {
995
- const poller = await this.beginCreateOrUpdateAtTenantScope(
996
- deploymentName,
997
- parameters,
998
- options
999
- );
1000
- return poller.pollUntilDone();
1001
- }
1002
-
1003
- /**
1004
- * Gets a deployment.
1005
- * @param deploymentName The name of the deployment.
1006
- * @param options The options parameters.
1007
- */
1008
- getAtTenantScope(
1009
- deploymentName: string,
1010
- options?: DeploymentsGetAtTenantScopeOptionalParams
1011
- ): Promise<DeploymentsGetAtTenantScopeResponse> {
1012
- return this.client.sendOperationRequest(
1013
- { deploymentName, options },
1014
- getAtTenantScopeOperationSpec
1015
- );
1016
- }
1017
-
1018
- /**
1019
- * You can cancel a deployment only if the provisioningState is Accepted or Running. After the
1020
- * deployment is canceled, the provisioningState is set to Canceled. Canceling a template deployment
1021
- * stops the currently running template deployment and leaves the resources partially deployed.
1022
- * @param deploymentName The name of the deployment.
1023
- * @param options The options parameters.
1024
- */
1025
- cancelAtTenantScope(
1026
- deploymentName: string,
1027
- options?: DeploymentsCancelAtTenantScopeOptionalParams
1028
- ): Promise<void> {
1029
- return this.client.sendOperationRequest(
1030
- { deploymentName, options },
1031
- cancelAtTenantScopeOperationSpec
1032
- );
1033
- }
1034
-
1035
- /**
1036
- * Validates whether the specified template is syntactically correct and will be accepted by Azure
1037
- * Resource Manager..
1038
- * @param deploymentName The name of the deployment.
1039
- * @param parameters Parameters to validate.
1040
- * @param options The options parameters.
1041
- */
1042
- async beginValidateAtTenantScope(
1043
- deploymentName: string,
1044
- parameters: ScopedDeployment,
1045
- options?: DeploymentsValidateAtTenantScopeOptionalParams
1046
- ): Promise<
1047
- SimplePollerLike<
1048
- OperationState<DeploymentsValidateAtTenantScopeResponse>,
1049
- DeploymentsValidateAtTenantScopeResponse
1050
- >
1051
- > {
1052
- const directSendOperation = async (
1053
- args: coreClient.OperationArguments,
1054
- spec: coreClient.OperationSpec
1055
- ): Promise<DeploymentsValidateAtTenantScopeResponse> => {
1056
- return this.client.sendOperationRequest(args, spec);
1057
- };
1058
- const sendOperationFn = async (
1059
- args: coreClient.OperationArguments,
1060
- spec: coreClient.OperationSpec
1061
- ) => {
1062
- let currentRawResponse:
1063
- | coreClient.FullOperationResponse
1064
- | undefined = undefined;
1065
- const providedCallback = args.options?.onResponse;
1066
- const callback: coreClient.RawResponseCallback = (
1067
- rawResponse: coreClient.FullOperationResponse,
1068
- flatResponse: unknown
1069
- ) => {
1070
- currentRawResponse = rawResponse;
1071
- providedCallback?.(rawResponse, flatResponse);
1072
- };
1073
- const updatedArgs = {
1074
- ...args,
1075
- options: {
1076
- ...args.options,
1077
- onResponse: callback
1078
- }
1079
- };
1080
- const flatResponse = await directSendOperation(updatedArgs, spec);
1081
- return {
1082
- flatResponse,
1083
- rawResponse: {
1084
- statusCode: currentRawResponse!.status,
1085
- body: currentRawResponse!.parsedBody,
1086
- headers: currentRawResponse!.headers.toJSON()
1087
- }
1088
- };
1089
- };
1090
-
1091
- const lro = createLroSpec({
1092
- sendOperationFn,
1093
- args: { deploymentName, parameters, options },
1094
- spec: validateAtTenantScopeOperationSpec
1095
- });
1096
- const poller = await createHttpPoller<
1097
- DeploymentsValidateAtTenantScopeResponse,
1098
- OperationState<DeploymentsValidateAtTenantScopeResponse>
1099
- >(lro, {
1100
- restoreFrom: options?.resumeFrom,
1101
- intervalInMs: options?.updateIntervalInMs
1102
- });
1103
- await poller.poll();
1104
- return poller;
1105
- }
1106
-
1107
- /**
1108
- * Validates whether the specified template is syntactically correct and will be accepted by Azure
1109
- * Resource Manager..
1110
- * @param deploymentName The name of the deployment.
1111
- * @param parameters Parameters to validate.
1112
- * @param options The options parameters.
1113
- */
1114
- async beginValidateAtTenantScopeAndWait(
1115
- deploymentName: string,
1116
- parameters: ScopedDeployment,
1117
- options?: DeploymentsValidateAtTenantScopeOptionalParams
1118
- ): Promise<DeploymentsValidateAtTenantScopeResponse> {
1119
- const poller = await this.beginValidateAtTenantScope(
1120
- deploymentName,
1121
- parameters,
1122
- options
1123
- );
1124
- return poller.pollUntilDone();
1125
- }
1126
-
1127
- /**
1128
- * Returns changes that will be made by the deployment if executed at the scope of the tenant group.
1129
- * @param deploymentName The name of the deployment.
1130
- * @param parameters Parameters to validate.
1131
- * @param options The options parameters.
1132
- */
1133
- async beginWhatIfAtTenantScope(
1134
- deploymentName: string,
1135
- parameters: ScopedDeploymentWhatIf,
1136
- options?: DeploymentsWhatIfAtTenantScopeOptionalParams
1137
- ): Promise<
1138
- SimplePollerLike<
1139
- OperationState<DeploymentsWhatIfAtTenantScopeResponse>,
1140
- DeploymentsWhatIfAtTenantScopeResponse
1141
- >
1142
- > {
1143
- const directSendOperation = async (
1144
- args: coreClient.OperationArguments,
1145
- spec: coreClient.OperationSpec
1146
- ): Promise<DeploymentsWhatIfAtTenantScopeResponse> => {
1147
- return this.client.sendOperationRequest(args, spec);
1148
- };
1149
- const sendOperationFn = async (
1150
- args: coreClient.OperationArguments,
1151
- spec: coreClient.OperationSpec
1152
- ) => {
1153
- let currentRawResponse:
1154
- | coreClient.FullOperationResponse
1155
- | undefined = undefined;
1156
- const providedCallback = args.options?.onResponse;
1157
- const callback: coreClient.RawResponseCallback = (
1158
- rawResponse: coreClient.FullOperationResponse,
1159
- flatResponse: unknown
1160
- ) => {
1161
- currentRawResponse = rawResponse;
1162
- providedCallback?.(rawResponse, flatResponse);
1163
- };
1164
- const updatedArgs = {
1165
- ...args,
1166
- options: {
1167
- ...args.options,
1168
- onResponse: callback
1169
- }
1170
- };
1171
- const flatResponse = await directSendOperation(updatedArgs, spec);
1172
- return {
1173
- flatResponse,
1174
- rawResponse: {
1175
- statusCode: currentRawResponse!.status,
1176
- body: currentRawResponse!.parsedBody,
1177
- headers: currentRawResponse!.headers.toJSON()
1178
- }
1179
- };
1180
- };
1181
-
1182
- const lro = createLroSpec({
1183
- sendOperationFn,
1184
- args: { deploymentName, parameters, options },
1185
- spec: whatIfAtTenantScopeOperationSpec
1186
- });
1187
- const poller = await createHttpPoller<
1188
- DeploymentsWhatIfAtTenantScopeResponse,
1189
- OperationState<DeploymentsWhatIfAtTenantScopeResponse>
1190
- >(lro, {
1191
- restoreFrom: options?.resumeFrom,
1192
- intervalInMs: options?.updateIntervalInMs,
1193
- resourceLocationConfig: "location"
1194
- });
1195
- await poller.poll();
1196
- return poller;
1197
- }
1198
-
1199
- /**
1200
- * Returns changes that will be made by the deployment if executed at the scope of the tenant group.
1201
- * @param deploymentName The name of the deployment.
1202
- * @param parameters Parameters to validate.
1203
- * @param options The options parameters.
1204
- */
1205
- async beginWhatIfAtTenantScopeAndWait(
1206
- deploymentName: string,
1207
- parameters: ScopedDeploymentWhatIf,
1208
- options?: DeploymentsWhatIfAtTenantScopeOptionalParams
1209
- ): Promise<DeploymentsWhatIfAtTenantScopeResponse> {
1210
- const poller = await this.beginWhatIfAtTenantScope(
1211
- deploymentName,
1212
- parameters,
1213
- options
1214
- );
1215
- return poller.pollUntilDone();
1216
- }
1217
-
1218
- /**
1219
- * Exports the template used for specified deployment.
1220
- * @param deploymentName The name of the deployment.
1221
- * @param options The options parameters.
1222
- */
1223
- exportTemplateAtTenantScope(
1224
- deploymentName: string,
1225
- options?: DeploymentsExportTemplateAtTenantScopeOptionalParams
1226
- ): Promise<DeploymentsExportTemplateAtTenantScopeResponse> {
1227
- return this.client.sendOperationRequest(
1228
- { deploymentName, options },
1229
- exportTemplateAtTenantScopeOperationSpec
1230
- );
1231
- }
1232
-
1233
- /**
1234
- * Get all the deployments at the tenant scope.
1235
- * @param options The options parameters.
1236
- */
1237
- private _listAtTenantScope(
1238
- options?: DeploymentsListAtTenantScopeOptionalParams
1239
- ): Promise<DeploymentsListAtTenantScopeResponse> {
1240
- return this.client.sendOperationRequest(
1241
- { options },
1242
- listAtTenantScopeOperationSpec
1243
- );
1244
- }
1245
-
1246
- /**
1247
- * A template deployment that is currently running cannot be deleted. Deleting a template deployment
1248
- * removes the associated deployment operations. This is an asynchronous operation that returns a
1249
- * status of 202 until the template deployment is successfully deleted. The Location response header
1250
- * contains the URI that is used to obtain the status of the process. While the process is running, a
1251
- * call to the URI in the Location header returns a status of 202. When the process finishes, the URI
1252
- * in the Location header returns a status of 204 on success. If the asynchronous request failed, the
1253
- * URI in the Location header returns an error-level status code.
1254
- * @param groupId The management group ID.
1255
- * @param deploymentName The name of the deployment.
1256
- * @param options The options parameters.
1257
- */
1258
- async beginDeleteAtManagementGroupScope(
1259
- groupId: string,
1260
- deploymentName: string,
1261
- options?: DeploymentsDeleteAtManagementGroupScopeOptionalParams
1262
- ): Promise<SimplePollerLike<OperationState<void>, void>> {
1263
- const directSendOperation = async (
1264
- args: coreClient.OperationArguments,
1265
- spec: coreClient.OperationSpec
1266
- ): Promise<void> => {
1267
- return this.client.sendOperationRequest(args, spec);
1268
- };
1269
- const sendOperationFn = async (
1270
- args: coreClient.OperationArguments,
1271
- spec: coreClient.OperationSpec
1272
- ) => {
1273
- let currentRawResponse:
1274
- | coreClient.FullOperationResponse
1275
- | undefined = undefined;
1276
- const providedCallback = args.options?.onResponse;
1277
- const callback: coreClient.RawResponseCallback = (
1278
- rawResponse: coreClient.FullOperationResponse,
1279
- flatResponse: unknown
1280
- ) => {
1281
- currentRawResponse = rawResponse;
1282
- providedCallback?.(rawResponse, flatResponse);
1283
- };
1284
- const updatedArgs = {
1285
- ...args,
1286
- options: {
1287
- ...args.options,
1288
- onResponse: callback
1289
- }
1290
- };
1291
- const flatResponse = await directSendOperation(updatedArgs, spec);
1292
- return {
1293
- flatResponse,
1294
- rawResponse: {
1295
- statusCode: currentRawResponse!.status,
1296
- body: currentRawResponse!.parsedBody,
1297
- headers: currentRawResponse!.headers.toJSON()
1298
- }
1299
- };
1300
- };
1301
-
1302
- const lro = createLroSpec({
1303
- sendOperationFn,
1304
- args: { groupId, deploymentName, options },
1305
- spec: deleteAtManagementGroupScopeOperationSpec
1306
- });
1307
- const poller = await createHttpPoller<void, OperationState<void>>(lro, {
1308
- restoreFrom: options?.resumeFrom,
1309
- intervalInMs: options?.updateIntervalInMs
1310
- });
1311
- await poller.poll();
1312
- return poller;
1313
- }
1314
-
1315
- /**
1316
- * A template deployment that is currently running cannot be deleted. Deleting a template deployment
1317
- * removes the associated deployment operations. This is an asynchronous operation that returns a
1318
- * status of 202 until the template deployment is successfully deleted. The Location response header
1319
- * contains the URI that is used to obtain the status of the process. While the process is running, a
1320
- * call to the URI in the Location header returns a status of 202. When the process finishes, the URI
1321
- * in the Location header returns a status of 204 on success. If the asynchronous request failed, the
1322
- * URI in the Location header returns an error-level status code.
1323
- * @param groupId The management group ID.
1324
- * @param deploymentName The name of the deployment.
1325
- * @param options The options parameters.
1326
- */
1327
- async beginDeleteAtManagementGroupScopeAndWait(
1328
- groupId: string,
1329
- deploymentName: string,
1330
- options?: DeploymentsDeleteAtManagementGroupScopeOptionalParams
1331
- ): Promise<void> {
1332
- const poller = await this.beginDeleteAtManagementGroupScope(
1333
- groupId,
1334
- deploymentName,
1335
- options
1336
- );
1337
- return poller.pollUntilDone();
1338
- }
1339
-
1340
- /**
1341
- * Checks whether the deployment exists.
1342
- * @param groupId The management group ID.
1343
- * @param deploymentName The name of the deployment.
1344
- * @param options The options parameters.
1345
- */
1346
- checkExistenceAtManagementGroupScope(
1347
- groupId: string,
1348
- deploymentName: string,
1349
- options?: DeploymentsCheckExistenceAtManagementGroupScopeOptionalParams
1350
- ): Promise<DeploymentsCheckExistenceAtManagementGroupScopeResponse> {
1351
- return this.client.sendOperationRequest(
1352
- { groupId, deploymentName, options },
1353
- checkExistenceAtManagementGroupScopeOperationSpec
1354
- );
1355
- }
1356
-
1357
- /**
1358
- * You can provide the template and parameters directly in the request or link to JSON files.
1359
- * @param groupId The management group ID.
1360
- * @param deploymentName The name of the deployment.
1361
- * @param parameters Additional parameters supplied to the operation.
1362
- * @param options The options parameters.
1363
- */
1364
- async beginCreateOrUpdateAtManagementGroupScope(
1365
- groupId: string,
1366
- deploymentName: string,
1367
- parameters: ScopedDeployment,
1368
- options?: DeploymentsCreateOrUpdateAtManagementGroupScopeOptionalParams
1369
- ): Promise<
1370
- SimplePollerLike<
1371
- OperationState<DeploymentsCreateOrUpdateAtManagementGroupScopeResponse>,
1372
- DeploymentsCreateOrUpdateAtManagementGroupScopeResponse
1373
- >
1374
- > {
1375
- const directSendOperation = async (
1376
- args: coreClient.OperationArguments,
1377
- spec: coreClient.OperationSpec
1378
- ): Promise<DeploymentsCreateOrUpdateAtManagementGroupScopeResponse> => {
1379
- return this.client.sendOperationRequest(args, spec);
1380
- };
1381
- const sendOperationFn = async (
1382
- args: coreClient.OperationArguments,
1383
- spec: coreClient.OperationSpec
1384
- ) => {
1385
- let currentRawResponse:
1386
- | coreClient.FullOperationResponse
1387
- | undefined = undefined;
1388
- const providedCallback = args.options?.onResponse;
1389
- const callback: coreClient.RawResponseCallback = (
1390
- rawResponse: coreClient.FullOperationResponse,
1391
- flatResponse: unknown
1392
- ) => {
1393
- currentRawResponse = rawResponse;
1394
- providedCallback?.(rawResponse, flatResponse);
1395
- };
1396
- const updatedArgs = {
1397
- ...args,
1398
- options: {
1399
- ...args.options,
1400
- onResponse: callback
1401
- }
1402
- };
1403
- const flatResponse = await directSendOperation(updatedArgs, spec);
1404
- return {
1405
- flatResponse,
1406
- rawResponse: {
1407
- statusCode: currentRawResponse!.status,
1408
- body: currentRawResponse!.parsedBody,
1409
- headers: currentRawResponse!.headers.toJSON()
1410
- }
1411
- };
1412
- };
1413
-
1414
- const lro = createLroSpec({
1415
- sendOperationFn,
1416
- args: { groupId, deploymentName, parameters, options },
1417
- spec: createOrUpdateAtManagementGroupScopeOperationSpec
1418
- });
1419
- const poller = await createHttpPoller<
1420
- DeploymentsCreateOrUpdateAtManagementGroupScopeResponse,
1421
- OperationState<DeploymentsCreateOrUpdateAtManagementGroupScopeResponse>
1422
- >(lro, {
1423
- restoreFrom: options?.resumeFrom,
1424
- intervalInMs: options?.updateIntervalInMs
1425
- });
1426
- await poller.poll();
1427
- return poller;
1428
- }
1429
-
1430
- /**
1431
- * You can provide the template and parameters directly in the request or link to JSON files.
1432
- * @param groupId The management group ID.
1433
- * @param deploymentName The name of the deployment.
1434
- * @param parameters Additional parameters supplied to the operation.
1435
- * @param options The options parameters.
1436
- */
1437
- async beginCreateOrUpdateAtManagementGroupScopeAndWait(
1438
- groupId: string,
1439
- deploymentName: string,
1440
- parameters: ScopedDeployment,
1441
- options?: DeploymentsCreateOrUpdateAtManagementGroupScopeOptionalParams
1442
- ): Promise<DeploymentsCreateOrUpdateAtManagementGroupScopeResponse> {
1443
- const poller = await this.beginCreateOrUpdateAtManagementGroupScope(
1444
- groupId,
1445
- deploymentName,
1446
- parameters,
1447
- options
1448
- );
1449
- return poller.pollUntilDone();
1450
- }
1451
-
1452
- /**
1453
- * Gets a deployment.
1454
- * @param groupId The management group ID.
1455
- * @param deploymentName The name of the deployment.
1456
- * @param options The options parameters.
1457
- */
1458
- getAtManagementGroupScope(
1459
- groupId: string,
1460
- deploymentName: string,
1461
- options?: DeploymentsGetAtManagementGroupScopeOptionalParams
1462
- ): Promise<DeploymentsGetAtManagementGroupScopeResponse> {
1463
- return this.client.sendOperationRequest(
1464
- { groupId, deploymentName, options },
1465
- getAtManagementGroupScopeOperationSpec
1466
- );
1467
- }
1468
-
1469
- /**
1470
- * You can cancel a deployment only if the provisioningState is Accepted or Running. After the
1471
- * deployment is canceled, the provisioningState is set to Canceled. Canceling a template deployment
1472
- * stops the currently running template deployment and leaves the resources partially deployed.
1473
- * @param groupId The management group ID.
1474
- * @param deploymentName The name of the deployment.
1475
- * @param options The options parameters.
1476
- */
1477
- cancelAtManagementGroupScope(
1478
- groupId: string,
1479
- deploymentName: string,
1480
- options?: DeploymentsCancelAtManagementGroupScopeOptionalParams
1481
- ): Promise<void> {
1482
- return this.client.sendOperationRequest(
1483
- { groupId, deploymentName, options },
1484
- cancelAtManagementGroupScopeOperationSpec
1485
- );
1486
- }
1487
-
1488
- /**
1489
- * Validates whether the specified template is syntactically correct and will be accepted by Azure
1490
- * Resource Manager..
1491
- * @param groupId The management group ID.
1492
- * @param deploymentName The name of the deployment.
1493
- * @param parameters Parameters to validate.
1494
- * @param options The options parameters.
1495
- */
1496
- async beginValidateAtManagementGroupScope(
1497
- groupId: string,
1498
- deploymentName: string,
1499
- parameters: ScopedDeployment,
1500
- options?: DeploymentsValidateAtManagementGroupScopeOptionalParams
1501
- ): Promise<
1502
- SimplePollerLike<
1503
- OperationState<DeploymentsValidateAtManagementGroupScopeResponse>,
1504
- DeploymentsValidateAtManagementGroupScopeResponse
1505
- >
1506
- > {
1507
- const directSendOperation = async (
1508
- args: coreClient.OperationArguments,
1509
- spec: coreClient.OperationSpec
1510
- ): Promise<DeploymentsValidateAtManagementGroupScopeResponse> => {
1511
- return this.client.sendOperationRequest(args, spec);
1512
- };
1513
- const sendOperationFn = async (
1514
- args: coreClient.OperationArguments,
1515
- spec: coreClient.OperationSpec
1516
- ) => {
1517
- let currentRawResponse:
1518
- | coreClient.FullOperationResponse
1519
- | undefined = undefined;
1520
- const providedCallback = args.options?.onResponse;
1521
- const callback: coreClient.RawResponseCallback = (
1522
- rawResponse: coreClient.FullOperationResponse,
1523
- flatResponse: unknown
1524
- ) => {
1525
- currentRawResponse = rawResponse;
1526
- providedCallback?.(rawResponse, flatResponse);
1527
- };
1528
- const updatedArgs = {
1529
- ...args,
1530
- options: {
1531
- ...args.options,
1532
- onResponse: callback
1533
- }
1534
- };
1535
- const flatResponse = await directSendOperation(updatedArgs, spec);
1536
- return {
1537
- flatResponse,
1538
- rawResponse: {
1539
- statusCode: currentRawResponse!.status,
1540
- body: currentRawResponse!.parsedBody,
1541
- headers: currentRawResponse!.headers.toJSON()
1542
- }
1543
- };
1544
- };
1545
-
1546
- const lro = createLroSpec({
1547
- sendOperationFn,
1548
- args: { groupId, deploymentName, parameters, options },
1549
- spec: validateAtManagementGroupScopeOperationSpec
1550
- });
1551
- const poller = await createHttpPoller<
1552
- DeploymentsValidateAtManagementGroupScopeResponse,
1553
- OperationState<DeploymentsValidateAtManagementGroupScopeResponse>
1554
- >(lro, {
1555
- restoreFrom: options?.resumeFrom,
1556
- intervalInMs: options?.updateIntervalInMs
1557
- });
1558
- await poller.poll();
1559
- return poller;
1560
- }
1561
-
1562
- /**
1563
- * Validates whether the specified template is syntactically correct and will be accepted by Azure
1564
- * Resource Manager..
1565
- * @param groupId The management group ID.
1566
- * @param deploymentName The name of the deployment.
1567
- * @param parameters Parameters to validate.
1568
- * @param options The options parameters.
1569
- */
1570
- async beginValidateAtManagementGroupScopeAndWait(
1571
- groupId: string,
1572
- deploymentName: string,
1573
- parameters: ScopedDeployment,
1574
- options?: DeploymentsValidateAtManagementGroupScopeOptionalParams
1575
- ): Promise<DeploymentsValidateAtManagementGroupScopeResponse> {
1576
- const poller = await this.beginValidateAtManagementGroupScope(
1577
- groupId,
1578
- deploymentName,
1579
- parameters,
1580
- options
1581
- );
1582
- return poller.pollUntilDone();
1583
- }
1584
-
1585
- /**
1586
- * Returns changes that will be made by the deployment if executed at the scope of the management
1587
- * group.
1588
- * @param groupId The management group ID.
1589
- * @param deploymentName The name of the deployment.
1590
- * @param parameters Parameters to validate.
1591
- * @param options The options parameters.
1592
- */
1593
- async beginWhatIfAtManagementGroupScope(
1594
- groupId: string,
1595
- deploymentName: string,
1596
- parameters: ScopedDeploymentWhatIf,
1597
- options?: DeploymentsWhatIfAtManagementGroupScopeOptionalParams
1598
- ): Promise<
1599
- SimplePollerLike<
1600
- OperationState<DeploymentsWhatIfAtManagementGroupScopeResponse>,
1601
- DeploymentsWhatIfAtManagementGroupScopeResponse
1602
- >
1603
- > {
1604
- const directSendOperation = async (
1605
- args: coreClient.OperationArguments,
1606
- spec: coreClient.OperationSpec
1607
- ): Promise<DeploymentsWhatIfAtManagementGroupScopeResponse> => {
1608
- return this.client.sendOperationRequest(args, spec);
1609
- };
1610
- const sendOperationFn = async (
1611
- args: coreClient.OperationArguments,
1612
- spec: coreClient.OperationSpec
1613
- ) => {
1614
- let currentRawResponse:
1615
- | coreClient.FullOperationResponse
1616
- | undefined = undefined;
1617
- const providedCallback = args.options?.onResponse;
1618
- const callback: coreClient.RawResponseCallback = (
1619
- rawResponse: coreClient.FullOperationResponse,
1620
- flatResponse: unknown
1621
- ) => {
1622
- currentRawResponse = rawResponse;
1623
- providedCallback?.(rawResponse, flatResponse);
1624
- };
1625
- const updatedArgs = {
1626
- ...args,
1627
- options: {
1628
- ...args.options,
1629
- onResponse: callback
1630
- }
1631
- };
1632
- const flatResponse = await directSendOperation(updatedArgs, spec);
1633
- return {
1634
- flatResponse,
1635
- rawResponse: {
1636
- statusCode: currentRawResponse!.status,
1637
- body: currentRawResponse!.parsedBody,
1638
- headers: currentRawResponse!.headers.toJSON()
1639
- }
1640
- };
1641
- };
1642
-
1643
- const lro = createLroSpec({
1644
- sendOperationFn,
1645
- args: { groupId, deploymentName, parameters, options },
1646
- spec: whatIfAtManagementGroupScopeOperationSpec
1647
- });
1648
- const poller = await createHttpPoller<
1649
- DeploymentsWhatIfAtManagementGroupScopeResponse,
1650
- OperationState<DeploymentsWhatIfAtManagementGroupScopeResponse>
1651
- >(lro, {
1652
- restoreFrom: options?.resumeFrom,
1653
- intervalInMs: options?.updateIntervalInMs,
1654
- resourceLocationConfig: "location"
1655
- });
1656
- await poller.poll();
1657
- return poller;
1658
- }
1659
-
1660
- /**
1661
- * Returns changes that will be made by the deployment if executed at the scope of the management
1662
- * group.
1663
- * @param groupId The management group ID.
1664
- * @param deploymentName The name of the deployment.
1665
- * @param parameters Parameters to validate.
1666
- * @param options The options parameters.
1667
- */
1668
- async beginWhatIfAtManagementGroupScopeAndWait(
1669
- groupId: string,
1670
- deploymentName: string,
1671
- parameters: ScopedDeploymentWhatIf,
1672
- options?: DeploymentsWhatIfAtManagementGroupScopeOptionalParams
1673
- ): Promise<DeploymentsWhatIfAtManagementGroupScopeResponse> {
1674
- const poller = await this.beginWhatIfAtManagementGroupScope(
1675
- groupId,
1676
- deploymentName,
1677
- parameters,
1678
- options
1679
- );
1680
- return poller.pollUntilDone();
1681
- }
1682
-
1683
- /**
1684
- * Exports the template used for specified deployment.
1685
- * @param groupId The management group ID.
1686
- * @param deploymentName The name of the deployment.
1687
- * @param options The options parameters.
1688
- */
1689
- exportTemplateAtManagementGroupScope(
1690
- groupId: string,
1691
- deploymentName: string,
1692
- options?: DeploymentsExportTemplateAtManagementGroupScopeOptionalParams
1693
- ): Promise<DeploymentsExportTemplateAtManagementGroupScopeResponse> {
1694
- return this.client.sendOperationRequest(
1695
- { groupId, deploymentName, options },
1696
- exportTemplateAtManagementGroupScopeOperationSpec
1697
- );
1698
- }
1699
-
1700
- /**
1701
- * Get all the deployments for a management group.
1702
- * @param groupId The management group ID.
1703
- * @param options The options parameters.
1704
- */
1705
- private _listAtManagementGroupScope(
1706
- groupId: string,
1707
- options?: DeploymentsListAtManagementGroupScopeOptionalParams
1708
- ): Promise<DeploymentsListAtManagementGroupScopeResponse> {
1709
- return this.client.sendOperationRequest(
1710
- { groupId, options },
1711
- listAtManagementGroupScopeOperationSpec
1712
- );
1713
- }
1714
-
1715
- /**
1716
- * A template deployment that is currently running cannot be deleted. Deleting a template deployment
1717
- * removes the associated deployment operations. This is an asynchronous operation that returns a
1718
- * status of 202 until the template deployment is successfully deleted. The Location response header
1719
- * contains the URI that is used to obtain the status of the process. While the process is running, a
1720
- * call to the URI in the Location header returns a status of 202. When the process finishes, the URI
1721
- * in the Location header returns a status of 204 on success. If the asynchronous request failed, the
1722
- * URI in the Location header returns an error-level status code.
1723
- * @param deploymentName The name of the deployment.
1724
- * @param options The options parameters.
1725
- */
1726
- async beginDeleteAtSubscriptionScope(
1727
- deploymentName: string,
1728
- options?: DeploymentsDeleteAtSubscriptionScopeOptionalParams
1729
- ): Promise<SimplePollerLike<OperationState<void>, void>> {
1730
- const directSendOperation = async (
1731
- args: coreClient.OperationArguments,
1732
- spec: coreClient.OperationSpec
1733
- ): Promise<void> => {
1734
- return this.client.sendOperationRequest(args, spec);
1735
- };
1736
- const sendOperationFn = async (
1737
- args: coreClient.OperationArguments,
1738
- spec: coreClient.OperationSpec
1739
- ) => {
1740
- let currentRawResponse:
1741
- | coreClient.FullOperationResponse
1742
- | undefined = undefined;
1743
- const providedCallback = args.options?.onResponse;
1744
- const callback: coreClient.RawResponseCallback = (
1745
- rawResponse: coreClient.FullOperationResponse,
1746
- flatResponse: unknown
1747
- ) => {
1748
- currentRawResponse = rawResponse;
1749
- providedCallback?.(rawResponse, flatResponse);
1750
- };
1751
- const updatedArgs = {
1752
- ...args,
1753
- options: {
1754
- ...args.options,
1755
- onResponse: callback
1756
- }
1757
- };
1758
- const flatResponse = await directSendOperation(updatedArgs, spec);
1759
- return {
1760
- flatResponse,
1761
- rawResponse: {
1762
- statusCode: currentRawResponse!.status,
1763
- body: currentRawResponse!.parsedBody,
1764
- headers: currentRawResponse!.headers.toJSON()
1765
- }
1766
- };
1767
- };
1768
-
1769
- const lro = createLroSpec({
1770
- sendOperationFn,
1771
- args: { deploymentName, options },
1772
- spec: deleteAtSubscriptionScopeOperationSpec
1773
- });
1774
- const poller = await createHttpPoller<void, OperationState<void>>(lro, {
1775
- restoreFrom: options?.resumeFrom,
1776
- intervalInMs: options?.updateIntervalInMs
1777
- });
1778
- await poller.poll();
1779
- return poller;
1780
- }
1781
-
1782
- /**
1783
- * A template deployment that is currently running cannot be deleted. Deleting a template deployment
1784
- * removes the associated deployment operations. This is an asynchronous operation that returns a
1785
- * status of 202 until the template deployment is successfully deleted. The Location response header
1786
- * contains the URI that is used to obtain the status of the process. While the process is running, a
1787
- * call to the URI in the Location header returns a status of 202. When the process finishes, the URI
1788
- * in the Location header returns a status of 204 on success. If the asynchronous request failed, the
1789
- * URI in the Location header returns an error-level status code.
1790
- * @param deploymentName The name of the deployment.
1791
- * @param options The options parameters.
1792
- */
1793
- async beginDeleteAtSubscriptionScopeAndWait(
1794
- deploymentName: string,
1795
- options?: DeploymentsDeleteAtSubscriptionScopeOptionalParams
1796
- ): Promise<void> {
1797
- const poller = await this.beginDeleteAtSubscriptionScope(
1798
- deploymentName,
1799
- options
1800
- );
1801
- return poller.pollUntilDone();
1802
- }
1803
-
1804
- /**
1805
- * Checks whether the deployment exists.
1806
- * @param deploymentName The name of the deployment.
1807
- * @param options The options parameters.
1808
- */
1809
- checkExistenceAtSubscriptionScope(
1810
- deploymentName: string,
1811
- options?: DeploymentsCheckExistenceAtSubscriptionScopeOptionalParams
1812
- ): Promise<DeploymentsCheckExistenceAtSubscriptionScopeResponse> {
1813
- return this.client.sendOperationRequest(
1814
- { deploymentName, options },
1815
- checkExistenceAtSubscriptionScopeOperationSpec
1816
- );
1817
- }
1818
-
1819
- /**
1820
- * You can provide the template and parameters directly in the request or link to JSON files.
1821
- * @param deploymentName The name of the deployment.
1822
- * @param parameters Additional parameters supplied to the operation.
1823
- * @param options The options parameters.
1824
- */
1825
- async beginCreateOrUpdateAtSubscriptionScope(
1826
- deploymentName: string,
1827
- parameters: Deployment,
1828
- options?: DeploymentsCreateOrUpdateAtSubscriptionScopeOptionalParams
1829
- ): Promise<
1830
- SimplePollerLike<
1831
- OperationState<DeploymentsCreateOrUpdateAtSubscriptionScopeResponse>,
1832
- DeploymentsCreateOrUpdateAtSubscriptionScopeResponse
1833
- >
1834
- > {
1835
- const directSendOperation = async (
1836
- args: coreClient.OperationArguments,
1837
- spec: coreClient.OperationSpec
1838
- ): Promise<DeploymentsCreateOrUpdateAtSubscriptionScopeResponse> => {
1839
- return this.client.sendOperationRequest(args, spec);
1840
- };
1841
- const sendOperationFn = async (
1842
- args: coreClient.OperationArguments,
1843
- spec: coreClient.OperationSpec
1844
- ) => {
1845
- let currentRawResponse:
1846
- | coreClient.FullOperationResponse
1847
- | undefined = undefined;
1848
- const providedCallback = args.options?.onResponse;
1849
- const callback: coreClient.RawResponseCallback = (
1850
- rawResponse: coreClient.FullOperationResponse,
1851
- flatResponse: unknown
1852
- ) => {
1853
- currentRawResponse = rawResponse;
1854
- providedCallback?.(rawResponse, flatResponse);
1855
- };
1856
- const updatedArgs = {
1857
- ...args,
1858
- options: {
1859
- ...args.options,
1860
- onResponse: callback
1861
- }
1862
- };
1863
- const flatResponse = await directSendOperation(updatedArgs, spec);
1864
- return {
1865
- flatResponse,
1866
- rawResponse: {
1867
- statusCode: currentRawResponse!.status,
1868
- body: currentRawResponse!.parsedBody,
1869
- headers: currentRawResponse!.headers.toJSON()
1870
- }
1871
- };
1872
- };
1873
-
1874
- const lro = createLroSpec({
1875
- sendOperationFn,
1876
- args: { deploymentName, parameters, options },
1877
- spec: createOrUpdateAtSubscriptionScopeOperationSpec
1878
- });
1879
- const poller = await createHttpPoller<
1880
- DeploymentsCreateOrUpdateAtSubscriptionScopeResponse,
1881
- OperationState<DeploymentsCreateOrUpdateAtSubscriptionScopeResponse>
1882
- >(lro, {
1883
- restoreFrom: options?.resumeFrom,
1884
- intervalInMs: options?.updateIntervalInMs
1885
- });
1886
- await poller.poll();
1887
- return poller;
1888
- }
1889
-
1890
- /**
1891
- * You can provide the template and parameters directly in the request or link to JSON files.
1892
- * @param deploymentName The name of the deployment.
1893
- * @param parameters Additional parameters supplied to the operation.
1894
- * @param options The options parameters.
1895
- */
1896
- async beginCreateOrUpdateAtSubscriptionScopeAndWait(
1897
- deploymentName: string,
1898
- parameters: Deployment,
1899
- options?: DeploymentsCreateOrUpdateAtSubscriptionScopeOptionalParams
1900
- ): Promise<DeploymentsCreateOrUpdateAtSubscriptionScopeResponse> {
1901
- const poller = await this.beginCreateOrUpdateAtSubscriptionScope(
1902
- deploymentName,
1903
- parameters,
1904
- options
1905
- );
1906
- return poller.pollUntilDone();
1907
- }
1908
-
1909
- /**
1910
- * Gets a deployment.
1911
- * @param deploymentName The name of the deployment.
1912
- * @param options The options parameters.
1913
- */
1914
- getAtSubscriptionScope(
1915
- deploymentName: string,
1916
- options?: DeploymentsGetAtSubscriptionScopeOptionalParams
1917
- ): Promise<DeploymentsGetAtSubscriptionScopeResponse> {
1918
- return this.client.sendOperationRequest(
1919
- { deploymentName, options },
1920
- getAtSubscriptionScopeOperationSpec
1921
- );
1922
- }
1923
-
1924
- /**
1925
- * You can cancel a deployment only if the provisioningState is Accepted or Running. After the
1926
- * deployment is canceled, the provisioningState is set to Canceled. Canceling a template deployment
1927
- * stops the currently running template deployment and leaves the resources partially deployed.
1928
- * @param deploymentName The name of the deployment.
1929
- * @param options The options parameters.
1930
- */
1931
- cancelAtSubscriptionScope(
1932
- deploymentName: string,
1933
- options?: DeploymentsCancelAtSubscriptionScopeOptionalParams
1934
- ): Promise<void> {
1935
- return this.client.sendOperationRequest(
1936
- { deploymentName, options },
1937
- cancelAtSubscriptionScopeOperationSpec
1938
- );
1939
- }
1940
-
1941
- /**
1942
- * Validates whether the specified template is syntactically correct and will be accepted by Azure
1943
- * Resource Manager..
1944
- * @param deploymentName The name of the deployment.
1945
- * @param parameters Parameters to validate.
1946
- * @param options The options parameters.
1947
- */
1948
- async beginValidateAtSubscriptionScope(
1949
- deploymentName: string,
1950
- parameters: Deployment,
1951
- options?: DeploymentsValidateAtSubscriptionScopeOptionalParams
1952
- ): Promise<
1953
- SimplePollerLike<
1954
- OperationState<DeploymentsValidateAtSubscriptionScopeResponse>,
1955
- DeploymentsValidateAtSubscriptionScopeResponse
1956
- >
1957
- > {
1958
- const directSendOperation = async (
1959
- args: coreClient.OperationArguments,
1960
- spec: coreClient.OperationSpec
1961
- ): Promise<DeploymentsValidateAtSubscriptionScopeResponse> => {
1962
- return this.client.sendOperationRequest(args, spec);
1963
- };
1964
- const sendOperationFn = async (
1965
- args: coreClient.OperationArguments,
1966
- spec: coreClient.OperationSpec
1967
- ) => {
1968
- let currentRawResponse:
1969
- | coreClient.FullOperationResponse
1970
- | undefined = undefined;
1971
- const providedCallback = args.options?.onResponse;
1972
- const callback: coreClient.RawResponseCallback = (
1973
- rawResponse: coreClient.FullOperationResponse,
1974
- flatResponse: unknown
1975
- ) => {
1976
- currentRawResponse = rawResponse;
1977
- providedCallback?.(rawResponse, flatResponse);
1978
- };
1979
- const updatedArgs = {
1980
- ...args,
1981
- options: {
1982
- ...args.options,
1983
- onResponse: callback
1984
- }
1985
- };
1986
- const flatResponse = await directSendOperation(updatedArgs, spec);
1987
- return {
1988
- flatResponse,
1989
- rawResponse: {
1990
- statusCode: currentRawResponse!.status,
1991
- body: currentRawResponse!.parsedBody,
1992
- headers: currentRawResponse!.headers.toJSON()
1993
- }
1994
- };
1995
- };
1996
-
1997
- const lro = createLroSpec({
1998
- sendOperationFn,
1999
- args: { deploymentName, parameters, options },
2000
- spec: validateAtSubscriptionScopeOperationSpec
2001
- });
2002
- const poller = await createHttpPoller<
2003
- DeploymentsValidateAtSubscriptionScopeResponse,
2004
- OperationState<DeploymentsValidateAtSubscriptionScopeResponse>
2005
- >(lro, {
2006
- restoreFrom: options?.resumeFrom,
2007
- intervalInMs: options?.updateIntervalInMs
2008
- });
2009
- await poller.poll();
2010
- return poller;
2011
- }
2012
-
2013
- /**
2014
- * Validates whether the specified template is syntactically correct and will be accepted by Azure
2015
- * Resource Manager..
2016
- * @param deploymentName The name of the deployment.
2017
- * @param parameters Parameters to validate.
2018
- * @param options The options parameters.
2019
- */
2020
- async beginValidateAtSubscriptionScopeAndWait(
2021
- deploymentName: string,
2022
- parameters: Deployment,
2023
- options?: DeploymentsValidateAtSubscriptionScopeOptionalParams
2024
- ): Promise<DeploymentsValidateAtSubscriptionScopeResponse> {
2025
- const poller = await this.beginValidateAtSubscriptionScope(
2026
- deploymentName,
2027
- parameters,
2028
- options
2029
- );
2030
- return poller.pollUntilDone();
2031
- }
2032
-
2033
- /**
2034
- * Returns changes that will be made by the deployment if executed at the scope of the subscription.
2035
- * @param deploymentName The name of the deployment.
2036
- * @param parameters Parameters to What If.
2037
- * @param options The options parameters.
2038
- */
2039
- async beginWhatIfAtSubscriptionScope(
2040
- deploymentName: string,
2041
- parameters: DeploymentWhatIf,
2042
- options?: DeploymentsWhatIfAtSubscriptionScopeOptionalParams
2043
- ): Promise<
2044
- SimplePollerLike<
2045
- OperationState<DeploymentsWhatIfAtSubscriptionScopeResponse>,
2046
- DeploymentsWhatIfAtSubscriptionScopeResponse
2047
- >
2048
- > {
2049
- const directSendOperation = async (
2050
- args: coreClient.OperationArguments,
2051
- spec: coreClient.OperationSpec
2052
- ): Promise<DeploymentsWhatIfAtSubscriptionScopeResponse> => {
2053
- return this.client.sendOperationRequest(args, spec);
2054
- };
2055
- const sendOperationFn = async (
2056
- args: coreClient.OperationArguments,
2057
- spec: coreClient.OperationSpec
2058
- ) => {
2059
- let currentRawResponse:
2060
- | coreClient.FullOperationResponse
2061
- | undefined = undefined;
2062
- const providedCallback = args.options?.onResponse;
2063
- const callback: coreClient.RawResponseCallback = (
2064
- rawResponse: coreClient.FullOperationResponse,
2065
- flatResponse: unknown
2066
- ) => {
2067
- currentRawResponse = rawResponse;
2068
- providedCallback?.(rawResponse, flatResponse);
2069
- };
2070
- const updatedArgs = {
2071
- ...args,
2072
- options: {
2073
- ...args.options,
2074
- onResponse: callback
2075
- }
2076
- };
2077
- const flatResponse = await directSendOperation(updatedArgs, spec);
2078
- return {
2079
- flatResponse,
2080
- rawResponse: {
2081
- statusCode: currentRawResponse!.status,
2082
- body: currentRawResponse!.parsedBody,
2083
- headers: currentRawResponse!.headers.toJSON()
2084
- }
2085
- };
2086
- };
2087
-
2088
- const lro = createLroSpec({
2089
- sendOperationFn,
2090
- args: { deploymentName, parameters, options },
2091
- spec: whatIfAtSubscriptionScopeOperationSpec
2092
- });
2093
- const poller = await createHttpPoller<
2094
- DeploymentsWhatIfAtSubscriptionScopeResponse,
2095
- OperationState<DeploymentsWhatIfAtSubscriptionScopeResponse>
2096
- >(lro, {
2097
- restoreFrom: options?.resumeFrom,
2098
- intervalInMs: options?.updateIntervalInMs,
2099
- resourceLocationConfig: "location"
2100
- });
2101
- await poller.poll();
2102
- return poller;
2103
- }
2104
-
2105
- /**
2106
- * Returns changes that will be made by the deployment if executed at the scope of the subscription.
2107
- * @param deploymentName The name of the deployment.
2108
- * @param parameters Parameters to What If.
2109
- * @param options The options parameters.
2110
- */
2111
- async beginWhatIfAtSubscriptionScopeAndWait(
2112
- deploymentName: string,
2113
- parameters: DeploymentWhatIf,
2114
- options?: DeploymentsWhatIfAtSubscriptionScopeOptionalParams
2115
- ): Promise<DeploymentsWhatIfAtSubscriptionScopeResponse> {
2116
- const poller = await this.beginWhatIfAtSubscriptionScope(
2117
- deploymentName,
2118
- parameters,
2119
- options
2120
- );
2121
- return poller.pollUntilDone();
2122
- }
2123
-
2124
- /**
2125
- * Exports the template used for specified deployment.
2126
- * @param deploymentName The name of the deployment.
2127
- * @param options The options parameters.
2128
- */
2129
- exportTemplateAtSubscriptionScope(
2130
- deploymentName: string,
2131
- options?: DeploymentsExportTemplateAtSubscriptionScopeOptionalParams
2132
- ): Promise<DeploymentsExportTemplateAtSubscriptionScopeResponse> {
2133
- return this.client.sendOperationRequest(
2134
- { deploymentName, options },
2135
- exportTemplateAtSubscriptionScopeOperationSpec
2136
- );
2137
- }
2138
-
2139
- /**
2140
- * Get all the deployments for a subscription.
2141
- * @param options The options parameters.
2142
- */
2143
- private _listAtSubscriptionScope(
2144
- options?: DeploymentsListAtSubscriptionScopeOptionalParams
2145
- ): Promise<DeploymentsListAtSubscriptionScopeResponse> {
2146
- return this.client.sendOperationRequest(
2147
- { options },
2148
- listAtSubscriptionScopeOperationSpec
2149
- );
2150
- }
2151
-
2152
- /**
2153
- * A template deployment that is currently running cannot be deleted. Deleting a template deployment
2154
- * removes the associated deployment operations. Deleting a template deployment does not affect the
2155
- * state of the resource group. This is an asynchronous operation that returns a status of 202 until
2156
- * the template deployment is successfully deleted. The Location response header contains the URI that
2157
- * is used to obtain the status of the process. While the process is running, a call to the URI in the
2158
- * Location header returns a status of 202. When the process finishes, the URI in the Location header
2159
- * returns a status of 204 on success. If the asynchronous request failed, the URI in the Location
2160
- * header returns an error-level status code.
2161
- * @param resourceGroupName The name of the resource group with the deployment to delete. The name is
2162
- * case insensitive.
2163
- * @param deploymentName The name of the deployment.
2164
- * @param options The options parameters.
2165
- */
2166
- async beginDelete(
2167
- resourceGroupName: string,
2168
- deploymentName: string,
2169
- options?: DeploymentsDeleteOptionalParams
2170
- ): Promise<SimplePollerLike<OperationState<void>, void>> {
2171
- const directSendOperation = async (
2172
- args: coreClient.OperationArguments,
2173
- spec: coreClient.OperationSpec
2174
- ): Promise<void> => {
2175
- return this.client.sendOperationRequest(args, spec);
2176
- };
2177
- const sendOperationFn = async (
2178
- args: coreClient.OperationArguments,
2179
- spec: coreClient.OperationSpec
2180
- ) => {
2181
- let currentRawResponse:
2182
- | coreClient.FullOperationResponse
2183
- | undefined = undefined;
2184
- const providedCallback = args.options?.onResponse;
2185
- const callback: coreClient.RawResponseCallback = (
2186
- rawResponse: coreClient.FullOperationResponse,
2187
- flatResponse: unknown
2188
- ) => {
2189
- currentRawResponse = rawResponse;
2190
- providedCallback?.(rawResponse, flatResponse);
2191
- };
2192
- const updatedArgs = {
2193
- ...args,
2194
- options: {
2195
- ...args.options,
2196
- onResponse: callback
2197
- }
2198
- };
2199
- const flatResponse = await directSendOperation(updatedArgs, spec);
2200
- return {
2201
- flatResponse,
2202
- rawResponse: {
2203
- statusCode: currentRawResponse!.status,
2204
- body: currentRawResponse!.parsedBody,
2205
- headers: currentRawResponse!.headers.toJSON()
2206
- }
2207
- };
2208
- };
2209
-
2210
- const lro = createLroSpec({
2211
- sendOperationFn,
2212
- args: { resourceGroupName, deploymentName, options },
2213
- spec: deleteOperationSpec
2214
- });
2215
- const poller = await createHttpPoller<void, OperationState<void>>(lro, {
2216
- restoreFrom: options?.resumeFrom,
2217
- intervalInMs: options?.updateIntervalInMs
2218
- });
2219
- await poller.poll();
2220
- return poller;
2221
- }
2222
-
2223
- /**
2224
- * A template deployment that is currently running cannot be deleted. Deleting a template deployment
2225
- * removes the associated deployment operations. Deleting a template deployment does not affect the
2226
- * state of the resource group. This is an asynchronous operation that returns a status of 202 until
2227
- * the template deployment is successfully deleted. The Location response header contains the URI that
2228
- * is used to obtain the status of the process. While the process is running, a call to the URI in the
2229
- * Location header returns a status of 202. When the process finishes, the URI in the Location header
2230
- * returns a status of 204 on success. If the asynchronous request failed, the URI in the Location
2231
- * header returns an error-level status code.
2232
- * @param resourceGroupName The name of the resource group with the deployment to delete. The name is
2233
- * case insensitive.
2234
- * @param deploymentName The name of the deployment.
2235
- * @param options The options parameters.
2236
- */
2237
- async beginDeleteAndWait(
2238
- resourceGroupName: string,
2239
- deploymentName: string,
2240
- options?: DeploymentsDeleteOptionalParams
2241
- ): Promise<void> {
2242
- const poller = await this.beginDelete(
2243
- resourceGroupName,
2244
- deploymentName,
2245
- options
2246
- );
2247
- return poller.pollUntilDone();
2248
- }
2249
-
2250
- /**
2251
- * Checks whether the deployment exists.
2252
- * @param resourceGroupName The name of the resource group with the deployment to check. The name is
2253
- * case insensitive.
2254
- * @param deploymentName The name of the deployment.
2255
- * @param options The options parameters.
2256
- */
2257
- checkExistence(
2258
- resourceGroupName: string,
2259
- deploymentName: string,
2260
- options?: DeploymentsCheckExistenceOptionalParams
2261
- ): Promise<DeploymentsCheckExistenceResponse> {
2262
- return this.client.sendOperationRequest(
2263
- { resourceGroupName, deploymentName, options },
2264
- checkExistenceOperationSpec
2265
- );
2266
- }
2267
-
2268
- /**
2269
- * You can provide the template and parameters directly in the request or link to JSON files.
2270
- * @param resourceGroupName The name of the resource group to deploy the resources to. The name is case
2271
- * insensitive. The resource group must already exist.
2272
- * @param deploymentName The name of the deployment.
2273
- * @param parameters Additional parameters supplied to the operation.
2274
- * @param options The options parameters.
2275
- */
2276
- async beginCreateOrUpdate(
2277
- resourceGroupName: string,
2278
- deploymentName: string,
2279
- parameters: Deployment,
2280
- options?: DeploymentsCreateOrUpdateOptionalParams
2281
- ): Promise<
2282
- SimplePollerLike<
2283
- OperationState<DeploymentsCreateOrUpdateResponse>,
2284
- DeploymentsCreateOrUpdateResponse
2285
- >
2286
- > {
2287
- const directSendOperation = async (
2288
- args: coreClient.OperationArguments,
2289
- spec: coreClient.OperationSpec
2290
- ): Promise<DeploymentsCreateOrUpdateResponse> => {
2291
- return this.client.sendOperationRequest(args, spec);
2292
- };
2293
- const sendOperationFn = async (
2294
- args: coreClient.OperationArguments,
2295
- spec: coreClient.OperationSpec
2296
- ) => {
2297
- let currentRawResponse:
2298
- | coreClient.FullOperationResponse
2299
- | undefined = undefined;
2300
- const providedCallback = args.options?.onResponse;
2301
- const callback: coreClient.RawResponseCallback = (
2302
- rawResponse: coreClient.FullOperationResponse,
2303
- flatResponse: unknown
2304
- ) => {
2305
- currentRawResponse = rawResponse;
2306
- providedCallback?.(rawResponse, flatResponse);
2307
- };
2308
- const updatedArgs = {
2309
- ...args,
2310
- options: {
2311
- ...args.options,
2312
- onResponse: callback
2313
- }
2314
- };
2315
- const flatResponse = await directSendOperation(updatedArgs, spec);
2316
- return {
2317
- flatResponse,
2318
- rawResponse: {
2319
- statusCode: currentRawResponse!.status,
2320
- body: currentRawResponse!.parsedBody,
2321
- headers: currentRawResponse!.headers.toJSON()
2322
- }
2323
- };
2324
- };
2325
-
2326
- const lro = createLroSpec({
2327
- sendOperationFn,
2328
- args: { resourceGroupName, deploymentName, parameters, options },
2329
- spec: createOrUpdateOperationSpec
2330
- });
2331
- const poller = await createHttpPoller<
2332
- DeploymentsCreateOrUpdateResponse,
2333
- OperationState<DeploymentsCreateOrUpdateResponse>
2334
- >(lro, {
2335
- restoreFrom: options?.resumeFrom,
2336
- intervalInMs: options?.updateIntervalInMs
2337
- });
2338
- await poller.poll();
2339
- return poller;
2340
- }
2341
-
2342
- /**
2343
- * You can provide the template and parameters directly in the request or link to JSON files.
2344
- * @param resourceGroupName The name of the resource group to deploy the resources to. The name is case
2345
- * insensitive. The resource group must already exist.
2346
- * @param deploymentName The name of the deployment.
2347
- * @param parameters Additional parameters supplied to the operation.
2348
- * @param options The options parameters.
2349
- */
2350
- async beginCreateOrUpdateAndWait(
2351
- resourceGroupName: string,
2352
- deploymentName: string,
2353
- parameters: Deployment,
2354
- options?: DeploymentsCreateOrUpdateOptionalParams
2355
- ): Promise<DeploymentsCreateOrUpdateResponse> {
2356
- const poller = await this.beginCreateOrUpdate(
2357
- resourceGroupName,
2358
- deploymentName,
2359
- parameters,
2360
- options
2361
- );
2362
- return poller.pollUntilDone();
2363
- }
2364
-
2365
- /**
2366
- * Gets a deployment.
2367
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2368
- * @param deploymentName The name of the deployment.
2369
- * @param options The options parameters.
2370
- */
2371
- get(
2372
- resourceGroupName: string,
2373
- deploymentName: string,
2374
- options?: DeploymentsGetOptionalParams
2375
- ): Promise<DeploymentsGetResponse> {
2376
- return this.client.sendOperationRequest(
2377
- { resourceGroupName, deploymentName, options },
2378
- getOperationSpec
2379
- );
2380
- }
2381
-
2382
- /**
2383
- * You can cancel a deployment only if the provisioningState is Accepted or Running. After the
2384
- * deployment is canceled, the provisioningState is set to Canceled. Canceling a template deployment
2385
- * stops the currently running template deployment and leaves the resource group partially deployed.
2386
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2387
- * @param deploymentName The name of the deployment.
2388
- * @param options The options parameters.
2389
- */
2390
- cancel(
2391
- resourceGroupName: string,
2392
- deploymentName: string,
2393
- options?: DeploymentsCancelOptionalParams
2394
- ): Promise<void> {
2395
- return this.client.sendOperationRequest(
2396
- { resourceGroupName, deploymentName, options },
2397
- cancelOperationSpec
2398
- );
2399
- }
2400
-
2401
- /**
2402
- * Validates whether the specified template is syntactically correct and will be accepted by Azure
2403
- * Resource Manager..
2404
- * @param resourceGroupName The name of the resource group the template will be deployed to. The name
2405
- * is case insensitive.
2406
- * @param deploymentName The name of the deployment.
2407
- * @param parameters Parameters to validate.
2408
- * @param options The options parameters.
2409
- */
2410
- async beginValidate(
2411
- resourceGroupName: string,
2412
- deploymentName: string,
2413
- parameters: Deployment,
2414
- options?: DeploymentsValidateOptionalParams
2415
- ): Promise<
2416
- SimplePollerLike<
2417
- OperationState<DeploymentsValidateResponse>,
2418
- DeploymentsValidateResponse
2419
- >
2420
- > {
2421
- const directSendOperation = async (
2422
- args: coreClient.OperationArguments,
2423
- spec: coreClient.OperationSpec
2424
- ): Promise<DeploymentsValidateResponse> => {
2425
- return this.client.sendOperationRequest(args, spec);
2426
- };
2427
- const sendOperationFn = async (
2428
- args: coreClient.OperationArguments,
2429
- spec: coreClient.OperationSpec
2430
- ) => {
2431
- let currentRawResponse:
2432
- | coreClient.FullOperationResponse
2433
- | undefined = undefined;
2434
- const providedCallback = args.options?.onResponse;
2435
- const callback: coreClient.RawResponseCallback = (
2436
- rawResponse: coreClient.FullOperationResponse,
2437
- flatResponse: unknown
2438
- ) => {
2439
- currentRawResponse = rawResponse;
2440
- providedCallback?.(rawResponse, flatResponse);
2441
- };
2442
- const updatedArgs = {
2443
- ...args,
2444
- options: {
2445
- ...args.options,
2446
- onResponse: callback
2447
- }
2448
- };
2449
- const flatResponse = await directSendOperation(updatedArgs, spec);
2450
- return {
2451
- flatResponse,
2452
- rawResponse: {
2453
- statusCode: currentRawResponse!.status,
2454
- body: currentRawResponse!.parsedBody,
2455
- headers: currentRawResponse!.headers.toJSON()
2456
- }
2457
- };
2458
- };
2459
-
2460
- const lro = createLroSpec({
2461
- sendOperationFn,
2462
- args: { resourceGroupName, deploymentName, parameters, options },
2463
- spec: validateOperationSpec
2464
- });
2465
- const poller = await createHttpPoller<
2466
- DeploymentsValidateResponse,
2467
- OperationState<DeploymentsValidateResponse>
2468
- >(lro, {
2469
- restoreFrom: options?.resumeFrom,
2470
- intervalInMs: options?.updateIntervalInMs
2471
- });
2472
- await poller.poll();
2473
- return poller;
2474
- }
2475
-
2476
- /**
2477
- * Validates whether the specified template is syntactically correct and will be accepted by Azure
2478
- * Resource Manager..
2479
- * @param resourceGroupName The name of the resource group the template will be deployed to. The name
2480
- * is case insensitive.
2481
- * @param deploymentName The name of the deployment.
2482
- * @param parameters Parameters to validate.
2483
- * @param options The options parameters.
2484
- */
2485
- async beginValidateAndWait(
2486
- resourceGroupName: string,
2487
- deploymentName: string,
2488
- parameters: Deployment,
2489
- options?: DeploymentsValidateOptionalParams
2490
- ): Promise<DeploymentsValidateResponse> {
2491
- const poller = await this.beginValidate(
2492
- resourceGroupName,
2493
- deploymentName,
2494
- parameters,
2495
- options
2496
- );
2497
- return poller.pollUntilDone();
2498
- }
2499
-
2500
- /**
2501
- * Returns changes that will be made by the deployment if executed at the scope of the resource group.
2502
- * @param resourceGroupName The name of the resource group the template will be deployed to. The name
2503
- * is case insensitive.
2504
- * @param deploymentName The name of the deployment.
2505
- * @param parameters Parameters to validate.
2506
- * @param options The options parameters.
2507
- */
2508
- async beginWhatIf(
2509
- resourceGroupName: string,
2510
- deploymentName: string,
2511
- parameters: DeploymentWhatIf,
2512
- options?: DeploymentsWhatIfOptionalParams
2513
- ): Promise<
2514
- SimplePollerLike<
2515
- OperationState<DeploymentsWhatIfResponse>,
2516
- DeploymentsWhatIfResponse
2517
- >
2518
- > {
2519
- const directSendOperation = async (
2520
- args: coreClient.OperationArguments,
2521
- spec: coreClient.OperationSpec
2522
- ): Promise<DeploymentsWhatIfResponse> => {
2523
- return this.client.sendOperationRequest(args, spec);
2524
- };
2525
- const sendOperationFn = async (
2526
- args: coreClient.OperationArguments,
2527
- spec: coreClient.OperationSpec
2528
- ) => {
2529
- let currentRawResponse:
2530
- | coreClient.FullOperationResponse
2531
- | undefined = undefined;
2532
- const providedCallback = args.options?.onResponse;
2533
- const callback: coreClient.RawResponseCallback = (
2534
- rawResponse: coreClient.FullOperationResponse,
2535
- flatResponse: unknown
2536
- ) => {
2537
- currentRawResponse = rawResponse;
2538
- providedCallback?.(rawResponse, flatResponse);
2539
- };
2540
- const updatedArgs = {
2541
- ...args,
2542
- options: {
2543
- ...args.options,
2544
- onResponse: callback
2545
- }
2546
- };
2547
- const flatResponse = await directSendOperation(updatedArgs, spec);
2548
- return {
2549
- flatResponse,
2550
- rawResponse: {
2551
- statusCode: currentRawResponse!.status,
2552
- body: currentRawResponse!.parsedBody,
2553
- headers: currentRawResponse!.headers.toJSON()
2554
- }
2555
- };
2556
- };
2557
-
2558
- const lro = createLroSpec({
2559
- sendOperationFn,
2560
- args: { resourceGroupName, deploymentName, parameters, options },
2561
- spec: whatIfOperationSpec
2562
- });
2563
- const poller = await createHttpPoller<
2564
- DeploymentsWhatIfResponse,
2565
- OperationState<DeploymentsWhatIfResponse>
2566
- >(lro, {
2567
- restoreFrom: options?.resumeFrom,
2568
- intervalInMs: options?.updateIntervalInMs,
2569
- resourceLocationConfig: "location"
2570
- });
2571
- await poller.poll();
2572
- return poller;
2573
- }
2574
-
2575
- /**
2576
- * Returns changes that will be made by the deployment if executed at the scope of the resource group.
2577
- * @param resourceGroupName The name of the resource group the template will be deployed to. The name
2578
- * is case insensitive.
2579
- * @param deploymentName The name of the deployment.
2580
- * @param parameters Parameters to validate.
2581
- * @param options The options parameters.
2582
- */
2583
- async beginWhatIfAndWait(
2584
- resourceGroupName: string,
2585
- deploymentName: string,
2586
- parameters: DeploymentWhatIf,
2587
- options?: DeploymentsWhatIfOptionalParams
2588
- ): Promise<DeploymentsWhatIfResponse> {
2589
- const poller = await this.beginWhatIf(
2590
- resourceGroupName,
2591
- deploymentName,
2592
- parameters,
2593
- options
2594
- );
2595
- return poller.pollUntilDone();
2596
- }
2597
-
2598
- /**
2599
- * Exports the template used for specified deployment.
2600
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2601
- * @param deploymentName The name of the deployment.
2602
- * @param options The options parameters.
2603
- */
2604
- exportTemplate(
2605
- resourceGroupName: string,
2606
- deploymentName: string,
2607
- options?: DeploymentsExportTemplateOptionalParams
2608
- ): Promise<DeploymentsExportTemplateResponse> {
2609
- return this.client.sendOperationRequest(
2610
- { resourceGroupName, deploymentName, options },
2611
- exportTemplateOperationSpec
2612
- );
2613
- }
2614
-
2615
- /**
2616
- * Get all the deployments for a resource group.
2617
- * @param resourceGroupName The name of the resource group with the deployments to get. The name is
2618
- * case insensitive.
2619
- * @param options The options parameters.
2620
- */
2621
- private _listByResourceGroup(
2622
- resourceGroupName: string,
2623
- options?: DeploymentsListByResourceGroupOptionalParams
2624
- ): Promise<DeploymentsListByResourceGroupResponse> {
2625
- return this.client.sendOperationRequest(
2626
- { resourceGroupName, options },
2627
- listByResourceGroupOperationSpec
2628
- );
2629
- }
2630
-
2631
- /**
2632
- * Calculate the hash of the given template.
2633
- * @param template The template provided to calculate hash.
2634
- * @param options The options parameters.
2635
- */
2636
- calculateTemplateHash(
2637
- template: Record<string, unknown>,
2638
- options?: DeploymentsCalculateTemplateHashOptionalParams
2639
- ): Promise<DeploymentsCalculateTemplateHashResponse> {
2640
- return this.client.sendOperationRequest(
2641
- { template, options },
2642
- calculateTemplateHashOperationSpec
2643
- );
2644
- }
2645
-
2646
- /**
2647
- * ListAtScopeNext
2648
- * @param scope The resource scope.
2649
- * @param nextLink The nextLink from the previous successful call to the ListAtScope method.
2650
- * @param options The options parameters.
2651
- */
2652
- private _listAtScopeNext(
2653
- scope: string,
2654
- nextLink: string,
2655
- options?: DeploymentsListAtScopeNextOptionalParams
2656
- ): Promise<DeploymentsListAtScopeNextResponse> {
2657
- return this.client.sendOperationRequest(
2658
- { scope, nextLink, options },
2659
- listAtScopeNextOperationSpec
2660
- );
2661
- }
2662
-
2663
- /**
2664
- * ListAtTenantScopeNext
2665
- * @param nextLink The nextLink from the previous successful call to the ListAtTenantScope method.
2666
- * @param options The options parameters.
2667
- */
2668
- private _listAtTenantScopeNext(
2669
- nextLink: string,
2670
- options?: DeploymentsListAtTenantScopeNextOptionalParams
2671
- ): Promise<DeploymentsListAtTenantScopeNextResponse> {
2672
- return this.client.sendOperationRequest(
2673
- { nextLink, options },
2674
- listAtTenantScopeNextOperationSpec
2675
- );
2676
- }
2677
-
2678
- /**
2679
- * ListAtManagementGroupScopeNext
2680
- * @param groupId The management group ID.
2681
- * @param nextLink The nextLink from the previous successful call to the ListAtManagementGroupScope
2682
- * method.
2683
- * @param options The options parameters.
2684
- */
2685
- private _listAtManagementGroupScopeNext(
2686
- groupId: string,
2687
- nextLink: string,
2688
- options?: DeploymentsListAtManagementGroupScopeNextOptionalParams
2689
- ): Promise<DeploymentsListAtManagementGroupScopeNextResponse> {
2690
- return this.client.sendOperationRequest(
2691
- { groupId, nextLink, options },
2692
- listAtManagementGroupScopeNextOperationSpec
2693
- );
2694
- }
2695
-
2696
- /**
2697
- * ListAtSubscriptionScopeNext
2698
- * @param nextLink The nextLink from the previous successful call to the ListAtSubscriptionScope
2699
- * method.
2700
- * @param options The options parameters.
2701
- */
2702
- private _listAtSubscriptionScopeNext(
2703
- nextLink: string,
2704
- options?: DeploymentsListAtSubscriptionScopeNextOptionalParams
2705
- ): Promise<DeploymentsListAtSubscriptionScopeNextResponse> {
2706
- return this.client.sendOperationRequest(
2707
- { nextLink, options },
2708
- listAtSubscriptionScopeNextOperationSpec
2709
- );
2710
- }
2711
-
2712
- /**
2713
- * ListByResourceGroupNext
2714
- * @param resourceGroupName The name of the resource group with the deployments to get. The name is
2715
- * case insensitive.
2716
- * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
2717
- * @param options The options parameters.
2718
- */
2719
- private _listByResourceGroupNext(
2720
- resourceGroupName: string,
2721
- nextLink: string,
2722
- options?: DeploymentsListByResourceGroupNextOptionalParams
2723
- ): Promise<DeploymentsListByResourceGroupNextResponse> {
2724
- return this.client.sendOperationRequest(
2725
- { resourceGroupName, nextLink, options },
2726
- listByResourceGroupNextOperationSpec
2727
- );
2728
- }
2729
- }
2730
- // Operation Specifications
2731
- const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
2732
-
2733
- const deleteAtScopeOperationSpec: coreClient.OperationSpec = {
2734
- path: "/{scope}/providers/Microsoft.Resources/deployments/{deploymentName}",
2735
- httpMethod: "DELETE",
2736
- responses: {
2737
- 200: {},
2738
- 201: {},
2739
- 202: {},
2740
- 204: {},
2741
- default: {
2742
- bodyMapper: Mappers.CloudError
2743
- }
2744
- },
2745
- queryParameters: [Parameters.apiVersion],
2746
- urlParameters: [
2747
- Parameters.$host,
2748
- Parameters.scope,
2749
- Parameters.deploymentName
2750
- ],
2751
- headerParameters: [Parameters.accept],
2752
- serializer
2753
- };
2754
- const checkExistenceAtScopeOperationSpec: coreClient.OperationSpec = {
2755
- path: "/{scope}/providers/Microsoft.Resources/deployments/{deploymentName}",
2756
- httpMethod: "HEAD",
2757
- responses: {
2758
- 204: {},
2759
- 404: {},
2760
- default: {
2761
- bodyMapper: Mappers.CloudError
2762
- }
2763
- },
2764
- queryParameters: [Parameters.apiVersion],
2765
- urlParameters: [
2766
- Parameters.$host,
2767
- Parameters.scope,
2768
- Parameters.deploymentName
2769
- ],
2770
- headerParameters: [Parameters.accept],
2771
- serializer
2772
- };
2773
- const createOrUpdateAtScopeOperationSpec: coreClient.OperationSpec = {
2774
- path: "/{scope}/providers/Microsoft.Resources/deployments/{deploymentName}",
2775
- httpMethod: "PUT",
2776
- responses: {
2777
- 200: {
2778
- bodyMapper: Mappers.DeploymentExtended
2779
- },
2780
- 201: {
2781
- bodyMapper: Mappers.DeploymentExtended
2782
- },
2783
- 202: {
2784
- bodyMapper: Mappers.DeploymentExtended
2785
- },
2786
- 204: {
2787
- bodyMapper: Mappers.DeploymentExtended
2788
- },
2789
- default: {
2790
- bodyMapper: Mappers.CloudError
2791
- }
2792
- },
2793
- requestBody: Parameters.parameters,
2794
- queryParameters: [Parameters.apiVersion],
2795
- urlParameters: [
2796
- Parameters.$host,
2797
- Parameters.scope,
2798
- Parameters.deploymentName
2799
- ],
2800
- headerParameters: [Parameters.accept, Parameters.contentType],
2801
- mediaType: "json",
2802
- serializer
2803
- };
2804
- const getAtScopeOperationSpec: coreClient.OperationSpec = {
2805
- path: "/{scope}/providers/Microsoft.Resources/deployments/{deploymentName}",
2806
- httpMethod: "GET",
2807
- responses: {
2808
- 200: {
2809
- bodyMapper: Mappers.DeploymentExtended
2810
- },
2811
- default: {
2812
- bodyMapper: Mappers.CloudError
2813
- }
2814
- },
2815
- queryParameters: [Parameters.apiVersion],
2816
- urlParameters: [
2817
- Parameters.$host,
2818
- Parameters.scope,
2819
- Parameters.deploymentName
2820
- ],
2821
- headerParameters: [Parameters.accept],
2822
- serializer
2823
- };
2824
- const cancelAtScopeOperationSpec: coreClient.OperationSpec = {
2825
- path:
2826
- "/{scope}/providers/Microsoft.Resources/deployments/{deploymentName}/cancel",
2827
- httpMethod: "POST",
2828
- responses: {
2829
- 204: {},
2830
- default: {
2831
- bodyMapper: Mappers.CloudError
2832
- }
2833
- },
2834
- queryParameters: [Parameters.apiVersion],
2835
- urlParameters: [
2836
- Parameters.$host,
2837
- Parameters.scope,
2838
- Parameters.deploymentName
2839
- ],
2840
- headerParameters: [Parameters.accept],
2841
- serializer
2842
- };
2843
- const validateAtScopeOperationSpec: coreClient.OperationSpec = {
2844
- path:
2845
- "/{scope}/providers/Microsoft.Resources/deployments/{deploymentName}/validate",
2846
- httpMethod: "POST",
2847
- responses: {
2848
- 200: {
2849
- bodyMapper: Mappers.DeploymentValidateResult
2850
- },
2851
- 201: {
2852
- bodyMapper: Mappers.DeploymentValidateResult
2853
- },
2854
- 202: {
2855
- bodyMapper: Mappers.DeploymentValidateResult
2856
- },
2857
- 204: {
2858
- bodyMapper: Mappers.DeploymentValidateResult
2859
- },
2860
- default: {
2861
- bodyMapper: Mappers.CloudError
2862
- }
2863
- },
2864
- requestBody: Parameters.parameters,
2865
- queryParameters: [Parameters.apiVersion],
2866
- urlParameters: [
2867
- Parameters.$host,
2868
- Parameters.scope,
2869
- Parameters.deploymentName
2870
- ],
2871
- headerParameters: [Parameters.accept, Parameters.contentType],
2872
- mediaType: "json",
2873
- serializer
2874
- };
2875
- const exportTemplateAtScopeOperationSpec: coreClient.OperationSpec = {
2876
- path:
2877
- "/{scope}/providers/Microsoft.Resources/deployments/{deploymentName}/exportTemplate",
2878
- httpMethod: "POST",
2879
- responses: {
2880
- 200: {
2881
- bodyMapper: Mappers.DeploymentExportResult
2882
- },
2883
- default: {
2884
- bodyMapper: Mappers.CloudError
2885
- }
2886
- },
2887
- queryParameters: [Parameters.apiVersion],
2888
- urlParameters: [
2889
- Parameters.$host,
2890
- Parameters.scope,
2891
- Parameters.deploymentName
2892
- ],
2893
- headerParameters: [Parameters.accept],
2894
- serializer
2895
- };
2896
- const listAtScopeOperationSpec: coreClient.OperationSpec = {
2897
- path: "/{scope}/providers/Microsoft.Resources/deployments/",
2898
- httpMethod: "GET",
2899
- responses: {
2900
- 200: {
2901
- bodyMapper: Mappers.DeploymentListResult
2902
- },
2903
- default: {
2904
- bodyMapper: Mappers.CloudError
2905
- }
2906
- },
2907
- queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
2908
- urlParameters: [Parameters.$host, Parameters.scope],
2909
- headerParameters: [Parameters.accept],
2910
- serializer
2911
- };
2912
- const deleteAtTenantScopeOperationSpec: coreClient.OperationSpec = {
2913
- path: "/providers/Microsoft.Resources/deployments/{deploymentName}",
2914
- httpMethod: "DELETE",
2915
- responses: {
2916
- 200: {},
2917
- 201: {},
2918
- 202: {},
2919
- 204: {},
2920
- default: {
2921
- bodyMapper: Mappers.CloudError
2922
- }
2923
- },
2924
- queryParameters: [Parameters.apiVersion],
2925
- urlParameters: [Parameters.$host, Parameters.deploymentName],
2926
- headerParameters: [Parameters.accept],
2927
- serializer
2928
- };
2929
- const checkExistenceAtTenantScopeOperationSpec: coreClient.OperationSpec = {
2930
- path: "/providers/Microsoft.Resources/deployments/{deploymentName}",
2931
- httpMethod: "HEAD",
2932
- responses: {
2933
- 204: {},
2934
- 404: {},
2935
- default: {
2936
- bodyMapper: Mappers.CloudError
2937
- }
2938
- },
2939
- queryParameters: [Parameters.apiVersion],
2940
- urlParameters: [Parameters.$host, Parameters.deploymentName],
2941
- headerParameters: [Parameters.accept],
2942
- serializer
2943
- };
2944
- const createOrUpdateAtTenantScopeOperationSpec: coreClient.OperationSpec = {
2945
- path: "/providers/Microsoft.Resources/deployments/{deploymentName}",
2946
- httpMethod: "PUT",
2947
- responses: {
2948
- 200: {
2949
- bodyMapper: Mappers.DeploymentExtended
2950
- },
2951
- 201: {
2952
- bodyMapper: Mappers.DeploymentExtended
2953
- },
2954
- 202: {
2955
- bodyMapper: Mappers.DeploymentExtended
2956
- },
2957
- 204: {
2958
- bodyMapper: Mappers.DeploymentExtended
2959
- },
2960
- default: {
2961
- bodyMapper: Mappers.CloudError
2962
- }
2963
- },
2964
- requestBody: Parameters.parameters1,
2965
- queryParameters: [Parameters.apiVersion],
2966
- urlParameters: [Parameters.$host, Parameters.deploymentName],
2967
- headerParameters: [Parameters.accept, Parameters.contentType],
2968
- mediaType: "json",
2969
- serializer
2970
- };
2971
- const getAtTenantScopeOperationSpec: coreClient.OperationSpec = {
2972
- path: "/providers/Microsoft.Resources/deployments/{deploymentName}",
2973
- httpMethod: "GET",
2974
- responses: {
2975
- 200: {
2976
- bodyMapper: Mappers.DeploymentExtended
2977
- },
2978
- default: {
2979
- bodyMapper: Mappers.CloudError
2980
- }
2981
- },
2982
- queryParameters: [Parameters.apiVersion],
2983
- urlParameters: [Parameters.$host, Parameters.deploymentName],
2984
- headerParameters: [Parameters.accept],
2985
- serializer
2986
- };
2987
- const cancelAtTenantScopeOperationSpec: coreClient.OperationSpec = {
2988
- path: "/providers/Microsoft.Resources/deployments/{deploymentName}/cancel",
2989
- httpMethod: "POST",
2990
- responses: {
2991
- 204: {},
2992
- default: {
2993
- bodyMapper: Mappers.CloudError
2994
- }
2995
- },
2996
- queryParameters: [Parameters.apiVersion],
2997
- urlParameters: [Parameters.$host, Parameters.deploymentName],
2998
- headerParameters: [Parameters.accept],
2999
- serializer
3000
- };
3001
- const validateAtTenantScopeOperationSpec: coreClient.OperationSpec = {
3002
- path: "/providers/Microsoft.Resources/deployments/{deploymentName}/validate",
3003
- httpMethod: "POST",
3004
- responses: {
3005
- 200: {
3006
- bodyMapper: Mappers.DeploymentValidateResult
3007
- },
3008
- 201: {
3009
- bodyMapper: Mappers.DeploymentValidateResult
3010
- },
3011
- 202: {
3012
- bodyMapper: Mappers.DeploymentValidateResult
3013
- },
3014
- 204: {
3015
- bodyMapper: Mappers.DeploymentValidateResult
3016
- },
3017
- default: {
3018
- bodyMapper: Mappers.CloudError
3019
- }
3020
- },
3021
- requestBody: Parameters.parameters1,
3022
- queryParameters: [Parameters.apiVersion],
3023
- urlParameters: [Parameters.$host, Parameters.deploymentName],
3024
- headerParameters: [Parameters.accept, Parameters.contentType],
3025
- mediaType: "json",
3026
- serializer
3027
- };
3028
- const whatIfAtTenantScopeOperationSpec: coreClient.OperationSpec = {
3029
- path: "/providers/Microsoft.Resources/deployments/{deploymentName}/whatIf",
3030
- httpMethod: "POST",
3031
- responses: {
3032
- 200: {
3033
- bodyMapper: Mappers.WhatIfOperationResult
3034
- },
3035
- 201: {
3036
- bodyMapper: Mappers.WhatIfOperationResult
3037
- },
3038
- 202: {
3039
- bodyMapper: Mappers.WhatIfOperationResult
3040
- },
3041
- 204: {
3042
- bodyMapper: Mappers.WhatIfOperationResult
3043
- },
3044
- default: {
3045
- bodyMapper: Mappers.CloudError
3046
- }
3047
- },
3048
- requestBody: Parameters.parameters2,
3049
- queryParameters: [Parameters.apiVersion],
3050
- urlParameters: [Parameters.$host, Parameters.deploymentName],
3051
- headerParameters: [Parameters.accept, Parameters.contentType],
3052
- mediaType: "json",
3053
- serializer
3054
- };
3055
- const exportTemplateAtTenantScopeOperationSpec: coreClient.OperationSpec = {
3056
- path:
3057
- "/providers/Microsoft.Resources/deployments/{deploymentName}/exportTemplate",
3058
- httpMethod: "POST",
3059
- responses: {
3060
- 200: {
3061
- bodyMapper: Mappers.DeploymentExportResult
3062
- },
3063
- default: {
3064
- bodyMapper: Mappers.CloudError
3065
- }
3066
- },
3067
- queryParameters: [Parameters.apiVersion],
3068
- urlParameters: [Parameters.$host, Parameters.deploymentName],
3069
- headerParameters: [Parameters.accept],
3070
- serializer
3071
- };
3072
- const listAtTenantScopeOperationSpec: coreClient.OperationSpec = {
3073
- path: "/providers/Microsoft.Resources/deployments/",
3074
- httpMethod: "GET",
3075
- responses: {
3076
- 200: {
3077
- bodyMapper: Mappers.DeploymentListResult
3078
- },
3079
- default: {
3080
- bodyMapper: Mappers.CloudError
3081
- }
3082
- },
3083
- queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
3084
- urlParameters: [Parameters.$host],
3085
- headerParameters: [Parameters.accept],
3086
- serializer
3087
- };
3088
- const deleteAtManagementGroupScopeOperationSpec: coreClient.OperationSpec = {
3089
- path:
3090
- "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}",
3091
- httpMethod: "DELETE",
3092
- responses: {
3093
- 200: {},
3094
- 201: {},
3095
- 202: {},
3096
- 204: {},
3097
- default: {
3098
- bodyMapper: Mappers.CloudError
3099
- }
3100
- },
3101
- queryParameters: [Parameters.apiVersion],
3102
- urlParameters: [
3103
- Parameters.$host,
3104
- Parameters.deploymentName,
3105
- Parameters.groupId
3106
- ],
3107
- headerParameters: [Parameters.accept],
3108
- serializer
3109
- };
3110
- const checkExistenceAtManagementGroupScopeOperationSpec: coreClient.OperationSpec = {
3111
- path:
3112
- "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}",
3113
- httpMethod: "HEAD",
3114
- responses: {
3115
- 204: {},
3116
- 404: {},
3117
- default: {
3118
- bodyMapper: Mappers.CloudError
3119
- }
3120
- },
3121
- queryParameters: [Parameters.apiVersion],
3122
- urlParameters: [
3123
- Parameters.$host,
3124
- Parameters.deploymentName,
3125
- Parameters.groupId
3126
- ],
3127
- headerParameters: [Parameters.accept],
3128
- serializer
3129
- };
3130
- const createOrUpdateAtManagementGroupScopeOperationSpec: coreClient.OperationSpec = {
3131
- path:
3132
- "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}",
3133
- httpMethod: "PUT",
3134
- responses: {
3135
- 200: {
3136
- bodyMapper: Mappers.DeploymentExtended
3137
- },
3138
- 201: {
3139
- bodyMapper: Mappers.DeploymentExtended
3140
- },
3141
- 202: {
3142
- bodyMapper: Mappers.DeploymentExtended
3143
- },
3144
- 204: {
3145
- bodyMapper: Mappers.DeploymentExtended
3146
- },
3147
- default: {
3148
- bodyMapper: Mappers.CloudError
3149
- }
3150
- },
3151
- requestBody: Parameters.parameters1,
3152
- queryParameters: [Parameters.apiVersion],
3153
- urlParameters: [
3154
- Parameters.$host,
3155
- Parameters.deploymentName,
3156
- Parameters.groupId
3157
- ],
3158
- headerParameters: [Parameters.accept, Parameters.contentType],
3159
- mediaType: "json",
3160
- serializer
3161
- };
3162
- const getAtManagementGroupScopeOperationSpec: coreClient.OperationSpec = {
3163
- path:
3164
- "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}",
3165
- httpMethod: "GET",
3166
- responses: {
3167
- 200: {
3168
- bodyMapper: Mappers.DeploymentExtended
3169
- },
3170
- default: {
3171
- bodyMapper: Mappers.CloudError
3172
- }
3173
- },
3174
- queryParameters: [Parameters.apiVersion],
3175
- urlParameters: [
3176
- Parameters.$host,
3177
- Parameters.deploymentName,
3178
- Parameters.groupId
3179
- ],
3180
- headerParameters: [Parameters.accept],
3181
- serializer
3182
- };
3183
- const cancelAtManagementGroupScopeOperationSpec: coreClient.OperationSpec = {
3184
- path:
3185
- "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/cancel",
3186
- httpMethod: "POST",
3187
- responses: {
3188
- 204: {},
3189
- default: {
3190
- bodyMapper: Mappers.CloudError
3191
- }
3192
- },
3193
- queryParameters: [Parameters.apiVersion],
3194
- urlParameters: [
3195
- Parameters.$host,
3196
- Parameters.deploymentName,
3197
- Parameters.groupId
3198
- ],
3199
- headerParameters: [Parameters.accept],
3200
- serializer
3201
- };
3202
- const validateAtManagementGroupScopeOperationSpec: coreClient.OperationSpec = {
3203
- path:
3204
- "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/validate",
3205
- httpMethod: "POST",
3206
- responses: {
3207
- 200: {
3208
- bodyMapper: Mappers.DeploymentValidateResult
3209
- },
3210
- 201: {
3211
- bodyMapper: Mappers.DeploymentValidateResult
3212
- },
3213
- 202: {
3214
- bodyMapper: Mappers.DeploymentValidateResult
3215
- },
3216
- 204: {
3217
- bodyMapper: Mappers.DeploymentValidateResult
3218
- },
3219
- default: {
3220
- bodyMapper: Mappers.CloudError
3221
- }
3222
- },
3223
- requestBody: Parameters.parameters1,
3224
- queryParameters: [Parameters.apiVersion],
3225
- urlParameters: [
3226
- Parameters.$host,
3227
- Parameters.deploymentName,
3228
- Parameters.groupId
3229
- ],
3230
- headerParameters: [Parameters.accept, Parameters.contentType],
3231
- mediaType: "json",
3232
- serializer
3233
- };
3234
- const whatIfAtManagementGroupScopeOperationSpec: coreClient.OperationSpec = {
3235
- path:
3236
- "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/whatIf",
3237
- httpMethod: "POST",
3238
- responses: {
3239
- 200: {
3240
- bodyMapper: Mappers.WhatIfOperationResult
3241
- },
3242
- 201: {
3243
- bodyMapper: Mappers.WhatIfOperationResult
3244
- },
3245
- 202: {
3246
- bodyMapper: Mappers.WhatIfOperationResult
3247
- },
3248
- 204: {
3249
- bodyMapper: Mappers.WhatIfOperationResult
3250
- },
3251
- default: {
3252
- bodyMapper: Mappers.CloudError
3253
- }
3254
- },
3255
- requestBody: Parameters.parameters2,
3256
- queryParameters: [Parameters.apiVersion],
3257
- urlParameters: [
3258
- Parameters.$host,
3259
- Parameters.deploymentName,
3260
- Parameters.groupId
3261
- ],
3262
- headerParameters: [Parameters.accept, Parameters.contentType],
3263
- mediaType: "json",
3264
- serializer
3265
- };
3266
- const exportTemplateAtManagementGroupScopeOperationSpec: coreClient.OperationSpec = {
3267
- path:
3268
- "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/exportTemplate",
3269
- httpMethod: "POST",
3270
- responses: {
3271
- 200: {
3272
- bodyMapper: Mappers.DeploymentExportResult
3273
- },
3274
- default: {
3275
- bodyMapper: Mappers.CloudError
3276
- }
3277
- },
3278
- queryParameters: [Parameters.apiVersion],
3279
- urlParameters: [
3280
- Parameters.$host,
3281
- Parameters.deploymentName,
3282
- Parameters.groupId
3283
- ],
3284
- headerParameters: [Parameters.accept],
3285
- serializer
3286
- };
3287
- const listAtManagementGroupScopeOperationSpec: coreClient.OperationSpec = {
3288
- path:
3289
- "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/",
3290
- httpMethod: "GET",
3291
- responses: {
3292
- 200: {
3293
- bodyMapper: Mappers.DeploymentListResult
3294
- },
3295
- default: {
3296
- bodyMapper: Mappers.CloudError
3297
- }
3298
- },
3299
- queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
3300
- urlParameters: [Parameters.$host, Parameters.groupId],
3301
- headerParameters: [Parameters.accept],
3302
- serializer
3303
- };
3304
- const deleteAtSubscriptionScopeOperationSpec: coreClient.OperationSpec = {
3305
- path:
3306
- "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}",
3307
- httpMethod: "DELETE",
3308
- responses: {
3309
- 200: {},
3310
- 201: {},
3311
- 202: {},
3312
- 204: {},
3313
- default: {
3314
- bodyMapper: Mappers.CloudError
3315
- }
3316
- },
3317
- queryParameters: [Parameters.apiVersion],
3318
- urlParameters: [
3319
- Parameters.$host,
3320
- Parameters.deploymentName,
3321
- Parameters.subscriptionId
3322
- ],
3323
- headerParameters: [Parameters.accept],
3324
- serializer
3325
- };
3326
- const checkExistenceAtSubscriptionScopeOperationSpec: coreClient.OperationSpec = {
3327
- path:
3328
- "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}",
3329
- httpMethod: "HEAD",
3330
- responses: {
3331
- 204: {},
3332
- 404: {},
3333
- default: {
3334
- bodyMapper: Mappers.CloudError
3335
- }
3336
- },
3337
- queryParameters: [Parameters.apiVersion],
3338
- urlParameters: [
3339
- Parameters.$host,
3340
- Parameters.deploymentName,
3341
- Parameters.subscriptionId
3342
- ],
3343
- headerParameters: [Parameters.accept],
3344
- serializer
3345
- };
3346
- const createOrUpdateAtSubscriptionScopeOperationSpec: coreClient.OperationSpec = {
3347
- path:
3348
- "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}",
3349
- httpMethod: "PUT",
3350
- responses: {
3351
- 200: {
3352
- bodyMapper: Mappers.DeploymentExtended
3353
- },
3354
- 201: {
3355
- bodyMapper: Mappers.DeploymentExtended
3356
- },
3357
- 202: {
3358
- bodyMapper: Mappers.DeploymentExtended
3359
- },
3360
- 204: {
3361
- bodyMapper: Mappers.DeploymentExtended
3362
- },
3363
- default: {
3364
- bodyMapper: Mappers.CloudError
3365
- }
3366
- },
3367
- requestBody: Parameters.parameters,
3368
- queryParameters: [Parameters.apiVersion],
3369
- urlParameters: [
3370
- Parameters.$host,
3371
- Parameters.deploymentName,
3372
- Parameters.subscriptionId
3373
- ],
3374
- headerParameters: [Parameters.accept, Parameters.contentType],
3375
- mediaType: "json",
3376
- serializer
3377
- };
3378
- const getAtSubscriptionScopeOperationSpec: coreClient.OperationSpec = {
3379
- path:
3380
- "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}",
3381
- httpMethod: "GET",
3382
- responses: {
3383
- 200: {
3384
- bodyMapper: Mappers.DeploymentExtended
3385
- },
3386
- default: {
3387
- bodyMapper: Mappers.CloudError
3388
- }
3389
- },
3390
- queryParameters: [Parameters.apiVersion],
3391
- urlParameters: [
3392
- Parameters.$host,
3393
- Parameters.deploymentName,
3394
- Parameters.subscriptionId
3395
- ],
3396
- headerParameters: [Parameters.accept],
3397
- serializer
3398
- };
3399
- const cancelAtSubscriptionScopeOperationSpec: coreClient.OperationSpec = {
3400
- path:
3401
- "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/cancel",
3402
- httpMethod: "POST",
3403
- responses: {
3404
- 204: {},
3405
- default: {
3406
- bodyMapper: Mappers.CloudError
3407
- }
3408
- },
3409
- queryParameters: [Parameters.apiVersion],
3410
- urlParameters: [
3411
- Parameters.$host,
3412
- Parameters.deploymentName,
3413
- Parameters.subscriptionId
3414
- ],
3415
- headerParameters: [Parameters.accept],
3416
- serializer
3417
- };
3418
- const validateAtSubscriptionScopeOperationSpec: coreClient.OperationSpec = {
3419
- path:
3420
- "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/validate",
3421
- httpMethod: "POST",
3422
- responses: {
3423
- 200: {
3424
- bodyMapper: Mappers.DeploymentValidateResult
3425
- },
3426
- 201: {
3427
- bodyMapper: Mappers.DeploymentValidateResult
3428
- },
3429
- 202: {
3430
- bodyMapper: Mappers.DeploymentValidateResult
3431
- },
3432
- 204: {
3433
- bodyMapper: Mappers.DeploymentValidateResult
3434
- },
3435
- default: {
3436
- bodyMapper: Mappers.CloudError
3437
- }
3438
- },
3439
- requestBody: Parameters.parameters,
3440
- queryParameters: [Parameters.apiVersion],
3441
- urlParameters: [
3442
- Parameters.$host,
3443
- Parameters.deploymentName,
3444
- Parameters.subscriptionId
3445
- ],
3446
- headerParameters: [Parameters.accept, Parameters.contentType],
3447
- mediaType: "json",
3448
- serializer
3449
- };
3450
- const whatIfAtSubscriptionScopeOperationSpec: coreClient.OperationSpec = {
3451
- path:
3452
- "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/whatIf",
3453
- httpMethod: "POST",
3454
- responses: {
3455
- 200: {
3456
- bodyMapper: Mappers.WhatIfOperationResult
3457
- },
3458
- 201: {
3459
- bodyMapper: Mappers.WhatIfOperationResult
3460
- },
3461
- 202: {
3462
- bodyMapper: Mappers.WhatIfOperationResult
3463
- },
3464
- 204: {
3465
- bodyMapper: Mappers.WhatIfOperationResult
3466
- },
3467
- default: {
3468
- bodyMapper: Mappers.CloudError
3469
- }
3470
- },
3471
- requestBody: Parameters.parameters3,
3472
- queryParameters: [Parameters.apiVersion],
3473
- urlParameters: [
3474
- Parameters.$host,
3475
- Parameters.deploymentName,
3476
- Parameters.subscriptionId
3477
- ],
3478
- headerParameters: [Parameters.accept, Parameters.contentType],
3479
- mediaType: "json",
3480
- serializer
3481
- };
3482
- const exportTemplateAtSubscriptionScopeOperationSpec: coreClient.OperationSpec = {
3483
- path:
3484
- "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/exportTemplate",
3485
- httpMethod: "POST",
3486
- responses: {
3487
- 200: {
3488
- bodyMapper: Mappers.DeploymentExportResult
3489
- },
3490
- default: {
3491
- bodyMapper: Mappers.CloudError
3492
- }
3493
- },
3494
- queryParameters: [Parameters.apiVersion],
3495
- urlParameters: [
3496
- Parameters.$host,
3497
- Parameters.deploymentName,
3498
- Parameters.subscriptionId
3499
- ],
3500
- headerParameters: [Parameters.accept],
3501
- serializer
3502
- };
3503
- const listAtSubscriptionScopeOperationSpec: coreClient.OperationSpec = {
3504
- path:
3505
- "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/",
3506
- httpMethod: "GET",
3507
- responses: {
3508
- 200: {
3509
- bodyMapper: Mappers.DeploymentListResult
3510
- },
3511
- default: {
3512
- bodyMapper: Mappers.CloudError
3513
- }
3514
- },
3515
- queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
3516
- urlParameters: [Parameters.$host, Parameters.subscriptionId],
3517
- headerParameters: [Parameters.accept],
3518
- serializer
3519
- };
3520
- const deleteOperationSpec: coreClient.OperationSpec = {
3521
- path:
3522
- "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}",
3523
- httpMethod: "DELETE",
3524
- responses: {
3525
- 200: {},
3526
- 201: {},
3527
- 202: {},
3528
- 204: {},
3529
- default: {
3530
- bodyMapper: Mappers.CloudError
3531
- }
3532
- },
3533
- queryParameters: [Parameters.apiVersion],
3534
- urlParameters: [
3535
- Parameters.$host,
3536
- Parameters.deploymentName,
3537
- Parameters.subscriptionId,
3538
- Parameters.resourceGroupName
3539
- ],
3540
- headerParameters: [Parameters.accept],
3541
- serializer
3542
- };
3543
- const checkExistenceOperationSpec: coreClient.OperationSpec = {
3544
- path:
3545
- "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}",
3546
- httpMethod: "HEAD",
3547
- responses: {
3548
- 204: {},
3549
- 404: {},
3550
- default: {
3551
- bodyMapper: Mappers.CloudError
3552
- }
3553
- },
3554
- queryParameters: [Parameters.apiVersion],
3555
- urlParameters: [
3556
- Parameters.$host,
3557
- Parameters.deploymentName,
3558
- Parameters.subscriptionId,
3559
- Parameters.resourceGroupName
3560
- ],
3561
- headerParameters: [Parameters.accept],
3562
- serializer
3563
- };
3564
- const createOrUpdateOperationSpec: coreClient.OperationSpec = {
3565
- path:
3566
- "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}",
3567
- httpMethod: "PUT",
3568
- responses: {
3569
- 200: {
3570
- bodyMapper: Mappers.DeploymentExtended
3571
- },
3572
- 201: {
3573
- bodyMapper: Mappers.DeploymentExtended
3574
- },
3575
- 202: {
3576
- bodyMapper: Mappers.DeploymentExtended
3577
- },
3578
- 204: {
3579
- bodyMapper: Mappers.DeploymentExtended
3580
- },
3581
- default: {
3582
- bodyMapper: Mappers.CloudError
3583
- }
3584
- },
3585
- requestBody: Parameters.parameters,
3586
- queryParameters: [Parameters.apiVersion],
3587
- urlParameters: [
3588
- Parameters.$host,
3589
- Parameters.deploymentName,
3590
- Parameters.subscriptionId,
3591
- Parameters.resourceGroupName
3592
- ],
3593
- headerParameters: [Parameters.accept, Parameters.contentType],
3594
- mediaType: "json",
3595
- serializer
3596
- };
3597
- const getOperationSpec: coreClient.OperationSpec = {
3598
- path:
3599
- "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}",
3600
- httpMethod: "GET",
3601
- responses: {
3602
- 200: {
3603
- bodyMapper: Mappers.DeploymentExtended
3604
- },
3605
- default: {
3606
- bodyMapper: Mappers.CloudError
3607
- }
3608
- },
3609
- queryParameters: [Parameters.apiVersion],
3610
- urlParameters: [
3611
- Parameters.$host,
3612
- Parameters.deploymentName,
3613
- Parameters.subscriptionId,
3614
- Parameters.resourceGroupName
3615
- ],
3616
- headerParameters: [Parameters.accept],
3617
- serializer
3618
- };
3619
- const cancelOperationSpec: coreClient.OperationSpec = {
3620
- path:
3621
- "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/cancel",
3622
- httpMethod: "POST",
3623
- responses: {
3624
- 204: {},
3625
- default: {
3626
- bodyMapper: Mappers.CloudError
3627
- }
3628
- },
3629
- queryParameters: [Parameters.apiVersion],
3630
- urlParameters: [
3631
- Parameters.$host,
3632
- Parameters.deploymentName,
3633
- Parameters.subscriptionId,
3634
- Parameters.resourceGroupName
3635
- ],
3636
- headerParameters: [Parameters.accept],
3637
- serializer
3638
- };
3639
- const validateOperationSpec: coreClient.OperationSpec = {
3640
- path:
3641
- "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/validate",
3642
- httpMethod: "POST",
3643
- responses: {
3644
- 200: {
3645
- bodyMapper: Mappers.DeploymentValidateResult
3646
- },
3647
- 201: {
3648
- bodyMapper: Mappers.DeploymentValidateResult
3649
- },
3650
- 202: {
3651
- bodyMapper: Mappers.DeploymentValidateResult
3652
- },
3653
- 204: {
3654
- bodyMapper: Mappers.DeploymentValidateResult
3655
- },
3656
- default: {
3657
- bodyMapper: Mappers.CloudError
3658
- }
3659
- },
3660
- requestBody: Parameters.parameters,
3661
- queryParameters: [Parameters.apiVersion],
3662
- urlParameters: [
3663
- Parameters.$host,
3664
- Parameters.deploymentName,
3665
- Parameters.subscriptionId,
3666
- Parameters.resourceGroupName
3667
- ],
3668
- headerParameters: [Parameters.accept, Parameters.contentType],
3669
- mediaType: "json",
3670
- serializer
3671
- };
3672
- const whatIfOperationSpec: coreClient.OperationSpec = {
3673
- path:
3674
- "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/whatIf",
3675
- httpMethod: "POST",
3676
- responses: {
3677
- 200: {
3678
- bodyMapper: Mappers.WhatIfOperationResult
3679
- },
3680
- 201: {
3681
- bodyMapper: Mappers.WhatIfOperationResult
3682
- },
3683
- 202: {
3684
- bodyMapper: Mappers.WhatIfOperationResult
3685
- },
3686
- 204: {
3687
- bodyMapper: Mappers.WhatIfOperationResult
3688
- },
3689
- default: {
3690
- bodyMapper: Mappers.CloudError
3691
- }
3692
- },
3693
- requestBody: Parameters.parameters3,
3694
- queryParameters: [Parameters.apiVersion],
3695
- urlParameters: [
3696
- Parameters.$host,
3697
- Parameters.deploymentName,
3698
- Parameters.subscriptionId,
3699
- Parameters.resourceGroupName
3700
- ],
3701
- headerParameters: [Parameters.accept, Parameters.contentType],
3702
- mediaType: "json",
3703
- serializer
3704
- };
3705
- const exportTemplateOperationSpec: coreClient.OperationSpec = {
3706
- path:
3707
- "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/exportTemplate",
3708
- httpMethod: "POST",
3709
- responses: {
3710
- 200: {
3711
- bodyMapper: Mappers.DeploymentExportResult
3712
- },
3713
- default: {
3714
- bodyMapper: Mappers.CloudError
3715
- }
3716
- },
3717
- queryParameters: [Parameters.apiVersion],
3718
- urlParameters: [
3719
- Parameters.$host,
3720
- Parameters.deploymentName,
3721
- Parameters.subscriptionId,
3722
- Parameters.resourceGroupName
3723
- ],
3724
- headerParameters: [Parameters.accept],
3725
- serializer
3726
- };
3727
- const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
3728
- path:
3729
- "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/",
3730
- httpMethod: "GET",
3731
- responses: {
3732
- 200: {
3733
- bodyMapper: Mappers.DeploymentListResult
3734
- },
3735
- default: {
3736
- bodyMapper: Mappers.CloudError
3737
- }
3738
- },
3739
- queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
3740
- urlParameters: [
3741
- Parameters.$host,
3742
- Parameters.subscriptionId,
3743
- Parameters.resourceGroupName
3744
- ],
3745
- headerParameters: [Parameters.accept],
3746
- serializer
3747
- };
3748
- const calculateTemplateHashOperationSpec: coreClient.OperationSpec = {
3749
- path: "/providers/Microsoft.Resources/calculateTemplateHash",
3750
- httpMethod: "POST",
3751
- responses: {
3752
- 200: {
3753
- bodyMapper: Mappers.TemplateHashResult
3754
- },
3755
- default: {
3756
- bodyMapper: Mappers.CloudError
3757
- }
3758
- },
3759
- requestBody: Parameters.template,
3760
- queryParameters: [Parameters.apiVersion],
3761
- urlParameters: [Parameters.$host],
3762
- headerParameters: [Parameters.accept, Parameters.contentType],
3763
- mediaType: "json",
3764
- serializer
3765
- };
3766
- const listAtScopeNextOperationSpec: coreClient.OperationSpec = {
3767
- path: "{nextLink}",
3768
- httpMethod: "GET",
3769
- responses: {
3770
- 200: {
3771
- bodyMapper: Mappers.DeploymentListResult
3772
- },
3773
- default: {
3774
- bodyMapper: Mappers.CloudError
3775
- }
3776
- },
3777
- urlParameters: [Parameters.$host, Parameters.nextLink, Parameters.scope],
3778
- headerParameters: [Parameters.accept],
3779
- serializer
3780
- };
3781
- const listAtTenantScopeNextOperationSpec: coreClient.OperationSpec = {
3782
- path: "{nextLink}",
3783
- httpMethod: "GET",
3784
- responses: {
3785
- 200: {
3786
- bodyMapper: Mappers.DeploymentListResult
3787
- },
3788
- default: {
3789
- bodyMapper: Mappers.CloudError
3790
- }
3791
- },
3792
- urlParameters: [Parameters.$host, Parameters.nextLink],
3793
- headerParameters: [Parameters.accept],
3794
- serializer
3795
- };
3796
- const listAtManagementGroupScopeNextOperationSpec: coreClient.OperationSpec = {
3797
- path: "{nextLink}",
3798
- httpMethod: "GET",
3799
- responses: {
3800
- 200: {
3801
- bodyMapper: Mappers.DeploymentListResult
3802
- },
3803
- default: {
3804
- bodyMapper: Mappers.CloudError
3805
- }
3806
- },
3807
- urlParameters: [Parameters.$host, Parameters.nextLink, Parameters.groupId],
3808
- headerParameters: [Parameters.accept],
3809
- serializer
3810
- };
3811
- const listAtSubscriptionScopeNextOperationSpec: coreClient.OperationSpec = {
3812
- path: "{nextLink}",
3813
- httpMethod: "GET",
3814
- responses: {
3815
- 200: {
3816
- bodyMapper: Mappers.DeploymentListResult
3817
- },
3818
- default: {
3819
- bodyMapper: Mappers.CloudError
3820
- }
3821
- },
3822
- urlParameters: [
3823
- Parameters.$host,
3824
- Parameters.nextLink,
3825
- Parameters.subscriptionId
3826
- ],
3827
- headerParameters: [Parameters.accept],
3828
- serializer
3829
- };
3830
- const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
3831
- path: "{nextLink}",
3832
- httpMethod: "GET",
3833
- responses: {
3834
- 200: {
3835
- bodyMapper: Mappers.DeploymentListResult
3836
- },
3837
- default: {
3838
- bodyMapper: Mappers.CloudError
3839
- }
3840
- },
3841
- urlParameters: [
3842
- Parameters.$host,
3843
- Parameters.nextLink,
3844
- Parameters.subscriptionId,
3845
- Parameters.resourceGroupName
3846
- ],
3847
- headerParameters: [Parameters.accept],
3848
- serializer
3849
- };