@azure/arm-mysql-flexible 4.0.0-beta.1 → 4.0.0-beta.2

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 (336) hide show
  1. package/CHANGELOG.md +234 -5
  2. package/LICENSE +1 -1
  3. package/dist/index.js +3909 -1522
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/dist-esm/samples-dev/advancedThreatProtectionSettingsGetSample.d.ts +2 -0
  8. package/dist-esm/samples-dev/advancedThreatProtectionSettingsGetSample.d.ts.map +1 -0
  9. package/dist-esm/samples-dev/advancedThreatProtectionSettingsGetSample.js +40 -0
  10. package/dist-esm/samples-dev/advancedThreatProtectionSettingsGetSample.js.map +1 -0
  11. package/dist-esm/samples-dev/advancedThreatProtectionSettingsListSample.d.ts +2 -0
  12. package/dist-esm/samples-dev/advancedThreatProtectionSettingsListSample.d.ts.map +1 -0
  13. package/dist-esm/samples-dev/advancedThreatProtectionSettingsListSample.js +55 -0
  14. package/dist-esm/samples-dev/advancedThreatProtectionSettingsListSample.js.map +1 -0
  15. package/dist-esm/samples-dev/advancedThreatProtectionSettingsUpdatePutSample.d.ts +2 -0
  16. package/dist-esm/samples-dev/advancedThreatProtectionSettingsUpdatePutSample.d.ts.map +1 -0
  17. package/dist-esm/samples-dev/advancedThreatProtectionSettingsUpdatePutSample.js +62 -0
  18. package/dist-esm/samples-dev/advancedThreatProtectionSettingsUpdatePutSample.js.map +1 -0
  19. package/dist-esm/samples-dev/advancedThreatProtectionSettingsUpdateSample.d.ts +2 -0
  20. package/dist-esm/samples-dev/advancedThreatProtectionSettingsUpdateSample.d.ts.map +1 -0
  21. package/dist-esm/samples-dev/advancedThreatProtectionSettingsUpdateSample.js +62 -0
  22. package/dist-esm/samples-dev/advancedThreatProtectionSettingsUpdateSample.js.map +1 -0
  23. package/dist-esm/samples-dev/azureAdAdministratorsCreateOrUpdateSample.js +3 -3
  24. package/dist-esm/samples-dev/azureAdAdministratorsCreateOrUpdateSample.js.map +1 -1
  25. package/dist-esm/samples-dev/azureAdAdministratorsDeleteSample.js +1 -1
  26. package/dist-esm/samples-dev/azureAdAdministratorsGetSample.js +1 -1
  27. package/dist-esm/samples-dev/azureAdAdministratorsListByServerSample.js +5 -10
  28. package/dist-esm/samples-dev/azureAdAdministratorsListByServerSample.js.map +1 -1
  29. package/dist-esm/samples-dev/backupAndExportCreateSample.js +4 -4
  30. package/dist-esm/samples-dev/backupAndExportCreateSample.js.map +1 -1
  31. package/dist-esm/samples-dev/backupAndExportValidateBackupSample.js +1 -1
  32. package/dist-esm/samples-dev/backupsGetSample.js +1 -1
  33. package/dist-esm/samples-dev/backupsListByServerSample.js +5 -10
  34. package/dist-esm/samples-dev/backupsListByServerSample.js.map +1 -1
  35. package/dist-esm/samples-dev/backupsPutSample.js +1 -1
  36. package/dist-esm/samples-dev/checkNameAvailabilityExecuteSample.js +3 -3
  37. package/dist-esm/samples-dev/checkNameAvailabilityExecuteSample.js.map +1 -1
  38. package/dist-esm/samples-dev/checkNameAvailabilityWithoutLocationExecuteSample.js +3 -3
  39. package/dist-esm/samples-dev/checkNameAvailabilityWithoutLocationExecuteSample.js.map +1 -1
  40. package/dist-esm/samples-dev/checkVirtualNetworkSubnetUsageExecuteSample.js +3 -3
  41. package/dist-esm/samples-dev/checkVirtualNetworkSubnetUsageExecuteSample.js.map +1 -1
  42. package/dist-esm/samples-dev/configurationsBatchUpdateSample.js +4 -4
  43. package/dist-esm/samples-dev/configurationsBatchUpdateSample.js.map +1 -1
  44. package/dist-esm/samples-dev/configurationsCreateOrUpdateSample.js +2 -2
  45. package/dist-esm/samples-dev/configurationsCreateOrUpdateSample.js.map +1 -1
  46. package/dist-esm/samples-dev/configurationsGetSample.js +1 -1
  47. package/dist-esm/samples-dev/configurationsListByServerSample.js +6 -11
  48. package/dist-esm/samples-dev/configurationsListByServerSample.js.map +1 -1
  49. package/dist-esm/samples-dev/configurationsUpdateSample.js +2 -2
  50. package/dist-esm/samples-dev/configurationsUpdateSample.js.map +1 -1
  51. package/dist-esm/samples-dev/databasesCreateOrUpdateSample.js +3 -3
  52. package/dist-esm/samples-dev/databasesCreateOrUpdateSample.js.map +1 -1
  53. package/dist-esm/samples-dev/databasesDeleteSample.js +1 -1
  54. package/dist-esm/samples-dev/databasesGetSample.js +1 -1
  55. package/dist-esm/samples-dev/databasesListByServerSample.js +5 -10
  56. package/dist-esm/samples-dev/databasesListByServerSample.js.map +1 -1
  57. package/dist-esm/samples-dev/firewallRulesCreateOrUpdateSample.js +3 -3
  58. package/dist-esm/samples-dev/firewallRulesCreateOrUpdateSample.js.map +1 -1
  59. package/dist-esm/samples-dev/firewallRulesDeleteSample.js +1 -1
  60. package/dist-esm/samples-dev/firewallRulesGetSample.js +1 -1
  61. package/dist-esm/samples-dev/firewallRulesListByServerSample.js +5 -10
  62. package/dist-esm/samples-dev/firewallRulesListByServerSample.js.map +1 -1
  63. package/dist-esm/samples-dev/getPrivateDnsZoneSuffixExecuteSample.js +2 -4
  64. package/dist-esm/samples-dev/getPrivateDnsZoneSuffixExecuteSample.js.map +1 -1
  65. package/dist-esm/samples-dev/locationBasedCapabilitiesListSample.js +5 -10
  66. package/dist-esm/samples-dev/locationBasedCapabilitiesListSample.js.map +1 -1
  67. package/dist-esm/samples-dev/locationBasedCapabilitySetGetSample.d.ts +2 -0
  68. package/dist-esm/samples-dev/locationBasedCapabilitySetGetSample.d.ts.map +1 -0
  69. package/dist-esm/samples-dev/locationBasedCapabilitySetGetSample.js +39 -0
  70. package/dist-esm/samples-dev/locationBasedCapabilitySetGetSample.js.map +1 -0
  71. package/dist-esm/samples-dev/locationBasedCapabilitySetListSample.d.ts +2 -0
  72. package/dist-esm/samples-dev/locationBasedCapabilitySetListSample.d.ts.map +1 -0
  73. package/dist-esm/samples-dev/locationBasedCapabilitySetListSample.js +54 -0
  74. package/dist-esm/samples-dev/locationBasedCapabilitySetListSample.js.map +1 -0
  75. package/dist-esm/samples-dev/logFilesListByServerSample.js +5 -10
  76. package/dist-esm/samples-dev/logFilesListByServerSample.js.map +1 -1
  77. package/dist-esm/samples-dev/longRunningBackupCreateSample.d.ts +2 -0
  78. package/dist-esm/samples-dev/longRunningBackupCreateSample.d.ts.map +1 -0
  79. package/dist-esm/samples-dev/longRunningBackupCreateSample.js +40 -0
  80. package/dist-esm/samples-dev/longRunningBackupCreateSample.js.map +1 -0
  81. package/dist-esm/samples-dev/longRunningBackupsGetSample.d.ts +2 -0
  82. package/dist-esm/samples-dev/longRunningBackupsGetSample.d.ts.map +1 -0
  83. package/dist-esm/samples-dev/longRunningBackupsGetSample.js +40 -0
  84. package/dist-esm/samples-dev/longRunningBackupsGetSample.js.map +1 -0
  85. package/dist-esm/samples-dev/longRunningBackupsListSample.d.ts +2 -0
  86. package/dist-esm/samples-dev/longRunningBackupsListSample.d.ts.map +1 -0
  87. package/dist-esm/samples-dev/longRunningBackupsListSample.js +55 -0
  88. package/dist-esm/samples-dev/longRunningBackupsListSample.js.map +1 -0
  89. package/dist-esm/samples-dev/maintenancesListSample.d.ts +2 -0
  90. package/dist-esm/samples-dev/maintenancesListSample.d.ts.map +1 -0
  91. package/dist-esm/samples-dev/maintenancesListSample.js +55 -0
  92. package/dist-esm/samples-dev/maintenancesListSample.js.map +1 -0
  93. package/dist-esm/samples-dev/maintenancesReadSample.d.ts +2 -0
  94. package/dist-esm/samples-dev/maintenancesReadSample.d.ts.map +1 -0
  95. package/dist-esm/samples-dev/maintenancesReadSample.js +40 -0
  96. package/dist-esm/samples-dev/maintenancesReadSample.js.map +1 -0
  97. package/dist-esm/samples-dev/maintenancesUpdateSample.d.ts +2 -0
  98. package/dist-esm/samples-dev/maintenancesUpdateSample.d.ts.map +1 -0
  99. package/dist-esm/samples-dev/maintenancesUpdateSample.js +44 -0
  100. package/dist-esm/samples-dev/maintenancesUpdateSample.js.map +1 -0
  101. package/dist-esm/samples-dev/operationProgressGetSample.d.ts +2 -0
  102. package/dist-esm/samples-dev/operationProgressGetSample.d.ts.map +1 -0
  103. package/dist-esm/samples-dev/operationProgressGetSample.js +58 -0
  104. package/dist-esm/samples-dev/operationProgressGetSample.js.map +1 -0
  105. package/dist-esm/samples-dev/operationResultsGetSample.d.ts +2 -0
  106. package/dist-esm/samples-dev/operationResultsGetSample.d.ts.map +1 -0
  107. package/dist-esm/samples-dev/operationResultsGetSample.js +39 -0
  108. package/dist-esm/samples-dev/operationResultsGetSample.js.map +1 -0
  109. package/dist-esm/samples-dev/operationsListSample.js +5 -10
  110. package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
  111. package/dist-esm/samples-dev/replicasListByServerSample.js +5 -10
  112. package/dist-esm/samples-dev/replicasListByServerSample.js.map +1 -1
  113. package/dist-esm/samples-dev/serversCreateSample.js +22 -14
  114. package/dist-esm/samples-dev/serversCreateSample.js.map +1 -1
  115. package/dist-esm/samples-dev/serversDeleteSample.js +1 -1
  116. package/dist-esm/samples-dev/serversFailoverSample.js +1 -1
  117. package/dist-esm/samples-dev/serversGetSample.js +2 -2
  118. package/dist-esm/samples-dev/serversListByResourceGroupSample.js +5 -10
  119. package/dist-esm/samples-dev/serversListByResourceGroupSample.js.map +1 -1
  120. package/dist-esm/samples-dev/serversListSample.js +5 -10
  121. package/dist-esm/samples-dev/serversListSample.js.map +1 -1
  122. package/dist-esm/samples-dev/serversMigrationCutoverMigrationSample.d.ts +2 -0
  123. package/dist-esm/samples-dev/serversMigrationCutoverMigrationSample.d.ts.map +1 -0
  124. package/dist-esm/samples-dev/serversMigrationCutoverMigrationSample.js +39 -0
  125. package/dist-esm/samples-dev/serversMigrationCutoverMigrationSample.js.map +1 -0
  126. package/dist-esm/samples-dev/serversResetGtidSample.js +3 -3
  127. package/dist-esm/samples-dev/serversResetGtidSample.js.map +1 -1
  128. package/dist-esm/samples-dev/serversRestartSample.js +3 -3
  129. package/dist-esm/samples-dev/serversRestartSample.js.map +1 -1
  130. package/dist-esm/samples-dev/serversStartSample.js +1 -1
  131. package/dist-esm/samples-dev/serversStopSample.js +1 -1
  132. package/dist-esm/samples-dev/serversUpdateSample.js +13 -12
  133. package/dist-esm/samples-dev/serversUpdateSample.js.map +1 -1
  134. package/dist-esm/samples-dev/serversValidateEstimateHighAvailabilitySample.d.ts +2 -0
  135. package/dist-esm/samples-dev/serversValidateEstimateHighAvailabilitySample.d.ts.map +1 -0
  136. package/dist-esm/samples-dev/serversValidateEstimateHighAvailabilitySample.js +42 -0
  137. package/dist-esm/samples-dev/serversValidateEstimateHighAvailabilitySample.js.map +1 -0
  138. package/dist-esm/src/lroImpl.js +1 -1
  139. package/dist-esm/src/models/index.d.ts +820 -94
  140. package/dist-esm/src/models/index.d.ts.map +1 -1
  141. package/dist-esm/src/models/index.js +131 -9
  142. package/dist-esm/src/models/index.js.map +1 -1
  143. package/dist-esm/src/models/mappers.d.ts +38 -5
  144. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  145. package/dist-esm/src/models/mappers.js +1609 -761
  146. package/dist-esm/src/models/mappers.js.map +1 -1
  147. package/dist-esm/src/models/parameters.d.ts +16 -5
  148. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  149. package/dist-esm/src/models/parameters.js +180 -85
  150. package/dist-esm/src/models/parameters.js.map +1 -1
  151. package/dist-esm/src/mySQLManagementFlexibleServerClient.d.ts +12 -3
  152. package/dist-esm/src/mySQLManagementFlexibleServerClient.d.ts.map +1 -1
  153. package/dist-esm/src/mySQLManagementFlexibleServerClient.js +27 -18
  154. package/dist-esm/src/mySQLManagementFlexibleServerClient.js.map +1 -1
  155. package/dist-esm/src/operations/advancedThreatProtectionSettings.d.ts +83 -0
  156. package/dist-esm/src/operations/advancedThreatProtectionSettings.d.ts.map +1 -0
  157. package/dist-esm/src/operations/advancedThreatProtectionSettings.js +382 -0
  158. package/dist-esm/src/operations/advancedThreatProtectionSettings.js.map +1 -0
  159. package/dist-esm/src/operations/azureADAdministrators.d.ts.map +1 -1
  160. package/dist-esm/src/operations/azureADAdministrators.js +41 -46
  161. package/dist-esm/src/operations/azureADAdministrators.js.map +1 -1
  162. package/dist-esm/src/operations/backupAndExport.d.ts.map +1 -1
  163. package/dist-esm/src/operations/backupAndExport.js +18 -18
  164. package/dist-esm/src/operations/backupAndExport.js.map +1 -1
  165. package/dist-esm/src/operations/backups.js +24 -29
  166. package/dist-esm/src/operations/backups.js.map +1 -1
  167. package/dist-esm/src/operations/checkNameAvailability.js +6 -6
  168. package/dist-esm/src/operations/checkNameAvailability.js.map +1 -1
  169. package/dist-esm/src/operations/checkNameAvailabilityWithoutLocation.d.ts.map +1 -1
  170. package/dist-esm/src/operations/checkNameAvailabilityWithoutLocation.js +5 -5
  171. package/dist-esm/src/operations/checkNameAvailabilityWithoutLocation.js.map +1 -1
  172. package/dist-esm/src/operations/checkVirtualNetworkSubnetUsage.d.ts.map +1 -1
  173. package/dist-esm/src/operations/checkVirtualNetworkSubnetUsage.js +7 -7
  174. package/dist-esm/src/operations/checkVirtualNetworkSubnetUsage.js.map +1 -1
  175. package/dist-esm/src/operations/configurations.d.ts.map +1 -1
  176. package/dist-esm/src/operations/configurations.js +62 -67
  177. package/dist-esm/src/operations/configurations.js.map +1 -1
  178. package/dist-esm/src/operations/databases.d.ts.map +1 -1
  179. package/dist-esm/src/operations/databases.js +42 -47
  180. package/dist-esm/src/operations/databases.js.map +1 -1
  181. package/dist-esm/src/operations/firewallRules.d.ts.map +1 -1
  182. package/dist-esm/src/operations/firewallRules.js +42 -47
  183. package/dist-esm/src/operations/firewallRules.js.map +1 -1
  184. package/dist-esm/src/operations/getPrivateDnsZoneSuffix.js +5 -5
  185. package/dist-esm/src/operations/getPrivateDnsZoneSuffix.js.map +1 -1
  186. package/dist-esm/src/operations/index.d.ts +8 -0
  187. package/dist-esm/src/operations/index.d.ts.map +1 -1
  188. package/dist-esm/src/operations/index.js +8 -0
  189. package/dist-esm/src/operations/index.js.map +1 -1
  190. package/dist-esm/src/operations/locationBasedCapabilities.d.ts.map +1 -1
  191. package/dist-esm/src/operations/locationBasedCapabilities.js +15 -20
  192. package/dist-esm/src/operations/locationBasedCapabilities.js.map +1 -1
  193. package/dist-esm/src/operations/locationBasedCapabilitySet.d.ts +42 -0
  194. package/dist-esm/src/operations/locationBasedCapabilitySet.d.ts.map +1 -0
  195. package/dist-esm/src/operations/locationBasedCapabilitySet.js +175 -0
  196. package/dist-esm/src/operations/locationBasedCapabilitySet.js.map +1 -0
  197. package/dist-esm/src/operations/logFiles.js +14 -19
  198. package/dist-esm/src/operations/logFiles.js.map +1 -1
  199. package/dist-esm/src/operations/longRunningBackup.d.ts +30 -0
  200. package/dist-esm/src/operations/longRunningBackup.d.ts.map +1 -0
  201. package/dist-esm/src/operations/longRunningBackup.js +117 -0
  202. package/dist-esm/src/operations/longRunningBackup.js.map +1 -0
  203. package/dist-esm/src/operations/longRunningBackups.d.ts +46 -0
  204. package/dist-esm/src/operations/longRunningBackups.d.ts.map +1 -0
  205. package/dist-esm/src/operations/longRunningBackups.js +182 -0
  206. package/dist-esm/src/operations/longRunningBackups.js.map +1 -0
  207. package/dist-esm/src/operations/maintenances.d.ts +63 -0
  208. package/dist-esm/src/operations/maintenances.d.ts.map +1 -0
  209. package/dist-esm/src/operations/maintenances.js +274 -0
  210. package/dist-esm/src/operations/maintenances.js.map +1 -0
  211. package/dist-esm/src/operations/operationProgress.d.ts +20 -0
  212. package/dist-esm/src/operations/operationProgress.d.ts.map +1 -0
  213. package/dist-esm/src/operations/operationProgress.js +53 -0
  214. package/dist-esm/src/operations/operationProgress.js.map +1 -0
  215. package/dist-esm/src/operations/operationResults.d.ts +20 -0
  216. package/dist-esm/src/operations/operationResults.d.ts.map +1 -0
  217. package/dist-esm/src/operations/operationResults.js +53 -0
  218. package/dist-esm/src/operations/operationResults.js.map +1 -0
  219. package/dist-esm/src/operations/operations.js +13 -18
  220. package/dist-esm/src/operations/operations.js.map +1 -1
  221. package/dist-esm/src/operations/replicas.js +15 -20
  222. package/dist-esm/src/operations/replicas.js.map +1 -1
  223. package/dist-esm/src/operations/servers.d.ts +9 -1
  224. package/dist-esm/src/operations/servers.d.ts.map +1 -1
  225. package/dist-esm/src/operations/servers.js +153 -130
  226. package/dist-esm/src/operations/servers.js.map +1 -1
  227. package/dist-esm/src/operations/serversMigration.d.ts +28 -0
  228. package/dist-esm/src/operations/serversMigration.d.ts.map +1 -0
  229. package/dist-esm/src/operations/serversMigration.js +112 -0
  230. package/dist-esm/src/operations/serversMigration.js.map +1 -0
  231. package/dist-esm/src/operationsInterfaces/advancedThreatProtectionSettings.d.ts +58 -0
  232. package/dist-esm/src/operationsInterfaces/advancedThreatProtectionSettings.d.ts.map +1 -0
  233. package/dist-esm/src/operationsInterfaces/advancedThreatProtectionSettings.js +9 -0
  234. package/dist-esm/src/operationsInterfaces/advancedThreatProtectionSettings.js.map +1 -0
  235. package/dist-esm/src/operationsInterfaces/index.d.ts +8 -0
  236. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
  237. package/dist-esm/src/operationsInterfaces/index.js +8 -0
  238. package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
  239. package/dist-esm/src/operationsInterfaces/locationBasedCapabilitySet.d.ts +19 -0
  240. package/dist-esm/src/operationsInterfaces/locationBasedCapabilitySet.d.ts.map +1 -0
  241. package/dist-esm/src/operationsInterfaces/locationBasedCapabilitySet.js +9 -0
  242. package/dist-esm/src/operationsInterfaces/locationBasedCapabilitySet.js.map +1 -0
  243. package/dist-esm/src/operationsInterfaces/longRunningBackup.d.ts +22 -0
  244. package/dist-esm/src/operationsInterfaces/longRunningBackup.d.ts.map +1 -0
  245. package/dist-esm/src/operationsInterfaces/longRunningBackup.js +9 -0
  246. package/dist-esm/src/operationsInterfaces/longRunningBackup.js.map +1 -0
  247. package/dist-esm/src/operationsInterfaces/longRunningBackups.d.ts +21 -0
  248. package/dist-esm/src/operationsInterfaces/longRunningBackups.d.ts.map +1 -0
  249. package/dist-esm/src/operationsInterfaces/longRunningBackups.js +9 -0
  250. package/dist-esm/src/operationsInterfaces/longRunningBackups.js.map +1 -0
  251. package/dist-esm/src/operationsInterfaces/maintenances.d.ts +38 -0
  252. package/dist-esm/src/operationsInterfaces/maintenances.d.ts.map +1 -0
  253. package/dist-esm/src/operationsInterfaces/maintenances.js +9 -0
  254. package/dist-esm/src/operationsInterfaces/maintenances.js.map +1 -0
  255. package/dist-esm/src/operationsInterfaces/operationProgress.d.ts +12 -0
  256. package/dist-esm/src/operationsInterfaces/operationProgress.d.ts.map +1 -0
  257. package/dist-esm/src/operationsInterfaces/operationProgress.js +9 -0
  258. package/dist-esm/src/operationsInterfaces/operationProgress.js.map +1 -0
  259. package/dist-esm/src/operationsInterfaces/operationResults.d.ts +12 -0
  260. package/dist-esm/src/operationsInterfaces/operationResults.d.ts.map +1 -0
  261. package/dist-esm/src/operationsInterfaces/operationResults.js +9 -0
  262. package/dist-esm/src/operationsInterfaces/operationResults.js.map +1 -0
  263. package/dist-esm/src/operationsInterfaces/servers.d.ts +9 -1
  264. package/dist-esm/src/operationsInterfaces/servers.d.ts.map +1 -1
  265. package/dist-esm/src/operationsInterfaces/serversMigration.d.ts +20 -0
  266. package/dist-esm/src/operationsInterfaces/serversMigration.d.ts.map +1 -0
  267. package/dist-esm/src/operationsInterfaces/serversMigration.js +9 -0
  268. package/dist-esm/src/operationsInterfaces/serversMigration.js.map +1 -0
  269. package/dist-esm/src/pagingHelper.js.map +1 -1
  270. package/dist-esm/test/mysql_operations_test.spec.d.ts +4 -0
  271. package/dist-esm/test/mysql_operations_test.spec.d.ts.map +1 -0
  272. package/dist-esm/test/mysql_operations_test.spec.js +125 -0
  273. package/dist-esm/test/mysql_operations_test.spec.js.map +1 -0
  274. package/package.json +19 -24
  275. package/review/arm-mysql-flexible.api.md +596 -40
  276. package/src/lroImpl.ts +3 -3
  277. package/src/models/index.ts +954 -116
  278. package/src/models/mappers.ts +1714 -780
  279. package/src/models/parameters.ts +197 -86
  280. package/src/mySQLManagementFlexibleServerClient.ts +71 -23
  281. package/src/operations/advancedThreatProtectionSettings.ts +528 -0
  282. package/src/operations/azureADAdministrators.ts +76 -82
  283. package/src/operations/backupAndExport.ts +33 -36
  284. package/src/operations/backups.ts +40 -43
  285. package/src/operations/checkNameAvailability.ts +10 -11
  286. package/src/operations/checkNameAvailabilityWithoutLocation.ts +11 -11
  287. package/src/operations/checkVirtualNetworkSubnetUsage.ts +13 -13
  288. package/src/operations/configurations.ts +108 -116
  289. package/src/operations/databases.ts +77 -83
  290. package/src/operations/firewallRules.ts +77 -83
  291. package/src/operations/getPrivateDnsZoneSuffix.ts +7 -7
  292. package/src/operations/index.ts +8 -0
  293. package/src/operations/locationBasedCapabilities.ts +23 -23
  294. package/src/operations/locationBasedCapabilitySet.ts +211 -0
  295. package/src/operations/logFiles.ts +24 -25
  296. package/src/operations/longRunningBackup.ts +167 -0
  297. package/src/operations/longRunningBackups.ts +236 -0
  298. package/src/operations/maintenances.ts +371 -0
  299. package/src/operations/operationProgress.ts +71 -0
  300. package/src/operations/operationResults.ts +71 -0
  301. package/src/operations/operations.ts +17 -17
  302. package/src/operations/replicas.ts +25 -26
  303. package/src/operations/servers.ts +269 -242
  304. package/src/operations/serversMigration.ts +159 -0
  305. package/src/operationsInterfaces/advancedThreatProtectionSettings.ts +121 -0
  306. package/src/operationsInterfaces/azureADAdministrators.ts +7 -7
  307. package/src/operationsInterfaces/backupAndExport.ts +4 -4
  308. package/src/operationsInterfaces/backups.ts +4 -4
  309. package/src/operationsInterfaces/checkNameAvailability.ts +2 -2
  310. package/src/operationsInterfaces/checkNameAvailabilityWithoutLocation.ts +2 -2
  311. package/src/operationsInterfaces/checkVirtualNetworkSubnetUsage.ts +2 -2
  312. package/src/operationsInterfaces/configurations.ts +9 -9
  313. package/src/operationsInterfaces/databases.ts +7 -7
  314. package/src/operationsInterfaces/firewallRules.ts +7 -7
  315. package/src/operationsInterfaces/getPrivateDnsZoneSuffix.ts +2 -2
  316. package/src/operationsInterfaces/index.ts +8 -0
  317. package/src/operationsInterfaces/locationBasedCapabilities.ts +2 -2
  318. package/src/operationsInterfaces/locationBasedCapabilitySet.ts +40 -0
  319. package/src/operationsInterfaces/logFiles.ts +1 -1
  320. package/src/operationsInterfaces/longRunningBackup.ts +48 -0
  321. package/src/operationsInterfaces/longRunningBackups.ts +44 -0
  322. package/src/operationsInterfaces/maintenances.ts +78 -0
  323. package/src/operationsInterfaces/operationProgress.ts +27 -0
  324. package/src/operationsInterfaces/operationResults.ts +27 -0
  325. package/src/operationsInterfaces/operations.ts +1 -1
  326. package/src/operationsInterfaces/replicas.ts +1 -1
  327. package/src/operationsInterfaces/servers.ts +35 -19
  328. package/src/operationsInterfaces/serversMigration.ts +44 -0
  329. package/src/pagingHelper.ts +1 -1
  330. package/types/arm-mysql-flexible.d.ts +1134 -110
  331. package/types/tsdoc-metadata.json +1 -1
  332. package/dist-esm/test/sampleTest.d.ts +0 -2
  333. package/dist-esm/test/sampleTest.d.ts.map +0 -1
  334. package/dist-esm/test/sampleTest.js +0 -38
  335. package/dist-esm/test/sampleTest.js.map +0 -1
  336. package/rollup.config.js +0 -122
@@ -9,15 +9,23 @@
9
9
  export * from "./azureADAdministrators";
10
10
  export * from "./backups";
11
11
  export * from "./backupAndExport";
12
+ export * from "./longRunningBackup";
13
+ export * from "./longRunningBackups";
12
14
  export * from "./configurations";
13
15
  export * from "./databases";
14
16
  export * from "./firewallRules";
15
17
  export * from "./servers";
16
18
  export * from "./replicas";
19
+ export * from "./serversMigration";
20
+ export * from "./advancedThreatProtectionSettings";
17
21
  export * from "./logFiles";
18
22
  export * from "./locationBasedCapabilities";
23
+ export * from "./locationBasedCapabilitySet";
19
24
  export * from "./checkVirtualNetworkSubnetUsage";
20
25
  export * from "./checkNameAvailability";
21
26
  export * from "./checkNameAvailabilityWithoutLocation";
27
+ export * from "./operationResults";
28
+ export * from "./operationProgress";
22
29
  export * from "./getPrivateDnsZoneSuffix";
23
30
  export * from "./operations";
31
+ export * from "./maintenances";
@@ -9,7 +9,7 @@
9
9
  import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
10
  import {
11
11
  CapabilityProperties,
12
- LocationBasedCapabilitiesListOptionalParams
12
+ LocationBasedCapabilitiesListOptionalParams,
13
13
  } from "../models";
14
14
 
15
15
  /// <reference lib="esnext.asynciterable" />
@@ -22,6 +22,6 @@ export interface LocationBasedCapabilities {
22
22
  */
23
23
  list(
24
24
  locationName: string,
25
- options?: LocationBasedCapabilitiesListOptionalParams
25
+ options?: LocationBasedCapabilitiesListOptionalParams,
26
26
  ): PagedAsyncIterableIterator<CapabilityProperties>;
27
27
  }
@@ -0,0 +1,40 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import {
11
+ Capability,
12
+ LocationBasedCapabilitySetListOptionalParams,
13
+ LocationBasedCapabilitySetGetOptionalParams,
14
+ LocationBasedCapabilitySetGetResponse,
15
+ } from "../models";
16
+
17
+ /// <reference lib="esnext.asynciterable" />
18
+ /** Interface representing a LocationBasedCapabilitySet. */
19
+ export interface LocationBasedCapabilitySet {
20
+ /**
21
+ * Get capabilities at specified location in a given subscription.
22
+ * @param locationName The name of the location.
23
+ * @param options The options parameters.
24
+ */
25
+ list(
26
+ locationName: string,
27
+ options?: LocationBasedCapabilitySetListOptionalParams,
28
+ ): PagedAsyncIterableIterator<Capability>;
29
+ /**
30
+ * Get capabilities at specified location in a given subscription.
31
+ * @param locationName The name of the location.
32
+ * @param capabilitySetName Name of capability set
33
+ * @param options The options parameters.
34
+ */
35
+ get(
36
+ locationName: string,
37
+ capabilitySetName: string,
38
+ options?: LocationBasedCapabilitySetGetOptionalParams,
39
+ ): Promise<LocationBasedCapabilitySetGetResponse>;
40
+ }
@@ -21,6 +21,6 @@ export interface LogFiles {
21
21
  listByServer(
22
22
  resourceGroupName: string,
23
23
  serverName: string,
24
- options?: LogFilesListByServerOptionalParams
24
+ options?: LogFilesListByServerOptionalParams,
25
25
  ): PagedAsyncIterableIterator<LogFile>;
26
26
  }
@@ -0,0 +1,48 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ import { SimplePollerLike, OperationState } from "@azure/core-lro";
10
+ import {
11
+ LongRunningBackupCreateOptionalParams,
12
+ LongRunningBackupCreateResponse,
13
+ } from "../models";
14
+
15
+ /** Interface representing a LongRunningBackup. */
16
+ export interface LongRunningBackup {
17
+ /**
18
+ * Create backup for a given server with specified backup name.
19
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
20
+ * @param serverName The name of the server.
21
+ * @param backupName The name of the backup.
22
+ * @param options The options parameters.
23
+ */
24
+ beginCreate(
25
+ resourceGroupName: string,
26
+ serverName: string,
27
+ backupName: string,
28
+ options?: LongRunningBackupCreateOptionalParams,
29
+ ): Promise<
30
+ SimplePollerLike<
31
+ OperationState<LongRunningBackupCreateResponse>,
32
+ LongRunningBackupCreateResponse
33
+ >
34
+ >;
35
+ /**
36
+ * Create backup for a given server with specified backup name.
37
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
38
+ * @param serverName The name of the server.
39
+ * @param backupName The name of the backup.
40
+ * @param options The options parameters.
41
+ */
42
+ beginCreateAndWait(
43
+ resourceGroupName: string,
44
+ serverName: string,
45
+ backupName: string,
46
+ options?: LongRunningBackupCreateOptionalParams,
47
+ ): Promise<LongRunningBackupCreateResponse>;
48
+ }
@@ -0,0 +1,44 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import {
11
+ ServerBackupV2,
12
+ LongRunningBackupsListOptionalParams,
13
+ LongRunningBackupsGetOptionalParams,
14
+ LongRunningBackupsGetResponse,
15
+ } from "../models";
16
+
17
+ /// <reference lib="esnext.asynciterable" />
18
+ /** Interface representing a LongRunningBackups. */
19
+ export interface LongRunningBackups {
20
+ /**
21
+ * List all the backups for a given server.
22
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
23
+ * @param serverName The name of the server.
24
+ * @param options The options parameters.
25
+ */
26
+ list(
27
+ resourceGroupName: string,
28
+ serverName: string,
29
+ options?: LongRunningBackupsListOptionalParams,
30
+ ): PagedAsyncIterableIterator<ServerBackupV2>;
31
+ /**
32
+ * Get backup for a given server.
33
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
34
+ * @param serverName The name of the server.
35
+ * @param backupName The name of the backup.
36
+ * @param options The options parameters.
37
+ */
38
+ get(
39
+ resourceGroupName: string,
40
+ serverName: string,
41
+ backupName: string,
42
+ options?: LongRunningBackupsGetOptionalParams,
43
+ ): Promise<LongRunningBackupsGetResponse>;
44
+ }
@@ -0,0 +1,78 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { SimplePollerLike, OperationState } from "@azure/core-lro";
11
+ import {
12
+ Maintenance,
13
+ MaintenancesListOptionalParams,
14
+ MaintenancesReadOptionalParams,
15
+ MaintenancesReadResponse,
16
+ MaintenancesUpdateOptionalParams,
17
+ MaintenancesUpdateResponse,
18
+ } from "../models";
19
+
20
+ /// <reference lib="esnext.asynciterable" />
21
+ /** Interface representing a Maintenances. */
22
+ export interface Maintenances {
23
+ /**
24
+ * List maintenances.
25
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
26
+ * @param serverName The name of the server.
27
+ * @param options The options parameters.
28
+ */
29
+ list(
30
+ resourceGroupName: string,
31
+ serverName: string,
32
+ options?: MaintenancesListOptionalParams,
33
+ ): PagedAsyncIterableIterator<Maintenance>;
34
+ /**
35
+ * Read maintenance.
36
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
37
+ * @param serverName The name of the server.
38
+ * @param maintenanceName The name of the maintenance.
39
+ * @param options The options parameters.
40
+ */
41
+ read(
42
+ resourceGroupName: string,
43
+ serverName: string,
44
+ maintenanceName: string,
45
+ options?: MaintenancesReadOptionalParams,
46
+ ): Promise<MaintenancesReadResponse>;
47
+ /**
48
+ * Update maintenances.
49
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
50
+ * @param serverName The name of the server.
51
+ * @param maintenanceName The name of the maintenance.
52
+ * @param options The options parameters.
53
+ */
54
+ beginUpdate(
55
+ resourceGroupName: string,
56
+ serverName: string,
57
+ maintenanceName: string,
58
+ options?: MaintenancesUpdateOptionalParams,
59
+ ): Promise<
60
+ SimplePollerLike<
61
+ OperationState<MaintenancesUpdateResponse>,
62
+ MaintenancesUpdateResponse
63
+ >
64
+ >;
65
+ /**
66
+ * Update maintenances.
67
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
68
+ * @param serverName The name of the server.
69
+ * @param maintenanceName The name of the maintenance.
70
+ * @param options The options parameters.
71
+ */
72
+ beginUpdateAndWait(
73
+ resourceGroupName: string,
74
+ serverName: string,
75
+ maintenanceName: string,
76
+ options?: MaintenancesUpdateOptionalParams,
77
+ ): Promise<MaintenancesUpdateResponse>;
78
+ }
@@ -0,0 +1,27 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ import {
10
+ OperationProgressGetOptionalParams,
11
+ OperationProgressGetResponse,
12
+ } from "../models";
13
+
14
+ /** Interface representing a OperationProgress. */
15
+ export interface OperationProgress {
16
+ /**
17
+ * Get the operation result for a long running operation.
18
+ * @param locationName The name of the location.
19
+ * @param operationId The ID of an ongoing async operation.
20
+ * @param options The options parameters.
21
+ */
22
+ get(
23
+ locationName: string,
24
+ operationId: string,
25
+ options?: OperationProgressGetOptionalParams,
26
+ ): Promise<OperationProgressGetResponse>;
27
+ }
@@ -0,0 +1,27 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ import {
10
+ OperationResultsGetOptionalParams,
11
+ OperationResultsGetResponse,
12
+ } from "../models";
13
+
14
+ /** Interface representing a OperationResults. */
15
+ export interface OperationResults {
16
+ /**
17
+ * Get the operation result for a long running operation.
18
+ * @param locationName The name of the location.
19
+ * @param operationId The operation Id.
20
+ * @param options The options parameters.
21
+ */
22
+ get(
23
+ locationName: string,
24
+ operationId: string,
25
+ options?: OperationResultsGetOptionalParams,
26
+ ): Promise<OperationResultsGetResponse>;
27
+ }
@@ -17,6 +17,6 @@ export interface Operations {
17
17
  * @param options The options parameters.
18
18
  */
19
19
  list(
20
- options?: OperationsListOptionalParams
20
+ options?: OperationsListOptionalParams,
21
21
  ): PagedAsyncIterableIterator<Operation>;
22
22
  }
@@ -21,6 +21,6 @@ export interface Replicas {
21
21
  listByServer(
22
22
  resourceGroupName: string,
23
23
  serverName: string,
24
- options?: ReplicasListByServerOptionalParams
24
+ options?: ReplicasListByServerOptionalParams,
25
25
  ): PagedAsyncIterableIterator<Server>;
26
26
  }
@@ -21,12 +21,15 @@ import {
21
21
  ServersGetOptionalParams,
22
22
  ServersGetResponse,
23
23
  ServersFailoverOptionalParams,
24
+ HighAvailabilityValidationEstimation,
25
+ ServersValidateEstimateHighAvailabilityOptionalParams,
26
+ ServersValidateEstimateHighAvailabilityResponse,
24
27
  ServerRestartParameter,
25
28
  ServersRestartOptionalParams,
26
29
  ServersStartOptionalParams,
27
30
  ServersStopOptionalParams,
28
31
  ServerGtidSetParameter,
29
- ServersResetGtidOptionalParams
32
+ ServersResetGtidOptionalParams,
30
33
  } from "../models";
31
34
 
32
35
  /// <reference lib="esnext.asynciterable" />
@@ -39,7 +42,7 @@ export interface Servers {
39
42
  */
40
43
  listByResourceGroup(
41
44
  resourceGroupName: string,
42
- options?: ServersListByResourceGroupOptionalParams
45
+ options?: ServersListByResourceGroupOptionalParams,
43
46
  ): PagedAsyncIterableIterator<Server>;
44
47
  /**
45
48
  * List all the servers in a given subscription.
@@ -58,7 +61,7 @@ export interface Servers {
58
61
  resourceGroupName: string,
59
62
  serverName: string,
60
63
  parameters: Server,
61
- options?: ServersCreateOptionalParams
64
+ options?: ServersCreateOptionalParams,
62
65
  ): Promise<
63
66
  SimplePollerLike<
64
67
  OperationState<ServersCreateResponse>,
@@ -77,7 +80,7 @@ export interface Servers {
77
80
  resourceGroupName: string,
78
81
  serverName: string,
79
82
  parameters: Server,
80
- options?: ServersCreateOptionalParams
83
+ options?: ServersCreateOptionalParams,
81
84
  ): Promise<ServersCreateResponse>;
82
85
  /**
83
86
  * Updates an existing server. The request body can contain one to many of the properties present in
@@ -91,7 +94,7 @@ export interface Servers {
91
94
  resourceGroupName: string,
92
95
  serverName: string,
93
96
  parameters: ServerForUpdate,
94
- options?: ServersUpdateOptionalParams
97
+ options?: ServersUpdateOptionalParams,
95
98
  ): Promise<
96
99
  SimplePollerLike<
97
100
  OperationState<ServersUpdateResponse>,
@@ -110,7 +113,7 @@ export interface Servers {
110
113
  resourceGroupName: string,
111
114
  serverName: string,
112
115
  parameters: ServerForUpdate,
113
- options?: ServersUpdateOptionalParams
116
+ options?: ServersUpdateOptionalParams,
114
117
  ): Promise<ServersUpdateResponse>;
115
118
  /**
116
119
  * Deletes a server.
@@ -121,7 +124,7 @@ export interface Servers {
121
124
  beginDelete(
122
125
  resourceGroupName: string,
123
126
  serverName: string,
124
- options?: ServersDeleteOptionalParams
127
+ options?: ServersDeleteOptionalParams,
125
128
  ): Promise<SimplePollerLike<OperationState<void>, void>>;
126
129
  /**
127
130
  * Deletes a server.
@@ -132,7 +135,7 @@ export interface Servers {
132
135
  beginDeleteAndWait(
133
136
  resourceGroupName: string,
134
137
  serverName: string,
135
- options?: ServersDeleteOptionalParams
138
+ options?: ServersDeleteOptionalParams,
136
139
  ): Promise<void>;
137
140
  /**
138
141
  * Gets information about a server.
@@ -143,7 +146,7 @@ export interface Servers {
143
146
  get(
144
147
  resourceGroupName: string,
145
148
  serverName: string,
146
- options?: ServersGetOptionalParams
149
+ options?: ServersGetOptionalParams,
147
150
  ): Promise<ServersGetResponse>;
148
151
  /**
149
152
  * Manual failover a server.
@@ -154,7 +157,7 @@ export interface Servers {
154
157
  beginFailover(
155
158
  resourceGroupName: string,
156
159
  serverName: string,
157
- options?: ServersFailoverOptionalParams
160
+ options?: ServersFailoverOptionalParams,
158
161
  ): Promise<SimplePollerLike<OperationState<void>, void>>;
159
162
  /**
160
163
  * Manual failover a server.
@@ -165,8 +168,21 @@ export interface Servers {
165
168
  beginFailoverAndWait(
166
169
  resourceGroupName: string,
167
170
  serverName: string,
168
- options?: ServersFailoverOptionalParams
171
+ options?: ServersFailoverOptionalParams,
169
172
  ): Promise<void>;
173
+ /**
174
+ * Validate a deployment of high availability.
175
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
176
+ * @param serverName The name of the server.
177
+ * @param parameters The required parameters for validation of high availability deployment.
178
+ * @param options The options parameters.
179
+ */
180
+ validateEstimateHighAvailability(
181
+ resourceGroupName: string,
182
+ serverName: string,
183
+ parameters: HighAvailabilityValidationEstimation,
184
+ options?: ServersValidateEstimateHighAvailabilityOptionalParams,
185
+ ): Promise<ServersValidateEstimateHighAvailabilityResponse>;
170
186
  /**
171
187
  * Restarts a server.
172
188
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -178,7 +194,7 @@ export interface Servers {
178
194
  resourceGroupName: string,
179
195
  serverName: string,
180
196
  parameters: ServerRestartParameter,
181
- options?: ServersRestartOptionalParams
197
+ options?: ServersRestartOptionalParams,
182
198
  ): Promise<SimplePollerLike<OperationState<void>, void>>;
183
199
  /**
184
200
  * Restarts a server.
@@ -191,7 +207,7 @@ export interface Servers {
191
207
  resourceGroupName: string,
192
208
  serverName: string,
193
209
  parameters: ServerRestartParameter,
194
- options?: ServersRestartOptionalParams
210
+ options?: ServersRestartOptionalParams,
195
211
  ): Promise<void>;
196
212
  /**
197
213
  * Starts a server.
@@ -202,7 +218,7 @@ export interface Servers {
202
218
  beginStart(
203
219
  resourceGroupName: string,
204
220
  serverName: string,
205
- options?: ServersStartOptionalParams
221
+ options?: ServersStartOptionalParams,
206
222
  ): Promise<SimplePollerLike<OperationState<void>, void>>;
207
223
  /**
208
224
  * Starts a server.
@@ -213,7 +229,7 @@ export interface Servers {
213
229
  beginStartAndWait(
214
230
  resourceGroupName: string,
215
231
  serverName: string,
216
- options?: ServersStartOptionalParams
232
+ options?: ServersStartOptionalParams,
217
233
  ): Promise<void>;
218
234
  /**
219
235
  * Stops a server.
@@ -224,7 +240,7 @@ export interface Servers {
224
240
  beginStop(
225
241
  resourceGroupName: string,
226
242
  serverName: string,
227
- options?: ServersStopOptionalParams
243
+ options?: ServersStopOptionalParams,
228
244
  ): Promise<SimplePollerLike<OperationState<void>, void>>;
229
245
  /**
230
246
  * Stops a server.
@@ -235,7 +251,7 @@ export interface Servers {
235
251
  beginStopAndWait(
236
252
  resourceGroupName: string,
237
253
  serverName: string,
238
- options?: ServersStopOptionalParams
254
+ options?: ServersStopOptionalParams,
239
255
  ): Promise<void>;
240
256
  /**
241
257
  * Resets GTID on a server.
@@ -248,7 +264,7 @@ export interface Servers {
248
264
  resourceGroupName: string,
249
265
  serverName: string,
250
266
  parameters: ServerGtidSetParameter,
251
- options?: ServersResetGtidOptionalParams
267
+ options?: ServersResetGtidOptionalParams,
252
268
  ): Promise<SimplePollerLike<OperationState<void>, void>>;
253
269
  /**
254
270
  * Resets GTID on a server.
@@ -261,6 +277,6 @@ export interface Servers {
261
277
  resourceGroupName: string,
262
278
  serverName: string,
263
279
  parameters: ServerGtidSetParameter,
264
- options?: ServersResetGtidOptionalParams
280
+ options?: ServersResetGtidOptionalParams,
265
281
  ): Promise<void>;
266
282
  }
@@ -0,0 +1,44 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ import { SimplePollerLike, OperationState } from "@azure/core-lro";
10
+ import {
11
+ ServersMigrationCutoverMigrationOptionalParams,
12
+ ServersMigrationCutoverMigrationResponse,
13
+ } from "../models";
14
+
15
+ /** Interface representing a ServersMigration. */
16
+ export interface ServersMigration {
17
+ /**
18
+ * Cutover migration for MySQL import, it will switch source elastic server DNS to flexible server.
19
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
20
+ * @param serverName The name of the server.
21
+ * @param options The options parameters.
22
+ */
23
+ beginCutoverMigration(
24
+ resourceGroupName: string,
25
+ serverName: string,
26
+ options?: ServersMigrationCutoverMigrationOptionalParams,
27
+ ): Promise<
28
+ SimplePollerLike<
29
+ OperationState<ServersMigrationCutoverMigrationResponse>,
30
+ ServersMigrationCutoverMigrationResponse
31
+ >
32
+ >;
33
+ /**
34
+ * Cutover migration for MySQL import, it will switch source elastic server DNS to flexible server.
35
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
36
+ * @param serverName The name of the server.
37
+ * @param options The options parameters.
38
+ */
39
+ beginCutoverMigrationAndWait(
40
+ resourceGroupName: string,
41
+ serverName: string,
42
+ options?: ServersMigrationCutoverMigrationOptionalParams,
43
+ ): Promise<ServersMigrationCutoverMigrationResponse>;
44
+ }
@@ -28,7 +28,7 @@ export function getContinuationToken(page: unknown): string | undefined {
28
28
 
29
29
  export function setContinuationToken(
30
30
  page: unknown,
31
- continuationToken: string | undefined
31
+ continuationToken: string | undefined,
32
32
  ): void {
33
33
  if (typeof page !== "object" || page === null || !continuationToken) {
34
34
  return;