@azure/arm-sphere 1.0.1-alpha.20250620.1 → 1.0.1-alpha.20250721.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/azureSphereManagementClient.js +21 -5
- package/dist/browser/azureSphereManagementClient.js.map +1 -1
- package/dist/browser/lroImpl.js +7 -3
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/mappers.js +54 -21
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/catalogs.js +166 -253
- package/dist/browser/operations/catalogs.js.map +1 -1
- package/dist/browser/operations/certificates.js +23 -40
- package/dist/browser/operations/certificates.js.map +1 -1
- package/dist/browser/operations/deployments.js +45 -52
- package/dist/browser/operations/deployments.js.map +1 -1
- package/dist/browser/operations/deviceGroups.js +67 -64
- package/dist/browser/operations/deviceGroups.js.map +1 -1
- package/dist/browser/operations/devices.js +67 -64
- package/dist/browser/operations/devices.js.map +1 -1
- package/dist/browser/operations/images.js +45 -52
- package/dist/browser/operations/images.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/products.js +78 -97
- package/dist/browser/operations/products.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/commonjs/azureSphereManagementClient.js +21 -5
- package/dist/commonjs/azureSphereManagementClient.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 +54 -21
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/catalogs.js +166 -252
- package/dist/commonjs/operations/catalogs.js.map +1 -1
- package/dist/commonjs/operations/certificates.js +23 -39
- package/dist/commonjs/operations/certificates.js.map +1 -1
- package/dist/commonjs/operations/deployments.js +45 -51
- package/dist/commonjs/operations/deployments.js.map +1 -1
- package/dist/commonjs/operations/deviceGroups.js +67 -63
- package/dist/commonjs/operations/deviceGroups.js.map +1 -1
- package/dist/commonjs/operations/devices.js +67 -63
- package/dist/commonjs/operations/devices.js.map +1 -1
- package/dist/commonjs/operations/images.js +45 -51
- package/dist/commonjs/operations/images.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/products.js +78 -96
- package/dist/commonjs/operations/products.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/azureSphereManagementClient.js +21 -5
- package/dist/esm/azureSphereManagementClient.js.map +1 -1
- package/dist/esm/lroImpl.js +7 -3
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/mappers.js +54 -21
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/catalogs.js +166 -253
- package/dist/esm/operations/catalogs.js.map +1 -1
- package/dist/esm/operations/certificates.js +23 -40
- package/dist/esm/operations/certificates.js.map +1 -1
- package/dist/esm/operations/deployments.js +45 -52
- package/dist/esm/operations/deployments.js.map +1 -1
- package/dist/esm/operations/deviceGroups.js +67 -64
- package/dist/esm/operations/deviceGroups.js.map +1 -1
- package/dist/esm/operations/devices.js +67 -64
- package/dist/esm/operations/devices.js.map +1 -1
- package/dist/esm/operations/images.js +45 -52
- package/dist/esm/operations/images.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/products.js +78 -97
- package/dist/esm/operations/products.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/react-native/azureSphereManagementClient.js +21 -5
- package/dist/react-native/azureSphereManagementClient.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 +54 -21
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/catalogs.js +166 -253
- package/dist/react-native/operations/catalogs.js.map +1 -1
- package/dist/react-native/operations/certificates.js +23 -40
- package/dist/react-native/operations/certificates.js.map +1 -1
- package/dist/react-native/operations/deployments.js +45 -52
- package/dist/react-native/operations/deployments.js.map +1 -1
- package/dist/react-native/operations/deviceGroups.js +67 -64
- package/dist/react-native/operations/deviceGroups.js.map +1 -1
- package/dist/react-native/operations/devices.js +67 -64
- package/dist/react-native/operations/devices.js.map +1 -1
- package/dist/react-native/operations/images.js +45 -52
- package/dist/react-native/operations/images.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/products.js +78 -97
- package/dist/react-native/operations/products.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-sphere.api.md → arm-sphere-node.api.md} +0 -0
|
@@ -18,6 +18,7 @@ const lroImpl_js_1 = require("../lroImpl.js");
|
|
|
18
18
|
/// <reference lib="esnext.asynciterable" />
|
|
19
19
|
/** Class containing Catalogs operations. */
|
|
20
20
|
class CatalogsImpl {
|
|
21
|
+
client;
|
|
21
22
|
/**
|
|
22
23
|
* Initialize a new instance of the class Catalogs class.
|
|
23
24
|
* @param client Reference to the service client
|
|
@@ -39,52 +40,35 @@ class CatalogsImpl {
|
|
|
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
|
* List Catalog resources by resource group
|
|
@@ -101,52 +85,35 @@ class CatalogsImpl {
|
|
|
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
|
* Lists deployments for catalog.
|
|
@@ -164,52 +131,35 @@ class CatalogsImpl {
|
|
|
164
131
|
return this;
|
|
165
132
|
},
|
|
166
133
|
byPage: (settings) => {
|
|
167
|
-
if (settings
|
|
134
|
+
if (settings?.maxPageSize) {
|
|
168
135
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
169
136
|
}
|
|
170
137
|
return this.listDeploymentsPagingPage(resourceGroupName, catalogName, options, settings);
|
|
171
138
|
},
|
|
172
139
|
};
|
|
173
140
|
}
|
|
174
|
-
listDeploymentsPagingPage(resourceGroupName, catalogName, options, settings) {
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
}
|
|
192
|
-
});
|
|
141
|
+
async *listDeploymentsPagingPage(resourceGroupName, catalogName, options, settings) {
|
|
142
|
+
let result;
|
|
143
|
+
let continuationToken = settings?.continuationToken;
|
|
144
|
+
if (!continuationToken) {
|
|
145
|
+
result = await this._listDeployments(resourceGroupName, catalogName, options);
|
|
146
|
+
let page = result.value || [];
|
|
147
|
+
continuationToken = result.nextLink;
|
|
148
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
149
|
+
yield page;
|
|
150
|
+
}
|
|
151
|
+
while (continuationToken) {
|
|
152
|
+
result = await this._listDeploymentsNext(resourceGroupName, catalogName, continuationToken, options);
|
|
153
|
+
continuationToken = result.nextLink;
|
|
154
|
+
let page = result.value || [];
|
|
155
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
156
|
+
yield page;
|
|
157
|
+
}
|
|
193
158
|
}
|
|
194
|
-
listDeploymentsPagingAll(resourceGroupName, catalogName, options) {
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listDeploymentsPagingPage(resourceGroupName, catalogName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
199
|
-
_c = _f.value;
|
|
200
|
-
_d = false;
|
|
201
|
-
const page = _c;
|
|
202
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
206
|
-
finally {
|
|
207
|
-
try {
|
|
208
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
209
|
-
}
|
|
210
|
-
finally { if (e_3) throw e_3.error; }
|
|
211
|
-
}
|
|
212
|
-
});
|
|
159
|
+
async *listDeploymentsPagingAll(resourceGroupName, catalogName, options) {
|
|
160
|
+
for await (const page of this.listDeploymentsPagingPage(resourceGroupName, catalogName, options)) {
|
|
161
|
+
yield* page;
|
|
162
|
+
}
|
|
213
163
|
}
|
|
214
164
|
/**
|
|
215
165
|
* List the device groups for the catalog.
|
|
@@ -228,52 +178,35 @@ class CatalogsImpl {
|
|
|
228
178
|
return this;
|
|
229
179
|
},
|
|
230
180
|
byPage: (settings) => {
|
|
231
|
-
if (settings
|
|
181
|
+
if (settings?.maxPageSize) {
|
|
232
182
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
233
183
|
}
|
|
234
184
|
return this.listDeviceGroupsPagingPage(resourceGroupName, catalogName, listDeviceGroupsRequest, options, settings);
|
|
235
185
|
},
|
|
236
186
|
};
|
|
237
187
|
}
|
|
238
|
-
listDeviceGroupsPagingPage(resourceGroupName, catalogName, listDeviceGroupsRequest, options, settings) {
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
}
|
|
256
|
-
});
|
|
188
|
+
async *listDeviceGroupsPagingPage(resourceGroupName, catalogName, listDeviceGroupsRequest, options, settings) {
|
|
189
|
+
let result;
|
|
190
|
+
let continuationToken = settings?.continuationToken;
|
|
191
|
+
if (!continuationToken) {
|
|
192
|
+
result = await this._listDeviceGroups(resourceGroupName, catalogName, listDeviceGroupsRequest, options);
|
|
193
|
+
let page = result.value || [];
|
|
194
|
+
continuationToken = result.nextLink;
|
|
195
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
196
|
+
yield page;
|
|
197
|
+
}
|
|
198
|
+
while (continuationToken) {
|
|
199
|
+
result = await this._listDeviceGroupsNext(resourceGroupName, catalogName, listDeviceGroupsRequest, continuationToken, options);
|
|
200
|
+
continuationToken = result.nextLink;
|
|
201
|
+
let page = result.value || [];
|
|
202
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
203
|
+
yield page;
|
|
204
|
+
}
|
|
257
205
|
}
|
|
258
|
-
listDeviceGroupsPagingAll(resourceGroupName, catalogName, listDeviceGroupsRequest, options) {
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listDeviceGroupsPagingPage(resourceGroupName, catalogName, listDeviceGroupsRequest, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
263
|
-
_c = _f.value;
|
|
264
|
-
_d = false;
|
|
265
|
-
const page = _c;
|
|
266
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
|
270
|
-
finally {
|
|
271
|
-
try {
|
|
272
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
273
|
-
}
|
|
274
|
-
finally { if (e_4) throw e_4.error; }
|
|
275
|
-
}
|
|
276
|
-
});
|
|
206
|
+
async *listDeviceGroupsPagingAll(resourceGroupName, catalogName, listDeviceGroupsRequest, options) {
|
|
207
|
+
for await (const page of this.listDeviceGroupsPagingPage(resourceGroupName, catalogName, listDeviceGroupsRequest, options)) {
|
|
208
|
+
yield* page;
|
|
209
|
+
}
|
|
277
210
|
}
|
|
278
211
|
/**
|
|
279
212
|
* Lists device insights for catalog.
|
|
@@ -291,52 +224,35 @@ class CatalogsImpl {
|
|
|
291
224
|
return this;
|
|
292
225
|
},
|
|
293
226
|
byPage: (settings) => {
|
|
294
|
-
if (settings
|
|
227
|
+
if (settings?.maxPageSize) {
|
|
295
228
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
296
229
|
}
|
|
297
230
|
return this.listDeviceInsightsPagingPage(resourceGroupName, catalogName, options, settings);
|
|
298
231
|
},
|
|
299
232
|
};
|
|
300
233
|
}
|
|
301
|
-
listDeviceInsightsPagingPage(resourceGroupName, catalogName, options, settings) {
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
}
|
|
319
|
-
});
|
|
234
|
+
async *listDeviceInsightsPagingPage(resourceGroupName, catalogName, options, settings) {
|
|
235
|
+
let result;
|
|
236
|
+
let continuationToken = settings?.continuationToken;
|
|
237
|
+
if (!continuationToken) {
|
|
238
|
+
result = await this._listDeviceInsights(resourceGroupName, catalogName, options);
|
|
239
|
+
let page = result.value || [];
|
|
240
|
+
continuationToken = result.nextLink;
|
|
241
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
242
|
+
yield page;
|
|
243
|
+
}
|
|
244
|
+
while (continuationToken) {
|
|
245
|
+
result = await this._listDeviceInsightsNext(resourceGroupName, catalogName, continuationToken, options);
|
|
246
|
+
continuationToken = result.nextLink;
|
|
247
|
+
let page = result.value || [];
|
|
248
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
249
|
+
yield page;
|
|
250
|
+
}
|
|
320
251
|
}
|
|
321
|
-
listDeviceInsightsPagingAll(resourceGroupName, catalogName, options) {
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listDeviceInsightsPagingPage(resourceGroupName, catalogName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
326
|
-
_c = _f.value;
|
|
327
|
-
_d = false;
|
|
328
|
-
const page = _c;
|
|
329
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
330
|
-
}
|
|
331
|
-
}
|
|
332
|
-
catch (e_5_1) { e_5 = { error: e_5_1 }; }
|
|
333
|
-
finally {
|
|
334
|
-
try {
|
|
335
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
336
|
-
}
|
|
337
|
-
finally { if (e_5) throw e_5.error; }
|
|
338
|
-
}
|
|
339
|
-
});
|
|
252
|
+
async *listDeviceInsightsPagingAll(resourceGroupName, catalogName, options) {
|
|
253
|
+
for await (const page of this.listDeviceInsightsPagingPage(resourceGroupName, catalogName, options)) {
|
|
254
|
+
yield* page;
|
|
255
|
+
}
|
|
340
256
|
}
|
|
341
257
|
/**
|
|
342
258
|
* Lists devices for catalog.
|
|
@@ -354,52 +270,35 @@ class CatalogsImpl {
|
|
|
354
270
|
return this;
|
|
355
271
|
},
|
|
356
272
|
byPage: (settings) => {
|
|
357
|
-
if (settings
|
|
273
|
+
if (settings?.maxPageSize) {
|
|
358
274
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
359
275
|
}
|
|
360
276
|
return this.listDevicesPagingPage(resourceGroupName, catalogName, options, settings);
|
|
361
277
|
},
|
|
362
278
|
};
|
|
363
279
|
}
|
|
364
|
-
listDevicesPagingPage(resourceGroupName, catalogName, options, settings) {
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
}
|
|
382
|
-
});
|
|
280
|
+
async *listDevicesPagingPage(resourceGroupName, catalogName, options, settings) {
|
|
281
|
+
let result;
|
|
282
|
+
let continuationToken = settings?.continuationToken;
|
|
283
|
+
if (!continuationToken) {
|
|
284
|
+
result = await this._listDevices(resourceGroupName, catalogName, options);
|
|
285
|
+
let page = result.value || [];
|
|
286
|
+
continuationToken = result.nextLink;
|
|
287
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
288
|
+
yield page;
|
|
289
|
+
}
|
|
290
|
+
while (continuationToken) {
|
|
291
|
+
result = await this._listDevicesNext(resourceGroupName, catalogName, continuationToken, options);
|
|
292
|
+
continuationToken = result.nextLink;
|
|
293
|
+
let page = result.value || [];
|
|
294
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
295
|
+
yield page;
|
|
296
|
+
}
|
|
383
297
|
}
|
|
384
|
-
listDevicesPagingAll(resourceGroupName, catalogName, options) {
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listDevicesPagingPage(resourceGroupName, catalogName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
389
|
-
_c = _f.value;
|
|
390
|
-
_d = false;
|
|
391
|
-
const page = _c;
|
|
392
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
393
|
-
}
|
|
394
|
-
}
|
|
395
|
-
catch (e_6_1) { e_6 = { error: e_6_1 }; }
|
|
396
|
-
finally {
|
|
397
|
-
try {
|
|
398
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
399
|
-
}
|
|
400
|
-
finally { if (e_6) throw e_6.error; }
|
|
401
|
-
}
|
|
402
|
-
});
|
|
298
|
+
async *listDevicesPagingAll(resourceGroupName, catalogName, options) {
|
|
299
|
+
for await (const page of this.listDevicesPagingPage(resourceGroupName, catalogName, options)) {
|
|
300
|
+
yield* page;
|
|
301
|
+
}
|
|
403
302
|
}
|
|
404
303
|
/**
|
|
405
304
|
* List Catalog resources by subscription ID
|
|
@@ -437,14 +336,19 @@ class CatalogsImpl {
|
|
|
437
336
|
return this.client.sendOperationRequest(args, spec);
|
|
438
337
|
};
|
|
439
338
|
const sendOperationFn = async (args, spec) => {
|
|
440
|
-
var _a;
|
|
441
339
|
let currentRawResponse = undefined;
|
|
442
|
-
const providedCallback =
|
|
340
|
+
const providedCallback = args.options?.onResponse;
|
|
443
341
|
const callback = (rawResponse, flatResponse) => {
|
|
444
342
|
currentRawResponse = rawResponse;
|
|
445
|
-
providedCallback
|
|
343
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
344
|
+
};
|
|
345
|
+
const updatedArgs = {
|
|
346
|
+
...args,
|
|
347
|
+
options: {
|
|
348
|
+
...args.options,
|
|
349
|
+
onResponse: callback,
|
|
350
|
+
},
|
|
446
351
|
};
|
|
447
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
448
352
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
449
353
|
return {
|
|
450
354
|
flatResponse,
|
|
@@ -461,8 +365,8 @@ class CatalogsImpl {
|
|
|
461
365
|
spec: createOrUpdateOperationSpec,
|
|
462
366
|
});
|
|
463
367
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
464
|
-
restoreFrom: options
|
|
465
|
-
intervalInMs: options
|
|
368
|
+
restoreFrom: options?.resumeFrom,
|
|
369
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
466
370
|
resourceLocationConfig: "azure-async-operation",
|
|
467
371
|
});
|
|
468
372
|
await poller.poll();
|
|
@@ -500,14 +404,19 @@ class CatalogsImpl {
|
|
|
500
404
|
return this.client.sendOperationRequest(args, spec);
|
|
501
405
|
};
|
|
502
406
|
const sendOperationFn = async (args, spec) => {
|
|
503
|
-
var _a;
|
|
504
407
|
let currentRawResponse = undefined;
|
|
505
|
-
const providedCallback =
|
|
408
|
+
const providedCallback = args.options?.onResponse;
|
|
506
409
|
const callback = (rawResponse, flatResponse) => {
|
|
507
410
|
currentRawResponse = rawResponse;
|
|
508
|
-
providedCallback
|
|
411
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
412
|
+
};
|
|
413
|
+
const updatedArgs = {
|
|
414
|
+
...args,
|
|
415
|
+
options: {
|
|
416
|
+
...args.options,
|
|
417
|
+
onResponse: callback,
|
|
418
|
+
},
|
|
509
419
|
};
|
|
510
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
511
420
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
512
421
|
return {
|
|
513
422
|
flatResponse,
|
|
@@ -524,8 +433,8 @@ class CatalogsImpl {
|
|
|
524
433
|
spec: deleteOperationSpec,
|
|
525
434
|
});
|
|
526
435
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
527
|
-
restoreFrom: options
|
|
528
|
-
intervalInMs: options
|
|
436
|
+
restoreFrom: options?.resumeFrom,
|
|
437
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
529
438
|
resourceLocationConfig: "location",
|
|
530
439
|
});
|
|
531
440
|
await poller.poll();
|
|
@@ -599,14 +508,19 @@ class CatalogsImpl {
|
|
|
599
508
|
return this.client.sendOperationRequest(args, spec);
|
|
600
509
|
};
|
|
601
510
|
const sendOperationFn = async (args, spec) => {
|
|
602
|
-
var _a;
|
|
603
511
|
let currentRawResponse = undefined;
|
|
604
|
-
const providedCallback =
|
|
512
|
+
const providedCallback = args.options?.onResponse;
|
|
605
513
|
const callback = (rawResponse, flatResponse) => {
|
|
606
514
|
currentRawResponse = rawResponse;
|
|
607
|
-
providedCallback
|
|
515
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
516
|
+
};
|
|
517
|
+
const updatedArgs = {
|
|
518
|
+
...args,
|
|
519
|
+
options: {
|
|
520
|
+
...args.options,
|
|
521
|
+
onResponse: callback,
|
|
522
|
+
},
|
|
608
523
|
};
|
|
609
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
610
524
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
611
525
|
return {
|
|
612
526
|
flatResponse,
|
|
@@ -623,8 +537,8 @@ class CatalogsImpl {
|
|
|
623
537
|
spec: uploadImageOperationSpec,
|
|
624
538
|
});
|
|
625
539
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
626
|
-
restoreFrom: options
|
|
627
|
-
intervalInMs: options
|
|
540
|
+
restoreFrom: options?.resumeFrom,
|
|
541
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
628
542
|
resourceLocationConfig: "location",
|
|
629
543
|
});
|
|
630
544
|
await poller.poll();
|