@azure/arm-networkcloud 1.2.0-alpha.20250718.1 → 1.2.0-alpha.20250730.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/dist/browser/lroImpl.js +7 -3
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/mappers.js +648 -314
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/networkCloud.js +33 -5
- package/dist/browser/networkCloud.js.map +1 -1
- package/dist/browser/operations/agentPools.js +56 -58
- package/dist/browser/operations/agentPools.js.map +1 -1
- package/dist/browser/operations/bareMetalMachineKeySets.js +56 -58
- package/dist/browser/operations/bareMetalMachineKeySets.js.map +1 -1
- package/dist/browser/operations/bareMetalMachines.js +188 -157
- package/dist/browser/operations/bareMetalMachines.js.map +1 -1
- package/dist/browser/operations/bmcKeySets.js +56 -58
- package/dist/browser/operations/bmcKeySets.js.map +1 -1
- package/dist/browser/operations/cloudServicesNetworks.js +78 -97
- package/dist/browser/operations/cloudServicesNetworks.js.map +1 -1
- package/dist/browser/operations/clusterManagers.js +67 -91
- package/dist/browser/operations/clusterManagers.js.map +1 -1
- package/dist/browser/operations/clusters.js +122 -121
- package/dist/browser/operations/clusters.js.map +1 -1
- package/dist/browser/operations/consoles.js +56 -58
- package/dist/browser/operations/consoles.js.map +1 -1
- package/dist/browser/operations/kubernetesClusterFeatures.js +56 -58
- package/dist/browser/operations/kubernetesClusterFeatures.js.map +1 -1
- package/dist/browser/operations/kubernetesClusters.js +89 -103
- package/dist/browser/operations/kubernetesClusters.js.map +1 -1
- package/dist/browser/operations/l2Networks.js +67 -91
- package/dist/browser/operations/l2Networks.js.map +1 -1
- package/dist/browser/operations/l3Networks.js +67 -91
- package/dist/browser/operations/l3Networks.js.map +1 -1
- package/dist/browser/operations/metricsConfigurations.js +56 -58
- package/dist/browser/operations/metricsConfigurations.js.map +1 -1
- package/dist/browser/operations/operations.js +23 -40
- package/dist/browser/operations/operations.js.map +1 -1
- package/dist/browser/operations/rackSkus.js +23 -40
- package/dist/browser/operations/rackSkus.js.map +1 -1
- package/dist/browser/operations/racks.js +78 -97
- package/dist/browser/operations/racks.js.map +1 -1
- package/dist/browser/operations/storageAppliances.js +100 -109
- package/dist/browser/operations/storageAppliances.js.map +1 -1
- package/dist/browser/operations/trunkedNetworks.js +67 -91
- package/dist/browser/operations/trunkedNetworks.js.map +1 -1
- package/dist/browser/operations/virtualMachines.js +122 -121
- package/dist/browser/operations/virtualMachines.js.map +1 -1
- package/dist/browser/operations/volumes.js +67 -91
- package/dist/browser/operations/volumes.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/commonjs/lroImpl.js +7 -3
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/models/mappers.js +648 -314
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/networkCloud.js +33 -5
- package/dist/commonjs/networkCloud.js.map +1 -1
- package/dist/commonjs/operations/agentPools.js +56 -57
- package/dist/commonjs/operations/agentPools.js.map +1 -1
- package/dist/commonjs/operations/bareMetalMachineKeySets.js +56 -57
- package/dist/commonjs/operations/bareMetalMachineKeySets.js.map +1 -1
- package/dist/commonjs/operations/bareMetalMachines.js +188 -156
- package/dist/commonjs/operations/bareMetalMachines.js.map +1 -1
- package/dist/commonjs/operations/bmcKeySets.js +56 -57
- package/dist/commonjs/operations/bmcKeySets.js.map +1 -1
- package/dist/commonjs/operations/cloudServicesNetworks.js +78 -96
- package/dist/commonjs/operations/cloudServicesNetworks.js.map +1 -1
- package/dist/commonjs/operations/clusterManagers.js +67 -90
- package/dist/commonjs/operations/clusterManagers.js.map +1 -1
- package/dist/commonjs/operations/clusters.js +122 -120
- package/dist/commonjs/operations/clusters.js.map +1 -1
- package/dist/commonjs/operations/consoles.js +56 -57
- package/dist/commonjs/operations/consoles.js.map +1 -1
- package/dist/commonjs/operations/kubernetesClusterFeatures.js +56 -57
- package/dist/commonjs/operations/kubernetesClusterFeatures.js.map +1 -1
- package/dist/commonjs/operations/kubernetesClusters.js +89 -102
- package/dist/commonjs/operations/kubernetesClusters.js.map +1 -1
- package/dist/commonjs/operations/l2Networks.js +67 -90
- package/dist/commonjs/operations/l2Networks.js.map +1 -1
- package/dist/commonjs/operations/l3Networks.js +67 -90
- package/dist/commonjs/operations/l3Networks.js.map +1 -1
- package/dist/commonjs/operations/metricsConfigurations.js +56 -57
- package/dist/commonjs/operations/metricsConfigurations.js.map +1 -1
- package/dist/commonjs/operations/operations.js +23 -39
- package/dist/commonjs/operations/operations.js.map +1 -1
- package/dist/commonjs/operations/rackSkus.js +23 -39
- package/dist/commonjs/operations/rackSkus.js.map +1 -1
- package/dist/commonjs/operations/racks.js +78 -96
- package/dist/commonjs/operations/racks.js.map +1 -1
- package/dist/commonjs/operations/storageAppliances.js +100 -108
- package/dist/commonjs/operations/storageAppliances.js.map +1 -1
- package/dist/commonjs/operations/trunkedNetworks.js +67 -90
- package/dist/commonjs/operations/trunkedNetworks.js.map +1 -1
- package/dist/commonjs/operations/virtualMachines.js +122 -120
- package/dist/commonjs/operations/virtualMachines.js.map +1 -1
- package/dist/commonjs/operations/volumes.js +67 -90
- package/dist/commonjs/operations/volumes.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 +7 -3
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/mappers.js +648 -314
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/networkCloud.js +33 -5
- package/dist/esm/networkCloud.js.map +1 -1
- package/dist/esm/operations/agentPools.js +56 -58
- package/dist/esm/operations/agentPools.js.map +1 -1
- package/dist/esm/operations/bareMetalMachineKeySets.js +56 -58
- package/dist/esm/operations/bareMetalMachineKeySets.js.map +1 -1
- package/dist/esm/operations/bareMetalMachines.js +188 -157
- package/dist/esm/operations/bareMetalMachines.js.map +1 -1
- package/dist/esm/operations/bmcKeySets.js +56 -58
- package/dist/esm/operations/bmcKeySets.js.map +1 -1
- package/dist/esm/operations/cloudServicesNetworks.js +78 -97
- package/dist/esm/operations/cloudServicesNetworks.js.map +1 -1
- package/dist/esm/operations/clusterManagers.js +67 -91
- package/dist/esm/operations/clusterManagers.js.map +1 -1
- package/dist/esm/operations/clusters.js +122 -121
- package/dist/esm/operations/clusters.js.map +1 -1
- package/dist/esm/operations/consoles.js +56 -58
- package/dist/esm/operations/consoles.js.map +1 -1
- package/dist/esm/operations/kubernetesClusterFeatures.js +56 -58
- package/dist/esm/operations/kubernetesClusterFeatures.js.map +1 -1
- package/dist/esm/operations/kubernetesClusters.js +89 -103
- package/dist/esm/operations/kubernetesClusters.js.map +1 -1
- package/dist/esm/operations/l2Networks.js +67 -91
- package/dist/esm/operations/l2Networks.js.map +1 -1
- package/dist/esm/operations/l3Networks.js +67 -91
- package/dist/esm/operations/l3Networks.js.map +1 -1
- package/dist/esm/operations/metricsConfigurations.js +56 -58
- package/dist/esm/operations/metricsConfigurations.js.map +1 -1
- package/dist/esm/operations/operations.js +23 -40
- package/dist/esm/operations/operations.js.map +1 -1
- package/dist/esm/operations/rackSkus.js +23 -40
- package/dist/esm/operations/rackSkus.js.map +1 -1
- package/dist/esm/operations/racks.js +78 -97
- package/dist/esm/operations/racks.js.map +1 -1
- package/dist/esm/operations/storageAppliances.js +100 -109
- package/dist/esm/operations/storageAppliances.js.map +1 -1
- package/dist/esm/operations/trunkedNetworks.js +67 -91
- package/dist/esm/operations/trunkedNetworks.js.map +1 -1
- package/dist/esm/operations/virtualMachines.js +122 -121
- package/dist/esm/operations/virtualMachines.js.map +1 -1
- package/dist/esm/operations/volumes.js +67 -91
- package/dist/esm/operations/volumes.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 +7 -3
- package/dist/react-native/lroImpl.js.map +1 -1
- package/dist/react-native/models/mappers.js +648 -314
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/networkCloud.js +33 -5
- package/dist/react-native/networkCloud.js.map +1 -1
- package/dist/react-native/operations/agentPools.js +56 -58
- package/dist/react-native/operations/agentPools.js.map +1 -1
- package/dist/react-native/operations/bareMetalMachineKeySets.js +56 -58
- package/dist/react-native/operations/bareMetalMachineKeySets.js.map +1 -1
- package/dist/react-native/operations/bareMetalMachines.js +188 -157
- package/dist/react-native/operations/bareMetalMachines.js.map +1 -1
- package/dist/react-native/operations/bmcKeySets.js +56 -58
- package/dist/react-native/operations/bmcKeySets.js.map +1 -1
- package/dist/react-native/operations/cloudServicesNetworks.js +78 -97
- package/dist/react-native/operations/cloudServicesNetworks.js.map +1 -1
- package/dist/react-native/operations/clusterManagers.js +67 -91
- package/dist/react-native/operations/clusterManagers.js.map +1 -1
- package/dist/react-native/operations/clusters.js +122 -121
- package/dist/react-native/operations/clusters.js.map +1 -1
- package/dist/react-native/operations/consoles.js +56 -58
- package/dist/react-native/operations/consoles.js.map +1 -1
- package/dist/react-native/operations/kubernetesClusterFeatures.js +56 -58
- package/dist/react-native/operations/kubernetesClusterFeatures.js.map +1 -1
- package/dist/react-native/operations/kubernetesClusters.js +89 -103
- package/dist/react-native/operations/kubernetesClusters.js.map +1 -1
- package/dist/react-native/operations/l2Networks.js +67 -91
- package/dist/react-native/operations/l2Networks.js.map +1 -1
- package/dist/react-native/operations/l3Networks.js +67 -91
- package/dist/react-native/operations/l3Networks.js.map +1 -1
- package/dist/react-native/operations/metricsConfigurations.js +56 -58
- package/dist/react-native/operations/metricsConfigurations.js.map +1 -1
- package/dist/react-native/operations/operations.js +23 -40
- package/dist/react-native/operations/operations.js.map +1 -1
- package/dist/react-native/operations/rackSkus.js +23 -40
- package/dist/react-native/operations/rackSkus.js.map +1 -1
- package/dist/react-native/operations/racks.js +78 -97
- package/dist/react-native/operations/racks.js.map +1 -1
- package/dist/react-native/operations/storageAppliances.js +100 -109
- package/dist/react-native/operations/storageAppliances.js.map +1 -1
- package/dist/react-native/operations/trunkedNetworks.js +67 -91
- package/dist/react-native/operations/trunkedNetworks.js.map +1 -1
- package/dist/react-native/operations/virtualMachines.js +122 -121
- package/dist/react-native/operations/virtualMachines.js.map +1 -1
- package/dist/react-native/operations/volumes.js +67 -91
- package/dist/react-native/operations/volumes.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-networkcloud-node.api.md +4516 -4516
|
@@ -18,6 +18,7 @@ const lroImpl_js_1 = require("../lroImpl.js");
|
|
|
18
18
|
/// <reference lib="esnext.asynciterable" />
|
|
19
19
|
/** Class containing Clusters operations. */
|
|
20
20
|
class ClustersImpl {
|
|
21
|
+
client;
|
|
21
22
|
/**
|
|
22
23
|
* Initialize a new instance of the class Clusters class.
|
|
23
24
|
* @param client Reference to the service client
|
|
@@ -39,52 +40,35 @@ class ClustersImpl {
|
|
|
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.listBySubscriptionPagingPage(options, settings);
|
|
46
47
|
},
|
|
47
48
|
};
|
|
48
49
|
}
|
|
49
|
-
listBySubscriptionPagingPage(options, settings) {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}
|
|
67
|
-
});
|
|
50
|
+
async *listBySubscriptionPagingPage(options, settings) {
|
|
51
|
+
let result;
|
|
52
|
+
let continuationToken = settings?.continuationToken;
|
|
53
|
+
if (!continuationToken) {
|
|
54
|
+
result = await this._listBySubscription(options);
|
|
55
|
+
let page = result.value || [];
|
|
56
|
+
continuationToken = result.nextLink;
|
|
57
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
58
|
+
yield page;
|
|
59
|
+
}
|
|
60
|
+
while (continuationToken) {
|
|
61
|
+
result = await this._listBySubscriptionNext(continuationToken, options);
|
|
62
|
+
continuationToken = result.nextLink;
|
|
63
|
+
let page = result.value || [];
|
|
64
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
65
|
+
yield page;
|
|
66
|
+
}
|
|
68
67
|
}
|
|
69
|
-
listBySubscriptionPagingAll(options) {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
74
|
-
_c = _f.value;
|
|
75
|
-
_d = false;
|
|
76
|
-
const page = _c;
|
|
77
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
81
|
-
finally {
|
|
82
|
-
try {
|
|
83
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
84
|
-
}
|
|
85
|
-
finally { if (e_1) throw e_1.error; }
|
|
86
|
-
}
|
|
87
|
-
});
|
|
68
|
+
async *listBySubscriptionPagingAll(options) {
|
|
69
|
+
for await (const page of this.listBySubscriptionPagingPage(options)) {
|
|
70
|
+
yield* page;
|
|
71
|
+
}
|
|
88
72
|
}
|
|
89
73
|
/**
|
|
90
74
|
* Get a list of clusters in the provided resource group.
|
|
@@ -101,52 +85,35 @@ class ClustersImpl {
|
|
|
101
85
|
return this;
|
|
102
86
|
},
|
|
103
87
|
byPage: (settings) => {
|
|
104
|
-
if (settings
|
|
88
|
+
if (settings?.maxPageSize) {
|
|
105
89
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
106
90
|
}
|
|
107
91
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
108
92
|
},
|
|
109
93
|
};
|
|
110
94
|
}
|
|
111
|
-
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
}
|
|
129
|
-
});
|
|
95
|
+
async *listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
96
|
+
let result;
|
|
97
|
+
let continuationToken = settings?.continuationToken;
|
|
98
|
+
if (!continuationToken) {
|
|
99
|
+
result = await this._listByResourceGroup(resourceGroupName, options);
|
|
100
|
+
let page = result.value || [];
|
|
101
|
+
continuationToken = result.nextLink;
|
|
102
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
103
|
+
yield page;
|
|
104
|
+
}
|
|
105
|
+
while (continuationToken) {
|
|
106
|
+
result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options);
|
|
107
|
+
continuationToken = result.nextLink;
|
|
108
|
+
let page = result.value || [];
|
|
109
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
110
|
+
yield page;
|
|
111
|
+
}
|
|
130
112
|
}
|
|
131
|
-
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
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) {
|
|
136
|
-
_c = _f.value;
|
|
137
|
-
_d = false;
|
|
138
|
-
const page = _c;
|
|
139
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
143
|
-
finally {
|
|
144
|
-
try {
|
|
145
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
146
|
-
}
|
|
147
|
-
finally { if (e_2) throw e_2.error; }
|
|
148
|
-
}
|
|
149
|
-
});
|
|
113
|
+
async *listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
114
|
+
for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) {
|
|
115
|
+
yield* page;
|
|
116
|
+
}
|
|
150
117
|
}
|
|
151
118
|
/**
|
|
152
119
|
* Get a list of clusters in the provided subscription.
|
|
@@ -184,14 +151,19 @@ class ClustersImpl {
|
|
|
184
151
|
return this.client.sendOperationRequest(args, spec);
|
|
185
152
|
};
|
|
186
153
|
const sendOperationFn = async (args, spec) => {
|
|
187
|
-
var _a;
|
|
188
154
|
let currentRawResponse = undefined;
|
|
189
|
-
const providedCallback =
|
|
155
|
+
const providedCallback = args.options?.onResponse;
|
|
190
156
|
const callback = (rawResponse, flatResponse) => {
|
|
191
157
|
currentRawResponse = rawResponse;
|
|
192
|
-
providedCallback
|
|
158
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
159
|
+
};
|
|
160
|
+
const updatedArgs = {
|
|
161
|
+
...args,
|
|
162
|
+
options: {
|
|
163
|
+
...args.options,
|
|
164
|
+
onResponse: callback,
|
|
165
|
+
},
|
|
193
166
|
};
|
|
194
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
195
167
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
196
168
|
return {
|
|
197
169
|
flatResponse,
|
|
@@ -208,8 +180,8 @@ class ClustersImpl {
|
|
|
208
180
|
spec: createOrUpdateOperationSpec,
|
|
209
181
|
});
|
|
210
182
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
211
|
-
restoreFrom: options
|
|
212
|
-
intervalInMs: options
|
|
183
|
+
restoreFrom: options?.resumeFrom,
|
|
184
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
213
185
|
resourceLocationConfig: "azure-async-operation",
|
|
214
186
|
});
|
|
215
187
|
await poller.poll();
|
|
@@ -237,14 +209,19 @@ class ClustersImpl {
|
|
|
237
209
|
return this.client.sendOperationRequest(args, spec);
|
|
238
210
|
};
|
|
239
211
|
const sendOperationFn = async (args, spec) => {
|
|
240
|
-
var _a;
|
|
241
212
|
let currentRawResponse = undefined;
|
|
242
|
-
const providedCallback =
|
|
213
|
+
const providedCallback = args.options?.onResponse;
|
|
243
214
|
const callback = (rawResponse, flatResponse) => {
|
|
244
215
|
currentRawResponse = rawResponse;
|
|
245
|
-
providedCallback
|
|
216
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
217
|
+
};
|
|
218
|
+
const updatedArgs = {
|
|
219
|
+
...args,
|
|
220
|
+
options: {
|
|
221
|
+
...args.options,
|
|
222
|
+
onResponse: callback,
|
|
223
|
+
},
|
|
246
224
|
};
|
|
247
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
248
225
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
249
226
|
return {
|
|
250
227
|
flatResponse,
|
|
@@ -261,8 +238,8 @@ class ClustersImpl {
|
|
|
261
238
|
spec: deleteOperationSpec,
|
|
262
239
|
});
|
|
263
240
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
264
|
-
restoreFrom: options
|
|
265
|
-
intervalInMs: options
|
|
241
|
+
restoreFrom: options?.resumeFrom,
|
|
242
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
266
243
|
resourceLocationConfig: "location",
|
|
267
244
|
});
|
|
268
245
|
await poller.poll();
|
|
@@ -290,14 +267,19 @@ class ClustersImpl {
|
|
|
290
267
|
return this.client.sendOperationRequest(args, spec);
|
|
291
268
|
};
|
|
292
269
|
const sendOperationFn = async (args, spec) => {
|
|
293
|
-
var _a;
|
|
294
270
|
let currentRawResponse = undefined;
|
|
295
|
-
const providedCallback =
|
|
271
|
+
const providedCallback = args.options?.onResponse;
|
|
296
272
|
const callback = (rawResponse, flatResponse) => {
|
|
297
273
|
currentRawResponse = rawResponse;
|
|
298
|
-
providedCallback
|
|
274
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
275
|
+
};
|
|
276
|
+
const updatedArgs = {
|
|
277
|
+
...args,
|
|
278
|
+
options: {
|
|
279
|
+
...args.options,
|
|
280
|
+
onResponse: callback,
|
|
281
|
+
},
|
|
299
282
|
};
|
|
300
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
301
283
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
302
284
|
return {
|
|
303
285
|
flatResponse,
|
|
@@ -314,8 +296,8 @@ class ClustersImpl {
|
|
|
314
296
|
spec: updateOperationSpec,
|
|
315
297
|
});
|
|
316
298
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
317
|
-
restoreFrom: options
|
|
318
|
-
intervalInMs: options
|
|
299
|
+
restoreFrom: options?.resumeFrom,
|
|
300
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
319
301
|
resourceLocationConfig: "azure-async-operation",
|
|
320
302
|
});
|
|
321
303
|
await poller.poll();
|
|
@@ -345,14 +327,19 @@ class ClustersImpl {
|
|
|
345
327
|
return this.client.sendOperationRequest(args, spec);
|
|
346
328
|
};
|
|
347
329
|
const sendOperationFn = async (args, spec) => {
|
|
348
|
-
var _a;
|
|
349
330
|
let currentRawResponse = undefined;
|
|
350
|
-
const providedCallback =
|
|
331
|
+
const providedCallback = args.options?.onResponse;
|
|
351
332
|
const callback = (rawResponse, flatResponse) => {
|
|
352
333
|
currentRawResponse = rawResponse;
|
|
353
|
-
providedCallback
|
|
334
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
335
|
+
};
|
|
336
|
+
const updatedArgs = {
|
|
337
|
+
...args,
|
|
338
|
+
options: {
|
|
339
|
+
...args.options,
|
|
340
|
+
onResponse: callback,
|
|
341
|
+
},
|
|
354
342
|
};
|
|
355
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
356
343
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
357
344
|
return {
|
|
358
345
|
flatResponse,
|
|
@@ -374,8 +361,8 @@ class ClustersImpl {
|
|
|
374
361
|
spec: continueUpdateVersionOperationSpec,
|
|
375
362
|
});
|
|
376
363
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
377
|
-
restoreFrom: options
|
|
378
|
-
intervalInMs: options
|
|
364
|
+
restoreFrom: options?.resumeFrom,
|
|
365
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
379
366
|
resourceLocationConfig: "location",
|
|
380
367
|
});
|
|
381
368
|
await poller.poll();
|
|
@@ -404,14 +391,19 @@ class ClustersImpl {
|
|
|
404
391
|
return this.client.sendOperationRequest(args, spec);
|
|
405
392
|
};
|
|
406
393
|
const sendOperationFn = async (args, spec) => {
|
|
407
|
-
var _a;
|
|
408
394
|
let currentRawResponse = undefined;
|
|
409
|
-
const providedCallback =
|
|
395
|
+
const providedCallback = args.options?.onResponse;
|
|
410
396
|
const callback = (rawResponse, flatResponse) => {
|
|
411
397
|
currentRawResponse = rawResponse;
|
|
412
|
-
providedCallback
|
|
398
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
399
|
+
};
|
|
400
|
+
const updatedArgs = {
|
|
401
|
+
...args,
|
|
402
|
+
options: {
|
|
403
|
+
...args.options,
|
|
404
|
+
onResponse: callback,
|
|
405
|
+
},
|
|
413
406
|
};
|
|
414
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
415
407
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
416
408
|
return {
|
|
417
409
|
flatResponse,
|
|
@@ -428,8 +420,8 @@ class ClustersImpl {
|
|
|
428
420
|
spec: deployOperationSpec,
|
|
429
421
|
});
|
|
430
422
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
431
|
-
restoreFrom: options
|
|
432
|
-
intervalInMs: options
|
|
423
|
+
restoreFrom: options?.resumeFrom,
|
|
424
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
433
425
|
resourceLocationConfig: "location",
|
|
434
426
|
});
|
|
435
427
|
await poller.poll();
|
|
@@ -457,14 +449,19 @@ class ClustersImpl {
|
|
|
457
449
|
return this.client.sendOperationRequest(args, spec);
|
|
458
450
|
};
|
|
459
451
|
const sendOperationFn = async (args, spec) => {
|
|
460
|
-
var _a;
|
|
461
452
|
let currentRawResponse = undefined;
|
|
462
|
-
const providedCallback =
|
|
453
|
+
const providedCallback = args.options?.onResponse;
|
|
463
454
|
const callback = (rawResponse, flatResponse) => {
|
|
464
455
|
currentRawResponse = rawResponse;
|
|
465
|
-
providedCallback
|
|
456
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
457
|
+
};
|
|
458
|
+
const updatedArgs = {
|
|
459
|
+
...args,
|
|
460
|
+
options: {
|
|
461
|
+
...args.options,
|
|
462
|
+
onResponse: callback,
|
|
463
|
+
},
|
|
466
464
|
};
|
|
467
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
468
465
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
469
466
|
return {
|
|
470
467
|
flatResponse,
|
|
@@ -481,8 +478,8 @@ class ClustersImpl {
|
|
|
481
478
|
spec: scanRuntimeOperationSpec,
|
|
482
479
|
});
|
|
483
480
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
484
|
-
restoreFrom: options
|
|
485
|
-
intervalInMs: options
|
|
481
|
+
restoreFrom: options?.resumeFrom,
|
|
482
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
486
483
|
resourceLocationConfig: "location",
|
|
487
484
|
});
|
|
488
485
|
await poller.poll();
|
|
@@ -511,14 +508,19 @@ class ClustersImpl {
|
|
|
511
508
|
return this.client.sendOperationRequest(args, spec);
|
|
512
509
|
};
|
|
513
510
|
const sendOperationFn = async (args, spec) => {
|
|
514
|
-
var _a;
|
|
515
511
|
let currentRawResponse = undefined;
|
|
516
|
-
const providedCallback =
|
|
512
|
+
const providedCallback = args.options?.onResponse;
|
|
517
513
|
const callback = (rawResponse, flatResponse) => {
|
|
518
514
|
currentRawResponse = rawResponse;
|
|
519
|
-
providedCallback
|
|
515
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
516
|
+
};
|
|
517
|
+
const updatedArgs = {
|
|
518
|
+
...args,
|
|
519
|
+
options: {
|
|
520
|
+
...args.options,
|
|
521
|
+
onResponse: callback,
|
|
522
|
+
},
|
|
520
523
|
};
|
|
521
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
522
524
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
523
525
|
return {
|
|
524
526
|
flatResponse,
|
|
@@ -540,8 +542,8 @@ class ClustersImpl {
|
|
|
540
542
|
spec: updateVersionOperationSpec,
|
|
541
543
|
});
|
|
542
544
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
543
|
-
restoreFrom: options
|
|
544
|
-
intervalInMs: options
|
|
545
|
+
restoreFrom: options?.resumeFrom,
|
|
546
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
545
547
|
resourceLocationConfig: "location",
|
|
546
548
|
});
|
|
547
549
|
await poller.poll();
|