@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 VirtualMachines operations. */
|
|
20
20
|
class VirtualMachinesImpl {
|
|
21
|
+
client;
|
|
21
22
|
/**
|
|
22
23
|
* Initialize a new instance of the class VirtualMachines class.
|
|
23
24
|
* @param client Reference to the service client
|
|
@@ -39,52 +40,35 @@ class VirtualMachinesImpl {
|
|
|
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 virtual machines in the provided resource group.
|
|
@@ -101,52 +85,35 @@ class VirtualMachinesImpl {
|
|
|
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 virtual machines in the provided subscription.
|
|
@@ -184,14 +151,19 @@ class VirtualMachinesImpl {
|
|
|
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,
|
|
@@ -213,8 +185,8 @@ class VirtualMachinesImpl {
|
|
|
213
185
|
spec: createOrUpdateOperationSpec,
|
|
214
186
|
});
|
|
215
187
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
216
|
-
restoreFrom: options
|
|
217
|
-
intervalInMs: options
|
|
188
|
+
restoreFrom: options?.resumeFrom,
|
|
189
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
218
190
|
resourceLocationConfig: "azure-async-operation",
|
|
219
191
|
});
|
|
220
192
|
await poller.poll();
|
|
@@ -242,14 +214,19 @@ class VirtualMachinesImpl {
|
|
|
242
214
|
return this.client.sendOperationRequest(args, spec);
|
|
243
215
|
};
|
|
244
216
|
const sendOperationFn = async (args, spec) => {
|
|
245
|
-
var _a;
|
|
246
217
|
let currentRawResponse = undefined;
|
|
247
|
-
const providedCallback =
|
|
218
|
+
const providedCallback = args.options?.onResponse;
|
|
248
219
|
const callback = (rawResponse, flatResponse) => {
|
|
249
220
|
currentRawResponse = rawResponse;
|
|
250
|
-
providedCallback
|
|
221
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
222
|
+
};
|
|
223
|
+
const updatedArgs = {
|
|
224
|
+
...args,
|
|
225
|
+
options: {
|
|
226
|
+
...args.options,
|
|
227
|
+
onResponse: callback,
|
|
228
|
+
},
|
|
251
229
|
};
|
|
252
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
253
230
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
254
231
|
return {
|
|
255
232
|
flatResponse,
|
|
@@ -266,8 +243,8 @@ class VirtualMachinesImpl {
|
|
|
266
243
|
spec: deleteOperationSpec,
|
|
267
244
|
});
|
|
268
245
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
269
|
-
restoreFrom: options
|
|
270
|
-
intervalInMs: options
|
|
246
|
+
restoreFrom: options?.resumeFrom,
|
|
247
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
271
248
|
resourceLocationConfig: "location",
|
|
272
249
|
});
|
|
273
250
|
await poller.poll();
|
|
@@ -295,14 +272,19 @@ class VirtualMachinesImpl {
|
|
|
295
272
|
return this.client.sendOperationRequest(args, spec);
|
|
296
273
|
};
|
|
297
274
|
const sendOperationFn = async (args, spec) => {
|
|
298
|
-
var _a;
|
|
299
275
|
let currentRawResponse = undefined;
|
|
300
|
-
const providedCallback =
|
|
276
|
+
const providedCallback = args.options?.onResponse;
|
|
301
277
|
const callback = (rawResponse, flatResponse) => {
|
|
302
278
|
currentRawResponse = rawResponse;
|
|
303
|
-
providedCallback
|
|
279
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
280
|
+
};
|
|
281
|
+
const updatedArgs = {
|
|
282
|
+
...args,
|
|
283
|
+
options: {
|
|
284
|
+
...args.options,
|
|
285
|
+
onResponse: callback,
|
|
286
|
+
},
|
|
304
287
|
};
|
|
305
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
306
288
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
307
289
|
return {
|
|
308
290
|
flatResponse,
|
|
@@ -319,8 +301,8 @@ class VirtualMachinesImpl {
|
|
|
319
301
|
spec: updateOperationSpec,
|
|
320
302
|
});
|
|
321
303
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
322
|
-
restoreFrom: options
|
|
323
|
-
intervalInMs: options
|
|
304
|
+
restoreFrom: options?.resumeFrom,
|
|
305
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
324
306
|
resourceLocationConfig: "azure-async-operation",
|
|
325
307
|
});
|
|
326
308
|
await poller.poll();
|
|
@@ -348,14 +330,19 @@ class VirtualMachinesImpl {
|
|
|
348
330
|
return this.client.sendOperationRequest(args, spec);
|
|
349
331
|
};
|
|
350
332
|
const sendOperationFn = async (args, spec) => {
|
|
351
|
-
var _a;
|
|
352
333
|
let currentRawResponse = undefined;
|
|
353
|
-
const providedCallback =
|
|
334
|
+
const providedCallback = args.options?.onResponse;
|
|
354
335
|
const callback = (rawResponse, flatResponse) => {
|
|
355
336
|
currentRawResponse = rawResponse;
|
|
356
|
-
providedCallback
|
|
337
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
338
|
+
};
|
|
339
|
+
const updatedArgs = {
|
|
340
|
+
...args,
|
|
341
|
+
options: {
|
|
342
|
+
...args.options,
|
|
343
|
+
onResponse: callback,
|
|
344
|
+
},
|
|
357
345
|
};
|
|
358
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
359
346
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
360
347
|
return {
|
|
361
348
|
flatResponse,
|
|
@@ -372,8 +359,8 @@ class VirtualMachinesImpl {
|
|
|
372
359
|
spec: powerOffOperationSpec,
|
|
373
360
|
});
|
|
374
361
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
375
|
-
restoreFrom: options
|
|
376
|
-
intervalInMs: options
|
|
362
|
+
restoreFrom: options?.resumeFrom,
|
|
363
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
377
364
|
resourceLocationConfig: "location",
|
|
378
365
|
});
|
|
379
366
|
await poller.poll();
|
|
@@ -400,14 +387,19 @@ class VirtualMachinesImpl {
|
|
|
400
387
|
return this.client.sendOperationRequest(args, spec);
|
|
401
388
|
};
|
|
402
389
|
const sendOperationFn = async (args, spec) => {
|
|
403
|
-
var _a;
|
|
404
390
|
let currentRawResponse = undefined;
|
|
405
|
-
const providedCallback =
|
|
391
|
+
const providedCallback = args.options?.onResponse;
|
|
406
392
|
const callback = (rawResponse, flatResponse) => {
|
|
407
393
|
currentRawResponse = rawResponse;
|
|
408
|
-
providedCallback
|
|
394
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
395
|
+
};
|
|
396
|
+
const updatedArgs = {
|
|
397
|
+
...args,
|
|
398
|
+
options: {
|
|
399
|
+
...args.options,
|
|
400
|
+
onResponse: callback,
|
|
401
|
+
},
|
|
409
402
|
};
|
|
410
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
411
403
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
412
404
|
return {
|
|
413
405
|
flatResponse,
|
|
@@ -424,8 +416,8 @@ class VirtualMachinesImpl {
|
|
|
424
416
|
spec: reimageOperationSpec,
|
|
425
417
|
});
|
|
426
418
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
427
|
-
restoreFrom: options
|
|
428
|
-
intervalInMs: options
|
|
419
|
+
restoreFrom: options?.resumeFrom,
|
|
420
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
429
421
|
resourceLocationConfig: "location",
|
|
430
422
|
});
|
|
431
423
|
await poller.poll();
|
|
@@ -452,14 +444,19 @@ class VirtualMachinesImpl {
|
|
|
452
444
|
return this.client.sendOperationRequest(args, spec);
|
|
453
445
|
};
|
|
454
446
|
const sendOperationFn = async (args, spec) => {
|
|
455
|
-
var _a;
|
|
456
447
|
let currentRawResponse = undefined;
|
|
457
|
-
const providedCallback =
|
|
448
|
+
const providedCallback = args.options?.onResponse;
|
|
458
449
|
const callback = (rawResponse, flatResponse) => {
|
|
459
450
|
currentRawResponse = rawResponse;
|
|
460
|
-
providedCallback
|
|
451
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
452
|
+
};
|
|
453
|
+
const updatedArgs = {
|
|
454
|
+
...args,
|
|
455
|
+
options: {
|
|
456
|
+
...args.options,
|
|
457
|
+
onResponse: callback,
|
|
458
|
+
},
|
|
461
459
|
};
|
|
462
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
463
460
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
464
461
|
return {
|
|
465
462
|
flatResponse,
|
|
@@ -476,8 +473,8 @@ class VirtualMachinesImpl {
|
|
|
476
473
|
spec: restartOperationSpec,
|
|
477
474
|
});
|
|
478
475
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
479
|
-
restoreFrom: options
|
|
480
|
-
intervalInMs: options
|
|
476
|
+
restoreFrom: options?.resumeFrom,
|
|
477
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
481
478
|
resourceLocationConfig: "location",
|
|
482
479
|
});
|
|
483
480
|
await poller.poll();
|
|
@@ -504,14 +501,19 @@ class VirtualMachinesImpl {
|
|
|
504
501
|
return this.client.sendOperationRequest(args, spec);
|
|
505
502
|
};
|
|
506
503
|
const sendOperationFn = async (args, spec) => {
|
|
507
|
-
var _a;
|
|
508
504
|
let currentRawResponse = undefined;
|
|
509
|
-
const providedCallback =
|
|
505
|
+
const providedCallback = args.options?.onResponse;
|
|
510
506
|
const callback = (rawResponse, flatResponse) => {
|
|
511
507
|
currentRawResponse = rawResponse;
|
|
512
|
-
providedCallback
|
|
508
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
509
|
+
};
|
|
510
|
+
const updatedArgs = {
|
|
511
|
+
...args,
|
|
512
|
+
options: {
|
|
513
|
+
...args.options,
|
|
514
|
+
onResponse: callback,
|
|
515
|
+
},
|
|
513
516
|
};
|
|
514
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
515
517
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
516
518
|
return {
|
|
517
519
|
flatResponse,
|
|
@@ -528,8 +530,8 @@ class VirtualMachinesImpl {
|
|
|
528
530
|
spec: startOperationSpec,
|
|
529
531
|
});
|
|
530
532
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
531
|
-
restoreFrom: options
|
|
532
|
-
intervalInMs: options
|
|
533
|
+
restoreFrom: options?.resumeFrom,
|
|
534
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
533
535
|
resourceLocationConfig: "location",
|
|
534
536
|
});
|
|
535
537
|
await poller.poll();
|