@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
|
@@ -13,8 +13,12 @@ import * as coreClient from "@azure/core-client";
|
|
|
13
13
|
import * as Mappers from "../models/mappers";
|
|
14
14
|
import * as Parameters from "../models/parameters";
|
|
15
15
|
import { MySQLManagementFlexibleServerClient } from "../mySQLManagementFlexibleServerClient";
|
|
16
|
-
import {
|
|
17
|
-
|
|
16
|
+
import {
|
|
17
|
+
SimplePollerLike,
|
|
18
|
+
OperationState,
|
|
19
|
+
createHttpPoller
|
|
20
|
+
} from "@azure/core-lro";
|
|
21
|
+
import { createLroSpec } from "../lroImpl";
|
|
18
22
|
import {
|
|
19
23
|
Server,
|
|
20
24
|
ServersListByResourceGroupNextOptionalParams,
|
|
@@ -36,6 +40,8 @@ import {
|
|
|
36
40
|
ServersRestartOptionalParams,
|
|
37
41
|
ServersStartOptionalParams,
|
|
38
42
|
ServersStopOptionalParams,
|
|
43
|
+
ServerGtidSetParameter,
|
|
44
|
+
ServersResetGtidOptionalParams,
|
|
39
45
|
ServersListByResourceGroupNextResponse,
|
|
40
46
|
ServersListNextResponse
|
|
41
47
|
} from "../models";
|
|
@@ -190,7 +196,10 @@ export class ServersImpl implements Servers {
|
|
|
190
196
|
parameters: Server,
|
|
191
197
|
options?: ServersCreateOptionalParams
|
|
192
198
|
): Promise<
|
|
193
|
-
|
|
199
|
+
SimplePollerLike<
|
|
200
|
+
OperationState<ServersCreateResponse>,
|
|
201
|
+
ServersCreateResponse
|
|
202
|
+
>
|
|
194
203
|
> {
|
|
195
204
|
const directSendOperation = async (
|
|
196
205
|
args: coreClient.OperationArguments,
|
|
@@ -198,7 +207,7 @@ export class ServersImpl implements Servers {
|
|
|
198
207
|
): Promise<ServersCreateResponse> => {
|
|
199
208
|
return this.client.sendOperationRequest(args, spec);
|
|
200
209
|
};
|
|
201
|
-
const
|
|
210
|
+
const sendOperationFn = async (
|
|
202
211
|
args: coreClient.OperationArguments,
|
|
203
212
|
spec: coreClient.OperationSpec
|
|
204
213
|
) => {
|
|
@@ -231,13 +240,16 @@ export class ServersImpl implements Servers {
|
|
|
231
240
|
};
|
|
232
241
|
};
|
|
233
242
|
|
|
234
|
-
const lro =
|
|
235
|
-
|
|
236
|
-
{ resourceGroupName, serverName, parameters, options },
|
|
237
|
-
createOperationSpec
|
|
238
|
-
);
|
|
239
|
-
const poller =
|
|
240
|
-
|
|
243
|
+
const lro = createLroSpec({
|
|
244
|
+
sendOperationFn,
|
|
245
|
+
args: { resourceGroupName, serverName, parameters, options },
|
|
246
|
+
spec: createOperationSpec
|
|
247
|
+
});
|
|
248
|
+
const poller = await createHttpPoller<
|
|
249
|
+
ServersCreateResponse,
|
|
250
|
+
OperationState<ServersCreateResponse>
|
|
251
|
+
>(lro, {
|
|
252
|
+
restoreFrom: options?.resumeFrom,
|
|
241
253
|
intervalInMs: options?.updateIntervalInMs
|
|
242
254
|
});
|
|
243
255
|
await poller.poll();
|
|
@@ -281,7 +293,10 @@ export class ServersImpl implements Servers {
|
|
|
281
293
|
parameters: ServerForUpdate,
|
|
282
294
|
options?: ServersUpdateOptionalParams
|
|
283
295
|
): Promise<
|
|
284
|
-
|
|
296
|
+
SimplePollerLike<
|
|
297
|
+
OperationState<ServersUpdateResponse>,
|
|
298
|
+
ServersUpdateResponse
|
|
299
|
+
>
|
|
285
300
|
> {
|
|
286
301
|
const directSendOperation = async (
|
|
287
302
|
args: coreClient.OperationArguments,
|
|
@@ -289,7 +304,7 @@ export class ServersImpl implements Servers {
|
|
|
289
304
|
): Promise<ServersUpdateResponse> => {
|
|
290
305
|
return this.client.sendOperationRequest(args, spec);
|
|
291
306
|
};
|
|
292
|
-
const
|
|
307
|
+
const sendOperationFn = async (
|
|
293
308
|
args: coreClient.OperationArguments,
|
|
294
309
|
spec: coreClient.OperationSpec
|
|
295
310
|
) => {
|
|
@@ -322,13 +337,16 @@ export class ServersImpl implements Servers {
|
|
|
322
337
|
};
|
|
323
338
|
};
|
|
324
339
|
|
|
325
|
-
const lro =
|
|
326
|
-
|
|
327
|
-
{ resourceGroupName, serverName, parameters, options },
|
|
328
|
-
updateOperationSpec
|
|
329
|
-
);
|
|
330
|
-
const poller =
|
|
331
|
-
|
|
340
|
+
const lro = createLroSpec({
|
|
341
|
+
sendOperationFn,
|
|
342
|
+
args: { resourceGroupName, serverName, parameters, options },
|
|
343
|
+
spec: updateOperationSpec
|
|
344
|
+
});
|
|
345
|
+
const poller = await createHttpPoller<
|
|
346
|
+
ServersUpdateResponse,
|
|
347
|
+
OperationState<ServersUpdateResponse>
|
|
348
|
+
>(lro, {
|
|
349
|
+
restoreFrom: options?.resumeFrom,
|
|
332
350
|
intervalInMs: options?.updateIntervalInMs
|
|
333
351
|
});
|
|
334
352
|
await poller.poll();
|
|
@@ -368,14 +386,14 @@ export class ServersImpl implements Servers {
|
|
|
368
386
|
resourceGroupName: string,
|
|
369
387
|
serverName: string,
|
|
370
388
|
options?: ServersDeleteOptionalParams
|
|
371
|
-
): Promise<
|
|
389
|
+
): Promise<SimplePollerLike<OperationState<void>, void>> {
|
|
372
390
|
const directSendOperation = async (
|
|
373
391
|
args: coreClient.OperationArguments,
|
|
374
392
|
spec: coreClient.OperationSpec
|
|
375
393
|
): Promise<void> => {
|
|
376
394
|
return this.client.sendOperationRequest(args, spec);
|
|
377
395
|
};
|
|
378
|
-
const
|
|
396
|
+
const sendOperationFn = async (
|
|
379
397
|
args: coreClient.OperationArguments,
|
|
380
398
|
spec: coreClient.OperationSpec
|
|
381
399
|
) => {
|
|
@@ -408,14 +426,15 @@ export class ServersImpl implements Servers {
|
|
|
408
426
|
};
|
|
409
427
|
};
|
|
410
428
|
|
|
411
|
-
const lro =
|
|
412
|
-
|
|
413
|
-
{ resourceGroupName, serverName, options },
|
|
414
|
-
deleteOperationSpec
|
|
415
|
-
);
|
|
416
|
-
const poller =
|
|
417
|
-
|
|
418
|
-
intervalInMs: options?.updateIntervalInMs
|
|
429
|
+
const lro = createLroSpec({
|
|
430
|
+
sendOperationFn,
|
|
431
|
+
args: { resourceGroupName, serverName, options },
|
|
432
|
+
spec: deleteOperationSpec
|
|
433
|
+
});
|
|
434
|
+
const poller = await createHttpPoller<void, OperationState<void>>(lro, {
|
|
435
|
+
restoreFrom: options?.resumeFrom,
|
|
436
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
437
|
+
resourceLocationConfig: "azure-async-operation"
|
|
419
438
|
});
|
|
420
439
|
await poller.poll();
|
|
421
440
|
return poller;
|
|
@@ -492,14 +511,14 @@ export class ServersImpl implements Servers {
|
|
|
492
511
|
resourceGroupName: string,
|
|
493
512
|
serverName: string,
|
|
494
513
|
options?: ServersFailoverOptionalParams
|
|
495
|
-
): Promise<
|
|
514
|
+
): Promise<SimplePollerLike<OperationState<void>, void>> {
|
|
496
515
|
const directSendOperation = async (
|
|
497
516
|
args: coreClient.OperationArguments,
|
|
498
517
|
spec: coreClient.OperationSpec
|
|
499
518
|
): Promise<void> => {
|
|
500
519
|
return this.client.sendOperationRequest(args, spec);
|
|
501
520
|
};
|
|
502
|
-
const
|
|
521
|
+
const sendOperationFn = async (
|
|
503
522
|
args: coreClient.OperationArguments,
|
|
504
523
|
spec: coreClient.OperationSpec
|
|
505
524
|
) => {
|
|
@@ -532,13 +551,13 @@ export class ServersImpl implements Servers {
|
|
|
532
551
|
};
|
|
533
552
|
};
|
|
534
553
|
|
|
535
|
-
const lro =
|
|
536
|
-
|
|
537
|
-
{ resourceGroupName, serverName, options },
|
|
538
|
-
failoverOperationSpec
|
|
539
|
-
);
|
|
540
|
-
const poller =
|
|
541
|
-
|
|
554
|
+
const lro = createLroSpec({
|
|
555
|
+
sendOperationFn,
|
|
556
|
+
args: { resourceGroupName, serverName, options },
|
|
557
|
+
spec: failoverOperationSpec
|
|
558
|
+
});
|
|
559
|
+
const poller = await createHttpPoller<void, OperationState<void>>(lro, {
|
|
560
|
+
restoreFrom: options?.resumeFrom,
|
|
542
561
|
intervalInMs: options?.updateIntervalInMs
|
|
543
562
|
});
|
|
544
563
|
await poller.poll();
|
|
@@ -576,14 +595,14 @@ export class ServersImpl implements Servers {
|
|
|
576
595
|
serverName: string,
|
|
577
596
|
parameters: ServerRestartParameter,
|
|
578
597
|
options?: ServersRestartOptionalParams
|
|
579
|
-
): Promise<
|
|
598
|
+
): Promise<SimplePollerLike<OperationState<void>, void>> {
|
|
580
599
|
const directSendOperation = async (
|
|
581
600
|
args: coreClient.OperationArguments,
|
|
582
601
|
spec: coreClient.OperationSpec
|
|
583
602
|
): Promise<void> => {
|
|
584
603
|
return this.client.sendOperationRequest(args, spec);
|
|
585
604
|
};
|
|
586
|
-
const
|
|
605
|
+
const sendOperationFn = async (
|
|
587
606
|
args: coreClient.OperationArguments,
|
|
588
607
|
spec: coreClient.OperationSpec
|
|
589
608
|
) => {
|
|
@@ -616,13 +635,13 @@ export class ServersImpl implements Servers {
|
|
|
616
635
|
};
|
|
617
636
|
};
|
|
618
637
|
|
|
619
|
-
const lro =
|
|
620
|
-
|
|
621
|
-
{ resourceGroupName, serverName, parameters, options },
|
|
622
|
-
restartOperationSpec
|
|
623
|
-
);
|
|
624
|
-
const poller =
|
|
625
|
-
|
|
638
|
+
const lro = createLroSpec({
|
|
639
|
+
sendOperationFn,
|
|
640
|
+
args: { resourceGroupName, serverName, parameters, options },
|
|
641
|
+
spec: restartOperationSpec
|
|
642
|
+
});
|
|
643
|
+
const poller = await createHttpPoller<void, OperationState<void>>(lro, {
|
|
644
|
+
restoreFrom: options?.resumeFrom,
|
|
626
645
|
intervalInMs: options?.updateIntervalInMs
|
|
627
646
|
});
|
|
628
647
|
await poller.poll();
|
|
@@ -661,14 +680,14 @@ export class ServersImpl implements Servers {
|
|
|
661
680
|
resourceGroupName: string,
|
|
662
681
|
serverName: string,
|
|
663
682
|
options?: ServersStartOptionalParams
|
|
664
|
-
): Promise<
|
|
683
|
+
): Promise<SimplePollerLike<OperationState<void>, void>> {
|
|
665
684
|
const directSendOperation = async (
|
|
666
685
|
args: coreClient.OperationArguments,
|
|
667
686
|
spec: coreClient.OperationSpec
|
|
668
687
|
): Promise<void> => {
|
|
669
688
|
return this.client.sendOperationRequest(args, spec);
|
|
670
689
|
};
|
|
671
|
-
const
|
|
690
|
+
const sendOperationFn = async (
|
|
672
691
|
args: coreClient.OperationArguments,
|
|
673
692
|
spec: coreClient.OperationSpec
|
|
674
693
|
) => {
|
|
@@ -701,13 +720,13 @@ export class ServersImpl implements Servers {
|
|
|
701
720
|
};
|
|
702
721
|
};
|
|
703
722
|
|
|
704
|
-
const lro =
|
|
705
|
-
|
|
706
|
-
{ resourceGroupName, serverName, options },
|
|
707
|
-
startOperationSpec
|
|
708
|
-
);
|
|
709
|
-
const poller =
|
|
710
|
-
|
|
723
|
+
const lro = createLroSpec({
|
|
724
|
+
sendOperationFn,
|
|
725
|
+
args: { resourceGroupName, serverName, options },
|
|
726
|
+
spec: startOperationSpec
|
|
727
|
+
});
|
|
728
|
+
const poller = await createHttpPoller<void, OperationState<void>>(lro, {
|
|
729
|
+
restoreFrom: options?.resumeFrom,
|
|
711
730
|
intervalInMs: options?.updateIntervalInMs
|
|
712
731
|
});
|
|
713
732
|
await poller.poll();
|
|
@@ -743,14 +762,14 @@ export class ServersImpl implements Servers {
|
|
|
743
762
|
resourceGroupName: string,
|
|
744
763
|
serverName: string,
|
|
745
764
|
options?: ServersStopOptionalParams
|
|
746
|
-
): Promise<
|
|
765
|
+
): Promise<SimplePollerLike<OperationState<void>, void>> {
|
|
747
766
|
const directSendOperation = async (
|
|
748
767
|
args: coreClient.OperationArguments,
|
|
749
768
|
spec: coreClient.OperationSpec
|
|
750
769
|
): Promise<void> => {
|
|
751
770
|
return this.client.sendOperationRequest(args, spec);
|
|
752
771
|
};
|
|
753
|
-
const
|
|
772
|
+
const sendOperationFn = async (
|
|
754
773
|
args: coreClient.OperationArguments,
|
|
755
774
|
spec: coreClient.OperationSpec
|
|
756
775
|
) => {
|
|
@@ -783,13 +802,13 @@ export class ServersImpl implements Servers {
|
|
|
783
802
|
};
|
|
784
803
|
};
|
|
785
804
|
|
|
786
|
-
const lro =
|
|
787
|
-
|
|
788
|
-
{ resourceGroupName, serverName, options },
|
|
789
|
-
stopOperationSpec
|
|
790
|
-
);
|
|
791
|
-
const poller =
|
|
792
|
-
|
|
805
|
+
const lro = createLroSpec({
|
|
806
|
+
sendOperationFn,
|
|
807
|
+
args: { resourceGroupName, serverName, options },
|
|
808
|
+
spec: stopOperationSpec
|
|
809
|
+
});
|
|
810
|
+
const poller = await createHttpPoller<void, OperationState<void>>(lro, {
|
|
811
|
+
restoreFrom: options?.resumeFrom,
|
|
793
812
|
intervalInMs: options?.updateIntervalInMs
|
|
794
813
|
});
|
|
795
814
|
await poller.poll();
|
|
@@ -811,6 +830,94 @@ export class ServersImpl implements Servers {
|
|
|
811
830
|
return poller.pollUntilDone();
|
|
812
831
|
}
|
|
813
832
|
|
|
833
|
+
/**
|
|
834
|
+
* Resets GTID on a server.
|
|
835
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
836
|
+
* @param serverName The name of the server.
|
|
837
|
+
* @param parameters The required parameters for resetting GTID on a server.
|
|
838
|
+
* @param options The options parameters.
|
|
839
|
+
*/
|
|
840
|
+
async beginResetGtid(
|
|
841
|
+
resourceGroupName: string,
|
|
842
|
+
serverName: string,
|
|
843
|
+
parameters: ServerGtidSetParameter,
|
|
844
|
+
options?: ServersResetGtidOptionalParams
|
|
845
|
+
): Promise<SimplePollerLike<OperationState<void>, void>> {
|
|
846
|
+
const directSendOperation = async (
|
|
847
|
+
args: coreClient.OperationArguments,
|
|
848
|
+
spec: coreClient.OperationSpec
|
|
849
|
+
): Promise<void> => {
|
|
850
|
+
return this.client.sendOperationRequest(args, spec);
|
|
851
|
+
};
|
|
852
|
+
const sendOperationFn = async (
|
|
853
|
+
args: coreClient.OperationArguments,
|
|
854
|
+
spec: coreClient.OperationSpec
|
|
855
|
+
) => {
|
|
856
|
+
let currentRawResponse:
|
|
857
|
+
| coreClient.FullOperationResponse
|
|
858
|
+
| undefined = undefined;
|
|
859
|
+
const providedCallback = args.options?.onResponse;
|
|
860
|
+
const callback: coreClient.RawResponseCallback = (
|
|
861
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
862
|
+
flatResponse: unknown
|
|
863
|
+
) => {
|
|
864
|
+
currentRawResponse = rawResponse;
|
|
865
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
866
|
+
};
|
|
867
|
+
const updatedArgs = {
|
|
868
|
+
...args,
|
|
869
|
+
options: {
|
|
870
|
+
...args.options,
|
|
871
|
+
onResponse: callback
|
|
872
|
+
}
|
|
873
|
+
};
|
|
874
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
875
|
+
return {
|
|
876
|
+
flatResponse,
|
|
877
|
+
rawResponse: {
|
|
878
|
+
statusCode: currentRawResponse!.status,
|
|
879
|
+
body: currentRawResponse!.parsedBody,
|
|
880
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
881
|
+
}
|
|
882
|
+
};
|
|
883
|
+
};
|
|
884
|
+
|
|
885
|
+
const lro = createLroSpec({
|
|
886
|
+
sendOperationFn,
|
|
887
|
+
args: { resourceGroupName, serverName, parameters, options },
|
|
888
|
+
spec: resetGtidOperationSpec
|
|
889
|
+
});
|
|
890
|
+
const poller = await createHttpPoller<void, OperationState<void>>(lro, {
|
|
891
|
+
restoreFrom: options?.resumeFrom,
|
|
892
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
893
|
+
resourceLocationConfig: "azure-async-operation"
|
|
894
|
+
});
|
|
895
|
+
await poller.poll();
|
|
896
|
+
return poller;
|
|
897
|
+
}
|
|
898
|
+
|
|
899
|
+
/**
|
|
900
|
+
* Resets GTID on a server.
|
|
901
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
902
|
+
* @param serverName The name of the server.
|
|
903
|
+
* @param parameters The required parameters for resetting GTID on a server.
|
|
904
|
+
* @param options The options parameters.
|
|
905
|
+
*/
|
|
906
|
+
async beginResetGtidAndWait(
|
|
907
|
+
resourceGroupName: string,
|
|
908
|
+
serverName: string,
|
|
909
|
+
parameters: ServerGtidSetParameter,
|
|
910
|
+
options?: ServersResetGtidOptionalParams
|
|
911
|
+
): Promise<void> {
|
|
912
|
+
const poller = await this.beginResetGtid(
|
|
913
|
+
resourceGroupName,
|
|
914
|
+
serverName,
|
|
915
|
+
parameters,
|
|
916
|
+
options
|
|
917
|
+
);
|
|
918
|
+
return poller.pollUntilDone();
|
|
919
|
+
}
|
|
920
|
+
|
|
814
921
|
/**
|
|
815
922
|
* ListByResourceGroupNext
|
|
816
923
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
@@ -867,8 +974,8 @@ const createOperationSpec: coreClient.OperationSpec = {
|
|
|
867
974
|
bodyMapper: Mappers.CloudError
|
|
868
975
|
}
|
|
869
976
|
},
|
|
870
|
-
requestBody: Parameters.
|
|
871
|
-
queryParameters: [Parameters.
|
|
977
|
+
requestBody: Parameters.parameters6,
|
|
978
|
+
queryParameters: [Parameters.apiVersion1],
|
|
872
979
|
urlParameters: [
|
|
873
980
|
Parameters.$host,
|
|
874
981
|
Parameters.subscriptionId,
|
|
@@ -900,8 +1007,8 @@ const updateOperationSpec: coreClient.OperationSpec = {
|
|
|
900
1007
|
bodyMapper: Mappers.CloudError
|
|
901
1008
|
}
|
|
902
1009
|
},
|
|
903
|
-
requestBody: Parameters.
|
|
904
|
-
queryParameters: [Parameters.
|
|
1010
|
+
requestBody: Parameters.parameters7,
|
|
1011
|
+
queryParameters: [Parameters.apiVersion1],
|
|
905
1012
|
urlParameters: [
|
|
906
1013
|
Parameters.$host,
|
|
907
1014
|
Parameters.subscriptionId,
|
|
@@ -925,7 +1032,7 @@ const deleteOperationSpec: coreClient.OperationSpec = {
|
|
|
925
1032
|
bodyMapper: Mappers.CloudError
|
|
926
1033
|
}
|
|
927
1034
|
},
|
|
928
|
-
queryParameters: [Parameters.
|
|
1035
|
+
queryParameters: [Parameters.apiVersion1],
|
|
929
1036
|
urlParameters: [
|
|
930
1037
|
Parameters.$host,
|
|
931
1038
|
Parameters.subscriptionId,
|
|
@@ -947,7 +1054,7 @@ const getOperationSpec: coreClient.OperationSpec = {
|
|
|
947
1054
|
bodyMapper: Mappers.CloudError
|
|
948
1055
|
}
|
|
949
1056
|
},
|
|
950
|
-
queryParameters: [Parameters.
|
|
1057
|
+
queryParameters: [Parameters.apiVersion1],
|
|
951
1058
|
urlParameters: [
|
|
952
1059
|
Parameters.$host,
|
|
953
1060
|
Parameters.subscriptionId,
|
|
@@ -969,7 +1076,7 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
|
|
|
969
1076
|
bodyMapper: Mappers.CloudError
|
|
970
1077
|
}
|
|
971
1078
|
},
|
|
972
|
-
queryParameters: [Parameters.
|
|
1079
|
+
queryParameters: [Parameters.apiVersion1],
|
|
973
1080
|
urlParameters: [
|
|
974
1081
|
Parameters.$host,
|
|
975
1082
|
Parameters.subscriptionId,
|
|
@@ -990,7 +1097,7 @@ const listOperationSpec: coreClient.OperationSpec = {
|
|
|
990
1097
|
bodyMapper: Mappers.CloudError
|
|
991
1098
|
}
|
|
992
1099
|
},
|
|
993
|
-
queryParameters: [Parameters.
|
|
1100
|
+
queryParameters: [Parameters.apiVersion1],
|
|
994
1101
|
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
995
1102
|
headerParameters: [Parameters.accept],
|
|
996
1103
|
serializer
|
|
@@ -1008,7 +1115,7 @@ const failoverOperationSpec: coreClient.OperationSpec = {
|
|
|
1008
1115
|
bodyMapper: Mappers.CloudError
|
|
1009
1116
|
}
|
|
1010
1117
|
},
|
|
1011
|
-
queryParameters: [Parameters.
|
|
1118
|
+
queryParameters: [Parameters.apiVersion1],
|
|
1012
1119
|
urlParameters: [
|
|
1013
1120
|
Parameters.$host,
|
|
1014
1121
|
Parameters.subscriptionId,
|
|
@@ -1031,8 +1138,8 @@ const restartOperationSpec: coreClient.OperationSpec = {
|
|
|
1031
1138
|
bodyMapper: Mappers.CloudError
|
|
1032
1139
|
}
|
|
1033
1140
|
},
|
|
1034
|
-
requestBody: Parameters.
|
|
1035
|
-
queryParameters: [Parameters.
|
|
1141
|
+
requestBody: Parameters.parameters8,
|
|
1142
|
+
queryParameters: [Parameters.apiVersion1],
|
|
1036
1143
|
urlParameters: [
|
|
1037
1144
|
Parameters.$host,
|
|
1038
1145
|
Parameters.subscriptionId,
|
|
@@ -1056,7 +1163,7 @@ const startOperationSpec: coreClient.OperationSpec = {
|
|
|
1056
1163
|
bodyMapper: Mappers.CloudError
|
|
1057
1164
|
}
|
|
1058
1165
|
},
|
|
1059
|
-
queryParameters: [Parameters.
|
|
1166
|
+
queryParameters: [Parameters.apiVersion1],
|
|
1060
1167
|
urlParameters: [
|
|
1061
1168
|
Parameters.$host,
|
|
1062
1169
|
Parameters.subscriptionId,
|
|
@@ -1079,7 +1186,7 @@ const stopOperationSpec: coreClient.OperationSpec = {
|
|
|
1079
1186
|
bodyMapper: Mappers.CloudError
|
|
1080
1187
|
}
|
|
1081
1188
|
},
|
|
1082
|
-
queryParameters: [Parameters.
|
|
1189
|
+
queryParameters: [Parameters.apiVersion1],
|
|
1083
1190
|
urlParameters: [
|
|
1084
1191
|
Parameters.$host,
|
|
1085
1192
|
Parameters.subscriptionId,
|
|
@@ -1089,6 +1196,31 @@ const stopOperationSpec: coreClient.OperationSpec = {
|
|
|
1089
1196
|
headerParameters: [Parameters.accept],
|
|
1090
1197
|
serializer
|
|
1091
1198
|
};
|
|
1199
|
+
const resetGtidOperationSpec: coreClient.OperationSpec = {
|
|
1200
|
+
path:
|
|
1201
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/resetGtid",
|
|
1202
|
+
httpMethod: "POST",
|
|
1203
|
+
responses: {
|
|
1204
|
+
200: {},
|
|
1205
|
+
201: {},
|
|
1206
|
+
202: {},
|
|
1207
|
+
204: {},
|
|
1208
|
+
default: {
|
|
1209
|
+
bodyMapper: Mappers.CloudError
|
|
1210
|
+
}
|
|
1211
|
+
},
|
|
1212
|
+
requestBody: Parameters.parameters9,
|
|
1213
|
+
queryParameters: [Parameters.apiVersion1],
|
|
1214
|
+
urlParameters: [
|
|
1215
|
+
Parameters.$host,
|
|
1216
|
+
Parameters.subscriptionId,
|
|
1217
|
+
Parameters.resourceGroupName,
|
|
1218
|
+
Parameters.serverName
|
|
1219
|
+
],
|
|
1220
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
1221
|
+
mediaType: "json",
|
|
1222
|
+
serializer
|
|
1223
|
+
};
|
|
1092
1224
|
const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
|
|
1093
1225
|
path: "{nextLink}",
|
|
1094
1226
|
httpMethod: "GET",
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { SimplePollerLike, OperationState } from "@azure/core-lro";
|
|
11
|
+
import {
|
|
12
|
+
AzureADAdministrator,
|
|
13
|
+
AzureADAdministratorsListByServerOptionalParams,
|
|
14
|
+
AdministratorName,
|
|
15
|
+
AzureADAdministratorsCreateOrUpdateOptionalParams,
|
|
16
|
+
AzureADAdministratorsCreateOrUpdateResponse,
|
|
17
|
+
AzureADAdministratorsDeleteOptionalParams,
|
|
18
|
+
AzureADAdministratorsGetOptionalParams,
|
|
19
|
+
AzureADAdministratorsGetResponse
|
|
20
|
+
} from "../models";
|
|
21
|
+
|
|
22
|
+
/// <reference lib="esnext.asynciterable" />
|
|
23
|
+
/** Interface representing a AzureADAdministrators. */
|
|
24
|
+
export interface AzureADAdministrators {
|
|
25
|
+
/**
|
|
26
|
+
* List all the AAD administrators in a given server.
|
|
27
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
28
|
+
* @param serverName The name of the server.
|
|
29
|
+
* @param options The options parameters.
|
|
30
|
+
*/
|
|
31
|
+
listByServer(
|
|
32
|
+
resourceGroupName: string,
|
|
33
|
+
serverName: string,
|
|
34
|
+
options?: AzureADAdministratorsListByServerOptionalParams
|
|
35
|
+
): PagedAsyncIterableIterator<AzureADAdministrator>;
|
|
36
|
+
/**
|
|
37
|
+
* Creates or updates an existing Azure Active Directory administrator.
|
|
38
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
39
|
+
* @param serverName The name of the server.
|
|
40
|
+
* @param administratorName The name of the Azure AD Administrator.
|
|
41
|
+
* @param parameters The required parameters for creating or updating an aad administrator.
|
|
42
|
+
* @param options The options parameters.
|
|
43
|
+
*/
|
|
44
|
+
beginCreateOrUpdate(
|
|
45
|
+
resourceGroupName: string,
|
|
46
|
+
serverName: string,
|
|
47
|
+
administratorName: AdministratorName,
|
|
48
|
+
parameters: AzureADAdministrator,
|
|
49
|
+
options?: AzureADAdministratorsCreateOrUpdateOptionalParams
|
|
50
|
+
): Promise<
|
|
51
|
+
SimplePollerLike<
|
|
52
|
+
OperationState<AzureADAdministratorsCreateOrUpdateResponse>,
|
|
53
|
+
AzureADAdministratorsCreateOrUpdateResponse
|
|
54
|
+
>
|
|
55
|
+
>;
|
|
56
|
+
/**
|
|
57
|
+
* Creates or updates an existing Azure Active Directory administrator.
|
|
58
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
59
|
+
* @param serverName The name of the server.
|
|
60
|
+
* @param administratorName The name of the Azure AD Administrator.
|
|
61
|
+
* @param parameters The required parameters for creating or updating an aad administrator.
|
|
62
|
+
* @param options The options parameters.
|
|
63
|
+
*/
|
|
64
|
+
beginCreateOrUpdateAndWait(
|
|
65
|
+
resourceGroupName: string,
|
|
66
|
+
serverName: string,
|
|
67
|
+
administratorName: AdministratorName,
|
|
68
|
+
parameters: AzureADAdministrator,
|
|
69
|
+
options?: AzureADAdministratorsCreateOrUpdateOptionalParams
|
|
70
|
+
): Promise<AzureADAdministratorsCreateOrUpdateResponse>;
|
|
71
|
+
/**
|
|
72
|
+
* Deletes an Azure AD Administrator.
|
|
73
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
74
|
+
* @param serverName The name of the server.
|
|
75
|
+
* @param administratorName The name of the Azure AD Administrator.
|
|
76
|
+
* @param options The options parameters.
|
|
77
|
+
*/
|
|
78
|
+
beginDelete(
|
|
79
|
+
resourceGroupName: string,
|
|
80
|
+
serverName: string,
|
|
81
|
+
administratorName: AdministratorName,
|
|
82
|
+
options?: AzureADAdministratorsDeleteOptionalParams
|
|
83
|
+
): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
84
|
+
/**
|
|
85
|
+
* Deletes an Azure AD Administrator.
|
|
86
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
87
|
+
* @param serverName The name of the server.
|
|
88
|
+
* @param administratorName The name of the Azure AD Administrator.
|
|
89
|
+
* @param options The options parameters.
|
|
90
|
+
*/
|
|
91
|
+
beginDeleteAndWait(
|
|
92
|
+
resourceGroupName: string,
|
|
93
|
+
serverName: string,
|
|
94
|
+
administratorName: AdministratorName,
|
|
95
|
+
options?: AzureADAdministratorsDeleteOptionalParams
|
|
96
|
+
): Promise<void>;
|
|
97
|
+
/**
|
|
98
|
+
* Gets information about an azure ad administrator.
|
|
99
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
100
|
+
* @param serverName The name of the server.
|
|
101
|
+
* @param administratorName The name of the Azure AD Administrator.
|
|
102
|
+
* @param options The options parameters.
|
|
103
|
+
*/
|
|
104
|
+
get(
|
|
105
|
+
resourceGroupName: string,
|
|
106
|
+
serverName: string,
|
|
107
|
+
administratorName: AdministratorName,
|
|
108
|
+
options?: AzureADAdministratorsGetOptionalParams
|
|
109
|
+
): Promise<AzureADAdministratorsGetResponse>;
|
|
110
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { SimplePollerLike, OperationState } from "@azure/core-lro";
|
|
10
|
+
import {
|
|
11
|
+
BackupAndExportRequest,
|
|
12
|
+
BackupAndExportCreateOptionalParams,
|
|
13
|
+
BackupAndExportCreateResponse,
|
|
14
|
+
BackupAndExportValidateBackupOptionalParams,
|
|
15
|
+
BackupAndExportValidateBackupResponse
|
|
16
|
+
} from "../models";
|
|
17
|
+
|
|
18
|
+
/** Interface representing a BackupAndExport. */
|
|
19
|
+
export interface BackupAndExport {
|
|
20
|
+
/**
|
|
21
|
+
* Exports the backup of the given server by creating a backup if not existing.
|
|
22
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
23
|
+
* @param serverName The name of the server.
|
|
24
|
+
* @param parameters The required parameters for creating and exporting backup of the given server.
|
|
25
|
+
* @param options The options parameters.
|
|
26
|
+
*/
|
|
27
|
+
beginCreate(
|
|
28
|
+
resourceGroupName: string,
|
|
29
|
+
serverName: string,
|
|
30
|
+
parameters: BackupAndExportRequest,
|
|
31
|
+
options?: BackupAndExportCreateOptionalParams
|
|
32
|
+
): Promise<
|
|
33
|
+
SimplePollerLike<
|
|
34
|
+
OperationState<BackupAndExportCreateResponse>,
|
|
35
|
+
BackupAndExportCreateResponse
|
|
36
|
+
>
|
|
37
|
+
>;
|
|
38
|
+
/**
|
|
39
|
+
* Exports the backup of the given server by creating a backup if not existing.
|
|
40
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
41
|
+
* @param serverName The name of the server.
|
|
42
|
+
* @param parameters The required parameters for creating and exporting backup of the given server.
|
|
43
|
+
* @param options The options parameters.
|
|
44
|
+
*/
|
|
45
|
+
beginCreateAndWait(
|
|
46
|
+
resourceGroupName: string,
|
|
47
|
+
serverName: string,
|
|
48
|
+
parameters: BackupAndExportRequest,
|
|
49
|
+
options?: BackupAndExportCreateOptionalParams
|
|
50
|
+
): Promise<BackupAndExportCreateResponse>;
|
|
51
|
+
/**
|
|
52
|
+
* Validates if backup can be performed for given server.
|
|
53
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
54
|
+
* @param serverName The name of the server.
|
|
55
|
+
* @param options The options parameters.
|
|
56
|
+
*/
|
|
57
|
+
validateBackup(
|
|
58
|
+
resourceGroupName: string,
|
|
59
|
+
serverName: string,
|
|
60
|
+
options?: BackupAndExportValidateBackupOptionalParams
|
|
61
|
+
): Promise<BackupAndExportValidateBackupResponse>;
|
|
62
|
+
}
|