@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
@@ -11,27 +11,15 @@ import * as coreClient from "@azure/core-client";
11
11
  export type BackupStoreDetailsUnion =
12
12
  | BackupStoreDetails
13
13
  | FullBackupStoreDetails;
14
-
15
- /** Metadata pertaining to creation and last modification of the resource. */
16
- export interface SystemData {
17
- /** The identity that created the resource. */
18
- createdBy?: string;
19
- /** The type of identity that created the resource. */
20
- createdByType?: CreatedByType;
21
- /** The timestamp of resource creation (UTC). */
22
- createdAt?: Date;
23
- /** The identity that last modified the resource. */
24
- lastModifiedBy?: string;
25
- /** The type of identity that last modified the resource. */
26
- lastModifiedByType?: CreatedByType;
27
- /** The timestamp of resource last modification (UTC) */
28
- lastModifiedAt?: Date;
29
- }
14
+ export type OperationProgressResponseTypeUnion =
15
+ | OperationProgressResponseType
16
+ | BackupAndExportResponseType
17
+ | ImportFromStorageResponseType;
30
18
 
31
19
  /** Common fields that are returned in the response for all Azure Resource Manager resources */
32
20
  export interface Resource {
33
21
  /**
34
- * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
22
+ * Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
35
23
  * NOTE: This property will not be serialized. It can only be populated by the server.
36
24
  */
37
25
  readonly id?: string;
@@ -45,16 +33,37 @@ export interface Resource {
45
33
  * NOTE: This property will not be serialized. It can only be populated by the server.
46
34
  */
47
35
  readonly type?: string;
36
+ /**
37
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
38
+ * NOTE: This property will not be serialized. It can only be populated by the server.
39
+ */
40
+ readonly systemData?: SystemData;
48
41
  }
49
42
 
50
- /** An error response from the Batch service. */
51
- export interface CloudError {
52
- /** The resource management error response. */
53
- error?: ErrorResponse;
43
+ /** Metadata pertaining to creation and last modification of the resource. */
44
+ export interface SystemData {
45
+ /** The identity that created the resource. */
46
+ createdBy?: string;
47
+ /** The type of identity that created the resource. */
48
+ createdByType?: CreatedByType;
49
+ /** The timestamp of resource creation (UTC). */
50
+ createdAt?: Date;
51
+ /** The identity that last modified the resource. */
52
+ lastModifiedBy?: string;
53
+ /** The type of identity that last modified the resource. */
54
+ lastModifiedByType?: CreatedByType;
55
+ /** The timestamp of resource last modification (UTC) */
56
+ lastModifiedAt?: Date;
54
57
  }
55
58
 
56
- /** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.) */
59
+ /** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */
57
60
  export interface ErrorResponse {
61
+ /** The error object. */
62
+ error?: ErrorDetail;
63
+ }
64
+
65
+ /** The error detail. */
66
+ export interface ErrorDetail {
58
67
  /**
59
68
  * The error code.
60
69
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -74,7 +83,7 @@ export interface ErrorResponse {
74
83
  * The error details.
75
84
  * NOTE: This property will not be serialized. It can only be populated by the server.
76
85
  */
77
- readonly details?: ErrorResponse[];
86
+ readonly details?: ErrorDetail[];
78
87
  /**
79
88
  * The error additional info.
80
89
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -138,6 +147,14 @@ export interface ValidateBackupResponse {
138
147
  numberOfContainers?: number;
139
148
  }
140
149
 
150
+ /** A list of server backups. */
151
+ export interface ServerBackupV2ListResult {
152
+ /** The list of backups of a server. */
153
+ value?: ServerBackupV2[];
154
+ /** The link used to get the next page of operations. */
155
+ nextLink?: string;
156
+ }
157
+
141
158
  /** A list of server configurations to update. */
142
159
  export interface ConfigurationListForBatchUpdate {
143
160
  /** The list of server configurations. */
@@ -181,7 +198,7 @@ export interface FirewallRuleListResult {
181
198
  }
182
199
 
183
200
  /** Properties to configure Identity for Bring your Own Keys */
184
- export interface Identity {
201
+ export interface MySQLServerIdentity {
185
202
  /**
186
203
  * ObjectId from the KeyVault
187
204
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -199,11 +216,11 @@ export interface Identity {
199
216
  }
200
217
 
201
218
  /** Billing information related properties of a server. */
202
- export interface Sku {
219
+ export interface MySQLServerSku {
203
220
  /** The name of the sku, e.g. Standard_D32s_v3. */
204
221
  name: string;
205
222
  /** The tier of the particular SKU, e.g. GeneralPurpose. */
206
- tier: SkuTier;
223
+ tier: ServerSkuTier;
207
224
  }
208
225
 
209
226
  /** The date encryption for cmk. */
@@ -243,6 +260,8 @@ export interface Storage {
243
260
  export interface Backup {
244
261
  /** Backup retention days for the server. */
245
262
  backupRetentionDays?: number;
263
+ /** Backup interval hours for the server. */
264
+ backupIntervalHours?: number;
246
265
  /** Whether or not geo redundant backup is enabled. */
247
266
  geoRedundantBackup?: EnableStatusEnum;
248
267
  /**
@@ -252,7 +271,7 @@ export interface Backup {
252
271
  readonly earliestRestoreDate?: Date;
253
272
  }
254
273
 
255
- /** Network related properties of a server */
274
+ /** High availability properties of a server */
256
275
  export interface HighAvailability {
257
276
  /** High availability mode for a server. */
258
277
  mode?: HighAvailabilityMode;
@@ -275,6 +294,25 @@ export interface Network {
275
294
  privateDnsZoneResourceId?: string;
276
295
  }
277
296
 
297
+ /** The private endpoint resource. */
298
+ export interface PrivateEndpoint {
299
+ /**
300
+ * The ARM identifier for private endpoint.
301
+ * NOTE: This property will not be serialized. It can only be populated by the server.
302
+ */
303
+ readonly id?: string;
304
+ }
305
+
306
+ /** A collection of information about the state of the connection between service consumer and provider. */
307
+ export interface PrivateLinkServiceConnectionState {
308
+ /** Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. */
309
+ status?: PrivateEndpointServiceConnectionStatus;
310
+ /** The reason for approval/rejection of the connection. */
311
+ description?: string;
312
+ /** A message indicating if changes on the service provider require any updates on the consumer. */
313
+ actionsRequired?: string;
314
+ }
315
+
278
316
  /** Maintenance window of a server. */
279
317
  export interface MaintenanceWindow {
280
318
  /** indicates whether custom window is enabled or disabled */
@@ -287,12 +325,24 @@ export interface MaintenanceWindow {
287
325
  dayOfWeek?: number;
288
326
  }
289
327
 
328
+ /** Import source related properties. */
329
+ export interface ImportSourceProperties {
330
+ /** Storage type of import source. */
331
+ storageType?: ImportSourceStorageType;
332
+ /** Uri of the import source storage. */
333
+ storageUrl?: string;
334
+ /** Sas token for accessing source storage. Read and list permissions are required for sas token. */
335
+ sasToken?: string;
336
+ /** Relative path of data directory in storage. */
337
+ dataDirPath?: string;
338
+ }
339
+
290
340
  /** Parameters allowed to update for a server. */
291
341
  export interface ServerForUpdate {
292
342
  /** The cmk identity for the server. */
293
- identity?: Identity;
343
+ identity?: MySQLServerIdentity;
294
344
  /** The SKU (pricing tier) of the server. */
295
- sku?: Sku;
345
+ sku?: MySQLServerSku;
296
346
  /** Application-specific metadata in the form of key-value pairs. */
297
347
  tags?: { [propertyName: string]: string };
298
348
  /**
@@ -314,6 +364,8 @@ export interface ServerForUpdate {
314
364
  replicationRole?: ReplicationRole;
315
365
  /** The Data Encryption for CMK. */
316
366
  dataEncryption?: DataEncryption;
367
+ /** Network related properties of a server */
368
+ network?: Network;
317
369
  }
318
370
 
319
371
  /** A list of servers. */
@@ -324,6 +376,22 @@ export interface ServerListResult {
324
376
  nextLink?: string;
325
377
  }
326
378
 
379
+ /** High availability validation properties of a server */
380
+ export interface HighAvailabilityValidationEstimation {
381
+ /**
382
+ * Estimated seconds of downtime for the deployment.
383
+ * NOTE: This property will not be serialized. It can only be populated by the server.
384
+ */
385
+ readonly estimatedDowntime?: number;
386
+ /**
387
+ * Scheduled Availability zone of the standby server.
388
+ * NOTE: This property will not be serialized. It can only be populated by the server.
389
+ */
390
+ readonly scheduledStandbyAvailabilityZone?: string;
391
+ /** Expected Availability zone of the standby server. */
392
+ expectedStandbyAvailabilityZone?: string;
393
+ }
394
+
327
395
  /** Server restart parameters. */
328
396
  export interface ServerRestartParameter {
329
397
  /** Whether or not failover to standby server when restarting a server with high availability enabled. */
@@ -332,12 +400,32 @@ export interface ServerRestartParameter {
332
400
  maxFailoverSeconds?: number;
333
401
  }
334
402
 
335
- /** Server gtid set parameters. */
403
+ /** Server Gtid set parameters. */
336
404
  export interface ServerGtidSetParameter {
337
- /** The gtid set of server. */
405
+ /** The Gtid set of server. */
338
406
  gtidSet?: string;
339
407
  }
340
408
 
409
+ /** Parameters allowed to update advanced threat protection for a server. */
410
+ export interface AdvancedThreatProtectionForUpdate {
411
+ /** Specifies the state of the Advanced Threat Protection, whether it is enabled or disabled or a state has not been applied yet on the specific database or server. */
412
+ state?: AdvancedThreatProtectionState;
413
+ }
414
+
415
+ /** A list of the server's Advanced Threat Protection configurations. */
416
+ export interface AdvancedThreatProtectionListResult {
417
+ /**
418
+ * Array of results.
419
+ * NOTE: This property will not be serialized. It can only be populated by the server.
420
+ */
421
+ readonly value?: AdvancedThreatProtection[];
422
+ /**
423
+ * Link to retrieve next page of results.
424
+ * NOTE: This property will not be serialized. It can only be populated by the server.
425
+ */
426
+ readonly nextLink?: string;
427
+ }
428
+
341
429
  /** A List of logFiles. */
342
430
  export interface LogFileListResult {
343
431
  /** The list of logFiles in a server */
@@ -430,6 +518,16 @@ export interface StorageEditionCapability {
430
518
  * NOTE: This property will not be serialized. It can only be populated by the server.
431
519
  */
432
520
  readonly maxBackupRetentionDays?: number;
521
+ /**
522
+ * Minimal backup interval hours
523
+ * NOTE: This property will not be serialized. It can only be populated by the server.
524
+ */
525
+ readonly minBackupIntervalHours?: number;
526
+ /**
527
+ * Maximum backup interval hours
528
+ * NOTE: This property will not be serialized. It can only be populated by the server.
529
+ */
530
+ readonly maxBackupIntervalHours?: number;
433
531
  }
434
532
 
435
533
  /** Server version capabilities. */
@@ -470,6 +568,92 @@ export interface SkuCapability {
470
568
  readonly supportedMemoryPerVCoreMB?: number;
471
569
  }
472
570
 
571
+ /** location capability set */
572
+ export interface CapabilitySetsList {
573
+ /**
574
+ * A list of supported capability sets.
575
+ * NOTE: This property will not be serialized. It can only be populated by the server.
576
+ */
577
+ readonly value?: Capability[];
578
+ /**
579
+ * Link to retrieve next page of results.
580
+ * NOTE: This property will not be serialized. It can only be populated by the server.
581
+ */
582
+ readonly nextLink?: string;
583
+ }
584
+
585
+ /** Server edition capabilities. */
586
+ export interface ServerEditionCapabilityV2 {
587
+ /**
588
+ * Server edition name
589
+ * NOTE: This property will not be serialized. It can only be populated by the server.
590
+ */
591
+ readonly name?: string;
592
+ /**
593
+ * Default Sku name
594
+ * NOTE: This property will not be serialized. It can only be populated by the server.
595
+ */
596
+ readonly defaultSku?: string;
597
+ /**
598
+ * Default storage size
599
+ * NOTE: This property will not be serialized. It can only be populated by the server.
600
+ */
601
+ readonly defaultStorageSize?: number;
602
+ /**
603
+ * A list of supported storage editions
604
+ * NOTE: This property will not be serialized. It can only be populated by the server.
605
+ */
606
+ readonly supportedStorageEditions?: StorageEditionCapability[];
607
+ /**
608
+ * A list of supported Skus
609
+ * NOTE: This property will not be serialized. It can only be populated by the server.
610
+ */
611
+ readonly supportedSkus?: SkuCapabilityV2[];
612
+ }
613
+
614
+ /** Sku capability */
615
+ export interface SkuCapabilityV2 {
616
+ /**
617
+ * vCore name
618
+ * NOTE: This property will not be serialized. It can only be populated by the server.
619
+ */
620
+ readonly name?: string;
621
+ /**
622
+ * supported vCores
623
+ * NOTE: This property will not be serialized. It can only be populated by the server.
624
+ */
625
+ readonly vCores?: number;
626
+ /**
627
+ * supported IOPS
628
+ * NOTE: This property will not be serialized. It can only be populated by the server.
629
+ */
630
+ readonly supportedIops?: number;
631
+ /**
632
+ * supported memory per vCore in MB
633
+ * NOTE: This property will not be serialized. It can only be populated by the server.
634
+ */
635
+ readonly supportedMemoryPerVCoreMB?: number;
636
+ /**
637
+ * Supported zones
638
+ * NOTE: This property will not be serialized. It can only be populated by the server.
639
+ */
640
+ readonly supportedZones?: string[];
641
+ /**
642
+ * Supported high availability mode
643
+ * NOTE: This property will not be serialized. It can only be populated by the server.
644
+ */
645
+ readonly supportedHAMode?: string[];
646
+ }
647
+
648
+ /** Server version capabilities. */
649
+ export interface ServerVersionCapabilityV2 {
650
+ /**
651
+ * server version
652
+ * NOTE: This property will not be serialized. It can only be populated by the server.
653
+ */
654
+ readonly name?: string;
655
+ }
656
+
473
657
  /** Virtual network subnet usage parameter */
474
658
  export interface VirtualNetworkSubnetUsageParameter {
475
659
  /** Virtual network resource id. */
@@ -527,6 +711,37 @@ export interface NameAvailability {
527
711
  reason?: string;
528
712
  }
529
713
 
714
+ /** The current status of an async operation. */
715
+ export interface OperationStatusResult {
716
+ /** Fully qualified ID for the async operation. */
717
+ id?: string;
718
+ /**
719
+ * Fully qualified ID of the resource against which the original async operation was started.
720
+ * NOTE: This property will not be serialized. It can only be populated by the server.
721
+ */
722
+ readonly resourceId?: string;
723
+ /** Name of the async operation. */
724
+ name?: string;
725
+ /** Operation status. */
726
+ status: string;
727
+ /** Percent of the operation that is complete. */
728
+ percentComplete?: number;
729
+ /** The start time of the operation. */
730
+ startTime?: Date;
731
+ /** The end time of the operation. */
732
+ endTime?: Date;
733
+ /** The operations list. */
734
+ operations?: OperationStatusResult[];
735
+ /** If present, details of the operation error. */
736
+ error?: ErrorDetail;
737
+ }
738
+
739
+ /** Represents the response properties specific to the operation */
740
+ export interface OperationProgressResponseType {
741
+ /** Polymorphic discriminator, which specifies the different types this object can be */
742
+ objectType: "BackupAndExportResponse" | "ImportFromStorageResponse";
743
+ }
744
+
530
745
  /** The response of get private dns zone suffix. */
531
746
  export interface GetPrivateDnsZoneSuffixResponse {
532
747
  /** Represents the private DNS zone suffix. */
@@ -565,6 +780,20 @@ export interface OperationDisplay {
565
780
  description?: string;
566
781
  }
567
782
 
783
+ /** Represents a maintenance update parameter. */
784
+ export interface MaintenanceUpdate {
785
+ /** The start time for a maintenance. */
786
+ maintenanceStartTime?: Date;
787
+ }
788
+
789
+ /** A list of maintenances. */
790
+ export interface MaintenanceListResult {
791
+ /** The list of maintenances in a server. */
792
+ value?: Maintenance[];
793
+ /** The link used to get the next page of operations. */
794
+ nextLink?: string;
795
+ }
796
+
568
797
  /** Metadata of user assigned identity. */
569
798
  export interface UserAssignedIdentity {
570
799
  /**
@@ -582,6 +811,24 @@ export interface UserAssignedIdentity {
582
811
  /** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */
583
812
  export interface ProxyResource extends Resource {}
584
813
 
814
+ /** The private endpoint connection resource. */
815
+ export interface PrivateEndpointConnection extends Resource {
816
+ /**
817
+ * The group ids for the private endpoint resource.
818
+ * NOTE: This property will not be serialized. It can only be populated by the server.
819
+ */
820
+ readonly groupIds?: string[];
821
+ /** The private endpoint resource. */
822
+ privateEndpoint?: PrivateEndpoint;
823
+ /** A collection of information about the state of the connection between service consumer and provider. */
824
+ privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState;
825
+ /**
826
+ * The provisioning state of the private endpoint connection resource.
827
+ * NOTE: This property will not be serialized. It can only be populated by the server.
828
+ */
829
+ readonly provisioningState?: PrivateEndpointConnectionProvisioningState;
830
+ }
831
+
585
832
  /** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */
586
833
  export interface TrackedResource extends Resource {
587
834
  /** Resource tags. */
@@ -590,6 +837,24 @@ export interface TrackedResource extends Resource {
590
837
  location: string;
591
838
  }
592
839
 
840
+ /** Represents BackupAndExport API Response */
841
+ export interface BackupAndExportResponse extends ProxyResource, ErrorResponse {
842
+ /** The operation status */
843
+ status?: OperationStatus;
844
+ /** Start time */
845
+ startTime?: Date;
846
+ /** End time */
847
+ endTime?: Date;
848
+ /** Operation progress (0-100). */
849
+ percentComplete?: number;
850
+ /** Size of datasource in bytes */
851
+ datasourceSizeInBytes?: number;
852
+ /** Data transferred in bytes */
853
+ dataTransferredInBytes?: number;
854
+ /** Metadata related to backup to be stored for restoring resource in key-value pairs. */
855
+ backupMetadata?: string;
856
+ }
857
+
593
858
  /** FullBackupStoreDetails is used for scenarios where backup data is streamed/copied over to a storage destination. */
594
859
  export interface FullBackupStoreDetails extends BackupStoreDetails {
595
860
  /** Polymorphic discriminator, which specifies the different types this object can be */
@@ -604,13 +869,42 @@ export interface BackupAndExportRequest extends BackupRequestBase {
604
869
  targetDetails: BackupStoreDetailsUnion;
605
870
  }
606
871
 
872
+ /** Represents Operation Results API Response */
873
+ export interface OperationStatusExtendedResult extends OperationStatusResult {
874
+ /** The extended properties of Operation Results */
875
+ properties?: { [propertyName: string]: any };
876
+ }
877
+
878
+ /** Represents Operation Results API Response */
879
+ export interface OperationProgressResult extends OperationStatusResult {
880
+ /** Identifies the type of source operation */
881
+ objectType?: ObjectType;
882
+ }
883
+
884
+ /** BackupAndExport Response Properties */
885
+ export interface BackupAndExportResponseType
886
+ extends OperationProgressResponseType {
887
+ /** Polymorphic discriminator, which specifies the different types this object can be */
888
+ objectType: "BackupAndExportResponse";
889
+ /** Size of datasource in bytes */
890
+ datasourceSizeInBytes?: number;
891
+ /** Data transferred in bytes */
892
+ dataTransferredInBytes?: number;
893
+ /** Metadata related to backup to be stored for restoring resource in key-value pairs. */
894
+ backupMetadata?: string;
895
+ }
896
+
897
+ /** ImportFromStorage Response Properties */
898
+ export interface ImportFromStorageResponseType
899
+ extends OperationProgressResponseType {
900
+ /** Polymorphic discriminator, which specifies the different types this object can be */
901
+ objectType: "ImportFromStorageResponse";
902
+ /** The estimated time of operation completion. */
903
+ estimatedCompletionTime?: Date;
904
+ }
905
+
607
906
  /** Represents a Administrator. */
608
907
  export interface AzureADAdministrator extends ProxyResource {
609
- /**
610
- * The system metadata relating to this resource.
611
- * NOTE: This property will not be serialized. It can only be populated by the server.
612
- */
613
- readonly systemData?: SystemData;
614
908
  /** Type of the sever administrator. */
615
909
  administratorType?: AdministratorType;
616
910
  /** Login name of the server administrator. */
@@ -625,11 +919,6 @@ export interface AzureADAdministrator extends ProxyResource {
625
919
 
626
920
  /** Server backup properties */
627
921
  export interface ServerBackup extends ProxyResource {
628
- /**
629
- * The system metadata relating to this resource.
630
- * NOTE: This property will not be serialized. It can only be populated by the server.
631
- */
632
- readonly systemData?: SystemData;
633
922
  /** Backup type. */
634
923
  backupType?: string;
635
924
  /** Backup completed time (ISO8601 format). */
@@ -638,33 +927,24 @@ export interface ServerBackup extends ProxyResource {
638
927
  source?: string;
639
928
  }
640
929
 
641
- /** Represents BackupAndExport API Response */
642
- export interface BackupAndExportResponse extends ProxyResource {
643
- /** The operation status */
644
- status?: OperationStatus;
645
- /** Start time */
646
- startTime?: Date;
647
- /** End time */
648
- endTime?: Date;
649
- /** Operation progress (0-100). */
650
- percentComplete?: number;
651
- /** The BackupAndExport operation error response. */
652
- error?: ErrorResponse;
653
- /** Size of datasource in bytes */
654
- datasourceSizeInBytes?: number;
655
- /** Data transferred in bytes */
656
- dataTransferredInBytes?: number;
657
- /** Metadata related to backup to be stored for restoring resource in key-value pairs. */
658
- backupMetadata?: string;
930
+ /** Server backup properties */
931
+ export interface ServerBackupV2 extends ProxyResource {
932
+ /** Backup name */
933
+ backupNameV2?: string;
934
+ backupType?: BackupType;
935
+ /** Backup completed time (ISO8601 format). */
936
+ completedTime?: Date;
937
+ /** Backup source */
938
+ source?: string;
939
+ /**
940
+ * The provisioning state of backup resource.
941
+ * NOTE: This property will not be serialized. It can only be populated by the server.
942
+ */
943
+ readonly provisioningState?: ProvisioningState;
659
944
  }
660
945
 
661
946
  /** Represents a Configuration. */
662
947
  export interface Configuration extends ProxyResource {
663
- /**
664
- * The system metadata relating to this resource.
665
- * NOTE: This property will not be serialized. It can only be populated by the server.
666
- */
667
- readonly systemData?: SystemData;
668
948
  /** Value of the configuration. */
669
949
  value?: string;
670
950
  /** Current value of the configuration. */
@@ -715,11 +995,6 @@ export interface Configuration extends ProxyResource {
715
995
 
716
996
  /** Represents a Database. */
717
997
  export interface Database extends ProxyResource {
718
- /**
719
- * The system metadata relating to this resource.
720
- * NOTE: This property will not be serialized. It can only be populated by the server.
721
- */
722
- readonly systemData?: SystemData;
723
998
  /** The charset of the database. */
724
999
  charset?: string;
725
1000
  /** The collation of the database. */
@@ -728,24 +1003,30 @@ export interface Database extends ProxyResource {
728
1003
 
729
1004
  /** Represents a server firewall rule. */
730
1005
  export interface FirewallRule extends ProxyResource {
731
- /**
732
- * The system metadata relating to this resource.
733
- * NOTE: This property will not be serialized. It can only be populated by the server.
734
- */
735
- readonly systemData?: SystemData;
736
1006
  /** The start IP address of the server firewall rule. Must be IPv4 format. */
737
1007
  startIpAddress: string;
738
1008
  /** The end IP address of the server firewall rule. Must be IPv4 format. */
739
1009
  endIpAddress: string;
740
1010
  }
741
1011
 
742
- /** Represents a logFile. */
743
- export interface LogFile extends ProxyResource {
1012
+ /** A server's Advanced Threat Protection. */
1013
+ export interface AdvancedThreatProtection extends ProxyResource {
744
1014
  /**
745
- * The system metadata relating to this resource.
1015
+ * Specifies the UTC creation time of the policy.
746
1016
  * NOTE: This property will not be serialized. It can only be populated by the server.
747
1017
  */
748
- readonly systemData?: SystemData;
1018
+ readonly creationTime?: Date;
1019
+ /** Specifies the state of the Advanced Threat Protection, whether it is enabled or disabled or a state has not been applied yet on the specific database or server. */
1020
+ state?: AdvancedThreatProtectionState;
1021
+ /**
1022
+ * Provisioning state of the Threat Protection.
1023
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1024
+ */
1025
+ readonly provisioningState?: AdvancedThreatProtectionProvisioningState;
1026
+ }
1027
+
1028
+ /** Represents a logFile. */
1029
+ export interface LogFile extends ProxyResource {
749
1030
  /** The size in kb of the logFile. */
750
1031
  sizeInKB?: number;
751
1032
  /** Creation timestamp of the log file. */
@@ -758,17 +1039,96 @@ export interface LogFile extends ProxyResource {
758
1039
  url?: string;
759
1040
  }
760
1041
 
1042
+ /** Represents a location capability set. */
1043
+ export interface Capability extends ProxyResource {
1044
+ /**
1045
+ * supported geo backup regions
1046
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1047
+ */
1048
+ readonly supportedGeoBackupRegions?: string[];
1049
+ /**
1050
+ * A list of supported flexible server editions.
1051
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1052
+ */
1053
+ readonly supportedFlexibleServerEditions?: ServerEditionCapabilityV2[];
1054
+ /**
1055
+ * A list of supported server versions.
1056
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1057
+ */
1058
+ readonly supportedServerVersions?: ServerVersionCapabilityV2[];
1059
+ }
1060
+
1061
+ /** Represents a maintenance. */
1062
+ export interface Maintenance extends ProxyResource {
1063
+ /**
1064
+ * A string defines maintenance type.
1065
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1066
+ */
1067
+ readonly maintenanceType?: MaintenanceType;
1068
+ /**
1069
+ * A string describes the maintenance status
1070
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1071
+ */
1072
+ readonly maintenanceState?: MaintenanceState;
1073
+ /** The start time for a maintenance. */
1074
+ maintenanceStartTime?: Date;
1075
+ /**
1076
+ * The end time for a maintenance.
1077
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1078
+ */
1079
+ readonly maintenanceEndTime?: Date;
1080
+ /**
1081
+ * The start time for a maintenance execution.
1082
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1083
+ */
1084
+ readonly maintenanceExecutionStartTime?: Date;
1085
+ /**
1086
+ * The end time for a maintenance execution.
1087
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1088
+ */
1089
+ readonly maintenanceExecutionEndTime?: Date;
1090
+ /**
1091
+ * The min time the maintenance can be rescheduled.
1092
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1093
+ */
1094
+ readonly maintenanceAvailableScheduleMinTime?: Date;
1095
+ /**
1096
+ * The max time the maintenance can be rescheduled.
1097
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1098
+ */
1099
+ readonly maintenanceAvailableScheduleMaxTime?: Date;
1100
+ /**
1101
+ * The maintenance title.
1102
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1103
+ */
1104
+ readonly maintenanceTitle?: string;
1105
+ /**
1106
+ * The maintenance description.
1107
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1108
+ */
1109
+ readonly maintenanceDescription?: string;
1110
+ /**
1111
+ * Provisioning state of the Maintenance.
1112
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1113
+ */
1114
+ readonly provisioningState?: MaintenanceProvisioningState;
1115
+ }
1116
+
1117
+ /** Server backup properties */
1118
+ export interface Provisioning extends ProxyResource {
1119
+ /**
1120
+ * The provisioning state of backup resource.
1121
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1122
+ */
1123
+ readonly provisioningState?: ProvisioningState;
1124
+ }
1125
+
761
1126
  /** Represents a server. */
762
1127
  export interface Server extends TrackedResource {
763
1128
  /** The cmk identity for the server. */
764
- identity?: Identity;
1129
+ identity?: MySQLServerIdentity;
765
1130
  /** The SKU (pricing tier) of the server. */
766
- sku?: Sku;
767
- /**
768
- * The system metadata relating to this resource.
769
- * NOTE: This property will not be serialized. It can only be populated by the server.
770
- */
771
- readonly systemData?: SystemData;
1131
+ sku?: MySQLServerSku;
772
1132
  /** The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation). */
773
1133
  administratorLogin?: string;
774
1134
  /**
@@ -813,8 +1173,15 @@ export interface Server extends TrackedResource {
813
1173
  highAvailability?: HighAvailability;
814
1174
  /** Network related properties of a server. */
815
1175
  network?: Network;
1176
+ /**
1177
+ * PrivateEndpointConnections related properties of a server.
1178
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1179
+ */
1180
+ readonly privateEndpointConnections?: PrivateEndpointConnection[];
816
1181
  /** Maintenance window of a server. */
817
1182
  maintenanceWindow?: MaintenanceWindow;
1183
+ /** Source properties for import from storage. */
1184
+ importSourceProperties?: ImportSourceProperties;
818
1185
  }
819
1186
 
820
1187
  /** Defines headers for BackupAndExport_create operation. */
@@ -825,6 +1192,14 @@ export interface BackupAndExportCreateHeaders {
825
1192
  azureAsyncOperation?: string;
826
1193
  }
827
1194
 
1195
+ /** Defines headers for LongRunningBackup_create operation. */
1196
+ export interface LongRunningBackupCreateHeaders {
1197
+ /** URL to retrieve the final result after operation completes. */
1198
+ location?: string;
1199
+ /** URL to query for status of the operation. */
1200
+ azureAsyncOperation?: string;
1201
+ }
1202
+
828
1203
  /** Defines headers for Configurations_createOrUpdate operation. */
829
1204
  export interface ConfigurationsCreateOrUpdateHeaders {
830
1205
  location?: string;
@@ -870,10 +1245,39 @@ export interface ServersResetGtidHeaders {
870
1245
  location?: string;
871
1246
  }
872
1247
 
1248
+ /** Defines headers for ServersMigration_cutoverMigration operation. */
1249
+ export interface ServersMigrationCutoverMigrationHeaders {
1250
+ /** URL to retrieve the final result after operation completes. */
1251
+ location?: string;
1252
+ /** URL to query for status of the operation. */
1253
+ azureAsyncOperation?: string;
1254
+ }
1255
+
1256
+ /** Defines headers for AdvancedThreatProtectionSettings_update operation. */
1257
+ export interface AdvancedThreatProtectionSettingsUpdateHeaders {
1258
+ /** URL to retrieve the final result after operation completes. */
1259
+ location?: string;
1260
+ /** URL to query for status of the operation. */
1261
+ azureAsyncOperation?: string;
1262
+ }
1263
+
1264
+ /** Defines headers for AdvancedThreatProtectionSettings_updatePut operation. */
1265
+ export interface AdvancedThreatProtectionSettingsUpdatePutHeaders {
1266
+ /** URL to retrieve the final result after operation completes. */
1267
+ location?: string;
1268
+ /** URL to query for status of the operation. */
1269
+ azureAsyncOperation?: string;
1270
+ }
1271
+
1272
+ /** Defines headers for Maintenances_update operation. */
1273
+ export interface MaintenancesUpdateHeaders {
1274
+ location?: string;
1275
+ }
1276
+
873
1277
  /** Known values of {@link AdministratorName} that the service accepts. */
874
1278
  export enum KnownAdministratorName {
875
1279
  /** ActiveDirectory */
876
- ActiveDirectory = "ActiveDirectory"
1280
+ ActiveDirectory = "ActiveDirectory",
877
1281
  }
878
1282
 
879
1283
  /**
@@ -888,7 +1292,7 @@ export type AdministratorName = string;
888
1292
  /** Known values of {@link AdministratorType} that the service accepts. */
889
1293
  export enum KnownAdministratorType {
890
1294
  /** ActiveDirectory */
891
- ActiveDirectory = "ActiveDirectory"
1295
+ ActiveDirectory = "ActiveDirectory",
892
1296
  }
893
1297
 
894
1298
  /**
@@ -909,7 +1313,7 @@ export enum KnownCreatedByType {
909
1313
  /** ManagedIdentity */
910
1314
  ManagedIdentity = "ManagedIdentity",
911
1315
  /** Key */
912
- Key = "Key"
1316
+ Key = "Key",
913
1317
  }
914
1318
 
915
1319
  /**
@@ -926,10 +1330,10 @@ export type CreatedByType = string;
926
1330
 
927
1331
  /** Known values of {@link BackupFormat} that the service accepts. */
928
1332
  export enum KnownBackupFormat {
929
- /** None */
930
- None = "None",
931
1333
  /** CollatedFormat */
932
- CollatedFormat = "CollatedFormat"
1334
+ CollatedFormat = "CollatedFormat",
1335
+ /** Raw */
1336
+ Raw = "Raw",
933
1337
  }
934
1338
 
935
1339
  /**
@@ -937,17 +1341,59 @@ export enum KnownBackupFormat {
937
1341
  * {@link KnownBackupFormat} can be used interchangeably with BackupFormat,
938
1342
  * this enum contains the known values that the service supports.
939
1343
  * ### Known values supported by the service
940
- * **None** \
941
- * **CollatedFormat**
1344
+ * **CollatedFormat** \
1345
+ * **Raw**
942
1346
  */
943
1347
  export type BackupFormat = string;
944
1348
 
1349
+ /** Known values of {@link BackupType} that the service accepts. */
1350
+ export enum KnownBackupType {
1351
+ /** Full */
1352
+ Full = "FULL",
1353
+ }
1354
+
1355
+ /**
1356
+ * Defines values for BackupType. \
1357
+ * {@link KnownBackupType} can be used interchangeably with BackupType,
1358
+ * this enum contains the known values that the service supports.
1359
+ * ### Known values supported by the service
1360
+ * **FULL**
1361
+ */
1362
+ export type BackupType = string;
1363
+
1364
+ /** Known values of {@link ProvisioningState} that the service accepts. */
1365
+ export enum KnownProvisioningState {
1366
+ /** Succeeded */
1367
+ Succeeded = "Succeeded",
1368
+ /** Creating */
1369
+ Creating = "Creating",
1370
+ /** Deleting */
1371
+ Deleting = "Deleting",
1372
+ /** Failed */
1373
+ Failed = "Failed",
1374
+ /** Canceled */
1375
+ Canceled = "Canceled",
1376
+ }
1377
+
1378
+ /**
1379
+ * Defines values for ProvisioningState. \
1380
+ * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState,
1381
+ * this enum contains the known values that the service supports.
1382
+ * ### Known values supported by the service
1383
+ * **Succeeded** \
1384
+ * **Creating** \
1385
+ * **Deleting** \
1386
+ * **Failed** \
1387
+ * **Canceled**
1388
+ */
1389
+ export type ProvisioningState = string;
1390
+
945
1391
  /** Known values of {@link ConfigurationSource} that the service accepts. */
946
1392
  export enum KnownConfigurationSource {
947
1393
  /** SystemDefault */
948
1394
  SystemDefault = "system-default",
949
1395
  /** UserOverride */
950
- UserOverride = "user-override"
1396
+ UserOverride = "user-override",
951
1397
  }
952
1398
 
953
1399
  /**
@@ -965,7 +1411,7 @@ export enum KnownIsReadOnly {
965
1411
  /** True */
966
1412
  True = "True",
967
1413
  /** False */
968
- False = "False"
1414
+ False = "False",
969
1415
  }
970
1416
 
971
1417
  /**
@@ -983,7 +1429,7 @@ export enum KnownIsConfigPendingRestart {
983
1429
  /** True */
984
1430
  True = "True",
985
1431
  /** False */
986
- False = "False"
1432
+ False = "False",
987
1433
  }
988
1434
 
989
1435
  /**
@@ -1001,7 +1447,7 @@ export enum KnownIsDynamicConfig {
1001
1447
  /** True */
1002
1448
  True = "True",
1003
1449
  /** False */
1004
- False = "False"
1450
+ False = "False",
1005
1451
  }
1006
1452
 
1007
1453
  /**
@@ -1019,7 +1465,7 @@ export enum KnownResetAllToDefault {
1019
1465
  /** True */
1020
1466
  True = "True",
1021
1467
  /** False */
1022
- False = "False"
1468
+ False = "False",
1023
1469
  }
1024
1470
 
1025
1471
  /**
@@ -1035,7 +1481,7 @@ export type ResetAllToDefault = string;
1035
1481
  /** Known values of {@link ManagedServiceIdentityType} that the service accepts. */
1036
1482
  export enum KnownManagedServiceIdentityType {
1037
1483
  /** UserAssigned */
1038
- UserAssigned = "UserAssigned"
1484
+ UserAssigned = "UserAssigned",
1039
1485
  }
1040
1486
 
1041
1487
  /**
@@ -1047,33 +1493,33 @@ export enum KnownManagedServiceIdentityType {
1047
1493
  */
1048
1494
  export type ManagedServiceIdentityType = string;
1049
1495
 
1050
- /** Known values of {@link SkuTier} that the service accepts. */
1051
- export enum KnownSkuTier {
1496
+ /** Known values of {@link ServerSkuTier} that the service accepts. */
1497
+ export enum KnownServerSkuTier {
1052
1498
  /** Burstable */
1053
1499
  Burstable = "Burstable",
1054
1500
  /** GeneralPurpose */
1055
1501
  GeneralPurpose = "GeneralPurpose",
1056
1502
  /** MemoryOptimized */
1057
- MemoryOptimized = "MemoryOptimized"
1503
+ MemoryOptimized = "MemoryOptimized",
1058
1504
  }
1059
1505
 
1060
1506
  /**
1061
- * Defines values for SkuTier. \
1062
- * {@link KnownSkuTier} can be used interchangeably with SkuTier,
1507
+ * Defines values for ServerSkuTier. \
1508
+ * {@link KnownServerSkuTier} can be used interchangeably with ServerSkuTier,
1063
1509
  * this enum contains the known values that the service supports.
1064
1510
  * ### Known values supported by the service
1065
1511
  * **Burstable** \
1066
1512
  * **GeneralPurpose** \
1067
1513
  * **MemoryOptimized**
1068
1514
  */
1069
- export type SkuTier = string;
1515
+ export type ServerSkuTier = string;
1070
1516
 
1071
1517
  /** Known values of {@link ServerVersion} that the service accepts. */
1072
1518
  export enum KnownServerVersion {
1073
1519
  /** Five7 */
1074
1520
  Five7 = "5.7",
1075
1521
  /** Eight021 */
1076
- Eight021 = "8.0.21"
1522
+ Eight021 = "8.0.21",
1077
1523
  }
1078
1524
 
1079
1525
  /**
@@ -1095,7 +1541,7 @@ export enum KnownCreateMode {
1095
1541
  /** Replica */
1096
1542
  Replica = "Replica",
1097
1543
  /** GeoRestore */
1098
- GeoRestore = "GeoRestore"
1544
+ GeoRestore = "GeoRestore",
1099
1545
  }
1100
1546
 
1101
1547
  /**
@@ -1117,7 +1563,7 @@ export enum KnownReplicationRole {
1117
1563
  /** Source */
1118
1564
  Source = "Source",
1119
1565
  /** Replica */
1120
- Replica = "Replica"
1566
+ Replica = "Replica",
1121
1567
  }
1122
1568
 
1123
1569
  /**
@@ -1146,7 +1592,7 @@ export enum KnownServerState {
1146
1592
  /** Stopped */
1147
1593
  Stopped = "Stopped",
1148
1594
  /** Updating */
1149
- Updating = "Updating"
1595
+ Updating = "Updating",
1150
1596
  }
1151
1597
 
1152
1598
  /**
@@ -1169,7 +1615,7 @@ export enum KnownEnableStatusEnum {
1169
1615
  /** Enabled */
1170
1616
  Enabled = "Enabled",
1171
1617
  /** Disabled */
1172
- Disabled = "Disabled"
1618
+ Disabled = "Disabled",
1173
1619
  }
1174
1620
 
1175
1621
  /**
@@ -1189,7 +1635,7 @@ export enum KnownHighAvailabilityMode {
1189
1635
  /** ZoneRedundant */
1190
1636
  ZoneRedundant = "ZoneRedundant",
1191
1637
  /** SameZone */
1192
- SameZone = "SameZone"
1638
+ SameZone = "SameZone",
1193
1639
  }
1194
1640
 
1195
1641
  /**
@@ -1214,7 +1660,7 @@ export enum KnownHighAvailabilityState {
1214
1660
  /** FailingOver */
1215
1661
  FailingOver = "FailingOver",
1216
1662
  /** RemovingStandby */
1217
- RemovingStandby = "RemovingStandby"
1663
+ RemovingStandby = "RemovingStandby",
1218
1664
  }
1219
1665
 
1220
1666
  /**
@@ -1229,6 +1675,219 @@ export enum KnownHighAvailabilityState {
1229
1675
  * **RemovingStandby**
1230
1676
  */
1231
1677
  export type HighAvailabilityState = string;
1678
+
1679
+ /** Known values of {@link PrivateEndpointServiceConnectionStatus} that the service accepts. */
1680
+ export enum KnownPrivateEndpointServiceConnectionStatus {
1681
+ /** Pending */
1682
+ Pending = "Pending",
1683
+ /** Approved */
1684
+ Approved = "Approved",
1685
+ /** Rejected */
1686
+ Rejected = "Rejected",
1687
+ }
1688
+
1689
+ /**
1690
+ * Defines values for PrivateEndpointServiceConnectionStatus. \
1691
+ * {@link KnownPrivateEndpointServiceConnectionStatus} can be used interchangeably with PrivateEndpointServiceConnectionStatus,
1692
+ * this enum contains the known values that the service supports.
1693
+ * ### Known values supported by the service
1694
+ * **Pending** \
1695
+ * **Approved** \
1696
+ * **Rejected**
1697
+ */
1698
+ export type PrivateEndpointServiceConnectionStatus = string;
1699
+
1700
+ /** Known values of {@link PrivateEndpointConnectionProvisioningState} that the service accepts. */
1701
+ export enum KnownPrivateEndpointConnectionProvisioningState {
1702
+ /** Succeeded */
1703
+ Succeeded = "Succeeded",
1704
+ /** Creating */
1705
+ Creating = "Creating",
1706
+ /** Deleting */
1707
+ Deleting = "Deleting",
1708
+ /** Failed */
1709
+ Failed = "Failed",
1710
+ }
1711
+
1712
+ /**
1713
+ * Defines values for PrivateEndpointConnectionProvisioningState. \
1714
+ * {@link KnownPrivateEndpointConnectionProvisioningState} can be used interchangeably with PrivateEndpointConnectionProvisioningState,
1715
+ * this enum contains the known values that the service supports.
1716
+ * ### Known values supported by the service
1717
+ * **Succeeded** \
1718
+ * **Creating** \
1719
+ * **Deleting** \
1720
+ * **Failed**
1721
+ */
1722
+ export type PrivateEndpointConnectionProvisioningState = string;
1723
+
1724
+ /** Known values of {@link ImportSourceStorageType} that the service accepts. */
1725
+ export enum KnownImportSourceStorageType {
1726
+ /** AzureBlob */
1727
+ AzureBlob = "AzureBlob",
1728
+ }
1729
+
1730
+ /**
1731
+ * Defines values for ImportSourceStorageType. \
1732
+ * {@link KnownImportSourceStorageType} can be used interchangeably with ImportSourceStorageType,
1733
+ * this enum contains the known values that the service supports.
1734
+ * ### Known values supported by the service
1735
+ * **AzureBlob**
1736
+ */
1737
+ export type ImportSourceStorageType = string;
1738
+
1739
+ /** Known values of {@link AdvancedThreatProtectionName} that the service accepts. */
1740
+ export enum KnownAdvancedThreatProtectionName {
1741
+ /** Default */
1742
+ Default = "Default",
1743
+ }
1744
+
1745
+ /**
1746
+ * Defines values for AdvancedThreatProtectionName. \
1747
+ * {@link KnownAdvancedThreatProtectionName} can be used interchangeably with AdvancedThreatProtectionName,
1748
+ * this enum contains the known values that the service supports.
1749
+ * ### Known values supported by the service
1750
+ * **Default**
1751
+ */
1752
+ export type AdvancedThreatProtectionName = string;
1753
+
1754
+ /** Known values of {@link AdvancedThreatProtectionState} that the service accepts. */
1755
+ export enum KnownAdvancedThreatProtectionState {
1756
+ /** Enabled */
1757
+ Enabled = "Enabled",
1758
+ /** Disabled */
1759
+ Disabled = "Disabled",
1760
+ }
1761
+
1762
+ /**
1763
+ * Defines values for AdvancedThreatProtectionState. \
1764
+ * {@link KnownAdvancedThreatProtectionState} can be used interchangeably with AdvancedThreatProtectionState,
1765
+ * this enum contains the known values that the service supports.
1766
+ * ### Known values supported by the service
1767
+ * **Enabled** \
1768
+ * **Disabled**
1769
+ */
1770
+ export type AdvancedThreatProtectionState = string;
1771
+
1772
+ /** Known values of {@link AdvancedThreatProtectionProvisioningState} that the service accepts. */
1773
+ export enum KnownAdvancedThreatProtectionProvisioningState {
1774
+ /** Succeeded */
1775
+ Succeeded = "Succeeded",
1776
+ /** Updating */
1777
+ Updating = "Updating",
1778
+ /** Canceled */
1779
+ Canceled = "Canceled",
1780
+ /** Failed */
1781
+ Failed = "Failed",
1782
+ }
1783
+
1784
+ /**
1785
+ * Defines values for AdvancedThreatProtectionProvisioningState. \
1786
+ * {@link KnownAdvancedThreatProtectionProvisioningState} can be used interchangeably with AdvancedThreatProtectionProvisioningState,
1787
+ * this enum contains the known values that the service supports.
1788
+ * ### Known values supported by the service
1789
+ * **Succeeded** \
1790
+ * **Updating** \
1791
+ * **Canceled** \
1792
+ * **Failed**
1793
+ */
1794
+ export type AdvancedThreatProtectionProvisioningState = string;
1795
+
1796
+ /** Known values of {@link ObjectType} that the service accepts. */
1797
+ export enum KnownObjectType {
1798
+ /** BackupAndExportResponse */
1799
+ BackupAndExportResponse = "BackupAndExportResponse",
1800
+ /** ImportFromStorageResponse */
1801
+ ImportFromStorageResponse = "ImportFromStorageResponse",
1802
+ }
1803
+
1804
+ /**
1805
+ * Defines values for ObjectType. \
1806
+ * {@link KnownObjectType} can be used interchangeably with ObjectType,
1807
+ * this enum contains the known values that the service supports.
1808
+ * ### Known values supported by the service
1809
+ * **BackupAndExportResponse** \
1810
+ * **ImportFromStorageResponse**
1811
+ */
1812
+ export type ObjectType = string;
1813
+
1814
+ /** Known values of {@link MaintenanceType} that the service accepts. */
1815
+ export enum KnownMaintenanceType {
1816
+ /** RoutineMaintenance */
1817
+ RoutineMaintenance = "RoutineMaintenance",
1818
+ /** MinorVersionUpgrade */
1819
+ MinorVersionUpgrade = "MinorVersionUpgrade",
1820
+ /** SecurityPatches */
1821
+ SecurityPatches = "SecurityPatches",
1822
+ /** HotFixes */
1823
+ HotFixes = "HotFixes",
1824
+ }
1825
+
1826
+ /**
1827
+ * Defines values for MaintenanceType. \
1828
+ * {@link KnownMaintenanceType} can be used interchangeably with MaintenanceType,
1829
+ * this enum contains the known values that the service supports.
1830
+ * ### Known values supported by the service
1831
+ * **RoutineMaintenance** \
1832
+ * **MinorVersionUpgrade** \
1833
+ * **SecurityPatches** \
1834
+ * **HotFixes**
1835
+ */
1836
+ export type MaintenanceType = string;
1837
+
1838
+ /** Known values of {@link MaintenanceState} that the service accepts. */
1839
+ export enum KnownMaintenanceState {
1840
+ /** Scheduled */
1841
+ Scheduled = "Scheduled",
1842
+ /** ReScheduled */
1843
+ ReScheduled = "ReScheduled",
1844
+ /** InPreparation */
1845
+ InPreparation = "InPreparation",
1846
+ /** Processing */
1847
+ Processing = "Processing",
1848
+ /** Completed */
1849
+ Completed = "Completed",
1850
+ /** Canceled */
1851
+ Canceled = "Canceled",
1852
+ }
1853
+
1854
+ /**
1855
+ * Defines values for MaintenanceState. \
1856
+ * {@link KnownMaintenanceState} can be used interchangeably with MaintenanceState,
1857
+ * this enum contains the known values that the service supports.
1858
+ * ### Known values supported by the service
1859
+ * **Scheduled** \
1860
+ * **ReScheduled** \
1861
+ * **InPreparation** \
1862
+ * **Processing** \
1863
+ * **Completed** \
1864
+ * **Canceled**
1865
+ */
1866
+ export type MaintenanceState = string;
1867
+
1868
+ /** Known values of {@link MaintenanceProvisioningState} that the service accepts. */
1869
+ export enum KnownMaintenanceProvisioningState {
1870
+ /** Succeeded */
1871
+ Succeeded = "Succeeded",
1872
+ /** Creating */
1873
+ Creating = "Creating",
1874
+ /** Deleting */
1875
+ Deleting = "Deleting",
1876
+ /** Failed */
1877
+ Failed = "Failed",
1878
+ }
1879
+
1880
+ /**
1881
+ * Defines values for MaintenanceProvisioningState. \
1882
+ * {@link KnownMaintenanceProvisioningState} can be used interchangeably with MaintenanceProvisioningState,
1883
+ * this enum contains the known values that the service supports.
1884
+ * ### Known values supported by the service
1885
+ * **Succeeded** \
1886
+ * **Creating** \
1887
+ * **Deleting** \
1888
+ * **Failed**
1889
+ */
1890
+ export type MaintenanceProvisioningState = string;
1232
1891
  /** Defines values for OperationStatus. */
1233
1892
  export type OperationStatus =
1234
1893
  | "Pending"
@@ -1280,7 +1939,8 @@ export interface AzureADAdministratorsListByServerNextOptionalParams
1280
1939
  extends coreClient.OperationOptions {}
1281
1940
 
1282
1941
  /** Contains response data for the listByServerNext operation. */
1283
- export type AzureADAdministratorsListByServerNextResponse = AdministratorListResult;
1942
+ export type AzureADAdministratorsListByServerNextResponse =
1943
+ AdministratorListResult;
1284
1944
 
1285
1945
  /** Optional parameters. */
1286
1946
  export interface BackupsPutOptionalParams extends coreClient.OperationOptions {}
@@ -1327,6 +1987,41 @@ export interface BackupAndExportValidateBackupOptionalParams
1327
1987
  /** Contains response data for the validateBackup operation. */
1328
1988
  export type BackupAndExportValidateBackupResponse = ValidateBackupResponse;
1329
1989
 
1990
+ /** Optional parameters. */
1991
+ export interface LongRunningBackupCreateOptionalParams
1992
+ extends coreClient.OperationOptions {
1993
+ /** The required parameters for creating and exporting backup of the given server. */
1994
+ parameters?: ServerBackupV2;
1995
+ /** Delay to wait until next poll, in milliseconds. */
1996
+ updateIntervalInMs?: number;
1997
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
1998
+ resumeFrom?: string;
1999
+ }
2000
+
2001
+ /** Contains response data for the create operation. */
2002
+ export type LongRunningBackupCreateResponse = ServerBackupV2;
2003
+
2004
+ /** Optional parameters. */
2005
+ export interface LongRunningBackupsGetOptionalParams
2006
+ extends coreClient.OperationOptions {}
2007
+
2008
+ /** Contains response data for the get operation. */
2009
+ export type LongRunningBackupsGetResponse = ServerBackupV2;
2010
+
2011
+ /** Optional parameters. */
2012
+ export interface LongRunningBackupsListOptionalParams
2013
+ extends coreClient.OperationOptions {}
2014
+
2015
+ /** Contains response data for the list operation. */
2016
+ export type LongRunningBackupsListResponse = ServerBackupV2ListResult;
2017
+
2018
+ /** Optional parameters. */
2019
+ export interface LongRunningBackupsListNextOptionalParams
2020
+ extends coreClient.OperationOptions {}
2021
+
2022
+ /** Contains response data for the listNext operation. */
2023
+ export type LongRunningBackupsListNextResponse = ServerBackupV2ListResult;
2024
+
1330
2025
  /** Optional parameters. */
1331
2026
  export interface ConfigurationsCreateOrUpdateOptionalParams
1332
2027
  extends coreClient.OperationOptions {
@@ -1539,6 +2234,14 @@ export interface ServersFailoverOptionalParams
1539
2234
  resumeFrom?: string;
1540
2235
  }
1541
2236
 
2237
+ /** Optional parameters. */
2238
+ export interface ServersValidateEstimateHighAvailabilityOptionalParams
2239
+ extends coreClient.OperationOptions {}
2240
+
2241
+ /** Contains response data for the validateEstimateHighAvailability operation. */
2242
+ export type ServersValidateEstimateHighAvailabilityResponse =
2243
+ HighAvailabilityValidationEstimation;
2244
+
1542
2245
  /** Optional parameters. */
1543
2246
  export interface ServersRestartOptionalParams
1544
2247
  extends coreClient.OperationOptions {
@@ -1602,6 +2305,68 @@ export interface ReplicasListByServerNextOptionalParams
1602
2305
  /** Contains response data for the listByServerNext operation. */
1603
2306
  export type ReplicasListByServerNextResponse = ServerListResult;
1604
2307
 
2308
+ /** Optional parameters. */
2309
+ export interface ServersMigrationCutoverMigrationOptionalParams
2310
+ extends coreClient.OperationOptions {
2311
+ /** Delay to wait until next poll, in milliseconds. */
2312
+ updateIntervalInMs?: number;
2313
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
2314
+ resumeFrom?: string;
2315
+ }
2316
+
2317
+ /** Contains response data for the cutoverMigration operation. */
2318
+ export type ServersMigrationCutoverMigrationResponse = Server;
2319
+
2320
+ /** Optional parameters. */
2321
+ export interface AdvancedThreatProtectionSettingsGetOptionalParams
2322
+ extends coreClient.OperationOptions {}
2323
+
2324
+ /** Contains response data for the get operation. */
2325
+ export type AdvancedThreatProtectionSettingsGetResponse =
2326
+ AdvancedThreatProtection;
2327
+
2328
+ /** Optional parameters. */
2329
+ export interface AdvancedThreatProtectionSettingsUpdateOptionalParams
2330
+ extends coreClient.OperationOptions {
2331
+ /** Delay to wait until next poll, in milliseconds. */
2332
+ updateIntervalInMs?: number;
2333
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
2334
+ resumeFrom?: string;
2335
+ }
2336
+
2337
+ /** Contains response data for the update operation. */
2338
+ export type AdvancedThreatProtectionSettingsUpdateResponse =
2339
+ AdvancedThreatProtection;
2340
+
2341
+ /** Optional parameters. */
2342
+ export interface AdvancedThreatProtectionSettingsUpdatePutOptionalParams
2343
+ extends coreClient.OperationOptions {
2344
+ /** Delay to wait until next poll, in milliseconds. */
2345
+ updateIntervalInMs?: number;
2346
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
2347
+ resumeFrom?: string;
2348
+ }
2349
+
2350
+ /** Contains response data for the updatePut operation. */
2351
+ export type AdvancedThreatProtectionSettingsUpdatePutResponse =
2352
+ AdvancedThreatProtection;
2353
+
2354
+ /** Optional parameters. */
2355
+ export interface AdvancedThreatProtectionSettingsListOptionalParams
2356
+ extends coreClient.OperationOptions {}
2357
+
2358
+ /** Contains response data for the list operation. */
2359
+ export type AdvancedThreatProtectionSettingsListResponse =
2360
+ AdvancedThreatProtectionListResult;
2361
+
2362
+ /** Optional parameters. */
2363
+ export interface AdvancedThreatProtectionSettingsListNextOptionalParams
2364
+ extends coreClient.OperationOptions {}
2365
+
2366
+ /** Contains response data for the listNext operation. */
2367
+ export type AdvancedThreatProtectionSettingsListNextResponse =
2368
+ AdvancedThreatProtectionListResult;
2369
+
1605
2370
  /** Optional parameters. */
1606
2371
  export interface LogFilesListByServerOptionalParams
1607
2372
  extends coreClient.OperationOptions {}
@@ -1630,12 +2395,34 @@ export interface LocationBasedCapabilitiesListNextOptionalParams
1630
2395
  /** Contains response data for the listNext operation. */
1631
2396
  export type LocationBasedCapabilitiesListNextResponse = CapabilitiesListResult;
1632
2397
 
2398
+ /** Optional parameters. */
2399
+ export interface LocationBasedCapabilitySetListOptionalParams
2400
+ extends coreClient.OperationOptions {}
2401
+
2402
+ /** Contains response data for the list operation. */
2403
+ export type LocationBasedCapabilitySetListResponse = CapabilitySetsList;
2404
+
2405
+ /** Optional parameters. */
2406
+ export interface LocationBasedCapabilitySetGetOptionalParams
2407
+ extends coreClient.OperationOptions {}
2408
+
2409
+ /** Contains response data for the get operation. */
2410
+ export type LocationBasedCapabilitySetGetResponse = Capability;
2411
+
2412
+ /** Optional parameters. */
2413
+ export interface LocationBasedCapabilitySetListNextOptionalParams
2414
+ extends coreClient.OperationOptions {}
2415
+
2416
+ /** Contains response data for the listNext operation. */
2417
+ export type LocationBasedCapabilitySetListNextResponse = CapabilitySetsList;
2418
+
1633
2419
  /** Optional parameters. */
1634
2420
  export interface CheckVirtualNetworkSubnetUsageExecuteOptionalParams
1635
2421
  extends coreClient.OperationOptions {}
1636
2422
 
1637
2423
  /** Contains response data for the execute operation. */
1638
- export type CheckVirtualNetworkSubnetUsageExecuteResponse = VirtualNetworkSubnetUsageResult;
2424
+ export type CheckVirtualNetworkSubnetUsageExecuteResponse =
2425
+ VirtualNetworkSubnetUsageResult;
1639
2426
 
1640
2427
  /** Optional parameters. */
1641
2428
  export interface CheckNameAvailabilityExecuteOptionalParams
@@ -1649,14 +2436,30 @@ export interface CheckNameAvailabilityWithoutLocationExecuteOptionalParams
1649
2436
  extends coreClient.OperationOptions {}
1650
2437
 
1651
2438
  /** Contains response data for the execute operation. */
1652
- export type CheckNameAvailabilityWithoutLocationExecuteResponse = NameAvailability;
2439
+ export type CheckNameAvailabilityWithoutLocationExecuteResponse =
2440
+ NameAvailability;
2441
+
2442
+ /** Optional parameters. */
2443
+ export interface OperationResultsGetOptionalParams
2444
+ extends coreClient.OperationOptions {}
2445
+
2446
+ /** Contains response data for the get operation. */
2447
+ export type OperationResultsGetResponse = OperationStatusExtendedResult;
2448
+
2449
+ /** Optional parameters. */
2450
+ export interface OperationProgressGetOptionalParams
2451
+ extends coreClient.OperationOptions {}
2452
+
2453
+ /** Contains response data for the get operation. */
2454
+ export type OperationProgressGetResponse = OperationProgressResult;
1653
2455
 
1654
2456
  /** Optional parameters. */
1655
2457
  export interface GetPrivateDnsZoneSuffixExecuteOptionalParams
1656
2458
  extends coreClient.OperationOptions {}
1657
2459
 
1658
2460
  /** Contains response data for the execute operation. */
1659
- export type GetPrivateDnsZoneSuffixExecuteResponse = GetPrivateDnsZoneSuffixResponse;
2461
+ export type GetPrivateDnsZoneSuffixExecuteResponse =
2462
+ GetPrivateDnsZoneSuffixResponse;
1660
2463
 
1661
2464
  /** Optional parameters. */
1662
2465
  export interface OperationsListOptionalParams
@@ -1672,6 +2475,41 @@ export interface OperationsListNextOptionalParams
1672
2475
  /** Contains response data for the listNext operation. */
1673
2476
  export type OperationsListNextResponse = OperationListResult;
1674
2477
 
2478
+ /** Optional parameters. */
2479
+ export interface MaintenancesReadOptionalParams
2480
+ extends coreClient.OperationOptions {}
2481
+
2482
+ /** Contains response data for the read operation. */
2483
+ export type MaintenancesReadResponse = Maintenance;
2484
+
2485
+ /** Optional parameters. */
2486
+ export interface MaintenancesUpdateOptionalParams
2487
+ extends coreClient.OperationOptions {
2488
+ /** The required parameters for update maintenance on a server. */
2489
+ parameters?: MaintenanceUpdate;
2490
+ /** Delay to wait until next poll, in milliseconds. */
2491
+ updateIntervalInMs?: number;
2492
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
2493
+ resumeFrom?: string;
2494
+ }
2495
+
2496
+ /** Contains response data for the update operation. */
2497
+ export type MaintenancesUpdateResponse = Maintenance;
2498
+
2499
+ /** Optional parameters. */
2500
+ export interface MaintenancesListOptionalParams
2501
+ extends coreClient.OperationOptions {}
2502
+
2503
+ /** Contains response data for the list operation. */
2504
+ export type MaintenancesListResponse = MaintenanceListResult;
2505
+
2506
+ /** Optional parameters. */
2507
+ export interface MaintenancesListNextOptionalParams
2508
+ extends coreClient.OperationOptions {}
2509
+
2510
+ /** Contains response data for the listNext operation. */
2511
+ export type MaintenancesListNextResponse = MaintenanceListResult;
2512
+
1675
2513
  /** Optional parameters. */
1676
2514
  export interface MySQLManagementFlexibleServerClientOptionalParams
1677
2515
  extends coreClient.ServiceClientOptions {