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

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