@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
@@ -1,24 +1,10 @@
1
1
  import * as coreClient from "@azure/core-client";
2
2
  export type BackupStoreDetailsUnion = BackupStoreDetails | FullBackupStoreDetails;
3
- /** Metadata pertaining to creation and last modification of the resource. */
4
- export interface SystemData {
5
- /** The identity that created the resource. */
6
- createdBy?: string;
7
- /** The type of identity that created the resource. */
8
- createdByType?: CreatedByType;
9
- /** The timestamp of resource creation (UTC). */
10
- createdAt?: Date;
11
- /** The identity that last modified the resource. */
12
- lastModifiedBy?: string;
13
- /** The type of identity that last modified the resource. */
14
- lastModifiedByType?: CreatedByType;
15
- /** The timestamp of resource last modification (UTC) */
16
- lastModifiedAt?: Date;
17
- }
3
+ export type OperationProgressResponseTypeUnion = OperationProgressResponseType | BackupAndExportResponseType | ImportFromStorageResponseType;
18
4
  /** Common fields that are returned in the response for all Azure Resource Manager resources */
19
5
  export interface Resource {
20
6
  /**
21
- * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
7
+ * Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
22
8
  * NOTE: This property will not be serialized. It can only be populated by the server.
23
9
  */
24
10
  readonly id?: string;
@@ -32,14 +18,34 @@ export interface Resource {
32
18
  * NOTE: This property will not be serialized. It can only be populated by the server.
33
19
  */
34
20
  readonly type?: string;
21
+ /**
22
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
23
+ * NOTE: This property will not be serialized. It can only be populated by the server.
24
+ */
25
+ readonly systemData?: SystemData;
35
26
  }
36
- /** An error response from the Batch service. */
37
- export interface CloudError {
38
- /** The resource management error response. */
39
- error?: ErrorResponse;
27
+ /** Metadata pertaining to creation and last modification of the resource. */
28
+ export interface SystemData {
29
+ /** The identity that created the resource. */
30
+ createdBy?: string;
31
+ /** The type of identity that created the resource. */
32
+ createdByType?: CreatedByType;
33
+ /** The timestamp of resource creation (UTC). */
34
+ createdAt?: Date;
35
+ /** The identity that last modified the resource. */
36
+ lastModifiedBy?: string;
37
+ /** The type of identity that last modified the resource. */
38
+ lastModifiedByType?: CreatedByType;
39
+ /** The timestamp of resource last modification (UTC) */
40
+ lastModifiedAt?: Date;
40
41
  }
41
- /** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.) */
42
+ /** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */
42
43
  export interface ErrorResponse {
44
+ /** The error object. */
45
+ error?: ErrorDetail;
46
+ }
47
+ /** The error detail. */
48
+ export interface ErrorDetail {
43
49
  /**
44
50
  * The error code.
45
51
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -59,7 +65,7 @@ export interface ErrorResponse {
59
65
  * The error details.
60
66
  * NOTE: This property will not be serialized. It can only be populated by the server.
61
67
  */
62
- readonly details?: ErrorResponse[];
68
+ readonly details?: ErrorDetail[];
63
69
  /**
64
70
  * The error additional info.
65
71
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -115,6 +121,13 @@ export interface ValidateBackupResponse {
115
121
  /** Estimated no of storage containers required for resource data to be backed up. */
116
122
  numberOfContainers?: number;
117
123
  }
124
+ /** A list of server backups. */
125
+ export interface ServerBackupV2ListResult {
126
+ /** The list of backups of a server. */
127
+ value?: ServerBackupV2[];
128
+ /** The link used to get the next page of operations. */
129
+ nextLink?: string;
130
+ }
118
131
  /** A list of server configurations to update. */
119
132
  export interface ConfigurationListForBatchUpdate {
120
133
  /** The list of server configurations. */
@@ -153,7 +166,7 @@ export interface FirewallRuleListResult {
153
166
  nextLink?: string;
154
167
  }
155
168
  /** Properties to configure Identity for Bring your Own Keys */
156
- export interface Identity {
169
+ export interface MySQLServerIdentity {
157
170
  /**
158
171
  * ObjectId from the KeyVault
159
172
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -172,11 +185,11 @@ export interface Identity {
172
185
  };
173
186
  }
174
187
  /** Billing information related properties of a server. */
175
- export interface Sku {
188
+ export interface MySQLServerSku {
176
189
  /** The name of the sku, e.g. Standard_D32s_v3. */
177
190
  name: string;
178
191
  /** The tier of the particular SKU, e.g. GeneralPurpose. */
179
- tier: SkuTier;
192
+ tier: ServerSkuTier;
180
193
  }
181
194
  /** The date encryption for cmk. */
182
195
  export interface DataEncryption {
@@ -213,6 +226,8 @@ export interface Storage {
213
226
  export interface Backup {
214
227
  /** Backup retention days for the server. */
215
228
  backupRetentionDays?: number;
229
+ /** Backup interval hours for the server. */
230
+ backupIntervalHours?: number;
216
231
  /** Whether or not geo redundant backup is enabled. */
217
232
  geoRedundantBackup?: EnableStatusEnum;
218
233
  /**
@@ -221,7 +236,7 @@ export interface Backup {
221
236
  */
222
237
  readonly earliestRestoreDate?: Date;
223
238
  }
224
- /** Network related properties of a server */
239
+ /** High availability properties of a server */
225
240
  export interface HighAvailability {
226
241
  /** High availability mode for a server. */
227
242
  mode?: HighAvailabilityMode;
@@ -242,6 +257,23 @@ export interface Network {
242
257
  /** Private DNS zone resource id. */
243
258
  privateDnsZoneResourceId?: string;
244
259
  }
260
+ /** The private endpoint resource. */
261
+ export interface PrivateEndpoint {
262
+ /**
263
+ * The ARM identifier for private endpoint.
264
+ * NOTE: This property will not be serialized. It can only be populated by the server.
265
+ */
266
+ readonly id?: string;
267
+ }
268
+ /** A collection of information about the state of the connection between service consumer and provider. */
269
+ export interface PrivateLinkServiceConnectionState {
270
+ /** Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. */
271
+ status?: PrivateEndpointServiceConnectionStatus;
272
+ /** The reason for approval/rejection of the connection. */
273
+ description?: string;
274
+ /** A message indicating if changes on the service provider require any updates on the consumer. */
275
+ actionsRequired?: string;
276
+ }
245
277
  /** Maintenance window of a server. */
246
278
  export interface MaintenanceWindow {
247
279
  /** indicates whether custom window is enabled or disabled */
@@ -253,12 +285,23 @@ export interface MaintenanceWindow {
253
285
  /** day of week for maintenance window */
254
286
  dayOfWeek?: number;
255
287
  }
288
+ /** Import source related properties. */
289
+ export interface ImportSourceProperties {
290
+ /** Storage type of import source. */
291
+ storageType?: ImportSourceStorageType;
292
+ /** Uri of the import source storage. */
293
+ storageUrl?: string;
294
+ /** Sas token for accessing source storage. Read and list permissions are required for sas token. */
295
+ sasToken?: string;
296
+ /** Relative path of data directory in storage. */
297
+ dataDirPath?: string;
298
+ }
256
299
  /** Parameters allowed to update for a server. */
257
300
  export interface ServerForUpdate {
258
301
  /** The cmk identity for the server. */
259
- identity?: Identity;
302
+ identity?: MySQLServerIdentity;
260
303
  /** The SKU (pricing tier) of the server. */
261
- sku?: Sku;
304
+ sku?: MySQLServerSku;
262
305
  /** Application-specific metadata in the form of key-value pairs. */
263
306
  tags?: {
264
307
  [propertyName: string]: string;
@@ -282,6 +325,8 @@ export interface ServerForUpdate {
282
325
  replicationRole?: ReplicationRole;
283
326
  /** The Data Encryption for CMK. */
284
327
  dataEncryption?: DataEncryption;
328
+ /** Network related properties of a server */
329
+ network?: Network;
285
330
  }
286
331
  /** A list of servers. */
287
332
  export interface ServerListResult {
@@ -290,6 +335,21 @@ export interface ServerListResult {
290
335
  /** The link used to get the next page of operations. */
291
336
  nextLink?: string;
292
337
  }
338
+ /** High availability validation properties of a server */
339
+ export interface HighAvailabilityValidationEstimation {
340
+ /**
341
+ * Estimated seconds of downtime for the deployment.
342
+ * NOTE: This property will not be serialized. It can only be populated by the server.
343
+ */
344
+ readonly estimatedDowntime?: number;
345
+ /**
346
+ * Scheduled Availability zone of the standby server.
347
+ * NOTE: This property will not be serialized. It can only be populated by the server.
348
+ */
349
+ readonly scheduledStandbyAvailabilityZone?: string;
350
+ /** Expected Availability zone of the standby server. */
351
+ expectedStandbyAvailabilityZone?: string;
352
+ }
293
353
  /** Server restart parameters. */
294
354
  export interface ServerRestartParameter {
295
355
  /** Whether or not failover to standby server when restarting a server with high availability enabled. */
@@ -297,11 +357,29 @@ export interface ServerRestartParameter {
297
357
  /** The maximum allowed failover time in seconds. */
298
358
  maxFailoverSeconds?: number;
299
359
  }
300
- /** Server gtid set parameters. */
360
+ /** Server Gtid set parameters. */
301
361
  export interface ServerGtidSetParameter {
302
- /** The gtid set of server. */
362
+ /** The Gtid set of server. */
303
363
  gtidSet?: string;
304
364
  }
365
+ /** Parameters allowed to update advanced threat protection for a server. */
366
+ export interface AdvancedThreatProtectionForUpdate {
367
+ /** 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. */
368
+ state?: AdvancedThreatProtectionState;
369
+ }
370
+ /** A list of the server's Advanced Threat Protection configurations. */
371
+ export interface AdvancedThreatProtectionListResult {
372
+ /**
373
+ * Array of results.
374
+ * NOTE: This property will not be serialized. It can only be populated by the server.
375
+ */
376
+ readonly value?: AdvancedThreatProtection[];
377
+ /**
378
+ * Link to retrieve next page of results.
379
+ * NOTE: This property will not be serialized. It can only be populated by the server.
380
+ */
381
+ readonly nextLink?: string;
382
+ }
305
383
  /** A List of logFiles. */
306
384
  export interface LogFileListResult {
307
385
  /** The list of logFiles in a server */
@@ -390,6 +468,16 @@ export interface StorageEditionCapability {
390
468
  * NOTE: This property will not be serialized. It can only be populated by the server.
391
469
  */
392
470
  readonly maxBackupRetentionDays?: number;
471
+ /**
472
+ * Minimal backup interval hours
473
+ * NOTE: This property will not be serialized. It can only be populated by the server.
474
+ */
475
+ readonly minBackupIntervalHours?: number;
476
+ /**
477
+ * Maximum backup interval hours
478
+ * NOTE: This property will not be serialized. It can only be populated by the server.
479
+ */
480
+ readonly maxBackupIntervalHours?: number;
393
481
  }
394
482
  /** Server version capabilities. */
395
483
  export interface ServerVersionCapability {
@@ -427,6 +515,88 @@ export interface SkuCapability {
427
515
  */
428
516
  readonly supportedMemoryPerVCoreMB?: number;
429
517
  }
518
+ /** location capability set */
519
+ export interface CapabilitySetsList {
520
+ /**
521
+ * A list of supported capability sets.
522
+ * NOTE: This property will not be serialized. It can only be populated by the server.
523
+ */
524
+ readonly value?: Capability[];
525
+ /**
526
+ * Link to retrieve next page of results.
527
+ * NOTE: This property will not be serialized. It can only be populated by the server.
528
+ */
529
+ readonly nextLink?: string;
530
+ }
531
+ /** Server edition capabilities. */
532
+ export interface ServerEditionCapabilityV2 {
533
+ /**
534
+ * Server edition name
535
+ * NOTE: This property will not be serialized. It can only be populated by the server.
536
+ */
537
+ readonly name?: string;
538
+ /**
539
+ * Default Sku name
540
+ * NOTE: This property will not be serialized. It can only be populated by the server.
541
+ */
542
+ readonly defaultSku?: string;
543
+ /**
544
+ * Default storage size
545
+ * NOTE: This property will not be serialized. It can only be populated by the server.
546
+ */
547
+ readonly defaultStorageSize?: number;
548
+ /**
549
+ * A list of supported storage editions
550
+ * NOTE: This property will not be serialized. It can only be populated by the server.
551
+ */
552
+ readonly supportedStorageEditions?: StorageEditionCapability[];
553
+ /**
554
+ * A list of supported Skus
555
+ * NOTE: This property will not be serialized. It can only be populated by the server.
556
+ */
557
+ readonly supportedSkus?: SkuCapabilityV2[];
558
+ }
559
+ /** Sku capability */
560
+ export interface SkuCapabilityV2 {
561
+ /**
562
+ * vCore name
563
+ * NOTE: This property will not be serialized. It can only be populated by the server.
564
+ */
565
+ readonly name?: string;
566
+ /**
567
+ * supported vCores
568
+ * NOTE: This property will not be serialized. It can only be populated by the server.
569
+ */
570
+ readonly vCores?: number;
571
+ /**
572
+ * supported IOPS
573
+ * NOTE: This property will not be serialized. It can only be populated by the server.
574
+ */
575
+ readonly supportedIops?: number;
576
+ /**
577
+ * supported memory per vCore in MB
578
+ * NOTE: This property will not be serialized. It can only be populated by the server.
579
+ */
580
+ readonly supportedMemoryPerVCoreMB?: number;
581
+ /**
582
+ * Supported zones
583
+ * NOTE: This property will not be serialized. It can only be populated by the server.
584
+ */
585
+ readonly supportedZones?: string[];
586
+ /**
587
+ * Supported high availability mode
588
+ * NOTE: This property will not be serialized. It can only be populated by the server.
589
+ */
590
+ readonly supportedHAMode?: string[];
591
+ }
592
+ /** Server version capabilities. */
593
+ export interface ServerVersionCapabilityV2 {
594
+ /**
595
+ * server version
596
+ * NOTE: This property will not be serialized. It can only be populated by the server.
597
+ */
598
+ readonly name?: string;
599
+ }
430
600
  /** Virtual network subnet usage parameter */
431
601
  export interface VirtualNetworkSubnetUsageParameter {
432
602
  /** Virtual network resource id. */
@@ -479,6 +649,35 @@ export interface NameAvailability {
479
649
  /** Reason for name being unavailable. */
480
650
  reason?: string;
481
651
  }
652
+ /** The current status of an async operation. */
653
+ export interface OperationStatusResult {
654
+ /** Fully qualified ID for the async operation. */
655
+ id?: string;
656
+ /**
657
+ * Fully qualified ID of the resource against which the original async operation was started.
658
+ * NOTE: This property will not be serialized. It can only be populated by the server.
659
+ */
660
+ readonly resourceId?: string;
661
+ /** Name of the async operation. */
662
+ name?: string;
663
+ /** Operation status. */
664
+ status: string;
665
+ /** Percent of the operation that is complete. */
666
+ percentComplete?: number;
667
+ /** The start time of the operation. */
668
+ startTime?: Date;
669
+ /** The end time of the operation. */
670
+ endTime?: Date;
671
+ /** The operations list. */
672
+ operations?: OperationStatusResult[];
673
+ /** If present, details of the operation error. */
674
+ error?: ErrorDetail;
675
+ }
676
+ /** Represents the response properties specific to the operation */
677
+ export interface OperationProgressResponseType {
678
+ /** Polymorphic discriminator, which specifies the different types this object can be */
679
+ objectType: "BackupAndExportResponse" | "ImportFromStorageResponse";
680
+ }
482
681
  /** The response of get private dns zone suffix. */
483
682
  export interface GetPrivateDnsZoneSuffixResponse {
484
683
  /** Represents the private DNS zone suffix. */
@@ -515,6 +714,18 @@ export interface OperationDisplay {
515
714
  /** Operation description. */
516
715
  description?: string;
517
716
  }
717
+ /** Represents a maintenance update parameter. */
718
+ export interface MaintenanceUpdate {
719
+ /** The start time for a maintenance. */
720
+ maintenanceStartTime?: Date;
721
+ }
722
+ /** A list of maintenances. */
723
+ export interface MaintenanceListResult {
724
+ /** The list of maintenances in a server. */
725
+ value?: Maintenance[];
726
+ /** The link used to get the next page of operations. */
727
+ nextLink?: string;
728
+ }
518
729
  /** Metadata of user assigned identity. */
519
730
  export interface UserAssignedIdentity {
520
731
  /**
@@ -531,6 +742,23 @@ export interface UserAssignedIdentity {
531
742
  /** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */
532
743
  export interface ProxyResource extends Resource {
533
744
  }
745
+ /** The private endpoint connection resource. */
746
+ export interface PrivateEndpointConnection extends Resource {
747
+ /**
748
+ * The group ids for the private endpoint resource.
749
+ * NOTE: This property will not be serialized. It can only be populated by the server.
750
+ */
751
+ readonly groupIds?: string[];
752
+ /** The private endpoint resource. */
753
+ privateEndpoint?: PrivateEndpoint;
754
+ /** A collection of information about the state of the connection between service consumer and provider. */
755
+ privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState;
756
+ /**
757
+ * The provisioning state of the private endpoint connection resource.
758
+ * NOTE: This property will not be serialized. It can only be populated by the server.
759
+ */
760
+ readonly provisioningState?: PrivateEndpointConnectionProvisioningState;
761
+ }
534
762
  /** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */
535
763
  export interface TrackedResource extends Resource {
536
764
  /** Resource tags. */
@@ -540,6 +768,23 @@ export interface TrackedResource extends Resource {
540
768
  /** The geo-location where the resource lives */
541
769
  location: string;
542
770
  }
771
+ /** Represents BackupAndExport API Response */
772
+ export interface BackupAndExportResponse extends ProxyResource, ErrorResponse {
773
+ /** The operation status */
774
+ status?: OperationStatus;
775
+ /** Start time */
776
+ startTime?: Date;
777
+ /** End time */
778
+ endTime?: Date;
779
+ /** Operation progress (0-100). */
780
+ percentComplete?: number;
781
+ /** Size of datasource in bytes */
782
+ datasourceSizeInBytes?: number;
783
+ /** Data transferred in bytes */
784
+ dataTransferredInBytes?: number;
785
+ /** Metadata related to backup to be stored for restoring resource in key-value pairs. */
786
+ backupMetadata?: string;
787
+ }
543
788
  /** FullBackupStoreDetails is used for scenarios where backup data is streamed/copied over to a storage destination. */
544
789
  export interface FullBackupStoreDetails extends BackupStoreDetails {
545
790
  /** Polymorphic discriminator, which specifies the different types this object can be */
@@ -552,13 +797,38 @@ export interface BackupAndExportRequest extends BackupRequestBase {
552
797
  /** Backup Target Store Details */
553
798
  targetDetails: BackupStoreDetailsUnion;
554
799
  }
800
+ /** Represents Operation Results API Response */
801
+ export interface OperationStatusExtendedResult extends OperationStatusResult {
802
+ /** The extended properties of Operation Results */
803
+ properties?: {
804
+ [propertyName: string]: any;
805
+ };
806
+ }
807
+ /** Represents Operation Results API Response */
808
+ export interface OperationProgressResult extends OperationStatusResult {
809
+ /** Identifies the type of source operation */
810
+ objectType?: ObjectType;
811
+ }
812
+ /** BackupAndExport Response Properties */
813
+ export interface BackupAndExportResponseType extends OperationProgressResponseType {
814
+ /** Polymorphic discriminator, which specifies the different types this object can be */
815
+ objectType: "BackupAndExportResponse";
816
+ /** Size of datasource in bytes */
817
+ datasourceSizeInBytes?: number;
818
+ /** Data transferred in bytes */
819
+ dataTransferredInBytes?: number;
820
+ /** Metadata related to backup to be stored for restoring resource in key-value pairs. */
821
+ backupMetadata?: string;
822
+ }
823
+ /** ImportFromStorage Response Properties */
824
+ export interface ImportFromStorageResponseType extends OperationProgressResponseType {
825
+ /** Polymorphic discriminator, which specifies the different types this object can be */
826
+ objectType: "ImportFromStorageResponse";
827
+ /** The estimated time of operation completion. */
828
+ estimatedCompletionTime?: Date;
829
+ }
555
830
  /** Represents a Administrator. */
556
831
  export interface AzureADAdministrator extends ProxyResource {
557
- /**
558
- * The system metadata relating to this resource.
559
- * NOTE: This property will not be serialized. It can only be populated by the server.
560
- */
561
- readonly systemData?: SystemData;
562
832
  /** Type of the sever administrator. */
563
833
  administratorType?: AdministratorType;
564
834
  /** Login name of the server administrator. */
@@ -572,11 +842,6 @@ export interface AzureADAdministrator extends ProxyResource {
572
842
  }
573
843
  /** Server backup properties */
574
844
  export interface ServerBackup extends ProxyResource {
575
- /**
576
- * The system metadata relating to this resource.
577
- * NOTE: This property will not be serialized. It can only be populated by the server.
578
- */
579
- readonly systemData?: SystemData;
580
845
  /** Backup type. */
581
846
  backupType?: string;
582
847
  /** Backup completed time (ISO8601 format). */
@@ -584,32 +849,23 @@ export interface ServerBackup extends ProxyResource {
584
849
  /** Backup source */
585
850
  source?: string;
586
851
  }
587
- /** Represents BackupAndExport API Response */
588
- export interface BackupAndExportResponse extends ProxyResource {
589
- /** The operation status */
590
- status?: OperationStatus;
591
- /** Start time */
592
- startTime?: Date;
593
- /** End time */
594
- endTime?: Date;
595
- /** Operation progress (0-100). */
596
- percentComplete?: number;
597
- /** The BackupAndExport operation error response. */
598
- error?: ErrorResponse;
599
- /** Size of datasource in bytes */
600
- datasourceSizeInBytes?: number;
601
- /** Data transferred in bytes */
602
- dataTransferredInBytes?: number;
603
- /** Metadata related to backup to be stored for restoring resource in key-value pairs. */
604
- backupMetadata?: string;
605
- }
606
- /** Represents a Configuration. */
607
- export interface Configuration extends ProxyResource {
852
+ /** Server backup properties */
853
+ export interface ServerBackupV2 extends ProxyResource {
854
+ /** Backup name */
855
+ backupNameV2?: string;
856
+ backupType?: BackupType;
857
+ /** Backup completed time (ISO8601 format). */
858
+ completedTime?: Date;
859
+ /** Backup source */
860
+ source?: string;
608
861
  /**
609
- * The system metadata relating to this resource.
862
+ * The provisioning state of backup resource.
610
863
  * NOTE: This property will not be serialized. It can only be populated by the server.
611
864
  */
612
- readonly systemData?: SystemData;
865
+ readonly provisioningState?: ProvisioningState;
866
+ }
867
+ /** Represents a Configuration. */
868
+ export interface Configuration extends ProxyResource {
613
869
  /** Value of the configuration. */
614
870
  value?: string;
615
871
  /** Current value of the configuration. */
@@ -659,11 +915,6 @@ export interface Configuration extends ProxyResource {
659
915
  }
660
916
  /** Represents a Database. */
661
917
  export interface Database extends ProxyResource {
662
- /**
663
- * The system metadata relating to this resource.
664
- * NOTE: This property will not be serialized. It can only be populated by the server.
665
- */
666
- readonly systemData?: SystemData;
667
918
  /** The charset of the database. */
668
919
  charset?: string;
669
920
  /** The collation of the database. */
@@ -671,23 +922,28 @@ export interface Database extends ProxyResource {
671
922
  }
672
923
  /** Represents a server firewall rule. */
673
924
  export interface FirewallRule extends ProxyResource {
674
- /**
675
- * The system metadata relating to this resource.
676
- * NOTE: This property will not be serialized. It can only be populated by the server.
677
- */
678
- readonly systemData?: SystemData;
679
925
  /** The start IP address of the server firewall rule. Must be IPv4 format. */
680
926
  startIpAddress: string;
681
927
  /** The end IP address of the server firewall rule. Must be IPv4 format. */
682
928
  endIpAddress: string;
683
929
  }
684
- /** Represents a logFile. */
685
- export interface LogFile extends ProxyResource {
930
+ /** A server's Advanced Threat Protection. */
931
+ export interface AdvancedThreatProtection extends ProxyResource {
686
932
  /**
687
- * The system metadata relating to this resource.
933
+ * Specifies the UTC creation time of the policy.
688
934
  * NOTE: This property will not be serialized. It can only be populated by the server.
689
935
  */
690
- readonly systemData?: SystemData;
936
+ readonly creationTime?: Date;
937
+ /** 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. */
938
+ state?: AdvancedThreatProtectionState;
939
+ /**
940
+ * Provisioning state of the Threat Protection.
941
+ * NOTE: This property will not be serialized. It can only be populated by the server.
942
+ */
943
+ readonly provisioningState?: AdvancedThreatProtectionProvisioningState;
944
+ }
945
+ /** Represents a logFile. */
946
+ export interface LogFile extends ProxyResource {
691
947
  /** The size in kb of the logFile. */
692
948
  sizeInKB?: number;
693
949
  /** Creation timestamp of the log file. */
@@ -699,17 +955,93 @@ export interface LogFile extends ProxyResource {
699
955
  /** The url to download the log file from. */
700
956
  url?: string;
701
957
  }
958
+ /** Represents a location capability set. */
959
+ export interface Capability extends ProxyResource {
960
+ /**
961
+ * supported geo backup regions
962
+ * NOTE: This property will not be serialized. It can only be populated by the server.
963
+ */
964
+ readonly supportedGeoBackupRegions?: string[];
965
+ /**
966
+ * A list of supported flexible server editions.
967
+ * NOTE: This property will not be serialized. It can only be populated by the server.
968
+ */
969
+ readonly supportedFlexibleServerEditions?: ServerEditionCapabilityV2[];
970
+ /**
971
+ * A list of supported server versions.
972
+ * NOTE: This property will not be serialized. It can only be populated by the server.
973
+ */
974
+ readonly supportedServerVersions?: ServerVersionCapabilityV2[];
975
+ }
976
+ /** Represents a maintenance. */
977
+ export interface Maintenance extends ProxyResource {
978
+ /**
979
+ * A string defines maintenance type.
980
+ * NOTE: This property will not be serialized. It can only be populated by the server.
981
+ */
982
+ readonly maintenanceType?: MaintenanceType;
983
+ /**
984
+ * A string describes the maintenance status
985
+ * NOTE: This property will not be serialized. It can only be populated by the server.
986
+ */
987
+ readonly maintenanceState?: MaintenanceState;
988
+ /** The start time for a maintenance. */
989
+ maintenanceStartTime?: Date;
990
+ /**
991
+ * The end time for a maintenance.
992
+ * NOTE: This property will not be serialized. It can only be populated by the server.
993
+ */
994
+ readonly maintenanceEndTime?: Date;
995
+ /**
996
+ * The start time for a maintenance execution.
997
+ * NOTE: This property will not be serialized. It can only be populated by the server.
998
+ */
999
+ readonly maintenanceExecutionStartTime?: Date;
1000
+ /**
1001
+ * The end time for a maintenance execution.
1002
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1003
+ */
1004
+ readonly maintenanceExecutionEndTime?: Date;
1005
+ /**
1006
+ * The min time the maintenance can be rescheduled.
1007
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1008
+ */
1009
+ readonly maintenanceAvailableScheduleMinTime?: Date;
1010
+ /**
1011
+ * The max time the maintenance can be rescheduled.
1012
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1013
+ */
1014
+ readonly maintenanceAvailableScheduleMaxTime?: Date;
1015
+ /**
1016
+ * The maintenance title.
1017
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1018
+ */
1019
+ readonly maintenanceTitle?: string;
1020
+ /**
1021
+ * The maintenance description.
1022
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1023
+ */
1024
+ readonly maintenanceDescription?: string;
1025
+ /**
1026
+ * Provisioning state of the Maintenance.
1027
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1028
+ */
1029
+ readonly provisioningState?: MaintenanceProvisioningState;
1030
+ }
1031
+ /** Server backup properties */
1032
+ export interface Provisioning extends ProxyResource {
1033
+ /**
1034
+ * The provisioning state of backup resource.
1035
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1036
+ */
1037
+ readonly provisioningState?: ProvisioningState;
1038
+ }
702
1039
  /** Represents a server. */
703
1040
  export interface Server extends TrackedResource {
704
1041
  /** The cmk identity for the server. */
705
- identity?: Identity;
1042
+ identity?: MySQLServerIdentity;
706
1043
  /** The SKU (pricing tier) of the server. */
707
- sku?: Sku;
708
- /**
709
- * The system metadata relating to this resource.
710
- * NOTE: This property will not be serialized. It can only be populated by the server.
711
- */
712
- readonly systemData?: SystemData;
1044
+ sku?: MySQLServerSku;
713
1045
  /** The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation). */
714
1046
  administratorLogin?: string;
715
1047
  /**
@@ -754,8 +1086,15 @@ export interface Server extends TrackedResource {
754
1086
  highAvailability?: HighAvailability;
755
1087
  /** Network related properties of a server. */
756
1088
  network?: Network;
1089
+ /**
1090
+ * PrivateEndpointConnections related properties of a server.
1091
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1092
+ */
1093
+ readonly privateEndpointConnections?: PrivateEndpointConnection[];
757
1094
  /** Maintenance window of a server. */
758
1095
  maintenanceWindow?: MaintenanceWindow;
1096
+ /** Source properties for import from storage. */
1097
+ importSourceProperties?: ImportSourceProperties;
759
1098
  }
760
1099
  /** Defines headers for BackupAndExport_create operation. */
761
1100
  export interface BackupAndExportCreateHeaders {
@@ -764,6 +1103,13 @@ export interface BackupAndExportCreateHeaders {
764
1103
  /** URL to query for status of the operation. */
765
1104
  azureAsyncOperation?: string;
766
1105
  }
1106
+ /** Defines headers for LongRunningBackup_create operation. */
1107
+ export interface LongRunningBackupCreateHeaders {
1108
+ /** URL to retrieve the final result after operation completes. */
1109
+ location?: string;
1110
+ /** URL to query for status of the operation. */
1111
+ azureAsyncOperation?: string;
1112
+ }
767
1113
  /** Defines headers for Configurations_createOrUpdate operation. */
768
1114
  export interface ConfigurationsCreateOrUpdateHeaders {
769
1115
  location?: string;
@@ -800,6 +1146,31 @@ export interface ServersStopHeaders {
800
1146
  export interface ServersResetGtidHeaders {
801
1147
  location?: string;
802
1148
  }
1149
+ /** Defines headers for ServersMigration_cutoverMigration operation. */
1150
+ export interface ServersMigrationCutoverMigrationHeaders {
1151
+ /** URL to retrieve the final result after operation completes. */
1152
+ location?: string;
1153
+ /** URL to query for status of the operation. */
1154
+ azureAsyncOperation?: string;
1155
+ }
1156
+ /** Defines headers for AdvancedThreatProtectionSettings_update operation. */
1157
+ export interface AdvancedThreatProtectionSettingsUpdateHeaders {
1158
+ /** URL to retrieve the final result after operation completes. */
1159
+ location?: string;
1160
+ /** URL to query for status of the operation. */
1161
+ azureAsyncOperation?: string;
1162
+ }
1163
+ /** Defines headers for AdvancedThreatProtectionSettings_updatePut operation. */
1164
+ export interface AdvancedThreatProtectionSettingsUpdatePutHeaders {
1165
+ /** URL to retrieve the final result after operation completes. */
1166
+ location?: string;
1167
+ /** URL to query for status of the operation. */
1168
+ azureAsyncOperation?: string;
1169
+ }
1170
+ /** Defines headers for Maintenances_update operation. */
1171
+ export interface MaintenancesUpdateHeaders {
1172
+ location?: string;
1173
+ }
803
1174
  /** Known values of {@link AdministratorName} that the service accepts. */
804
1175
  export declare enum KnownAdministratorName {
805
1176
  /** ActiveDirectory */
@@ -850,20 +1221,58 @@ export declare enum KnownCreatedByType {
850
1221
  export type CreatedByType = string;
851
1222
  /** Known values of {@link BackupFormat} that the service accepts. */
852
1223
  export declare enum KnownBackupFormat {
853
- /** None */
854
- None = "None",
855
1224
  /** CollatedFormat */
856
- CollatedFormat = "CollatedFormat"
1225
+ CollatedFormat = "CollatedFormat",
1226
+ /** Raw */
1227
+ Raw = "Raw"
857
1228
  }
858
1229
  /**
859
1230
  * Defines values for BackupFormat. \
860
1231
  * {@link KnownBackupFormat} can be used interchangeably with BackupFormat,
861
1232
  * this enum contains the known values that the service supports.
862
1233
  * ### Known values supported by the service
863
- * **None** \
864
- * **CollatedFormat**
1234
+ * **CollatedFormat** \
1235
+ * **Raw**
865
1236
  */
866
1237
  export type BackupFormat = string;
1238
+ /** Known values of {@link BackupType} that the service accepts. */
1239
+ export declare enum KnownBackupType {
1240
+ /** Full */
1241
+ Full = "FULL"
1242
+ }
1243
+ /**
1244
+ * Defines values for BackupType. \
1245
+ * {@link KnownBackupType} can be used interchangeably with BackupType,
1246
+ * this enum contains the known values that the service supports.
1247
+ * ### Known values supported by the service
1248
+ * **FULL**
1249
+ */
1250
+ export type BackupType = string;
1251
+ /** Known values of {@link ProvisioningState} that the service accepts. */
1252
+ export declare enum KnownProvisioningState {
1253
+ /** Succeeded */
1254
+ Succeeded = "Succeeded",
1255
+ /** Creating */
1256
+ Creating = "Creating",
1257
+ /** Deleting */
1258
+ Deleting = "Deleting",
1259
+ /** Failed */
1260
+ Failed = "Failed",
1261
+ /** Canceled */
1262
+ Canceled = "Canceled"
1263
+ }
1264
+ /**
1265
+ * Defines values for ProvisioningState. \
1266
+ * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState,
1267
+ * this enum contains the known values that the service supports.
1268
+ * ### Known values supported by the service
1269
+ * **Succeeded** \
1270
+ * **Creating** \
1271
+ * **Deleting** \
1272
+ * **Failed** \
1273
+ * **Canceled**
1274
+ */
1275
+ export type ProvisioningState = string;
867
1276
  /** Known values of {@link ConfigurationSource} that the service accepts. */
868
1277
  export declare enum KnownConfigurationSource {
869
1278
  /** SystemDefault */
@@ -957,8 +1366,8 @@ export declare enum KnownManagedServiceIdentityType {
957
1366
  * **UserAssigned**
958
1367
  */
959
1368
  export type ManagedServiceIdentityType = string;
960
- /** Known values of {@link SkuTier} that the service accepts. */
961
- export declare enum KnownSkuTier {
1369
+ /** Known values of {@link ServerSkuTier} that the service accepts. */
1370
+ export declare enum KnownServerSkuTier {
962
1371
  /** Burstable */
963
1372
  Burstable = "Burstable",
964
1373
  /** GeneralPurpose */
@@ -967,15 +1376,15 @@ export declare enum KnownSkuTier {
967
1376
  MemoryOptimized = "MemoryOptimized"
968
1377
  }
969
1378
  /**
970
- * Defines values for SkuTier. \
971
- * {@link KnownSkuTier} can be used interchangeably with SkuTier,
1379
+ * Defines values for ServerSkuTier. \
1380
+ * {@link KnownServerSkuTier} can be used interchangeably with ServerSkuTier,
972
1381
  * this enum contains the known values that the service supports.
973
1382
  * ### Known values supported by the service
974
1383
  * **Burstable** \
975
1384
  * **GeneralPurpose** \
976
1385
  * **MemoryOptimized**
977
1386
  */
978
- export type SkuTier = string;
1387
+ export type ServerSkuTier = string;
979
1388
  /** Known values of {@link ServerVersion} that the service accepts. */
980
1389
  export declare enum KnownServerVersion {
981
1390
  /** Five7 */
@@ -1124,6 +1533,199 @@ export declare enum KnownHighAvailabilityState {
1124
1533
  * **RemovingStandby**
1125
1534
  */
1126
1535
  export type HighAvailabilityState = string;
1536
+ /** Known values of {@link PrivateEndpointServiceConnectionStatus} that the service accepts. */
1537
+ export declare enum KnownPrivateEndpointServiceConnectionStatus {
1538
+ /** Pending */
1539
+ Pending = "Pending",
1540
+ /** Approved */
1541
+ Approved = "Approved",
1542
+ /** Rejected */
1543
+ Rejected = "Rejected"
1544
+ }
1545
+ /**
1546
+ * Defines values for PrivateEndpointServiceConnectionStatus. \
1547
+ * {@link KnownPrivateEndpointServiceConnectionStatus} can be used interchangeably with PrivateEndpointServiceConnectionStatus,
1548
+ * this enum contains the known values that the service supports.
1549
+ * ### Known values supported by the service
1550
+ * **Pending** \
1551
+ * **Approved** \
1552
+ * **Rejected**
1553
+ */
1554
+ export type PrivateEndpointServiceConnectionStatus = string;
1555
+ /** Known values of {@link PrivateEndpointConnectionProvisioningState} that the service accepts. */
1556
+ export declare enum KnownPrivateEndpointConnectionProvisioningState {
1557
+ /** Succeeded */
1558
+ Succeeded = "Succeeded",
1559
+ /** Creating */
1560
+ Creating = "Creating",
1561
+ /** Deleting */
1562
+ Deleting = "Deleting",
1563
+ /** Failed */
1564
+ Failed = "Failed"
1565
+ }
1566
+ /**
1567
+ * Defines values for PrivateEndpointConnectionProvisioningState. \
1568
+ * {@link KnownPrivateEndpointConnectionProvisioningState} can be used interchangeably with PrivateEndpointConnectionProvisioningState,
1569
+ * this enum contains the known values that the service supports.
1570
+ * ### Known values supported by the service
1571
+ * **Succeeded** \
1572
+ * **Creating** \
1573
+ * **Deleting** \
1574
+ * **Failed**
1575
+ */
1576
+ export type PrivateEndpointConnectionProvisioningState = string;
1577
+ /** Known values of {@link ImportSourceStorageType} that the service accepts. */
1578
+ export declare enum KnownImportSourceStorageType {
1579
+ /** AzureBlob */
1580
+ AzureBlob = "AzureBlob"
1581
+ }
1582
+ /**
1583
+ * Defines values for ImportSourceStorageType. \
1584
+ * {@link KnownImportSourceStorageType} can be used interchangeably with ImportSourceStorageType,
1585
+ * this enum contains the known values that the service supports.
1586
+ * ### Known values supported by the service
1587
+ * **AzureBlob**
1588
+ */
1589
+ export type ImportSourceStorageType = string;
1590
+ /** Known values of {@link AdvancedThreatProtectionName} that the service accepts. */
1591
+ export declare enum KnownAdvancedThreatProtectionName {
1592
+ /** Default */
1593
+ Default = "Default"
1594
+ }
1595
+ /**
1596
+ * Defines values for AdvancedThreatProtectionName. \
1597
+ * {@link KnownAdvancedThreatProtectionName} can be used interchangeably with AdvancedThreatProtectionName,
1598
+ * this enum contains the known values that the service supports.
1599
+ * ### Known values supported by the service
1600
+ * **Default**
1601
+ */
1602
+ export type AdvancedThreatProtectionName = string;
1603
+ /** Known values of {@link AdvancedThreatProtectionState} that the service accepts. */
1604
+ export declare enum KnownAdvancedThreatProtectionState {
1605
+ /** Enabled */
1606
+ Enabled = "Enabled",
1607
+ /** Disabled */
1608
+ Disabled = "Disabled"
1609
+ }
1610
+ /**
1611
+ * Defines values for AdvancedThreatProtectionState. \
1612
+ * {@link KnownAdvancedThreatProtectionState} can be used interchangeably with AdvancedThreatProtectionState,
1613
+ * this enum contains the known values that the service supports.
1614
+ * ### Known values supported by the service
1615
+ * **Enabled** \
1616
+ * **Disabled**
1617
+ */
1618
+ export type AdvancedThreatProtectionState = string;
1619
+ /** Known values of {@link AdvancedThreatProtectionProvisioningState} that the service accepts. */
1620
+ export declare enum KnownAdvancedThreatProtectionProvisioningState {
1621
+ /** Succeeded */
1622
+ Succeeded = "Succeeded",
1623
+ /** Updating */
1624
+ Updating = "Updating",
1625
+ /** Canceled */
1626
+ Canceled = "Canceled",
1627
+ /** Failed */
1628
+ Failed = "Failed"
1629
+ }
1630
+ /**
1631
+ * Defines values for AdvancedThreatProtectionProvisioningState. \
1632
+ * {@link KnownAdvancedThreatProtectionProvisioningState} can be used interchangeably with AdvancedThreatProtectionProvisioningState,
1633
+ * this enum contains the known values that the service supports.
1634
+ * ### Known values supported by the service
1635
+ * **Succeeded** \
1636
+ * **Updating** \
1637
+ * **Canceled** \
1638
+ * **Failed**
1639
+ */
1640
+ export type AdvancedThreatProtectionProvisioningState = string;
1641
+ /** Known values of {@link ObjectType} that the service accepts. */
1642
+ export declare enum KnownObjectType {
1643
+ /** BackupAndExportResponse */
1644
+ BackupAndExportResponse = "BackupAndExportResponse",
1645
+ /** ImportFromStorageResponse */
1646
+ ImportFromStorageResponse = "ImportFromStorageResponse"
1647
+ }
1648
+ /**
1649
+ * Defines values for ObjectType. \
1650
+ * {@link KnownObjectType} can be used interchangeably with ObjectType,
1651
+ * this enum contains the known values that the service supports.
1652
+ * ### Known values supported by the service
1653
+ * **BackupAndExportResponse** \
1654
+ * **ImportFromStorageResponse**
1655
+ */
1656
+ export type ObjectType = string;
1657
+ /** Known values of {@link MaintenanceType} that the service accepts. */
1658
+ export declare enum KnownMaintenanceType {
1659
+ /** RoutineMaintenance */
1660
+ RoutineMaintenance = "RoutineMaintenance",
1661
+ /** MinorVersionUpgrade */
1662
+ MinorVersionUpgrade = "MinorVersionUpgrade",
1663
+ /** SecurityPatches */
1664
+ SecurityPatches = "SecurityPatches",
1665
+ /** HotFixes */
1666
+ HotFixes = "HotFixes"
1667
+ }
1668
+ /**
1669
+ * Defines values for MaintenanceType. \
1670
+ * {@link KnownMaintenanceType} can be used interchangeably with MaintenanceType,
1671
+ * this enum contains the known values that the service supports.
1672
+ * ### Known values supported by the service
1673
+ * **RoutineMaintenance** \
1674
+ * **MinorVersionUpgrade** \
1675
+ * **SecurityPatches** \
1676
+ * **HotFixes**
1677
+ */
1678
+ export type MaintenanceType = string;
1679
+ /** Known values of {@link MaintenanceState} that the service accepts. */
1680
+ export declare enum KnownMaintenanceState {
1681
+ /** Scheduled */
1682
+ Scheduled = "Scheduled",
1683
+ /** ReScheduled */
1684
+ ReScheduled = "ReScheduled",
1685
+ /** InPreparation */
1686
+ InPreparation = "InPreparation",
1687
+ /** Processing */
1688
+ Processing = "Processing",
1689
+ /** Completed */
1690
+ Completed = "Completed",
1691
+ /** Canceled */
1692
+ Canceled = "Canceled"
1693
+ }
1694
+ /**
1695
+ * Defines values for MaintenanceState. \
1696
+ * {@link KnownMaintenanceState} can be used interchangeably with MaintenanceState,
1697
+ * this enum contains the known values that the service supports.
1698
+ * ### Known values supported by the service
1699
+ * **Scheduled** \
1700
+ * **ReScheduled** \
1701
+ * **InPreparation** \
1702
+ * **Processing** \
1703
+ * **Completed** \
1704
+ * **Canceled**
1705
+ */
1706
+ export type MaintenanceState = string;
1707
+ /** Known values of {@link MaintenanceProvisioningState} that the service accepts. */
1708
+ export declare enum KnownMaintenanceProvisioningState {
1709
+ /** Succeeded */
1710
+ Succeeded = "Succeeded",
1711
+ /** Creating */
1712
+ Creating = "Creating",
1713
+ /** Deleting */
1714
+ Deleting = "Deleting",
1715
+ /** Failed */
1716
+ Failed = "Failed"
1717
+ }
1718
+ /**
1719
+ * Defines values for MaintenanceProvisioningState. \
1720
+ * {@link KnownMaintenanceProvisioningState} can be used interchangeably with MaintenanceProvisioningState,
1721
+ * this enum contains the known values that the service supports.
1722
+ * ### Known values supported by the service
1723
+ * **Succeeded** \
1724
+ * **Creating** \
1725
+ * **Deleting** \
1726
+ * **Failed**
1727
+ */
1728
+ export type MaintenanceProvisioningState = string;
1127
1729
  /** Defines values for OperationStatus. */
1128
1730
  export type OperationStatus = "Pending" | "InProgress" | "Succeeded" | "Failed" | "CancelInProgress" | "Canceled";
1129
1731
  /** Defines values for DataEncryptionType. */
@@ -1194,6 +1796,32 @@ export interface BackupAndExportValidateBackupOptionalParams extends coreClient.
1194
1796
  /** Contains response data for the validateBackup operation. */
1195
1797
  export type BackupAndExportValidateBackupResponse = ValidateBackupResponse;
1196
1798
  /** Optional parameters. */
1799
+ export interface LongRunningBackupCreateOptionalParams extends coreClient.OperationOptions {
1800
+ /** The required parameters for creating and exporting backup of the given server. */
1801
+ parameters?: ServerBackupV2;
1802
+ /** Delay to wait until next poll, in milliseconds. */
1803
+ updateIntervalInMs?: number;
1804
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
1805
+ resumeFrom?: string;
1806
+ }
1807
+ /** Contains response data for the create operation. */
1808
+ export type LongRunningBackupCreateResponse = ServerBackupV2;
1809
+ /** Optional parameters. */
1810
+ export interface LongRunningBackupsGetOptionalParams extends coreClient.OperationOptions {
1811
+ }
1812
+ /** Contains response data for the get operation. */
1813
+ export type LongRunningBackupsGetResponse = ServerBackupV2;
1814
+ /** Optional parameters. */
1815
+ export interface LongRunningBackupsListOptionalParams extends coreClient.OperationOptions {
1816
+ }
1817
+ /** Contains response data for the list operation. */
1818
+ export type LongRunningBackupsListResponse = ServerBackupV2ListResult;
1819
+ /** Optional parameters. */
1820
+ export interface LongRunningBackupsListNextOptionalParams extends coreClient.OperationOptions {
1821
+ }
1822
+ /** Contains response data for the listNext operation. */
1823
+ export type LongRunningBackupsListNextResponse = ServerBackupV2ListResult;
1824
+ /** Optional parameters. */
1197
1825
  export interface ConfigurationsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
1198
1826
  /** Delay to wait until next poll, in milliseconds. */
1199
1827
  updateIntervalInMs?: number;
@@ -1353,6 +1981,11 @@ export interface ServersFailoverOptionalParams extends coreClient.OperationOptio
1353
1981
  resumeFrom?: string;
1354
1982
  }
1355
1983
  /** Optional parameters. */
1984
+ export interface ServersValidateEstimateHighAvailabilityOptionalParams extends coreClient.OperationOptions {
1985
+ }
1986
+ /** Contains response data for the validateEstimateHighAvailability operation. */
1987
+ export type ServersValidateEstimateHighAvailabilityResponse = HighAvailabilityValidationEstimation;
1988
+ /** Optional parameters. */
1356
1989
  export interface ServersRestartOptionalParams extends coreClient.OperationOptions {
1357
1990
  /** Delay to wait until next poll, in milliseconds. */
1358
1991
  updateIntervalInMs?: number;
@@ -1401,6 +2034,48 @@ export interface ReplicasListByServerNextOptionalParams extends coreClient.Opera
1401
2034
  /** Contains response data for the listByServerNext operation. */
1402
2035
  export type ReplicasListByServerNextResponse = ServerListResult;
1403
2036
  /** Optional parameters. */
2037
+ export interface ServersMigrationCutoverMigrationOptionalParams extends coreClient.OperationOptions {
2038
+ /** Delay to wait until next poll, in milliseconds. */
2039
+ updateIntervalInMs?: number;
2040
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
2041
+ resumeFrom?: string;
2042
+ }
2043
+ /** Contains response data for the cutoverMigration operation. */
2044
+ export type ServersMigrationCutoverMigrationResponse = Server;
2045
+ /** Optional parameters. */
2046
+ export interface AdvancedThreatProtectionSettingsGetOptionalParams extends coreClient.OperationOptions {
2047
+ }
2048
+ /** Contains response data for the get operation. */
2049
+ export type AdvancedThreatProtectionSettingsGetResponse = AdvancedThreatProtection;
2050
+ /** Optional parameters. */
2051
+ export interface AdvancedThreatProtectionSettingsUpdateOptionalParams extends coreClient.OperationOptions {
2052
+ /** Delay to wait until next poll, in milliseconds. */
2053
+ updateIntervalInMs?: number;
2054
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
2055
+ resumeFrom?: string;
2056
+ }
2057
+ /** Contains response data for the update operation. */
2058
+ export type AdvancedThreatProtectionSettingsUpdateResponse = AdvancedThreatProtection;
2059
+ /** Optional parameters. */
2060
+ export interface AdvancedThreatProtectionSettingsUpdatePutOptionalParams extends coreClient.OperationOptions {
2061
+ /** Delay to wait until next poll, in milliseconds. */
2062
+ updateIntervalInMs?: number;
2063
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
2064
+ resumeFrom?: string;
2065
+ }
2066
+ /** Contains response data for the updatePut operation. */
2067
+ export type AdvancedThreatProtectionSettingsUpdatePutResponse = AdvancedThreatProtection;
2068
+ /** Optional parameters. */
2069
+ export interface AdvancedThreatProtectionSettingsListOptionalParams extends coreClient.OperationOptions {
2070
+ }
2071
+ /** Contains response data for the list operation. */
2072
+ export type AdvancedThreatProtectionSettingsListResponse = AdvancedThreatProtectionListResult;
2073
+ /** Optional parameters. */
2074
+ export interface AdvancedThreatProtectionSettingsListNextOptionalParams extends coreClient.OperationOptions {
2075
+ }
2076
+ /** Contains response data for the listNext operation. */
2077
+ export type AdvancedThreatProtectionSettingsListNextResponse = AdvancedThreatProtectionListResult;
2078
+ /** Optional parameters. */
1404
2079
  export interface LogFilesListByServerOptionalParams extends coreClient.OperationOptions {
1405
2080
  }
1406
2081
  /** Contains response data for the listByServer operation. */
@@ -1421,6 +2096,21 @@ export interface LocationBasedCapabilitiesListNextOptionalParams extends coreCli
1421
2096
  /** Contains response data for the listNext operation. */
1422
2097
  export type LocationBasedCapabilitiesListNextResponse = CapabilitiesListResult;
1423
2098
  /** Optional parameters. */
2099
+ export interface LocationBasedCapabilitySetListOptionalParams extends coreClient.OperationOptions {
2100
+ }
2101
+ /** Contains response data for the list operation. */
2102
+ export type LocationBasedCapabilitySetListResponse = CapabilitySetsList;
2103
+ /** Optional parameters. */
2104
+ export interface LocationBasedCapabilitySetGetOptionalParams extends coreClient.OperationOptions {
2105
+ }
2106
+ /** Contains response data for the get operation. */
2107
+ export type LocationBasedCapabilitySetGetResponse = Capability;
2108
+ /** Optional parameters. */
2109
+ export interface LocationBasedCapabilitySetListNextOptionalParams extends coreClient.OperationOptions {
2110
+ }
2111
+ /** Contains response data for the listNext operation. */
2112
+ export type LocationBasedCapabilitySetListNextResponse = CapabilitySetsList;
2113
+ /** Optional parameters. */
1424
2114
  export interface CheckVirtualNetworkSubnetUsageExecuteOptionalParams extends coreClient.OperationOptions {
1425
2115
  }
1426
2116
  /** Contains response data for the execute operation. */
@@ -1436,6 +2126,16 @@ export interface CheckNameAvailabilityWithoutLocationExecuteOptionalParams exten
1436
2126
  /** Contains response data for the execute operation. */
1437
2127
  export type CheckNameAvailabilityWithoutLocationExecuteResponse = NameAvailability;
1438
2128
  /** Optional parameters. */
2129
+ export interface OperationResultsGetOptionalParams extends coreClient.OperationOptions {
2130
+ }
2131
+ /** Contains response data for the get operation. */
2132
+ export type OperationResultsGetResponse = OperationStatusExtendedResult;
2133
+ /** Optional parameters. */
2134
+ export interface OperationProgressGetOptionalParams extends coreClient.OperationOptions {
2135
+ }
2136
+ /** Contains response data for the get operation. */
2137
+ export type OperationProgressGetResponse = OperationProgressResult;
2138
+ /** Optional parameters. */
1439
2139
  export interface GetPrivateDnsZoneSuffixExecuteOptionalParams extends coreClient.OperationOptions {
1440
2140
  }
1441
2141
  /** Contains response data for the execute operation. */
@@ -1451,6 +2151,32 @@ export interface OperationsListNextOptionalParams extends coreClient.OperationOp
1451
2151
  /** Contains response data for the listNext operation. */
1452
2152
  export type OperationsListNextResponse = OperationListResult;
1453
2153
  /** Optional parameters. */
2154
+ export interface MaintenancesReadOptionalParams extends coreClient.OperationOptions {
2155
+ }
2156
+ /** Contains response data for the read operation. */
2157
+ export type MaintenancesReadResponse = Maintenance;
2158
+ /** Optional parameters. */
2159
+ export interface MaintenancesUpdateOptionalParams extends coreClient.OperationOptions {
2160
+ /** The required parameters for update maintenance on a server. */
2161
+ parameters?: MaintenanceUpdate;
2162
+ /** Delay to wait until next poll, in milliseconds. */
2163
+ updateIntervalInMs?: number;
2164
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
2165
+ resumeFrom?: string;
2166
+ }
2167
+ /** Contains response data for the update operation. */
2168
+ export type MaintenancesUpdateResponse = Maintenance;
2169
+ /** Optional parameters. */
2170
+ export interface MaintenancesListOptionalParams extends coreClient.OperationOptions {
2171
+ }
2172
+ /** Contains response data for the list operation. */
2173
+ export type MaintenancesListResponse = MaintenanceListResult;
2174
+ /** Optional parameters. */
2175
+ export interface MaintenancesListNextOptionalParams extends coreClient.OperationOptions {
2176
+ }
2177
+ /** Contains response data for the listNext operation. */
2178
+ export type MaintenancesListNextResponse = MaintenanceListResult;
2179
+ /** Optional parameters. */
1454
2180
  export interface MySQLManagementFlexibleServerClientOptionalParams extends coreClient.ServiceClientOptions {
1455
2181
  /** server parameter */
1456
2182
  $host?: string;