@azure/arm-sqlvirtualmachine 5.0.0-beta.8 → 5.0.0-beta.9

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 (462) hide show
  1. package/CHANGELOG.md +12 -2
  2. package/LICENSE +4 -4
  3. package/README.md +26 -17
  4. package/dist/browser/index.d.ts +5 -0
  5. package/dist/browser/index.d.ts.map +1 -0
  6. package/{dist-esm/src → dist/browser}/index.js +4 -4
  7. package/dist/browser/index.js.map +1 -0
  8. package/{dist-esm/src → dist/browser}/lroImpl.d.ts.map +1 -1
  9. package/dist/browser/lroImpl.js +18 -0
  10. package/dist/browser/lroImpl.js.map +1 -0
  11. package/dist/browser/models/index.js.map +1 -0
  12. package/{dist-esm/src → dist/browser}/models/mappers.js +91 -43
  13. package/dist/browser/models/mappers.js.map +1 -0
  14. package/{dist-esm/src → dist/browser}/models/parameters.js +1 -1
  15. package/dist/browser/models/parameters.js.map +1 -0
  16. package/{dist-esm/src → dist/browser}/operations/availabilityGroupListeners.d.ts +3 -3
  17. package/dist/browser/operations/availabilityGroupListeners.d.ts.map +1 -0
  18. package/{dist-esm/src → dist/browser}/operations/availabilityGroupListeners.js +122 -142
  19. package/dist/browser/operations/availabilityGroupListeners.js.map +1 -0
  20. package/dist/browser/operations/index.d.ts +6 -0
  21. package/{dist-esm/src → dist/browser}/operations/index.d.ts.map +1 -1
  22. package/dist/browser/operations/index.js +13 -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 +26 -48
  27. package/dist/browser/operations/operations.js.map +1 -0
  28. package/{dist-esm/src → dist/browser}/operations/sqlVirtualMachineGroups.d.ts +3 -3
  29. package/dist/browser/operations/sqlVirtualMachineGroups.d.ts.map +1 -0
  30. package/{dist-esm/src → dist/browser}/operations/sqlVirtualMachineGroups.js +185 -226
  31. package/dist/browser/operations/sqlVirtualMachineGroups.js.map +1 -0
  32. package/{dist-esm/src → dist/browser}/operations/sqlVirtualMachineTroubleshoot.d.ts +3 -3
  33. package/dist/browser/operations/sqlVirtualMachineTroubleshoot.d.ts.map +1 -0
  34. package/{dist-esm/src → dist/browser}/operations/sqlVirtualMachineTroubleshoot.js +46 -45
  35. package/dist/browser/operations/sqlVirtualMachineTroubleshoot.js.map +1 -0
  36. package/{dist-esm/src → dist/browser}/operations/sqlVirtualMachines.d.ts +3 -3
  37. package/dist/browser/operations/sqlVirtualMachines.d.ts.map +1 -0
  38. package/{dist-esm/src → dist/browser}/operations/sqlVirtualMachines.js +281 -342
  39. package/dist/browser/operations/sqlVirtualMachines.js.map +1 -0
  40. package/{dist-esm/src → dist/browser}/operationsInterfaces/availabilityGroupListeners.d.ts +1 -1
  41. package/dist/browser/operationsInterfaces/availabilityGroupListeners.d.ts.map +1 -0
  42. package/dist/browser/operationsInterfaces/availabilityGroupListeners.js.map +1 -0
  43. package/dist/browser/operationsInterfaces/index.d.ts +6 -0
  44. package/{dist-esm/src → dist/browser}/operationsInterfaces/index.d.ts.map +1 -1
  45. package/dist/browser/operationsInterfaces/index.js +13 -0
  46. package/dist/browser/operationsInterfaces/index.js.map +1 -0
  47. package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts +1 -1
  48. package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts.map +1 -1
  49. package/dist/browser/operationsInterfaces/operations.js.map +1 -0
  50. package/{dist-esm/src → dist/browser}/operationsInterfaces/sqlVirtualMachineGroups.d.ts +1 -1
  51. package/dist/browser/operationsInterfaces/sqlVirtualMachineGroups.d.ts.map +1 -0
  52. package/dist/browser/operationsInterfaces/sqlVirtualMachineGroups.js.map +1 -0
  53. package/{dist-esm/src → dist/browser}/operationsInterfaces/sqlVirtualMachineTroubleshoot.d.ts +1 -1
  54. package/dist/browser/operationsInterfaces/sqlVirtualMachineTroubleshoot.d.ts.map +1 -0
  55. package/dist/browser/operationsInterfaces/sqlVirtualMachineTroubleshoot.js.map +1 -0
  56. package/{dist-esm/src → dist/browser}/operationsInterfaces/sqlVirtualMachines.d.ts +1 -1
  57. package/dist/browser/operationsInterfaces/sqlVirtualMachines.d.ts.map +1 -0
  58. package/dist/browser/operationsInterfaces/sqlVirtualMachines.js.map +1 -0
  59. package/dist/browser/package.json +3 -0
  60. package/{dist-esm/src → dist/browser}/pagingHelper.js +2 -4
  61. package/dist/browser/pagingHelper.js.map +1 -0
  62. package/{dist-esm/src → dist/browser}/sqlVirtualMachineManagementClient.d.ts +2 -2
  63. package/dist/browser/sqlVirtualMachineManagementClient.d.ts.map +1 -0
  64. package/{dist-esm/src → dist/browser}/sqlVirtualMachineManagementClient.js +34 -24
  65. package/dist/browser/sqlVirtualMachineManagementClient.js.map +1 -0
  66. package/dist/commonjs/index.d.ts +5 -0
  67. package/dist/commonjs/index.d.ts.map +1 -0
  68. package/dist/commonjs/index.js +19 -0
  69. package/dist/commonjs/index.js.map +1 -0
  70. package/dist/commonjs/lroImpl.d.ts +11 -0
  71. package/dist/commonjs/lroImpl.d.ts.map +1 -0
  72. package/dist/commonjs/lroImpl.js +21 -0
  73. package/dist/commonjs/lroImpl.js.map +1 -0
  74. package/{types/arm-sqlvirtualmachine.d.ts → dist/commonjs/models/index.d.ts} +1292 -1761
  75. package/dist/commonjs/models/index.d.ts.map +1 -0
  76. package/dist/commonjs/models/index.js +229 -0
  77. package/dist/commonjs/models/index.js.map +1 -0
  78. package/dist/commonjs/models/mappers.d.ts +53 -0
  79. package/dist/commonjs/models/mappers.d.ts.map +1 -0
  80. package/dist/commonjs/models/mappers.js +1757 -0
  81. package/dist/commonjs/models/mappers.js.map +1 -0
  82. package/dist/commonjs/models/parameters.d.ts +19 -0
  83. package/dist/commonjs/models/parameters.d.ts.map +1 -0
  84. package/dist/commonjs/models/parameters.js +155 -0
  85. package/dist/commonjs/models/parameters.js.map +1 -0
  86. package/dist/commonjs/operations/availabilityGroupListeners.d.ts +89 -0
  87. package/dist/commonjs/operations/availabilityGroupListeners.d.ts.map +1 -0
  88. package/dist/commonjs/operations/availabilityGroupListeners.js +372 -0
  89. package/dist/commonjs/operations/availabilityGroupListeners.js.map +1 -0
  90. package/dist/commonjs/operations/index.d.ts +6 -0
  91. package/dist/commonjs/operations/index.d.ts.map +1 -0
  92. package/dist/commonjs/operations/index.js +16 -0
  93. package/dist/commonjs/operations/index.js.map +1 -0
  94. package/dist/commonjs/operations/operations.d.ts +32 -0
  95. package/dist/commonjs/operations/operations.d.ts.map +1 -0
  96. package/dist/commonjs/operations/operations.js +121 -0
  97. package/dist/commonjs/operations/operations.js.map +1 -0
  98. package/dist/commonjs/operations/sqlVirtualMachineGroups.d.ts +117 -0
  99. package/dist/commonjs/operations/sqlVirtualMachineGroups.d.ts.map +1 -0
  100. package/dist/commonjs/operations/sqlVirtualMachineGroups.js +540 -0
  101. package/dist/commonjs/operations/sqlVirtualMachineGroups.js.map +1 -0
  102. package/dist/commonjs/operations/sqlVirtualMachineTroubleshoot.d.ts +32 -0
  103. package/dist/commonjs/operations/sqlVirtualMachineTroubleshoot.d.ts.map +1 -0
  104. package/dist/commonjs/operations/sqlVirtualMachineTroubleshoot.js +124 -0
  105. package/dist/commonjs/operations/sqlVirtualMachineTroubleshoot.js.map +1 -0
  106. package/dist/commonjs/operations/sqlVirtualMachines.d.ts +176 -0
  107. package/dist/commonjs/operations/sqlVirtualMachines.d.ts.map +1 -0
  108. package/dist/commonjs/operations/sqlVirtualMachines.js +802 -0
  109. package/dist/commonjs/operations/sqlVirtualMachines.js.map +1 -0
  110. package/dist/commonjs/operationsInterfaces/availabilityGroupListeners.d.ts +62 -0
  111. package/dist/commonjs/operationsInterfaces/availabilityGroupListeners.d.ts.map +1 -0
  112. package/dist/commonjs/operationsInterfaces/availabilityGroupListeners.js +10 -0
  113. package/dist/commonjs/operationsInterfaces/availabilityGroupListeners.js.map +1 -0
  114. package/dist/commonjs/operationsInterfaces/index.d.ts +6 -0
  115. package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
  116. package/dist/commonjs/operationsInterfaces/index.js +16 -0
  117. package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
  118. package/dist/commonjs/operationsInterfaces/operations.d.ts +11 -0
  119. package/dist/commonjs/operationsInterfaces/operations.d.ts.map +1 -0
  120. package/dist/commonjs/operationsInterfaces/operations.js +10 -0
  121. package/dist/commonjs/operationsInterfaces/operations.js.map +1 -0
  122. package/dist/commonjs/operationsInterfaces/sqlVirtualMachineGroups.d.ts +79 -0
  123. package/dist/commonjs/operationsInterfaces/sqlVirtualMachineGroups.d.ts.map +1 -0
  124. package/dist/commonjs/operationsInterfaces/sqlVirtualMachineGroups.js +10 -0
  125. package/dist/commonjs/operationsInterfaces/sqlVirtualMachineGroups.js.map +1 -0
  126. package/dist/commonjs/operationsInterfaces/sqlVirtualMachineTroubleshoot.d.ts +24 -0
  127. package/dist/commonjs/operationsInterfaces/sqlVirtualMachineTroubleshoot.d.ts.map +1 -0
  128. package/dist/commonjs/operationsInterfaces/sqlVirtualMachineTroubleshoot.js +10 -0
  129. package/dist/commonjs/operationsInterfaces/sqlVirtualMachineTroubleshoot.js.map +1 -0
  130. package/dist/commonjs/operationsInterfaces/sqlVirtualMachines.d.ts +119 -0
  131. package/dist/commonjs/operationsInterfaces/sqlVirtualMachines.d.ts.map +1 -0
  132. package/dist/commonjs/operationsInterfaces/sqlVirtualMachines.js +10 -0
  133. package/dist/commonjs/operationsInterfaces/sqlVirtualMachines.js.map +1 -0
  134. package/dist/commonjs/package.json +3 -0
  135. package/dist/commonjs/pagingHelper.d.ts +13 -0
  136. package/dist/commonjs/pagingHelper.d.ts.map +1 -0
  137. package/dist/commonjs/pagingHelper.js +34 -0
  138. package/dist/commonjs/pagingHelper.js.map +1 -0
  139. package/dist/commonjs/sqlVirtualMachineManagementClient.d.ts +24 -0
  140. package/dist/commonjs/sqlVirtualMachineManagementClient.d.ts.map +1 -0
  141. package/dist/commonjs/sqlVirtualMachineManagementClient.js +119 -0
  142. package/dist/commonjs/sqlVirtualMachineManagementClient.js.map +1 -0
  143. package/{types → dist/commonjs}/tsdoc-metadata.json +11 -11
  144. package/dist/esm/index.d.ts +5 -0
  145. package/dist/esm/index.d.ts.map +1 -0
  146. package/{src/index.ts → dist/esm/index.js} +5 -5
  147. package/dist/esm/index.js.map +1 -0
  148. package/dist/esm/lroImpl.d.ts +11 -0
  149. package/dist/esm/lroImpl.d.ts.map +1 -0
  150. package/dist/esm/lroImpl.js +18 -0
  151. package/dist/esm/lroImpl.js.map +1 -0
  152. package/dist/esm/models/index.d.ts +1292 -0
  153. package/dist/esm/models/index.d.ts.map +1 -0
  154. package/dist/esm/models/index.js +226 -0
  155. package/dist/esm/models/index.js.map +1 -0
  156. package/dist/esm/models/mappers.d.ts +53 -0
  157. package/dist/esm/models/mappers.d.ts.map +1 -0
  158. package/dist/esm/models/mappers.js +1753 -0
  159. package/dist/esm/models/mappers.js.map +1 -0
  160. package/dist/esm/models/parameters.d.ts +19 -0
  161. package/dist/esm/models/parameters.d.ts.map +1 -0
  162. package/dist/esm/models/parameters.js +152 -0
  163. package/dist/esm/models/parameters.js.map +1 -0
  164. package/dist/esm/operations/availabilityGroupListeners.d.ts +89 -0
  165. package/dist/esm/operations/availabilityGroupListeners.d.ts.map +1 -0
  166. package/dist/esm/operations/availabilityGroupListeners.js +367 -0
  167. package/dist/esm/operations/availabilityGroupListeners.js.map +1 -0
  168. package/dist/esm/operations/index.d.ts +6 -0
  169. package/dist/esm/operations/index.d.ts.map +1 -0
  170. package/dist/esm/operations/index.js +13 -0
  171. package/dist/esm/operations/index.js.map +1 -0
  172. package/dist/esm/operations/operations.d.ts +32 -0
  173. package/dist/esm/operations/operations.d.ts.map +1 -0
  174. package/dist/esm/operations/operations.js +116 -0
  175. package/dist/esm/operations/operations.js.map +1 -0
  176. package/dist/esm/operations/sqlVirtualMachineGroups.d.ts +117 -0
  177. package/dist/esm/operations/sqlVirtualMachineGroups.d.ts.map +1 -0
  178. package/dist/esm/operations/sqlVirtualMachineGroups.js +535 -0
  179. package/dist/esm/operations/sqlVirtualMachineGroups.js.map +1 -0
  180. package/dist/esm/operations/sqlVirtualMachineTroubleshoot.d.ts +32 -0
  181. package/dist/esm/operations/sqlVirtualMachineTroubleshoot.d.ts.map +1 -0
  182. package/dist/esm/operations/sqlVirtualMachineTroubleshoot.js +119 -0
  183. package/dist/esm/operations/sqlVirtualMachineTroubleshoot.js.map +1 -0
  184. package/dist/esm/operations/sqlVirtualMachines.d.ts +176 -0
  185. package/dist/esm/operations/sqlVirtualMachines.d.ts.map +1 -0
  186. package/dist/esm/operations/sqlVirtualMachines.js +797 -0
  187. package/dist/esm/operations/sqlVirtualMachines.js.map +1 -0
  188. package/dist/esm/operationsInterfaces/availabilityGroupListeners.d.ts +62 -0
  189. package/dist/esm/operationsInterfaces/availabilityGroupListeners.d.ts.map +1 -0
  190. package/dist/esm/operationsInterfaces/availabilityGroupListeners.js +9 -0
  191. package/dist/esm/operationsInterfaces/availabilityGroupListeners.js.map +1 -0
  192. package/dist/esm/operationsInterfaces/index.d.ts +6 -0
  193. package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
  194. package/dist/esm/operationsInterfaces/index.js +13 -0
  195. package/dist/esm/operationsInterfaces/index.js.map +1 -0
  196. package/dist/esm/operationsInterfaces/operations.d.ts +11 -0
  197. package/dist/esm/operationsInterfaces/operations.d.ts.map +1 -0
  198. package/dist/esm/operationsInterfaces/operations.js +9 -0
  199. package/dist/esm/operationsInterfaces/operations.js.map +1 -0
  200. package/dist/esm/operationsInterfaces/sqlVirtualMachineGroups.d.ts +79 -0
  201. package/dist/esm/operationsInterfaces/sqlVirtualMachineGroups.d.ts.map +1 -0
  202. package/dist/esm/operationsInterfaces/sqlVirtualMachineGroups.js +9 -0
  203. package/dist/esm/operationsInterfaces/sqlVirtualMachineGroups.js.map +1 -0
  204. package/dist/esm/operationsInterfaces/sqlVirtualMachineTroubleshoot.d.ts +24 -0
  205. package/dist/esm/operationsInterfaces/sqlVirtualMachineTroubleshoot.d.ts.map +1 -0
  206. package/dist/esm/operationsInterfaces/sqlVirtualMachineTroubleshoot.js +9 -0
  207. package/dist/esm/operationsInterfaces/sqlVirtualMachineTroubleshoot.js.map +1 -0
  208. package/dist/esm/operationsInterfaces/sqlVirtualMachines.d.ts +119 -0
  209. package/dist/esm/operationsInterfaces/sqlVirtualMachines.d.ts.map +1 -0
  210. package/dist/esm/operationsInterfaces/sqlVirtualMachines.js +9 -0
  211. package/dist/esm/operationsInterfaces/sqlVirtualMachines.js.map +1 -0
  212. package/dist/esm/package.json +3 -0
  213. package/dist/esm/pagingHelper.d.ts +13 -0
  214. package/dist/esm/pagingHelper.d.ts.map +1 -0
  215. package/dist/esm/pagingHelper.js +30 -0
  216. package/dist/esm/pagingHelper.js.map +1 -0
  217. package/dist/esm/sqlVirtualMachineManagementClient.d.ts +24 -0
  218. package/dist/esm/sqlVirtualMachineManagementClient.d.ts.map +1 -0
  219. package/dist/esm/sqlVirtualMachineManagementClient.js +114 -0
  220. package/dist/esm/sqlVirtualMachineManagementClient.js.map +1 -0
  221. package/dist/react-native/index.d.ts +5 -0
  222. package/dist/react-native/index.d.ts.map +1 -0
  223. package/dist/react-native/index.js +13 -0
  224. package/dist/react-native/index.js.map +1 -0
  225. package/dist/react-native/lroImpl.d.ts +11 -0
  226. package/dist/react-native/lroImpl.d.ts.map +1 -0
  227. package/dist/react-native/lroImpl.js +18 -0
  228. package/dist/react-native/lroImpl.js.map +1 -0
  229. package/dist/react-native/models/index.d.ts +1292 -0
  230. package/dist/react-native/models/index.d.ts.map +1 -0
  231. package/dist/react-native/models/index.js +226 -0
  232. package/dist/react-native/models/index.js.map +1 -0
  233. package/dist/react-native/models/mappers.d.ts +53 -0
  234. package/dist/react-native/models/mappers.d.ts.map +1 -0
  235. package/dist/react-native/models/mappers.js +1753 -0
  236. package/dist/react-native/models/mappers.js.map +1 -0
  237. package/dist/react-native/models/parameters.d.ts +19 -0
  238. package/dist/react-native/models/parameters.d.ts.map +1 -0
  239. package/dist/react-native/models/parameters.js +152 -0
  240. package/dist/react-native/models/parameters.js.map +1 -0
  241. package/dist/react-native/operations/availabilityGroupListeners.d.ts +89 -0
  242. package/dist/react-native/operations/availabilityGroupListeners.d.ts.map +1 -0
  243. package/dist/react-native/operations/availabilityGroupListeners.js +367 -0
  244. package/dist/react-native/operations/availabilityGroupListeners.js.map +1 -0
  245. package/dist/react-native/operations/index.d.ts +6 -0
  246. package/dist/react-native/operations/index.d.ts.map +1 -0
  247. package/dist/react-native/operations/index.js +13 -0
  248. package/dist/react-native/operations/index.js.map +1 -0
  249. package/dist/react-native/operations/operations.d.ts +32 -0
  250. package/dist/react-native/operations/operations.d.ts.map +1 -0
  251. package/dist/react-native/operations/operations.js +116 -0
  252. package/dist/react-native/operations/operations.js.map +1 -0
  253. package/dist/react-native/operations/sqlVirtualMachineGroups.d.ts +117 -0
  254. package/dist/react-native/operations/sqlVirtualMachineGroups.d.ts.map +1 -0
  255. package/dist/react-native/operations/sqlVirtualMachineGroups.js +535 -0
  256. package/dist/react-native/operations/sqlVirtualMachineGroups.js.map +1 -0
  257. package/dist/react-native/operations/sqlVirtualMachineTroubleshoot.d.ts +32 -0
  258. package/dist/react-native/operations/sqlVirtualMachineTroubleshoot.d.ts.map +1 -0
  259. package/dist/react-native/operations/sqlVirtualMachineTroubleshoot.js +119 -0
  260. package/dist/react-native/operations/sqlVirtualMachineTroubleshoot.js.map +1 -0
  261. package/dist/react-native/operations/sqlVirtualMachines.d.ts +176 -0
  262. package/dist/react-native/operations/sqlVirtualMachines.d.ts.map +1 -0
  263. package/dist/react-native/operations/sqlVirtualMachines.js +797 -0
  264. package/dist/react-native/operations/sqlVirtualMachines.js.map +1 -0
  265. package/dist/react-native/operationsInterfaces/availabilityGroupListeners.d.ts +62 -0
  266. package/dist/react-native/operationsInterfaces/availabilityGroupListeners.d.ts.map +1 -0
  267. package/dist/react-native/operationsInterfaces/availabilityGroupListeners.js +9 -0
  268. package/dist/react-native/operationsInterfaces/availabilityGroupListeners.js.map +1 -0
  269. package/dist/react-native/operationsInterfaces/index.d.ts +6 -0
  270. package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
  271. package/dist/react-native/operationsInterfaces/index.js +13 -0
  272. package/dist/react-native/operationsInterfaces/index.js.map +1 -0
  273. package/dist/react-native/operationsInterfaces/operations.d.ts +11 -0
  274. package/dist/react-native/operationsInterfaces/operations.d.ts.map +1 -0
  275. package/dist/react-native/operationsInterfaces/operations.js +9 -0
  276. package/dist/react-native/operationsInterfaces/operations.js.map +1 -0
  277. package/dist/react-native/operationsInterfaces/sqlVirtualMachineGroups.d.ts +79 -0
  278. package/dist/react-native/operationsInterfaces/sqlVirtualMachineGroups.d.ts.map +1 -0
  279. package/dist/react-native/operationsInterfaces/sqlVirtualMachineGroups.js +9 -0
  280. package/dist/react-native/operationsInterfaces/sqlVirtualMachineGroups.js.map +1 -0
  281. package/dist/react-native/operationsInterfaces/sqlVirtualMachineTroubleshoot.d.ts +24 -0
  282. package/dist/react-native/operationsInterfaces/sqlVirtualMachineTroubleshoot.d.ts.map +1 -0
  283. package/dist/react-native/operationsInterfaces/sqlVirtualMachineTroubleshoot.js +9 -0
  284. package/dist/react-native/operationsInterfaces/sqlVirtualMachineTroubleshoot.js.map +1 -0
  285. package/dist/react-native/operationsInterfaces/sqlVirtualMachines.d.ts +119 -0
  286. package/dist/react-native/operationsInterfaces/sqlVirtualMachines.d.ts.map +1 -0
  287. package/dist/react-native/operationsInterfaces/sqlVirtualMachines.js +9 -0
  288. package/dist/react-native/operationsInterfaces/sqlVirtualMachines.js.map +1 -0
  289. package/dist/react-native/package.json +3 -0
  290. package/dist/react-native/pagingHelper.d.ts +13 -0
  291. package/dist/react-native/pagingHelper.d.ts.map +1 -0
  292. package/dist/react-native/pagingHelper.js +30 -0
  293. package/dist/react-native/pagingHelper.js.map +1 -0
  294. package/dist/react-native/sqlVirtualMachineManagementClient.d.ts +24 -0
  295. package/dist/react-native/sqlVirtualMachineManagementClient.d.ts.map +1 -0
  296. package/dist/react-native/sqlVirtualMachineManagementClient.js +114 -0
  297. package/dist/react-native/sqlVirtualMachineManagementClient.js.map +1 -0
  298. package/package.json +82 -71
  299. package/dist/index.js +0 -4367
  300. package/dist/index.js.map +0 -1
  301. package/dist/index.min.js +0 -1
  302. package/dist/index.min.js.map +0 -1
  303. package/dist-esm/samples-dev/availabilityGroupListenersCreateOrUpdateSample.d.ts +0 -2
  304. package/dist-esm/samples-dev/availabilityGroupListenersCreateOrUpdateSample.d.ts.map +0 -1
  305. package/dist-esm/samples-dev/availabilityGroupListenersCreateOrUpdateSample.js +0 -98
  306. package/dist-esm/samples-dev/availabilityGroupListenersCreateOrUpdateSample.js.map +0 -1
  307. package/dist-esm/samples-dev/availabilityGroupListenersDeleteSample.d.ts +0 -2
  308. package/dist-esm/samples-dev/availabilityGroupListenersDeleteSample.d.ts.map +0 -1
  309. package/dist-esm/samples-dev/availabilityGroupListenersDeleteSample.js +0 -40
  310. package/dist-esm/samples-dev/availabilityGroupListenersDeleteSample.js.map +0 -1
  311. package/dist-esm/samples-dev/availabilityGroupListenersGetSample.d.ts +0 -2
  312. package/dist-esm/samples-dev/availabilityGroupListenersGetSample.d.ts.map +0 -1
  313. package/dist-esm/samples-dev/availabilityGroupListenersGetSample.js +0 -40
  314. package/dist-esm/samples-dev/availabilityGroupListenersGetSample.js.map +0 -1
  315. package/dist-esm/samples-dev/availabilityGroupListenersListByGroupSample.d.ts +0 -2
  316. package/dist-esm/samples-dev/availabilityGroupListenersListByGroupSample.d.ts.map +0 -1
  317. package/dist-esm/samples-dev/availabilityGroupListenersListByGroupSample.js +0 -60
  318. package/dist-esm/samples-dev/availabilityGroupListenersListByGroupSample.js.map +0 -1
  319. package/dist-esm/samples-dev/operationsListSample.d.ts +0 -2
  320. package/dist-esm/samples-dev/operationsListSample.d.ts.map +0 -1
  321. package/dist-esm/samples-dev/operationsListSample.js +0 -58
  322. package/dist-esm/samples-dev/operationsListSample.js.map +0 -1
  323. package/dist-esm/samples-dev/sqlVirtualMachineGroupsCreateOrUpdateSample.d.ts +0 -2
  324. package/dist-esm/samples-dev/sqlVirtualMachineGroupsCreateOrUpdateSample.d.ts.map +0 -1
  325. package/dist-esm/samples-dev/sqlVirtualMachineGroupsCreateOrUpdateSample.js +0 -55
  326. package/dist-esm/samples-dev/sqlVirtualMachineGroupsCreateOrUpdateSample.js.map +0 -1
  327. package/dist-esm/samples-dev/sqlVirtualMachineGroupsDeleteSample.d.ts +0 -2
  328. package/dist-esm/samples-dev/sqlVirtualMachineGroupsDeleteSample.d.ts.map +0 -1
  329. package/dist-esm/samples-dev/sqlVirtualMachineGroupsDeleteSample.js +0 -39
  330. package/dist-esm/samples-dev/sqlVirtualMachineGroupsDeleteSample.js.map +0 -1
  331. package/dist-esm/samples-dev/sqlVirtualMachineGroupsGetSample.d.ts +0 -2
  332. package/dist-esm/samples-dev/sqlVirtualMachineGroupsGetSample.d.ts.map +0 -1
  333. package/dist-esm/samples-dev/sqlVirtualMachineGroupsGetSample.js +0 -39
  334. package/dist-esm/samples-dev/sqlVirtualMachineGroupsGetSample.js.map +0 -1
  335. package/dist-esm/samples-dev/sqlVirtualMachineGroupsListByResourceGroupSample.d.ts +0 -2
  336. package/dist-esm/samples-dev/sqlVirtualMachineGroupsListByResourceGroupSample.d.ts.map +0 -1
  337. package/dist-esm/samples-dev/sqlVirtualMachineGroupsListByResourceGroupSample.js +0 -59
  338. package/dist-esm/samples-dev/sqlVirtualMachineGroupsListByResourceGroupSample.js.map +0 -1
  339. package/dist-esm/samples-dev/sqlVirtualMachineGroupsListSample.d.ts +0 -2
  340. package/dist-esm/samples-dev/sqlVirtualMachineGroupsListSample.d.ts.map +0 -1
  341. package/dist-esm/samples-dev/sqlVirtualMachineGroupsListSample.js +0 -58
  342. package/dist-esm/samples-dev/sqlVirtualMachineGroupsListSample.js.map +0 -1
  343. package/dist-esm/samples-dev/sqlVirtualMachineGroupsUpdateSample.d.ts +0 -2
  344. package/dist-esm/samples-dev/sqlVirtualMachineGroupsUpdateSample.d.ts.map +0 -1
  345. package/dist-esm/samples-dev/sqlVirtualMachineGroupsUpdateSample.js +0 -40
  346. package/dist-esm/samples-dev/sqlVirtualMachineGroupsUpdateSample.js.map +0 -1
  347. package/dist-esm/samples-dev/sqlVirtualMachineTroubleshootSample.d.ts +0 -2
  348. package/dist-esm/samples-dev/sqlVirtualMachineTroubleshootSample.d.ts.map +0 -1
  349. package/dist-esm/samples-dev/sqlVirtualMachineTroubleshootSample.js +0 -45
  350. package/dist-esm/samples-dev/sqlVirtualMachineTroubleshootSample.js.map +0 -1
  351. package/dist-esm/samples-dev/sqlVirtualMachinesCreateOrUpdateSample.d.ts +0 -2
  352. package/dist-esm/samples-dev/sqlVirtualMachinesCreateOrUpdateSample.d.ts.map +0 -1
  353. package/dist-esm/samples-dev/sqlVirtualMachinesCreateOrUpdateSample.js +0 -290
  354. package/dist-esm/samples-dev/sqlVirtualMachinesCreateOrUpdateSample.js.map +0 -1
  355. package/dist-esm/samples-dev/sqlVirtualMachinesDeleteSample.d.ts +0 -2
  356. package/dist-esm/samples-dev/sqlVirtualMachinesDeleteSample.d.ts.map +0 -1
  357. package/dist-esm/samples-dev/sqlVirtualMachinesDeleteSample.js +0 -39
  358. package/dist-esm/samples-dev/sqlVirtualMachinesDeleteSample.js.map +0 -1
  359. package/dist-esm/samples-dev/sqlVirtualMachinesGetSample.d.ts +0 -2
  360. package/dist-esm/samples-dev/sqlVirtualMachinesGetSample.d.ts.map +0 -1
  361. package/dist-esm/samples-dev/sqlVirtualMachinesGetSample.js +0 -39
  362. package/dist-esm/samples-dev/sqlVirtualMachinesGetSample.js.map +0 -1
  363. package/dist-esm/samples-dev/sqlVirtualMachinesListByResourceGroupSample.d.ts +0 -2
  364. package/dist-esm/samples-dev/sqlVirtualMachinesListByResourceGroupSample.d.ts.map +0 -1
  365. package/dist-esm/samples-dev/sqlVirtualMachinesListByResourceGroupSample.js +0 -59
  366. package/dist-esm/samples-dev/sqlVirtualMachinesListByResourceGroupSample.js.map +0 -1
  367. package/dist-esm/samples-dev/sqlVirtualMachinesListBySqlVMGroupSample.d.ts +0 -2
  368. package/dist-esm/samples-dev/sqlVirtualMachinesListBySqlVMGroupSample.d.ts.map +0 -1
  369. package/dist-esm/samples-dev/sqlVirtualMachinesListBySqlVMGroupSample.js +0 -60
  370. package/dist-esm/samples-dev/sqlVirtualMachinesListBySqlVMGroupSample.js.map +0 -1
  371. package/dist-esm/samples-dev/sqlVirtualMachinesListSample.d.ts +0 -2
  372. package/dist-esm/samples-dev/sqlVirtualMachinesListSample.d.ts.map +0 -1
  373. package/dist-esm/samples-dev/sqlVirtualMachinesListSample.js +0 -58
  374. package/dist-esm/samples-dev/sqlVirtualMachinesListSample.js.map +0 -1
  375. package/dist-esm/samples-dev/sqlVirtualMachinesRedeploySample.d.ts +0 -2
  376. package/dist-esm/samples-dev/sqlVirtualMachinesRedeploySample.d.ts.map +0 -1
  377. package/dist-esm/samples-dev/sqlVirtualMachinesRedeploySample.js +0 -39
  378. package/dist-esm/samples-dev/sqlVirtualMachinesRedeploySample.js.map +0 -1
  379. package/dist-esm/samples-dev/sqlVirtualMachinesStartAssessmentSample.d.ts +0 -2
  380. package/dist-esm/samples-dev/sqlVirtualMachinesStartAssessmentSample.d.ts.map +0 -1
  381. package/dist-esm/samples-dev/sqlVirtualMachinesStartAssessmentSample.js +0 -39
  382. package/dist-esm/samples-dev/sqlVirtualMachinesStartAssessmentSample.js.map +0 -1
  383. package/dist-esm/samples-dev/sqlVirtualMachinesUpdateSample.d.ts +0 -2
  384. package/dist-esm/samples-dev/sqlVirtualMachinesUpdateSample.d.ts.map +0 -1
  385. package/dist-esm/samples-dev/sqlVirtualMachinesUpdateSample.js +0 -40
  386. package/dist-esm/samples-dev/sqlVirtualMachinesUpdateSample.js.map +0 -1
  387. package/dist-esm/src/index.d.ts +0 -6
  388. package/dist-esm/src/index.d.ts.map +0 -1
  389. package/dist-esm/src/index.js.map +0 -1
  390. package/dist-esm/src/lroImpl.js +0 -21
  391. package/dist-esm/src/lroImpl.js.map +0 -1
  392. package/dist-esm/src/models/index.js.map +0 -1
  393. package/dist-esm/src/models/mappers.js.map +0 -1
  394. package/dist-esm/src/models/parameters.js.map +0 -1
  395. package/dist-esm/src/operations/availabilityGroupListeners.d.ts.map +0 -1
  396. package/dist-esm/src/operations/availabilityGroupListeners.js.map +0 -1
  397. package/dist-esm/src/operations/index.d.ts +0 -6
  398. package/dist-esm/src/operations/index.js +0 -13
  399. package/dist-esm/src/operations/index.js.map +0 -1
  400. package/dist-esm/src/operations/operations.d.ts.map +0 -1
  401. package/dist-esm/src/operations/operations.js.map +0 -1
  402. package/dist-esm/src/operations/sqlVirtualMachineGroups.d.ts.map +0 -1
  403. package/dist-esm/src/operations/sqlVirtualMachineGroups.js.map +0 -1
  404. package/dist-esm/src/operations/sqlVirtualMachineTroubleshoot.d.ts.map +0 -1
  405. package/dist-esm/src/operations/sqlVirtualMachineTroubleshoot.js.map +0 -1
  406. package/dist-esm/src/operations/sqlVirtualMachines.d.ts.map +0 -1
  407. package/dist-esm/src/operations/sqlVirtualMachines.js.map +0 -1
  408. package/dist-esm/src/operationsInterfaces/availabilityGroupListeners.d.ts.map +0 -1
  409. package/dist-esm/src/operationsInterfaces/availabilityGroupListeners.js.map +0 -1
  410. package/dist-esm/src/operationsInterfaces/index.d.ts +0 -6
  411. package/dist-esm/src/operationsInterfaces/index.js +0 -13
  412. package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
  413. package/dist-esm/src/operationsInterfaces/operations.js.map +0 -1
  414. package/dist-esm/src/operationsInterfaces/sqlVirtualMachineGroups.d.ts.map +0 -1
  415. package/dist-esm/src/operationsInterfaces/sqlVirtualMachineGroups.js.map +0 -1
  416. package/dist-esm/src/operationsInterfaces/sqlVirtualMachineTroubleshoot.d.ts.map +0 -1
  417. package/dist-esm/src/operationsInterfaces/sqlVirtualMachineTroubleshoot.js.map +0 -1
  418. package/dist-esm/src/operationsInterfaces/sqlVirtualMachines.d.ts.map +0 -1
  419. package/dist-esm/src/operationsInterfaces/sqlVirtualMachines.js.map +0 -1
  420. package/dist-esm/src/pagingHelper.js.map +0 -1
  421. package/dist-esm/src/sqlVirtualMachineManagementClient.d.ts.map +0 -1
  422. package/dist-esm/src/sqlVirtualMachineManagementClient.js.map +0 -1
  423. package/dist-esm/test/sqlvirtualmachine_operations_test.spec.d.ts +0 -4
  424. package/dist-esm/test/sqlvirtualmachine_operations_test.spec.d.ts.map +0 -1
  425. package/dist-esm/test/sqlvirtualmachine_operations_test.spec.js +0 -78
  426. package/dist-esm/test/sqlvirtualmachine_operations_test.spec.js.map +0 -1
  427. package/rollup.config.js +0 -122
  428. package/src/lroImpl.ts +0 -42
  429. package/src/models/index.ts +0 -1470
  430. package/src/models/mappers.ts +0 -1805
  431. package/src/models/parameters.ts +0 -183
  432. package/src/operations/availabilityGroupListeners.ts +0 -527
  433. package/src/operations/index.ts +0 -13
  434. package/src/operations/operations.ts +0 -149
  435. package/src/operations/sqlVirtualMachineGroups.ts +0 -737
  436. package/src/operations/sqlVirtualMachineTroubleshoot.ts +0 -172
  437. package/src/operations/sqlVirtualMachines.ts +0 -1115
  438. package/src/operationsInterfaces/availabilityGroupListeners.ts +0 -115
  439. package/src/operationsInterfaces/index.ts +0 -13
  440. package/src/operationsInterfaces/operations.ts +0 -22
  441. package/src/operationsInterfaces/sqlVirtualMachineGroups.ts +0 -147
  442. package/src/operationsInterfaces/sqlVirtualMachineTroubleshoot.ts +0 -51
  443. package/src/operationsInterfaces/sqlVirtualMachines.ts +0 -210
  444. package/src/pagingHelper.ts +0 -39
  445. package/src/sqlVirtualMachineManagementClient.ts +0 -162
  446. package/tsconfig.json +0 -33
  447. /package/{dist-esm/src → dist/browser}/lroImpl.d.ts +0 -0
  448. /package/{dist-esm/src → dist/browser}/models/index.d.ts +0 -0
  449. /package/{dist-esm/src → dist/browser}/models/index.d.ts.map +0 -0
  450. /package/{dist-esm/src → dist/browser}/models/index.js +0 -0
  451. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts +0 -0
  452. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts.map +0 -0
  453. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts +0 -0
  454. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +0 -0
  455. /package/{dist-esm/src → dist/browser}/operationsInterfaces/availabilityGroupListeners.js +0 -0
  456. /package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.js +0 -0
  457. /package/{dist-esm/src → dist/browser}/operationsInterfaces/sqlVirtualMachineGroups.js +0 -0
  458. /package/{dist-esm/src → dist/browser}/operationsInterfaces/sqlVirtualMachineTroubleshoot.js +0 -0
  459. /package/{dist-esm/src → dist/browser}/operationsInterfaces/sqlVirtualMachines.js +0 -0
  460. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts +0 -0
  461. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts.map +0 -0
  462. /package/review/{arm-sqlvirtualmachine.api.md → arm-sqlvirtualmachine-node.api.md} +0 -0
package/dist/index.js DELETED
@@ -1,4367 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var tslib = require('tslib');
6
- var coreClient = require('@azure/core-client');
7
- var coreRestPipeline = require('@azure/core-rest-pipeline');
8
- var coreLro = require('@azure/core-lro');
9
-
10
- function _interopNamespace(e) {
11
- if (e && e.__esModule) return e;
12
- var n = Object.create(null);
13
- if (e) {
14
- Object.keys(e).forEach(function (k) {
15
- if (k !== 'default') {
16
- var d = Object.getOwnPropertyDescriptor(e, k);
17
- Object.defineProperty(n, k, d.get ? d : {
18
- enumerable: true,
19
- get: function () { return e[k]; }
20
- });
21
- }
22
- });
23
- }
24
- n["default"] = e;
25
- return Object.freeze(n);
26
- }
27
-
28
- var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
29
- var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipeline);
30
-
31
- /*
32
- * Copyright (c) Microsoft Corporation.
33
- * Licensed under the MIT License.
34
- *
35
- * Code generated by Microsoft (R) AutoRest Code Generator.
36
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
37
- */
38
- const pageMap = new WeakMap();
39
- /**
40
- * Given the last `.value` produced by the `byPage` iterator,
41
- * returns a continuation token that can be used to begin paging from
42
- * that point later.
43
- * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
44
- * @returns The continuation token that can be passed into byPage() during future calls.
45
- */
46
- function getContinuationToken(page) {
47
- var _a;
48
- if (typeof page !== "object" || page === null) {
49
- return undefined;
50
- }
51
- return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
52
- }
53
- function setContinuationToken(page, continuationToken) {
54
- var _a;
55
- if (typeof page !== "object" || page === null || !continuationToken) {
56
- return;
57
- }
58
- const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
59
- pageInfo.continuationToken = continuationToken;
60
- pageMap.set(page, pageInfo);
61
- }
62
-
63
- /*
64
- * Copyright (c) Microsoft Corporation.
65
- * Licensed under the MIT License.
66
- *
67
- * Code generated by Microsoft (R) AutoRest Code Generator.
68
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
69
- */
70
- /** Known values of {@link Role} that the service accepts. */
71
- exports.KnownRole = void 0;
72
- (function (KnownRole) {
73
- /** Primary */
74
- KnownRole["Primary"] = "PRIMARY";
75
- /** Secondary */
76
- KnownRole["Secondary"] = "SECONDARY";
77
- })(exports.KnownRole || (exports.KnownRole = {}));
78
- /** Known values of {@link Commit} that the service accepts. */
79
- exports.KnownCommit = void 0;
80
- (function (KnownCommit) {
81
- /** SynchronousCommit */
82
- KnownCommit["SynchronousCommit"] = "SYNCHRONOUS_COMMIT";
83
- /** AsynchronousCommit */
84
- KnownCommit["AsynchronousCommit"] = "ASYNCHRONOUS_COMMIT";
85
- })(exports.KnownCommit || (exports.KnownCommit = {}));
86
- /** Known values of {@link Failover} that the service accepts. */
87
- exports.KnownFailover = void 0;
88
- (function (KnownFailover) {
89
- /** Automatic */
90
- KnownFailover["Automatic"] = "AUTOMATIC";
91
- /** Manual */
92
- KnownFailover["Manual"] = "MANUAL";
93
- })(exports.KnownFailover || (exports.KnownFailover = {}));
94
- /** Known values of {@link ReadableSecondary} that the service accepts. */
95
- exports.KnownReadableSecondary = void 0;
96
- (function (KnownReadableSecondary) {
97
- /** NO */
98
- KnownReadableSecondary["NO"] = "NO";
99
- /** ALL */
100
- KnownReadableSecondary["ALL"] = "ALL";
101
- /** ReadOnly */
102
- KnownReadableSecondary["ReadOnly"] = "READ_ONLY";
103
- })(exports.KnownReadableSecondary || (exports.KnownReadableSecondary = {}));
104
- /** Known values of {@link CreatedByType} that the service accepts. */
105
- exports.KnownCreatedByType = void 0;
106
- (function (KnownCreatedByType) {
107
- /** User */
108
- KnownCreatedByType["User"] = "User";
109
- /** Application */
110
- KnownCreatedByType["Application"] = "Application";
111
- /** ManagedIdentity */
112
- KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
113
- /** Key */
114
- KnownCreatedByType["Key"] = "Key";
115
- })(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
116
- /** Known values of {@link OperationOrigin} that the service accepts. */
117
- exports.KnownOperationOrigin = void 0;
118
- (function (KnownOperationOrigin) {
119
- /** User */
120
- KnownOperationOrigin["User"] = "user";
121
- /** System */
122
- KnownOperationOrigin["System"] = "system";
123
- })(exports.KnownOperationOrigin || (exports.KnownOperationOrigin = {}));
124
- /** Known values of {@link SqlVmGroupImageSku} that the service accepts. */
125
- exports.KnownSqlVmGroupImageSku = void 0;
126
- (function (KnownSqlVmGroupImageSku) {
127
- /** Developer */
128
- KnownSqlVmGroupImageSku["Developer"] = "Developer";
129
- /** Enterprise */
130
- KnownSqlVmGroupImageSku["Enterprise"] = "Enterprise";
131
- })(exports.KnownSqlVmGroupImageSku || (exports.KnownSqlVmGroupImageSku = {}));
132
- /** Known values of {@link ScaleType} that the service accepts. */
133
- exports.KnownScaleType = void 0;
134
- (function (KnownScaleType) {
135
- /** HA */
136
- KnownScaleType["HA"] = "HA";
137
- })(exports.KnownScaleType || (exports.KnownScaleType = {}));
138
- /** Known values of {@link ClusterManagerType} that the service accepts. */
139
- exports.KnownClusterManagerType = void 0;
140
- (function (KnownClusterManagerType) {
141
- /** Wsfc */
142
- KnownClusterManagerType["Wsfc"] = "WSFC";
143
- })(exports.KnownClusterManagerType || (exports.KnownClusterManagerType = {}));
144
- /** Known values of {@link ClusterConfiguration} that the service accepts. */
145
- exports.KnownClusterConfiguration = void 0;
146
- (function (KnownClusterConfiguration) {
147
- /** Domainful */
148
- KnownClusterConfiguration["Domainful"] = "Domainful";
149
- })(exports.KnownClusterConfiguration || (exports.KnownClusterConfiguration = {}));
150
- /** Known values of {@link ClusterSubnetType} that the service accepts. */
151
- exports.KnownClusterSubnetType = void 0;
152
- (function (KnownClusterSubnetType) {
153
- /** SingleSubnet */
154
- KnownClusterSubnetType["SingleSubnet"] = "SingleSubnet";
155
- /** MultiSubnet */
156
- KnownClusterSubnetType["MultiSubnet"] = "MultiSubnet";
157
- })(exports.KnownClusterSubnetType || (exports.KnownClusterSubnetType = {}));
158
- /** Known values of {@link IdentityType} that the service accepts. */
159
- exports.KnownIdentityType = void 0;
160
- (function (KnownIdentityType) {
161
- /** None */
162
- KnownIdentityType["None"] = "None";
163
- /** SystemAssigned */
164
- KnownIdentityType["SystemAssigned"] = "SystemAssigned";
165
- })(exports.KnownIdentityType || (exports.KnownIdentityType = {}));
166
- /** Known values of {@link SqlServerLicenseType} that the service accepts. */
167
- exports.KnownSqlServerLicenseType = void 0;
168
- (function (KnownSqlServerLicenseType) {
169
- /** Payg */
170
- KnownSqlServerLicenseType["Payg"] = "PAYG";
171
- /** Ahub */
172
- KnownSqlServerLicenseType["Ahub"] = "AHUB";
173
- /** DR */
174
- KnownSqlServerLicenseType["DR"] = "DR";
175
- })(exports.KnownSqlServerLicenseType || (exports.KnownSqlServerLicenseType = {}));
176
- /** Known values of {@link SqlManagementMode} that the service accepts. */
177
- exports.KnownSqlManagementMode = void 0;
178
- (function (KnownSqlManagementMode) {
179
- /** Full */
180
- KnownSqlManagementMode["Full"] = "Full";
181
- /** LightWeight */
182
- KnownSqlManagementMode["LightWeight"] = "LightWeight";
183
- /** NoAgent */
184
- KnownSqlManagementMode["NoAgent"] = "NoAgent";
185
- })(exports.KnownSqlManagementMode || (exports.KnownSqlManagementMode = {}));
186
- /** Known values of {@link LeastPrivilegeMode} that the service accepts. */
187
- exports.KnownLeastPrivilegeMode = void 0;
188
- (function (KnownLeastPrivilegeMode) {
189
- /** Enabled */
190
- KnownLeastPrivilegeMode["Enabled"] = "Enabled";
191
- /** NotSet */
192
- KnownLeastPrivilegeMode["NotSet"] = "NotSet";
193
- })(exports.KnownLeastPrivilegeMode || (exports.KnownLeastPrivilegeMode = {}));
194
- /** Known values of {@link SqlImageSku} that the service accepts. */
195
- exports.KnownSqlImageSku = void 0;
196
- (function (KnownSqlImageSku) {
197
- /** Developer */
198
- KnownSqlImageSku["Developer"] = "Developer";
199
- /** Express */
200
- KnownSqlImageSku["Express"] = "Express";
201
- /** Standard */
202
- KnownSqlImageSku["Standard"] = "Standard";
203
- /** Enterprise */
204
- KnownSqlImageSku["Enterprise"] = "Enterprise";
205
- /** Web */
206
- KnownSqlImageSku["Web"] = "Web";
207
- })(exports.KnownSqlImageSku || (exports.KnownSqlImageSku = {}));
208
- /** Known values of {@link BackupScheduleType} that the service accepts. */
209
- exports.KnownBackupScheduleType = void 0;
210
- (function (KnownBackupScheduleType) {
211
- /** Manual */
212
- KnownBackupScheduleType["Manual"] = "Manual";
213
- /** Automated */
214
- KnownBackupScheduleType["Automated"] = "Automated";
215
- })(exports.KnownBackupScheduleType || (exports.KnownBackupScheduleType = {}));
216
- /** Known values of {@link FullBackupFrequencyType} that the service accepts. */
217
- exports.KnownFullBackupFrequencyType = void 0;
218
- (function (KnownFullBackupFrequencyType) {
219
- /** Daily */
220
- KnownFullBackupFrequencyType["Daily"] = "Daily";
221
- /** Weekly */
222
- KnownFullBackupFrequencyType["Weekly"] = "Weekly";
223
- })(exports.KnownFullBackupFrequencyType || (exports.KnownFullBackupFrequencyType = {}));
224
- /** Known values of {@link AutoBackupDaysOfWeek} that the service accepts. */
225
- exports.KnownAutoBackupDaysOfWeek = void 0;
226
- (function (KnownAutoBackupDaysOfWeek) {
227
- /** Monday */
228
- KnownAutoBackupDaysOfWeek["Monday"] = "Monday";
229
- /** Tuesday */
230
- KnownAutoBackupDaysOfWeek["Tuesday"] = "Tuesday";
231
- /** Wednesday */
232
- KnownAutoBackupDaysOfWeek["Wednesday"] = "Wednesday";
233
- /** Thursday */
234
- KnownAutoBackupDaysOfWeek["Thursday"] = "Thursday";
235
- /** Friday */
236
- KnownAutoBackupDaysOfWeek["Friday"] = "Friday";
237
- /** Saturday */
238
- KnownAutoBackupDaysOfWeek["Saturday"] = "Saturday";
239
- /** Sunday */
240
- KnownAutoBackupDaysOfWeek["Sunday"] = "Sunday";
241
- })(exports.KnownAutoBackupDaysOfWeek || (exports.KnownAutoBackupDaysOfWeek = {}));
242
- /** Known values of {@link ConnectivityType} that the service accepts. */
243
- exports.KnownConnectivityType = void 0;
244
- (function (KnownConnectivityType) {
245
- /** Local */
246
- KnownConnectivityType["Local"] = "LOCAL";
247
- /** Private */
248
- KnownConnectivityType["Private"] = "PRIVATE";
249
- /** Public */
250
- KnownConnectivityType["Public"] = "PUBLIC";
251
- })(exports.KnownConnectivityType || (exports.KnownConnectivityType = {}));
252
- /** Known values of {@link SqlWorkloadType} that the service accepts. */
253
- exports.KnownSqlWorkloadType = void 0;
254
- (function (KnownSqlWorkloadType) {
255
- /** General */
256
- KnownSqlWorkloadType["General"] = "GENERAL";
257
- /** Oltp */
258
- KnownSqlWorkloadType["Oltp"] = "OLTP";
259
- /** DW */
260
- KnownSqlWorkloadType["DW"] = "DW";
261
- })(exports.KnownSqlWorkloadType || (exports.KnownSqlWorkloadType = {}));
262
- /** Known values of {@link DiskConfigurationType} that the service accepts. */
263
- exports.KnownDiskConfigurationType = void 0;
264
- (function (KnownDiskConfigurationType) {
265
- /** NEW */
266
- KnownDiskConfigurationType["NEW"] = "NEW";
267
- /** Extend */
268
- KnownDiskConfigurationType["Extend"] = "EXTEND";
269
- /** ADD */
270
- KnownDiskConfigurationType["ADD"] = "ADD";
271
- })(exports.KnownDiskConfigurationType || (exports.KnownDiskConfigurationType = {}));
272
- /** Known values of {@link StorageWorkloadType} that the service accepts. */
273
- exports.KnownStorageWorkloadType = void 0;
274
- (function (KnownStorageWorkloadType) {
275
- /** General */
276
- KnownStorageWorkloadType["General"] = "GENERAL";
277
- /** Oltp */
278
- KnownStorageWorkloadType["Oltp"] = "OLTP";
279
- /** DW */
280
- KnownStorageWorkloadType["DW"] = "DW";
281
- })(exports.KnownStorageWorkloadType || (exports.KnownStorageWorkloadType = {}));
282
- /** Known values of {@link TroubleshootingScenario} that the service accepts. */
283
- exports.KnownTroubleshootingScenario = void 0;
284
- (function (KnownTroubleshootingScenario) {
285
- /** UnhealthyReplica */
286
- KnownTroubleshootingScenario["UnhealthyReplica"] = "UnhealthyReplica";
287
- })(exports.KnownTroubleshootingScenario || (exports.KnownTroubleshootingScenario = {}));
288
-
289
- /*
290
- * Copyright (c) Microsoft Corporation.
291
- * Licensed under the MIT License.
292
- *
293
- * Code generated by Microsoft (R) AutoRest Code Generator.
294
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
295
- */
296
- const LoadBalancerConfiguration = {
297
- type: {
298
- name: "Composite",
299
- className: "LoadBalancerConfiguration",
300
- modelProperties: {
301
- privateIpAddress: {
302
- serializedName: "privateIpAddress",
303
- type: {
304
- name: "Composite",
305
- className: "PrivateIPAddress"
306
- }
307
- },
308
- publicIpAddressResourceId: {
309
- serializedName: "publicIpAddressResourceId",
310
- type: {
311
- name: "String"
312
- }
313
- },
314
- loadBalancerResourceId: {
315
- serializedName: "loadBalancerResourceId",
316
- type: {
317
- name: "String"
318
- }
319
- },
320
- probePort: {
321
- serializedName: "probePort",
322
- type: {
323
- name: "Number"
324
- }
325
- },
326
- sqlVirtualMachineInstances: {
327
- serializedName: "sqlVirtualMachineInstances",
328
- type: {
329
- name: "Sequence",
330
- element: {
331
- type: {
332
- name: "String"
333
- }
334
- }
335
- }
336
- }
337
- }
338
- }
339
- };
340
- const PrivateIPAddress = {
341
- type: {
342
- name: "Composite",
343
- className: "PrivateIPAddress",
344
- modelProperties: {
345
- ipAddress: {
346
- serializedName: "ipAddress",
347
- type: {
348
- name: "String"
349
- }
350
- },
351
- subnetResourceId: {
352
- serializedName: "subnetResourceId",
353
- type: {
354
- name: "String"
355
- }
356
- }
357
- }
358
- }
359
- };
360
- const MultiSubnetIpConfiguration = {
361
- type: {
362
- name: "Composite",
363
- className: "MultiSubnetIpConfiguration",
364
- modelProperties: {
365
- privateIpAddress: {
366
- serializedName: "privateIpAddress",
367
- type: {
368
- name: "Composite",
369
- className: "PrivateIPAddress"
370
- }
371
- },
372
- sqlVirtualMachineInstance: {
373
- serializedName: "sqlVirtualMachineInstance",
374
- required: true,
375
- type: {
376
- name: "String"
377
- }
378
- }
379
- }
380
- }
381
- };
382
- const AgConfiguration = {
383
- type: {
384
- name: "Composite",
385
- className: "AgConfiguration",
386
- modelProperties: {
387
- replicas: {
388
- serializedName: "replicas",
389
- type: {
390
- name: "Sequence",
391
- element: {
392
- type: {
393
- name: "Composite",
394
- className: "AgReplica"
395
- }
396
- }
397
- }
398
- }
399
- }
400
- }
401
- };
402
- const AgReplica = {
403
- type: {
404
- name: "Composite",
405
- className: "AgReplica",
406
- modelProperties: {
407
- sqlVirtualMachineInstanceId: {
408
- serializedName: "sqlVirtualMachineInstanceId",
409
- type: {
410
- name: "String"
411
- }
412
- },
413
- role: {
414
- serializedName: "role",
415
- type: {
416
- name: "String"
417
- }
418
- },
419
- commit: {
420
- serializedName: "commit",
421
- type: {
422
- name: "String"
423
- }
424
- },
425
- failover: {
426
- serializedName: "failover",
427
- type: {
428
- name: "String"
429
- }
430
- },
431
- readableSecondary: {
432
- serializedName: "readableSecondary",
433
- type: {
434
- name: "String"
435
- }
436
- }
437
- }
438
- }
439
- };
440
- const SystemData = {
441
- type: {
442
- name: "Composite",
443
- className: "SystemData",
444
- modelProperties: {
445
- createdBy: {
446
- serializedName: "createdBy",
447
- type: {
448
- name: "String"
449
- }
450
- },
451
- createdByType: {
452
- serializedName: "createdByType",
453
- type: {
454
- name: "String"
455
- }
456
- },
457
- createdAt: {
458
- serializedName: "createdAt",
459
- type: {
460
- name: "DateTime"
461
- }
462
- },
463
- lastModifiedBy: {
464
- serializedName: "lastModifiedBy",
465
- type: {
466
- name: "String"
467
- }
468
- },
469
- lastModifiedByType: {
470
- serializedName: "lastModifiedByType",
471
- type: {
472
- name: "String"
473
- }
474
- },
475
- lastModifiedAt: {
476
- serializedName: "lastModifiedAt",
477
- type: {
478
- name: "DateTime"
479
- }
480
- }
481
- }
482
- }
483
- };
484
- const Resource = {
485
- type: {
486
- name: "Composite",
487
- className: "Resource",
488
- modelProperties: {
489
- id: {
490
- serializedName: "id",
491
- readOnly: true,
492
- type: {
493
- name: "String"
494
- }
495
- },
496
- name: {
497
- serializedName: "name",
498
- readOnly: true,
499
- type: {
500
- name: "String"
501
- }
502
- },
503
- type: {
504
- serializedName: "type",
505
- readOnly: true,
506
- type: {
507
- name: "String"
508
- }
509
- }
510
- }
511
- }
512
- };
513
- const ErrorResponse = {
514
- type: {
515
- name: "Composite",
516
- className: "ErrorResponse",
517
- modelProperties: {
518
- error: {
519
- serializedName: "error",
520
- type: {
521
- name: "Composite",
522
- className: "ErrorDetail"
523
- }
524
- }
525
- }
526
- }
527
- };
528
- const ErrorDetail = {
529
- type: {
530
- name: "Composite",
531
- className: "ErrorDetail",
532
- modelProperties: {
533
- code: {
534
- serializedName: "code",
535
- readOnly: true,
536
- type: {
537
- name: "String"
538
- }
539
- },
540
- message: {
541
- serializedName: "message",
542
- readOnly: true,
543
- type: {
544
- name: "String"
545
- }
546
- },
547
- target: {
548
- serializedName: "target",
549
- readOnly: true,
550
- type: {
551
- name: "String"
552
- }
553
- },
554
- details: {
555
- serializedName: "details",
556
- readOnly: true,
557
- type: {
558
- name: "Sequence",
559
- element: {
560
- type: {
561
- name: "Composite",
562
- className: "ErrorDetail"
563
- }
564
- }
565
- }
566
- },
567
- additionalInfo: {
568
- serializedName: "additionalInfo",
569
- readOnly: true,
570
- type: {
571
- name: "Sequence",
572
- element: {
573
- type: {
574
- name: "Composite",
575
- className: "ErrorAdditionalInfo"
576
- }
577
- }
578
- }
579
- }
580
- }
581
- }
582
- };
583
- const ErrorAdditionalInfo = {
584
- type: {
585
- name: "Composite",
586
- className: "ErrorAdditionalInfo",
587
- modelProperties: {
588
- type: {
589
- serializedName: "type",
590
- readOnly: true,
591
- type: {
592
- name: "String"
593
- }
594
- },
595
- info: {
596
- serializedName: "info",
597
- readOnly: true,
598
- type: {
599
- name: "Dictionary",
600
- value: { type: { name: "any" } }
601
- }
602
- }
603
- }
604
- }
605
- };
606
- const AvailabilityGroupListenerListResult = {
607
- type: {
608
- name: "Composite",
609
- className: "AvailabilityGroupListenerListResult",
610
- modelProperties: {
611
- value: {
612
- serializedName: "value",
613
- readOnly: true,
614
- type: {
615
- name: "Sequence",
616
- element: {
617
- type: {
618
- name: "Composite",
619
- className: "AvailabilityGroupListener"
620
- }
621
- }
622
- }
623
- },
624
- nextLink: {
625
- serializedName: "nextLink",
626
- readOnly: true,
627
- type: {
628
- name: "String"
629
- }
630
- }
631
- }
632
- }
633
- };
634
- const OperationListResult = {
635
- type: {
636
- name: "Composite",
637
- className: "OperationListResult",
638
- modelProperties: {
639
- value: {
640
- serializedName: "value",
641
- readOnly: true,
642
- type: {
643
- name: "Sequence",
644
- element: {
645
- type: {
646
- name: "Composite",
647
- className: "Operation"
648
- }
649
- }
650
- }
651
- },
652
- nextLink: {
653
- serializedName: "nextLink",
654
- readOnly: true,
655
- type: {
656
- name: "String"
657
- }
658
- }
659
- }
660
- }
661
- };
662
- const Operation = {
663
- type: {
664
- name: "Composite",
665
- className: "Operation",
666
- modelProperties: {
667
- name: {
668
- serializedName: "name",
669
- readOnly: true,
670
- type: {
671
- name: "String"
672
- }
673
- },
674
- display: {
675
- serializedName: "display",
676
- type: {
677
- name: "Composite",
678
- className: "OperationDisplay"
679
- }
680
- },
681
- origin: {
682
- serializedName: "origin",
683
- readOnly: true,
684
- type: {
685
- name: "String"
686
- }
687
- },
688
- properties: {
689
- serializedName: "properties",
690
- readOnly: true,
691
- type: {
692
- name: "Dictionary",
693
- value: {
694
- type: { name: "Dictionary", value: { type: { name: "any" } } }
695
- }
696
- }
697
- }
698
- }
699
- }
700
- };
701
- const OperationDisplay = {
702
- type: {
703
- name: "Composite",
704
- className: "OperationDisplay",
705
- modelProperties: {
706
- provider: {
707
- serializedName: "provider",
708
- readOnly: true,
709
- type: {
710
- name: "String"
711
- }
712
- },
713
- resource: {
714
- serializedName: "resource",
715
- readOnly: true,
716
- type: {
717
- name: "String"
718
- }
719
- },
720
- operation: {
721
- serializedName: "operation",
722
- readOnly: true,
723
- type: {
724
- name: "String"
725
- }
726
- },
727
- description: {
728
- serializedName: "description",
729
- readOnly: true,
730
- type: {
731
- name: "String"
732
- }
733
- }
734
- }
735
- }
736
- };
737
- const WsfcDomainProfile = {
738
- type: {
739
- name: "Composite",
740
- className: "WsfcDomainProfile",
741
- modelProperties: {
742
- domainFqdn: {
743
- serializedName: "domainFqdn",
744
- type: {
745
- name: "String"
746
- }
747
- },
748
- ouPath: {
749
- serializedName: "ouPath",
750
- type: {
751
- name: "String"
752
- }
753
- },
754
- clusterBootstrapAccount: {
755
- serializedName: "clusterBootstrapAccount",
756
- type: {
757
- name: "String"
758
- }
759
- },
760
- clusterOperatorAccount: {
761
- serializedName: "clusterOperatorAccount",
762
- type: {
763
- name: "String"
764
- }
765
- },
766
- sqlServiceAccount: {
767
- serializedName: "sqlServiceAccount",
768
- type: {
769
- name: "String"
770
- }
771
- },
772
- fileShareWitnessPath: {
773
- serializedName: "fileShareWitnessPath",
774
- type: {
775
- name: "String"
776
- }
777
- },
778
- storageAccountUrl: {
779
- serializedName: "storageAccountUrl",
780
- type: {
781
- name: "String"
782
- }
783
- },
784
- storageAccountPrimaryKey: {
785
- serializedName: "storageAccountPrimaryKey",
786
- type: {
787
- name: "String"
788
- }
789
- },
790
- clusterSubnetType: {
791
- serializedName: "clusterSubnetType",
792
- type: {
793
- name: "String"
794
- }
795
- }
796
- }
797
- }
798
- };
799
- const SqlVirtualMachineGroupUpdate = {
800
- type: {
801
- name: "Composite",
802
- className: "SqlVirtualMachineGroupUpdate",
803
- modelProperties: {
804
- tags: {
805
- serializedName: "tags",
806
- type: {
807
- name: "Dictionary",
808
- value: { type: { name: "String" } }
809
- }
810
- }
811
- }
812
- }
813
- };
814
- const SqlVirtualMachineGroupListResult = {
815
- type: {
816
- name: "Composite",
817
- className: "SqlVirtualMachineGroupListResult",
818
- modelProperties: {
819
- value: {
820
- serializedName: "value",
821
- readOnly: true,
822
- type: {
823
- name: "Sequence",
824
- element: {
825
- type: {
826
- name: "Composite",
827
- className: "SqlVirtualMachineGroup"
828
- }
829
- }
830
- }
831
- },
832
- nextLink: {
833
- serializedName: "nextLink",
834
- readOnly: true,
835
- type: {
836
- name: "String"
837
- }
838
- }
839
- }
840
- }
841
- };
842
- const SqlVirtualMachineListResult = {
843
- type: {
844
- name: "Composite",
845
- className: "SqlVirtualMachineListResult",
846
- modelProperties: {
847
- value: {
848
- serializedName: "value",
849
- readOnly: true,
850
- type: {
851
- name: "Sequence",
852
- element: {
853
- type: {
854
- name: "Composite",
855
- className: "SqlVirtualMachine"
856
- }
857
- }
858
- }
859
- },
860
- nextLink: {
861
- serializedName: "nextLink",
862
- readOnly: true,
863
- type: {
864
- name: "String"
865
- }
866
- }
867
- }
868
- }
869
- };
870
- const ResourceIdentity = {
871
- type: {
872
- name: "Composite",
873
- className: "ResourceIdentity",
874
- modelProperties: {
875
- principalId: {
876
- serializedName: "principalId",
877
- readOnly: true,
878
- type: {
879
- name: "Uuid"
880
- }
881
- },
882
- type: {
883
- serializedName: "type",
884
- type: {
885
- name: "String"
886
- }
887
- },
888
- tenantId: {
889
- serializedName: "tenantId",
890
- readOnly: true,
891
- type: {
892
- name: "Uuid"
893
- }
894
- }
895
- }
896
- }
897
- };
898
- const WsfcDomainCredentials = {
899
- type: {
900
- name: "Composite",
901
- className: "WsfcDomainCredentials",
902
- modelProperties: {
903
- clusterBootstrapAccountPassword: {
904
- serializedName: "clusterBootstrapAccountPassword",
905
- type: {
906
- name: "String"
907
- }
908
- },
909
- clusterOperatorAccountPassword: {
910
- serializedName: "clusterOperatorAccountPassword",
911
- type: {
912
- name: "String"
913
- }
914
- },
915
- sqlServiceAccountPassword: {
916
- serializedName: "sqlServiceAccountPassword",
917
- type: {
918
- name: "String"
919
- }
920
- }
921
- }
922
- }
923
- };
924
- const AutoPatchingSettings = {
925
- type: {
926
- name: "Composite",
927
- className: "AutoPatchingSettings",
928
- modelProperties: {
929
- enable: {
930
- serializedName: "enable",
931
- type: {
932
- name: "Boolean"
933
- }
934
- },
935
- dayOfWeek: {
936
- serializedName: "dayOfWeek",
937
- type: {
938
- name: "Enum",
939
- allowedValues: [
940
- "Everyday",
941
- "Monday",
942
- "Tuesday",
943
- "Wednesday",
944
- "Thursday",
945
- "Friday",
946
- "Saturday",
947
- "Sunday"
948
- ]
949
- }
950
- },
951
- maintenanceWindowStartingHour: {
952
- serializedName: "maintenanceWindowStartingHour",
953
- type: {
954
- name: "Number"
955
- }
956
- },
957
- maintenanceWindowDuration: {
958
- serializedName: "maintenanceWindowDuration",
959
- type: {
960
- name: "Number"
961
- }
962
- }
963
- }
964
- }
965
- };
966
- const AutoBackupSettings = {
967
- type: {
968
- name: "Composite",
969
- className: "AutoBackupSettings",
970
- modelProperties: {
971
- enable: {
972
- serializedName: "enable",
973
- type: {
974
- name: "Boolean"
975
- }
976
- },
977
- enableEncryption: {
978
- serializedName: "enableEncryption",
979
- type: {
980
- name: "Boolean"
981
- }
982
- },
983
- retentionPeriod: {
984
- serializedName: "retentionPeriod",
985
- type: {
986
- name: "Number"
987
- }
988
- },
989
- storageAccountUrl: {
990
- serializedName: "storageAccountUrl",
991
- type: {
992
- name: "String"
993
- }
994
- },
995
- storageContainerName: {
996
- serializedName: "storageContainerName",
997
- type: {
998
- name: "String"
999
- }
1000
- },
1001
- storageAccessKey: {
1002
- serializedName: "storageAccessKey",
1003
- type: {
1004
- name: "String"
1005
- }
1006
- },
1007
- password: {
1008
- serializedName: "password",
1009
- type: {
1010
- name: "String"
1011
- }
1012
- },
1013
- backupSystemDbs: {
1014
- serializedName: "backupSystemDbs",
1015
- type: {
1016
- name: "Boolean"
1017
- }
1018
- },
1019
- backupScheduleType: {
1020
- serializedName: "backupScheduleType",
1021
- type: {
1022
- name: "String"
1023
- }
1024
- },
1025
- fullBackupFrequency: {
1026
- serializedName: "fullBackupFrequency",
1027
- type: {
1028
- name: "String"
1029
- }
1030
- },
1031
- daysOfWeek: {
1032
- serializedName: "daysOfWeek",
1033
- type: {
1034
- name: "Sequence",
1035
- element: {
1036
- type: {
1037
- name: "String"
1038
- }
1039
- }
1040
- }
1041
- },
1042
- fullBackupStartTime: {
1043
- serializedName: "fullBackupStartTime",
1044
- type: {
1045
- name: "Number"
1046
- }
1047
- },
1048
- fullBackupWindowHours: {
1049
- serializedName: "fullBackupWindowHours",
1050
- type: {
1051
- name: "Number"
1052
- }
1053
- },
1054
- logBackupFrequency: {
1055
- serializedName: "logBackupFrequency",
1056
- type: {
1057
- name: "Number"
1058
- }
1059
- }
1060
- }
1061
- }
1062
- };
1063
- const KeyVaultCredentialSettings = {
1064
- type: {
1065
- name: "Composite",
1066
- className: "KeyVaultCredentialSettings",
1067
- modelProperties: {
1068
- enable: {
1069
- serializedName: "enable",
1070
- type: {
1071
- name: "Boolean"
1072
- }
1073
- },
1074
- credentialName: {
1075
- serializedName: "credentialName",
1076
- type: {
1077
- name: "String"
1078
- }
1079
- },
1080
- azureKeyVaultUrl: {
1081
- serializedName: "azureKeyVaultUrl",
1082
- type: {
1083
- name: "String"
1084
- }
1085
- },
1086
- servicePrincipalName: {
1087
- serializedName: "servicePrincipalName",
1088
- type: {
1089
- name: "String"
1090
- }
1091
- },
1092
- servicePrincipalSecret: {
1093
- serializedName: "servicePrincipalSecret",
1094
- type: {
1095
- name: "String"
1096
- }
1097
- }
1098
- }
1099
- }
1100
- };
1101
- const ServerConfigurationsManagementSettings = {
1102
- type: {
1103
- name: "Composite",
1104
- className: "ServerConfigurationsManagementSettings",
1105
- modelProperties: {
1106
- sqlConnectivityUpdateSettings: {
1107
- serializedName: "sqlConnectivityUpdateSettings",
1108
- type: {
1109
- name: "Composite",
1110
- className: "SqlConnectivityUpdateSettings"
1111
- }
1112
- },
1113
- sqlWorkloadTypeUpdateSettings: {
1114
- serializedName: "sqlWorkloadTypeUpdateSettings",
1115
- type: {
1116
- name: "Composite",
1117
- className: "SqlWorkloadTypeUpdateSettings"
1118
- }
1119
- },
1120
- sqlStorageUpdateSettings: {
1121
- serializedName: "sqlStorageUpdateSettings",
1122
- type: {
1123
- name: "Composite",
1124
- className: "SqlStorageUpdateSettings"
1125
- }
1126
- },
1127
- additionalFeaturesServerConfigurations: {
1128
- serializedName: "additionalFeaturesServerConfigurations",
1129
- type: {
1130
- name: "Composite",
1131
- className: "AdditionalFeaturesServerConfigurations"
1132
- }
1133
- },
1134
- sqlInstanceSettings: {
1135
- serializedName: "sqlInstanceSettings",
1136
- type: {
1137
- name: "Composite",
1138
- className: "SQLInstanceSettings"
1139
- }
1140
- },
1141
- azureAdAuthenticationSettings: {
1142
- serializedName: "azureAdAuthenticationSettings",
1143
- type: {
1144
- name: "Composite",
1145
- className: "AADAuthenticationSettings"
1146
- }
1147
- }
1148
- }
1149
- }
1150
- };
1151
- const SqlConnectivityUpdateSettings = {
1152
- type: {
1153
- name: "Composite",
1154
- className: "SqlConnectivityUpdateSettings",
1155
- modelProperties: {
1156
- connectivityType: {
1157
- serializedName: "connectivityType",
1158
- type: {
1159
- name: "String"
1160
- }
1161
- },
1162
- port: {
1163
- serializedName: "port",
1164
- type: {
1165
- name: "Number"
1166
- }
1167
- },
1168
- sqlAuthUpdateUserName: {
1169
- serializedName: "sqlAuthUpdateUserName",
1170
- type: {
1171
- name: "String"
1172
- }
1173
- },
1174
- sqlAuthUpdatePassword: {
1175
- serializedName: "sqlAuthUpdatePassword",
1176
- type: {
1177
- name: "String"
1178
- }
1179
- }
1180
- }
1181
- }
1182
- };
1183
- const SqlWorkloadTypeUpdateSettings = {
1184
- type: {
1185
- name: "Composite",
1186
- className: "SqlWorkloadTypeUpdateSettings",
1187
- modelProperties: {
1188
- sqlWorkloadType: {
1189
- serializedName: "sqlWorkloadType",
1190
- type: {
1191
- name: "String"
1192
- }
1193
- }
1194
- }
1195
- }
1196
- };
1197
- const SqlStorageUpdateSettings = {
1198
- type: {
1199
- name: "Composite",
1200
- className: "SqlStorageUpdateSettings",
1201
- modelProperties: {
1202
- diskCount: {
1203
- serializedName: "diskCount",
1204
- type: {
1205
- name: "Number"
1206
- }
1207
- },
1208
- startingDeviceId: {
1209
- serializedName: "startingDeviceId",
1210
- type: {
1211
- name: "Number"
1212
- }
1213
- },
1214
- diskConfigurationType: {
1215
- serializedName: "diskConfigurationType",
1216
- type: {
1217
- name: "String"
1218
- }
1219
- }
1220
- }
1221
- }
1222
- };
1223
- const AdditionalFeaturesServerConfigurations = {
1224
- type: {
1225
- name: "Composite",
1226
- className: "AdditionalFeaturesServerConfigurations",
1227
- modelProperties: {
1228
- isRServicesEnabled: {
1229
- serializedName: "isRServicesEnabled",
1230
- type: {
1231
- name: "Boolean"
1232
- }
1233
- }
1234
- }
1235
- }
1236
- };
1237
- const SQLInstanceSettings = {
1238
- type: {
1239
- name: "Composite",
1240
- className: "SQLInstanceSettings",
1241
- modelProperties: {
1242
- collation: {
1243
- serializedName: "collation",
1244
- type: {
1245
- name: "String"
1246
- }
1247
- },
1248
- maxDop: {
1249
- serializedName: "maxDop",
1250
- type: {
1251
- name: "Number"
1252
- }
1253
- },
1254
- isOptimizeForAdHocWorkloadsEnabled: {
1255
- serializedName: "isOptimizeForAdHocWorkloadsEnabled",
1256
- type: {
1257
- name: "Boolean"
1258
- }
1259
- },
1260
- minServerMemoryMB: {
1261
- serializedName: "minServerMemoryMB",
1262
- type: {
1263
- name: "Number"
1264
- }
1265
- },
1266
- maxServerMemoryMB: {
1267
- serializedName: "maxServerMemoryMB",
1268
- type: {
1269
- name: "Number"
1270
- }
1271
- },
1272
- isLpimEnabled: {
1273
- serializedName: "isLpimEnabled",
1274
- type: {
1275
- name: "Boolean"
1276
- }
1277
- },
1278
- isIfiEnabled: {
1279
- serializedName: "isIfiEnabled",
1280
- type: {
1281
- name: "Boolean"
1282
- }
1283
- }
1284
- }
1285
- }
1286
- };
1287
- const AADAuthenticationSettings = {
1288
- type: {
1289
- name: "Composite",
1290
- className: "AADAuthenticationSettings",
1291
- modelProperties: {
1292
- clientId: {
1293
- serializedName: "clientId",
1294
- type: {
1295
- name: "String"
1296
- }
1297
- }
1298
- }
1299
- }
1300
- };
1301
- const StorageConfigurationSettings = {
1302
- type: {
1303
- name: "Composite",
1304
- className: "StorageConfigurationSettings",
1305
- modelProperties: {
1306
- sqlDataSettings: {
1307
- serializedName: "sqlDataSettings",
1308
- type: {
1309
- name: "Composite",
1310
- className: "SQLStorageSettings"
1311
- }
1312
- },
1313
- sqlLogSettings: {
1314
- serializedName: "sqlLogSettings",
1315
- type: {
1316
- name: "Composite",
1317
- className: "SQLStorageSettings"
1318
- }
1319
- },
1320
- sqlTempDbSettings: {
1321
- serializedName: "sqlTempDbSettings",
1322
- type: {
1323
- name: "Composite",
1324
- className: "SQLTempDbSettings"
1325
- }
1326
- },
1327
- sqlSystemDbOnDataDisk: {
1328
- serializedName: "sqlSystemDbOnDataDisk",
1329
- type: {
1330
- name: "Boolean"
1331
- }
1332
- },
1333
- diskConfigurationType: {
1334
- serializedName: "diskConfigurationType",
1335
- type: {
1336
- name: "String"
1337
- }
1338
- },
1339
- storageWorkloadType: {
1340
- serializedName: "storageWorkloadType",
1341
- type: {
1342
- name: "String"
1343
- }
1344
- }
1345
- }
1346
- }
1347
- };
1348
- const SQLStorageSettings = {
1349
- type: {
1350
- name: "Composite",
1351
- className: "SQLStorageSettings",
1352
- modelProperties: {
1353
- luns: {
1354
- serializedName: "luns",
1355
- type: {
1356
- name: "Sequence",
1357
- element: {
1358
- type: {
1359
- name: "Number"
1360
- }
1361
- }
1362
- }
1363
- },
1364
- defaultFilePath: {
1365
- serializedName: "defaultFilePath",
1366
- type: {
1367
- name: "String"
1368
- }
1369
- }
1370
- }
1371
- }
1372
- };
1373
- const SQLTempDbSettings = {
1374
- type: {
1375
- name: "Composite",
1376
- className: "SQLTempDbSettings",
1377
- modelProperties: {
1378
- dataFileSize: {
1379
- serializedName: "dataFileSize",
1380
- type: {
1381
- name: "Number"
1382
- }
1383
- },
1384
- dataGrowth: {
1385
- serializedName: "dataGrowth",
1386
- type: {
1387
- name: "Number"
1388
- }
1389
- },
1390
- logFileSize: {
1391
- serializedName: "logFileSize",
1392
- type: {
1393
- name: "Number"
1394
- }
1395
- },
1396
- logGrowth: {
1397
- serializedName: "logGrowth",
1398
- type: {
1399
- name: "Number"
1400
- }
1401
- },
1402
- dataFileCount: {
1403
- serializedName: "dataFileCount",
1404
- type: {
1405
- name: "Number"
1406
- }
1407
- },
1408
- persistFolder: {
1409
- serializedName: "persistFolder",
1410
- type: {
1411
- name: "Boolean"
1412
- }
1413
- },
1414
- persistFolderPath: {
1415
- serializedName: "persistFolderPath",
1416
- type: {
1417
- name: "String"
1418
- }
1419
- },
1420
- luns: {
1421
- serializedName: "luns",
1422
- type: {
1423
- name: "Sequence",
1424
- element: {
1425
- type: {
1426
- name: "Number"
1427
- }
1428
- }
1429
- }
1430
- },
1431
- defaultFilePath: {
1432
- serializedName: "defaultFilePath",
1433
- type: {
1434
- name: "String"
1435
- }
1436
- }
1437
- }
1438
- }
1439
- };
1440
- const TroubleshootingStatus = {
1441
- type: {
1442
- name: "Composite",
1443
- className: "TroubleshootingStatus",
1444
- modelProperties: {
1445
- rootCause: {
1446
- serializedName: "rootCause",
1447
- readOnly: true,
1448
- type: {
1449
- name: "String"
1450
- }
1451
- },
1452
- lastTriggerTimeUtc: {
1453
- serializedName: "lastTriggerTimeUtc",
1454
- readOnly: true,
1455
- type: {
1456
- name: "DateTime"
1457
- }
1458
- },
1459
- startTimeUtc: {
1460
- serializedName: "startTimeUtc",
1461
- readOnly: true,
1462
- type: {
1463
- name: "DateTime"
1464
- }
1465
- },
1466
- endTimeUtc: {
1467
- serializedName: "endTimeUtc",
1468
- readOnly: true,
1469
- type: {
1470
- name: "DateTime"
1471
- }
1472
- },
1473
- troubleshootingScenario: {
1474
- serializedName: "troubleshootingScenario",
1475
- readOnly: true,
1476
- type: {
1477
- name: "String"
1478
- }
1479
- },
1480
- properties: {
1481
- serializedName: "properties",
1482
- type: {
1483
- name: "Composite",
1484
- className: "TroubleshootingAdditionalProperties"
1485
- }
1486
- }
1487
- }
1488
- }
1489
- };
1490
- const TroubleshootingAdditionalProperties = {
1491
- type: {
1492
- name: "Composite",
1493
- className: "TroubleshootingAdditionalProperties",
1494
- modelProperties: {
1495
- unhealthyReplicaInfo: {
1496
- serializedName: "unhealthyReplicaInfo",
1497
- type: {
1498
- name: "Composite",
1499
- className: "UnhealthyReplicaInfo"
1500
- }
1501
- }
1502
- }
1503
- }
1504
- };
1505
- const UnhealthyReplicaInfo = {
1506
- type: {
1507
- name: "Composite",
1508
- className: "UnhealthyReplicaInfo",
1509
- modelProperties: {
1510
- availabilityGroupName: {
1511
- serializedName: "availabilityGroupName",
1512
- type: {
1513
- name: "String"
1514
- }
1515
- }
1516
- }
1517
- }
1518
- };
1519
- const AssessmentSettings = {
1520
- type: {
1521
- name: "Composite",
1522
- className: "AssessmentSettings",
1523
- modelProperties: {
1524
- enable: {
1525
- serializedName: "enable",
1526
- type: {
1527
- name: "Boolean"
1528
- }
1529
- },
1530
- runImmediately: {
1531
- serializedName: "runImmediately",
1532
- type: {
1533
- name: "Boolean"
1534
- }
1535
- },
1536
- schedule: {
1537
- serializedName: "schedule",
1538
- type: {
1539
- name: "Composite",
1540
- className: "Schedule"
1541
- }
1542
- }
1543
- }
1544
- }
1545
- };
1546
- const Schedule = {
1547
- type: {
1548
- name: "Composite",
1549
- className: "Schedule",
1550
- modelProperties: {
1551
- enable: {
1552
- serializedName: "enable",
1553
- type: {
1554
- name: "Boolean"
1555
- }
1556
- },
1557
- weeklyInterval: {
1558
- serializedName: "weeklyInterval",
1559
- type: {
1560
- name: "Number"
1561
- }
1562
- },
1563
- monthlyOccurrence: {
1564
- serializedName: "monthlyOccurrence",
1565
- type: {
1566
- name: "Number"
1567
- }
1568
- },
1569
- dayOfWeek: {
1570
- serializedName: "dayOfWeek",
1571
- type: {
1572
- name: "Enum",
1573
- allowedValues: [
1574
- "Monday",
1575
- "Tuesday",
1576
- "Wednesday",
1577
- "Thursday",
1578
- "Friday",
1579
- "Saturday",
1580
- "Sunday"
1581
- ]
1582
- }
1583
- },
1584
- startTime: {
1585
- serializedName: "startTime",
1586
- type: {
1587
- name: "String"
1588
- }
1589
- }
1590
- }
1591
- }
1592
- };
1593
- const SqlVirtualMachineUpdate = {
1594
- type: {
1595
- name: "Composite",
1596
- className: "SqlVirtualMachineUpdate",
1597
- modelProperties: {
1598
- tags: {
1599
- serializedName: "tags",
1600
- type: {
1601
- name: "Dictionary",
1602
- value: { type: { name: "String" } }
1603
- }
1604
- }
1605
- }
1606
- }
1607
- };
1608
- const SqlVmTroubleshooting = {
1609
- type: {
1610
- name: "Composite",
1611
- className: "SqlVmTroubleshooting",
1612
- modelProperties: {
1613
- startTimeUtc: {
1614
- serializedName: "startTimeUtc",
1615
- type: {
1616
- name: "DateTime"
1617
- }
1618
- },
1619
- endTimeUtc: {
1620
- serializedName: "endTimeUtc",
1621
- type: {
1622
- name: "DateTime"
1623
- }
1624
- },
1625
- troubleshootingScenario: {
1626
- serializedName: "troubleshootingScenario",
1627
- type: {
1628
- name: "String"
1629
- }
1630
- },
1631
- properties: {
1632
- serializedName: "properties",
1633
- type: {
1634
- name: "Composite",
1635
- className: "TroubleshootingAdditionalProperties"
1636
- }
1637
- },
1638
- virtualMachineResourceId: {
1639
- serializedName: "virtualMachineResourceId",
1640
- readOnly: true,
1641
- type: {
1642
- name: "String"
1643
- }
1644
- }
1645
- }
1646
- }
1647
- };
1648
- const ProxyResource = {
1649
- type: {
1650
- name: "Composite",
1651
- className: "ProxyResource",
1652
- modelProperties: Object.assign({}, Resource.type.modelProperties)
1653
- }
1654
- };
1655
- const TrackedResource = {
1656
- type: {
1657
- name: "Composite",
1658
- className: "TrackedResource",
1659
- modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { location: {
1660
- serializedName: "location",
1661
- required: true,
1662
- type: {
1663
- name: "String"
1664
- }
1665
- }, tags: {
1666
- serializedName: "tags",
1667
- type: {
1668
- name: "Dictionary",
1669
- value: { type: { name: "String" } }
1670
- }
1671
- } })
1672
- }
1673
- };
1674
- const AvailabilityGroupListener = {
1675
- type: {
1676
- name: "Composite",
1677
- className: "AvailabilityGroupListener",
1678
- modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { systemData: {
1679
- serializedName: "systemData",
1680
- type: {
1681
- name: "Composite",
1682
- className: "SystemData"
1683
- }
1684
- }, provisioningState: {
1685
- serializedName: "properties.provisioningState",
1686
- readOnly: true,
1687
- type: {
1688
- name: "String"
1689
- }
1690
- }, availabilityGroupName: {
1691
- serializedName: "properties.availabilityGroupName",
1692
- type: {
1693
- name: "String"
1694
- }
1695
- }, loadBalancerConfigurations: {
1696
- serializedName: "properties.loadBalancerConfigurations",
1697
- type: {
1698
- name: "Sequence",
1699
- element: {
1700
- type: {
1701
- name: "Composite",
1702
- className: "LoadBalancerConfiguration"
1703
- }
1704
- }
1705
- }
1706
- }, multiSubnetIpConfigurations: {
1707
- serializedName: "properties.multiSubnetIpConfigurations",
1708
- type: {
1709
- name: "Sequence",
1710
- element: {
1711
- type: {
1712
- name: "Composite",
1713
- className: "MultiSubnetIpConfiguration"
1714
- }
1715
- }
1716
- }
1717
- }, createDefaultAvailabilityGroupIfNotExist: {
1718
- serializedName: "properties.createDefaultAvailabilityGroupIfNotExist",
1719
- type: {
1720
- name: "Boolean"
1721
- }
1722
- }, port: {
1723
- serializedName: "properties.port",
1724
- type: {
1725
- name: "Number"
1726
- }
1727
- }, availabilityGroupConfiguration: {
1728
- serializedName: "properties.availabilityGroupConfiguration",
1729
- type: {
1730
- name: "Composite",
1731
- className: "AgConfiguration"
1732
- }
1733
- } })
1734
- }
1735
- };
1736
- const SqlVirtualMachineGroup = {
1737
- type: {
1738
- name: "Composite",
1739
- className: "SqlVirtualMachineGroup",
1740
- modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { systemData: {
1741
- serializedName: "systemData",
1742
- type: {
1743
- name: "Composite",
1744
- className: "SystemData"
1745
- }
1746
- }, provisioningState: {
1747
- serializedName: "properties.provisioningState",
1748
- readOnly: true,
1749
- type: {
1750
- name: "String"
1751
- }
1752
- }, sqlImageOffer: {
1753
- serializedName: "properties.sqlImageOffer",
1754
- type: {
1755
- name: "String"
1756
- }
1757
- }, sqlImageSku: {
1758
- serializedName: "properties.sqlImageSku",
1759
- type: {
1760
- name: "String"
1761
- }
1762
- }, scaleType: {
1763
- serializedName: "properties.scaleType",
1764
- readOnly: true,
1765
- type: {
1766
- name: "String"
1767
- }
1768
- }, clusterManagerType: {
1769
- serializedName: "properties.clusterManagerType",
1770
- readOnly: true,
1771
- type: {
1772
- name: "String"
1773
- }
1774
- }, clusterConfiguration: {
1775
- serializedName: "properties.clusterConfiguration",
1776
- readOnly: true,
1777
- type: {
1778
- name: "String"
1779
- }
1780
- }, wsfcDomainProfile: {
1781
- serializedName: "properties.wsfcDomainProfile",
1782
- type: {
1783
- name: "Composite",
1784
- className: "WsfcDomainProfile"
1785
- }
1786
- } })
1787
- }
1788
- };
1789
- const SqlVirtualMachine = {
1790
- type: {
1791
- name: "Composite",
1792
- className: "SqlVirtualMachine",
1793
- modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { identity: {
1794
- serializedName: "identity",
1795
- type: {
1796
- name: "Composite",
1797
- className: "ResourceIdentity"
1798
- }
1799
- }, systemData: {
1800
- serializedName: "systemData",
1801
- type: {
1802
- name: "Composite",
1803
- className: "SystemData"
1804
- }
1805
- }, virtualMachineResourceId: {
1806
- serializedName: "properties.virtualMachineResourceId",
1807
- type: {
1808
- name: "String"
1809
- }
1810
- }, provisioningState: {
1811
- serializedName: "properties.provisioningState",
1812
- readOnly: true,
1813
- type: {
1814
- name: "String"
1815
- }
1816
- }, sqlImageOffer: {
1817
- serializedName: "properties.sqlImageOffer",
1818
- type: {
1819
- name: "String"
1820
- }
1821
- }, sqlServerLicenseType: {
1822
- serializedName: "properties.sqlServerLicenseType",
1823
- type: {
1824
- name: "String"
1825
- }
1826
- }, sqlManagement: {
1827
- serializedName: "properties.sqlManagement",
1828
- type: {
1829
- name: "String"
1830
- }
1831
- }, leastPrivilegeMode: {
1832
- defaultValue: "NotSet",
1833
- serializedName: "properties.leastPrivilegeMode",
1834
- type: {
1835
- name: "String"
1836
- }
1837
- }, sqlImageSku: {
1838
- serializedName: "properties.sqlImageSku",
1839
- type: {
1840
- name: "String"
1841
- }
1842
- }, sqlVirtualMachineGroupResourceId: {
1843
- serializedName: "properties.sqlVirtualMachineGroupResourceId",
1844
- type: {
1845
- name: "String"
1846
- }
1847
- }, wsfcDomainCredentials: {
1848
- serializedName: "properties.wsfcDomainCredentials",
1849
- type: {
1850
- name: "Composite",
1851
- className: "WsfcDomainCredentials"
1852
- }
1853
- }, wsfcStaticIp: {
1854
- serializedName: "properties.wsfcStaticIp",
1855
- type: {
1856
- name: "String"
1857
- }
1858
- }, autoPatchingSettings: {
1859
- serializedName: "properties.autoPatchingSettings",
1860
- type: {
1861
- name: "Composite",
1862
- className: "AutoPatchingSettings"
1863
- }
1864
- }, autoBackupSettings: {
1865
- serializedName: "properties.autoBackupSettings",
1866
- type: {
1867
- name: "Composite",
1868
- className: "AutoBackupSettings"
1869
- }
1870
- }, keyVaultCredentialSettings: {
1871
- serializedName: "properties.keyVaultCredentialSettings",
1872
- type: {
1873
- name: "Composite",
1874
- className: "KeyVaultCredentialSettings"
1875
- }
1876
- }, serverConfigurationsManagementSettings: {
1877
- serializedName: "properties.serverConfigurationsManagementSettings",
1878
- type: {
1879
- name: "Composite",
1880
- className: "ServerConfigurationsManagementSettings"
1881
- }
1882
- }, storageConfigurationSettings: {
1883
- serializedName: "properties.storageConfigurationSettings",
1884
- type: {
1885
- name: "Composite",
1886
- className: "StorageConfigurationSettings"
1887
- }
1888
- }, troubleshootingStatus: {
1889
- serializedName: "properties.troubleshootingStatus",
1890
- type: {
1891
- name: "Composite",
1892
- className: "TroubleshootingStatus"
1893
- }
1894
- }, assessmentSettings: {
1895
- serializedName: "properties.assessmentSettings",
1896
- type: {
1897
- name: "Composite",
1898
- className: "AssessmentSettings"
1899
- }
1900
- }, enableAutomaticUpgrade: {
1901
- defaultValue: false,
1902
- serializedName: "properties.enableAutomaticUpgrade",
1903
- type: {
1904
- name: "Boolean"
1905
- }
1906
- } })
1907
- }
1908
- };
1909
- const AvailabilityGroupListenersDeleteHeaders = {
1910
- type: {
1911
- name: "Composite",
1912
- className: "AvailabilityGroupListenersDeleteHeaders",
1913
- modelProperties: {
1914
- location: {
1915
- serializedName: "location",
1916
- type: {
1917
- name: "String"
1918
- }
1919
- }
1920
- }
1921
- }
1922
- };
1923
- const SqlVirtualMachineGroupsDeleteHeaders = {
1924
- type: {
1925
- name: "Composite",
1926
- className: "SqlVirtualMachineGroupsDeleteHeaders",
1927
- modelProperties: {
1928
- location: {
1929
- serializedName: "location",
1930
- type: {
1931
- name: "String"
1932
- }
1933
- }
1934
- }
1935
- }
1936
- };
1937
- const SqlVirtualMachinesDeleteHeaders = {
1938
- type: {
1939
- name: "Composite",
1940
- className: "SqlVirtualMachinesDeleteHeaders",
1941
- modelProperties: {
1942
- location: {
1943
- serializedName: "location",
1944
- type: {
1945
- name: "String"
1946
- }
1947
- }
1948
- }
1949
- }
1950
- };
1951
- const SqlVirtualMachinesStartAssessmentHeaders = {
1952
- type: {
1953
- name: "Composite",
1954
- className: "SqlVirtualMachinesStartAssessmentHeaders",
1955
- modelProperties: {
1956
- location: {
1957
- serializedName: "location",
1958
- type: {
1959
- name: "String"
1960
- }
1961
- }
1962
- }
1963
- }
1964
- };
1965
- const SqlVirtualMachinesRedeployHeaders = {
1966
- type: {
1967
- name: "Composite",
1968
- className: "SqlVirtualMachinesRedeployHeaders",
1969
- modelProperties: {
1970
- location: {
1971
- serializedName: "location",
1972
- type: {
1973
- name: "String"
1974
- }
1975
- }
1976
- }
1977
- }
1978
- };
1979
- const SqlVirtualMachineTroubleshootTroubleshootHeaders = {
1980
- type: {
1981
- name: "Composite",
1982
- className: "SqlVirtualMachineTroubleshootTroubleshootHeaders",
1983
- modelProperties: {
1984
- location: {
1985
- serializedName: "location",
1986
- type: {
1987
- name: "String"
1988
- }
1989
- }
1990
- }
1991
- }
1992
- };
1993
-
1994
- var Mappers = /*#__PURE__*/Object.freeze({
1995
- __proto__: null,
1996
- LoadBalancerConfiguration: LoadBalancerConfiguration,
1997
- PrivateIPAddress: PrivateIPAddress,
1998
- MultiSubnetIpConfiguration: MultiSubnetIpConfiguration,
1999
- AgConfiguration: AgConfiguration,
2000
- AgReplica: AgReplica,
2001
- SystemData: SystemData,
2002
- Resource: Resource,
2003
- ErrorResponse: ErrorResponse,
2004
- ErrorDetail: ErrorDetail,
2005
- ErrorAdditionalInfo: ErrorAdditionalInfo,
2006
- AvailabilityGroupListenerListResult: AvailabilityGroupListenerListResult,
2007
- OperationListResult: OperationListResult,
2008
- Operation: Operation,
2009
- OperationDisplay: OperationDisplay,
2010
- WsfcDomainProfile: WsfcDomainProfile,
2011
- SqlVirtualMachineGroupUpdate: SqlVirtualMachineGroupUpdate,
2012
- SqlVirtualMachineGroupListResult: SqlVirtualMachineGroupListResult,
2013
- SqlVirtualMachineListResult: SqlVirtualMachineListResult,
2014
- ResourceIdentity: ResourceIdentity,
2015
- WsfcDomainCredentials: WsfcDomainCredentials,
2016
- AutoPatchingSettings: AutoPatchingSettings,
2017
- AutoBackupSettings: AutoBackupSettings,
2018
- KeyVaultCredentialSettings: KeyVaultCredentialSettings,
2019
- ServerConfigurationsManagementSettings: ServerConfigurationsManagementSettings,
2020
- SqlConnectivityUpdateSettings: SqlConnectivityUpdateSettings,
2021
- SqlWorkloadTypeUpdateSettings: SqlWorkloadTypeUpdateSettings,
2022
- SqlStorageUpdateSettings: SqlStorageUpdateSettings,
2023
- AdditionalFeaturesServerConfigurations: AdditionalFeaturesServerConfigurations,
2024
- SQLInstanceSettings: SQLInstanceSettings,
2025
- AADAuthenticationSettings: AADAuthenticationSettings,
2026
- StorageConfigurationSettings: StorageConfigurationSettings,
2027
- SQLStorageSettings: SQLStorageSettings,
2028
- SQLTempDbSettings: SQLTempDbSettings,
2029
- TroubleshootingStatus: TroubleshootingStatus,
2030
- TroubleshootingAdditionalProperties: TroubleshootingAdditionalProperties,
2031
- UnhealthyReplicaInfo: UnhealthyReplicaInfo,
2032
- AssessmentSettings: AssessmentSettings,
2033
- Schedule: Schedule,
2034
- SqlVirtualMachineUpdate: SqlVirtualMachineUpdate,
2035
- SqlVmTroubleshooting: SqlVmTroubleshooting,
2036
- ProxyResource: ProxyResource,
2037
- TrackedResource: TrackedResource,
2038
- AvailabilityGroupListener: AvailabilityGroupListener,
2039
- SqlVirtualMachineGroup: SqlVirtualMachineGroup,
2040
- SqlVirtualMachine: SqlVirtualMachine,
2041
- AvailabilityGroupListenersDeleteHeaders: AvailabilityGroupListenersDeleteHeaders,
2042
- SqlVirtualMachineGroupsDeleteHeaders: SqlVirtualMachineGroupsDeleteHeaders,
2043
- SqlVirtualMachinesDeleteHeaders: SqlVirtualMachinesDeleteHeaders,
2044
- SqlVirtualMachinesStartAssessmentHeaders: SqlVirtualMachinesStartAssessmentHeaders,
2045
- SqlVirtualMachinesRedeployHeaders: SqlVirtualMachinesRedeployHeaders,
2046
- SqlVirtualMachineTroubleshootTroubleshootHeaders: SqlVirtualMachineTroubleshootTroubleshootHeaders
2047
- });
2048
-
2049
- /*
2050
- * Copyright (c) Microsoft Corporation.
2051
- * Licensed under the MIT License.
2052
- *
2053
- * Code generated by Microsoft (R) AutoRest Code Generator.
2054
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2055
- */
2056
- const accept = {
2057
- parameterPath: "accept",
2058
- mapper: {
2059
- defaultValue: "application/json",
2060
- isConstant: true,
2061
- serializedName: "Accept",
2062
- type: {
2063
- name: "String"
2064
- }
2065
- }
2066
- };
2067
- const $host = {
2068
- parameterPath: "$host",
2069
- mapper: {
2070
- serializedName: "$host",
2071
- required: true,
2072
- type: {
2073
- name: "String"
2074
- }
2075
- },
2076
- skipEncoding: true
2077
- };
2078
- const resourceGroupName = {
2079
- parameterPath: "resourceGroupName",
2080
- mapper: {
2081
- serializedName: "resourceGroupName",
2082
- required: true,
2083
- type: {
2084
- name: "String"
2085
- }
2086
- }
2087
- };
2088
- const sqlVirtualMachineGroupName = {
2089
- parameterPath: "sqlVirtualMachineGroupName",
2090
- mapper: {
2091
- serializedName: "sqlVirtualMachineGroupName",
2092
- required: true,
2093
- type: {
2094
- name: "String"
2095
- }
2096
- }
2097
- };
2098
- const availabilityGroupListenerName = {
2099
- parameterPath: "availabilityGroupListenerName",
2100
- mapper: {
2101
- serializedName: "availabilityGroupListenerName",
2102
- required: true,
2103
- type: {
2104
- name: "String"
2105
- }
2106
- }
2107
- };
2108
- const expand = {
2109
- parameterPath: ["options", "expand"],
2110
- mapper: {
2111
- serializedName: "$expand",
2112
- type: {
2113
- name: "String"
2114
- }
2115
- }
2116
- };
2117
- const subscriptionId = {
2118
- parameterPath: "subscriptionId",
2119
- mapper: {
2120
- serializedName: "subscriptionId",
2121
- required: true,
2122
- type: {
2123
- name: "String"
2124
- }
2125
- }
2126
- };
2127
- const apiVersion = {
2128
- parameterPath: "apiVersion",
2129
- mapper: {
2130
- defaultValue: "2022-08-01-preview",
2131
- isConstant: true,
2132
- serializedName: "api-version",
2133
- type: {
2134
- name: "String"
2135
- }
2136
- }
2137
- };
2138
- const contentType = {
2139
- parameterPath: ["options", "contentType"],
2140
- mapper: {
2141
- defaultValue: "application/json",
2142
- isConstant: true,
2143
- serializedName: "Content-Type",
2144
- type: {
2145
- name: "String"
2146
- }
2147
- }
2148
- };
2149
- const parameters = {
2150
- parameterPath: "parameters",
2151
- mapper: AvailabilityGroupListener
2152
- };
2153
- const nextLink = {
2154
- parameterPath: "nextLink",
2155
- mapper: {
2156
- serializedName: "nextLink",
2157
- required: true,
2158
- type: {
2159
- name: "String"
2160
- }
2161
- },
2162
- skipEncoding: true
2163
- };
2164
- const parameters1 = {
2165
- parameterPath: "parameters",
2166
- mapper: SqlVirtualMachineGroup
2167
- };
2168
- const parameters2 = {
2169
- parameterPath: "parameters",
2170
- mapper: SqlVirtualMachineGroupUpdate
2171
- };
2172
- const sqlVirtualMachineName = {
2173
- parameterPath: "sqlVirtualMachineName",
2174
- mapper: {
2175
- constraints: {
2176
- Pattern: new RegExp("^((?!_)[^\\\\/\"'\\[\\]:|<>+=;,?*@&]{1,64}(?<![.-]))$"),
2177
- MaxLength: 64,
2178
- MinLength: 1
2179
- },
2180
- serializedName: "sqlVirtualMachineName",
2181
- required: true,
2182
- type: {
2183
- name: "String"
2184
- }
2185
- }
2186
- };
2187
- const parameters3 = {
2188
- parameterPath: "parameters",
2189
- mapper: SqlVirtualMachine
2190
- };
2191
- const parameters4 = {
2192
- parameterPath: "parameters",
2193
- mapper: SqlVirtualMachineUpdate
2194
- };
2195
- const parameters5 = {
2196
- parameterPath: "parameters",
2197
- mapper: SqlVmTroubleshooting
2198
- };
2199
-
2200
- /*
2201
- * Copyright (c) Microsoft Corporation.
2202
- * Licensed under the MIT License.
2203
- *
2204
- * Code generated by Microsoft (R) AutoRest Code Generator.
2205
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2206
- */
2207
- function createLroSpec(inputs) {
2208
- const { args, spec, sendOperationFn } = inputs;
2209
- return {
2210
- requestMethod: spec.httpMethod,
2211
- requestPath: spec.path,
2212
- sendInitialRequest: () => sendOperationFn(args, spec),
2213
- sendPollRequest: (path, options) => {
2214
- const restSpec = tslib.__rest(spec, ["requestBody"]);
2215
- return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
2216
- }
2217
- };
2218
- }
2219
-
2220
- /*
2221
- * Copyright (c) Microsoft Corporation.
2222
- * Licensed under the MIT License.
2223
- *
2224
- * Code generated by Microsoft (R) AutoRest Code Generator.
2225
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2226
- */
2227
- /// <reference lib="esnext.asynciterable" />
2228
- /** Class containing AvailabilityGroupListeners operations. */
2229
- class AvailabilityGroupListenersImpl {
2230
- /**
2231
- * Initialize a new instance of the class AvailabilityGroupListeners class.
2232
- * @param client Reference to the service client
2233
- */
2234
- constructor(client) {
2235
- this.client = client;
2236
- }
2237
- /**
2238
- * Lists all availability group listeners in a SQL virtual machine group.
2239
- * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
2240
- * value from the Azure Resource Manager API or the portal.
2241
- * @param sqlVirtualMachineGroupName Name of the SQL virtual machine group.
2242
- * @param options The options parameters.
2243
- */
2244
- listByGroup(resourceGroupName, sqlVirtualMachineGroupName, options) {
2245
- const iter = this.listByGroupPagingAll(resourceGroupName, sqlVirtualMachineGroupName, options);
2246
- return {
2247
- next() {
2248
- return iter.next();
2249
- },
2250
- [Symbol.asyncIterator]() {
2251
- return this;
2252
- },
2253
- byPage: (settings) => {
2254
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
2255
- throw new Error("maxPageSize is not supported by this operation.");
2256
- }
2257
- return this.listByGroupPagingPage(resourceGroupName, sqlVirtualMachineGroupName, options, settings);
2258
- }
2259
- };
2260
- }
2261
- listByGroupPagingPage(resourceGroupName, sqlVirtualMachineGroupName, options, settings) {
2262
- return tslib.__asyncGenerator(this, arguments, function* listByGroupPagingPage_1() {
2263
- let result;
2264
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
2265
- if (!continuationToken) {
2266
- result = yield tslib.__await(this._listByGroup(resourceGroupName, sqlVirtualMachineGroupName, options));
2267
- let page = result.value || [];
2268
- continuationToken = result.nextLink;
2269
- setContinuationToken(page, continuationToken);
2270
- yield yield tslib.__await(page);
2271
- }
2272
- while (continuationToken) {
2273
- result = yield tslib.__await(this._listByGroupNext(resourceGroupName, sqlVirtualMachineGroupName, continuationToken, options));
2274
- continuationToken = result.nextLink;
2275
- let page = result.value || [];
2276
- setContinuationToken(page, continuationToken);
2277
- yield yield tslib.__await(page);
2278
- }
2279
- });
2280
- }
2281
- listByGroupPagingAll(resourceGroupName, sqlVirtualMachineGroupName, options) {
2282
- return tslib.__asyncGenerator(this, arguments, function* listByGroupPagingAll_1() {
2283
- var _a, e_1, _b, _c;
2284
- try {
2285
- for (var _d = true, _e = tslib.__asyncValues(this.listByGroupPagingPage(resourceGroupName, sqlVirtualMachineGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
2286
- _c = _f.value;
2287
- _d = false;
2288
- try {
2289
- const page = _c;
2290
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2291
- }
2292
- finally {
2293
- _d = true;
2294
- }
2295
- }
2296
- }
2297
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
2298
- finally {
2299
- try {
2300
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
2301
- }
2302
- finally { if (e_1) throw e_1.error; }
2303
- }
2304
- });
2305
- }
2306
- /**
2307
- * Gets an availability group listener.
2308
- * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
2309
- * value from the Azure Resource Manager API or the portal.
2310
- * @param sqlVirtualMachineGroupName Name of the SQL virtual machine group.
2311
- * @param availabilityGroupListenerName Name of the availability group listener.
2312
- * @param options The options parameters.
2313
- */
2314
- get(resourceGroupName, sqlVirtualMachineGroupName, availabilityGroupListenerName, options) {
2315
- return this.client.sendOperationRequest({
2316
- resourceGroupName,
2317
- sqlVirtualMachineGroupName,
2318
- availabilityGroupListenerName,
2319
- options
2320
- }, getOperationSpec$2);
2321
- }
2322
- /**
2323
- * Creates or updates an availability group listener.
2324
- * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
2325
- * value from the Azure Resource Manager API or the portal.
2326
- * @param sqlVirtualMachineGroupName Name of the SQL virtual machine group.
2327
- * @param availabilityGroupListenerName Name of the availability group listener.
2328
- * @param parameters The availability group listener.
2329
- * @param options The options parameters.
2330
- */
2331
- beginCreateOrUpdate(resourceGroupName, sqlVirtualMachineGroupName, availabilityGroupListenerName, parameters, options) {
2332
- return tslib.__awaiter(this, void 0, void 0, function* () {
2333
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2334
- return this.client.sendOperationRequest(args, spec);
2335
- });
2336
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2337
- var _a;
2338
- let currentRawResponse = undefined;
2339
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2340
- const callback = (rawResponse, flatResponse) => {
2341
- currentRawResponse = rawResponse;
2342
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2343
- };
2344
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2345
- const flatResponse = yield directSendOperation(updatedArgs, spec);
2346
- return {
2347
- flatResponse,
2348
- rawResponse: {
2349
- statusCode: currentRawResponse.status,
2350
- body: currentRawResponse.parsedBody,
2351
- headers: currentRawResponse.headers.toJSON()
2352
- }
2353
- };
2354
- });
2355
- const lro = createLroSpec({
2356
- sendOperationFn,
2357
- args: {
2358
- resourceGroupName,
2359
- sqlVirtualMachineGroupName,
2360
- availabilityGroupListenerName,
2361
- parameters,
2362
- options
2363
- },
2364
- spec: createOrUpdateOperationSpec$2
2365
- });
2366
- const poller = yield coreLro.createHttpPoller(lro, {
2367
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2368
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2369
- resourceLocationConfig: "azure-async-operation"
2370
- });
2371
- yield poller.poll();
2372
- return poller;
2373
- });
2374
- }
2375
- /**
2376
- * Creates or updates an availability group listener.
2377
- * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
2378
- * value from the Azure Resource Manager API or the portal.
2379
- * @param sqlVirtualMachineGroupName Name of the SQL virtual machine group.
2380
- * @param availabilityGroupListenerName Name of the availability group listener.
2381
- * @param parameters The availability group listener.
2382
- * @param options The options parameters.
2383
- */
2384
- beginCreateOrUpdateAndWait(resourceGroupName, sqlVirtualMachineGroupName, availabilityGroupListenerName, parameters, options) {
2385
- return tslib.__awaiter(this, void 0, void 0, function* () {
2386
- const poller = yield this.beginCreateOrUpdate(resourceGroupName, sqlVirtualMachineGroupName, availabilityGroupListenerName, parameters, options);
2387
- return poller.pollUntilDone();
2388
- });
2389
- }
2390
- /**
2391
- * Deletes an availability group listener.
2392
- * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
2393
- * value from the Azure Resource Manager API or the portal.
2394
- * @param sqlVirtualMachineGroupName Name of the SQL virtual machine group.
2395
- * @param availabilityGroupListenerName Name of the availability group listener.
2396
- * @param options The options parameters.
2397
- */
2398
- beginDelete(resourceGroupName, sqlVirtualMachineGroupName, availabilityGroupListenerName, options) {
2399
- return tslib.__awaiter(this, void 0, void 0, function* () {
2400
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2401
- return this.client.sendOperationRequest(args, spec);
2402
- });
2403
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2404
- var _a;
2405
- let currentRawResponse = undefined;
2406
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2407
- const callback = (rawResponse, flatResponse) => {
2408
- currentRawResponse = rawResponse;
2409
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2410
- };
2411
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2412
- const flatResponse = yield directSendOperation(updatedArgs, spec);
2413
- return {
2414
- flatResponse,
2415
- rawResponse: {
2416
- statusCode: currentRawResponse.status,
2417
- body: currentRawResponse.parsedBody,
2418
- headers: currentRawResponse.headers.toJSON()
2419
- }
2420
- };
2421
- });
2422
- const lro = createLroSpec({
2423
- sendOperationFn,
2424
- args: {
2425
- resourceGroupName,
2426
- sqlVirtualMachineGroupName,
2427
- availabilityGroupListenerName,
2428
- options
2429
- },
2430
- spec: deleteOperationSpec$2
2431
- });
2432
- const poller = yield coreLro.createHttpPoller(lro, {
2433
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2434
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2435
- resourceLocationConfig: "location"
2436
- });
2437
- yield poller.poll();
2438
- return poller;
2439
- });
2440
- }
2441
- /**
2442
- * Deletes an availability group listener.
2443
- * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
2444
- * value from the Azure Resource Manager API or the portal.
2445
- * @param sqlVirtualMachineGroupName Name of the SQL virtual machine group.
2446
- * @param availabilityGroupListenerName Name of the availability group listener.
2447
- * @param options The options parameters.
2448
- */
2449
- beginDeleteAndWait(resourceGroupName, sqlVirtualMachineGroupName, availabilityGroupListenerName, options) {
2450
- return tslib.__awaiter(this, void 0, void 0, function* () {
2451
- const poller = yield this.beginDelete(resourceGroupName, sqlVirtualMachineGroupName, availabilityGroupListenerName, options);
2452
- return poller.pollUntilDone();
2453
- });
2454
- }
2455
- /**
2456
- * Lists all availability group listeners in a SQL virtual machine group.
2457
- * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
2458
- * value from the Azure Resource Manager API or the portal.
2459
- * @param sqlVirtualMachineGroupName Name of the SQL virtual machine group.
2460
- * @param options The options parameters.
2461
- */
2462
- _listByGroup(resourceGroupName, sqlVirtualMachineGroupName, options) {
2463
- return this.client.sendOperationRequest({ resourceGroupName, sqlVirtualMachineGroupName, options }, listByGroupOperationSpec);
2464
- }
2465
- /**
2466
- * ListByGroupNext
2467
- * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
2468
- * value from the Azure Resource Manager API or the portal.
2469
- * @param sqlVirtualMachineGroupName Name of the SQL virtual machine group.
2470
- * @param nextLink The nextLink from the previous successful call to the ListByGroup method.
2471
- * @param options The options parameters.
2472
- */
2473
- _listByGroupNext(resourceGroupName, sqlVirtualMachineGroupName, nextLink, options) {
2474
- return this.client.sendOperationRequest({ resourceGroupName, sqlVirtualMachineGroupName, nextLink, options }, listByGroupNextOperationSpec);
2475
- }
2476
- }
2477
- // Operation Specifications
2478
- const serializer$4 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
2479
- const getOperationSpec$2 = {
2480
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/{sqlVirtualMachineGroupName}/availabilityGroupListeners/{availabilityGroupListenerName}",
2481
- httpMethod: "GET",
2482
- responses: {
2483
- 200: {
2484
- bodyMapper: AvailabilityGroupListener
2485
- },
2486
- default: {
2487
- bodyMapper: ErrorResponse
2488
- }
2489
- },
2490
- queryParameters: [expand, apiVersion],
2491
- urlParameters: [
2492
- $host,
2493
- resourceGroupName,
2494
- sqlVirtualMachineGroupName,
2495
- availabilityGroupListenerName,
2496
- subscriptionId
2497
- ],
2498
- headerParameters: [accept],
2499
- serializer: serializer$4
2500
- };
2501
- const createOrUpdateOperationSpec$2 = {
2502
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/{sqlVirtualMachineGroupName}/availabilityGroupListeners/{availabilityGroupListenerName}",
2503
- httpMethod: "PUT",
2504
- responses: {
2505
- 200: {
2506
- bodyMapper: AvailabilityGroupListener
2507
- },
2508
- 201: {
2509
- bodyMapper: AvailabilityGroupListener
2510
- },
2511
- 202: {
2512
- bodyMapper: AvailabilityGroupListener
2513
- },
2514
- 204: {
2515
- bodyMapper: AvailabilityGroupListener
2516
- },
2517
- default: {
2518
- bodyMapper: ErrorResponse
2519
- }
2520
- },
2521
- requestBody: parameters,
2522
- queryParameters: [apiVersion],
2523
- urlParameters: [
2524
- $host,
2525
- resourceGroupName,
2526
- sqlVirtualMachineGroupName,
2527
- availabilityGroupListenerName,
2528
- subscriptionId
2529
- ],
2530
- headerParameters: [accept, contentType],
2531
- mediaType: "json",
2532
- serializer: serializer$4
2533
- };
2534
- const deleteOperationSpec$2 = {
2535
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/{sqlVirtualMachineGroupName}/availabilityGroupListeners/{availabilityGroupListenerName}",
2536
- httpMethod: "DELETE",
2537
- responses: {
2538
- 200: {},
2539
- 201: {},
2540
- 202: {},
2541
- 204: {},
2542
- default: {
2543
- bodyMapper: ErrorResponse
2544
- }
2545
- },
2546
- queryParameters: [apiVersion],
2547
- urlParameters: [
2548
- $host,
2549
- resourceGroupName,
2550
- sqlVirtualMachineGroupName,
2551
- availabilityGroupListenerName,
2552
- subscriptionId
2553
- ],
2554
- headerParameters: [accept],
2555
- serializer: serializer$4
2556
- };
2557
- const listByGroupOperationSpec = {
2558
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/{sqlVirtualMachineGroupName}/availabilityGroupListeners",
2559
- httpMethod: "GET",
2560
- responses: {
2561
- 200: {
2562
- bodyMapper: AvailabilityGroupListenerListResult
2563
- },
2564
- default: {
2565
- bodyMapper: ErrorResponse
2566
- }
2567
- },
2568
- queryParameters: [apiVersion],
2569
- urlParameters: [
2570
- $host,
2571
- resourceGroupName,
2572
- sqlVirtualMachineGroupName,
2573
- subscriptionId
2574
- ],
2575
- headerParameters: [accept],
2576
- serializer: serializer$4
2577
- };
2578
- const listByGroupNextOperationSpec = {
2579
- path: "{nextLink}",
2580
- httpMethod: "GET",
2581
- responses: {
2582
- 200: {
2583
- bodyMapper: AvailabilityGroupListenerListResult
2584
- },
2585
- default: {
2586
- bodyMapper: ErrorResponse
2587
- }
2588
- },
2589
- urlParameters: [
2590
- $host,
2591
- resourceGroupName,
2592
- sqlVirtualMachineGroupName,
2593
- subscriptionId,
2594
- nextLink
2595
- ],
2596
- headerParameters: [accept],
2597
- serializer: serializer$4
2598
- };
2599
-
2600
- /*
2601
- * Copyright (c) Microsoft Corporation.
2602
- * Licensed under the MIT License.
2603
- *
2604
- * Code generated by Microsoft (R) AutoRest Code Generator.
2605
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2606
- */
2607
- /// <reference lib="esnext.asynciterable" />
2608
- /** Class containing Operations operations. */
2609
- class OperationsImpl {
2610
- /**
2611
- * Initialize a new instance of the class Operations class.
2612
- * @param client Reference to the service client
2613
- */
2614
- constructor(client) {
2615
- this.client = client;
2616
- }
2617
- /**
2618
- * Lists all of the available SQL Virtual Machine Rest API operations.
2619
- * @param options The options parameters.
2620
- */
2621
- list(options) {
2622
- const iter = this.listPagingAll(options);
2623
- return {
2624
- next() {
2625
- return iter.next();
2626
- },
2627
- [Symbol.asyncIterator]() {
2628
- return this;
2629
- },
2630
- byPage: (settings) => {
2631
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
2632
- throw new Error("maxPageSize is not supported by this operation.");
2633
- }
2634
- return this.listPagingPage(options, settings);
2635
- }
2636
- };
2637
- }
2638
- listPagingPage(options, settings) {
2639
- return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
2640
- let result;
2641
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
2642
- if (!continuationToken) {
2643
- result = yield tslib.__await(this._list(options));
2644
- let page = result.value || [];
2645
- continuationToken = result.nextLink;
2646
- setContinuationToken(page, continuationToken);
2647
- yield yield tslib.__await(page);
2648
- }
2649
- while (continuationToken) {
2650
- result = yield tslib.__await(this._listNext(continuationToken, options));
2651
- continuationToken = result.nextLink;
2652
- let page = result.value || [];
2653
- setContinuationToken(page, continuationToken);
2654
- yield yield tslib.__await(page);
2655
- }
2656
- });
2657
- }
2658
- listPagingAll(options) {
2659
- return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
2660
- var _a, e_1, _b, _c;
2661
- try {
2662
- for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
2663
- _c = _f.value;
2664
- _d = false;
2665
- try {
2666
- const page = _c;
2667
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2668
- }
2669
- finally {
2670
- _d = true;
2671
- }
2672
- }
2673
- }
2674
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
2675
- finally {
2676
- try {
2677
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
2678
- }
2679
- finally { if (e_1) throw e_1.error; }
2680
- }
2681
- });
2682
- }
2683
- /**
2684
- * Lists all of the available SQL Virtual Machine Rest API operations.
2685
- * @param options The options parameters.
2686
- */
2687
- _list(options) {
2688
- return this.client.sendOperationRequest({ options }, listOperationSpec$2);
2689
- }
2690
- /**
2691
- * ListNext
2692
- * @param nextLink The nextLink from the previous successful call to the List method.
2693
- * @param options The options parameters.
2694
- */
2695
- _listNext(nextLink, options) {
2696
- return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$2);
2697
- }
2698
- }
2699
- // Operation Specifications
2700
- const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
2701
- const listOperationSpec$2 = {
2702
- path: "/providers/Microsoft.SqlVirtualMachine/operations",
2703
- httpMethod: "GET",
2704
- responses: {
2705
- 200: {
2706
- bodyMapper: OperationListResult
2707
- },
2708
- default: {
2709
- bodyMapper: ErrorResponse
2710
- }
2711
- },
2712
- queryParameters: [apiVersion],
2713
- urlParameters: [$host],
2714
- headerParameters: [accept],
2715
- serializer: serializer$3
2716
- };
2717
- const listNextOperationSpec$2 = {
2718
- path: "{nextLink}",
2719
- httpMethod: "GET",
2720
- responses: {
2721
- 200: {
2722
- bodyMapper: OperationListResult
2723
- },
2724
- default: {
2725
- bodyMapper: ErrorResponse
2726
- }
2727
- },
2728
- urlParameters: [$host, nextLink],
2729
- headerParameters: [accept],
2730
- serializer: serializer$3
2731
- };
2732
-
2733
- /*
2734
- * Copyright (c) Microsoft Corporation.
2735
- * Licensed under the MIT License.
2736
- *
2737
- * Code generated by Microsoft (R) AutoRest Code Generator.
2738
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2739
- */
2740
- /// <reference lib="esnext.asynciterable" />
2741
- /** Class containing SqlVirtualMachineGroups operations. */
2742
- class SqlVirtualMachineGroupsImpl {
2743
- /**
2744
- * Initialize a new instance of the class SqlVirtualMachineGroups class.
2745
- * @param client Reference to the service client
2746
- */
2747
- constructor(client) {
2748
- this.client = client;
2749
- }
2750
- /**
2751
- * Gets all SQL virtual machine groups in a resource group.
2752
- * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
2753
- * value from the Azure Resource Manager API or the portal.
2754
- * @param options The options parameters.
2755
- */
2756
- listByResourceGroup(resourceGroupName, options) {
2757
- const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
2758
- return {
2759
- next() {
2760
- return iter.next();
2761
- },
2762
- [Symbol.asyncIterator]() {
2763
- return this;
2764
- },
2765
- byPage: (settings) => {
2766
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
2767
- throw new Error("maxPageSize is not supported by this operation.");
2768
- }
2769
- return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
2770
- }
2771
- };
2772
- }
2773
- listByResourceGroupPagingPage(resourceGroupName, options, settings) {
2774
- return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
2775
- let result;
2776
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
2777
- if (!continuationToken) {
2778
- result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
2779
- let page = result.value || [];
2780
- continuationToken = result.nextLink;
2781
- setContinuationToken(page, continuationToken);
2782
- yield yield tslib.__await(page);
2783
- }
2784
- while (continuationToken) {
2785
- result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
2786
- continuationToken = result.nextLink;
2787
- let page = result.value || [];
2788
- setContinuationToken(page, continuationToken);
2789
- yield yield tslib.__await(page);
2790
- }
2791
- });
2792
- }
2793
- listByResourceGroupPagingAll(resourceGroupName, options) {
2794
- return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
2795
- var _a, e_1, _b, _c;
2796
- try {
2797
- for (var _d = true, _e = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
2798
- _c = _f.value;
2799
- _d = false;
2800
- try {
2801
- const page = _c;
2802
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2803
- }
2804
- finally {
2805
- _d = true;
2806
- }
2807
- }
2808
- }
2809
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
2810
- finally {
2811
- try {
2812
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
2813
- }
2814
- finally { if (e_1) throw e_1.error; }
2815
- }
2816
- });
2817
- }
2818
- /**
2819
- * Gets all SQL virtual machine groups in a subscription.
2820
- * @param options The options parameters.
2821
- */
2822
- list(options) {
2823
- const iter = this.listPagingAll(options);
2824
- return {
2825
- next() {
2826
- return iter.next();
2827
- },
2828
- [Symbol.asyncIterator]() {
2829
- return this;
2830
- },
2831
- byPage: (settings) => {
2832
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
2833
- throw new Error("maxPageSize is not supported by this operation.");
2834
- }
2835
- return this.listPagingPage(options, settings);
2836
- }
2837
- };
2838
- }
2839
- listPagingPage(options, settings) {
2840
- return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
2841
- let result;
2842
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
2843
- if (!continuationToken) {
2844
- result = yield tslib.__await(this._list(options));
2845
- let page = result.value || [];
2846
- continuationToken = result.nextLink;
2847
- setContinuationToken(page, continuationToken);
2848
- yield yield tslib.__await(page);
2849
- }
2850
- while (continuationToken) {
2851
- result = yield tslib.__await(this._listNext(continuationToken, options));
2852
- continuationToken = result.nextLink;
2853
- let page = result.value || [];
2854
- setContinuationToken(page, continuationToken);
2855
- yield yield tslib.__await(page);
2856
- }
2857
- });
2858
- }
2859
- listPagingAll(options) {
2860
- return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
2861
- var _a, e_2, _b, _c;
2862
- try {
2863
- for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
2864
- _c = _f.value;
2865
- _d = false;
2866
- try {
2867
- const page = _c;
2868
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2869
- }
2870
- finally {
2871
- _d = true;
2872
- }
2873
- }
2874
- }
2875
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
2876
- finally {
2877
- try {
2878
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
2879
- }
2880
- finally { if (e_2) throw e_2.error; }
2881
- }
2882
- });
2883
- }
2884
- /**
2885
- * Gets a SQL virtual machine group.
2886
- * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
2887
- * value from the Azure Resource Manager API or the portal.
2888
- * @param sqlVirtualMachineGroupName Name of the SQL virtual machine group.
2889
- * @param options The options parameters.
2890
- */
2891
- get(resourceGroupName, sqlVirtualMachineGroupName, options) {
2892
- return this.client.sendOperationRequest({ resourceGroupName, sqlVirtualMachineGroupName, options }, getOperationSpec$1);
2893
- }
2894
- /**
2895
- * Creates or updates a SQL virtual machine group.
2896
- * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
2897
- * value from the Azure Resource Manager API or the portal.
2898
- * @param sqlVirtualMachineGroupName Name of the SQL virtual machine group.
2899
- * @param parameters The SQL virtual machine group.
2900
- * @param options The options parameters.
2901
- */
2902
- beginCreateOrUpdate(resourceGroupName, sqlVirtualMachineGroupName, parameters, options) {
2903
- return tslib.__awaiter(this, void 0, void 0, function* () {
2904
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2905
- return this.client.sendOperationRequest(args, spec);
2906
- });
2907
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2908
- var _a;
2909
- let currentRawResponse = undefined;
2910
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2911
- const callback = (rawResponse, flatResponse) => {
2912
- currentRawResponse = rawResponse;
2913
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2914
- };
2915
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2916
- const flatResponse = yield directSendOperation(updatedArgs, spec);
2917
- return {
2918
- flatResponse,
2919
- rawResponse: {
2920
- statusCode: currentRawResponse.status,
2921
- body: currentRawResponse.parsedBody,
2922
- headers: currentRawResponse.headers.toJSON()
2923
- }
2924
- };
2925
- });
2926
- const lro = createLroSpec({
2927
- sendOperationFn,
2928
- args: {
2929
- resourceGroupName,
2930
- sqlVirtualMachineGroupName,
2931
- parameters,
2932
- options
2933
- },
2934
- spec: createOrUpdateOperationSpec$1
2935
- });
2936
- const poller = yield coreLro.createHttpPoller(lro, {
2937
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2938
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2939
- resourceLocationConfig: "azure-async-operation"
2940
- });
2941
- yield poller.poll();
2942
- return poller;
2943
- });
2944
- }
2945
- /**
2946
- * Creates or updates a SQL virtual machine group.
2947
- * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
2948
- * value from the Azure Resource Manager API or the portal.
2949
- * @param sqlVirtualMachineGroupName Name of the SQL virtual machine group.
2950
- * @param parameters The SQL virtual machine group.
2951
- * @param options The options parameters.
2952
- */
2953
- beginCreateOrUpdateAndWait(resourceGroupName, sqlVirtualMachineGroupName, parameters, options) {
2954
- return tslib.__awaiter(this, void 0, void 0, function* () {
2955
- const poller = yield this.beginCreateOrUpdate(resourceGroupName, sqlVirtualMachineGroupName, parameters, options);
2956
- return poller.pollUntilDone();
2957
- });
2958
- }
2959
- /**
2960
- * Deletes a SQL virtual machine group.
2961
- * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
2962
- * value from the Azure Resource Manager API or the portal.
2963
- * @param sqlVirtualMachineGroupName Name of the SQL virtual machine group.
2964
- * @param options The options parameters.
2965
- */
2966
- beginDelete(resourceGroupName, sqlVirtualMachineGroupName, options) {
2967
- return tslib.__awaiter(this, void 0, void 0, function* () {
2968
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2969
- return this.client.sendOperationRequest(args, spec);
2970
- });
2971
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2972
- var _a;
2973
- let currentRawResponse = undefined;
2974
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2975
- const callback = (rawResponse, flatResponse) => {
2976
- currentRawResponse = rawResponse;
2977
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2978
- };
2979
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2980
- const flatResponse = yield directSendOperation(updatedArgs, spec);
2981
- return {
2982
- flatResponse,
2983
- rawResponse: {
2984
- statusCode: currentRawResponse.status,
2985
- body: currentRawResponse.parsedBody,
2986
- headers: currentRawResponse.headers.toJSON()
2987
- }
2988
- };
2989
- });
2990
- const lro = createLroSpec({
2991
- sendOperationFn,
2992
- args: { resourceGroupName, sqlVirtualMachineGroupName, options },
2993
- spec: deleteOperationSpec$1
2994
- });
2995
- const poller = yield coreLro.createHttpPoller(lro, {
2996
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2997
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2998
- resourceLocationConfig: "location"
2999
- });
3000
- yield poller.poll();
3001
- return poller;
3002
- });
3003
- }
3004
- /**
3005
- * Deletes a SQL virtual machine group.
3006
- * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
3007
- * value from the Azure Resource Manager API or the portal.
3008
- * @param sqlVirtualMachineGroupName Name of the SQL virtual machine group.
3009
- * @param options The options parameters.
3010
- */
3011
- beginDeleteAndWait(resourceGroupName, sqlVirtualMachineGroupName, options) {
3012
- return tslib.__awaiter(this, void 0, void 0, function* () {
3013
- const poller = yield this.beginDelete(resourceGroupName, sqlVirtualMachineGroupName, options);
3014
- return poller.pollUntilDone();
3015
- });
3016
- }
3017
- /**
3018
- * Updates SQL virtual machine group tags.
3019
- * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
3020
- * value from the Azure Resource Manager API or the portal.
3021
- * @param sqlVirtualMachineGroupName Name of the SQL virtual machine group.
3022
- * @param parameters The SQL virtual machine group.
3023
- * @param options The options parameters.
3024
- */
3025
- beginUpdate(resourceGroupName, sqlVirtualMachineGroupName, parameters, options) {
3026
- return tslib.__awaiter(this, void 0, void 0, function* () {
3027
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3028
- return this.client.sendOperationRequest(args, spec);
3029
- });
3030
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3031
- var _a;
3032
- let currentRawResponse = undefined;
3033
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3034
- const callback = (rawResponse, flatResponse) => {
3035
- currentRawResponse = rawResponse;
3036
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3037
- };
3038
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3039
- const flatResponse = yield directSendOperation(updatedArgs, spec);
3040
- return {
3041
- flatResponse,
3042
- rawResponse: {
3043
- statusCode: currentRawResponse.status,
3044
- body: currentRawResponse.parsedBody,
3045
- headers: currentRawResponse.headers.toJSON()
3046
- }
3047
- };
3048
- });
3049
- const lro = createLroSpec({
3050
- sendOperationFn,
3051
- args: {
3052
- resourceGroupName,
3053
- sqlVirtualMachineGroupName,
3054
- parameters,
3055
- options
3056
- },
3057
- spec: updateOperationSpec$1
3058
- });
3059
- const poller = yield coreLro.createHttpPoller(lro, {
3060
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3061
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
3062
- resourceLocationConfig: "azure-async-operation"
3063
- });
3064
- yield poller.poll();
3065
- return poller;
3066
- });
3067
- }
3068
- /**
3069
- * Updates SQL virtual machine group tags.
3070
- * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
3071
- * value from the Azure Resource Manager API or the portal.
3072
- * @param sqlVirtualMachineGroupName Name of the SQL virtual machine group.
3073
- * @param parameters The SQL virtual machine group.
3074
- * @param options The options parameters.
3075
- */
3076
- beginUpdateAndWait(resourceGroupName, sqlVirtualMachineGroupName, parameters, options) {
3077
- return tslib.__awaiter(this, void 0, void 0, function* () {
3078
- const poller = yield this.beginUpdate(resourceGroupName, sqlVirtualMachineGroupName, parameters, options);
3079
- return poller.pollUntilDone();
3080
- });
3081
- }
3082
- /**
3083
- * Gets all SQL virtual machine groups in a resource group.
3084
- * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
3085
- * value from the Azure Resource Manager API or the portal.
3086
- * @param options The options parameters.
3087
- */
3088
- _listByResourceGroup(resourceGroupName, options) {
3089
- return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec$1);
3090
- }
3091
- /**
3092
- * Gets all SQL virtual machine groups in a subscription.
3093
- * @param options The options parameters.
3094
- */
3095
- _list(options) {
3096
- return this.client.sendOperationRequest({ options }, listOperationSpec$1);
3097
- }
3098
- /**
3099
- * ListByResourceGroupNext
3100
- * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
3101
- * value from the Azure Resource Manager API or the portal.
3102
- * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
3103
- * @param options The options parameters.
3104
- */
3105
- _listByResourceGroupNext(resourceGroupName, nextLink, options) {
3106
- return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec$1);
3107
- }
3108
- /**
3109
- * ListNext
3110
- * @param nextLink The nextLink from the previous successful call to the List method.
3111
- * @param options The options parameters.
3112
- */
3113
- _listNext(nextLink, options) {
3114
- return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$1);
3115
- }
3116
- }
3117
- // Operation Specifications
3118
- const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
3119
- const getOperationSpec$1 = {
3120
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/{sqlVirtualMachineGroupName}",
3121
- httpMethod: "GET",
3122
- responses: {
3123
- 200: {
3124
- bodyMapper: SqlVirtualMachineGroup
3125
- },
3126
- default: {
3127
- bodyMapper: ErrorResponse
3128
- }
3129
- },
3130
- queryParameters: [apiVersion],
3131
- urlParameters: [
3132
- $host,
3133
- resourceGroupName,
3134
- sqlVirtualMachineGroupName,
3135
- subscriptionId
3136
- ],
3137
- headerParameters: [accept],
3138
- serializer: serializer$2
3139
- };
3140
- const createOrUpdateOperationSpec$1 = {
3141
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/{sqlVirtualMachineGroupName}",
3142
- httpMethod: "PUT",
3143
- responses: {
3144
- 200: {
3145
- bodyMapper: SqlVirtualMachineGroup
3146
- },
3147
- 201: {
3148
- bodyMapper: SqlVirtualMachineGroup
3149
- },
3150
- 202: {
3151
- bodyMapper: SqlVirtualMachineGroup
3152
- },
3153
- 204: {
3154
- bodyMapper: SqlVirtualMachineGroup
3155
- },
3156
- default: {
3157
- bodyMapper: ErrorResponse
3158
- }
3159
- },
3160
- requestBody: parameters1,
3161
- queryParameters: [apiVersion],
3162
- urlParameters: [
3163
- $host,
3164
- resourceGroupName,
3165
- sqlVirtualMachineGroupName,
3166
- subscriptionId
3167
- ],
3168
- headerParameters: [accept, contentType],
3169
- mediaType: "json",
3170
- serializer: serializer$2
3171
- };
3172
- const deleteOperationSpec$1 = {
3173
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/{sqlVirtualMachineGroupName}",
3174
- httpMethod: "DELETE",
3175
- responses: {
3176
- 200: {},
3177
- 201: {},
3178
- 202: {},
3179
- 204: {},
3180
- default: {
3181
- bodyMapper: ErrorResponse
3182
- }
3183
- },
3184
- queryParameters: [apiVersion],
3185
- urlParameters: [
3186
- $host,
3187
- resourceGroupName,
3188
- sqlVirtualMachineGroupName,
3189
- subscriptionId
3190
- ],
3191
- headerParameters: [accept],
3192
- serializer: serializer$2
3193
- };
3194
- const updateOperationSpec$1 = {
3195
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/{sqlVirtualMachineGroupName}",
3196
- httpMethod: "PATCH",
3197
- responses: {
3198
- 200: {
3199
- bodyMapper: SqlVirtualMachineGroup
3200
- },
3201
- 201: {
3202
- bodyMapper: SqlVirtualMachineGroup
3203
- },
3204
- 202: {
3205
- bodyMapper: SqlVirtualMachineGroup
3206
- },
3207
- 204: {
3208
- bodyMapper: SqlVirtualMachineGroup
3209
- },
3210
- default: {
3211
- bodyMapper: ErrorResponse
3212
- }
3213
- },
3214
- requestBody: parameters2,
3215
- queryParameters: [apiVersion],
3216
- urlParameters: [
3217
- $host,
3218
- resourceGroupName,
3219
- sqlVirtualMachineGroupName,
3220
- subscriptionId
3221
- ],
3222
- headerParameters: [accept, contentType],
3223
- mediaType: "json",
3224
- serializer: serializer$2
3225
- };
3226
- const listByResourceGroupOperationSpec$1 = {
3227
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups",
3228
- httpMethod: "GET",
3229
- responses: {
3230
- 200: {
3231
- bodyMapper: SqlVirtualMachineGroupListResult
3232
- },
3233
- default: {
3234
- bodyMapper: ErrorResponse
3235
- }
3236
- },
3237
- queryParameters: [apiVersion],
3238
- urlParameters: [
3239
- $host,
3240
- resourceGroupName,
3241
- subscriptionId
3242
- ],
3243
- headerParameters: [accept],
3244
- serializer: serializer$2
3245
- };
3246
- const listOperationSpec$1 = {
3247
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups",
3248
- httpMethod: "GET",
3249
- responses: {
3250
- 200: {
3251
- bodyMapper: SqlVirtualMachineGroupListResult
3252
- },
3253
- default: {
3254
- bodyMapper: ErrorResponse
3255
- }
3256
- },
3257
- queryParameters: [apiVersion],
3258
- urlParameters: [$host, subscriptionId],
3259
- headerParameters: [accept],
3260
- serializer: serializer$2
3261
- };
3262
- const listByResourceGroupNextOperationSpec$1 = {
3263
- path: "{nextLink}",
3264
- httpMethod: "GET",
3265
- responses: {
3266
- 200: {
3267
- bodyMapper: SqlVirtualMachineGroupListResult
3268
- },
3269
- default: {
3270
- bodyMapper: ErrorResponse
3271
- }
3272
- },
3273
- urlParameters: [
3274
- $host,
3275
- resourceGroupName,
3276
- subscriptionId,
3277
- nextLink
3278
- ],
3279
- headerParameters: [accept],
3280
- serializer: serializer$2
3281
- };
3282
- const listNextOperationSpec$1 = {
3283
- path: "{nextLink}",
3284
- httpMethod: "GET",
3285
- responses: {
3286
- 200: {
3287
- bodyMapper: SqlVirtualMachineGroupListResult
3288
- },
3289
- default: {
3290
- bodyMapper: ErrorResponse
3291
- }
3292
- },
3293
- urlParameters: [
3294
- $host,
3295
- subscriptionId,
3296
- nextLink
3297
- ],
3298
- headerParameters: [accept],
3299
- serializer: serializer$2
3300
- };
3301
-
3302
- /*
3303
- * Copyright (c) Microsoft Corporation.
3304
- * Licensed under the MIT License.
3305
- *
3306
- * Code generated by Microsoft (R) AutoRest Code Generator.
3307
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
3308
- */
3309
- /// <reference lib="esnext.asynciterable" />
3310
- /** Class containing SqlVirtualMachines operations. */
3311
- class SqlVirtualMachinesImpl {
3312
- /**
3313
- * Initialize a new instance of the class SqlVirtualMachines class.
3314
- * @param client Reference to the service client
3315
- */
3316
- constructor(client) {
3317
- this.client = client;
3318
- }
3319
- /**
3320
- * Gets the list of sql virtual machines in a SQL virtual machine group.
3321
- * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
3322
- * value from the Azure Resource Manager API or the portal.
3323
- * @param sqlVirtualMachineGroupName Name of the SQL virtual machine group.
3324
- * @param options The options parameters.
3325
- */
3326
- listBySqlVmGroup(resourceGroupName, sqlVirtualMachineGroupName, options) {
3327
- const iter = this.listBySqlVmGroupPagingAll(resourceGroupName, sqlVirtualMachineGroupName, options);
3328
- return {
3329
- next() {
3330
- return iter.next();
3331
- },
3332
- [Symbol.asyncIterator]() {
3333
- return this;
3334
- },
3335
- byPage: (settings) => {
3336
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
3337
- throw new Error("maxPageSize is not supported by this operation.");
3338
- }
3339
- return this.listBySqlVmGroupPagingPage(resourceGroupName, sqlVirtualMachineGroupName, options, settings);
3340
- }
3341
- };
3342
- }
3343
- listBySqlVmGroupPagingPage(resourceGroupName, sqlVirtualMachineGroupName, options, settings) {
3344
- return tslib.__asyncGenerator(this, arguments, function* listBySqlVmGroupPagingPage_1() {
3345
- let result;
3346
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
3347
- if (!continuationToken) {
3348
- result = yield tslib.__await(this._listBySqlVmGroup(resourceGroupName, sqlVirtualMachineGroupName, options));
3349
- let page = result.value || [];
3350
- continuationToken = result.nextLink;
3351
- setContinuationToken(page, continuationToken);
3352
- yield yield tslib.__await(page);
3353
- }
3354
- while (continuationToken) {
3355
- result = yield tslib.__await(this._listBySqlVmGroupNext(resourceGroupName, sqlVirtualMachineGroupName, continuationToken, options));
3356
- continuationToken = result.nextLink;
3357
- let page = result.value || [];
3358
- setContinuationToken(page, continuationToken);
3359
- yield yield tslib.__await(page);
3360
- }
3361
- });
3362
- }
3363
- listBySqlVmGroupPagingAll(resourceGroupName, sqlVirtualMachineGroupName, options) {
3364
- return tslib.__asyncGenerator(this, arguments, function* listBySqlVmGroupPagingAll_1() {
3365
- var _a, e_1, _b, _c;
3366
- try {
3367
- for (var _d = true, _e = tslib.__asyncValues(this.listBySqlVmGroupPagingPage(resourceGroupName, sqlVirtualMachineGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
3368
- _c = _f.value;
3369
- _d = false;
3370
- try {
3371
- const page = _c;
3372
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
3373
- }
3374
- finally {
3375
- _d = true;
3376
- }
3377
- }
3378
- }
3379
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
3380
- finally {
3381
- try {
3382
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
3383
- }
3384
- finally { if (e_1) throw e_1.error; }
3385
- }
3386
- });
3387
- }
3388
- /**
3389
- * Gets all SQL virtual machines in a subscription.
3390
- * @param options The options parameters.
3391
- */
3392
- list(options) {
3393
- const iter = this.listPagingAll(options);
3394
- return {
3395
- next() {
3396
- return iter.next();
3397
- },
3398
- [Symbol.asyncIterator]() {
3399
- return this;
3400
- },
3401
- byPage: (settings) => {
3402
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
3403
- throw new Error("maxPageSize is not supported by this operation.");
3404
- }
3405
- return this.listPagingPage(options, settings);
3406
- }
3407
- };
3408
- }
3409
- listPagingPage(options, settings) {
3410
- return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
3411
- let result;
3412
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
3413
- if (!continuationToken) {
3414
- result = yield tslib.__await(this._list(options));
3415
- let page = result.value || [];
3416
- continuationToken = result.nextLink;
3417
- setContinuationToken(page, continuationToken);
3418
- yield yield tslib.__await(page);
3419
- }
3420
- while (continuationToken) {
3421
- result = yield tslib.__await(this._listNext(continuationToken, options));
3422
- continuationToken = result.nextLink;
3423
- let page = result.value || [];
3424
- setContinuationToken(page, continuationToken);
3425
- yield yield tslib.__await(page);
3426
- }
3427
- });
3428
- }
3429
- listPagingAll(options) {
3430
- return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
3431
- var _a, e_2, _b, _c;
3432
- try {
3433
- for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
3434
- _c = _f.value;
3435
- _d = false;
3436
- try {
3437
- const page = _c;
3438
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
3439
- }
3440
- finally {
3441
- _d = true;
3442
- }
3443
- }
3444
- }
3445
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
3446
- finally {
3447
- try {
3448
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
3449
- }
3450
- finally { if (e_2) throw e_2.error; }
3451
- }
3452
- });
3453
- }
3454
- /**
3455
- * Gets all SQL virtual machines in a resource group.
3456
- * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
3457
- * value from the Azure Resource Manager API or the portal.
3458
- * @param options The options parameters.
3459
- */
3460
- listByResourceGroup(resourceGroupName, options) {
3461
- const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
3462
- return {
3463
- next() {
3464
- return iter.next();
3465
- },
3466
- [Symbol.asyncIterator]() {
3467
- return this;
3468
- },
3469
- byPage: (settings) => {
3470
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
3471
- throw new Error("maxPageSize is not supported by this operation.");
3472
- }
3473
- return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
3474
- }
3475
- };
3476
- }
3477
- listByResourceGroupPagingPage(resourceGroupName, options, settings) {
3478
- return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
3479
- let result;
3480
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
3481
- if (!continuationToken) {
3482
- result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
3483
- let page = result.value || [];
3484
- continuationToken = result.nextLink;
3485
- setContinuationToken(page, continuationToken);
3486
- yield yield tslib.__await(page);
3487
- }
3488
- while (continuationToken) {
3489
- result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
3490
- continuationToken = result.nextLink;
3491
- let page = result.value || [];
3492
- setContinuationToken(page, continuationToken);
3493
- yield yield tslib.__await(page);
3494
- }
3495
- });
3496
- }
3497
- listByResourceGroupPagingAll(resourceGroupName, options) {
3498
- return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
3499
- var _a, e_3, _b, _c;
3500
- try {
3501
- for (var _d = true, _e = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
3502
- _c = _f.value;
3503
- _d = false;
3504
- try {
3505
- const page = _c;
3506
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
3507
- }
3508
- finally {
3509
- _d = true;
3510
- }
3511
- }
3512
- }
3513
- catch (e_3_1) { e_3 = { error: e_3_1 }; }
3514
- finally {
3515
- try {
3516
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
3517
- }
3518
- finally { if (e_3) throw e_3.error; }
3519
- }
3520
- });
3521
- }
3522
- /**
3523
- * Gets the list of sql virtual machines in a SQL virtual machine group.
3524
- * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
3525
- * value from the Azure Resource Manager API or the portal.
3526
- * @param sqlVirtualMachineGroupName Name of the SQL virtual machine group.
3527
- * @param options The options parameters.
3528
- */
3529
- _listBySqlVmGroup(resourceGroupName, sqlVirtualMachineGroupName, options) {
3530
- return this.client.sendOperationRequest({ resourceGroupName, sqlVirtualMachineGroupName, options }, listBySqlVmGroupOperationSpec);
3531
- }
3532
- /**
3533
- * Gets all SQL virtual machines in a subscription.
3534
- * @param options The options parameters.
3535
- */
3536
- _list(options) {
3537
- return this.client.sendOperationRequest({ options }, listOperationSpec);
3538
- }
3539
- /**
3540
- * Gets a SQL virtual machine.
3541
- * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
3542
- * value from the Azure Resource Manager API or the portal.
3543
- * @param sqlVirtualMachineName Name of the SQL virtual machine.
3544
- * @param options The options parameters.
3545
- */
3546
- get(resourceGroupName, sqlVirtualMachineName, options) {
3547
- return this.client.sendOperationRequest({ resourceGroupName, sqlVirtualMachineName, options }, getOperationSpec);
3548
- }
3549
- /**
3550
- * Creates or updates a SQL virtual machine.
3551
- * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
3552
- * value from the Azure Resource Manager API or the portal.
3553
- * @param sqlVirtualMachineName Name of the SQL virtual machine.
3554
- * @param parameters The SQL virtual machine.
3555
- * @param options The options parameters.
3556
- */
3557
- beginCreateOrUpdate(resourceGroupName, sqlVirtualMachineName, parameters, options) {
3558
- return tslib.__awaiter(this, void 0, void 0, function* () {
3559
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3560
- return this.client.sendOperationRequest(args, spec);
3561
- });
3562
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3563
- var _a;
3564
- let currentRawResponse = undefined;
3565
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3566
- const callback = (rawResponse, flatResponse) => {
3567
- currentRawResponse = rawResponse;
3568
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3569
- };
3570
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3571
- const flatResponse = yield directSendOperation(updatedArgs, spec);
3572
- return {
3573
- flatResponse,
3574
- rawResponse: {
3575
- statusCode: currentRawResponse.status,
3576
- body: currentRawResponse.parsedBody,
3577
- headers: currentRawResponse.headers.toJSON()
3578
- }
3579
- };
3580
- });
3581
- const lro = createLroSpec({
3582
- sendOperationFn,
3583
- args: { resourceGroupName, sqlVirtualMachineName, parameters, options },
3584
- spec: createOrUpdateOperationSpec
3585
- });
3586
- const poller = yield coreLro.createHttpPoller(lro, {
3587
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3588
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
3589
- resourceLocationConfig: "azure-async-operation"
3590
- });
3591
- yield poller.poll();
3592
- return poller;
3593
- });
3594
- }
3595
- /**
3596
- * Creates or updates a SQL virtual machine.
3597
- * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
3598
- * value from the Azure Resource Manager API or the portal.
3599
- * @param sqlVirtualMachineName Name of the SQL virtual machine.
3600
- * @param parameters The SQL virtual machine.
3601
- * @param options The options parameters.
3602
- */
3603
- beginCreateOrUpdateAndWait(resourceGroupName, sqlVirtualMachineName, parameters, options) {
3604
- return tslib.__awaiter(this, void 0, void 0, function* () {
3605
- const poller = yield this.beginCreateOrUpdate(resourceGroupName, sqlVirtualMachineName, parameters, options);
3606
- return poller.pollUntilDone();
3607
- });
3608
- }
3609
- /**
3610
- * Deletes a SQL virtual machine.
3611
- * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
3612
- * value from the Azure Resource Manager API or the portal.
3613
- * @param sqlVirtualMachineName Name of the SQL virtual machine.
3614
- * @param options The options parameters.
3615
- */
3616
- beginDelete(resourceGroupName, sqlVirtualMachineName, options) {
3617
- return tslib.__awaiter(this, void 0, void 0, function* () {
3618
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3619
- return this.client.sendOperationRequest(args, spec);
3620
- });
3621
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3622
- var _a;
3623
- let currentRawResponse = undefined;
3624
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3625
- const callback = (rawResponse, flatResponse) => {
3626
- currentRawResponse = rawResponse;
3627
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3628
- };
3629
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3630
- const flatResponse = yield directSendOperation(updatedArgs, spec);
3631
- return {
3632
- flatResponse,
3633
- rawResponse: {
3634
- statusCode: currentRawResponse.status,
3635
- body: currentRawResponse.parsedBody,
3636
- headers: currentRawResponse.headers.toJSON()
3637
- }
3638
- };
3639
- });
3640
- const lro = createLroSpec({
3641
- sendOperationFn,
3642
- args: { resourceGroupName, sqlVirtualMachineName, options },
3643
- spec: deleteOperationSpec
3644
- });
3645
- const poller = yield coreLro.createHttpPoller(lro, {
3646
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3647
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
3648
- resourceLocationConfig: "location"
3649
- });
3650
- yield poller.poll();
3651
- return poller;
3652
- });
3653
- }
3654
- /**
3655
- * Deletes a SQL virtual machine.
3656
- * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
3657
- * value from the Azure Resource Manager API or the portal.
3658
- * @param sqlVirtualMachineName Name of the SQL virtual machine.
3659
- * @param options The options parameters.
3660
- */
3661
- beginDeleteAndWait(resourceGroupName, sqlVirtualMachineName, options) {
3662
- return tslib.__awaiter(this, void 0, void 0, function* () {
3663
- const poller = yield this.beginDelete(resourceGroupName, sqlVirtualMachineName, options);
3664
- return poller.pollUntilDone();
3665
- });
3666
- }
3667
- /**
3668
- * Updates a SQL virtual machine.
3669
- * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
3670
- * value from the Azure Resource Manager API or the portal.
3671
- * @param sqlVirtualMachineName Name of the SQL virtual machine.
3672
- * @param parameters The SQL virtual machine.
3673
- * @param options The options parameters.
3674
- */
3675
- beginUpdate(resourceGroupName, sqlVirtualMachineName, parameters, options) {
3676
- return tslib.__awaiter(this, void 0, void 0, function* () {
3677
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3678
- return this.client.sendOperationRequest(args, spec);
3679
- });
3680
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3681
- var _a;
3682
- let currentRawResponse = undefined;
3683
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3684
- const callback = (rawResponse, flatResponse) => {
3685
- currentRawResponse = rawResponse;
3686
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3687
- };
3688
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3689
- const flatResponse = yield directSendOperation(updatedArgs, spec);
3690
- return {
3691
- flatResponse,
3692
- rawResponse: {
3693
- statusCode: currentRawResponse.status,
3694
- body: currentRawResponse.parsedBody,
3695
- headers: currentRawResponse.headers.toJSON()
3696
- }
3697
- };
3698
- });
3699
- const lro = createLroSpec({
3700
- sendOperationFn,
3701
- args: { resourceGroupName, sqlVirtualMachineName, parameters, options },
3702
- spec: updateOperationSpec
3703
- });
3704
- const poller = yield coreLro.createHttpPoller(lro, {
3705
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3706
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
3707
- resourceLocationConfig: "azure-async-operation"
3708
- });
3709
- yield poller.poll();
3710
- return poller;
3711
- });
3712
- }
3713
- /**
3714
- * Updates a SQL virtual machine.
3715
- * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
3716
- * value from the Azure Resource Manager API or the portal.
3717
- * @param sqlVirtualMachineName Name of the SQL virtual machine.
3718
- * @param parameters The SQL virtual machine.
3719
- * @param options The options parameters.
3720
- */
3721
- beginUpdateAndWait(resourceGroupName, sqlVirtualMachineName, parameters, options) {
3722
- return tslib.__awaiter(this, void 0, void 0, function* () {
3723
- const poller = yield this.beginUpdate(resourceGroupName, sqlVirtualMachineName, parameters, options);
3724
- return poller.pollUntilDone();
3725
- });
3726
- }
3727
- /**
3728
- * Gets all SQL virtual machines in a resource group.
3729
- * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
3730
- * value from the Azure Resource Manager API or the portal.
3731
- * @param options The options parameters.
3732
- */
3733
- _listByResourceGroup(resourceGroupName, options) {
3734
- return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
3735
- }
3736
- /**
3737
- * Starts SQL best practices Assessment on SQL virtual machine.
3738
- * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
3739
- * value from the Azure Resource Manager API or the portal.
3740
- * @param sqlVirtualMachineName Name of the SQL virtual machine.
3741
- * @param options The options parameters.
3742
- */
3743
- beginStartAssessment(resourceGroupName, sqlVirtualMachineName, options) {
3744
- return tslib.__awaiter(this, void 0, void 0, function* () {
3745
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3746
- return this.client.sendOperationRequest(args, spec);
3747
- });
3748
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3749
- var _a;
3750
- let currentRawResponse = undefined;
3751
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3752
- const callback = (rawResponse, flatResponse) => {
3753
- currentRawResponse = rawResponse;
3754
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3755
- };
3756
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3757
- const flatResponse = yield directSendOperation(updatedArgs, spec);
3758
- return {
3759
- flatResponse,
3760
- rawResponse: {
3761
- statusCode: currentRawResponse.status,
3762
- body: currentRawResponse.parsedBody,
3763
- headers: currentRawResponse.headers.toJSON()
3764
- }
3765
- };
3766
- });
3767
- const lro = createLroSpec({
3768
- sendOperationFn,
3769
- args: { resourceGroupName, sqlVirtualMachineName, options },
3770
- spec: startAssessmentOperationSpec
3771
- });
3772
- const poller = yield coreLro.createHttpPoller(lro, {
3773
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3774
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
3775
- resourceLocationConfig: "location"
3776
- });
3777
- yield poller.poll();
3778
- return poller;
3779
- });
3780
- }
3781
- /**
3782
- * Starts SQL best practices Assessment on SQL virtual machine.
3783
- * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
3784
- * value from the Azure Resource Manager API or the portal.
3785
- * @param sqlVirtualMachineName Name of the SQL virtual machine.
3786
- * @param options The options parameters.
3787
- */
3788
- beginStartAssessmentAndWait(resourceGroupName, sqlVirtualMachineName, options) {
3789
- return tslib.__awaiter(this, void 0, void 0, function* () {
3790
- const poller = yield this.beginStartAssessment(resourceGroupName, sqlVirtualMachineName, options);
3791
- return poller.pollUntilDone();
3792
- });
3793
- }
3794
- /**
3795
- * Uninstalls and reinstalls the SQL IaaS Extension.
3796
- * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
3797
- * value from the Azure Resource Manager API or the portal.
3798
- * @param sqlVirtualMachineName Name of the SQL virtual machine.
3799
- * @param options The options parameters.
3800
- */
3801
- beginRedeploy(resourceGroupName, sqlVirtualMachineName, options) {
3802
- return tslib.__awaiter(this, void 0, void 0, function* () {
3803
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3804
- return this.client.sendOperationRequest(args, spec);
3805
- });
3806
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3807
- var _a;
3808
- let currentRawResponse = undefined;
3809
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3810
- const callback = (rawResponse, flatResponse) => {
3811
- currentRawResponse = rawResponse;
3812
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3813
- };
3814
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3815
- const flatResponse = yield directSendOperation(updatedArgs, spec);
3816
- return {
3817
- flatResponse,
3818
- rawResponse: {
3819
- statusCode: currentRawResponse.status,
3820
- body: currentRawResponse.parsedBody,
3821
- headers: currentRawResponse.headers.toJSON()
3822
- }
3823
- };
3824
- });
3825
- const lro = createLroSpec({
3826
- sendOperationFn,
3827
- args: { resourceGroupName, sqlVirtualMachineName, options },
3828
- spec: redeployOperationSpec
3829
- });
3830
- const poller = yield coreLro.createHttpPoller(lro, {
3831
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3832
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
3833
- resourceLocationConfig: "location"
3834
- });
3835
- yield poller.poll();
3836
- return poller;
3837
- });
3838
- }
3839
- /**
3840
- * Uninstalls and reinstalls the SQL IaaS Extension.
3841
- * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
3842
- * value from the Azure Resource Manager API or the portal.
3843
- * @param sqlVirtualMachineName Name of the SQL virtual machine.
3844
- * @param options The options parameters.
3845
- */
3846
- beginRedeployAndWait(resourceGroupName, sqlVirtualMachineName, options) {
3847
- return tslib.__awaiter(this, void 0, void 0, function* () {
3848
- const poller = yield this.beginRedeploy(resourceGroupName, sqlVirtualMachineName, options);
3849
- return poller.pollUntilDone();
3850
- });
3851
- }
3852
- /**
3853
- * ListBySqlVmGroupNext
3854
- * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
3855
- * value from the Azure Resource Manager API or the portal.
3856
- * @param sqlVirtualMachineGroupName Name of the SQL virtual machine group.
3857
- * @param nextLink The nextLink from the previous successful call to the ListBySqlVmGroup method.
3858
- * @param options The options parameters.
3859
- */
3860
- _listBySqlVmGroupNext(resourceGroupName, sqlVirtualMachineGroupName, nextLink, options) {
3861
- return this.client.sendOperationRequest({ resourceGroupName, sqlVirtualMachineGroupName, nextLink, options }, listBySqlVmGroupNextOperationSpec);
3862
- }
3863
- /**
3864
- * ListNext
3865
- * @param nextLink The nextLink from the previous successful call to the List method.
3866
- * @param options The options parameters.
3867
- */
3868
- _listNext(nextLink, options) {
3869
- return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
3870
- }
3871
- /**
3872
- * ListByResourceGroupNext
3873
- * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
3874
- * value from the Azure Resource Manager API or the portal.
3875
- * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
3876
- * @param options The options parameters.
3877
- */
3878
- _listByResourceGroupNext(resourceGroupName, nextLink, options) {
3879
- return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
3880
- }
3881
- }
3882
- // Operation Specifications
3883
- const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
3884
- const listBySqlVmGroupOperationSpec = {
3885
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/{sqlVirtualMachineGroupName}/sqlVirtualMachines",
3886
- httpMethod: "GET",
3887
- responses: {
3888
- 200: {
3889
- bodyMapper: SqlVirtualMachineListResult
3890
- },
3891
- default: {
3892
- bodyMapper: ErrorResponse
3893
- }
3894
- },
3895
- queryParameters: [apiVersion],
3896
- urlParameters: [
3897
- $host,
3898
- resourceGroupName,
3899
- sqlVirtualMachineGroupName,
3900
- subscriptionId
3901
- ],
3902
- headerParameters: [accept],
3903
- serializer: serializer$1
3904
- };
3905
- const listOperationSpec = {
3906
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines",
3907
- httpMethod: "GET",
3908
- responses: {
3909
- 200: {
3910
- bodyMapper: SqlVirtualMachineListResult
3911
- },
3912
- default: {
3913
- bodyMapper: ErrorResponse
3914
- }
3915
- },
3916
- queryParameters: [apiVersion],
3917
- urlParameters: [$host, subscriptionId],
3918
- headerParameters: [accept],
3919
- serializer: serializer$1
3920
- };
3921
- const getOperationSpec = {
3922
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}",
3923
- httpMethod: "GET",
3924
- responses: {
3925
- 200: {
3926
- bodyMapper: SqlVirtualMachine
3927
- },
3928
- default: {
3929
- bodyMapper: ErrorResponse
3930
- }
3931
- },
3932
- queryParameters: [expand, apiVersion],
3933
- urlParameters: [
3934
- $host,
3935
- resourceGroupName,
3936
- subscriptionId,
3937
- sqlVirtualMachineName
3938
- ],
3939
- headerParameters: [accept],
3940
- serializer: serializer$1
3941
- };
3942
- const createOrUpdateOperationSpec = {
3943
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}",
3944
- httpMethod: "PUT",
3945
- responses: {
3946
- 200: {
3947
- bodyMapper: SqlVirtualMachine
3948
- },
3949
- 201: {
3950
- bodyMapper: SqlVirtualMachine
3951
- },
3952
- 202: {
3953
- bodyMapper: SqlVirtualMachine
3954
- },
3955
- 204: {
3956
- bodyMapper: SqlVirtualMachine
3957
- },
3958
- default: {
3959
- bodyMapper: ErrorResponse
3960
- }
3961
- },
3962
- requestBody: parameters3,
3963
- queryParameters: [apiVersion],
3964
- urlParameters: [
3965
- $host,
3966
- resourceGroupName,
3967
- subscriptionId,
3968
- sqlVirtualMachineName
3969
- ],
3970
- headerParameters: [accept, contentType],
3971
- mediaType: "json",
3972
- serializer: serializer$1
3973
- };
3974
- const deleteOperationSpec = {
3975
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}",
3976
- httpMethod: "DELETE",
3977
- responses: {
3978
- 200: {},
3979
- 201: {},
3980
- 202: {},
3981
- 204: {},
3982
- default: {
3983
- bodyMapper: ErrorResponse
3984
- }
3985
- },
3986
- queryParameters: [apiVersion],
3987
- urlParameters: [
3988
- $host,
3989
- resourceGroupName,
3990
- subscriptionId,
3991
- sqlVirtualMachineName
3992
- ],
3993
- headerParameters: [accept],
3994
- serializer: serializer$1
3995
- };
3996
- const updateOperationSpec = {
3997
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}",
3998
- httpMethod: "PATCH",
3999
- responses: {
4000
- 200: {
4001
- bodyMapper: SqlVirtualMachine
4002
- },
4003
- 201: {
4004
- bodyMapper: SqlVirtualMachine
4005
- },
4006
- 202: {
4007
- bodyMapper: SqlVirtualMachine
4008
- },
4009
- 204: {
4010
- bodyMapper: SqlVirtualMachine
4011
- },
4012
- default: {
4013
- bodyMapper: ErrorResponse
4014
- }
4015
- },
4016
- requestBody: parameters4,
4017
- queryParameters: [apiVersion],
4018
- urlParameters: [
4019
- $host,
4020
- resourceGroupName,
4021
- subscriptionId,
4022
- sqlVirtualMachineName
4023
- ],
4024
- headerParameters: [accept, contentType],
4025
- mediaType: "json",
4026
- serializer: serializer$1
4027
- };
4028
- const listByResourceGroupOperationSpec = {
4029
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines",
4030
- httpMethod: "GET",
4031
- responses: {
4032
- 200: {
4033
- bodyMapper: SqlVirtualMachineListResult
4034
- },
4035
- default: {
4036
- bodyMapper: ErrorResponse
4037
- }
4038
- },
4039
- queryParameters: [apiVersion],
4040
- urlParameters: [
4041
- $host,
4042
- resourceGroupName,
4043
- subscriptionId
4044
- ],
4045
- headerParameters: [accept],
4046
- serializer: serializer$1
4047
- };
4048
- const startAssessmentOperationSpec = {
4049
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}/startAssessment",
4050
- httpMethod: "POST",
4051
- responses: {
4052
- 200: {},
4053
- 201: {},
4054
- 202: {},
4055
- 204: {},
4056
- default: {
4057
- bodyMapper: ErrorResponse
4058
- }
4059
- },
4060
- queryParameters: [apiVersion],
4061
- urlParameters: [
4062
- $host,
4063
- resourceGroupName,
4064
- subscriptionId,
4065
- sqlVirtualMachineName
4066
- ],
4067
- headerParameters: [accept],
4068
- serializer: serializer$1
4069
- };
4070
- const redeployOperationSpec = {
4071
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}/redeploy",
4072
- httpMethod: "POST",
4073
- responses: {
4074
- 200: {},
4075
- 201: {},
4076
- 202: {},
4077
- 204: {},
4078
- default: {
4079
- bodyMapper: ErrorResponse
4080
- }
4081
- },
4082
- queryParameters: [apiVersion],
4083
- urlParameters: [
4084
- $host,
4085
- resourceGroupName,
4086
- subscriptionId,
4087
- sqlVirtualMachineName
4088
- ],
4089
- headerParameters: [accept],
4090
- serializer: serializer$1
4091
- };
4092
- const listBySqlVmGroupNextOperationSpec = {
4093
- path: "{nextLink}",
4094
- httpMethod: "GET",
4095
- responses: {
4096
- 200: {
4097
- bodyMapper: SqlVirtualMachineListResult
4098
- },
4099
- default: {
4100
- bodyMapper: ErrorResponse
4101
- }
4102
- },
4103
- urlParameters: [
4104
- $host,
4105
- resourceGroupName,
4106
- sqlVirtualMachineGroupName,
4107
- subscriptionId,
4108
- nextLink
4109
- ],
4110
- headerParameters: [accept],
4111
- serializer: serializer$1
4112
- };
4113
- const listNextOperationSpec = {
4114
- path: "{nextLink}",
4115
- httpMethod: "GET",
4116
- responses: {
4117
- 200: {
4118
- bodyMapper: SqlVirtualMachineListResult
4119
- },
4120
- default: {
4121
- bodyMapper: ErrorResponse
4122
- }
4123
- },
4124
- urlParameters: [
4125
- $host,
4126
- subscriptionId,
4127
- nextLink
4128
- ],
4129
- headerParameters: [accept],
4130
- serializer: serializer$1
4131
- };
4132
- const listByResourceGroupNextOperationSpec = {
4133
- path: "{nextLink}",
4134
- httpMethod: "GET",
4135
- responses: {
4136
- 200: {
4137
- bodyMapper: SqlVirtualMachineListResult
4138
- },
4139
- default: {
4140
- bodyMapper: ErrorResponse
4141
- }
4142
- },
4143
- urlParameters: [
4144
- $host,
4145
- resourceGroupName,
4146
- subscriptionId,
4147
- nextLink
4148
- ],
4149
- headerParameters: [accept],
4150
- serializer: serializer$1
4151
- };
4152
-
4153
- /*
4154
- * Copyright (c) Microsoft Corporation.
4155
- * Licensed under the MIT License.
4156
- *
4157
- * Code generated by Microsoft (R) AutoRest Code Generator.
4158
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
4159
- */
4160
- /** Class containing SqlVirtualMachineTroubleshoot operations. */
4161
- class SqlVirtualMachineTroubleshootImpl {
4162
- /**
4163
- * Initialize a new instance of the class SqlVirtualMachineTroubleshoot class.
4164
- * @param client Reference to the service client
4165
- */
4166
- constructor(client) {
4167
- this.client = client;
4168
- }
4169
- /**
4170
- * Starts SQL virtual machine troubleshooting.
4171
- * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
4172
- * value from the Azure Resource Manager API or the portal.
4173
- * @param sqlVirtualMachineName Name of the SQL virtual machine.
4174
- * @param parameters The SQL virtual machine troubleshooting entity.
4175
- * @param options The options parameters.
4176
- */
4177
- beginTroubleshoot(resourceGroupName, sqlVirtualMachineName, parameters, options) {
4178
- return tslib.__awaiter(this, void 0, void 0, function* () {
4179
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4180
- return this.client.sendOperationRequest(args, spec);
4181
- });
4182
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4183
- var _a;
4184
- let currentRawResponse = undefined;
4185
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
4186
- const callback = (rawResponse, flatResponse) => {
4187
- currentRawResponse = rawResponse;
4188
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
4189
- };
4190
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
4191
- const flatResponse = yield directSendOperation(updatedArgs, spec);
4192
- return {
4193
- flatResponse,
4194
- rawResponse: {
4195
- statusCode: currentRawResponse.status,
4196
- body: currentRawResponse.parsedBody,
4197
- headers: currentRawResponse.headers.toJSON()
4198
- }
4199
- };
4200
- });
4201
- const lro = createLroSpec({
4202
- sendOperationFn,
4203
- args: { resourceGroupName, sqlVirtualMachineName, parameters, options },
4204
- spec: troubleshootOperationSpec
4205
- });
4206
- const poller = yield coreLro.createHttpPoller(lro, {
4207
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
4208
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
4209
- resourceLocationConfig: "location"
4210
- });
4211
- yield poller.poll();
4212
- return poller;
4213
- });
4214
- }
4215
- /**
4216
- * Starts SQL virtual machine troubleshooting.
4217
- * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
4218
- * value from the Azure Resource Manager API or the portal.
4219
- * @param sqlVirtualMachineName Name of the SQL virtual machine.
4220
- * @param parameters The SQL virtual machine troubleshooting entity.
4221
- * @param options The options parameters.
4222
- */
4223
- beginTroubleshootAndWait(resourceGroupName, sqlVirtualMachineName, parameters, options) {
4224
- return tslib.__awaiter(this, void 0, void 0, function* () {
4225
- const poller = yield this.beginTroubleshoot(resourceGroupName, sqlVirtualMachineName, parameters, options);
4226
- return poller.pollUntilDone();
4227
- });
4228
- }
4229
- }
4230
- // Operation Specifications
4231
- const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
4232
- const troubleshootOperationSpec = {
4233
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}/troubleshoot",
4234
- httpMethod: "POST",
4235
- responses: {
4236
- 200: {
4237
- bodyMapper: SqlVmTroubleshooting
4238
- },
4239
- 201: {
4240
- bodyMapper: SqlVmTroubleshooting
4241
- },
4242
- 202: {
4243
- bodyMapper: SqlVmTroubleshooting
4244
- },
4245
- 204: {
4246
- bodyMapper: SqlVmTroubleshooting
4247
- },
4248
- default: {
4249
- bodyMapper: ErrorResponse
4250
- }
4251
- },
4252
- requestBody: parameters5,
4253
- queryParameters: [apiVersion],
4254
- urlParameters: [
4255
- $host,
4256
- resourceGroupName,
4257
- subscriptionId,
4258
- sqlVirtualMachineName
4259
- ],
4260
- headerParameters: [accept, contentType],
4261
- mediaType: "json",
4262
- serializer
4263
- };
4264
-
4265
- /*
4266
- * Copyright (c) Microsoft Corporation.
4267
- * Licensed under the MIT License.
4268
- *
4269
- * Code generated by Microsoft (R) AutoRest Code Generator.
4270
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
4271
- */
4272
- class SqlVirtualMachineManagementClient extends coreClient__namespace.ServiceClient {
4273
- /**
4274
- * Initializes a new instance of the SqlVirtualMachineManagementClient class.
4275
- * @param credentials Subscription credentials which uniquely identify client subscription.
4276
- * @param subscriptionId Subscription ID that identifies an Azure subscription.
4277
- * @param options The parameter options
4278
- */
4279
- constructor(credentials, subscriptionId, options) {
4280
- var _a, _b, _c;
4281
- if (credentials === undefined) {
4282
- throw new Error("'credentials' cannot be null");
4283
- }
4284
- if (subscriptionId === undefined) {
4285
- throw new Error("'subscriptionId' cannot be null");
4286
- }
4287
- // Initializing default values for options
4288
- if (!options) {
4289
- options = {};
4290
- }
4291
- const defaults = {
4292
- requestContentType: "application/json; charset=utf-8",
4293
- credential: credentials
4294
- };
4295
- const packageDetails = `azsdk-js-arm-sqlvirtualmachine/5.0.0-beta.8`;
4296
- const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
4297
- ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
4298
- : `${packageDetails}`;
4299
- const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
4300
- userAgentPrefix
4301
- }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
4302
- super(optionsWithDefaults);
4303
- let bearerTokenAuthenticationPolicyFound = false;
4304
- if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
4305
- const pipelinePolicies = options.pipeline.getOrderedPolicies();
4306
- bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
4307
- coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
4308
- }
4309
- if (!options ||
4310
- !options.pipeline ||
4311
- options.pipeline.getOrderedPolicies().length == 0 ||
4312
- !bearerTokenAuthenticationPolicyFound) {
4313
- this.pipeline.removePolicy({
4314
- name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
4315
- });
4316
- this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
4317
- credential: credentials,
4318
- scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
4319
- challengeCallbacks: {
4320
- authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
4321
- }
4322
- }));
4323
- }
4324
- // Parameter assignments
4325
- this.subscriptionId = subscriptionId;
4326
- // Assigning values to Constant parameters
4327
- this.$host = options.$host || "https://management.azure.com";
4328
- this.apiVersion = options.apiVersion || "2022-08-01-preview";
4329
- this.availabilityGroupListeners = new AvailabilityGroupListenersImpl(this);
4330
- this.operations = new OperationsImpl(this);
4331
- this.sqlVirtualMachineGroups = new SqlVirtualMachineGroupsImpl(this);
4332
- this.sqlVirtualMachines = new SqlVirtualMachinesImpl(this);
4333
- this.sqlVirtualMachineTroubleshoot = new SqlVirtualMachineTroubleshootImpl(this);
4334
- this.addCustomApiVersionPolicy(options.apiVersion);
4335
- }
4336
- /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
4337
- addCustomApiVersionPolicy(apiVersion) {
4338
- if (!apiVersion) {
4339
- return;
4340
- }
4341
- const apiVersionPolicy = {
4342
- name: "CustomApiVersionPolicy",
4343
- sendRequest(request, next) {
4344
- return tslib.__awaiter(this, void 0, void 0, function* () {
4345
- const param = request.url.split("?");
4346
- if (param.length > 1) {
4347
- const newParams = param[1].split("&").map((item) => {
4348
- if (item.indexOf("api-version") > -1) {
4349
- return "api-version=" + apiVersion;
4350
- }
4351
- else {
4352
- return item;
4353
- }
4354
- });
4355
- request.url = param[0] + "?" + newParams.join("&");
4356
- }
4357
- return next(request);
4358
- });
4359
- }
4360
- };
4361
- this.pipeline.addPolicy(apiVersionPolicy);
4362
- }
4363
- }
4364
-
4365
- exports.SqlVirtualMachineManagementClient = SqlVirtualMachineManagementClient;
4366
- exports.getContinuationToken = getContinuationToken;
4367
- //# sourceMappingURL=index.js.map