@azure/arm-mysql-flexible 3.1.1-alpha.20230501.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/types/tsdoc-metadata.json +1 -1
package/src/operations/index.ts
CHANGED
|
@@ -6,14 +6,18 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
export * from "./
|
|
10
|
-
export * from "./replicas";
|
|
9
|
+
export * from "./azureADAdministrators";
|
|
11
10
|
export * from "./backups";
|
|
12
|
-
export * from "./
|
|
13
|
-
export * from "./databases";
|
|
11
|
+
export * from "./backupAndExport";
|
|
14
12
|
export * from "./configurations";
|
|
13
|
+
export * from "./databases";
|
|
14
|
+
export * from "./firewallRules";
|
|
15
|
+
export * from "./servers";
|
|
16
|
+
export * from "./replicas";
|
|
17
|
+
export * from "./logFiles";
|
|
15
18
|
export * from "./locationBasedCapabilities";
|
|
16
19
|
export * from "./checkVirtualNetworkSubnetUsage";
|
|
17
20
|
export * from "./checkNameAvailability";
|
|
21
|
+
export * from "./checkNameAvailabilityWithoutLocation";
|
|
18
22
|
export * from "./getPrivateDnsZoneSuffix";
|
|
19
23
|
export * from "./operations";
|
|
@@ -0,0 +1,198 @@
|
|
|
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, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
11
|
+
import { LogFiles } from "../operationsInterfaces";
|
|
12
|
+
import * as coreClient from "@azure/core-client";
|
|
13
|
+
import * as Mappers from "../models/mappers";
|
|
14
|
+
import * as Parameters from "../models/parameters";
|
|
15
|
+
import { MySQLManagementFlexibleServerClient } from "../mySQLManagementFlexibleServerClient";
|
|
16
|
+
import {
|
|
17
|
+
LogFile,
|
|
18
|
+
LogFilesListByServerNextOptionalParams,
|
|
19
|
+
LogFilesListByServerOptionalParams,
|
|
20
|
+
LogFilesListByServerResponse,
|
|
21
|
+
LogFilesListByServerNextResponse
|
|
22
|
+
} from "../models";
|
|
23
|
+
|
|
24
|
+
/// <reference lib="esnext.asynciterable" />
|
|
25
|
+
/** Class containing LogFiles operations. */
|
|
26
|
+
export class LogFilesImpl implements LogFiles {
|
|
27
|
+
private readonly client: MySQLManagementFlexibleServerClient;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Initialize a new instance of the class LogFiles class.
|
|
31
|
+
* @param client Reference to the service client
|
|
32
|
+
*/
|
|
33
|
+
constructor(client: MySQLManagementFlexibleServerClient) {
|
|
34
|
+
this.client = client;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* List all the server log files in a given server.
|
|
39
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
40
|
+
* @param serverName The name of the server.
|
|
41
|
+
* @param options The options parameters.
|
|
42
|
+
*/
|
|
43
|
+
public listByServer(
|
|
44
|
+
resourceGroupName: string,
|
|
45
|
+
serverName: string,
|
|
46
|
+
options?: LogFilesListByServerOptionalParams
|
|
47
|
+
): PagedAsyncIterableIterator<LogFile> {
|
|
48
|
+
const iter = this.listByServerPagingAll(
|
|
49
|
+
resourceGroupName,
|
|
50
|
+
serverName,
|
|
51
|
+
options
|
|
52
|
+
);
|
|
53
|
+
return {
|
|
54
|
+
next() {
|
|
55
|
+
return iter.next();
|
|
56
|
+
},
|
|
57
|
+
[Symbol.asyncIterator]() {
|
|
58
|
+
return this;
|
|
59
|
+
},
|
|
60
|
+
byPage: (settings?: PageSettings) => {
|
|
61
|
+
if (settings?.maxPageSize) {
|
|
62
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
63
|
+
}
|
|
64
|
+
return this.listByServerPagingPage(
|
|
65
|
+
resourceGroupName,
|
|
66
|
+
serverName,
|
|
67
|
+
options,
|
|
68
|
+
settings
|
|
69
|
+
);
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
private async *listByServerPagingPage(
|
|
75
|
+
resourceGroupName: string,
|
|
76
|
+
serverName: string,
|
|
77
|
+
options?: LogFilesListByServerOptionalParams,
|
|
78
|
+
settings?: PageSettings
|
|
79
|
+
): AsyncIterableIterator<LogFile[]> {
|
|
80
|
+
let result: LogFilesListByServerResponse;
|
|
81
|
+
let continuationToken = settings?.continuationToken;
|
|
82
|
+
if (!continuationToken) {
|
|
83
|
+
result = await this._listByServer(resourceGroupName, serverName, options);
|
|
84
|
+
let page = result.value || [];
|
|
85
|
+
continuationToken = result.nextLink;
|
|
86
|
+
setContinuationToken(page, continuationToken);
|
|
87
|
+
yield page;
|
|
88
|
+
}
|
|
89
|
+
while (continuationToken) {
|
|
90
|
+
result = await this._listByServerNext(
|
|
91
|
+
resourceGroupName,
|
|
92
|
+
serverName,
|
|
93
|
+
continuationToken,
|
|
94
|
+
options
|
|
95
|
+
);
|
|
96
|
+
continuationToken = result.nextLink;
|
|
97
|
+
let page = result.value || [];
|
|
98
|
+
setContinuationToken(page, continuationToken);
|
|
99
|
+
yield page;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
private async *listByServerPagingAll(
|
|
104
|
+
resourceGroupName: string,
|
|
105
|
+
serverName: string,
|
|
106
|
+
options?: LogFilesListByServerOptionalParams
|
|
107
|
+
): AsyncIterableIterator<LogFile> {
|
|
108
|
+
for await (const page of this.listByServerPagingPage(
|
|
109
|
+
resourceGroupName,
|
|
110
|
+
serverName,
|
|
111
|
+
options
|
|
112
|
+
)) {
|
|
113
|
+
yield* page;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* List all the server log files in a given server.
|
|
119
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
120
|
+
* @param serverName The name of the server.
|
|
121
|
+
* @param options The options parameters.
|
|
122
|
+
*/
|
|
123
|
+
private _listByServer(
|
|
124
|
+
resourceGroupName: string,
|
|
125
|
+
serverName: string,
|
|
126
|
+
options?: LogFilesListByServerOptionalParams
|
|
127
|
+
): Promise<LogFilesListByServerResponse> {
|
|
128
|
+
return this.client.sendOperationRequest(
|
|
129
|
+
{ resourceGroupName, serverName, options },
|
|
130
|
+
listByServerOperationSpec
|
|
131
|
+
);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* ListByServerNext
|
|
136
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
137
|
+
* @param serverName The name of the server.
|
|
138
|
+
* @param nextLink The nextLink from the previous successful call to the ListByServer method.
|
|
139
|
+
* @param options The options parameters.
|
|
140
|
+
*/
|
|
141
|
+
private _listByServerNext(
|
|
142
|
+
resourceGroupName: string,
|
|
143
|
+
serverName: string,
|
|
144
|
+
nextLink: string,
|
|
145
|
+
options?: LogFilesListByServerNextOptionalParams
|
|
146
|
+
): Promise<LogFilesListByServerNextResponse> {
|
|
147
|
+
return this.client.sendOperationRequest(
|
|
148
|
+
{ resourceGroupName, serverName, nextLink, options },
|
|
149
|
+
listByServerNextOperationSpec
|
|
150
|
+
);
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
// Operation Specifications
|
|
154
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
155
|
+
|
|
156
|
+
const listByServerOperationSpec: coreClient.OperationSpec = {
|
|
157
|
+
path:
|
|
158
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/logFiles",
|
|
159
|
+
httpMethod: "GET",
|
|
160
|
+
responses: {
|
|
161
|
+
200: {
|
|
162
|
+
bodyMapper: Mappers.LogFileListResult
|
|
163
|
+
},
|
|
164
|
+
default: {
|
|
165
|
+
bodyMapper: Mappers.CloudError
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
queryParameters: [Parameters.apiVersion],
|
|
169
|
+
urlParameters: [
|
|
170
|
+
Parameters.$host,
|
|
171
|
+
Parameters.subscriptionId,
|
|
172
|
+
Parameters.resourceGroupName,
|
|
173
|
+
Parameters.serverName
|
|
174
|
+
],
|
|
175
|
+
headerParameters: [Parameters.accept],
|
|
176
|
+
serializer
|
|
177
|
+
};
|
|
178
|
+
const listByServerNextOperationSpec: coreClient.OperationSpec = {
|
|
179
|
+
path: "{nextLink}",
|
|
180
|
+
httpMethod: "GET",
|
|
181
|
+
responses: {
|
|
182
|
+
200: {
|
|
183
|
+
bodyMapper: Mappers.LogFileListResult
|
|
184
|
+
},
|
|
185
|
+
default: {
|
|
186
|
+
bodyMapper: Mappers.CloudError
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
urlParameters: [
|
|
190
|
+
Parameters.$host,
|
|
191
|
+
Parameters.subscriptionId,
|
|
192
|
+
Parameters.resourceGroupName,
|
|
193
|
+
Parameters.serverName,
|
|
194
|
+
Parameters.nextLink
|
|
195
|
+
],
|
|
196
|
+
headerParameters: [Parameters.accept],
|
|
197
|
+
serializer
|
|
198
|
+
};
|
|
@@ -165,7 +165,7 @@ const listByServerOperationSpec: coreClient.OperationSpec = {
|
|
|
165
165
|
bodyMapper: Mappers.CloudError
|
|
166
166
|
}
|
|
167
167
|
},
|
|
168
|
-
queryParameters: [Parameters.
|
|
168
|
+
queryParameters: [Parameters.apiVersion1],
|
|
169
169
|
urlParameters: [
|
|
170
170
|
Parameters.$host,
|
|
171
171
|
Parameters.subscriptionId,
|