@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.
- package/CHANGELOG.md +96 -8
- package/LICENSE +1 -1
- package/README.md +1 -1
- package/dist/index.js +3646 -1927
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/azureAdAdministratorsCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/azureAdAdministratorsCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/azureAdAdministratorsCreateOrUpdateSample.js +47 -0
- package/dist-esm/samples-dev/azureAdAdministratorsCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/azureAdAdministratorsDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/azureAdAdministratorsDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/azureAdAdministratorsDeleteSample.js +40 -0
- package/dist-esm/samples-dev/azureAdAdministratorsDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/azureAdAdministratorsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/azureAdAdministratorsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/azureAdAdministratorsGetSample.js +40 -0
- package/dist-esm/samples-dev/azureAdAdministratorsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/azureAdAdministratorsListByServerSample.d.ts +2 -0
- package/dist-esm/samples-dev/azureAdAdministratorsListByServerSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/azureAdAdministratorsListByServerSample.js +60 -0
- package/dist-esm/samples-dev/azureAdAdministratorsListByServerSample.js.map +1 -0
- package/dist-esm/samples-dev/backupAndExportCreateSample.d.ts +2 -0
- package/dist-esm/samples-dev/backupAndExportCreateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/backupAndExportCreateSample.js +46 -0
- package/dist-esm/samples-dev/backupAndExportCreateSample.js.map +1 -0
- package/dist-esm/samples-dev/backupAndExportValidateBackupSample.d.ts +2 -0
- package/dist-esm/samples-dev/backupAndExportValidateBackupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/backupAndExportValidateBackupSample.js +39 -0
- package/dist-esm/samples-dev/backupAndExportValidateBackupSample.js.map +1 -0
- package/dist-esm/samples-dev/backupsGetSample.js +1 -1
- package/dist-esm/samples-dev/backupsListByServerSample.js +1 -1
- package/dist-esm/samples-dev/backupsPutSample.d.ts +2 -0
- package/dist-esm/samples-dev/backupsPutSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/backupsPutSample.js +40 -0
- package/dist-esm/samples-dev/backupsPutSample.js.map +1 -0
- package/dist-esm/samples-dev/checkNameAvailabilityExecuteSample.js +1 -1
- package/dist-esm/samples-dev/checkNameAvailabilityWithoutLocationExecuteSample.d.ts +2 -0
- package/dist-esm/samples-dev/checkNameAvailabilityWithoutLocationExecuteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/checkNameAvailabilityWithoutLocationExecuteSample.js +41 -0
- package/dist-esm/samples-dev/checkNameAvailabilityWithoutLocationExecuteSample.js.map +1 -0
- package/dist-esm/samples-dev/checkVirtualNetworkSubnetUsageExecuteSample.js +1 -1
- package/dist-esm/samples-dev/configurationsBatchUpdateSample.js +2 -1
- package/dist-esm/samples-dev/configurationsBatchUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/configurationsCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/configurationsCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/configurationsCreateOrUpdateSample.js +41 -0
- package/dist-esm/samples-dev/configurationsCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/configurationsGetSample.js +1 -1
- package/dist-esm/samples-dev/configurationsListByServerSample.js +5 -2
- package/dist-esm/samples-dev/configurationsListByServerSample.js.map +1 -1
- package/dist-esm/samples-dev/configurationsUpdateSample.js +1 -1
- package/dist-esm/samples-dev/databasesCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/databasesDeleteSample.js +1 -1
- package/dist-esm/samples-dev/databasesGetSample.js +1 -1
- package/dist-esm/samples-dev/databasesListByServerSample.js +1 -1
- package/dist-esm/samples-dev/firewallRulesCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/firewallRulesDeleteSample.js +1 -1
- package/dist-esm/samples-dev/firewallRulesGetSample.js +1 -1
- package/dist-esm/samples-dev/firewallRulesListByServerSample.js +1 -1
- package/dist-esm/samples-dev/getPrivateDnsZoneSuffixExecuteSample.js +1 -1
- package/dist-esm/samples-dev/locationBasedCapabilitiesListSample.js +1 -1
- package/dist-esm/samples-dev/logFilesListByServerSample.d.ts +2 -0
- package/dist-esm/samples-dev/logFilesListByServerSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/logFilesListByServerSample.js +60 -0
- package/dist-esm/samples-dev/logFilesListByServerSample.js.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.js +1 -1
- package/dist-esm/samples-dev/replicasListByServerSample.js +1 -1
- package/dist-esm/samples-dev/serversCreateSample.js +48 -3
- package/dist-esm/samples-dev/serversCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/serversDeleteSample.js +1 -1
- package/dist-esm/samples-dev/serversFailoverSample.js +1 -1
- package/dist-esm/samples-dev/serversGetSample.js +2 -2
- package/dist-esm/samples-dev/serversListByResourceGroupSample.js +1 -1
- package/dist-esm/samples-dev/serversListSample.js +1 -1
- package/dist-esm/samples-dev/serversResetGtidSample.d.ts +2 -0
- package/dist-esm/samples-dev/serversResetGtidSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/serversResetGtidSample.js +42 -0
- package/dist-esm/samples-dev/serversResetGtidSample.js.map +1 -0
- package/dist-esm/samples-dev/serversRestartSample.js +1 -1
- package/dist-esm/samples-dev/serversStartSample.js +1 -1
- package/dist-esm/samples-dev/serversStopSample.js +1 -1
- package/dist-esm/samples-dev/serversUpdateSample.js +42 -3
- package/dist-esm/samples-dev/serversUpdateSample.js.map +1 -1
- package/dist-esm/src/lroImpl.d.ts +6 -11
- package/dist-esm/src/lroImpl.d.ts.map +1 -1
- package/dist-esm/src/lroImpl.js +12 -20
- package/dist-esm/src/lroImpl.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +767 -378
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +78 -44
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +44 -15
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +1232 -601
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +14 -5
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +96 -21
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/mySQLManagementFlexibleServerClient.d.ts +9 -8
- package/dist-esm/src/mySQLManagementFlexibleServerClient.d.ts.map +1 -1
- package/dist-esm/src/mySQLManagementFlexibleServerClient.js +10 -36
- package/dist-esm/src/mySQLManagementFlexibleServerClient.js.map +1 -1
- package/dist-esm/src/operations/azureADAdministrators.d.ts +81 -0
- package/dist-esm/src/operations/azureADAdministrators.d.ts.map +1 -0
- package/dist-esm/src/operations/azureADAdministrators.js +368 -0
- package/dist-esm/src/operations/azureADAdministrators.js.map +1 -0
- package/dist-esm/src/operations/backupAndExport.d.ts +37 -0
- package/dist-esm/src/operations/backupAndExport.d.ts.map +1 -0
- package/dist-esm/src/operations/backupAndExport.js +146 -0
- package/dist-esm/src/operations/backupAndExport.js.map +1 -0
- package/dist-esm/src/operations/backups.d.ts +9 -1
- package/dist-esm/src/operations/backups.d.ts.map +1 -1
- package/dist-esm/src/operations/backups.js +34 -2
- package/dist-esm/src/operations/backups.js.map +1 -1
- package/dist-esm/src/operations/checkNameAvailabilityWithoutLocation.d.ts +19 -0
- package/dist-esm/src/operations/checkNameAvailabilityWithoutLocation.d.ts.map +1 -0
- package/dist-esm/src/operations/checkNameAvailabilityWithoutLocation.js +49 -0
- package/dist-esm/src/operations/checkNameAvailabilityWithoutLocation.js.map +1 -0
- package/dist-esm/src/operations/checkVirtualNetworkSubnetUsage.js +1 -1
- package/dist-esm/src/operations/checkVirtualNetworkSubnetUsage.js.map +1 -1
- package/dist-esm/src/operations/configurations.d.ts +22 -4
- package/dist-esm/src/operations/configurations.d.ts.map +1 -1
- package/dist-esm/src/operations/configurations.js +132 -14
- package/dist-esm/src/operations/configurations.js.map +1 -1
- package/dist-esm/src/operations/databases.d.ts +3 -3
- package/dist-esm/src/operations/databases.d.ts.map +1 -1
- package/dist-esm/src/operations/databases.js +24 -10
- package/dist-esm/src/operations/databases.js.map +1 -1
- package/dist-esm/src/operations/firewallRules.d.ts +3 -3
- package/dist-esm/src/operations/firewallRules.d.ts.map +1 -1
- package/dist-esm/src/operations/firewallRules.js +25 -11
- package/dist-esm/src/operations/firewallRules.js.map +1 -1
- package/dist-esm/src/operations/index.d.ts +8 -4
- package/dist-esm/src/operations/index.d.ts.map +1 -1
- package/dist-esm/src/operations/index.js +8 -4
- package/dist-esm/src/operations/index.js.map +1 -1
- package/dist-esm/src/operations/logFiles.d.ts +38 -0
- package/dist-esm/src/operations/logFiles.d.ts.map +1 -0
- package/dist-esm/src/operations/logFiles.js +155 -0
- package/dist-esm/src/operations/logFiles.js.map +1 -0
- package/dist-esm/src/operations/replicas.js +1 -1
- package/dist-esm/src/operations/replicas.js.map +1 -1
- package/dist-esm/src/operations/servers.d.ts +25 -9
- package/dist-esm/src/operations/servers.d.ts.map +1 -1
- package/dist-esm/src/operations/servers.js +155 -44
- package/dist-esm/src/operations/servers.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/azureADAdministrators.d.ts +56 -0
- package/dist-esm/src/operationsInterfaces/azureADAdministrators.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/azureADAdministrators.js +9 -0
- package/dist-esm/src/operationsInterfaces/azureADAdministrators.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/backupAndExport.d.ts +29 -0
- package/dist-esm/src/operationsInterfaces/backupAndExport.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/backupAndExport.js +9 -0
- package/dist-esm/src/operationsInterfaces/backupAndExport.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/backups.d.ts +9 -1
- package/dist-esm/src/operationsInterfaces/backups.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/checkNameAvailabilityWithoutLocation.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/checkNameAvailabilityWithoutLocation.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/checkNameAvailabilityWithoutLocation.js +9 -0
- package/dist-esm/src/operationsInterfaces/checkNameAvailabilityWithoutLocation.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/configurations.d.ts +22 -4
- package/dist-esm/src/operationsInterfaces/configurations.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/databases.d.ts +3 -3
- package/dist-esm/src/operationsInterfaces/databases.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/firewallRules.d.ts +3 -3
- package/dist-esm/src/operationsInterfaces/firewallRules.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts +8 -4
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.js +8 -4
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/logFiles.d.ts +13 -0
- package/dist-esm/src/operationsInterfaces/logFiles.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/logFiles.js +9 -0
- package/dist-esm/src/operationsInterfaces/logFiles.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/servers.d.ts +25 -9
- package/dist-esm/src/operationsInterfaces/servers.d.ts.map +1 -1
- package/package.json +6 -6
- package/review/arm-mysql-flexible.api.md +383 -18
- package/src/lroImpl.ts +31 -23
- package/src/models/index.ts +842 -382
- package/src/models/mappers.ts +1315 -622
- package/src/models/parameters.ts +112 -25
- package/src/mySQLManagementFlexibleServerClient.ts +35 -53
- package/src/operations/azureADAdministrators.ts +504 -0
- package/src/operations/backupAndExport.ts +210 -0
- package/src/operations/backups.ts +46 -2
- package/src/operations/checkNameAvailabilityWithoutLocation.ts +69 -0
- package/src/operations/checkVirtualNetworkSubnetUsage.ts +1 -1
- package/src/operations/configurations.ts +190 -26
- package/src/operations/databases.ts +34 -21
- package/src/operations/firewallRules.ts +35 -22
- package/src/operations/index.ts +8 -4
- package/src/operations/logFiles.ts +198 -0
- package/src/operations/replicas.ts +1 -1
- package/src/operations/servers.ts +211 -79
- package/src/operationsInterfaces/azureADAdministrators.ts +110 -0
- package/src/operationsInterfaces/backupAndExport.ts +62 -0
- package/src/operationsInterfaces/backups.ts +15 -0
- package/src/operationsInterfaces/checkNameAvailabilityWithoutLocation.ts +26 -0
- package/src/operationsInterfaces/configurations.ts +42 -5
- package/src/operationsInterfaces/databases.ts +4 -4
- package/src/operationsInterfaces/firewallRules.ts +4 -4
- package/src/operationsInterfaces/index.ts +8 -4
- package/src/operationsInterfaces/logFiles.ts +26 -0
- package/src/operationsInterfaces/servers.ts +43 -9
- package/types/arm-mysql-flexible.d.ts +624 -29
package/src/models/parameters.ts
CHANGED
|
@@ -12,13 +12,16 @@ import {
|
|
|
12
12
|
OperationQueryParameter
|
|
13
13
|
} from "@azure/core-client";
|
|
14
14
|
import {
|
|
15
|
+
AzureADAdministrator as AzureADAdministratorMapper,
|
|
16
|
+
BackupAndExportRequest as BackupAndExportRequestMapper,
|
|
17
|
+
Configuration as ConfigurationMapper,
|
|
18
|
+
ConfigurationListForBatchUpdate as ConfigurationListForBatchUpdateMapper,
|
|
19
|
+
Database as DatabaseMapper,
|
|
20
|
+
FirewallRule as FirewallRuleMapper,
|
|
15
21
|
Server as ServerMapper,
|
|
16
22
|
ServerForUpdate as ServerForUpdateMapper,
|
|
17
23
|
ServerRestartParameter as ServerRestartParameterMapper,
|
|
18
|
-
|
|
19
|
-
Database as DatabaseMapper,
|
|
20
|
-
Configuration as ConfigurationMapper,
|
|
21
|
-
ConfigurationListForBatchUpdate as ConfigurationListForBatchUpdateMapper,
|
|
24
|
+
ServerGtidSetParameter as ServerGtidSetParameterMapper,
|
|
22
25
|
VirtualNetworkSubnetUsageParameter as VirtualNetworkSubnetUsageParameterMapper,
|
|
23
26
|
NameAvailabilityRequest as NameAvailabilityRequestMapper
|
|
24
27
|
} from "../models/mappers";
|
|
@@ -37,7 +40,7 @@ export const contentType: OperationParameter = {
|
|
|
37
40
|
|
|
38
41
|
export const parameters: OperationParameter = {
|
|
39
42
|
parameterPath: "parameters",
|
|
40
|
-
mapper:
|
|
43
|
+
mapper: AzureADAdministratorMapper
|
|
41
44
|
};
|
|
42
45
|
|
|
43
46
|
export const accept: OperationParameter = {
|
|
@@ -67,7 +70,7 @@ export const $host: OperationURLParameter = {
|
|
|
67
70
|
export const apiVersion: OperationQueryParameter = {
|
|
68
71
|
parameterPath: "apiVersion",
|
|
69
72
|
mapper: {
|
|
70
|
-
defaultValue: "2021-
|
|
73
|
+
defaultValue: "2021-12-01-preview",
|
|
71
74
|
isConstant: true,
|
|
72
75
|
serializedName: "api-version",
|
|
73
76
|
type: {
|
|
@@ -108,6 +111,9 @@ export const resourceGroupName: OperationURLParameter = {
|
|
|
108
111
|
export const serverName: OperationURLParameter = {
|
|
109
112
|
parameterPath: "serverName",
|
|
110
113
|
mapper: {
|
|
114
|
+
constraints: {
|
|
115
|
+
Pattern: new RegExp("^[a-z0-9][-a-z0-9]*(?<!-)$")
|
|
116
|
+
},
|
|
111
117
|
serializedName: "serverName",
|
|
112
118
|
required: true,
|
|
113
119
|
type: {
|
|
@@ -116,14 +122,15 @@ export const serverName: OperationURLParameter = {
|
|
|
116
122
|
}
|
|
117
123
|
};
|
|
118
124
|
|
|
119
|
-
export const
|
|
120
|
-
parameterPath: "
|
|
121
|
-
mapper:
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
125
|
+
export const administratorName: OperationURLParameter = {
|
|
126
|
+
parameterPath: "administratorName",
|
|
127
|
+
mapper: {
|
|
128
|
+
serializedName: "administratorName",
|
|
129
|
+
required: true,
|
|
130
|
+
type: {
|
|
131
|
+
name: "String"
|
|
132
|
+
}
|
|
133
|
+
}
|
|
127
134
|
};
|
|
128
135
|
|
|
129
136
|
export const nextLink: OperationURLParameter = {
|
|
@@ -138,9 +145,24 @@ export const nextLink: OperationURLParameter = {
|
|
|
138
145
|
skipEncoding: true
|
|
139
146
|
};
|
|
140
147
|
|
|
148
|
+
export const apiVersion1: OperationQueryParameter = {
|
|
149
|
+
parameterPath: "apiVersion",
|
|
150
|
+
mapper: {
|
|
151
|
+
defaultValue: "2022-09-30-preview",
|
|
152
|
+
isConstant: true,
|
|
153
|
+
serializedName: "api-version",
|
|
154
|
+
type: {
|
|
155
|
+
name: "String"
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
};
|
|
159
|
+
|
|
141
160
|
export const backupName: OperationURLParameter = {
|
|
142
161
|
parameterPath: "backupName",
|
|
143
162
|
mapper: {
|
|
163
|
+
constraints: {
|
|
164
|
+
Pattern: new RegExp("^[-\\w\\._]+$")
|
|
165
|
+
},
|
|
144
166
|
serializedName: "backupName",
|
|
145
167
|
required: true,
|
|
146
168
|
type: {
|
|
@@ -149,15 +171,20 @@ export const backupName: OperationURLParameter = {
|
|
|
149
171
|
}
|
|
150
172
|
};
|
|
151
173
|
|
|
152
|
-
export const
|
|
174
|
+
export const parameters1: OperationParameter = {
|
|
153
175
|
parameterPath: "parameters",
|
|
154
|
-
mapper:
|
|
176
|
+
mapper: BackupAndExportRequestMapper
|
|
155
177
|
};
|
|
156
178
|
|
|
157
|
-
export const
|
|
158
|
-
parameterPath: "
|
|
179
|
+
export const parameters2: OperationParameter = {
|
|
180
|
+
parameterPath: "parameters",
|
|
181
|
+
mapper: ConfigurationMapper
|
|
182
|
+
};
|
|
183
|
+
|
|
184
|
+
export const configurationName: OperationURLParameter = {
|
|
185
|
+
parameterPath: "configurationName",
|
|
159
186
|
mapper: {
|
|
160
|
-
serializedName: "
|
|
187
|
+
serializedName: "configurationName",
|
|
161
188
|
required: true,
|
|
162
189
|
type: {
|
|
163
190
|
name: "String"
|
|
@@ -165,6 +192,51 @@ export const firewallRuleName: OperationURLParameter = {
|
|
|
165
192
|
}
|
|
166
193
|
};
|
|
167
194
|
|
|
195
|
+
export const parameters3: OperationParameter = {
|
|
196
|
+
parameterPath: "parameters",
|
|
197
|
+
mapper: ConfigurationListForBatchUpdateMapper
|
|
198
|
+
};
|
|
199
|
+
|
|
200
|
+
export const tags: OperationQueryParameter = {
|
|
201
|
+
parameterPath: ["options", "tags"],
|
|
202
|
+
mapper: {
|
|
203
|
+
serializedName: "tags",
|
|
204
|
+
type: {
|
|
205
|
+
name: "String"
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
};
|
|
209
|
+
|
|
210
|
+
export const keyword: OperationQueryParameter = {
|
|
211
|
+
parameterPath: ["options", "keyword"],
|
|
212
|
+
mapper: {
|
|
213
|
+
serializedName: "keyword",
|
|
214
|
+
type: {
|
|
215
|
+
name: "String"
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
};
|
|
219
|
+
|
|
220
|
+
export const page: OperationQueryParameter = {
|
|
221
|
+
parameterPath: ["options", "page"],
|
|
222
|
+
mapper: {
|
|
223
|
+
serializedName: "page",
|
|
224
|
+
type: {
|
|
225
|
+
name: "Number"
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
};
|
|
229
|
+
|
|
230
|
+
export const pageSize: OperationQueryParameter = {
|
|
231
|
+
parameterPath: ["options", "pageSize"],
|
|
232
|
+
mapper: {
|
|
233
|
+
serializedName: "pageSize",
|
|
234
|
+
type: {
|
|
235
|
+
name: "Number"
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
};
|
|
239
|
+
|
|
168
240
|
export const parameters4: OperationParameter = {
|
|
169
241
|
parameterPath: "parameters",
|
|
170
242
|
mapper: DatabaseMapper
|
|
@@ -183,13 +255,13 @@ export const databaseName: OperationURLParameter = {
|
|
|
183
255
|
|
|
184
256
|
export const parameters5: OperationParameter = {
|
|
185
257
|
parameterPath: "parameters",
|
|
186
|
-
mapper:
|
|
258
|
+
mapper: FirewallRuleMapper
|
|
187
259
|
};
|
|
188
260
|
|
|
189
|
-
export const
|
|
190
|
-
parameterPath: "
|
|
261
|
+
export const firewallRuleName: OperationURLParameter = {
|
|
262
|
+
parameterPath: "firewallRuleName",
|
|
191
263
|
mapper: {
|
|
192
|
-
serializedName: "
|
|
264
|
+
serializedName: "firewallRuleName",
|
|
193
265
|
required: true,
|
|
194
266
|
type: {
|
|
195
267
|
name: "String"
|
|
@@ -199,7 +271,22 @@ export const configurationName: OperationURLParameter = {
|
|
|
199
271
|
|
|
200
272
|
export const parameters6: OperationParameter = {
|
|
201
273
|
parameterPath: "parameters",
|
|
202
|
-
mapper:
|
|
274
|
+
mapper: ServerMapper
|
|
275
|
+
};
|
|
276
|
+
|
|
277
|
+
export const parameters7: OperationParameter = {
|
|
278
|
+
parameterPath: "parameters",
|
|
279
|
+
mapper: ServerForUpdateMapper
|
|
280
|
+
};
|
|
281
|
+
|
|
282
|
+
export const parameters8: OperationParameter = {
|
|
283
|
+
parameterPath: "parameters",
|
|
284
|
+
mapper: ServerRestartParameterMapper
|
|
285
|
+
};
|
|
286
|
+
|
|
287
|
+
export const parameters9: OperationParameter = {
|
|
288
|
+
parameterPath: "parameters",
|
|
289
|
+
mapper: ServerGtidSetParameterMapper
|
|
203
290
|
};
|
|
204
291
|
|
|
205
292
|
export const locationName: OperationURLParameter = {
|
|
@@ -213,7 +300,7 @@ export const locationName: OperationURLParameter = {
|
|
|
213
300
|
}
|
|
214
301
|
};
|
|
215
302
|
|
|
216
|
-
export const
|
|
303
|
+
export const parameters10: OperationParameter = {
|
|
217
304
|
parameterPath: "parameters",
|
|
218
305
|
mapper: VirtualNetworkSubnetUsageParameterMapper
|
|
219
306
|
};
|
|
@@ -8,35 +8,38 @@
|
|
|
8
8
|
|
|
9
9
|
import * as coreClient from "@azure/core-client";
|
|
10
10
|
import * as coreRestPipeline from "@azure/core-rest-pipeline";
|
|
11
|
-
import {
|
|
12
|
-
PipelineRequest,
|
|
13
|
-
PipelineResponse,
|
|
14
|
-
SendRequest
|
|
15
|
-
} from "@azure/core-rest-pipeline";
|
|
16
11
|
import * as coreAuth from "@azure/core-auth";
|
|
17
12
|
import {
|
|
18
|
-
|
|
19
|
-
ReplicasImpl,
|
|
13
|
+
AzureADAdministratorsImpl,
|
|
20
14
|
BackupsImpl,
|
|
21
|
-
|
|
22
|
-
DatabasesImpl,
|
|
15
|
+
BackupAndExportImpl,
|
|
23
16
|
ConfigurationsImpl,
|
|
17
|
+
DatabasesImpl,
|
|
18
|
+
FirewallRulesImpl,
|
|
19
|
+
ServersImpl,
|
|
20
|
+
ReplicasImpl,
|
|
21
|
+
LogFilesImpl,
|
|
24
22
|
LocationBasedCapabilitiesImpl,
|
|
25
23
|
CheckVirtualNetworkSubnetUsageImpl,
|
|
26
24
|
CheckNameAvailabilityImpl,
|
|
25
|
+
CheckNameAvailabilityWithoutLocationImpl,
|
|
27
26
|
GetPrivateDnsZoneSuffixImpl,
|
|
28
27
|
OperationsImpl
|
|
29
28
|
} from "./operations";
|
|
30
29
|
import {
|
|
31
|
-
|
|
32
|
-
Replicas,
|
|
30
|
+
AzureADAdministrators,
|
|
33
31
|
Backups,
|
|
34
|
-
|
|
35
|
-
Databases,
|
|
32
|
+
BackupAndExport,
|
|
36
33
|
Configurations,
|
|
34
|
+
Databases,
|
|
35
|
+
FirewallRules,
|
|
36
|
+
Servers,
|
|
37
|
+
Replicas,
|
|
38
|
+
LogFiles,
|
|
37
39
|
LocationBasedCapabilities,
|
|
38
40
|
CheckVirtualNetworkSubnetUsage,
|
|
39
41
|
CheckNameAvailability,
|
|
42
|
+
CheckNameAvailabilityWithoutLocation,
|
|
40
43
|
GetPrivateDnsZoneSuffix,
|
|
41
44
|
Operations
|
|
42
45
|
} from "./operationsInterfaces";
|
|
@@ -44,7 +47,6 @@ import { MySQLManagementFlexibleServerClientOptionalParams } from "./models";
|
|
|
44
47
|
|
|
45
48
|
export class MySQLManagementFlexibleServerClient extends coreClient.ServiceClient {
|
|
46
49
|
$host: string;
|
|
47
|
-
apiVersion: string;
|
|
48
50
|
subscriptionId: string;
|
|
49
51
|
|
|
50
52
|
/**
|
|
@@ -74,7 +76,7 @@ export class MySQLManagementFlexibleServerClient extends coreClient.ServiceClien
|
|
|
74
76
|
credential: credentials
|
|
75
77
|
};
|
|
76
78
|
|
|
77
|
-
const packageDetails = `azsdk-js-arm-mysql-flexible/
|
|
79
|
+
const packageDetails = `azsdk-js-arm-mysql-flexible/4.0.0-beta.1`;
|
|
78
80
|
const userAgentPrefix =
|
|
79
81
|
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
80
82
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
@@ -127,60 +129,40 @@ export class MySQLManagementFlexibleServerClient extends coreClient.ServiceClien
|
|
|
127
129
|
|
|
128
130
|
// Assigning values to Constant parameters
|
|
129
131
|
this.$host = options.$host || "https://management.azure.com";
|
|
130
|
-
this.
|
|
131
|
-
this.servers = new ServersImpl(this);
|
|
132
|
-
this.replicas = new ReplicasImpl(this);
|
|
132
|
+
this.azureADAdministrators = new AzureADAdministratorsImpl(this);
|
|
133
133
|
this.backups = new BackupsImpl(this);
|
|
134
|
-
this.
|
|
135
|
-
this.databases = new DatabasesImpl(this);
|
|
134
|
+
this.backupAndExport = new BackupAndExportImpl(this);
|
|
136
135
|
this.configurations = new ConfigurationsImpl(this);
|
|
136
|
+
this.databases = new DatabasesImpl(this);
|
|
137
|
+
this.firewallRules = new FirewallRulesImpl(this);
|
|
138
|
+
this.servers = new ServersImpl(this);
|
|
139
|
+
this.replicas = new ReplicasImpl(this);
|
|
140
|
+
this.logFiles = new LogFilesImpl(this);
|
|
137
141
|
this.locationBasedCapabilities = new LocationBasedCapabilitiesImpl(this);
|
|
138
142
|
this.checkVirtualNetworkSubnetUsage = new CheckVirtualNetworkSubnetUsageImpl(
|
|
139
143
|
this
|
|
140
144
|
);
|
|
141
145
|
this.checkNameAvailability = new CheckNameAvailabilityImpl(this);
|
|
146
|
+
this.checkNameAvailabilityWithoutLocation = new CheckNameAvailabilityWithoutLocationImpl(
|
|
147
|
+
this
|
|
148
|
+
);
|
|
142
149
|
this.getPrivateDnsZoneSuffix = new GetPrivateDnsZoneSuffixImpl(this);
|
|
143
150
|
this.operations = new OperationsImpl(this);
|
|
144
|
-
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
145
151
|
}
|
|
146
152
|
|
|
147
|
-
|
|
148
|
-
private addCustomApiVersionPolicy(apiVersion?: string) {
|
|
149
|
-
if (!apiVersion) {
|
|
150
|
-
return;
|
|
151
|
-
}
|
|
152
|
-
const apiVersionPolicy = {
|
|
153
|
-
name: "CustomApiVersionPolicy",
|
|
154
|
-
async sendRequest(
|
|
155
|
-
request: PipelineRequest,
|
|
156
|
-
next: SendRequest
|
|
157
|
-
): Promise<PipelineResponse> {
|
|
158
|
-
const param = request.url.split("?");
|
|
159
|
-
if (param.length > 1) {
|
|
160
|
-
const newParams = param[1].split("&").map((item) => {
|
|
161
|
-
if (item.indexOf("api-version") > -1) {
|
|
162
|
-
return "api-version=" + apiVersion;
|
|
163
|
-
} else {
|
|
164
|
-
return item;
|
|
165
|
-
}
|
|
166
|
-
});
|
|
167
|
-
request.url = param[0] + "?" + newParams.join("&");
|
|
168
|
-
}
|
|
169
|
-
return next(request);
|
|
170
|
-
}
|
|
171
|
-
};
|
|
172
|
-
this.pipeline.addPolicy(apiVersionPolicy);
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
servers: Servers;
|
|
176
|
-
replicas: Replicas;
|
|
153
|
+
azureADAdministrators: AzureADAdministrators;
|
|
177
154
|
backups: Backups;
|
|
178
|
-
|
|
179
|
-
databases: Databases;
|
|
155
|
+
backupAndExport: BackupAndExport;
|
|
180
156
|
configurations: Configurations;
|
|
157
|
+
databases: Databases;
|
|
158
|
+
firewallRules: FirewallRules;
|
|
159
|
+
servers: Servers;
|
|
160
|
+
replicas: Replicas;
|
|
161
|
+
logFiles: LogFiles;
|
|
181
162
|
locationBasedCapabilities: LocationBasedCapabilities;
|
|
182
163
|
checkVirtualNetworkSubnetUsage: CheckVirtualNetworkSubnetUsage;
|
|
183
164
|
checkNameAvailability: CheckNameAvailability;
|
|
165
|
+
checkNameAvailabilityWithoutLocation: CheckNameAvailabilityWithoutLocation;
|
|
184
166
|
getPrivateDnsZoneSuffix: GetPrivateDnsZoneSuffix;
|
|
185
167
|
operations: Operations;
|
|
186
168
|
}
|