@azure/arm-mariadb 2.1.1-alpha.20250619.1 → 2.1.1-alpha.20250718.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/lroImpl.js +11 -3
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/mariaDBManagementClient.js +46 -11
- package/dist/browser/mariaDBManagementClient.js.map +1 -1
- package/dist/browser/models/mappers.js +237 -108
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/advisors.js +23 -40
- package/dist/browser/operations/advisors.js.map +1 -1
- package/dist/browser/operations/checkNameAvailability.js +1 -0
- package/dist/browser/operations/checkNameAvailability.js.map +1 -1
- package/dist/browser/operations/configurations.js +21 -33
- package/dist/browser/operations/configurations.js.map +1 -1
- package/dist/browser/operations/databases.js +32 -39
- package/dist/browser/operations/databases.js.map +1 -1
- package/dist/browser/operations/firewallRules.js +32 -39
- package/dist/browser/operations/firewallRules.js.map +1 -1
- package/dist/browser/operations/locationBasedPerformanceTier.js +10 -27
- package/dist/browser/operations/locationBasedPerformanceTier.js.map +1 -1
- package/dist/browser/operations/locationBasedRecommendedActionSessionsOperationStatus.js +1 -0
- package/dist/browser/operations/locationBasedRecommendedActionSessionsOperationStatus.js.map +1 -1
- package/dist/browser/operations/locationBasedRecommendedActionSessionsResult.js +23 -40
- package/dist/browser/operations/locationBasedRecommendedActionSessionsResult.js.map +1 -1
- package/dist/browser/operations/logFiles.js +10 -27
- package/dist/browser/operations/logFiles.js.map +1 -1
- package/dist/browser/operations/operations.js +1 -0
- package/dist/browser/operations/operations.js.map +1 -1
- package/dist/browser/operations/privateEndpointConnections.js +56 -58
- package/dist/browser/operations/privateEndpointConnections.js.map +1 -1
- package/dist/browser/operations/privateLinkResources.js +23 -40
- package/dist/browser/operations/privateLinkResources.js.map +1 -1
- package/dist/browser/operations/queryTexts.js +23 -40
- package/dist/browser/operations/queryTexts.js.map +1 -1
- package/dist/browser/operations/recommendedActions.js +23 -40
- package/dist/browser/operations/recommendedActions.js.map +1 -1
- package/dist/browser/operations/recoverableServers.js +1 -0
- package/dist/browser/operations/recoverableServers.js.map +1 -1
- package/dist/browser/operations/replicas.js +10 -27
- package/dist/browser/operations/replicas.js.map +1 -1
- package/dist/browser/operations/serverBasedPerformanceTier.js +10 -27
- package/dist/browser/operations/serverBasedPerformanceTier.js.map +1 -1
- package/dist/browser/operations/serverParameters.js +12 -6
- package/dist/browser/operations/serverParameters.js.map +1 -1
- package/dist/browser/operations/serverSecurityAlertPolicies.js +34 -46
- package/dist/browser/operations/serverSecurityAlertPolicies.js.map +1 -1
- package/dist/browser/operations/servers.js +85 -89
- package/dist/browser/operations/servers.js.map +1 -1
- package/dist/browser/operations/topQueryStatistics.js +23 -40
- package/dist/browser/operations/topQueryStatistics.js.map +1 -1
- package/dist/browser/operations/virtualNetworkRules.js +45 -52
- package/dist/browser/operations/virtualNetworkRules.js.map +1 -1
- package/dist/browser/operations/waitStatistics.js +23 -40
- package/dist/browser/operations/waitStatistics.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/commonjs/lroImpl.js +11 -3
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/mariaDBManagementClient.js +46 -11
- package/dist/commonjs/mariaDBManagementClient.js.map +1 -1
- package/dist/commonjs/models/mappers.js +237 -108
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/advisors.js +23 -39
- package/dist/commonjs/operations/advisors.js.map +1 -1
- package/dist/commonjs/operations/checkNameAvailability.js +1 -0
- package/dist/commonjs/operations/checkNameAvailability.js.map +1 -1
- package/dist/commonjs/operations/configurations.js +21 -32
- package/dist/commonjs/operations/configurations.js.map +1 -1
- package/dist/commonjs/operations/databases.js +32 -38
- package/dist/commonjs/operations/databases.js.map +1 -1
- package/dist/commonjs/operations/firewallRules.js +32 -38
- package/dist/commonjs/operations/firewallRules.js.map +1 -1
- package/dist/commonjs/operations/locationBasedPerformanceTier.js +10 -26
- package/dist/commonjs/operations/locationBasedPerformanceTier.js.map +1 -1
- package/dist/commonjs/operations/locationBasedRecommendedActionSessionsOperationStatus.js +1 -0
- package/dist/commonjs/operations/locationBasedRecommendedActionSessionsOperationStatus.js.map +1 -1
- package/dist/commonjs/operations/locationBasedRecommendedActionSessionsResult.js +23 -39
- package/dist/commonjs/operations/locationBasedRecommendedActionSessionsResult.js.map +1 -1
- package/dist/commonjs/operations/logFiles.js +10 -26
- package/dist/commonjs/operations/logFiles.js.map +1 -1
- package/dist/commonjs/operations/operations.js +1 -0
- package/dist/commonjs/operations/operations.js.map +1 -1
- package/dist/commonjs/operations/privateEndpointConnections.js +56 -57
- package/dist/commonjs/operations/privateEndpointConnections.js.map +1 -1
- package/dist/commonjs/operations/privateLinkResources.js +23 -39
- package/dist/commonjs/operations/privateLinkResources.js.map +1 -1
- package/dist/commonjs/operations/queryTexts.js +23 -39
- package/dist/commonjs/operations/queryTexts.js.map +1 -1
- package/dist/commonjs/operations/recommendedActions.js +23 -39
- package/dist/commonjs/operations/recommendedActions.js.map +1 -1
- package/dist/commonjs/operations/recoverableServers.js +1 -0
- package/dist/commonjs/operations/recoverableServers.js.map +1 -1
- package/dist/commonjs/operations/replicas.js +10 -26
- package/dist/commonjs/operations/replicas.js.map +1 -1
- package/dist/commonjs/operations/serverBasedPerformanceTier.js +10 -26
- package/dist/commonjs/operations/serverBasedPerformanceTier.js.map +1 -1
- package/dist/commonjs/operations/serverParameters.js +12 -6
- package/dist/commonjs/operations/serverParameters.js.map +1 -1
- package/dist/commonjs/operations/serverSecurityAlertPolicies.js +34 -45
- package/dist/commonjs/operations/serverSecurityAlertPolicies.js.map +1 -1
- package/dist/commonjs/operations/servers.js +85 -88
- package/dist/commonjs/operations/servers.js.map +1 -1
- package/dist/commonjs/operations/topQueryStatistics.js +23 -39
- package/dist/commonjs/operations/topQueryStatistics.js.map +1 -1
- package/dist/commonjs/operations/virtualNetworkRules.js +45 -51
- package/dist/commonjs/operations/virtualNetworkRules.js.map +1 -1
- package/dist/commonjs/operations/waitStatistics.js +23 -39
- package/dist/commonjs/operations/waitStatistics.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/lroImpl.js +11 -3
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/mariaDBManagementClient.js +46 -11
- package/dist/esm/mariaDBManagementClient.js.map +1 -1
- package/dist/esm/models/mappers.js +237 -108
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/advisors.js +23 -40
- package/dist/esm/operations/advisors.js.map +1 -1
- package/dist/esm/operations/checkNameAvailability.js +1 -0
- package/dist/esm/operations/checkNameAvailability.js.map +1 -1
- package/dist/esm/operations/configurations.js +21 -33
- package/dist/esm/operations/configurations.js.map +1 -1
- package/dist/esm/operations/databases.js +32 -39
- package/dist/esm/operations/databases.js.map +1 -1
- package/dist/esm/operations/firewallRules.js +32 -39
- package/dist/esm/operations/firewallRules.js.map +1 -1
- package/dist/esm/operations/locationBasedPerformanceTier.js +10 -27
- package/dist/esm/operations/locationBasedPerformanceTier.js.map +1 -1
- package/dist/esm/operations/locationBasedRecommendedActionSessionsOperationStatus.js +1 -0
- package/dist/esm/operations/locationBasedRecommendedActionSessionsOperationStatus.js.map +1 -1
- package/dist/esm/operations/locationBasedRecommendedActionSessionsResult.js +23 -40
- package/dist/esm/operations/locationBasedRecommendedActionSessionsResult.js.map +1 -1
- package/dist/esm/operations/logFiles.js +10 -27
- package/dist/esm/operations/logFiles.js.map +1 -1
- package/dist/esm/operations/operations.js +1 -0
- package/dist/esm/operations/operations.js.map +1 -1
- package/dist/esm/operations/privateEndpointConnections.js +56 -58
- package/dist/esm/operations/privateEndpointConnections.js.map +1 -1
- package/dist/esm/operations/privateLinkResources.js +23 -40
- package/dist/esm/operations/privateLinkResources.js.map +1 -1
- package/dist/esm/operations/queryTexts.js +23 -40
- package/dist/esm/operations/queryTexts.js.map +1 -1
- package/dist/esm/operations/recommendedActions.js +23 -40
- package/dist/esm/operations/recommendedActions.js.map +1 -1
- package/dist/esm/operations/recoverableServers.js +1 -0
- package/dist/esm/operations/recoverableServers.js.map +1 -1
- package/dist/esm/operations/replicas.js +10 -27
- package/dist/esm/operations/replicas.js.map +1 -1
- package/dist/esm/operations/serverBasedPerformanceTier.js +10 -27
- package/dist/esm/operations/serverBasedPerformanceTier.js.map +1 -1
- package/dist/esm/operations/serverParameters.js +12 -6
- package/dist/esm/operations/serverParameters.js.map +1 -1
- package/dist/esm/operations/serverSecurityAlertPolicies.js +34 -46
- package/dist/esm/operations/serverSecurityAlertPolicies.js.map +1 -1
- package/dist/esm/operations/servers.js +85 -89
- package/dist/esm/operations/servers.js.map +1 -1
- package/dist/esm/operations/topQueryStatistics.js +23 -40
- package/dist/esm/operations/topQueryStatistics.js.map +1 -1
- package/dist/esm/operations/virtualNetworkRules.js +45 -52
- package/dist/esm/operations/virtualNetworkRules.js.map +1 -1
- package/dist/esm/operations/waitStatistics.js +23 -40
- package/dist/esm/operations/waitStatistics.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/react-native/lroImpl.js +11 -3
- package/dist/react-native/lroImpl.js.map +1 -1
- package/dist/react-native/mariaDBManagementClient.js +46 -11
- package/dist/react-native/mariaDBManagementClient.js.map +1 -1
- package/dist/react-native/models/mappers.js +237 -108
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/advisors.js +23 -40
- package/dist/react-native/operations/advisors.js.map +1 -1
- package/dist/react-native/operations/checkNameAvailability.js +1 -0
- package/dist/react-native/operations/checkNameAvailability.js.map +1 -1
- package/dist/react-native/operations/configurations.js +21 -33
- package/dist/react-native/operations/configurations.js.map +1 -1
- package/dist/react-native/operations/databases.js +32 -39
- package/dist/react-native/operations/databases.js.map +1 -1
- package/dist/react-native/operations/firewallRules.js +32 -39
- package/dist/react-native/operations/firewallRules.js.map +1 -1
- package/dist/react-native/operations/locationBasedPerformanceTier.js +10 -27
- package/dist/react-native/operations/locationBasedPerformanceTier.js.map +1 -1
- package/dist/react-native/operations/locationBasedRecommendedActionSessionsOperationStatus.js +1 -0
- package/dist/react-native/operations/locationBasedRecommendedActionSessionsOperationStatus.js.map +1 -1
- package/dist/react-native/operations/locationBasedRecommendedActionSessionsResult.js +23 -40
- package/dist/react-native/operations/locationBasedRecommendedActionSessionsResult.js.map +1 -1
- package/dist/react-native/operations/logFiles.js +10 -27
- package/dist/react-native/operations/logFiles.js.map +1 -1
- package/dist/react-native/operations/operations.js +1 -0
- package/dist/react-native/operations/operations.js.map +1 -1
- package/dist/react-native/operations/privateEndpointConnections.js +56 -58
- package/dist/react-native/operations/privateEndpointConnections.js.map +1 -1
- package/dist/react-native/operations/privateLinkResources.js +23 -40
- package/dist/react-native/operations/privateLinkResources.js.map +1 -1
- package/dist/react-native/operations/queryTexts.js +23 -40
- package/dist/react-native/operations/queryTexts.js.map +1 -1
- package/dist/react-native/operations/recommendedActions.js +23 -40
- package/dist/react-native/operations/recommendedActions.js.map +1 -1
- package/dist/react-native/operations/recoverableServers.js +1 -0
- package/dist/react-native/operations/recoverableServers.js.map +1 -1
- package/dist/react-native/operations/replicas.js +10 -27
- package/dist/react-native/operations/replicas.js.map +1 -1
- package/dist/react-native/operations/serverBasedPerformanceTier.js +10 -27
- package/dist/react-native/operations/serverBasedPerformanceTier.js.map +1 -1
- package/dist/react-native/operations/serverParameters.js +12 -6
- package/dist/react-native/operations/serverParameters.js.map +1 -1
- package/dist/react-native/operations/serverSecurityAlertPolicies.js +34 -46
- package/dist/react-native/operations/serverSecurityAlertPolicies.js.map +1 -1
- package/dist/react-native/operations/servers.js +85 -89
- package/dist/react-native/operations/servers.js.map +1 -1
- package/dist/react-native/operations/topQueryStatistics.js +23 -40
- package/dist/react-native/operations/topQueryStatistics.js.map +1 -1
- package/dist/react-native/operations/virtualNetworkRules.js +45 -52
- package/dist/react-native/operations/virtualNetworkRules.js.map +1 -1
- package/dist/react-native/operations/waitStatistics.js +23 -40
- package/dist/react-native/operations/waitStatistics.js.map +1 -1
- package/dist/react-native/pagingHelper.js +2 -4
- package/dist/react-native/pagingHelper.js.map +1 -1
- package/package.json +2 -2
- /package/review/{arm-mariadb.api.md → arm-mariadb-node.api.md} +0 -0
|
@@ -17,6 +17,7 @@ const lroImpl_js_1 = require("../lroImpl.js");
|
|
|
17
17
|
/// <reference lib="esnext.asynciterable" />
|
|
18
18
|
/** Class containing Servers operations. */
|
|
19
19
|
class ServersImpl {
|
|
20
|
+
client;
|
|
20
21
|
/**
|
|
21
22
|
* Initialize a new instance of the class Servers class.
|
|
22
23
|
* @param client Reference to the service client
|
|
@@ -39,39 +40,22 @@ class ServersImpl {
|
|
|
39
40
|
return this;
|
|
40
41
|
},
|
|
41
42
|
byPage: (settings) => {
|
|
42
|
-
if (settings
|
|
43
|
+
if (settings?.maxPageSize) {
|
|
43
44
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
44
45
|
}
|
|
45
46
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
46
47
|
}
|
|
47
48
|
};
|
|
48
49
|
}
|
|
49
|
-
listByResourceGroupPagingPage(resourceGroupName, options, _settings) {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
yield yield tslib_1.__await(result.value || []);
|
|
54
|
-
});
|
|
50
|
+
async *listByResourceGroupPagingPage(resourceGroupName, options, _settings) {
|
|
51
|
+
let result;
|
|
52
|
+
result = await this._listByResourceGroup(resourceGroupName, options);
|
|
53
|
+
yield result.value || [];
|
|
55
54
|
}
|
|
56
|
-
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
61
|
-
_c = _f.value;
|
|
62
|
-
_d = false;
|
|
63
|
-
const page = _c;
|
|
64
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
68
|
-
finally {
|
|
69
|
-
try {
|
|
70
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
71
|
-
}
|
|
72
|
-
finally { if (e_1) throw e_1.error; }
|
|
73
|
-
}
|
|
74
|
-
});
|
|
55
|
+
async *listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
56
|
+
for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) {
|
|
57
|
+
yield* page;
|
|
58
|
+
}
|
|
75
59
|
}
|
|
76
60
|
/**
|
|
77
61
|
* List all the servers in a given subscription.
|
|
@@ -87,39 +71,22 @@ class ServersImpl {
|
|
|
87
71
|
return this;
|
|
88
72
|
},
|
|
89
73
|
byPage: (settings) => {
|
|
90
|
-
if (settings
|
|
74
|
+
if (settings?.maxPageSize) {
|
|
91
75
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
92
76
|
}
|
|
93
77
|
return this.listPagingPage(options, settings);
|
|
94
78
|
}
|
|
95
79
|
};
|
|
96
80
|
}
|
|
97
|
-
listPagingPage(options, _settings) {
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
yield yield tslib_1.__await(result.value || []);
|
|
102
|
-
});
|
|
81
|
+
async *listPagingPage(options, _settings) {
|
|
82
|
+
let result;
|
|
83
|
+
result = await this._list(options);
|
|
84
|
+
yield result.value || [];
|
|
103
85
|
}
|
|
104
|
-
listPagingAll(options) {
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
109
|
-
_c = _f.value;
|
|
110
|
-
_d = false;
|
|
111
|
-
const page = _c;
|
|
112
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
116
|
-
finally {
|
|
117
|
-
try {
|
|
118
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
119
|
-
}
|
|
120
|
-
finally { if (e_2) throw e_2.error; }
|
|
121
|
-
}
|
|
122
|
-
});
|
|
86
|
+
async *listPagingAll(options) {
|
|
87
|
+
for await (const page of this.listPagingPage(options)) {
|
|
88
|
+
yield* page;
|
|
89
|
+
}
|
|
123
90
|
}
|
|
124
91
|
/**
|
|
125
92
|
* Creates a new server or updates an existing server. The update action will overwrite the existing
|
|
@@ -134,14 +101,19 @@ class ServersImpl {
|
|
|
134
101
|
return this.client.sendOperationRequest(args, spec);
|
|
135
102
|
};
|
|
136
103
|
const sendOperation = async (args, spec) => {
|
|
137
|
-
var _a;
|
|
138
104
|
let currentRawResponse = undefined;
|
|
139
|
-
const providedCallback =
|
|
105
|
+
const providedCallback = args.options?.onResponse;
|
|
140
106
|
const callback = (rawResponse, flatResponse) => {
|
|
141
107
|
currentRawResponse = rawResponse;
|
|
142
|
-
providedCallback
|
|
108
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
109
|
+
};
|
|
110
|
+
const updatedArgs = {
|
|
111
|
+
...args,
|
|
112
|
+
options: {
|
|
113
|
+
...args.options,
|
|
114
|
+
onResponse: callback
|
|
115
|
+
}
|
|
143
116
|
};
|
|
144
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
145
117
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
146
118
|
return {
|
|
147
119
|
flatResponse,
|
|
@@ -154,8 +126,8 @@ class ServersImpl {
|
|
|
154
126
|
};
|
|
155
127
|
const lro = new lroImpl_js_1.LroImpl(sendOperation, { resourceGroupName, serverName, parameters, options }, createOperationSpec);
|
|
156
128
|
const poller = new core_lro_1.LroEngine(lro, {
|
|
157
|
-
resumeFrom: options
|
|
158
|
-
intervalInMs: options
|
|
129
|
+
resumeFrom: options?.resumeFrom,
|
|
130
|
+
intervalInMs: options?.updateIntervalInMs
|
|
159
131
|
});
|
|
160
132
|
await poller.poll();
|
|
161
133
|
return poller;
|
|
@@ -185,14 +157,19 @@ class ServersImpl {
|
|
|
185
157
|
return this.client.sendOperationRequest(args, spec);
|
|
186
158
|
};
|
|
187
159
|
const sendOperation = async (args, spec) => {
|
|
188
|
-
var _a;
|
|
189
160
|
let currentRawResponse = undefined;
|
|
190
|
-
const providedCallback =
|
|
161
|
+
const providedCallback = args.options?.onResponse;
|
|
191
162
|
const callback = (rawResponse, flatResponse) => {
|
|
192
163
|
currentRawResponse = rawResponse;
|
|
193
|
-
providedCallback
|
|
164
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
165
|
+
};
|
|
166
|
+
const updatedArgs = {
|
|
167
|
+
...args,
|
|
168
|
+
options: {
|
|
169
|
+
...args.options,
|
|
170
|
+
onResponse: callback
|
|
171
|
+
}
|
|
194
172
|
};
|
|
195
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
196
173
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
197
174
|
return {
|
|
198
175
|
flatResponse,
|
|
@@ -205,8 +182,8 @@ class ServersImpl {
|
|
|
205
182
|
};
|
|
206
183
|
const lro = new lroImpl_js_1.LroImpl(sendOperation, { resourceGroupName, serverName, parameters, options }, updateOperationSpec);
|
|
207
184
|
const poller = new core_lro_1.LroEngine(lro, {
|
|
208
|
-
resumeFrom: options
|
|
209
|
-
intervalInMs: options
|
|
185
|
+
resumeFrom: options?.resumeFrom,
|
|
186
|
+
intervalInMs: options?.updateIntervalInMs
|
|
210
187
|
});
|
|
211
188
|
await poller.poll();
|
|
212
189
|
return poller;
|
|
@@ -234,14 +211,19 @@ class ServersImpl {
|
|
|
234
211
|
return this.client.sendOperationRequest(args, spec);
|
|
235
212
|
};
|
|
236
213
|
const sendOperation = async (args, spec) => {
|
|
237
|
-
var _a;
|
|
238
214
|
let currentRawResponse = undefined;
|
|
239
|
-
const providedCallback =
|
|
215
|
+
const providedCallback = args.options?.onResponse;
|
|
240
216
|
const callback = (rawResponse, flatResponse) => {
|
|
241
217
|
currentRawResponse = rawResponse;
|
|
242
|
-
providedCallback
|
|
218
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
219
|
+
};
|
|
220
|
+
const updatedArgs = {
|
|
221
|
+
...args,
|
|
222
|
+
options: {
|
|
223
|
+
...args.options,
|
|
224
|
+
onResponse: callback
|
|
225
|
+
}
|
|
243
226
|
};
|
|
244
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
245
227
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
246
228
|
return {
|
|
247
229
|
flatResponse,
|
|
@@ -254,8 +236,8 @@ class ServersImpl {
|
|
|
254
236
|
};
|
|
255
237
|
const lro = new lroImpl_js_1.LroImpl(sendOperation, { resourceGroupName, serverName, options }, deleteOperationSpec);
|
|
256
238
|
const poller = new core_lro_1.LroEngine(lro, {
|
|
257
|
-
resumeFrom: options
|
|
258
|
-
intervalInMs: options
|
|
239
|
+
resumeFrom: options?.resumeFrom,
|
|
240
|
+
intervalInMs: options?.updateIntervalInMs
|
|
259
241
|
});
|
|
260
242
|
await poller.poll();
|
|
261
243
|
return poller;
|
|
@@ -305,14 +287,19 @@ class ServersImpl {
|
|
|
305
287
|
return this.client.sendOperationRequest(args, spec);
|
|
306
288
|
};
|
|
307
289
|
const sendOperation = async (args, spec) => {
|
|
308
|
-
var _a;
|
|
309
290
|
let currentRawResponse = undefined;
|
|
310
|
-
const providedCallback =
|
|
291
|
+
const providedCallback = args.options?.onResponse;
|
|
311
292
|
const callback = (rawResponse, flatResponse) => {
|
|
312
293
|
currentRawResponse = rawResponse;
|
|
313
|
-
providedCallback
|
|
294
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
295
|
+
};
|
|
296
|
+
const updatedArgs = {
|
|
297
|
+
...args,
|
|
298
|
+
options: {
|
|
299
|
+
...args.options,
|
|
300
|
+
onResponse: callback
|
|
301
|
+
}
|
|
314
302
|
};
|
|
315
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
316
303
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
317
304
|
return {
|
|
318
305
|
flatResponse,
|
|
@@ -325,8 +312,8 @@ class ServersImpl {
|
|
|
325
312
|
};
|
|
326
313
|
const lro = new lroImpl_js_1.LroImpl(sendOperation, { resourceGroupName, serverName, options }, restartOperationSpec);
|
|
327
314
|
const poller = new core_lro_1.LroEngine(lro, {
|
|
328
|
-
resumeFrom: options
|
|
329
|
-
intervalInMs: options
|
|
315
|
+
resumeFrom: options?.resumeFrom,
|
|
316
|
+
intervalInMs: options?.updateIntervalInMs
|
|
330
317
|
});
|
|
331
318
|
await poller.poll();
|
|
332
319
|
return poller;
|
|
@@ -352,14 +339,19 @@ class ServersImpl {
|
|
|
352
339
|
return this.client.sendOperationRequest(args, spec);
|
|
353
340
|
};
|
|
354
341
|
const sendOperation = async (args, spec) => {
|
|
355
|
-
var _a;
|
|
356
342
|
let currentRawResponse = undefined;
|
|
357
|
-
const providedCallback =
|
|
343
|
+
const providedCallback = args.options?.onResponse;
|
|
358
344
|
const callback = (rawResponse, flatResponse) => {
|
|
359
345
|
currentRawResponse = rawResponse;
|
|
360
|
-
providedCallback
|
|
346
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
347
|
+
};
|
|
348
|
+
const updatedArgs = {
|
|
349
|
+
...args,
|
|
350
|
+
options: {
|
|
351
|
+
...args.options,
|
|
352
|
+
onResponse: callback
|
|
353
|
+
}
|
|
361
354
|
};
|
|
362
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
363
355
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
364
356
|
return {
|
|
365
357
|
flatResponse,
|
|
@@ -372,8 +364,8 @@ class ServersImpl {
|
|
|
372
364
|
};
|
|
373
365
|
const lro = new lroImpl_js_1.LroImpl(sendOperation, { resourceGroupName, serverName, options }, startOperationSpec);
|
|
374
366
|
const poller = new core_lro_1.LroEngine(lro, {
|
|
375
|
-
resumeFrom: options
|
|
376
|
-
intervalInMs: options
|
|
367
|
+
resumeFrom: options?.resumeFrom,
|
|
368
|
+
intervalInMs: options?.updateIntervalInMs
|
|
377
369
|
});
|
|
378
370
|
await poller.poll();
|
|
379
371
|
return poller;
|
|
@@ -399,14 +391,19 @@ class ServersImpl {
|
|
|
399
391
|
return this.client.sendOperationRequest(args, spec);
|
|
400
392
|
};
|
|
401
393
|
const sendOperation = async (args, spec) => {
|
|
402
|
-
var _a;
|
|
403
394
|
let currentRawResponse = undefined;
|
|
404
|
-
const providedCallback =
|
|
395
|
+
const providedCallback = args.options?.onResponse;
|
|
405
396
|
const callback = (rawResponse, flatResponse) => {
|
|
406
397
|
currentRawResponse = rawResponse;
|
|
407
|
-
providedCallback
|
|
398
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
399
|
+
};
|
|
400
|
+
const updatedArgs = {
|
|
401
|
+
...args,
|
|
402
|
+
options: {
|
|
403
|
+
...args.options,
|
|
404
|
+
onResponse: callback
|
|
405
|
+
}
|
|
408
406
|
};
|
|
409
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
410
407
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
411
408
|
return {
|
|
412
409
|
flatResponse,
|
|
@@ -419,8 +416,8 @@ class ServersImpl {
|
|
|
419
416
|
};
|
|
420
417
|
const lro = new lroImpl_js_1.LroImpl(sendOperation, { resourceGroupName, serverName, options }, stopOperationSpec);
|
|
421
418
|
const poller = new core_lro_1.LroEngine(lro, {
|
|
422
|
-
resumeFrom: options
|
|
423
|
-
intervalInMs: options
|
|
419
|
+
resumeFrom: options?.resumeFrom,
|
|
420
|
+
intervalInMs: options?.updateIntervalInMs
|
|
424
421
|
});
|
|
425
422
|
await poller.poll();
|
|
426
423
|
return poller;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"servers.js","sourceRoot":"","sources":["../../../src/operations/servers.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAIH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAA4E;AAC5E,8CAAwC;AAqBxC,4CAA4C;AAC5C,2CAA2C;AAC3C,MAAa,WAAW;IAGtB;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,mBAAmB,CACxB,iBAAyB,EACzB,OAAkD;QAElD,MAAM,IAAI,GAAG,IAAI,CAAC,4BAA4B,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAC;QAC3E,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,6BAA6B,CACvC,iBAAiB,EACjB,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,C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AU,CAAC,UAAU;KACtB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,kBAAkB,GAA6B;IACnD,IAAI,EACF,gIAAgI;IAClI,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,uBAAuB;SAC5C;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,UAAU;KACtB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EACF,+HAA+H;IACjI,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,uBAAuB;SAC5C;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,UAAU;KACtB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { Servers } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { MariaDBManagementClient } from \"../mariaDBManagementClient.js\";\nimport { PollerLike, PollOperationState, LroEngine } from \"@azure/core-lro\";\nimport { LroImpl } from \"../lroImpl.js\";\nimport {\n Server,\n ServersListByResourceGroupOptionalParams,\n ServersListByResourceGroupResponse,\n ServersListOptionalParams,\n ServersListResponse,\n ServerForCreate,\n ServersCreateOptionalParams,\n ServersCreateResponse,\n ServerUpdateParameters,\n ServersUpdateOptionalParams,\n ServersUpdateResponse,\n ServersDeleteOptionalParams,\n ServersGetOptionalParams,\n ServersGetResponse,\n ServersRestartOptionalParams,\n ServersStartOptionalParams,\n ServersStopOptionalParams\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Servers operations. */\nexport class ServersImpl implements Servers {\n private readonly client: MariaDBManagementClient;\n\n /**\n * Initialize a new instance of the class Servers class.\n * @param client Reference to the service client\n */\n constructor(client: MariaDBManagementClient) {\n this.client = client;\n }\n\n /**\n * List all the servers in a given resource group.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n public listByResourceGroup(\n resourceGroupName: string,\n options?: ServersListByResourceGroupOptionalParams\n ): PagedAsyncIterableIterator<Server> {\n const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByResourceGroupPagingPage(\n resourceGroupName: string,\n options?: ServersListByResourceGroupOptionalParams,\n _settings?: PageSettings\n ): AsyncIterableIterator<Server[]> {\n let result: ServersListByResourceGroupResponse;\n result = await this._listByResourceGroup(resourceGroupName, options);\n yield result.value || [];\n }\n\n private async *listByResourceGroupPagingAll(\n resourceGroupName: string,\n options?: ServersListByResourceGroupOptionalParams\n ): AsyncIterableIterator<Server> {\n for await (const page of this.listByResourceGroupPagingPage(\n resourceGroupName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * List all the servers in a given subscription.\n * @param options The options parameters.\n */\n public list(\n options?: ServersListOptionalParams\n ): PagedAsyncIterableIterator<Server> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n options?: ServersListOptionalParams,\n _settings?: PageSettings\n ): AsyncIterableIterator<Server[]> {\n let result: ServersListResponse;\n result = await this._list(options);\n yield result.value || [];\n }\n\n private async *listPagingAll(\n options?: ServersListOptionalParams\n ): AsyncIterableIterator<Server> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Creates a new server or updates an existing server. The update action will overwrite the existing\n * server.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serverName The name of the server.\n * @param parameters The required parameters for creating or updating a server.\n * @param options The options parameters.\n */\n async beginCreate(\n resourceGroupName: string,\n serverName: string,\n parameters: ServerForCreate,\n options?: ServersCreateOptionalParams\n ): Promise<\n PollerLike<PollOperationState<ServersCreateResponse>, ServersCreateResponse>\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<ServersCreateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new LroImpl(\n sendOperation,\n { resourceGroupName, serverName, parameters, options },\n createOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Creates a new server or updates an existing server. The update action will overwrite the existing\n * server.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serverName The name of the server.\n * @param parameters The required parameters for creating or updating a server.\n * @param options The options parameters.\n */\n async beginCreateAndWait(\n resourceGroupName: string,\n serverName: string,\n parameters: ServerForCreate,\n options?: ServersCreateOptionalParams\n ): Promise<ServersCreateResponse> {\n const poller = await this.beginCreate(\n resourceGroupName,\n serverName,\n parameters,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Updates an existing server. The request body can contain one to many of the properties present in\n * the normal server definition.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serverName The name of the server.\n * @param parameters The required parameters for updating a server.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n serverName: string,\n parameters: ServerUpdateParameters,\n options?: ServersUpdateOptionalParams\n ): Promise<\n PollerLike<PollOperationState<ServersUpdateResponse>, ServersUpdateResponse>\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<ServersUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new LroImpl(\n sendOperation,\n { resourceGroupName, serverName, parameters, options },\n updateOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Updates an existing server. The request body can contain one to many of the properties present in\n * the normal server definition.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serverName The name of the server.\n * @param parameters The required parameters for updating a server.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n serverName: string,\n parameters: ServerUpdateParameters,\n options?: ServersUpdateOptionalParams\n ): Promise<ServersUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n serverName,\n parameters,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes a server.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serverName The name of the server.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n serverName: string,\n options?: ServersDeleteOptionalParams\n ): Promise<PollerLike<PollOperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new LroImpl(\n sendOperation,\n { resourceGroupName, serverName, options },\n deleteOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes a server.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serverName The name of the server.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n serverName: string,\n options?: ServersDeleteOptionalParams\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n serverName,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Gets information about a server.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serverName The name of the server.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n serverName: string,\n options?: ServersGetOptionalParams\n ): Promise<ServersGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, serverName, options },\n getOperationSpec\n );\n }\n\n /**\n * List all the servers in a given resource group.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n private _listByResourceGroup(\n resourceGroupName: string,\n options?: ServersListByResourceGroupOptionalParams\n ): Promise<ServersListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec\n );\n }\n\n /**\n * List all the servers in a given subscription.\n * @param options The options parameters.\n */\n private _list(\n options?: ServersListOptionalParams\n ): Promise<ServersListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * Restarts a server.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serverName The name of the server.\n * @param options The options parameters.\n */\n async beginRestart(\n resourceGroupName: string,\n serverName: string,\n options?: ServersRestartOptionalParams\n ): Promise<PollerLike<PollOperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new LroImpl(\n sendOperation,\n { resourceGroupName, serverName, options },\n restartOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Restarts a server.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serverName The name of the server.\n * @param options The options parameters.\n */\n async beginRestartAndWait(\n resourceGroupName: string,\n serverName: string,\n options?: ServersRestartOptionalParams\n ): Promise<void> {\n const poller = await this.beginRestart(\n resourceGroupName,\n serverName,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Starts a stopped server.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serverName The name of the server.\n * @param options The options parameters.\n */\n async beginStart(\n resourceGroupName: string,\n serverName: string,\n options?: ServersStartOptionalParams\n ): Promise<PollerLike<PollOperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new LroImpl(\n sendOperation,\n { resourceGroupName, serverName, options },\n startOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Starts a stopped server.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serverName The name of the server.\n * @param options The options parameters.\n */\n async beginStartAndWait(\n resourceGroupName: string,\n serverName: string,\n options?: ServersStartOptionalParams\n ): Promise<void> {\n const poller = await this.beginStart(\n resourceGroupName,\n serverName,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Stops a running server.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serverName The name of the server.\n * @param options The options parameters.\n */\n async beginStop(\n resourceGroupName: string,\n serverName: string,\n options?: ServersStopOptionalParams\n ): Promise<PollerLike<PollOperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new LroImpl(\n sendOperation,\n { resourceGroupName, serverName, options },\n stopOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Stops a running server.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serverName The name of the server.\n * @param options The options parameters.\n */\n async beginStopAndWait(\n resourceGroupName: string,\n serverName: string,\n options?: ServersStopOptionalParams\n ): Promise<void> {\n const poller = await this.beginStop(resourceGroupName, serverName, options);\n return poller.pollUntilDone();\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Server\n },\n 201: {\n bodyMapper: Mappers.Server\n },\n 202: {\n bodyMapper: Mappers.Server\n },\n 204: {\n bodyMapper: Mappers.Server\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: Parameters.parameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.serverName\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.Server\n },\n 201: {\n bodyMapper: Mappers.Server\n },\n 202: {\n bodyMapper: Mappers.Server\n },\n 204: {\n bodyMapper: Mappers.Server\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: Parameters.parameters1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.serverName\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.serverName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Server\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.serverName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ServerListResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.DBforMariaDB/servers\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ServerListResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst restartOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/restart\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.serverName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst startOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/start\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudErrorAutoGenerated\n }\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.serverName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst stopOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/stop\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudErrorAutoGenerated\n }\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.serverName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
1
|
+
{"version":3,"file":"servers.js","sourceRoot":"","sources":["../../../src/operations/servers.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAIH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAA4E;AAC5E,8CAAwC;AAqBxC,4CAA4C;AAC5C,2CAA2C;AAC3C,MAAa,WAAW;IACL,MAAM,CAA0B;IAEjD;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,mBAAmB,CACxB,iBAAyB,EACzB,OAAkD;QAElD,MAAM,IAAI,GAAG,IAAI,CAAC,4BAA4B,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAC;QAC3E,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,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U,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,UAAU;KACtB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EACF,+HAA+H;IACjI,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,uBAAuB;SAC5C;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,UAAU;KACtB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { Servers } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { MariaDBManagementClient } from \"../mariaDBManagementClient.js\";\nimport { PollerLike, PollOperationState, LroEngine } from \"@azure/core-lro\";\nimport { LroImpl } from \"../lroImpl.js\";\nimport {\n Server,\n ServersListByResourceGroupOptionalParams,\n ServersListByResourceGroupResponse,\n ServersListOptionalParams,\n ServersListResponse,\n ServerForCreate,\n ServersCreateOptionalParams,\n ServersCreateResponse,\n ServerUpdateParameters,\n ServersUpdateOptionalParams,\n ServersUpdateResponse,\n ServersDeleteOptionalParams,\n ServersGetOptionalParams,\n ServersGetResponse,\n ServersRestartOptionalParams,\n ServersStartOptionalParams,\n ServersStopOptionalParams\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Servers operations. */\nexport class ServersImpl implements Servers {\n private readonly client: MariaDBManagementClient;\n\n /**\n * Initialize a new instance of the class Servers class.\n * @param client Reference to the service client\n */\n constructor(client: MariaDBManagementClient) {\n this.client = client;\n }\n\n /**\n * List all the servers in a given resource group.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n public listByResourceGroup(\n resourceGroupName: string,\n options?: ServersListByResourceGroupOptionalParams\n ): PagedAsyncIterableIterator<Server> {\n const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByResourceGroupPagingPage(\n resourceGroupName: string,\n options?: ServersListByResourceGroupOptionalParams,\n _settings?: PageSettings\n ): AsyncIterableIterator<Server[]> {\n let result: ServersListByResourceGroupResponse;\n result = await this._listByResourceGroup(resourceGroupName, options);\n yield result.value || [];\n }\n\n private async *listByResourceGroupPagingAll(\n resourceGroupName: string,\n options?: ServersListByResourceGroupOptionalParams\n ): AsyncIterableIterator<Server> {\n for await (const page of this.listByResourceGroupPagingPage(\n resourceGroupName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * List all the servers in a given subscription.\n * @param options The options parameters.\n */\n public list(\n options?: ServersListOptionalParams\n ): PagedAsyncIterableIterator<Server> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n options?: ServersListOptionalParams,\n _settings?: PageSettings\n ): AsyncIterableIterator<Server[]> {\n let result: ServersListResponse;\n result = await this._list(options);\n yield result.value || [];\n }\n\n private async *listPagingAll(\n options?: ServersListOptionalParams\n ): AsyncIterableIterator<Server> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Creates a new server or updates an existing server. The update action will overwrite the existing\n * server.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serverName The name of the server.\n * @param parameters The required parameters for creating or updating a server.\n * @param options The options parameters.\n */\n async beginCreate(\n resourceGroupName: string,\n serverName: string,\n parameters: ServerForCreate,\n options?: ServersCreateOptionalParams\n ): Promise<\n PollerLike<PollOperationState<ServersCreateResponse>, ServersCreateResponse>\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<ServersCreateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new LroImpl(\n sendOperation,\n { resourceGroupName, serverName, parameters, options },\n createOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Creates a new server or updates an existing server. The update action will overwrite the existing\n * server.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serverName The name of the server.\n * @param parameters The required parameters for creating or updating a server.\n * @param options The options parameters.\n */\n async beginCreateAndWait(\n resourceGroupName: string,\n serverName: string,\n parameters: ServerForCreate,\n options?: ServersCreateOptionalParams\n ): Promise<ServersCreateResponse> {\n const poller = await this.beginCreate(\n resourceGroupName,\n serverName,\n parameters,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Updates an existing server. The request body can contain one to many of the properties present in\n * the normal server definition.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serverName The name of the server.\n * @param parameters The required parameters for updating a server.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n serverName: string,\n parameters: ServerUpdateParameters,\n options?: ServersUpdateOptionalParams\n ): Promise<\n PollerLike<PollOperationState<ServersUpdateResponse>, ServersUpdateResponse>\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<ServersUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new LroImpl(\n sendOperation,\n { resourceGroupName, serverName, parameters, options },\n updateOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Updates an existing server. The request body can contain one to many of the properties present in\n * the normal server definition.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serverName The name of the server.\n * @param parameters The required parameters for updating a server.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n serverName: string,\n parameters: ServerUpdateParameters,\n options?: ServersUpdateOptionalParams\n ): Promise<ServersUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n serverName,\n parameters,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes a server.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serverName The name of the server.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n serverName: string,\n options?: ServersDeleteOptionalParams\n ): Promise<PollerLike<PollOperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new LroImpl(\n sendOperation,\n { resourceGroupName, serverName, options },\n deleteOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes a server.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serverName The name of the server.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n serverName: string,\n options?: ServersDeleteOptionalParams\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n serverName,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Gets information about a server.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serverName The name of the server.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n serverName: string,\n options?: ServersGetOptionalParams\n ): Promise<ServersGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, serverName, options },\n getOperationSpec\n );\n }\n\n /**\n * List all the servers in a given resource group.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n private _listByResourceGroup(\n resourceGroupName: string,\n options?: ServersListByResourceGroupOptionalParams\n ): Promise<ServersListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec\n );\n }\n\n /**\n * List all the servers in a given subscription.\n * @param options The options parameters.\n */\n private _list(\n options?: ServersListOptionalParams\n ): Promise<ServersListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * Restarts a server.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serverName The name of the server.\n * @param options The options parameters.\n */\n async beginRestart(\n resourceGroupName: string,\n serverName: string,\n options?: ServersRestartOptionalParams\n ): Promise<PollerLike<PollOperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new LroImpl(\n sendOperation,\n { resourceGroupName, serverName, options },\n restartOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Restarts a server.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serverName The name of the server.\n * @param options The options parameters.\n */\n async beginRestartAndWait(\n resourceGroupName: string,\n serverName: string,\n options?: ServersRestartOptionalParams\n ): Promise<void> {\n const poller = await this.beginRestart(\n resourceGroupName,\n serverName,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Starts a stopped server.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serverName The name of the server.\n * @param options The options parameters.\n */\n async beginStart(\n resourceGroupName: string,\n serverName: string,\n options?: ServersStartOptionalParams\n ): Promise<PollerLike<PollOperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new LroImpl(\n sendOperation,\n { resourceGroupName, serverName, options },\n startOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Starts a stopped server.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serverName The name of the server.\n * @param options The options parameters.\n */\n async beginStartAndWait(\n resourceGroupName: string,\n serverName: string,\n options?: ServersStartOptionalParams\n ): Promise<void> {\n const poller = await this.beginStart(\n resourceGroupName,\n serverName,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Stops a running server.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serverName The name of the server.\n * @param options The options parameters.\n */\n async beginStop(\n resourceGroupName: string,\n serverName: string,\n options?: ServersStopOptionalParams\n ): Promise<PollerLike<PollOperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new LroImpl(\n sendOperation,\n { resourceGroupName, serverName, options },\n stopOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Stops a running server.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serverName The name of the server.\n * @param options The options parameters.\n */\n async beginStopAndWait(\n resourceGroupName: string,\n serverName: string,\n options?: ServersStopOptionalParams\n ): Promise<void> {\n const poller = await this.beginStop(resourceGroupName, serverName, options);\n return poller.pollUntilDone();\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Server\n },\n 201: {\n bodyMapper: Mappers.Server\n },\n 202: {\n bodyMapper: Mappers.Server\n },\n 204: {\n bodyMapper: Mappers.Server\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: Parameters.parameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.serverName\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.Server\n },\n 201: {\n bodyMapper: Mappers.Server\n },\n 202: {\n bodyMapper: Mappers.Server\n },\n 204: {\n bodyMapper: Mappers.Server\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: Parameters.parameters1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.serverName\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.serverName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Server\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.serverName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ServerListResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.DBforMariaDB/servers\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ServerListResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst restartOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/restart\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.serverName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst startOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/start\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudErrorAutoGenerated\n }\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.serverName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst stopOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/stop\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudErrorAutoGenerated\n }\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.serverName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -16,6 +16,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
|
16
16
|
/// <reference lib="esnext.asynciterable" />
|
|
17
17
|
/** Class containing TopQueryStatistics operations. */
|
|
18
18
|
class TopQueryStatisticsImpl {
|
|
19
|
+
client;
|
|
19
20
|
/**
|
|
20
21
|
* Initialize a new instance of the class TopQueryStatistics class.
|
|
21
22
|
* @param client Reference to the service client
|
|
@@ -40,52 +41,35 @@ class TopQueryStatisticsImpl {
|
|
|
40
41
|
return this;
|
|
41
42
|
},
|
|
42
43
|
byPage: (settings) => {
|
|
43
|
-
if (settings
|
|
44
|
+
if (settings?.maxPageSize) {
|
|
44
45
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
45
46
|
}
|
|
46
47
|
return this.listByServerPagingPage(resourceGroupName, serverName, parameters, options, settings);
|
|
47
48
|
}
|
|
48
49
|
};
|
|
49
50
|
}
|
|
50
|
-
listByServerPagingPage(resourceGroupName, serverName, parameters, options, settings) {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
}
|
|
68
|
-
});
|
|
51
|
+
async *listByServerPagingPage(resourceGroupName, serverName, parameters, options, settings) {
|
|
52
|
+
let result;
|
|
53
|
+
let continuationToken = settings?.continuationToken;
|
|
54
|
+
if (!continuationToken) {
|
|
55
|
+
result = await this._listByServer(resourceGroupName, serverName, parameters, options);
|
|
56
|
+
let page = result.value || [];
|
|
57
|
+
continuationToken = result.nextLink;
|
|
58
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
59
|
+
yield page;
|
|
60
|
+
}
|
|
61
|
+
while (continuationToken) {
|
|
62
|
+
result = await this._listByServerNext(resourceGroupName, serverName, parameters, continuationToken, options);
|
|
63
|
+
continuationToken = result.nextLink;
|
|
64
|
+
let page = result.value || [];
|
|
65
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
66
|
+
yield page;
|
|
67
|
+
}
|
|
69
68
|
}
|
|
70
|
-
listByServerPagingAll(resourceGroupName, serverName, parameters, options) {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listByServerPagingPage(resourceGroupName, serverName, parameters, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
75
|
-
_c = _f.value;
|
|
76
|
-
_d = false;
|
|
77
|
-
const page = _c;
|
|
78
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
82
|
-
finally {
|
|
83
|
-
try {
|
|
84
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
85
|
-
}
|
|
86
|
-
finally { if (e_1) throw e_1.error; }
|
|
87
|
-
}
|
|
88
|
-
});
|
|
69
|
+
async *listByServerPagingAll(resourceGroupName, serverName, parameters, options) {
|
|
70
|
+
for await (const page of this.listByServerPagingPage(resourceGroupName, serverName, parameters, options)) {
|
|
71
|
+
yield* page;
|
|
72
|
+
}
|
|
89
73
|
}
|
|
90
74
|
/**
|
|
91
75
|
* Retrieve the query statistic for specified identifier.
|