@azure/arm-storsimple8000series 2.1.1-alpha.20250717.1 → 2.1.1-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 +11 -3
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/mappers.js +367 -172
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/accessControlRecords.js +32 -39
- package/dist/browser/operations/accessControlRecords.js.map +1 -1
- package/dist/browser/operations/alerts.js +23 -40
- package/dist/browser/operations/alerts.js.map +1 -1
- package/dist/browser/operations/backupPolicies.js +43 -45
- package/dist/browser/operations/backupPolicies.js.map +1 -1
- package/dist/browser/operations/backupSchedules.js +32 -39
- package/dist/browser/operations/backupSchedules.js.map +1 -1
- package/dist/browser/operations/backups.js +56 -58
- package/dist/browser/operations/backups.js.map +1 -1
- package/dist/browser/operations/bandwidthSettings.js +32 -39
- package/dist/browser/operations/bandwidthSettings.js.map +1 -1
- package/dist/browser/operations/cloudAppliances.js +21 -33
- package/dist/browser/operations/cloudAppliances.js.map +1 -1
- package/dist/browser/operations/deviceSettings.js +56 -30
- package/dist/browser/operations/deviceSettings.js.map +1 -1
- package/dist/browser/operations/devices.js +112 -167
- package/dist/browser/operations/devices.js.map +1 -1
- package/dist/browser/operations/hardwareComponentGroups.js +21 -33
- package/dist/browser/operations/hardwareComponentGroups.js.map +1 -1
- package/dist/browser/operations/jobs.js +56 -85
- package/dist/browser/operations/jobs.js.map +1 -1
- package/dist/browser/operations/managers.js +51 -136
- package/dist/browser/operations/managers.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/storageAccountCredentials.js +32 -39
- package/dist/browser/operations/storageAccountCredentials.js.map +1 -1
- package/dist/browser/operations/volumeContainers.js +50 -91
- package/dist/browser/operations/volumeContainers.js.map +1 -1
- package/dist/browser/operations/volumes.js +59 -117
- 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/browser/storSimple8000SeriesManagementClient.js +29 -5
- package/dist/browser/storSimple8000SeriesManagementClient.js.map +1 -1
- package/dist/commonjs/lroImpl.js +11 -3
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/models/mappers.js +367 -172
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/accessControlRecords.js +32 -38
- package/dist/commonjs/operations/accessControlRecords.js.map +1 -1
- package/dist/commonjs/operations/alerts.js +23 -39
- package/dist/commonjs/operations/alerts.js.map +1 -1
- package/dist/commonjs/operations/backupPolicies.js +43 -44
- package/dist/commonjs/operations/backupPolicies.js.map +1 -1
- package/dist/commonjs/operations/backupSchedules.js +32 -38
- package/dist/commonjs/operations/backupSchedules.js.map +1 -1
- package/dist/commonjs/operations/backups.js +56 -57
- package/dist/commonjs/operations/backups.js.map +1 -1
- package/dist/commonjs/operations/bandwidthSettings.js +32 -38
- package/dist/commonjs/operations/bandwidthSettings.js.map +1 -1
- package/dist/commonjs/operations/cloudAppliances.js +21 -32
- package/dist/commonjs/operations/cloudAppliances.js.map +1 -1
- package/dist/commonjs/operations/deviceSettings.js +56 -30
- package/dist/commonjs/operations/deviceSettings.js.map +1 -1
- package/dist/commonjs/operations/devices.js +112 -166
- package/dist/commonjs/operations/devices.js.map +1 -1
- package/dist/commonjs/operations/hardwareComponentGroups.js +21 -32
- package/dist/commonjs/operations/hardwareComponentGroups.js.map +1 -1
- package/dist/commonjs/operations/jobs.js +56 -84
- package/dist/commonjs/operations/jobs.js.map +1 -1
- package/dist/commonjs/operations/managers.js +51 -135
- package/dist/commonjs/operations/managers.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/storageAccountCredentials.js +32 -38
- package/dist/commonjs/operations/storageAccountCredentials.js.map +1 -1
- package/dist/commonjs/operations/volumeContainers.js +50 -90
- package/dist/commonjs/operations/volumeContainers.js.map +1 -1
- package/dist/commonjs/operations/volumes.js +59 -116
- 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/storSimple8000SeriesManagementClient.js +29 -5
- package/dist/commonjs/storSimple8000SeriesManagementClient.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/models/mappers.js +367 -172
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/accessControlRecords.js +32 -39
- package/dist/esm/operations/accessControlRecords.js.map +1 -1
- package/dist/esm/operations/alerts.js +23 -40
- package/dist/esm/operations/alerts.js.map +1 -1
- package/dist/esm/operations/backupPolicies.js +43 -45
- package/dist/esm/operations/backupPolicies.js.map +1 -1
- package/dist/esm/operations/backupSchedules.js +32 -39
- package/dist/esm/operations/backupSchedules.js.map +1 -1
- package/dist/esm/operations/backups.js +56 -58
- package/dist/esm/operations/backups.js.map +1 -1
- package/dist/esm/operations/bandwidthSettings.js +32 -39
- package/dist/esm/operations/bandwidthSettings.js.map +1 -1
- package/dist/esm/operations/cloudAppliances.js +21 -33
- package/dist/esm/operations/cloudAppliances.js.map +1 -1
- package/dist/esm/operations/deviceSettings.js +56 -30
- package/dist/esm/operations/deviceSettings.js.map +1 -1
- package/dist/esm/operations/devices.js +112 -167
- package/dist/esm/operations/devices.js.map +1 -1
- package/dist/esm/operations/hardwareComponentGroups.js +21 -33
- package/dist/esm/operations/hardwareComponentGroups.js.map +1 -1
- package/dist/esm/operations/jobs.js +56 -85
- package/dist/esm/operations/jobs.js.map +1 -1
- package/dist/esm/operations/managers.js +51 -136
- package/dist/esm/operations/managers.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/storageAccountCredentials.js +32 -39
- package/dist/esm/operations/storageAccountCredentials.js.map +1 -1
- package/dist/esm/operations/volumeContainers.js +50 -91
- package/dist/esm/operations/volumeContainers.js.map +1 -1
- package/dist/esm/operations/volumes.js +59 -117
- 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/esm/storSimple8000SeriesManagementClient.js +29 -5
- package/dist/esm/storSimple8000SeriesManagementClient.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/models/mappers.js +367 -172
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/accessControlRecords.js +32 -39
- package/dist/react-native/operations/accessControlRecords.js.map +1 -1
- package/dist/react-native/operations/alerts.js +23 -40
- package/dist/react-native/operations/alerts.js.map +1 -1
- package/dist/react-native/operations/backupPolicies.js +43 -45
- package/dist/react-native/operations/backupPolicies.js.map +1 -1
- package/dist/react-native/operations/backupSchedules.js +32 -39
- package/dist/react-native/operations/backupSchedules.js.map +1 -1
- package/dist/react-native/operations/backups.js +56 -58
- package/dist/react-native/operations/backups.js.map +1 -1
- package/dist/react-native/operations/bandwidthSettings.js +32 -39
- package/dist/react-native/operations/bandwidthSettings.js.map +1 -1
- package/dist/react-native/operations/cloudAppliances.js +21 -33
- package/dist/react-native/operations/cloudAppliances.js.map +1 -1
- package/dist/react-native/operations/deviceSettings.js +56 -30
- package/dist/react-native/operations/deviceSettings.js.map +1 -1
- package/dist/react-native/operations/devices.js +112 -167
- package/dist/react-native/operations/devices.js.map +1 -1
- package/dist/react-native/operations/hardwareComponentGroups.js +21 -33
- package/dist/react-native/operations/hardwareComponentGroups.js.map +1 -1
- package/dist/react-native/operations/jobs.js +56 -85
- package/dist/react-native/operations/jobs.js.map +1 -1
- package/dist/react-native/operations/managers.js +51 -136
- package/dist/react-native/operations/managers.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/storageAccountCredentials.js +32 -39
- package/dist/react-native/operations/storageAccountCredentials.js.map +1 -1
- package/dist/react-native/operations/volumeContainers.js +50 -91
- package/dist/react-native/operations/volumeContainers.js.map +1 -1
- package/dist/react-native/operations/volumes.js +59 -117
- 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/dist/react-native/storSimple8000SeriesManagementClient.js +29 -5
- package/dist/react-native/storSimple8000SeriesManagementClient.js.map +1 -1
- package/package.json +2 -2
- package/review/arm-storsimple8000series-node.api.md +1923 -1923
|
@@ -17,6 +17,7 @@ const lroImpl_js_1 = require("../lroImpl.js");
|
|
|
17
17
|
/// <reference lib="esnext.asynciterable" />
|
|
18
18
|
/** Class containing Devices operations. */
|
|
19
19
|
class DevicesImpl {
|
|
20
|
+
client;
|
|
20
21
|
/**
|
|
21
22
|
* Initialize a new instance of the class Devices class.
|
|
22
23
|
* @param client Reference to the service client
|
|
@@ -40,39 +41,22 @@ class DevicesImpl {
|
|
|
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.listByManagerPagingPage(resourceGroupName, managerName, options, settings);
|
|
47
48
|
}
|
|
48
49
|
};
|
|
49
50
|
}
|
|
50
|
-
listByManagerPagingPage(resourceGroupName, managerName, options, _settings) {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
yield yield tslib_1.__await(result.value || []);
|
|
55
|
-
});
|
|
51
|
+
async *listByManagerPagingPage(resourceGroupName, managerName, options, _settings) {
|
|
52
|
+
let result;
|
|
53
|
+
result = await this._listByManager(resourceGroupName, managerName, options);
|
|
54
|
+
yield result.value || [];
|
|
56
55
|
}
|
|
57
|
-
listByManagerPagingAll(resourceGroupName, managerName, options) {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listByManagerPagingPage(resourceGroupName, managerName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
62
|
-
_c = _f.value;
|
|
63
|
-
_d = false;
|
|
64
|
-
const page = _c;
|
|
65
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
69
|
-
finally {
|
|
70
|
-
try {
|
|
71
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
72
|
-
}
|
|
73
|
-
finally { if (e_1) throw e_1.error; }
|
|
74
|
-
}
|
|
75
|
-
});
|
|
56
|
+
async *listByManagerPagingAll(resourceGroupName, managerName, options) {
|
|
57
|
+
for await (const page of this.listByManagerPagingPage(resourceGroupName, managerName, options)) {
|
|
58
|
+
yield* page;
|
|
59
|
+
}
|
|
76
60
|
}
|
|
77
61
|
/**
|
|
78
62
|
* Returns all failover sets for a given device and their eligibility for participating in a failover.
|
|
@@ -93,39 +77,22 @@ class DevicesImpl {
|
|
|
93
77
|
return this;
|
|
94
78
|
},
|
|
95
79
|
byPage: (settings) => {
|
|
96
|
-
if (settings
|
|
80
|
+
if (settings?.maxPageSize) {
|
|
97
81
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
98
82
|
}
|
|
99
83
|
return this.listFailoverSetsPagingPage(deviceName, resourceGroupName, managerName, options, settings);
|
|
100
84
|
}
|
|
101
85
|
};
|
|
102
86
|
}
|
|
103
|
-
listFailoverSetsPagingPage(deviceName, resourceGroupName, managerName, options, _settings) {
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
yield yield tslib_1.__await(result.value || []);
|
|
108
|
-
});
|
|
87
|
+
async *listFailoverSetsPagingPage(deviceName, resourceGroupName, managerName, options, _settings) {
|
|
88
|
+
let result;
|
|
89
|
+
result = await this._listFailoverSets(deviceName, resourceGroupName, managerName, options);
|
|
90
|
+
yield result.value || [];
|
|
109
91
|
}
|
|
110
|
-
listFailoverSetsPagingAll(deviceName, resourceGroupName, managerName, options) {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listFailoverSetsPagingPage(deviceName, resourceGroupName, managerName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
115
|
-
_c = _f.value;
|
|
116
|
-
_d = false;
|
|
117
|
-
const page = _c;
|
|
118
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
122
|
-
finally {
|
|
123
|
-
try {
|
|
124
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
125
|
-
}
|
|
126
|
-
finally { if (e_2) throw e_2.error; }
|
|
127
|
-
}
|
|
128
|
-
});
|
|
92
|
+
async *listFailoverSetsPagingAll(deviceName, resourceGroupName, managerName, options) {
|
|
93
|
+
for await (const page of this.listFailoverSetsPagingPage(deviceName, resourceGroupName, managerName, options)) {
|
|
94
|
+
yield* page;
|
|
95
|
+
}
|
|
129
96
|
}
|
|
130
97
|
/**
|
|
131
98
|
* Gets the metrics for the specified device.
|
|
@@ -145,39 +112,22 @@ class DevicesImpl {
|
|
|
145
112
|
return this;
|
|
146
113
|
},
|
|
147
114
|
byPage: (settings) => {
|
|
148
|
-
if (settings
|
|
115
|
+
if (settings?.maxPageSize) {
|
|
149
116
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
150
117
|
}
|
|
151
118
|
return this.listMetricsPagingPage(deviceName, resourceGroupName, managerName, filter, options, settings);
|
|
152
119
|
}
|
|
153
120
|
};
|
|
154
121
|
}
|
|
155
|
-
listMetricsPagingPage(deviceName, resourceGroupName, managerName, filter, options, _settings) {
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
yield yield tslib_1.__await(result.value || []);
|
|
160
|
-
});
|
|
122
|
+
async *listMetricsPagingPage(deviceName, resourceGroupName, managerName, filter, options, _settings) {
|
|
123
|
+
let result;
|
|
124
|
+
result = await this._listMetrics(deviceName, resourceGroupName, managerName, filter, options);
|
|
125
|
+
yield result.value || [];
|
|
161
126
|
}
|
|
162
|
-
listMetricsPagingAll(deviceName, resourceGroupName, managerName, filter, options) {
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listMetricsPagingPage(deviceName, resourceGroupName, managerName, filter, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
167
|
-
_c = _f.value;
|
|
168
|
-
_d = false;
|
|
169
|
-
const page = _c;
|
|
170
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
174
|
-
finally {
|
|
175
|
-
try {
|
|
176
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
177
|
-
}
|
|
178
|
-
finally { if (e_3) throw e_3.error; }
|
|
179
|
-
}
|
|
180
|
-
});
|
|
127
|
+
async *listMetricsPagingAll(deviceName, resourceGroupName, managerName, filter, options) {
|
|
128
|
+
for await (const page of this.listMetricsPagingPage(deviceName, resourceGroupName, managerName, filter, options)) {
|
|
129
|
+
yield* page;
|
|
130
|
+
}
|
|
181
131
|
}
|
|
182
132
|
/**
|
|
183
133
|
* Gets the metric definitions for the specified device.
|
|
@@ -196,39 +146,22 @@ class DevicesImpl {
|
|
|
196
146
|
return this;
|
|
197
147
|
},
|
|
198
148
|
byPage: (settings) => {
|
|
199
|
-
if (settings
|
|
149
|
+
if (settings?.maxPageSize) {
|
|
200
150
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
201
151
|
}
|
|
202
152
|
return this.listMetricDefinitionPagingPage(deviceName, resourceGroupName, managerName, options, settings);
|
|
203
153
|
}
|
|
204
154
|
};
|
|
205
155
|
}
|
|
206
|
-
listMetricDefinitionPagingPage(deviceName, resourceGroupName, managerName, options, _settings) {
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
yield yield tslib_1.__await(result.value || []);
|
|
211
|
-
});
|
|
156
|
+
async *listMetricDefinitionPagingPage(deviceName, resourceGroupName, managerName, options, _settings) {
|
|
157
|
+
let result;
|
|
158
|
+
result = await this._listMetricDefinition(deviceName, resourceGroupName, managerName, options);
|
|
159
|
+
yield result.value || [];
|
|
212
160
|
}
|
|
213
|
-
listMetricDefinitionPagingAll(deviceName, resourceGroupName, managerName, options) {
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listMetricDefinitionPagingPage(deviceName, resourceGroupName, managerName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
218
|
-
_c = _f.value;
|
|
219
|
-
_d = false;
|
|
220
|
-
const page = _c;
|
|
221
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
|
225
|
-
finally {
|
|
226
|
-
try {
|
|
227
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
228
|
-
}
|
|
229
|
-
finally { if (e_4) throw e_4.error; }
|
|
230
|
-
}
|
|
231
|
-
});
|
|
161
|
+
async *listMetricDefinitionPagingAll(deviceName, resourceGroupName, managerName, options) {
|
|
162
|
+
for await (const page of this.listMetricDefinitionPagingPage(deviceName, resourceGroupName, managerName, options)) {
|
|
163
|
+
yield* page;
|
|
164
|
+
}
|
|
232
165
|
}
|
|
233
166
|
/**
|
|
234
167
|
* Given a list of volume containers to be failed over from a source device, this method returns the
|
|
@@ -250,39 +183,22 @@ class DevicesImpl {
|
|
|
250
183
|
return this;
|
|
251
184
|
},
|
|
252
185
|
byPage: (settings) => {
|
|
253
|
-
if (settings
|
|
186
|
+
if (settings?.maxPageSize) {
|
|
254
187
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
255
188
|
}
|
|
256
189
|
return this.listFailoverTargetsPagingPage(sourceDeviceName, resourceGroupName, managerName, parameters, options, settings);
|
|
257
190
|
}
|
|
258
191
|
};
|
|
259
192
|
}
|
|
260
|
-
listFailoverTargetsPagingPage(sourceDeviceName, resourceGroupName, managerName, parameters, options, _settings) {
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
yield yield tslib_1.__await(result.value || []);
|
|
265
|
-
});
|
|
193
|
+
async *listFailoverTargetsPagingPage(sourceDeviceName, resourceGroupName, managerName, parameters, options, _settings) {
|
|
194
|
+
let result;
|
|
195
|
+
result = await this._listFailoverTargets(sourceDeviceName, resourceGroupName, managerName, parameters, options);
|
|
196
|
+
yield result.value || [];
|
|
266
197
|
}
|
|
267
|
-
listFailoverTargetsPagingAll(sourceDeviceName, resourceGroupName, managerName, parameters, options) {
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listFailoverTargetsPagingPage(sourceDeviceName, resourceGroupName, managerName, parameters, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
272
|
-
_c = _f.value;
|
|
273
|
-
_d = false;
|
|
274
|
-
const page = _c;
|
|
275
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
catch (e_5_1) { e_5 = { error: e_5_1 }; }
|
|
279
|
-
finally {
|
|
280
|
-
try {
|
|
281
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
282
|
-
}
|
|
283
|
-
finally { if (e_5) throw e_5.error; }
|
|
284
|
-
}
|
|
285
|
-
});
|
|
198
|
+
async *listFailoverTargetsPagingAll(sourceDeviceName, resourceGroupName, managerName, parameters, options) {
|
|
199
|
+
for await (const page of this.listFailoverTargetsPagingPage(sourceDeviceName, resourceGroupName, managerName, parameters, options)) {
|
|
200
|
+
yield* page;
|
|
201
|
+
}
|
|
286
202
|
}
|
|
287
203
|
/**
|
|
288
204
|
* Complete minimal setup before using the device.
|
|
@@ -296,14 +212,19 @@ class DevicesImpl {
|
|
|
296
212
|
return this.client.sendOperationRequest(args, spec);
|
|
297
213
|
};
|
|
298
214
|
const sendOperation = async (args, spec) => {
|
|
299
|
-
var _a;
|
|
300
215
|
let currentRawResponse = undefined;
|
|
301
|
-
const providedCallback =
|
|
216
|
+
const providedCallback = args.options?.onResponse;
|
|
302
217
|
const callback = (rawResponse, flatResponse) => {
|
|
303
218
|
currentRawResponse = rawResponse;
|
|
304
|
-
providedCallback
|
|
219
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
220
|
+
};
|
|
221
|
+
const updatedArgs = {
|
|
222
|
+
...args,
|
|
223
|
+
options: {
|
|
224
|
+
...args.options,
|
|
225
|
+
onResponse: callback
|
|
226
|
+
}
|
|
305
227
|
};
|
|
306
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
307
228
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
308
229
|
return {
|
|
309
230
|
flatResponse,
|
|
@@ -316,8 +237,8 @@ class DevicesImpl {
|
|
|
316
237
|
};
|
|
317
238
|
const lro = new lroImpl_js_1.LroImpl(sendOperation, { resourceGroupName, managerName, parameters, options }, configureOperationSpec);
|
|
318
239
|
const poller = new core_lro_1.LroEngine(lro, {
|
|
319
|
-
resumeFrom: options
|
|
320
|
-
intervalInMs: options
|
|
240
|
+
resumeFrom: options?.resumeFrom,
|
|
241
|
+
intervalInMs: options?.updateIntervalInMs
|
|
321
242
|
});
|
|
322
243
|
await poller.poll();
|
|
323
244
|
return poller;
|
|
@@ -364,14 +285,19 @@ class DevicesImpl {
|
|
|
364
285
|
return this.client.sendOperationRequest(args, spec);
|
|
365
286
|
};
|
|
366
287
|
const sendOperation = async (args, spec) => {
|
|
367
|
-
var _a;
|
|
368
288
|
let currentRawResponse = undefined;
|
|
369
|
-
const providedCallback =
|
|
289
|
+
const providedCallback = args.options?.onResponse;
|
|
370
290
|
const callback = (rawResponse, flatResponse) => {
|
|
371
291
|
currentRawResponse = rawResponse;
|
|
372
|
-
providedCallback
|
|
292
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
293
|
+
};
|
|
294
|
+
const updatedArgs = {
|
|
295
|
+
...args,
|
|
296
|
+
options: {
|
|
297
|
+
...args.options,
|
|
298
|
+
onResponse: callback
|
|
299
|
+
}
|
|
373
300
|
};
|
|
374
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
375
301
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
376
302
|
return {
|
|
377
303
|
flatResponse,
|
|
@@ -384,8 +310,8 @@ class DevicesImpl {
|
|
|
384
310
|
};
|
|
385
311
|
const lro = new lroImpl_js_1.LroImpl(sendOperation, { deviceName, resourceGroupName, managerName, options }, deleteOperationSpec);
|
|
386
312
|
const poller = new core_lro_1.LroEngine(lro, {
|
|
387
|
-
resumeFrom: options
|
|
388
|
-
intervalInMs: options
|
|
313
|
+
resumeFrom: options?.resumeFrom,
|
|
314
|
+
intervalInMs: options?.updateIntervalInMs
|
|
389
315
|
});
|
|
390
316
|
await poller.poll();
|
|
391
317
|
return poller;
|
|
@@ -434,14 +360,19 @@ class DevicesImpl {
|
|
|
434
360
|
return this.client.sendOperationRequest(args, spec);
|
|
435
361
|
};
|
|
436
362
|
const sendOperation = async (args, spec) => {
|
|
437
|
-
var _a;
|
|
438
363
|
let currentRawResponse = undefined;
|
|
439
|
-
const providedCallback =
|
|
364
|
+
const providedCallback = args.options?.onResponse;
|
|
440
365
|
const callback = (rawResponse, flatResponse) => {
|
|
441
366
|
currentRawResponse = rawResponse;
|
|
442
|
-
providedCallback
|
|
367
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
368
|
+
};
|
|
369
|
+
const updatedArgs = {
|
|
370
|
+
...args,
|
|
371
|
+
options: {
|
|
372
|
+
...args.options,
|
|
373
|
+
onResponse: callback
|
|
374
|
+
}
|
|
443
375
|
};
|
|
444
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
445
376
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
446
377
|
return {
|
|
447
378
|
flatResponse,
|
|
@@ -454,8 +385,8 @@ class DevicesImpl {
|
|
|
454
385
|
};
|
|
455
386
|
const lro = new lroImpl_js_1.LroImpl(sendOperation, { deviceName, resourceGroupName, managerName, options }, deactivateOperationSpec);
|
|
456
387
|
const poller = new core_lro_1.LroEngine(lro, {
|
|
457
|
-
resumeFrom: options
|
|
458
|
-
intervalInMs: options
|
|
388
|
+
resumeFrom: options?.resumeFrom,
|
|
389
|
+
intervalInMs: options?.updateIntervalInMs
|
|
459
390
|
});
|
|
460
391
|
await poller.poll();
|
|
461
392
|
return poller;
|
|
@@ -483,14 +414,19 @@ class DevicesImpl {
|
|
|
483
414
|
return this.client.sendOperationRequest(args, spec);
|
|
484
415
|
};
|
|
485
416
|
const sendOperation = async (args, spec) => {
|
|
486
|
-
var _a;
|
|
487
417
|
let currentRawResponse = undefined;
|
|
488
|
-
const providedCallback =
|
|
418
|
+
const providedCallback = args.options?.onResponse;
|
|
489
419
|
const callback = (rawResponse, flatResponse) => {
|
|
490
420
|
currentRawResponse = rawResponse;
|
|
491
|
-
providedCallback
|
|
421
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
422
|
+
};
|
|
423
|
+
const updatedArgs = {
|
|
424
|
+
...args,
|
|
425
|
+
options: {
|
|
426
|
+
...args.options,
|
|
427
|
+
onResponse: callback
|
|
428
|
+
}
|
|
492
429
|
};
|
|
493
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
494
430
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
495
431
|
return {
|
|
496
432
|
flatResponse,
|
|
@@ -503,8 +439,8 @@ class DevicesImpl {
|
|
|
503
439
|
};
|
|
504
440
|
const lro = new lroImpl_js_1.LroImpl(sendOperation, { deviceName, resourceGroupName, managerName, options }, installUpdatesOperationSpec);
|
|
505
441
|
const poller = new core_lro_1.LroEngine(lro, {
|
|
506
|
-
resumeFrom: options
|
|
507
|
-
intervalInMs: options
|
|
442
|
+
resumeFrom: options?.resumeFrom,
|
|
443
|
+
intervalInMs: options?.updateIntervalInMs
|
|
508
444
|
});
|
|
509
445
|
await poller.poll();
|
|
510
446
|
return poller;
|
|
@@ -565,14 +501,19 @@ class DevicesImpl {
|
|
|
565
501
|
return this.client.sendOperationRequest(args, spec);
|
|
566
502
|
};
|
|
567
503
|
const sendOperation = async (args, spec) => {
|
|
568
|
-
var _a;
|
|
569
504
|
let currentRawResponse = undefined;
|
|
570
|
-
const providedCallback =
|
|
505
|
+
const providedCallback = args.options?.onResponse;
|
|
571
506
|
const callback = (rawResponse, flatResponse) => {
|
|
572
507
|
currentRawResponse = rawResponse;
|
|
573
|
-
providedCallback
|
|
508
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
509
|
+
};
|
|
510
|
+
const updatedArgs = {
|
|
511
|
+
...args,
|
|
512
|
+
options: {
|
|
513
|
+
...args.options,
|
|
514
|
+
onResponse: callback
|
|
515
|
+
}
|
|
574
516
|
};
|
|
575
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
576
517
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
577
518
|
return {
|
|
578
519
|
flatResponse,
|
|
@@ -585,8 +526,8 @@ class DevicesImpl {
|
|
|
585
526
|
};
|
|
586
527
|
const lro = new lroImpl_js_1.LroImpl(sendOperation, { deviceName, resourceGroupName, managerName, options }, scanForUpdatesOperationSpec);
|
|
587
528
|
const poller = new core_lro_1.LroEngine(lro, {
|
|
588
|
-
resumeFrom: options
|
|
589
|
-
intervalInMs: options
|
|
529
|
+
resumeFrom: options?.resumeFrom,
|
|
530
|
+
intervalInMs: options?.updateIntervalInMs
|
|
590
531
|
});
|
|
591
532
|
await poller.poll();
|
|
592
533
|
return poller;
|
|
@@ -626,14 +567,19 @@ class DevicesImpl {
|
|
|
626
567
|
return this.client.sendOperationRequest(args, spec);
|
|
627
568
|
};
|
|
628
569
|
const sendOperation = async (args, spec) => {
|
|
629
|
-
var _a;
|
|
630
570
|
let currentRawResponse = undefined;
|
|
631
|
-
const providedCallback =
|
|
571
|
+
const providedCallback = args.options?.onResponse;
|
|
632
572
|
const callback = (rawResponse, flatResponse) => {
|
|
633
573
|
currentRawResponse = rawResponse;
|
|
634
|
-
providedCallback
|
|
574
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
575
|
+
};
|
|
576
|
+
const updatedArgs = {
|
|
577
|
+
...args,
|
|
578
|
+
options: {
|
|
579
|
+
...args.options,
|
|
580
|
+
onResponse: callback
|
|
581
|
+
}
|
|
635
582
|
};
|
|
636
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
637
583
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
638
584
|
return {
|
|
639
585
|
flatResponse,
|
|
@@ -646,8 +592,8 @@ class DevicesImpl {
|
|
|
646
592
|
};
|
|
647
593
|
const lro = new lroImpl_js_1.LroImpl(sendOperation, { sourceDeviceName, resourceGroupName, managerName, parameters, options }, failoverOperationSpec);
|
|
648
594
|
const poller = new core_lro_1.LroEngine(lro, {
|
|
649
|
-
resumeFrom: options
|
|
650
|
-
intervalInMs: options
|
|
595
|
+
resumeFrom: options?.resumeFrom,
|
|
596
|
+
intervalInMs: options?.updateIntervalInMs
|
|
651
597
|
});
|
|
652
598
|
await poller.poll();
|
|
653
599
|
return poller;
|