@azure/arm-sqlvirtualmachine 5.0.0-alpha.20250213.1 → 5.0.0-alpha.20250217.1

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