@azure/arm-mysql-flexible 3.1.1-alpha.20230511.1 → 4.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (209) hide show
  1. package/CHANGELOG.md +96 -8
  2. package/LICENSE +1 -1
  3. package/README.md +1 -1
  4. package/dist/index.js +3646 -1927
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.min.js +1 -1
  7. package/dist/index.min.js.map +1 -1
  8. package/dist-esm/samples-dev/azureAdAdministratorsCreateOrUpdateSample.d.ts +2 -0
  9. package/dist-esm/samples-dev/azureAdAdministratorsCreateOrUpdateSample.d.ts.map +1 -0
  10. package/dist-esm/samples-dev/azureAdAdministratorsCreateOrUpdateSample.js +47 -0
  11. package/dist-esm/samples-dev/azureAdAdministratorsCreateOrUpdateSample.js.map +1 -0
  12. package/dist-esm/samples-dev/azureAdAdministratorsDeleteSample.d.ts +2 -0
  13. package/dist-esm/samples-dev/azureAdAdministratorsDeleteSample.d.ts.map +1 -0
  14. package/dist-esm/samples-dev/azureAdAdministratorsDeleteSample.js +40 -0
  15. package/dist-esm/samples-dev/azureAdAdministratorsDeleteSample.js.map +1 -0
  16. package/dist-esm/samples-dev/azureAdAdministratorsGetSample.d.ts +2 -0
  17. package/dist-esm/samples-dev/azureAdAdministratorsGetSample.d.ts.map +1 -0
  18. package/dist-esm/samples-dev/azureAdAdministratorsGetSample.js +40 -0
  19. package/dist-esm/samples-dev/azureAdAdministratorsGetSample.js.map +1 -0
  20. package/dist-esm/samples-dev/azureAdAdministratorsListByServerSample.d.ts +2 -0
  21. package/dist-esm/samples-dev/azureAdAdministratorsListByServerSample.d.ts.map +1 -0
  22. package/dist-esm/samples-dev/azureAdAdministratorsListByServerSample.js +60 -0
  23. package/dist-esm/samples-dev/azureAdAdministratorsListByServerSample.js.map +1 -0
  24. package/dist-esm/samples-dev/backupAndExportCreateSample.d.ts +2 -0
  25. package/dist-esm/samples-dev/backupAndExportCreateSample.d.ts.map +1 -0
  26. package/dist-esm/samples-dev/backupAndExportCreateSample.js +46 -0
  27. package/dist-esm/samples-dev/backupAndExportCreateSample.js.map +1 -0
  28. package/dist-esm/samples-dev/backupAndExportValidateBackupSample.d.ts +2 -0
  29. package/dist-esm/samples-dev/backupAndExportValidateBackupSample.d.ts.map +1 -0
  30. package/dist-esm/samples-dev/backupAndExportValidateBackupSample.js +39 -0
  31. package/dist-esm/samples-dev/backupAndExportValidateBackupSample.js.map +1 -0
  32. package/dist-esm/samples-dev/backupsGetSample.js +1 -1
  33. package/dist-esm/samples-dev/backupsListByServerSample.js +1 -1
  34. package/dist-esm/samples-dev/backupsPutSample.d.ts +2 -0
  35. package/dist-esm/samples-dev/backupsPutSample.d.ts.map +1 -0
  36. package/dist-esm/samples-dev/backupsPutSample.js +40 -0
  37. package/dist-esm/samples-dev/backupsPutSample.js.map +1 -0
  38. package/dist-esm/samples-dev/checkNameAvailabilityExecuteSample.js +1 -1
  39. package/dist-esm/samples-dev/checkNameAvailabilityWithoutLocationExecuteSample.d.ts +2 -0
  40. package/dist-esm/samples-dev/checkNameAvailabilityWithoutLocationExecuteSample.d.ts.map +1 -0
  41. package/dist-esm/samples-dev/checkNameAvailabilityWithoutLocationExecuteSample.js +41 -0
  42. package/dist-esm/samples-dev/checkNameAvailabilityWithoutLocationExecuteSample.js.map +1 -0
  43. package/dist-esm/samples-dev/checkVirtualNetworkSubnetUsageExecuteSample.js +1 -1
  44. package/dist-esm/samples-dev/configurationsBatchUpdateSample.js +2 -1
  45. package/dist-esm/samples-dev/configurationsBatchUpdateSample.js.map +1 -1
  46. package/dist-esm/samples-dev/configurationsCreateOrUpdateSample.d.ts +2 -0
  47. package/dist-esm/samples-dev/configurationsCreateOrUpdateSample.d.ts.map +1 -0
  48. package/dist-esm/samples-dev/configurationsCreateOrUpdateSample.js +41 -0
  49. package/dist-esm/samples-dev/configurationsCreateOrUpdateSample.js.map +1 -0
  50. package/dist-esm/samples-dev/configurationsGetSample.js +1 -1
  51. package/dist-esm/samples-dev/configurationsListByServerSample.js +5 -2
  52. package/dist-esm/samples-dev/configurationsListByServerSample.js.map +1 -1
  53. package/dist-esm/samples-dev/configurationsUpdateSample.js +1 -1
  54. package/dist-esm/samples-dev/databasesCreateOrUpdateSample.js +1 -1
  55. package/dist-esm/samples-dev/databasesDeleteSample.js +1 -1
  56. package/dist-esm/samples-dev/databasesGetSample.js +1 -1
  57. package/dist-esm/samples-dev/databasesListByServerSample.js +1 -1
  58. package/dist-esm/samples-dev/firewallRulesCreateOrUpdateSample.js +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 +1 -1
  62. package/dist-esm/samples-dev/getPrivateDnsZoneSuffixExecuteSample.js +1 -1
  63. package/dist-esm/samples-dev/locationBasedCapabilitiesListSample.js +1 -1
  64. package/dist-esm/samples-dev/logFilesListByServerSample.d.ts +2 -0
  65. package/dist-esm/samples-dev/logFilesListByServerSample.d.ts.map +1 -0
  66. package/dist-esm/samples-dev/logFilesListByServerSample.js +60 -0
  67. package/dist-esm/samples-dev/logFilesListByServerSample.js.map +1 -0
  68. package/dist-esm/samples-dev/operationsListSample.js +1 -1
  69. package/dist-esm/samples-dev/replicasListByServerSample.js +1 -1
  70. package/dist-esm/samples-dev/serversCreateSample.js +48 -3
  71. package/dist-esm/samples-dev/serversCreateSample.js.map +1 -1
  72. package/dist-esm/samples-dev/serversDeleteSample.js +1 -1
  73. package/dist-esm/samples-dev/serversFailoverSample.js +1 -1
  74. package/dist-esm/samples-dev/serversGetSample.js +2 -2
  75. package/dist-esm/samples-dev/serversListByResourceGroupSample.js +1 -1
  76. package/dist-esm/samples-dev/serversListSample.js +1 -1
  77. package/dist-esm/samples-dev/serversResetGtidSample.d.ts +2 -0
  78. package/dist-esm/samples-dev/serversResetGtidSample.d.ts.map +1 -0
  79. package/dist-esm/samples-dev/serversResetGtidSample.js +42 -0
  80. package/dist-esm/samples-dev/serversResetGtidSample.js.map +1 -0
  81. package/dist-esm/samples-dev/serversRestartSample.js +1 -1
  82. package/dist-esm/samples-dev/serversStartSample.js +1 -1
  83. package/dist-esm/samples-dev/serversStopSample.js +1 -1
  84. package/dist-esm/samples-dev/serversUpdateSample.js +42 -3
  85. package/dist-esm/samples-dev/serversUpdateSample.js.map +1 -1
  86. package/dist-esm/src/lroImpl.d.ts +6 -11
  87. package/dist-esm/src/lroImpl.d.ts.map +1 -1
  88. package/dist-esm/src/lroImpl.js +12 -20
  89. package/dist-esm/src/lroImpl.js.map +1 -1
  90. package/dist-esm/src/models/index.d.ts +767 -378
  91. package/dist-esm/src/models/index.d.ts.map +1 -1
  92. package/dist-esm/src/models/index.js +78 -44
  93. package/dist-esm/src/models/index.js.map +1 -1
  94. package/dist-esm/src/models/mappers.d.ts +44 -15
  95. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  96. package/dist-esm/src/models/mappers.js +1232 -601
  97. package/dist-esm/src/models/mappers.js.map +1 -1
  98. package/dist-esm/src/models/parameters.d.ts +14 -5
  99. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  100. package/dist-esm/src/models/parameters.js +96 -21
  101. package/dist-esm/src/models/parameters.js.map +1 -1
  102. package/dist-esm/src/mySQLManagementFlexibleServerClient.d.ts +9 -8
  103. package/dist-esm/src/mySQLManagementFlexibleServerClient.d.ts.map +1 -1
  104. package/dist-esm/src/mySQLManagementFlexibleServerClient.js +10 -36
  105. package/dist-esm/src/mySQLManagementFlexibleServerClient.js.map +1 -1
  106. package/dist-esm/src/operations/azureADAdministrators.d.ts +81 -0
  107. package/dist-esm/src/operations/azureADAdministrators.d.ts.map +1 -0
  108. package/dist-esm/src/operations/azureADAdministrators.js +368 -0
  109. package/dist-esm/src/operations/azureADAdministrators.js.map +1 -0
  110. package/dist-esm/src/operations/backupAndExport.d.ts +37 -0
  111. package/dist-esm/src/operations/backupAndExport.d.ts.map +1 -0
  112. package/dist-esm/src/operations/backupAndExport.js +146 -0
  113. package/dist-esm/src/operations/backupAndExport.js.map +1 -0
  114. package/dist-esm/src/operations/backups.d.ts +9 -1
  115. package/dist-esm/src/operations/backups.d.ts.map +1 -1
  116. package/dist-esm/src/operations/backups.js +34 -2
  117. package/dist-esm/src/operations/backups.js.map +1 -1
  118. package/dist-esm/src/operations/checkNameAvailabilityWithoutLocation.d.ts +19 -0
  119. package/dist-esm/src/operations/checkNameAvailabilityWithoutLocation.d.ts.map +1 -0
  120. package/dist-esm/src/operations/checkNameAvailabilityWithoutLocation.js +49 -0
  121. package/dist-esm/src/operations/checkNameAvailabilityWithoutLocation.js.map +1 -0
  122. package/dist-esm/src/operations/checkVirtualNetworkSubnetUsage.js +1 -1
  123. package/dist-esm/src/operations/checkVirtualNetworkSubnetUsage.js.map +1 -1
  124. package/dist-esm/src/operations/configurations.d.ts +22 -4
  125. package/dist-esm/src/operations/configurations.d.ts.map +1 -1
  126. package/dist-esm/src/operations/configurations.js +132 -14
  127. package/dist-esm/src/operations/configurations.js.map +1 -1
  128. package/dist-esm/src/operations/databases.d.ts +3 -3
  129. package/dist-esm/src/operations/databases.d.ts.map +1 -1
  130. package/dist-esm/src/operations/databases.js +24 -10
  131. package/dist-esm/src/operations/databases.js.map +1 -1
  132. package/dist-esm/src/operations/firewallRules.d.ts +3 -3
  133. package/dist-esm/src/operations/firewallRules.d.ts.map +1 -1
  134. package/dist-esm/src/operations/firewallRules.js +25 -11
  135. package/dist-esm/src/operations/firewallRules.js.map +1 -1
  136. package/dist-esm/src/operations/index.d.ts +8 -4
  137. package/dist-esm/src/operations/index.d.ts.map +1 -1
  138. package/dist-esm/src/operations/index.js +8 -4
  139. package/dist-esm/src/operations/index.js.map +1 -1
  140. package/dist-esm/src/operations/logFiles.d.ts +38 -0
  141. package/dist-esm/src/operations/logFiles.d.ts.map +1 -0
  142. package/dist-esm/src/operations/logFiles.js +155 -0
  143. package/dist-esm/src/operations/logFiles.js.map +1 -0
  144. package/dist-esm/src/operations/replicas.js +1 -1
  145. package/dist-esm/src/operations/replicas.js.map +1 -1
  146. package/dist-esm/src/operations/servers.d.ts +25 -9
  147. package/dist-esm/src/operations/servers.d.ts.map +1 -1
  148. package/dist-esm/src/operations/servers.js +155 -44
  149. package/dist-esm/src/operations/servers.js.map +1 -1
  150. package/dist-esm/src/operationsInterfaces/azureADAdministrators.d.ts +56 -0
  151. package/dist-esm/src/operationsInterfaces/azureADAdministrators.d.ts.map +1 -0
  152. package/dist-esm/src/operationsInterfaces/azureADAdministrators.js +9 -0
  153. package/dist-esm/src/operationsInterfaces/azureADAdministrators.js.map +1 -0
  154. package/dist-esm/src/operationsInterfaces/backupAndExport.d.ts +29 -0
  155. package/dist-esm/src/operationsInterfaces/backupAndExport.d.ts.map +1 -0
  156. package/dist-esm/src/operationsInterfaces/backupAndExport.js +9 -0
  157. package/dist-esm/src/operationsInterfaces/backupAndExport.js.map +1 -0
  158. package/dist-esm/src/operationsInterfaces/backups.d.ts +9 -1
  159. package/dist-esm/src/operationsInterfaces/backups.d.ts.map +1 -1
  160. package/dist-esm/src/operationsInterfaces/checkNameAvailabilityWithoutLocation.d.ts +11 -0
  161. package/dist-esm/src/operationsInterfaces/checkNameAvailabilityWithoutLocation.d.ts.map +1 -0
  162. package/dist-esm/src/operationsInterfaces/checkNameAvailabilityWithoutLocation.js +9 -0
  163. package/dist-esm/src/operationsInterfaces/checkNameAvailabilityWithoutLocation.js.map +1 -0
  164. package/dist-esm/src/operationsInterfaces/configurations.d.ts +22 -4
  165. package/dist-esm/src/operationsInterfaces/configurations.d.ts.map +1 -1
  166. package/dist-esm/src/operationsInterfaces/databases.d.ts +3 -3
  167. package/dist-esm/src/operationsInterfaces/databases.d.ts.map +1 -1
  168. package/dist-esm/src/operationsInterfaces/firewallRules.d.ts +3 -3
  169. package/dist-esm/src/operationsInterfaces/firewallRules.d.ts.map +1 -1
  170. package/dist-esm/src/operationsInterfaces/index.d.ts +8 -4
  171. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
  172. package/dist-esm/src/operationsInterfaces/index.js +8 -4
  173. package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
  174. package/dist-esm/src/operationsInterfaces/logFiles.d.ts +13 -0
  175. package/dist-esm/src/operationsInterfaces/logFiles.d.ts.map +1 -0
  176. package/dist-esm/src/operationsInterfaces/logFiles.js +9 -0
  177. package/dist-esm/src/operationsInterfaces/logFiles.js.map +1 -0
  178. package/dist-esm/src/operationsInterfaces/servers.d.ts +25 -9
  179. package/dist-esm/src/operationsInterfaces/servers.d.ts.map +1 -1
  180. package/package.json +6 -6
  181. package/review/arm-mysql-flexible.api.md +383 -18
  182. package/src/lroImpl.ts +31 -23
  183. package/src/models/index.ts +842 -382
  184. package/src/models/mappers.ts +1315 -622
  185. package/src/models/parameters.ts +112 -25
  186. package/src/mySQLManagementFlexibleServerClient.ts +35 -53
  187. package/src/operations/azureADAdministrators.ts +504 -0
  188. package/src/operations/backupAndExport.ts +210 -0
  189. package/src/operations/backups.ts +46 -2
  190. package/src/operations/checkNameAvailabilityWithoutLocation.ts +69 -0
  191. package/src/operations/checkVirtualNetworkSubnetUsage.ts +1 -1
  192. package/src/operations/configurations.ts +190 -26
  193. package/src/operations/databases.ts +34 -21
  194. package/src/operations/firewallRules.ts +35 -22
  195. package/src/operations/index.ts +8 -4
  196. package/src/operations/logFiles.ts +198 -0
  197. package/src/operations/replicas.ts +1 -1
  198. package/src/operations/servers.ts +211 -79
  199. package/src/operationsInterfaces/azureADAdministrators.ts +110 -0
  200. package/src/operationsInterfaces/backupAndExport.ts +62 -0
  201. package/src/operationsInterfaces/backups.ts +15 -0
  202. package/src/operationsInterfaces/checkNameAvailabilityWithoutLocation.ts +26 -0
  203. package/src/operationsInterfaces/configurations.ts +42 -5
  204. package/src/operationsInterfaces/databases.ts +4 -4
  205. package/src/operationsInterfaces/firewallRules.ts +4 -4
  206. package/src/operationsInterfaces/index.ts +8 -4
  207. package/src/operationsInterfaces/logFiles.ts +26 -0
  208. package/src/operationsInterfaces/servers.ts +43 -9
  209. package/types/arm-mysql-flexible.d.ts +624 -29
@@ -1,8 +1,146 @@
1
1
  import * as coreAuth from '@azure/core-auth';
2
2
  import * as coreClient from '@azure/core-client';
3
+ import { OperationState } from '@azure/core-lro';
3
4
  import { PagedAsyncIterableIterator } from '@azure/core-paging';
4
- import { PollerLike } from '@azure/core-lro';
5
- import { PollOperationState } from '@azure/core-lro';
5
+ import { SimplePollerLike } from '@azure/core-lro';
6
+
7
+ /** A List of azure ad administrators. */
8
+ export declare interface AdministratorListResult {
9
+ /** The list of azure ad administrator of a server */
10
+ value?: AzureADAdministrator[];
11
+ /** The link used to get the next page of operations. */
12
+ nextLink?: string;
13
+ }
14
+
15
+ /**
16
+ * Defines values for AdministratorName. \
17
+ * {@link KnownAdministratorName} can be used interchangeably with AdministratorName,
18
+ * this enum contains the known values that the service supports.
19
+ * ### Known values supported by the service
20
+ * **ActiveDirectory**
21
+ */
22
+ export declare type AdministratorName = string;
23
+
24
+ /**
25
+ * Defines values for AdministratorType. \
26
+ * {@link KnownAdministratorType} can be used interchangeably with AdministratorType,
27
+ * this enum contains the known values that the service supports.
28
+ * ### Known values supported by the service
29
+ * **ActiveDirectory**
30
+ */
31
+ export declare type AdministratorType = string;
32
+
33
+ /** Represents a Administrator. */
34
+ export declare interface AzureADAdministrator extends ProxyResource {
35
+ /**
36
+ * The system metadata relating to this resource.
37
+ * NOTE: This property will not be serialized. It can only be populated by the server.
38
+ */
39
+ readonly systemData?: SystemData;
40
+ /** Type of the sever administrator. */
41
+ administratorType?: AdministratorType;
42
+ /** Login name of the server administrator. */
43
+ login?: string;
44
+ /** SID (object ID) of the server administrator. */
45
+ sid?: string;
46
+ /** Tenant ID of the administrator. */
47
+ tenantId?: string;
48
+ /** The resource id of the identity used for AAD Authentication. */
49
+ identityResourceId?: string;
50
+ }
51
+
52
+ /** Interface representing a AzureADAdministrators. */
53
+ export declare interface AzureADAdministrators {
54
+ /**
55
+ * List all the AAD administrators in a given server.
56
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
57
+ * @param serverName The name of the server.
58
+ * @param options The options parameters.
59
+ */
60
+ listByServer(resourceGroupName: string, serverName: string, options?: AzureADAdministratorsListByServerOptionalParams): PagedAsyncIterableIterator<AzureADAdministrator>;
61
+ /**
62
+ * Creates or updates an existing Azure Active Directory administrator.
63
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
64
+ * @param serverName The name of the server.
65
+ * @param administratorName The name of the Azure AD Administrator.
66
+ * @param parameters The required parameters for creating or updating an aad administrator.
67
+ * @param options The options parameters.
68
+ */
69
+ beginCreateOrUpdate(resourceGroupName: string, serverName: string, administratorName: AdministratorName, parameters: AzureADAdministrator, options?: AzureADAdministratorsCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<AzureADAdministratorsCreateOrUpdateResponse>, AzureADAdministratorsCreateOrUpdateResponse>>;
70
+ /**
71
+ * Creates or updates an existing Azure Active Directory administrator.
72
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
73
+ * @param serverName The name of the server.
74
+ * @param administratorName The name of the Azure AD Administrator.
75
+ * @param parameters The required parameters for creating or updating an aad administrator.
76
+ * @param options The options parameters.
77
+ */
78
+ beginCreateOrUpdateAndWait(resourceGroupName: string, serverName: string, administratorName: AdministratorName, parameters: AzureADAdministrator, options?: AzureADAdministratorsCreateOrUpdateOptionalParams): Promise<AzureADAdministratorsCreateOrUpdateResponse>;
79
+ /**
80
+ * Deletes an Azure AD Administrator.
81
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
82
+ * @param serverName The name of the server.
83
+ * @param administratorName The name of the Azure AD Administrator.
84
+ * @param options The options parameters.
85
+ */
86
+ beginDelete(resourceGroupName: string, serverName: string, administratorName: AdministratorName, options?: AzureADAdministratorsDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
87
+ /**
88
+ * Deletes an Azure AD Administrator.
89
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
90
+ * @param serverName The name of the server.
91
+ * @param administratorName The name of the Azure AD Administrator.
92
+ * @param options The options parameters.
93
+ */
94
+ beginDeleteAndWait(resourceGroupName: string, serverName: string, administratorName: AdministratorName, options?: AzureADAdministratorsDeleteOptionalParams): Promise<void>;
95
+ /**
96
+ * Gets information about an azure ad administrator.
97
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
98
+ * @param serverName The name of the server.
99
+ * @param administratorName The name of the Azure AD Administrator.
100
+ * @param options The options parameters.
101
+ */
102
+ get(resourceGroupName: string, serverName: string, administratorName: AdministratorName, options?: AzureADAdministratorsGetOptionalParams): Promise<AzureADAdministratorsGetResponse>;
103
+ }
104
+
105
+ /** Optional parameters. */
106
+ export declare interface AzureADAdministratorsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
107
+ /** Delay to wait until next poll, in milliseconds. */
108
+ updateIntervalInMs?: number;
109
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
110
+ resumeFrom?: string;
111
+ }
112
+
113
+ /** Contains response data for the createOrUpdate operation. */
114
+ export declare type AzureADAdministratorsCreateOrUpdateResponse = AzureADAdministrator;
115
+
116
+ /** Optional parameters. */
117
+ export declare interface AzureADAdministratorsDeleteOptionalParams extends coreClient.OperationOptions {
118
+ /** Delay to wait until next poll, in milliseconds. */
119
+ updateIntervalInMs?: number;
120
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
121
+ resumeFrom?: string;
122
+ }
123
+
124
+ /** Optional parameters. */
125
+ export declare interface AzureADAdministratorsGetOptionalParams extends coreClient.OperationOptions {
126
+ }
127
+
128
+ /** Contains response data for the get operation. */
129
+ export declare type AzureADAdministratorsGetResponse = AzureADAdministrator;
130
+
131
+ /** Optional parameters. */
132
+ export declare interface AzureADAdministratorsListByServerNextOptionalParams extends coreClient.OperationOptions {
133
+ }
134
+
135
+ /** Contains response data for the listByServerNext operation. */
136
+ export declare type AzureADAdministratorsListByServerNextResponse = AdministratorListResult;
137
+
138
+ /** Optional parameters. */
139
+ export declare interface AzureADAdministratorsListByServerOptionalParams extends coreClient.OperationOptions {
140
+ }
141
+
142
+ /** Contains response data for the listByServer operation. */
143
+ export declare type AzureADAdministratorsListByServerResponse = AdministratorListResult;
6
144
 
7
145
  /** Storage Profile properties of a server */
8
146
  export declare interface Backup {
@@ -17,6 +155,101 @@ export declare interface Backup {
17
155
  readonly earliestRestoreDate?: Date;
18
156
  }
19
157
 
158
+ /** Interface representing a BackupAndExport. */
159
+ export declare interface BackupAndExport {
160
+ /**
161
+ * Exports the backup of the given server by creating a backup if not existing.
162
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
163
+ * @param serverName The name of the server.
164
+ * @param parameters The required parameters for creating and exporting backup of the given server.
165
+ * @param options The options parameters.
166
+ */
167
+ beginCreate(resourceGroupName: string, serverName: string, parameters: BackupAndExportRequest, options?: BackupAndExportCreateOptionalParams): Promise<SimplePollerLike<OperationState<BackupAndExportCreateResponse>, BackupAndExportCreateResponse>>;
168
+ /**
169
+ * Exports the backup of the given server by creating a backup if not existing.
170
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
171
+ * @param serverName The name of the server.
172
+ * @param parameters The required parameters for creating and exporting backup of the given server.
173
+ * @param options The options parameters.
174
+ */
175
+ beginCreateAndWait(resourceGroupName: string, serverName: string, parameters: BackupAndExportRequest, options?: BackupAndExportCreateOptionalParams): Promise<BackupAndExportCreateResponse>;
176
+ /**
177
+ * Validates if backup can be performed for given server.
178
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
179
+ * @param serverName The name of the server.
180
+ * @param options The options parameters.
181
+ */
182
+ validateBackup(resourceGroupName: string, serverName: string, options?: BackupAndExportValidateBackupOptionalParams): Promise<BackupAndExportValidateBackupResponse>;
183
+ }
184
+
185
+ /** Defines headers for BackupAndExport_create operation. */
186
+ export declare interface BackupAndExportCreateHeaders {
187
+ /** URL to retrieve the final result after operation completes. */
188
+ location?: string;
189
+ /** URL to query for status of the operation. */
190
+ azureAsyncOperation?: string;
191
+ }
192
+
193
+ /** Optional parameters. */
194
+ export declare interface BackupAndExportCreateOptionalParams extends coreClient.OperationOptions {
195
+ /** Delay to wait until next poll, in milliseconds. */
196
+ updateIntervalInMs?: number;
197
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
198
+ resumeFrom?: string;
199
+ }
200
+
201
+ /** Contains response data for the create operation. */
202
+ export declare type BackupAndExportCreateResponse = BackupAndExportResponse;
203
+
204
+ /** BackupAndExport API Request */
205
+ export declare interface BackupAndExportRequest extends BackupRequestBase {
206
+ /** Backup Target Store Details */
207
+ targetDetails: BackupStoreDetailsUnion;
208
+ }
209
+
210
+ /** Represents BackupAndExport API Response */
211
+ export declare interface BackupAndExportResponse extends ProxyResource {
212
+ /** The operation status */
213
+ status?: OperationStatus;
214
+ /** Start time */
215
+ startTime?: Date;
216
+ /** End time */
217
+ endTime?: Date;
218
+ /** Operation progress (0-100). */
219
+ percentComplete?: number;
220
+ /** The BackupAndExport operation error response. */
221
+ error?: ErrorResponse;
222
+ /** Size of datasource in bytes */
223
+ datasourceSizeInBytes?: number;
224
+ /** Data transferred in bytes */
225
+ dataTransferredInBytes?: number;
226
+ /** Metadata related to backup to be stored for restoring resource in key-value pairs. */
227
+ backupMetadata?: string;
228
+ }
229
+
230
+ /** Optional parameters. */
231
+ export declare interface BackupAndExportValidateBackupOptionalParams extends coreClient.OperationOptions {
232
+ }
233
+
234
+ /** Contains response data for the validateBackup operation. */
235
+ export declare type BackupAndExportValidateBackupResponse = ValidateBackupResponse;
236
+
237
+ /**
238
+ * Defines values for BackupFormat. \
239
+ * {@link KnownBackupFormat} can be used interchangeably with BackupFormat,
240
+ * this enum contains the known values that the service supports.
241
+ * ### Known values supported by the service
242
+ * **None** \
243
+ * **CollatedFormat**
244
+ */
245
+ export declare type BackupFormat = string;
246
+
247
+ /** BackupRequestBase is the base for all backup request. */
248
+ export declare interface BackupRequestBase {
249
+ /** Backup Settings */
250
+ backupSettings: BackupSettings;
251
+ }
252
+
20
253
  /** Interface representing a Backups. */
21
254
  export declare interface Backups {
22
255
  /**
@@ -26,6 +259,14 @@ export declare interface Backups {
26
259
  * @param options The options parameters.
27
260
  */
28
261
  listByServer(resourceGroupName: string, serverName: string, options?: BackupsListByServerOptionalParams): PagedAsyncIterableIterator<ServerBackup>;
262
+ /**
263
+ * Create backup for a given server with specified backup name.
264
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
265
+ * @param serverName The name of the server.
266
+ * @param backupName The name of the backup.
267
+ * @param options The options parameters.
268
+ */
269
+ put(resourceGroupName: string, serverName: string, backupName: string, options?: BackupsPutOptionalParams): Promise<BackupsPutResponse>;
29
270
  /**
30
271
  * List all the backups for a given server.
31
272
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -36,6 +277,14 @@ export declare interface Backups {
36
277
  get(resourceGroupName: string, serverName: string, backupName: string, options?: BackupsGetOptionalParams): Promise<BackupsGetResponse>;
37
278
  }
38
279
 
280
+ /** Backup Settings */
281
+ export declare interface BackupSettings {
282
+ /** The name of the backup. */
283
+ backupName: string;
284
+ /** Backup Format for the current backup. (CollatedFormat is INTERNAL – DO NOT USE) */
285
+ backupFormat?: BackupFormat;
286
+ }
287
+
39
288
  /** Optional parameters. */
40
289
  export declare interface BackupsGetOptionalParams extends coreClient.OperationOptions {
41
290
  }
@@ -57,6 +306,21 @@ export declare interface BackupsListByServerOptionalParams extends coreClient.Op
57
306
  /** Contains response data for the listByServer operation. */
58
307
  export declare type BackupsListByServerResponse = ServerBackupListResult;
59
308
 
309
+ /** Optional parameters. */
310
+ export declare interface BackupsPutOptionalParams extends coreClient.OperationOptions {
311
+ }
312
+
313
+ /** Contains response data for the put operation. */
314
+ export declare type BackupsPutResponse = ServerBackup;
315
+
316
+ /** Details about the target where the backup content will be stored. */
317
+ export declare interface BackupStoreDetails {
318
+ /** Polymorphic discriminator, which specifies the different types this object can be */
319
+ objectType: "FullBackupStoreDetails";
320
+ }
321
+
322
+ export declare type BackupStoreDetailsUnion = BackupStoreDetails | FullBackupStoreDetails;
323
+
60
324
  /** location capability */
61
325
  export declare interface CapabilitiesListResult {
62
326
  /**
@@ -113,6 +377,23 @@ export declare interface CheckNameAvailabilityExecuteOptionalParams extends core
113
377
  /** Contains response data for the execute operation. */
114
378
  export declare type CheckNameAvailabilityExecuteResponse = NameAvailability;
115
379
 
380
+ /** Interface representing a CheckNameAvailabilityWithoutLocation. */
381
+ export declare interface CheckNameAvailabilityWithoutLocation {
382
+ /**
383
+ * Check the availability of name for server
384
+ * @param nameAvailabilityRequest The required parameters for checking if server name is available.
385
+ * @param options The options parameters.
386
+ */
387
+ execute(nameAvailabilityRequest: NameAvailabilityRequest, options?: CheckNameAvailabilityWithoutLocationExecuteOptionalParams): Promise<CheckNameAvailabilityWithoutLocationExecuteResponse>;
388
+ }
389
+
390
+ /** Optional parameters. */
391
+ export declare interface CheckNameAvailabilityWithoutLocationExecuteOptionalParams extends coreClient.OperationOptions {
392
+ }
393
+
394
+ /** Contains response data for the execute operation. */
395
+ export declare type CheckNameAvailabilityWithoutLocationExecuteResponse = NameAvailability;
396
+
116
397
  /** Interface representing a CheckVirtualNetworkSubnetUsage. */
117
398
  export declare interface CheckVirtualNetworkSubnetUsage {
118
399
  /**
@@ -146,11 +427,18 @@ export declare interface Configuration extends ProxyResource {
146
427
  readonly systemData?: SystemData;
147
428
  /** Value of the configuration. */
148
429
  value?: string;
430
+ /** Current value of the configuration. */
431
+ currentValue?: string;
149
432
  /**
150
433
  * Description of the configuration.
151
434
  * NOTE: This property will not be serialized. It can only be populated by the server.
152
435
  */
153
436
  readonly description?: string;
437
+ /**
438
+ * The link used to get the document from community or Azure site.
439
+ * NOTE: This property will not be serialized. It can only be populated by the server.
440
+ */
441
+ readonly documentationLink?: string;
154
442
  /**
155
443
  * Default value of the configuration.
156
444
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -199,6 +487,8 @@ export declare interface ConfigurationForBatchUpdate {
199
487
  export declare interface ConfigurationListForBatchUpdate {
200
488
  /** The list of server configurations. */
201
489
  value?: ConfigurationForBatchUpdate[];
490
+ /** Whether to reset all server parameters to default. */
491
+ resetAllToDefault?: ResetAllToDefault;
202
492
  }
203
493
 
204
494
  /** A list of server configurations. */
@@ -226,7 +516,25 @@ export declare interface Configurations {
226
516
  * @param parameters The required parameters for updating a server configuration.
227
517
  * @param options The options parameters.
228
518
  */
229
- beginUpdate(resourceGroupName: string, serverName: string, configurationName: string, parameters: Configuration, options?: ConfigurationsUpdateOptionalParams): Promise<PollerLike<PollOperationState<ConfigurationsUpdateResponse>, ConfigurationsUpdateResponse>>;
519
+ beginCreateOrUpdate(resourceGroupName: string, serverName: string, configurationName: string, parameters: Configuration, options?: ConfigurationsCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<ConfigurationsCreateOrUpdateResponse>, ConfigurationsCreateOrUpdateResponse>>;
520
+ /**
521
+ * Updates a configuration of a server.
522
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
523
+ * @param serverName The name of the server.
524
+ * @param configurationName The name of the server configuration.
525
+ * @param parameters The required parameters for updating a server configuration.
526
+ * @param options The options parameters.
527
+ */
528
+ beginCreateOrUpdateAndWait(resourceGroupName: string, serverName: string, configurationName: string, parameters: Configuration, options?: ConfigurationsCreateOrUpdateOptionalParams): Promise<ConfigurationsCreateOrUpdateResponse>;
529
+ /**
530
+ * Updates a configuration of a server.
531
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
532
+ * @param serverName The name of the server.
533
+ * @param configurationName The name of the server configuration.
534
+ * @param parameters The required parameters for updating a server configuration.
535
+ * @param options The options parameters.
536
+ */
537
+ beginUpdate(resourceGroupName: string, serverName: string, configurationName: string, parameters: Configuration, options?: ConfigurationsUpdateOptionalParams): Promise<SimplePollerLike<OperationState<ConfigurationsUpdateResponse>, ConfigurationsUpdateResponse>>;
230
538
  /**
231
539
  * Updates a configuration of a server.
232
540
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -251,7 +559,7 @@ export declare interface Configurations {
251
559
  * @param parameters The parameters for updating a list of server configuration.
252
560
  * @param options The options parameters.
253
561
  */
254
- beginBatchUpdate(resourceGroupName: string, serverName: string, parameters: ConfigurationListForBatchUpdate, options?: ConfigurationsBatchUpdateOptionalParams): Promise<PollerLike<PollOperationState<ConfigurationsBatchUpdateResponse>, ConfigurationsBatchUpdateResponse>>;
562
+ beginBatchUpdate(resourceGroupName: string, serverName: string, parameters: ConfigurationListForBatchUpdate, options?: ConfigurationsBatchUpdateOptionalParams): Promise<SimplePollerLike<OperationState<ConfigurationsBatchUpdateResponse>, ConfigurationsBatchUpdateResponse>>;
255
563
  /**
256
564
  * Update a list of configurations in a given server.
257
565
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -273,6 +581,22 @@ export declare interface ConfigurationsBatchUpdateOptionalParams extends coreCli
273
581
  /** Contains response data for the batchUpdate operation. */
274
582
  export declare type ConfigurationsBatchUpdateResponse = ConfigurationListResult;
275
583
 
584
+ /** Defines headers for Configurations_createOrUpdate operation. */
585
+ export declare interface ConfigurationsCreateOrUpdateHeaders {
586
+ location?: string;
587
+ }
588
+
589
+ /** Optional parameters. */
590
+ export declare interface ConfigurationsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
591
+ /** Delay to wait until next poll, in milliseconds. */
592
+ updateIntervalInMs?: number;
593
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
594
+ resumeFrom?: string;
595
+ }
596
+
597
+ /** Contains response data for the createOrUpdate operation. */
598
+ export declare type ConfigurationsCreateOrUpdateResponse = Configuration;
599
+
276
600
  /** Optional parameters. */
277
601
  export declare interface ConfigurationsGetOptionalParams extends coreClient.OperationOptions {
278
602
  }
@@ -289,6 +613,14 @@ export declare type ConfigurationsListByServerNextResponse = ConfigurationListRe
289
613
 
290
614
  /** Optional parameters. */
291
615
  export declare interface ConfigurationsListByServerOptionalParams extends coreClient.OperationOptions {
616
+ /** The tags of the server configuration. */
617
+ tags?: string;
618
+ /** The keyword of the server configuration. */
619
+ keyword?: string;
620
+ /** The page of the server configuration. */
621
+ page?: number;
622
+ /** The pageSize of the server configuration. */
623
+ pageSize?: number;
292
624
  }
293
625
 
294
626
  /** Contains response data for the listByServer operation. */
@@ -377,7 +709,7 @@ export declare interface Databases {
377
709
  * @param parameters The required parameters for creating or updating a database.
378
710
  * @param options The options parameters.
379
711
  */
380
- beginCreateOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Database, options?: DatabasesCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<DatabasesCreateOrUpdateResponse>, DatabasesCreateOrUpdateResponse>>;
712
+ beginCreateOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Database, options?: DatabasesCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<DatabasesCreateOrUpdateResponse>, DatabasesCreateOrUpdateResponse>>;
381
713
  /**
382
714
  * Creates a new database or updates an existing database.
383
715
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -394,7 +726,7 @@ export declare interface Databases {
394
726
  * @param databaseName The name of the database.
395
727
  * @param options The options parameters.
396
728
  */
397
- beginDelete(resourceGroupName: string, serverName: string, databaseName: string, options?: DatabasesDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
729
+ beginDelete(resourceGroupName: string, serverName: string, databaseName: string, options?: DatabasesDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
398
730
  /**
399
731
  * Deletes a database.
400
732
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -453,6 +785,23 @@ export declare interface DatabasesListByServerOptionalParams extends coreClient.
453
785
  /** Contains response data for the listByServer operation. */
454
786
  export declare type DatabasesListByServerResponse = DatabaseListResult;
455
787
 
788
+ /** The date encryption for cmk. */
789
+ export declare interface DataEncryption {
790
+ /** Primary user identity resource id */
791
+ primaryUserAssignedIdentityId?: string;
792
+ /** Primary key uri */
793
+ primaryKeyURI?: string;
794
+ /** Geo backup user identity resource id as identity can't cross region, need identity in same region as geo backup */
795
+ geoBackupUserAssignedIdentityId?: string;
796
+ /** Geo backup key uri as key vault can't cross region, need cmk in same region as geo backup */
797
+ geoBackupKeyURI?: string;
798
+ /** The key type, AzureKeyVault for enable cmk, SystemManaged for disable cmk. */
799
+ type?: DataEncryptionType;
800
+ }
801
+
802
+ /** Defines values for DataEncryptionType. */
803
+ export declare type DataEncryptionType = "AzureKeyVault" | "SystemManaged";
804
+
456
805
  /** Delegated subnet usage data. */
457
806
  export declare interface DelegatedSubnetUsage {
458
807
  /**
@@ -558,7 +907,7 @@ export declare interface FirewallRules {
558
907
  * @param parameters The required parameters for creating or updating a firewall rule.
559
908
  * @param options The options parameters.
560
909
  */
561
- beginCreateOrUpdate(resourceGroupName: string, serverName: string, firewallRuleName: string, parameters: FirewallRule, options?: FirewallRulesCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<FirewallRulesCreateOrUpdateResponse>, FirewallRulesCreateOrUpdateResponse>>;
910
+ beginCreateOrUpdate(resourceGroupName: string, serverName: string, firewallRuleName: string, parameters: FirewallRule, options?: FirewallRulesCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<FirewallRulesCreateOrUpdateResponse>, FirewallRulesCreateOrUpdateResponse>>;
562
911
  /**
563
912
  * Creates a new firewall rule or updates an existing firewall rule.
564
913
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -575,7 +924,7 @@ export declare interface FirewallRules {
575
924
  * @param firewallRuleName The name of the server firewall rule.
576
925
  * @param options The options parameters.
577
926
  */
578
- beginDelete(resourceGroupName: string, serverName: string, firewallRuleName: string, options?: FirewallRulesDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
927
+ beginDelete(resourceGroupName: string, serverName: string, firewallRuleName: string, options?: FirewallRulesDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
579
928
  /**
580
929
  * Deletes a firewall rule.
581
930
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -634,6 +983,14 @@ export declare interface FirewallRulesListByServerOptionalParams extends coreCli
634
983
  /** Contains response data for the listByServer operation. */
635
984
  export declare type FirewallRulesListByServerResponse = FirewallRuleListResult;
636
985
 
986
+ /** FullBackupStoreDetails is used for scenarios where backup data is streamed/copied over to a storage destination. */
987
+ export declare interface FullBackupStoreDetails extends BackupStoreDetails {
988
+ /** Polymorphic discriminator, which specifies the different types this object can be */
989
+ objectType: "FullBackupStoreDetails";
990
+ /** SASUriList of storage containers where backup data is to be streamed/copied. */
991
+ sasUriList: string[];
992
+ }
993
+
637
994
  /**
638
995
  * Given the last `.value` produced by the `byPage` iterator,
639
996
  * returns a continuation token that can be used to begin paging from
@@ -702,6 +1059,26 @@ export declare type HighAvailabilityMode = string;
702
1059
  */
703
1060
  export declare type HighAvailabilityState = string;
704
1061
 
1062
+ /** Properties to configure Identity for Bring your Own Keys */
1063
+ export declare interface Identity {
1064
+ /**
1065
+ * ObjectId from the KeyVault
1066
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1067
+ */
1068
+ readonly principalId?: string;
1069
+ /**
1070
+ * TenantId from the KeyVault
1071
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1072
+ */
1073
+ readonly tenantId?: string;
1074
+ /** Type of managed service identity. */
1075
+ type?: ManagedServiceIdentityType;
1076
+ /** Metadata of user assigned identity. */
1077
+ userAssignedIdentities?: {
1078
+ [propertyName: string]: Record<string, unknown>;
1079
+ };
1080
+ }
1081
+
705
1082
  /**
706
1083
  * Defines values for IsConfigPendingRestart. \
707
1084
  * {@link KnownIsConfigPendingRestart} can be used interchangeably with IsConfigPendingRestart,
@@ -732,6 +1109,26 @@ export declare type IsDynamicConfig = string;
732
1109
  */
733
1110
  export declare type IsReadOnly = string;
734
1111
 
1112
+ /** Known values of {@link AdministratorName} that the service accepts. */
1113
+ export declare enum KnownAdministratorName {
1114
+ /** ActiveDirectory */
1115
+ ActiveDirectory = "ActiveDirectory"
1116
+ }
1117
+
1118
+ /** Known values of {@link AdministratorType} that the service accepts. */
1119
+ export declare enum KnownAdministratorType {
1120
+ /** ActiveDirectory */
1121
+ ActiveDirectory = "ActiveDirectory"
1122
+ }
1123
+
1124
+ /** Known values of {@link BackupFormat} that the service accepts. */
1125
+ export declare enum KnownBackupFormat {
1126
+ /** None */
1127
+ None = "None",
1128
+ /** CollatedFormat */
1129
+ CollatedFormat = "CollatedFormat"
1130
+ }
1131
+
735
1132
  /** Known values of {@link ConfigurationSource} that the service accepts. */
736
1133
  export declare enum KnownConfigurationSource {
737
1134
  /** SystemDefault */
@@ -820,6 +1217,12 @@ export declare enum KnownIsReadOnly {
820
1217
  False = "False"
821
1218
  }
822
1219
 
1220
+ /** Known values of {@link ManagedServiceIdentityType} that the service accepts. */
1221
+ export declare enum KnownManagedServiceIdentityType {
1222
+ /** UserAssigned */
1223
+ UserAssigned = "UserAssigned"
1224
+ }
1225
+
823
1226
  /** Known values of {@link ReplicationRole} that the service accepts. */
824
1227
  export declare enum KnownReplicationRole {
825
1228
  /** None */
@@ -830,6 +1233,14 @@ export declare enum KnownReplicationRole {
830
1233
  Replica = "Replica"
831
1234
  }
832
1235
 
1236
+ /** Known values of {@link ResetAllToDefault} that the service accepts. */
1237
+ export declare enum KnownResetAllToDefault {
1238
+ /** True */
1239
+ True = "True",
1240
+ /** False */
1241
+ False = "False"
1242
+ }
1243
+
833
1244
  /** Known values of {@link ServerState} that the service accepts. */
834
1245
  export declare enum KnownServerState {
835
1246
  /** Ready */
@@ -890,6 +1301,58 @@ export declare interface LocationBasedCapabilitiesListOptionalParams extends cor
890
1301
  /** Contains response data for the list operation. */
891
1302
  export declare type LocationBasedCapabilitiesListResponse = CapabilitiesListResult;
892
1303
 
1304
+ /** Represents a logFile. */
1305
+ export declare interface LogFile extends ProxyResource {
1306
+ /**
1307
+ * The system metadata relating to this resource.
1308
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1309
+ */
1310
+ readonly systemData?: SystemData;
1311
+ /** The size in kb of the logFile. */
1312
+ sizeInKB?: number;
1313
+ /** Creation timestamp of the log file. */
1314
+ createdTime?: Date;
1315
+ /** Type of the log file. */
1316
+ typePropertiesType?: string;
1317
+ /** Last modified timestamp of the log file. */
1318
+ lastModifiedTime?: Date;
1319
+ /** The url to download the log file from. */
1320
+ url?: string;
1321
+ }
1322
+
1323
+ /** A List of logFiles. */
1324
+ export declare interface LogFileListResult {
1325
+ /** The list of logFiles in a server */
1326
+ value?: LogFile[];
1327
+ /** The link used to get the next page of operations. */
1328
+ nextLink?: string;
1329
+ }
1330
+
1331
+ /** Interface representing a LogFiles. */
1332
+ export declare interface LogFiles {
1333
+ /**
1334
+ * List all the server log files in a given server.
1335
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1336
+ * @param serverName The name of the server.
1337
+ * @param options The options parameters.
1338
+ */
1339
+ listByServer(resourceGroupName: string, serverName: string, options?: LogFilesListByServerOptionalParams): PagedAsyncIterableIterator<LogFile>;
1340
+ }
1341
+
1342
+ /** Optional parameters. */
1343
+ export declare interface LogFilesListByServerNextOptionalParams extends coreClient.OperationOptions {
1344
+ }
1345
+
1346
+ /** Contains response data for the listByServerNext operation. */
1347
+ export declare type LogFilesListByServerNextResponse = LogFileListResult;
1348
+
1349
+ /** Optional parameters. */
1350
+ export declare interface LogFilesListByServerOptionalParams extends coreClient.OperationOptions {
1351
+ }
1352
+
1353
+ /** Contains response data for the listByServer operation. */
1354
+ export declare type LogFilesListByServerResponse = LogFileListResult;
1355
+
893
1356
  /** Maintenance window of a server. */
894
1357
  export declare interface MaintenanceWindow {
895
1358
  /** indicates whether custom window is enabled or disabled */
@@ -902,9 +1365,17 @@ export declare interface MaintenanceWindow {
902
1365
  dayOfWeek?: number;
903
1366
  }
904
1367
 
1368
+ /**
1369
+ * Defines values for ManagedServiceIdentityType. \
1370
+ * {@link KnownManagedServiceIdentityType} can be used interchangeably with ManagedServiceIdentityType,
1371
+ * this enum contains the known values that the service supports.
1372
+ * ### Known values supported by the service
1373
+ * **UserAssigned**
1374
+ */
1375
+ export declare type ManagedServiceIdentityType = string;
1376
+
905
1377
  export declare class MySQLManagementFlexibleServerClient extends coreClient.ServiceClient {
906
1378
  $host: string;
907
- apiVersion: string;
908
1379
  subscriptionId: string;
909
1380
  /**
910
1381
  * Initializes a new instance of the MySQLManagementFlexibleServerClient class.
@@ -913,17 +1384,19 @@ export declare class MySQLManagementFlexibleServerClient extends coreClient.Serv
913
1384
  * @param options The parameter options
914
1385
  */
915
1386
  constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: MySQLManagementFlexibleServerClientOptionalParams);
916
- /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
917
- private addCustomApiVersionPolicy;
918
- servers: Servers;
919
- replicas: Replicas;
1387
+ azureADAdministrators: AzureADAdministrators;
920
1388
  backups: Backups;
921
- firewallRules: FirewallRules;
922
- databases: Databases;
1389
+ backupAndExport: BackupAndExport;
923
1390
  configurations: Configurations;
1391
+ databases: Databases;
1392
+ firewallRules: FirewallRules;
1393
+ servers: Servers;
1394
+ replicas: Replicas;
1395
+ logFiles: LogFiles;
924
1396
  locationBasedCapabilities: LocationBasedCapabilities;
925
1397
  checkVirtualNetworkSubnetUsage: CheckVirtualNetworkSubnetUsage;
926
1398
  checkNameAvailability: CheckNameAvailability;
1399
+ checkNameAvailabilityWithoutLocation: CheckNameAvailabilityWithoutLocation;
927
1400
  getPrivateDnsZoneSuffix: GetPrivateDnsZoneSuffix;
928
1401
  operations: Operations;
929
1402
  }
@@ -932,8 +1405,6 @@ export declare class MySQLManagementFlexibleServerClient extends coreClient.Serv
932
1405
  export declare interface MySQLManagementFlexibleServerClientOptionalParams extends coreClient.ServiceClientOptions {
933
1406
  /** server parameter */
934
1407
  $host?: string;
935
- /** Api Version */
936
- apiVersion?: string;
937
1408
  /** Overrides client endpoint. */
938
1409
  endpoint?: string;
939
1410
  }
@@ -958,11 +1429,8 @@ export declare interface NameAvailabilityRequest {
958
1429
 
959
1430
  /** Network related properties of a server */
960
1431
  export declare interface Network {
961
- /**
962
- * Whether or not public network access is allowed for this server. Value is 'Disabled' when server has VNet integration.
963
- * NOTE: This property will not be serialized. It can only be populated by the server.
964
- */
965
- readonly publicNetworkAccess?: EnableStatusEnum;
1432
+ /** Whether or not public network access is allowed for this server. Value is 'Disabled' when server has VNet integration. */
1433
+ publicNetworkAccess?: EnableStatusEnum;
966
1434
  /** Delegated subnet resource id used to setup vnet for a server. */
967
1435
  delegatedSubnetResourceId?: string;
968
1436
  /** Private DNS zone resource id. */
@@ -1026,6 +1494,9 @@ export declare interface OperationsListOptionalParams extends coreClient.Operati
1026
1494
  /** Contains response data for the list operation. */
1027
1495
  export declare type OperationsListResponse = OperationListResult;
1028
1496
 
1497
+ /** Defines values for OperationStatus. */
1498
+ export declare type OperationStatus = "Pending" | "InProgress" | "Succeeded" | "Failed" | "CancelInProgress" | "Canceled";
1499
+
1029
1500
  /** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */
1030
1501
  export declare interface ProxyResource extends Resource {
1031
1502
  }
@@ -1066,6 +1537,16 @@ export declare type ReplicasListByServerResponse = ServerListResult;
1066
1537
  */
1067
1538
  export declare type ReplicationRole = string;
1068
1539
 
1540
+ /**
1541
+ * Defines values for ResetAllToDefault. \
1542
+ * {@link KnownResetAllToDefault} can be used interchangeably with ResetAllToDefault,
1543
+ * this enum contains the known values that the service supports.
1544
+ * ### Known values supported by the service
1545
+ * **True** \
1546
+ * **False**
1547
+ */
1548
+ export declare type ResetAllToDefault = string;
1549
+
1069
1550
  /** Common fields that are returned in the response for all Azure Resource Manager resources */
1070
1551
  export declare interface Resource {
1071
1552
  /**
@@ -1087,6 +1568,8 @@ export declare interface Resource {
1087
1568
 
1088
1569
  /** Represents a server. */
1089
1570
  export declare interface Server extends TrackedResource {
1571
+ /** The cmk identity for the server. */
1572
+ identity?: Identity;
1090
1573
  /** The SKU (pricing tier) of the server. */
1091
1574
  sku?: Sku;
1092
1575
  /**
@@ -1118,6 +1601,8 @@ export declare interface Server extends TrackedResource {
1118
1601
  * NOTE: This property will not be serialized. It can only be populated by the server.
1119
1602
  */
1120
1603
  readonly replicaCapacity?: number;
1604
+ /** The Data Encryption for CMK. */
1605
+ dataEncryption?: DataEncryption;
1121
1606
  /**
1122
1607
  * The state of a server.
1123
1608
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -1184,6 +1669,8 @@ export declare interface ServerEditionCapability {
1184
1669
 
1185
1670
  /** Parameters allowed to update for a server. */
1186
1671
  export declare interface ServerForUpdate {
1672
+ /** The cmk identity for the server. */
1673
+ identity?: Identity;
1187
1674
  /** The SKU (pricing tier) of the server. */
1188
1675
  sku?: Sku;
1189
1676
  /** Application-specific metadata in the form of key-value pairs. */
@@ -1195,6 +1682,8 @@ export declare interface ServerForUpdate {
1195
1682
  * This value contains a credential. Consider obscuring before showing to users
1196
1683
  */
1197
1684
  administratorLoginPassword?: string;
1685
+ /** Server version. */
1686
+ version?: ServerVersion;
1198
1687
  /** Storage related properties of a server. */
1199
1688
  storage?: Storage_2;
1200
1689
  /** Backup related properties of a server. */
@@ -1205,6 +1694,14 @@ export declare interface ServerForUpdate {
1205
1694
  maintenanceWindow?: MaintenanceWindow;
1206
1695
  /** The replication role of the server. */
1207
1696
  replicationRole?: ReplicationRole;
1697
+ /** The Data Encryption for CMK. */
1698
+ dataEncryption?: DataEncryption;
1699
+ }
1700
+
1701
+ /** Server gtid set parameters. */
1702
+ export declare interface ServerGtidSetParameter {
1703
+ /** The gtid set of server. */
1704
+ gtidSet?: string;
1208
1705
  }
1209
1706
 
1210
1707
  /** A list of servers. */
@@ -1244,7 +1741,7 @@ export declare interface Servers {
1244
1741
  * @param parameters The required parameters for creating or updating a server.
1245
1742
  * @param options The options parameters.
1246
1743
  */
1247
- beginCreate(resourceGroupName: string, serverName: string, parameters: Server, options?: ServersCreateOptionalParams): Promise<PollerLike<PollOperationState<ServersCreateResponse>, ServersCreateResponse>>;
1744
+ beginCreate(resourceGroupName: string, serverName: string, parameters: Server, options?: ServersCreateOptionalParams): Promise<SimplePollerLike<OperationState<ServersCreateResponse>, ServersCreateResponse>>;
1248
1745
  /**
1249
1746
  * Creates a new server or updates an existing server. The update action will overwrite the existing
1250
1747
  * server.
@@ -1262,7 +1759,7 @@ export declare interface Servers {
1262
1759
  * @param parameters The required parameters for updating a server.
1263
1760
  * @param options The options parameters.
1264
1761
  */
1265
- beginUpdate(resourceGroupName: string, serverName: string, parameters: ServerForUpdate, options?: ServersUpdateOptionalParams): Promise<PollerLike<PollOperationState<ServersUpdateResponse>, ServersUpdateResponse>>;
1762
+ beginUpdate(resourceGroupName: string, serverName: string, parameters: ServerForUpdate, options?: ServersUpdateOptionalParams): Promise<SimplePollerLike<OperationState<ServersUpdateResponse>, ServersUpdateResponse>>;
1266
1763
  /**
1267
1764
  * Updates an existing server. The request body can contain one to many of the properties present in
1268
1765
  * the normal server definition.
@@ -1278,7 +1775,7 @@ export declare interface Servers {
1278
1775
  * @param serverName The name of the server.
1279
1776
  * @param options The options parameters.
1280
1777
  */
1281
- beginDelete(resourceGroupName: string, serverName: string, options?: ServersDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
1778
+ beginDelete(resourceGroupName: string, serverName: string, options?: ServersDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
1282
1779
  /**
1283
1780
  * Deletes a server.
1284
1781
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -1299,7 +1796,7 @@ export declare interface Servers {
1299
1796
  * @param serverName The name of the server.
1300
1797
  * @param options The options parameters.
1301
1798
  */
1302
- beginFailover(resourceGroupName: string, serverName: string, options?: ServersFailoverOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
1799
+ beginFailover(resourceGroupName: string, serverName: string, options?: ServersFailoverOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
1303
1800
  /**
1304
1801
  * Manual failover a server.
1305
1802
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -1314,7 +1811,7 @@ export declare interface Servers {
1314
1811
  * @param parameters The required parameters for restarting a server.
1315
1812
  * @param options The options parameters.
1316
1813
  */
1317
- beginRestart(resourceGroupName: string, serverName: string, parameters: ServerRestartParameter, options?: ServersRestartOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
1814
+ beginRestart(resourceGroupName: string, serverName: string, parameters: ServerRestartParameter, options?: ServersRestartOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
1318
1815
  /**
1319
1816
  * Restarts a server.
1320
1817
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -1329,7 +1826,7 @@ export declare interface Servers {
1329
1826
  * @param serverName The name of the server.
1330
1827
  * @param options The options parameters.
1331
1828
  */
1332
- beginStart(resourceGroupName: string, serverName: string, options?: ServersStartOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
1829
+ beginStart(resourceGroupName: string, serverName: string, options?: ServersStartOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
1333
1830
  /**
1334
1831
  * Starts a server.
1335
1832
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -1343,7 +1840,7 @@ export declare interface Servers {
1343
1840
  * @param serverName The name of the server.
1344
1841
  * @param options The options parameters.
1345
1842
  */
1346
- beginStop(resourceGroupName: string, serverName: string, options?: ServersStopOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
1843
+ beginStop(resourceGroupName: string, serverName: string, options?: ServersStopOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
1347
1844
  /**
1348
1845
  * Stops a server.
1349
1846
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -1351,6 +1848,27 @@ export declare interface Servers {
1351
1848
  * @param options The options parameters.
1352
1849
  */
1353
1850
  beginStopAndWait(resourceGroupName: string, serverName: string, options?: ServersStopOptionalParams): Promise<void>;
1851
+ /**
1852
+ * Resets GTID on a server.
1853
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1854
+ * @param serverName The name of the server.
1855
+ * @param parameters The required parameters for resetting GTID on a server.
1856
+ * @param options The options parameters.
1857
+ */
1858
+ beginResetGtid(resourceGroupName: string, serverName: string, parameters: ServerGtidSetParameter, options?: ServersResetGtidOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
1859
+ /**
1860
+ * Resets GTID on a server.
1861
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1862
+ * @param serverName The name of the server.
1863
+ * @param parameters The required parameters for resetting GTID on a server.
1864
+ * @param options The options parameters.
1865
+ */
1866
+ beginResetGtidAndWait(resourceGroupName: string, serverName: string, parameters: ServerGtidSetParameter, options?: ServersResetGtidOptionalParams): Promise<void>;
1867
+ }
1868
+
1869
+ /** Defines headers for Servers_create operation. */
1870
+ export declare interface ServersCreateHeaders {
1871
+ location?: string;
1354
1872
  }
1355
1873
 
1356
1874
  /** Optional parameters. */
@@ -1364,6 +1882,11 @@ export declare interface ServersCreateOptionalParams extends coreClient.Operatio
1364
1882
  /** Contains response data for the create operation. */
1365
1883
  export declare type ServersCreateResponse = Server;
1366
1884
 
1885
+ /** Defines headers for Servers_delete operation. */
1886
+ export declare interface ServersDeleteHeaders {
1887
+ location?: string;
1888
+ }
1889
+
1367
1890
  /** Optional parameters. */
1368
1891
  export declare interface ServersDeleteOptionalParams extends coreClient.OperationOptions {
1369
1892
  /** Delay to wait until next poll, in milliseconds. */
@@ -1372,6 +1895,11 @@ export declare interface ServersDeleteOptionalParams extends coreClient.Operatio
1372
1895
  resumeFrom?: string;
1373
1896
  }
1374
1897
 
1898
+ /** Defines headers for Servers_failover operation. */
1899
+ export declare interface ServersFailoverHeaders {
1900
+ location?: string;
1901
+ }
1902
+
1375
1903
  /** Optional parameters. */
1376
1904
  export declare interface ServersFailoverOptionalParams extends coreClient.OperationOptions {
1377
1905
  /** Delay to wait until next poll, in milliseconds. */
@@ -1415,6 +1943,24 @@ export declare interface ServersListOptionalParams extends coreClient.OperationO
1415
1943
  /** Contains response data for the list operation. */
1416
1944
  export declare type ServersListResponse = ServerListResult;
1417
1945
 
1946
+ /** Defines headers for Servers_resetGtid operation. */
1947
+ export declare interface ServersResetGtidHeaders {
1948
+ location?: string;
1949
+ }
1950
+
1951
+ /** Optional parameters. */
1952
+ export declare interface ServersResetGtidOptionalParams extends coreClient.OperationOptions {
1953
+ /** Delay to wait until next poll, in milliseconds. */
1954
+ updateIntervalInMs?: number;
1955
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
1956
+ resumeFrom?: string;
1957
+ }
1958
+
1959
+ /** Defines headers for Servers_restart operation. */
1960
+ export declare interface ServersRestartHeaders {
1961
+ location?: string;
1962
+ }
1963
+
1418
1964
  /** Optional parameters. */
1419
1965
  export declare interface ServersRestartOptionalParams extends coreClient.OperationOptions {
1420
1966
  /** Delay to wait until next poll, in milliseconds. */
@@ -1423,6 +1969,11 @@ export declare interface ServersRestartOptionalParams extends coreClient.Operati
1423
1969
  resumeFrom?: string;
1424
1970
  }
1425
1971
 
1972
+ /** Defines headers for Servers_start operation. */
1973
+ export declare interface ServersStartHeaders {
1974
+ location?: string;
1975
+ }
1976
+
1426
1977
  /** Optional parameters. */
1427
1978
  export declare interface ServersStartOptionalParams extends coreClient.OperationOptions {
1428
1979
  /** Delay to wait until next poll, in milliseconds. */
@@ -1431,6 +1982,11 @@ export declare interface ServersStartOptionalParams extends coreClient.Operation
1431
1982
  resumeFrom?: string;
1432
1983
  }
1433
1984
 
1985
+ /** Defines headers for Servers_stop operation. */
1986
+ export declare interface ServersStopHeaders {
1987
+ location?: string;
1988
+ }
1989
+
1434
1990
  /** Optional parameters. */
1435
1991
  export declare interface ServersStopOptionalParams extends coreClient.OperationOptions {
1436
1992
  /** Delay to wait until next poll, in milliseconds. */
@@ -1454,6 +2010,11 @@ export declare interface ServersStopOptionalParams extends coreClient.OperationO
1454
2010
  */
1455
2011
  export declare type ServerState = string;
1456
2012
 
2013
+ /** Defines headers for Servers_update operation. */
2014
+ export declare interface ServersUpdateHeaders {
2015
+ location?: string;
2016
+ }
2017
+
1457
2018
  /** Optional parameters. */
1458
2019
  export declare interface ServersUpdateOptionalParams extends coreClient.OperationOptions {
1459
2020
  /** Delay to wait until next poll, in milliseconds. */
@@ -1540,11 +2101,15 @@ declare interface Storage_2 {
1540
2101
  iops?: number;
1541
2102
  /** Enable Storage Auto Grow or not. */
1542
2103
  autoGrow?: EnableStatusEnum;
2104
+ /** Enable Log On Disk or not. */
2105
+ logOnDisk?: EnableStatusEnum;
1543
2106
  /**
1544
2107
  * The sku name of the server storage.
1545
2108
  * NOTE: This property will not be serialized. It can only be populated by the server.
1546
2109
  */
1547
2110
  readonly storageSku?: string;
2111
+ /** Enable IO Auto Scaling or not. */
2112
+ autoIoScaling?: EnableStatusEnum;
1548
2113
  }
1549
2114
  export { Storage_2 as Storage }
1550
2115
 
@@ -1603,6 +2168,26 @@ export declare interface TrackedResource extends Resource {
1603
2168
  location: string;
1604
2169
  }
1605
2170
 
2171
+ /** Metadata of user assigned identity. */
2172
+ export declare interface UserAssignedIdentity {
2173
+ /**
2174
+ * Principal Id of user assigned identity
2175
+ * NOTE: This property will not be serialized. It can only be populated by the server.
2176
+ */
2177
+ readonly principalId?: string;
2178
+ /**
2179
+ * Client Id of user assigned identity
2180
+ * NOTE: This property will not be serialized. It can only be populated by the server.
2181
+ */
2182
+ readonly clientId?: string;
2183
+ }
2184
+
2185
+ /** Represents ValidateBackup API Response */
2186
+ export declare interface ValidateBackupResponse {
2187
+ /** Estimated no of storage containers required for resource data to be backed up. */
2188
+ numberOfContainers?: number;
2189
+ }
2190
+
1606
2191
  /** Virtual network subnet usage parameter */
1607
2192
  export declare interface VirtualNetworkSubnetUsageParameter {
1608
2193
  /** Virtual network resource id. */
@@ -1611,6 +2196,16 @@ export declare interface VirtualNetworkSubnetUsageParameter {
1611
2196
 
1612
2197
  /** Virtual network subnet usage data. */
1613
2198
  export declare interface VirtualNetworkSubnetUsageResult {
2199
+ /**
2200
+ * The location name.
2201
+ * NOTE: This property will not be serialized. It can only be populated by the server.
2202
+ */
2203
+ readonly location?: string;
2204
+ /**
2205
+ * The subscription id.
2206
+ * NOTE: This property will not be serialized. It can only be populated by the server.
2207
+ */
2208
+ readonly subscriptionId?: string;
1614
2209
  /**
1615
2210
  * A list of delegated subnet usage
1616
2211
  * NOTE: This property will not be serialized. It can only be populated by the server.