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