@azure/arm-sphere 1.0.0-beta.1 → 1.0.0
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/CHANGELOG.md +2 -2
- package/LICENSE +1 -1
- package/README.md +1 -1
- package/dist/index.js +1517 -1338
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/catalogsCountDevicesSample.js +1 -1
- package/dist-esm/samples-dev/catalogsCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/catalogsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/catalogsGetSample.js +1 -1
- package/dist-esm/samples-dev/catalogsListByResourceGroupSample.js +4 -9
- package/dist-esm/samples-dev/catalogsListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/catalogsListBySubscriptionSample.js +4 -9
- package/dist-esm/samples-dev/catalogsListBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/catalogsListDeploymentsSample.js +4 -9
- package/dist-esm/samples-dev/catalogsListDeploymentsSample.js.map +1 -1
- package/dist-esm/samples-dev/catalogsListDeviceGroupsSample.js +6 -11
- package/dist-esm/samples-dev/catalogsListDeviceGroupsSample.js.map +1 -1
- package/dist-esm/samples-dev/catalogsListDeviceInsightsSample.js +6 -11
- package/dist-esm/samples-dev/catalogsListDeviceInsightsSample.js.map +1 -1
- package/dist-esm/samples-dev/catalogsListDevicesSample.js +4 -9
- package/dist-esm/samples-dev/catalogsListDevicesSample.js.map +1 -1
- package/dist-esm/samples-dev/catalogsUpdateSample.js +1 -1
- package/dist-esm/samples-dev/catalogsUploadImageSample.d.ts +2 -0
- package/dist-esm/samples-dev/catalogsUploadImageSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/catalogsUploadImageSample.js +42 -0
- package/dist-esm/samples-dev/catalogsUploadImageSample.js.map +1 -0
- package/dist-esm/samples-dev/certificatesGetSample.js +1 -1
- package/dist-esm/samples-dev/certificatesListByCatalogSample.js +4 -9
- package/dist-esm/samples-dev/certificatesListByCatalogSample.js.map +1 -1
- package/dist-esm/samples-dev/certificatesRetrieveCertChainSample.js +1 -1
- package/dist-esm/samples-dev/certificatesRetrieveProofOfPossessionNonceSample.js +3 -3
- package/dist-esm/samples-dev/certificatesRetrieveProofOfPossessionNonceSample.js.map +1 -1
- package/dist-esm/samples-dev/deploymentsCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/deploymentsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/deploymentsGetSample.js +1 -1
- package/dist-esm/samples-dev/deploymentsListByDeviceGroupSample.js +4 -9
- package/dist-esm/samples-dev/deploymentsListByDeviceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/deviceGroupsClaimDevicesSample.js +4 -4
- package/dist-esm/samples-dev/deviceGroupsClaimDevicesSample.js.map +1 -1
- package/dist-esm/samples-dev/deviceGroupsCountDevicesSample.js +1 -1
- package/dist-esm/samples-dev/deviceGroupsCreateOrUpdateSample.js +6 -4
- package/dist-esm/samples-dev/deviceGroupsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/deviceGroupsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/deviceGroupsGetSample.js +1 -1
- package/dist-esm/samples-dev/deviceGroupsListByProductSample.js +4 -9
- package/dist-esm/samples-dev/deviceGroupsListByProductSample.js.map +1 -1
- package/dist-esm/samples-dev/deviceGroupsUpdateSample.js +2 -2
- package/dist-esm/samples-dev/deviceGroupsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/devicesCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/devicesDeleteSample.js +1 -1
- package/dist-esm/samples-dev/devicesGenerateCapabilityImageSample.js +3 -3
- package/dist-esm/samples-dev/devicesGenerateCapabilityImageSample.js.map +1 -1
- package/dist-esm/samples-dev/devicesGetSample.js +1 -1
- package/dist-esm/samples-dev/devicesListByDeviceGroupSample.js +4 -9
- package/dist-esm/samples-dev/devicesListByDeviceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/devicesUpdateSample.js +1 -1
- package/dist-esm/samples-dev/imagesCreateOrUpdateSample.js +3 -3
- package/dist-esm/samples-dev/imagesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/imagesDeleteSample.js +2 -2
- package/dist-esm/samples-dev/imagesDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/imagesGetSample.js +2 -2
- package/dist-esm/samples-dev/imagesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/imagesListByCatalogSample.js +4 -9
- package/dist-esm/samples-dev/imagesListByCatalogSample.js.map +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +4 -9
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
- package/dist-esm/samples-dev/productsCountDevicesSample.js +1 -1
- package/dist-esm/samples-dev/productsCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/productsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/productsGenerateDefaultDeviceGroupsSample.js +4 -9
- package/dist-esm/samples-dev/productsGenerateDefaultDeviceGroupsSample.js.map +1 -1
- package/dist-esm/samples-dev/productsGetSample.js +1 -1
- package/dist-esm/samples-dev/productsListByCatalogSample.js +4 -9
- package/dist-esm/samples-dev/productsListByCatalogSample.js.map +1 -1
- package/dist-esm/samples-dev/productsUpdateSample.js +1 -1
- package/dist-esm/src/azureSphereManagementClient.d.ts.map +1 -1
- package/dist-esm/src/azureSphereManagementClient.js +9 -9
- package/dist-esm/src/azureSphereManagementClient.js.map +1 -1
- package/dist-esm/src/lroImpl.js +1 -1
- package/dist-esm/src/models/index.d.ts +232 -178
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +11 -2
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +783 -636
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +1 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +80 -76
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/catalogs.d.ts +17 -1
- package/dist-esm/src/operations/catalogs.d.ts.map +1 -1
- package/dist-esm/src/operations/catalogs.js +214 -154
- package/dist-esm/src/operations/catalogs.js.map +1 -1
- package/dist-esm/src/operations/certificates.js +31 -36
- package/dist-esm/src/operations/certificates.js.map +1 -1
- package/dist-esm/src/operations/deployments.d.ts.map +1 -1
- package/dist-esm/src/operations/deployments.js +45 -50
- package/dist-esm/src/operations/deployments.js.map +1 -1
- package/dist-esm/src/operations/deviceGroups.d.ts.map +1 -1
- package/dist-esm/src/operations/deviceGroups.js +74 -79
- package/dist-esm/src/operations/deviceGroups.js.map +1 -1
- package/dist-esm/src/operations/devices.d.ts.map +1 -1
- package/dist-esm/src/operations/devices.js +70 -75
- package/dist-esm/src/operations/devices.js.map +1 -1
- package/dist-esm/src/operations/images.d.ts +5 -5
- package/dist-esm/src/operations/images.d.ts.map +1 -1
- package/dist-esm/src/operations/images.js +46 -51
- package/dist-esm/src/operations/images.js.map +1 -1
- package/dist-esm/src/operations/operations.js +12 -17
- package/dist-esm/src/operations/operations.js.map +1 -1
- package/dist-esm/src/operations/products.d.ts.map +1 -1
- package/dist-esm/src/operations/products.js +72 -82
- package/dist-esm/src/operations/products.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/catalogs.d.ts +17 -1
- package/dist-esm/src/operationsInterfaces/catalogs.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/images.d.ts +5 -5
- package/dist-esm/src/pagingHelper.js.map +1 -1
- package/dist-esm/test/sphere_operations_test.spec.js +12 -27
- package/dist-esm/test/sphere_operations_test.spec.js.map +1 -1
- package/package.json +16 -21
- package/review/arm-sphere.api.md +103 -51
- package/src/azureSphereManagementClient.ts +18 -17
- package/src/lroImpl.ts +3 -3
- package/src/models/index.ts +262 -194
- package/src/models/mappers.ts +811 -682
- package/src/models/parameters.ts +85 -80
- package/src/operations/catalogs.ts +338 -221
- package/src/operations/certificates.ts +51 -55
- package/src/operations/deployments.ts +81 -87
- package/src/operations/deviceGroups.ts +135 -146
- package/src/operations/devices.ts +128 -138
- package/src/operations/images.ts +82 -88
- package/src/operations/operations.ts +16 -16
- package/src/operations/products.ts +132 -142
- package/src/operationsInterfaces/catalogs.ts +48 -14
- package/src/operationsInterfaces/certificates.ts +5 -5
- package/src/operationsInterfaces/deployments.ts +7 -7
- package/src/operationsInterfaces/deviceGroups.ts +12 -12
- package/src/operationsInterfaces/devices.ts +11 -11
- package/src/operationsInterfaces/images.ts +12 -12
- package/src/operationsInterfaces/operations.ts +1 -1
- package/src/operationsInterfaces/products.ts +11 -11
- package/src/pagingHelper.ts +1 -1
- package/types/arm-sphere.d.ts +212 -131
- package/types/tsdoc-metadata.json +1 -1
- package/rollup.config.js +0 -122
|
@@ -16,7 +16,7 @@ import { AzureSphereManagementClient } from "../azureSphereManagementClient";
|
|
|
16
16
|
import {
|
|
17
17
|
SimplePollerLike,
|
|
18
18
|
OperationState,
|
|
19
|
-
createHttpPoller
|
|
19
|
+
createHttpPoller,
|
|
20
20
|
} from "@azure/core-lro";
|
|
21
21
|
import { createLroSpec } from "../lroImpl";
|
|
22
22
|
import {
|
|
@@ -54,12 +54,15 @@ import {
|
|
|
54
54
|
CatalogsDeleteOptionalParams,
|
|
55
55
|
CatalogsCountDevicesOptionalParams,
|
|
56
56
|
CatalogsCountDevicesResponse,
|
|
57
|
+
Image,
|
|
58
|
+
CatalogsUploadImageOptionalParams,
|
|
59
|
+
CatalogsUploadImageResponse,
|
|
57
60
|
CatalogsListBySubscriptionNextResponse,
|
|
58
61
|
CatalogsListByResourceGroupNextResponse,
|
|
59
62
|
CatalogsListDeploymentsNextResponse,
|
|
60
63
|
CatalogsListDeviceGroupsNextResponse,
|
|
61
64
|
CatalogsListDeviceInsightsNextResponse,
|
|
62
|
-
CatalogsListDevicesNextResponse
|
|
65
|
+
CatalogsListDevicesNextResponse,
|
|
63
66
|
} from "../models";
|
|
64
67
|
|
|
65
68
|
/// <reference lib="esnext.asynciterable" />
|
|
@@ -80,7 +83,7 @@ export class CatalogsImpl implements Catalogs {
|
|
|
80
83
|
* @param options The options parameters.
|
|
81
84
|
*/
|
|
82
85
|
public listBySubscription(
|
|
83
|
-
options?: CatalogsListBySubscriptionOptionalParams
|
|
86
|
+
options?: CatalogsListBySubscriptionOptionalParams,
|
|
84
87
|
): PagedAsyncIterableIterator<Catalog> {
|
|
85
88
|
const iter = this.listBySubscriptionPagingAll(options);
|
|
86
89
|
return {
|
|
@@ -95,13 +98,13 @@ export class CatalogsImpl implements Catalogs {
|
|
|
95
98
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
96
99
|
}
|
|
97
100
|
return this.listBySubscriptionPagingPage(options, settings);
|
|
98
|
-
}
|
|
101
|
+
},
|
|
99
102
|
};
|
|
100
103
|
}
|
|
101
104
|
|
|
102
105
|
private async *listBySubscriptionPagingPage(
|
|
103
106
|
options?: CatalogsListBySubscriptionOptionalParams,
|
|
104
|
-
settings?: PageSettings
|
|
107
|
+
settings?: PageSettings,
|
|
105
108
|
): AsyncIterableIterator<Catalog[]> {
|
|
106
109
|
let result: CatalogsListBySubscriptionResponse;
|
|
107
110
|
let continuationToken = settings?.continuationToken;
|
|
@@ -122,7 +125,7 @@ export class CatalogsImpl implements Catalogs {
|
|
|
122
125
|
}
|
|
123
126
|
|
|
124
127
|
private async *listBySubscriptionPagingAll(
|
|
125
|
-
options?: CatalogsListBySubscriptionOptionalParams
|
|
128
|
+
options?: CatalogsListBySubscriptionOptionalParams,
|
|
126
129
|
): AsyncIterableIterator<Catalog> {
|
|
127
130
|
for await (const page of this.listBySubscriptionPagingPage(options)) {
|
|
128
131
|
yield* page;
|
|
@@ -136,7 +139,7 @@ export class CatalogsImpl implements Catalogs {
|
|
|
136
139
|
*/
|
|
137
140
|
public listByResourceGroup(
|
|
138
141
|
resourceGroupName: string,
|
|
139
|
-
options?: CatalogsListByResourceGroupOptionalParams
|
|
142
|
+
options?: CatalogsListByResourceGroupOptionalParams,
|
|
140
143
|
): PagedAsyncIterableIterator<Catalog> {
|
|
141
144
|
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
142
145
|
return {
|
|
@@ -153,16 +156,16 @@ export class CatalogsImpl implements Catalogs {
|
|
|
153
156
|
return this.listByResourceGroupPagingPage(
|
|
154
157
|
resourceGroupName,
|
|
155
158
|
options,
|
|
156
|
-
settings
|
|
159
|
+
settings,
|
|
157
160
|
);
|
|
158
|
-
}
|
|
161
|
+
},
|
|
159
162
|
};
|
|
160
163
|
}
|
|
161
164
|
|
|
162
165
|
private async *listByResourceGroupPagingPage(
|
|
163
166
|
resourceGroupName: string,
|
|
164
167
|
options?: CatalogsListByResourceGroupOptionalParams,
|
|
165
|
-
settings?: PageSettings
|
|
168
|
+
settings?: PageSettings,
|
|
166
169
|
): AsyncIterableIterator<Catalog[]> {
|
|
167
170
|
let result: CatalogsListByResourceGroupResponse;
|
|
168
171
|
let continuationToken = settings?.continuationToken;
|
|
@@ -177,7 +180,7 @@ export class CatalogsImpl implements Catalogs {
|
|
|
177
180
|
result = await this._listByResourceGroupNext(
|
|
178
181
|
resourceGroupName,
|
|
179
182
|
continuationToken,
|
|
180
|
-
options
|
|
183
|
+
options,
|
|
181
184
|
);
|
|
182
185
|
continuationToken = result.nextLink;
|
|
183
186
|
let page = result.value || [];
|
|
@@ -188,11 +191,11 @@ export class CatalogsImpl implements Catalogs {
|
|
|
188
191
|
|
|
189
192
|
private async *listByResourceGroupPagingAll(
|
|
190
193
|
resourceGroupName: string,
|
|
191
|
-
options?: CatalogsListByResourceGroupOptionalParams
|
|
194
|
+
options?: CatalogsListByResourceGroupOptionalParams,
|
|
192
195
|
): AsyncIterableIterator<Catalog> {
|
|
193
196
|
for await (const page of this.listByResourceGroupPagingPage(
|
|
194
197
|
resourceGroupName,
|
|
195
|
-
options
|
|
198
|
+
options,
|
|
196
199
|
)) {
|
|
197
200
|
yield* page;
|
|
198
201
|
}
|
|
@@ -207,12 +210,12 @@ export class CatalogsImpl implements Catalogs {
|
|
|
207
210
|
public listDeployments(
|
|
208
211
|
resourceGroupName: string,
|
|
209
212
|
catalogName: string,
|
|
210
|
-
options?: CatalogsListDeploymentsOptionalParams
|
|
213
|
+
options?: CatalogsListDeploymentsOptionalParams,
|
|
211
214
|
): PagedAsyncIterableIterator<Deployment> {
|
|
212
215
|
const iter = this.listDeploymentsPagingAll(
|
|
213
216
|
resourceGroupName,
|
|
214
217
|
catalogName,
|
|
215
|
-
options
|
|
218
|
+
options,
|
|
216
219
|
);
|
|
217
220
|
return {
|
|
218
221
|
next() {
|
|
@@ -229,9 +232,9 @@ export class CatalogsImpl implements Catalogs {
|
|
|
229
232
|
resourceGroupName,
|
|
230
233
|
catalogName,
|
|
231
234
|
options,
|
|
232
|
-
settings
|
|
235
|
+
settings,
|
|
233
236
|
);
|
|
234
|
-
}
|
|
237
|
+
},
|
|
235
238
|
};
|
|
236
239
|
}
|
|
237
240
|
|
|
@@ -239,7 +242,7 @@ export class CatalogsImpl implements Catalogs {
|
|
|
239
242
|
resourceGroupName: string,
|
|
240
243
|
catalogName: string,
|
|
241
244
|
options?: CatalogsListDeploymentsOptionalParams,
|
|
242
|
-
settings?: PageSettings
|
|
245
|
+
settings?: PageSettings,
|
|
243
246
|
): AsyncIterableIterator<Deployment[]> {
|
|
244
247
|
let result: CatalogsListDeploymentsResponse;
|
|
245
248
|
let continuationToken = settings?.continuationToken;
|
|
@@ -247,7 +250,7 @@ export class CatalogsImpl implements Catalogs {
|
|
|
247
250
|
result = await this._listDeployments(
|
|
248
251
|
resourceGroupName,
|
|
249
252
|
catalogName,
|
|
250
|
-
options
|
|
253
|
+
options,
|
|
251
254
|
);
|
|
252
255
|
let page = result.value || [];
|
|
253
256
|
continuationToken = result.nextLink;
|
|
@@ -259,7 +262,7 @@ export class CatalogsImpl implements Catalogs {
|
|
|
259
262
|
resourceGroupName,
|
|
260
263
|
catalogName,
|
|
261
264
|
continuationToken,
|
|
262
|
-
options
|
|
265
|
+
options,
|
|
263
266
|
);
|
|
264
267
|
continuationToken = result.nextLink;
|
|
265
268
|
let page = result.value || [];
|
|
@@ -271,12 +274,12 @@ export class CatalogsImpl implements Catalogs {
|
|
|
271
274
|
private async *listDeploymentsPagingAll(
|
|
272
275
|
resourceGroupName: string,
|
|
273
276
|
catalogName: string,
|
|
274
|
-
options?: CatalogsListDeploymentsOptionalParams
|
|
277
|
+
options?: CatalogsListDeploymentsOptionalParams,
|
|
275
278
|
): AsyncIterableIterator<Deployment> {
|
|
276
279
|
for await (const page of this.listDeploymentsPagingPage(
|
|
277
280
|
resourceGroupName,
|
|
278
281
|
catalogName,
|
|
279
|
-
options
|
|
282
|
+
options,
|
|
280
283
|
)) {
|
|
281
284
|
yield* page;
|
|
282
285
|
}
|
|
@@ -293,13 +296,13 @@ export class CatalogsImpl implements Catalogs {
|
|
|
293
296
|
resourceGroupName: string,
|
|
294
297
|
catalogName: string,
|
|
295
298
|
listDeviceGroupsRequest: ListDeviceGroupsRequest,
|
|
296
|
-
options?: CatalogsListDeviceGroupsOptionalParams
|
|
299
|
+
options?: CatalogsListDeviceGroupsOptionalParams,
|
|
297
300
|
): PagedAsyncIterableIterator<DeviceGroup> {
|
|
298
301
|
const iter = this.listDeviceGroupsPagingAll(
|
|
299
302
|
resourceGroupName,
|
|
300
303
|
catalogName,
|
|
301
304
|
listDeviceGroupsRequest,
|
|
302
|
-
options
|
|
305
|
+
options,
|
|
303
306
|
);
|
|
304
307
|
return {
|
|
305
308
|
next() {
|
|
@@ -317,9 +320,9 @@ export class CatalogsImpl implements Catalogs {
|
|
|
317
320
|
catalogName,
|
|
318
321
|
listDeviceGroupsRequest,
|
|
319
322
|
options,
|
|
320
|
-
settings
|
|
323
|
+
settings,
|
|
321
324
|
);
|
|
322
|
-
}
|
|
325
|
+
},
|
|
323
326
|
};
|
|
324
327
|
}
|
|
325
328
|
|
|
@@ -328,7 +331,7 @@ export class CatalogsImpl implements Catalogs {
|
|
|
328
331
|
catalogName: string,
|
|
329
332
|
listDeviceGroupsRequest: ListDeviceGroupsRequest,
|
|
330
333
|
options?: CatalogsListDeviceGroupsOptionalParams,
|
|
331
|
-
settings?: PageSettings
|
|
334
|
+
settings?: PageSettings,
|
|
332
335
|
): AsyncIterableIterator<DeviceGroup[]> {
|
|
333
336
|
let result: CatalogsListDeviceGroupsResponse;
|
|
334
337
|
let continuationToken = settings?.continuationToken;
|
|
@@ -337,7 +340,7 @@ export class CatalogsImpl implements Catalogs {
|
|
|
337
340
|
resourceGroupName,
|
|
338
341
|
catalogName,
|
|
339
342
|
listDeviceGroupsRequest,
|
|
340
|
-
options
|
|
343
|
+
options,
|
|
341
344
|
);
|
|
342
345
|
let page = result.value || [];
|
|
343
346
|
continuationToken = result.nextLink;
|
|
@@ -350,7 +353,7 @@ export class CatalogsImpl implements Catalogs {
|
|
|
350
353
|
catalogName,
|
|
351
354
|
listDeviceGroupsRequest,
|
|
352
355
|
continuationToken,
|
|
353
|
-
options
|
|
356
|
+
options,
|
|
354
357
|
);
|
|
355
358
|
continuationToken = result.nextLink;
|
|
356
359
|
let page = result.value || [];
|
|
@@ -363,13 +366,13 @@ export class CatalogsImpl implements Catalogs {
|
|
|
363
366
|
resourceGroupName: string,
|
|
364
367
|
catalogName: string,
|
|
365
368
|
listDeviceGroupsRequest: ListDeviceGroupsRequest,
|
|
366
|
-
options?: CatalogsListDeviceGroupsOptionalParams
|
|
369
|
+
options?: CatalogsListDeviceGroupsOptionalParams,
|
|
367
370
|
): AsyncIterableIterator<DeviceGroup> {
|
|
368
371
|
for await (const page of this.listDeviceGroupsPagingPage(
|
|
369
372
|
resourceGroupName,
|
|
370
373
|
catalogName,
|
|
371
374
|
listDeviceGroupsRequest,
|
|
372
|
-
options
|
|
375
|
+
options,
|
|
373
376
|
)) {
|
|
374
377
|
yield* page;
|
|
375
378
|
}
|
|
@@ -384,12 +387,12 @@ export class CatalogsImpl implements Catalogs {
|
|
|
384
387
|
public listDeviceInsights(
|
|
385
388
|
resourceGroupName: string,
|
|
386
389
|
catalogName: string,
|
|
387
|
-
options?: CatalogsListDeviceInsightsOptionalParams
|
|
390
|
+
options?: CatalogsListDeviceInsightsOptionalParams,
|
|
388
391
|
): PagedAsyncIterableIterator<DeviceInsight> {
|
|
389
392
|
const iter = this.listDeviceInsightsPagingAll(
|
|
390
393
|
resourceGroupName,
|
|
391
394
|
catalogName,
|
|
392
|
-
options
|
|
395
|
+
options,
|
|
393
396
|
);
|
|
394
397
|
return {
|
|
395
398
|
next() {
|
|
@@ -406,9 +409,9 @@ export class CatalogsImpl implements Catalogs {
|
|
|
406
409
|
resourceGroupName,
|
|
407
410
|
catalogName,
|
|
408
411
|
options,
|
|
409
|
-
settings
|
|
412
|
+
settings,
|
|
410
413
|
);
|
|
411
|
-
}
|
|
414
|
+
},
|
|
412
415
|
};
|
|
413
416
|
}
|
|
414
417
|
|
|
@@ -416,7 +419,7 @@ export class CatalogsImpl implements Catalogs {
|
|
|
416
419
|
resourceGroupName: string,
|
|
417
420
|
catalogName: string,
|
|
418
421
|
options?: CatalogsListDeviceInsightsOptionalParams,
|
|
419
|
-
settings?: PageSettings
|
|
422
|
+
settings?: PageSettings,
|
|
420
423
|
): AsyncIterableIterator<DeviceInsight[]> {
|
|
421
424
|
let result: CatalogsListDeviceInsightsResponse;
|
|
422
425
|
let continuationToken = settings?.continuationToken;
|
|
@@ -424,7 +427,7 @@ export class CatalogsImpl implements Catalogs {
|
|
|
424
427
|
result = await this._listDeviceInsights(
|
|
425
428
|
resourceGroupName,
|
|
426
429
|
catalogName,
|
|
427
|
-
options
|
|
430
|
+
options,
|
|
428
431
|
);
|
|
429
432
|
let page = result.value || [];
|
|
430
433
|
continuationToken = result.nextLink;
|
|
@@ -436,7 +439,7 @@ export class CatalogsImpl implements Catalogs {
|
|
|
436
439
|
resourceGroupName,
|
|
437
440
|
catalogName,
|
|
438
441
|
continuationToken,
|
|
439
|
-
options
|
|
442
|
+
options,
|
|
440
443
|
);
|
|
441
444
|
continuationToken = result.nextLink;
|
|
442
445
|
let page = result.value || [];
|
|
@@ -448,12 +451,12 @@ export class CatalogsImpl implements Catalogs {
|
|
|
448
451
|
private async *listDeviceInsightsPagingAll(
|
|
449
452
|
resourceGroupName: string,
|
|
450
453
|
catalogName: string,
|
|
451
|
-
options?: CatalogsListDeviceInsightsOptionalParams
|
|
454
|
+
options?: CatalogsListDeviceInsightsOptionalParams,
|
|
452
455
|
): AsyncIterableIterator<DeviceInsight> {
|
|
453
456
|
for await (const page of this.listDeviceInsightsPagingPage(
|
|
454
457
|
resourceGroupName,
|
|
455
458
|
catalogName,
|
|
456
|
-
options
|
|
459
|
+
options,
|
|
457
460
|
)) {
|
|
458
461
|
yield* page;
|
|
459
462
|
}
|
|
@@ -468,12 +471,12 @@ export class CatalogsImpl implements Catalogs {
|
|
|
468
471
|
public listDevices(
|
|
469
472
|
resourceGroupName: string,
|
|
470
473
|
catalogName: string,
|
|
471
|
-
options?: CatalogsListDevicesOptionalParams
|
|
474
|
+
options?: CatalogsListDevicesOptionalParams,
|
|
472
475
|
): PagedAsyncIterableIterator<Device> {
|
|
473
476
|
const iter = this.listDevicesPagingAll(
|
|
474
477
|
resourceGroupName,
|
|
475
478
|
catalogName,
|
|
476
|
-
options
|
|
479
|
+
options,
|
|
477
480
|
);
|
|
478
481
|
return {
|
|
479
482
|
next() {
|
|
@@ -490,9 +493,9 @@ export class CatalogsImpl implements Catalogs {
|
|
|
490
493
|
resourceGroupName,
|
|
491
494
|
catalogName,
|
|
492
495
|
options,
|
|
493
|
-
settings
|
|
496
|
+
settings,
|
|
494
497
|
);
|
|
495
|
-
}
|
|
498
|
+
},
|
|
496
499
|
};
|
|
497
500
|
}
|
|
498
501
|
|
|
@@ -500,7 +503,7 @@ export class CatalogsImpl implements Catalogs {
|
|
|
500
503
|
resourceGroupName: string,
|
|
501
504
|
catalogName: string,
|
|
502
505
|
options?: CatalogsListDevicesOptionalParams,
|
|
503
|
-
settings?: PageSettings
|
|
506
|
+
settings?: PageSettings,
|
|
504
507
|
): AsyncIterableIterator<Device[]> {
|
|
505
508
|
let result: CatalogsListDevicesResponse;
|
|
506
509
|
let continuationToken = settings?.continuationToken;
|
|
@@ -516,7 +519,7 @@ export class CatalogsImpl implements Catalogs {
|
|
|
516
519
|
resourceGroupName,
|
|
517
520
|
catalogName,
|
|
518
521
|
continuationToken,
|
|
519
|
-
options
|
|
522
|
+
options,
|
|
520
523
|
);
|
|
521
524
|
continuationToken = result.nextLink;
|
|
522
525
|
let page = result.value || [];
|
|
@@ -528,12 +531,12 @@ export class CatalogsImpl implements Catalogs {
|
|
|
528
531
|
private async *listDevicesPagingAll(
|
|
529
532
|
resourceGroupName: string,
|
|
530
533
|
catalogName: string,
|
|
531
|
-
options?: CatalogsListDevicesOptionalParams
|
|
534
|
+
options?: CatalogsListDevicesOptionalParams,
|
|
532
535
|
): AsyncIterableIterator<Device> {
|
|
533
536
|
for await (const page of this.listDevicesPagingPage(
|
|
534
537
|
resourceGroupName,
|
|
535
538
|
catalogName,
|
|
536
|
-
options
|
|
539
|
+
options,
|
|
537
540
|
)) {
|
|
538
541
|
yield* page;
|
|
539
542
|
}
|
|
@@ -544,11 +547,11 @@ export class CatalogsImpl implements Catalogs {
|
|
|
544
547
|
* @param options The options parameters.
|
|
545
548
|
*/
|
|
546
549
|
private _listBySubscription(
|
|
547
|
-
options?: CatalogsListBySubscriptionOptionalParams
|
|
550
|
+
options?: CatalogsListBySubscriptionOptionalParams,
|
|
548
551
|
): Promise<CatalogsListBySubscriptionResponse> {
|
|
549
552
|
return this.client.sendOperationRequest(
|
|
550
553
|
{ options },
|
|
551
|
-
listBySubscriptionOperationSpec
|
|
554
|
+
listBySubscriptionOperationSpec,
|
|
552
555
|
);
|
|
553
556
|
}
|
|
554
557
|
|
|
@@ -559,11 +562,11 @@ export class CatalogsImpl implements Catalogs {
|
|
|
559
562
|
*/
|
|
560
563
|
private _listByResourceGroup(
|
|
561
564
|
resourceGroupName: string,
|
|
562
|
-
options?: CatalogsListByResourceGroupOptionalParams
|
|
565
|
+
options?: CatalogsListByResourceGroupOptionalParams,
|
|
563
566
|
): Promise<CatalogsListByResourceGroupResponse> {
|
|
564
567
|
return this.client.sendOperationRequest(
|
|
565
568
|
{ resourceGroupName, options },
|
|
566
|
-
listByResourceGroupOperationSpec
|
|
569
|
+
listByResourceGroupOperationSpec,
|
|
567
570
|
);
|
|
568
571
|
}
|
|
569
572
|
|
|
@@ -576,11 +579,11 @@ export class CatalogsImpl implements Catalogs {
|
|
|
576
579
|
get(
|
|
577
580
|
resourceGroupName: string,
|
|
578
581
|
catalogName: string,
|
|
579
|
-
options?: CatalogsGetOptionalParams
|
|
582
|
+
options?: CatalogsGetOptionalParams,
|
|
580
583
|
): Promise<CatalogsGetResponse> {
|
|
581
584
|
return this.client.sendOperationRequest(
|
|
582
585
|
{ resourceGroupName, catalogName, options },
|
|
583
|
-
getOperationSpec
|
|
586
|
+
getOperationSpec,
|
|
584
587
|
);
|
|
585
588
|
}
|
|
586
589
|
|
|
@@ -595,7 +598,7 @@ export class CatalogsImpl implements Catalogs {
|
|
|
595
598
|
resourceGroupName: string,
|
|
596
599
|
catalogName: string,
|
|
597
600
|
resource: Catalog,
|
|
598
|
-
options?: CatalogsCreateOrUpdateOptionalParams
|
|
601
|
+
options?: CatalogsCreateOrUpdateOptionalParams,
|
|
599
602
|
): Promise<
|
|
600
603
|
SimplePollerLike<
|
|
601
604
|
OperationState<CatalogsCreateOrUpdateResponse>,
|
|
@@ -604,21 +607,20 @@ export class CatalogsImpl implements Catalogs {
|
|
|
604
607
|
> {
|
|
605
608
|
const directSendOperation = async (
|
|
606
609
|
args: coreClient.OperationArguments,
|
|
607
|
-
spec: coreClient.OperationSpec
|
|
610
|
+
spec: coreClient.OperationSpec,
|
|
608
611
|
): Promise<CatalogsCreateOrUpdateResponse> => {
|
|
609
612
|
return this.client.sendOperationRequest(args, spec);
|
|
610
613
|
};
|
|
611
614
|
const sendOperationFn = async (
|
|
612
615
|
args: coreClient.OperationArguments,
|
|
613
|
-
spec: coreClient.OperationSpec
|
|
616
|
+
spec: coreClient.OperationSpec,
|
|
614
617
|
) => {
|
|
615
|
-
let currentRawResponse:
|
|
616
|
-
|
|
617
|
-
| undefined = undefined;
|
|
618
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
619
|
+
undefined;
|
|
618
620
|
const providedCallback = args.options?.onResponse;
|
|
619
621
|
const callback: coreClient.RawResponseCallback = (
|
|
620
622
|
rawResponse: coreClient.FullOperationResponse,
|
|
621
|
-
flatResponse: unknown
|
|
623
|
+
flatResponse: unknown,
|
|
622
624
|
) => {
|
|
623
625
|
currentRawResponse = rawResponse;
|
|
624
626
|
providedCallback?.(rawResponse, flatResponse);
|
|
@@ -627,8 +629,8 @@ export class CatalogsImpl implements Catalogs {
|
|
|
627
629
|
...args,
|
|
628
630
|
options: {
|
|
629
631
|
...args.options,
|
|
630
|
-
onResponse: callback
|
|
631
|
-
}
|
|
632
|
+
onResponse: callback,
|
|
633
|
+
},
|
|
632
634
|
};
|
|
633
635
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
634
636
|
return {
|
|
@@ -636,15 +638,15 @@ export class CatalogsImpl implements Catalogs {
|
|
|
636
638
|
rawResponse: {
|
|
637
639
|
statusCode: currentRawResponse!.status,
|
|
638
640
|
body: currentRawResponse!.parsedBody,
|
|
639
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
640
|
-
}
|
|
641
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
642
|
+
},
|
|
641
643
|
};
|
|
642
644
|
};
|
|
643
645
|
|
|
644
646
|
const lro = createLroSpec({
|
|
645
647
|
sendOperationFn,
|
|
646
648
|
args: { resourceGroupName, catalogName, resource, options },
|
|
647
|
-
spec: createOrUpdateOperationSpec
|
|
649
|
+
spec: createOrUpdateOperationSpec,
|
|
648
650
|
});
|
|
649
651
|
const poller = await createHttpPoller<
|
|
650
652
|
CatalogsCreateOrUpdateResponse,
|
|
@@ -652,7 +654,7 @@ export class CatalogsImpl implements Catalogs {
|
|
|
652
654
|
>(lro, {
|
|
653
655
|
restoreFrom: options?.resumeFrom,
|
|
654
656
|
intervalInMs: options?.updateIntervalInMs,
|
|
655
|
-
resourceLocationConfig: "azure-async-operation"
|
|
657
|
+
resourceLocationConfig: "azure-async-operation",
|
|
656
658
|
});
|
|
657
659
|
await poller.poll();
|
|
658
660
|
return poller;
|
|
@@ -669,13 +671,13 @@ export class CatalogsImpl implements Catalogs {
|
|
|
669
671
|
resourceGroupName: string,
|
|
670
672
|
catalogName: string,
|
|
671
673
|
resource: Catalog,
|
|
672
|
-
options?: CatalogsCreateOrUpdateOptionalParams
|
|
674
|
+
options?: CatalogsCreateOrUpdateOptionalParams,
|
|
673
675
|
): Promise<CatalogsCreateOrUpdateResponse> {
|
|
674
676
|
const poller = await this.beginCreateOrUpdate(
|
|
675
677
|
resourceGroupName,
|
|
676
678
|
catalogName,
|
|
677
679
|
resource,
|
|
678
|
-
options
|
|
680
|
+
options,
|
|
679
681
|
);
|
|
680
682
|
return poller.pollUntilDone();
|
|
681
683
|
}
|
|
@@ -691,11 +693,11 @@ export class CatalogsImpl implements Catalogs {
|
|
|
691
693
|
resourceGroupName: string,
|
|
692
694
|
catalogName: string,
|
|
693
695
|
properties: CatalogUpdate,
|
|
694
|
-
options?: CatalogsUpdateOptionalParams
|
|
696
|
+
options?: CatalogsUpdateOptionalParams,
|
|
695
697
|
): Promise<CatalogsUpdateResponse> {
|
|
696
698
|
return this.client.sendOperationRequest(
|
|
697
699
|
{ resourceGroupName, catalogName, properties, options },
|
|
698
|
-
updateOperationSpec
|
|
700
|
+
updateOperationSpec,
|
|
699
701
|
);
|
|
700
702
|
}
|
|
701
703
|
|
|
@@ -708,25 +710,24 @@ export class CatalogsImpl implements Catalogs {
|
|
|
708
710
|
async beginDelete(
|
|
709
711
|
resourceGroupName: string,
|
|
710
712
|
catalogName: string,
|
|
711
|
-
options?: CatalogsDeleteOptionalParams
|
|
713
|
+
options?: CatalogsDeleteOptionalParams,
|
|
712
714
|
): Promise<SimplePollerLike<OperationState<void>, void>> {
|
|
713
715
|
const directSendOperation = async (
|
|
714
716
|
args: coreClient.OperationArguments,
|
|
715
|
-
spec: coreClient.OperationSpec
|
|
717
|
+
spec: coreClient.OperationSpec,
|
|
716
718
|
): Promise<void> => {
|
|
717
719
|
return this.client.sendOperationRequest(args, spec);
|
|
718
720
|
};
|
|
719
721
|
const sendOperationFn = async (
|
|
720
722
|
args: coreClient.OperationArguments,
|
|
721
|
-
spec: coreClient.OperationSpec
|
|
723
|
+
spec: coreClient.OperationSpec,
|
|
722
724
|
) => {
|
|
723
|
-
let currentRawResponse:
|
|
724
|
-
|
|
725
|
-
| undefined = undefined;
|
|
725
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
726
|
+
undefined;
|
|
726
727
|
const providedCallback = args.options?.onResponse;
|
|
727
728
|
const callback: coreClient.RawResponseCallback = (
|
|
728
729
|
rawResponse: coreClient.FullOperationResponse,
|
|
729
|
-
flatResponse: unknown
|
|
730
|
+
flatResponse: unknown,
|
|
730
731
|
) => {
|
|
731
732
|
currentRawResponse = rawResponse;
|
|
732
733
|
providedCallback?.(rawResponse, flatResponse);
|
|
@@ -735,8 +736,8 @@ export class CatalogsImpl implements Catalogs {
|
|
|
735
736
|
...args,
|
|
736
737
|
options: {
|
|
737
738
|
...args.options,
|
|
738
|
-
onResponse: callback
|
|
739
|
-
}
|
|
739
|
+
onResponse: callback,
|
|
740
|
+
},
|
|
740
741
|
};
|
|
741
742
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
742
743
|
return {
|
|
@@ -744,20 +745,20 @@ export class CatalogsImpl implements Catalogs {
|
|
|
744
745
|
rawResponse: {
|
|
745
746
|
statusCode: currentRawResponse!.status,
|
|
746
747
|
body: currentRawResponse!.parsedBody,
|
|
747
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
748
|
-
}
|
|
748
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
749
|
+
},
|
|
749
750
|
};
|
|
750
751
|
};
|
|
751
752
|
|
|
752
753
|
const lro = createLroSpec({
|
|
753
754
|
sendOperationFn,
|
|
754
755
|
args: { resourceGroupName, catalogName, options },
|
|
755
|
-
spec: deleteOperationSpec
|
|
756
|
+
spec: deleteOperationSpec,
|
|
756
757
|
});
|
|
757
758
|
const poller = await createHttpPoller<void, OperationState<void>>(lro, {
|
|
758
759
|
restoreFrom: options?.resumeFrom,
|
|
759
760
|
intervalInMs: options?.updateIntervalInMs,
|
|
760
|
-
resourceLocationConfig: "location"
|
|
761
|
+
resourceLocationConfig: "location",
|
|
761
762
|
});
|
|
762
763
|
await poller.poll();
|
|
763
764
|
return poller;
|
|
@@ -772,12 +773,12 @@ export class CatalogsImpl implements Catalogs {
|
|
|
772
773
|
async beginDeleteAndWait(
|
|
773
774
|
resourceGroupName: string,
|
|
774
775
|
catalogName: string,
|
|
775
|
-
options?: CatalogsDeleteOptionalParams
|
|
776
|
+
options?: CatalogsDeleteOptionalParams,
|
|
776
777
|
): Promise<void> {
|
|
777
778
|
const poller = await this.beginDelete(
|
|
778
779
|
resourceGroupName,
|
|
779
780
|
catalogName,
|
|
780
|
-
options
|
|
781
|
+
options,
|
|
781
782
|
);
|
|
782
783
|
return poller.pollUntilDone();
|
|
783
784
|
}
|
|
@@ -791,11 +792,11 @@ export class CatalogsImpl implements Catalogs {
|
|
|
791
792
|
countDevices(
|
|
792
793
|
resourceGroupName: string,
|
|
793
794
|
catalogName: string,
|
|
794
|
-
options?: CatalogsCountDevicesOptionalParams
|
|
795
|
+
options?: CatalogsCountDevicesOptionalParams,
|
|
795
796
|
): Promise<CatalogsCountDevicesResponse> {
|
|
796
797
|
return this.client.sendOperationRequest(
|
|
797
798
|
{ resourceGroupName, catalogName, options },
|
|
798
|
-
countDevicesOperationSpec
|
|
799
|
+
countDevicesOperationSpec,
|
|
799
800
|
);
|
|
800
801
|
}
|
|
801
802
|
|
|
@@ -808,11 +809,11 @@ export class CatalogsImpl implements Catalogs {
|
|
|
808
809
|
private _listDeployments(
|
|
809
810
|
resourceGroupName: string,
|
|
810
811
|
catalogName: string,
|
|
811
|
-
options?: CatalogsListDeploymentsOptionalParams
|
|
812
|
+
options?: CatalogsListDeploymentsOptionalParams,
|
|
812
813
|
): Promise<CatalogsListDeploymentsResponse> {
|
|
813
814
|
return this.client.sendOperationRequest(
|
|
814
815
|
{ resourceGroupName, catalogName, options },
|
|
815
|
-
listDeploymentsOperationSpec
|
|
816
|
+
listDeploymentsOperationSpec,
|
|
816
817
|
);
|
|
817
818
|
}
|
|
818
819
|
|
|
@@ -827,11 +828,11 @@ export class CatalogsImpl implements Catalogs {
|
|
|
827
828
|
resourceGroupName: string,
|
|
828
829
|
catalogName: string,
|
|
829
830
|
listDeviceGroupsRequest: ListDeviceGroupsRequest,
|
|
830
|
-
options?: CatalogsListDeviceGroupsOptionalParams
|
|
831
|
+
options?: CatalogsListDeviceGroupsOptionalParams,
|
|
831
832
|
): Promise<CatalogsListDeviceGroupsResponse> {
|
|
832
833
|
return this.client.sendOperationRequest(
|
|
833
834
|
{ resourceGroupName, catalogName, listDeviceGroupsRequest, options },
|
|
834
|
-
listDeviceGroupsOperationSpec
|
|
835
|
+
listDeviceGroupsOperationSpec,
|
|
835
836
|
);
|
|
836
837
|
}
|
|
837
838
|
|
|
@@ -844,11 +845,11 @@ export class CatalogsImpl implements Catalogs {
|
|
|
844
845
|
private _listDeviceInsights(
|
|
845
846
|
resourceGroupName: string,
|
|
846
847
|
catalogName: string,
|
|
847
|
-
options?: CatalogsListDeviceInsightsOptionalParams
|
|
848
|
+
options?: CatalogsListDeviceInsightsOptionalParams,
|
|
848
849
|
): Promise<CatalogsListDeviceInsightsResponse> {
|
|
849
850
|
return this.client.sendOperationRequest(
|
|
850
851
|
{ resourceGroupName, catalogName, options },
|
|
851
|
-
listDeviceInsightsOperationSpec
|
|
852
|
+
listDeviceInsightsOperationSpec,
|
|
852
853
|
);
|
|
853
854
|
}
|
|
854
855
|
|
|
@@ -861,14 +862,109 @@ export class CatalogsImpl implements Catalogs {
|
|
|
861
862
|
private _listDevices(
|
|
862
863
|
resourceGroupName: string,
|
|
863
864
|
catalogName: string,
|
|
864
|
-
options?: CatalogsListDevicesOptionalParams
|
|
865
|
+
options?: CatalogsListDevicesOptionalParams,
|
|
865
866
|
): Promise<CatalogsListDevicesResponse> {
|
|
866
867
|
return this.client.sendOperationRequest(
|
|
867
868
|
{ resourceGroupName, catalogName, options },
|
|
868
|
-
listDevicesOperationSpec
|
|
869
|
+
listDevicesOperationSpec,
|
|
869
870
|
);
|
|
870
871
|
}
|
|
871
872
|
|
|
873
|
+
/**
|
|
874
|
+
* Creates an image. Use this action when the image ID is unknown.
|
|
875
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
876
|
+
* @param catalogName Name of catalog
|
|
877
|
+
* @param uploadImageRequest Image upload request body.
|
|
878
|
+
* @param options The options parameters.
|
|
879
|
+
*/
|
|
880
|
+
async beginUploadImage(
|
|
881
|
+
resourceGroupName: string,
|
|
882
|
+
catalogName: string,
|
|
883
|
+
uploadImageRequest: Image,
|
|
884
|
+
options?: CatalogsUploadImageOptionalParams,
|
|
885
|
+
): Promise<
|
|
886
|
+
SimplePollerLike<
|
|
887
|
+
OperationState<CatalogsUploadImageResponse>,
|
|
888
|
+
CatalogsUploadImageResponse
|
|
889
|
+
>
|
|
890
|
+
> {
|
|
891
|
+
const directSendOperation = async (
|
|
892
|
+
args: coreClient.OperationArguments,
|
|
893
|
+
spec: coreClient.OperationSpec,
|
|
894
|
+
): Promise<CatalogsUploadImageResponse> => {
|
|
895
|
+
return this.client.sendOperationRequest(args, spec);
|
|
896
|
+
};
|
|
897
|
+
const sendOperationFn = async (
|
|
898
|
+
args: coreClient.OperationArguments,
|
|
899
|
+
spec: coreClient.OperationSpec,
|
|
900
|
+
) => {
|
|
901
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
902
|
+
undefined;
|
|
903
|
+
const providedCallback = args.options?.onResponse;
|
|
904
|
+
const callback: coreClient.RawResponseCallback = (
|
|
905
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
906
|
+
flatResponse: unknown,
|
|
907
|
+
) => {
|
|
908
|
+
currentRawResponse = rawResponse;
|
|
909
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
910
|
+
};
|
|
911
|
+
const updatedArgs = {
|
|
912
|
+
...args,
|
|
913
|
+
options: {
|
|
914
|
+
...args.options,
|
|
915
|
+
onResponse: callback,
|
|
916
|
+
},
|
|
917
|
+
};
|
|
918
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
919
|
+
return {
|
|
920
|
+
flatResponse,
|
|
921
|
+
rawResponse: {
|
|
922
|
+
statusCode: currentRawResponse!.status,
|
|
923
|
+
body: currentRawResponse!.parsedBody,
|
|
924
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
925
|
+
},
|
|
926
|
+
};
|
|
927
|
+
};
|
|
928
|
+
|
|
929
|
+
const lro = createLroSpec({
|
|
930
|
+
sendOperationFn,
|
|
931
|
+
args: { resourceGroupName, catalogName, uploadImageRequest, options },
|
|
932
|
+
spec: uploadImageOperationSpec,
|
|
933
|
+
});
|
|
934
|
+
const poller = await createHttpPoller<
|
|
935
|
+
CatalogsUploadImageResponse,
|
|
936
|
+
OperationState<CatalogsUploadImageResponse>
|
|
937
|
+
>(lro, {
|
|
938
|
+
restoreFrom: options?.resumeFrom,
|
|
939
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
940
|
+
resourceLocationConfig: "location",
|
|
941
|
+
});
|
|
942
|
+
await poller.poll();
|
|
943
|
+
return poller;
|
|
944
|
+
}
|
|
945
|
+
|
|
946
|
+
/**
|
|
947
|
+
* Creates an image. Use this action when the image ID is unknown.
|
|
948
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
949
|
+
* @param catalogName Name of catalog
|
|
950
|
+
* @param uploadImageRequest Image upload request body.
|
|
951
|
+
* @param options The options parameters.
|
|
952
|
+
*/
|
|
953
|
+
async beginUploadImageAndWait(
|
|
954
|
+
resourceGroupName: string,
|
|
955
|
+
catalogName: string,
|
|
956
|
+
uploadImageRequest: Image,
|
|
957
|
+
options?: CatalogsUploadImageOptionalParams,
|
|
958
|
+
): Promise<CatalogsUploadImageResponse> {
|
|
959
|
+
const poller = await this.beginUploadImage(
|
|
960
|
+
resourceGroupName,
|
|
961
|
+
catalogName,
|
|
962
|
+
uploadImageRequest,
|
|
963
|
+
options,
|
|
964
|
+
);
|
|
965
|
+
return poller.pollUntilDone();
|
|
966
|
+
}
|
|
967
|
+
|
|
872
968
|
/**
|
|
873
969
|
* ListBySubscriptionNext
|
|
874
970
|
* @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
|
|
@@ -876,11 +972,11 @@ export class CatalogsImpl implements Catalogs {
|
|
|
876
972
|
*/
|
|
877
973
|
private _listBySubscriptionNext(
|
|
878
974
|
nextLink: string,
|
|
879
|
-
options?: CatalogsListBySubscriptionNextOptionalParams
|
|
975
|
+
options?: CatalogsListBySubscriptionNextOptionalParams,
|
|
880
976
|
): Promise<CatalogsListBySubscriptionNextResponse> {
|
|
881
977
|
return this.client.sendOperationRequest(
|
|
882
978
|
{ nextLink, options },
|
|
883
|
-
listBySubscriptionNextOperationSpec
|
|
979
|
+
listBySubscriptionNextOperationSpec,
|
|
884
980
|
);
|
|
885
981
|
}
|
|
886
982
|
|
|
@@ -893,11 +989,11 @@ export class CatalogsImpl implements Catalogs {
|
|
|
893
989
|
private _listByResourceGroupNext(
|
|
894
990
|
resourceGroupName: string,
|
|
895
991
|
nextLink: string,
|
|
896
|
-
options?: CatalogsListByResourceGroupNextOptionalParams
|
|
992
|
+
options?: CatalogsListByResourceGroupNextOptionalParams,
|
|
897
993
|
): Promise<CatalogsListByResourceGroupNextResponse> {
|
|
898
994
|
return this.client.sendOperationRequest(
|
|
899
995
|
{ resourceGroupName, nextLink, options },
|
|
900
|
-
listByResourceGroupNextOperationSpec
|
|
996
|
+
listByResourceGroupNextOperationSpec,
|
|
901
997
|
);
|
|
902
998
|
}
|
|
903
999
|
|
|
@@ -912,11 +1008,11 @@ export class CatalogsImpl implements Catalogs {
|
|
|
912
1008
|
resourceGroupName: string,
|
|
913
1009
|
catalogName: string,
|
|
914
1010
|
nextLink: string,
|
|
915
|
-
options?: CatalogsListDeploymentsNextOptionalParams
|
|
1011
|
+
options?: CatalogsListDeploymentsNextOptionalParams,
|
|
916
1012
|
): Promise<CatalogsListDeploymentsNextResponse> {
|
|
917
1013
|
return this.client.sendOperationRequest(
|
|
918
1014
|
{ resourceGroupName, catalogName, nextLink, options },
|
|
919
|
-
listDeploymentsNextOperationSpec
|
|
1015
|
+
listDeploymentsNextOperationSpec,
|
|
920
1016
|
);
|
|
921
1017
|
}
|
|
922
1018
|
|
|
@@ -933,7 +1029,7 @@ export class CatalogsImpl implements Catalogs {
|
|
|
933
1029
|
catalogName: string,
|
|
934
1030
|
listDeviceGroupsRequest: ListDeviceGroupsRequest,
|
|
935
1031
|
nextLink: string,
|
|
936
|
-
options?: CatalogsListDeviceGroupsNextOptionalParams
|
|
1032
|
+
options?: CatalogsListDeviceGroupsNextOptionalParams,
|
|
937
1033
|
): Promise<CatalogsListDeviceGroupsNextResponse> {
|
|
938
1034
|
return this.client.sendOperationRequest(
|
|
939
1035
|
{
|
|
@@ -941,9 +1037,9 @@ export class CatalogsImpl implements Catalogs {
|
|
|
941
1037
|
catalogName,
|
|
942
1038
|
listDeviceGroupsRequest,
|
|
943
1039
|
nextLink,
|
|
944
|
-
options
|
|
1040
|
+
options,
|
|
945
1041
|
},
|
|
946
|
-
listDeviceGroupsNextOperationSpec
|
|
1042
|
+
listDeviceGroupsNextOperationSpec,
|
|
947
1043
|
);
|
|
948
1044
|
}
|
|
949
1045
|
|
|
@@ -958,11 +1054,11 @@ export class CatalogsImpl implements Catalogs {
|
|
|
958
1054
|
resourceGroupName: string,
|
|
959
1055
|
catalogName: string,
|
|
960
1056
|
nextLink: string,
|
|
961
|
-
options?: CatalogsListDeviceInsightsNextOptionalParams
|
|
1057
|
+
options?: CatalogsListDeviceInsightsNextOptionalParams,
|
|
962
1058
|
): Promise<CatalogsListDeviceInsightsNextResponse> {
|
|
963
1059
|
return this.client.sendOperationRequest(
|
|
964
1060
|
{ resourceGroupName, catalogName, nextLink, options },
|
|
965
|
-
listDeviceInsightsNextOperationSpec
|
|
1061
|
+
listDeviceInsightsNextOperationSpec,
|
|
966
1062
|
);
|
|
967
1063
|
}
|
|
968
1064
|
|
|
@@ -977,11 +1073,11 @@ export class CatalogsImpl implements Catalogs {
|
|
|
977
1073
|
resourceGroupName: string,
|
|
978
1074
|
catalogName: string,
|
|
979
1075
|
nextLink: string,
|
|
980
|
-
options?: CatalogsListDevicesNextOptionalParams
|
|
1076
|
+
options?: CatalogsListDevicesNextOptionalParams,
|
|
981
1077
|
): Promise<CatalogsListDevicesNextResponse> {
|
|
982
1078
|
return this.client.sendOperationRequest(
|
|
983
1079
|
{ resourceGroupName, catalogName, nextLink, options },
|
|
984
|
-
listDevicesNextOperationSpec
|
|
1080
|
+
listDevicesNextOperationSpec,
|
|
985
1081
|
);
|
|
986
1082
|
}
|
|
987
1083
|
}
|
|
@@ -989,85 +1085,81 @@ export class CatalogsImpl implements Catalogs {
|
|
|
989
1085
|
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
990
1086
|
|
|
991
1087
|
const listBySubscriptionOperationSpec: coreClient.OperationSpec = {
|
|
992
|
-
path:
|
|
993
|
-
"/subscriptions/{subscriptionId}/providers/Microsoft.AzureSphere/catalogs",
|
|
1088
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.AzureSphere/catalogs",
|
|
994
1089
|
httpMethod: "GET",
|
|
995
1090
|
responses: {
|
|
996
1091
|
200: {
|
|
997
|
-
bodyMapper: Mappers.CatalogListResult
|
|
1092
|
+
bodyMapper: Mappers.CatalogListResult,
|
|
998
1093
|
},
|
|
999
1094
|
default: {
|
|
1000
|
-
bodyMapper: Mappers.ErrorResponse
|
|
1001
|
-
}
|
|
1095
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
1096
|
+
},
|
|
1002
1097
|
},
|
|
1003
1098
|
queryParameters: [Parameters.apiVersion],
|
|
1004
1099
|
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
1005
1100
|
headerParameters: [Parameters.accept],
|
|
1006
|
-
serializer
|
|
1101
|
+
serializer,
|
|
1007
1102
|
};
|
|
1008
1103
|
const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
|
|
1009
|
-
path:
|
|
1010
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs",
|
|
1104
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs",
|
|
1011
1105
|
httpMethod: "GET",
|
|
1012
1106
|
responses: {
|
|
1013
1107
|
200: {
|
|
1014
|
-
bodyMapper: Mappers.CatalogListResult
|
|
1108
|
+
bodyMapper: Mappers.CatalogListResult,
|
|
1015
1109
|
},
|
|
1016
1110
|
default: {
|
|
1017
|
-
bodyMapper: Mappers.ErrorResponse
|
|
1018
|
-
}
|
|
1111
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
1112
|
+
},
|
|
1019
1113
|
},
|
|
1020
1114
|
queryParameters: [Parameters.apiVersion],
|
|
1021
1115
|
urlParameters: [
|
|
1022
1116
|
Parameters.$host,
|
|
1023
1117
|
Parameters.subscriptionId,
|
|
1024
|
-
Parameters.resourceGroupName
|
|
1118
|
+
Parameters.resourceGroupName,
|
|
1025
1119
|
],
|
|
1026
1120
|
headerParameters: [Parameters.accept],
|
|
1027
|
-
serializer
|
|
1121
|
+
serializer,
|
|
1028
1122
|
};
|
|
1029
1123
|
const getOperationSpec: coreClient.OperationSpec = {
|
|
1030
|
-
path:
|
|
1031
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}",
|
|
1124
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}",
|
|
1032
1125
|
httpMethod: "GET",
|
|
1033
1126
|
responses: {
|
|
1034
1127
|
200: {
|
|
1035
|
-
bodyMapper: Mappers.Catalog
|
|
1128
|
+
bodyMapper: Mappers.Catalog,
|
|
1036
1129
|
},
|
|
1037
1130
|
default: {
|
|
1038
|
-
bodyMapper: Mappers.ErrorResponse
|
|
1039
|
-
}
|
|
1131
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
1132
|
+
},
|
|
1040
1133
|
},
|
|
1041
1134
|
queryParameters: [Parameters.apiVersion],
|
|
1042
1135
|
urlParameters: [
|
|
1043
1136
|
Parameters.$host,
|
|
1044
1137
|
Parameters.subscriptionId,
|
|
1045
1138
|
Parameters.resourceGroupName,
|
|
1046
|
-
Parameters.catalogName
|
|
1139
|
+
Parameters.catalogName,
|
|
1047
1140
|
],
|
|
1048
1141
|
headerParameters: [Parameters.accept],
|
|
1049
|
-
serializer
|
|
1142
|
+
serializer,
|
|
1050
1143
|
};
|
|
1051
1144
|
const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|
1052
|
-
path:
|
|
1053
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}",
|
|
1145
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}",
|
|
1054
1146
|
httpMethod: "PUT",
|
|
1055
1147
|
responses: {
|
|
1056
1148
|
200: {
|
|
1057
|
-
bodyMapper: Mappers.Catalog
|
|
1149
|
+
bodyMapper: Mappers.Catalog,
|
|
1058
1150
|
},
|
|
1059
1151
|
201: {
|
|
1060
|
-
bodyMapper: Mappers.Catalog
|
|
1152
|
+
bodyMapper: Mappers.Catalog,
|
|
1061
1153
|
},
|
|
1062
1154
|
202: {
|
|
1063
|
-
bodyMapper: Mappers.Catalog
|
|
1155
|
+
bodyMapper: Mappers.Catalog,
|
|
1064
1156
|
},
|
|
1065
1157
|
204: {
|
|
1066
|
-
bodyMapper: Mappers.Catalog
|
|
1158
|
+
bodyMapper: Mappers.Catalog,
|
|
1067
1159
|
},
|
|
1068
1160
|
default: {
|
|
1069
|
-
bodyMapper: Mappers.ErrorResponse
|
|
1070
|
-
}
|
|
1161
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
1162
|
+
},
|
|
1071
1163
|
},
|
|
1072
1164
|
requestBody: Parameters.resource,
|
|
1073
1165
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -1075,23 +1167,22 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|
|
1075
1167
|
Parameters.$host,
|
|
1076
1168
|
Parameters.subscriptionId,
|
|
1077
1169
|
Parameters.resourceGroupName,
|
|
1078
|
-
Parameters.catalogName
|
|
1170
|
+
Parameters.catalogName,
|
|
1079
1171
|
],
|
|
1080
1172
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
1081
1173
|
mediaType: "json",
|
|
1082
|
-
serializer
|
|
1174
|
+
serializer,
|
|
1083
1175
|
};
|
|
1084
1176
|
const updateOperationSpec: coreClient.OperationSpec = {
|
|
1085
|
-
path:
|
|
1086
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}",
|
|
1177
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}",
|
|
1087
1178
|
httpMethod: "PATCH",
|
|
1088
1179
|
responses: {
|
|
1089
1180
|
200: {
|
|
1090
|
-
bodyMapper: Mappers.Catalog
|
|
1181
|
+
bodyMapper: Mappers.Catalog,
|
|
1091
1182
|
},
|
|
1092
1183
|
default: {
|
|
1093
|
-
bodyMapper: Mappers.ErrorResponse
|
|
1094
|
-
}
|
|
1184
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
1185
|
+
},
|
|
1095
1186
|
},
|
|
1096
1187
|
requestBody: Parameters.properties,
|
|
1097
1188
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -1099,15 +1190,14 @@ const updateOperationSpec: coreClient.OperationSpec = {
|
|
|
1099
1190
|
Parameters.$host,
|
|
1100
1191
|
Parameters.subscriptionId,
|
|
1101
1192
|
Parameters.resourceGroupName,
|
|
1102
|
-
Parameters.catalogName
|
|
1193
|
+
Parameters.catalogName,
|
|
1103
1194
|
],
|
|
1104
1195
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
1105
1196
|
mediaType: "json",
|
|
1106
|
-
serializer
|
|
1197
|
+
serializer,
|
|
1107
1198
|
};
|
|
1108
1199
|
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
1109
|
-
path:
|
|
1110
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}",
|
|
1200
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}",
|
|
1111
1201
|
httpMethod: "DELETE",
|
|
1112
1202
|
responses: {
|
|
1113
1203
|
200: {},
|
|
@@ -1115,80 +1205,77 @@ const deleteOperationSpec: coreClient.OperationSpec = {
|
|
|
1115
1205
|
202: {},
|
|
1116
1206
|
204: {},
|
|
1117
1207
|
default: {
|
|
1118
|
-
bodyMapper: Mappers.ErrorResponse
|
|
1119
|
-
}
|
|
1208
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
1209
|
+
},
|
|
1120
1210
|
},
|
|
1121
1211
|
queryParameters: [Parameters.apiVersion],
|
|
1122
1212
|
urlParameters: [
|
|
1123
1213
|
Parameters.$host,
|
|
1124
1214
|
Parameters.subscriptionId,
|
|
1125
1215
|
Parameters.resourceGroupName,
|
|
1126
|
-
Parameters.catalogName
|
|
1216
|
+
Parameters.catalogName,
|
|
1127
1217
|
],
|
|
1128
1218
|
headerParameters: [Parameters.accept],
|
|
1129
|
-
serializer
|
|
1219
|
+
serializer,
|
|
1130
1220
|
};
|
|
1131
1221
|
const countDevicesOperationSpec: coreClient.OperationSpec = {
|
|
1132
|
-
path:
|
|
1133
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/countDevices",
|
|
1222
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/countDevices",
|
|
1134
1223
|
httpMethod: "POST",
|
|
1135
1224
|
responses: {
|
|
1136
1225
|
200: {
|
|
1137
|
-
bodyMapper: Mappers.
|
|
1226
|
+
bodyMapper: Mappers.CountDevicesResponse,
|
|
1138
1227
|
},
|
|
1139
1228
|
default: {
|
|
1140
|
-
bodyMapper: Mappers.ErrorResponse
|
|
1141
|
-
}
|
|
1229
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
1230
|
+
},
|
|
1142
1231
|
},
|
|
1143
1232
|
queryParameters: [Parameters.apiVersion],
|
|
1144
1233
|
urlParameters: [
|
|
1145
1234
|
Parameters.$host,
|
|
1146
1235
|
Parameters.subscriptionId,
|
|
1147
1236
|
Parameters.resourceGroupName,
|
|
1148
|
-
Parameters.catalogName
|
|
1237
|
+
Parameters.catalogName,
|
|
1149
1238
|
],
|
|
1150
1239
|
headerParameters: [Parameters.accept],
|
|
1151
|
-
serializer
|
|
1240
|
+
serializer,
|
|
1152
1241
|
};
|
|
1153
1242
|
const listDeploymentsOperationSpec: coreClient.OperationSpec = {
|
|
1154
|
-
path:
|
|
1155
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/listDeployments",
|
|
1243
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/listDeployments",
|
|
1156
1244
|
httpMethod: "POST",
|
|
1157
1245
|
responses: {
|
|
1158
1246
|
200: {
|
|
1159
|
-
bodyMapper: Mappers.DeploymentListResult
|
|
1247
|
+
bodyMapper: Mappers.DeploymentListResult,
|
|
1160
1248
|
},
|
|
1161
1249
|
default: {
|
|
1162
|
-
bodyMapper: Mappers.ErrorResponse
|
|
1163
|
-
}
|
|
1250
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
1251
|
+
},
|
|
1164
1252
|
},
|
|
1165
1253
|
queryParameters: [
|
|
1166
1254
|
Parameters.apiVersion,
|
|
1167
1255
|
Parameters.filter,
|
|
1168
1256
|
Parameters.top,
|
|
1169
1257
|
Parameters.skip,
|
|
1170
|
-
Parameters.maxpagesize
|
|
1258
|
+
Parameters.maxpagesize,
|
|
1171
1259
|
],
|
|
1172
1260
|
urlParameters: [
|
|
1173
1261
|
Parameters.$host,
|
|
1174
1262
|
Parameters.subscriptionId,
|
|
1175
1263
|
Parameters.resourceGroupName,
|
|
1176
|
-
Parameters.catalogName
|
|
1264
|
+
Parameters.catalogName,
|
|
1177
1265
|
],
|
|
1178
1266
|
headerParameters: [Parameters.accept],
|
|
1179
|
-
serializer
|
|
1267
|
+
serializer,
|
|
1180
1268
|
};
|
|
1181
1269
|
const listDeviceGroupsOperationSpec: coreClient.OperationSpec = {
|
|
1182
|
-
path:
|
|
1183
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/listDeviceGroups",
|
|
1270
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/listDeviceGroups",
|
|
1184
1271
|
httpMethod: "POST",
|
|
1185
1272
|
responses: {
|
|
1186
1273
|
200: {
|
|
1187
|
-
bodyMapper: Mappers.DeviceGroupListResult
|
|
1274
|
+
bodyMapper: Mappers.DeviceGroupListResult,
|
|
1188
1275
|
},
|
|
1189
1276
|
default: {
|
|
1190
|
-
bodyMapper: Mappers.ErrorResponse
|
|
1191
|
-
}
|
|
1277
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
1278
|
+
},
|
|
1192
1279
|
},
|
|
1193
1280
|
requestBody: Parameters.listDeviceGroupsRequest,
|
|
1194
1281
|
queryParameters: [
|
|
@@ -1196,195 +1283,225 @@ const listDeviceGroupsOperationSpec: coreClient.OperationSpec = {
|
|
|
1196
1283
|
Parameters.filter,
|
|
1197
1284
|
Parameters.top,
|
|
1198
1285
|
Parameters.skip,
|
|
1199
|
-
Parameters.maxpagesize
|
|
1286
|
+
Parameters.maxpagesize,
|
|
1200
1287
|
],
|
|
1201
1288
|
urlParameters: [
|
|
1202
1289
|
Parameters.$host,
|
|
1203
1290
|
Parameters.subscriptionId,
|
|
1204
1291
|
Parameters.resourceGroupName,
|
|
1205
|
-
Parameters.catalogName
|
|
1292
|
+
Parameters.catalogName,
|
|
1206
1293
|
],
|
|
1207
1294
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
1208
1295
|
mediaType: "json",
|
|
1209
|
-
serializer
|
|
1296
|
+
serializer,
|
|
1210
1297
|
};
|
|
1211
1298
|
const listDeviceInsightsOperationSpec: coreClient.OperationSpec = {
|
|
1212
|
-
path:
|
|
1213
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/listDeviceInsights",
|
|
1299
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/listDeviceInsights",
|
|
1214
1300
|
httpMethod: "POST",
|
|
1215
1301
|
responses: {
|
|
1216
1302
|
200: {
|
|
1217
|
-
bodyMapper: Mappers.PagedDeviceInsight
|
|
1303
|
+
bodyMapper: Mappers.PagedDeviceInsight,
|
|
1218
1304
|
},
|
|
1219
1305
|
default: {
|
|
1220
|
-
bodyMapper: Mappers.ErrorResponse
|
|
1221
|
-
}
|
|
1306
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
1307
|
+
},
|
|
1222
1308
|
},
|
|
1223
1309
|
queryParameters: [
|
|
1224
1310
|
Parameters.apiVersion,
|
|
1225
1311
|
Parameters.filter,
|
|
1226
1312
|
Parameters.top,
|
|
1227
1313
|
Parameters.skip,
|
|
1228
|
-
Parameters.maxpagesize
|
|
1314
|
+
Parameters.maxpagesize,
|
|
1229
1315
|
],
|
|
1230
1316
|
urlParameters: [
|
|
1231
1317
|
Parameters.$host,
|
|
1232
1318
|
Parameters.subscriptionId,
|
|
1233
1319
|
Parameters.resourceGroupName,
|
|
1234
|
-
Parameters.catalogName
|
|
1320
|
+
Parameters.catalogName,
|
|
1235
1321
|
],
|
|
1236
1322
|
headerParameters: [Parameters.accept],
|
|
1237
|
-
serializer
|
|
1323
|
+
serializer,
|
|
1238
1324
|
};
|
|
1239
1325
|
const listDevicesOperationSpec: coreClient.OperationSpec = {
|
|
1240
|
-
path:
|
|
1241
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/listDevices",
|
|
1326
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/listDevices",
|
|
1242
1327
|
httpMethod: "POST",
|
|
1243
1328
|
responses: {
|
|
1244
1329
|
200: {
|
|
1245
|
-
bodyMapper: Mappers.DeviceListResult
|
|
1330
|
+
bodyMapper: Mappers.DeviceListResult,
|
|
1246
1331
|
},
|
|
1247
1332
|
default: {
|
|
1248
|
-
bodyMapper: Mappers.ErrorResponse
|
|
1249
|
-
}
|
|
1333
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
1334
|
+
},
|
|
1250
1335
|
},
|
|
1251
1336
|
queryParameters: [
|
|
1252
1337
|
Parameters.apiVersion,
|
|
1253
1338
|
Parameters.filter,
|
|
1254
1339
|
Parameters.top,
|
|
1255
1340
|
Parameters.skip,
|
|
1256
|
-
Parameters.maxpagesize
|
|
1341
|
+
Parameters.maxpagesize,
|
|
1257
1342
|
],
|
|
1258
1343
|
urlParameters: [
|
|
1259
1344
|
Parameters.$host,
|
|
1260
1345
|
Parameters.subscriptionId,
|
|
1261
1346
|
Parameters.resourceGroupName,
|
|
1262
|
-
Parameters.catalogName
|
|
1347
|
+
Parameters.catalogName,
|
|
1263
1348
|
],
|
|
1264
1349
|
headerParameters: [Parameters.accept],
|
|
1265
|
-
serializer
|
|
1350
|
+
serializer,
|
|
1351
|
+
};
|
|
1352
|
+
const uploadImageOperationSpec: coreClient.OperationSpec = {
|
|
1353
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/uploadImage",
|
|
1354
|
+
httpMethod: "POST",
|
|
1355
|
+
responses: {
|
|
1356
|
+
200: {
|
|
1357
|
+
headersMapper: Mappers.CatalogsUploadImageHeaders,
|
|
1358
|
+
},
|
|
1359
|
+
201: {
|
|
1360
|
+
headersMapper: Mappers.CatalogsUploadImageHeaders,
|
|
1361
|
+
},
|
|
1362
|
+
202: {
|
|
1363
|
+
headersMapper: Mappers.CatalogsUploadImageHeaders,
|
|
1364
|
+
},
|
|
1365
|
+
204: {
|
|
1366
|
+
headersMapper: Mappers.CatalogsUploadImageHeaders,
|
|
1367
|
+
},
|
|
1368
|
+
default: {
|
|
1369
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
1370
|
+
},
|
|
1371
|
+
},
|
|
1372
|
+
requestBody: Parameters.uploadImageRequest,
|
|
1373
|
+
queryParameters: [Parameters.apiVersion],
|
|
1374
|
+
urlParameters: [
|
|
1375
|
+
Parameters.$host,
|
|
1376
|
+
Parameters.subscriptionId,
|
|
1377
|
+
Parameters.resourceGroupName,
|
|
1378
|
+
Parameters.catalogName,
|
|
1379
|
+
],
|
|
1380
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
1381
|
+
mediaType: "json",
|
|
1382
|
+
serializer,
|
|
1266
1383
|
};
|
|
1267
1384
|
const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {
|
|
1268
1385
|
path: "{nextLink}",
|
|
1269
1386
|
httpMethod: "GET",
|
|
1270
1387
|
responses: {
|
|
1271
1388
|
200: {
|
|
1272
|
-
bodyMapper: Mappers.CatalogListResult
|
|
1389
|
+
bodyMapper: Mappers.CatalogListResult,
|
|
1273
1390
|
},
|
|
1274
1391
|
default: {
|
|
1275
|
-
bodyMapper: Mappers.ErrorResponse
|
|
1276
|
-
}
|
|
1392
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
1393
|
+
},
|
|
1277
1394
|
},
|
|
1278
1395
|
urlParameters: [
|
|
1279
1396
|
Parameters.$host,
|
|
1280
1397
|
Parameters.nextLink,
|
|
1281
|
-
Parameters.subscriptionId
|
|
1398
|
+
Parameters.subscriptionId,
|
|
1282
1399
|
],
|
|
1283
1400
|
headerParameters: [Parameters.accept],
|
|
1284
|
-
serializer
|
|
1401
|
+
serializer,
|
|
1285
1402
|
};
|
|
1286
1403
|
const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
|
|
1287
1404
|
path: "{nextLink}",
|
|
1288
1405
|
httpMethod: "GET",
|
|
1289
1406
|
responses: {
|
|
1290
1407
|
200: {
|
|
1291
|
-
bodyMapper: Mappers.CatalogListResult
|
|
1408
|
+
bodyMapper: Mappers.CatalogListResult,
|
|
1292
1409
|
},
|
|
1293
1410
|
default: {
|
|
1294
|
-
bodyMapper: Mappers.ErrorResponse
|
|
1295
|
-
}
|
|
1411
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
1412
|
+
},
|
|
1296
1413
|
},
|
|
1297
1414
|
urlParameters: [
|
|
1298
1415
|
Parameters.$host,
|
|
1299
1416
|
Parameters.nextLink,
|
|
1300
1417
|
Parameters.subscriptionId,
|
|
1301
|
-
Parameters.resourceGroupName
|
|
1418
|
+
Parameters.resourceGroupName,
|
|
1302
1419
|
],
|
|
1303
1420
|
headerParameters: [Parameters.accept],
|
|
1304
|
-
serializer
|
|
1421
|
+
serializer,
|
|
1305
1422
|
};
|
|
1306
1423
|
const listDeploymentsNextOperationSpec: coreClient.OperationSpec = {
|
|
1307
1424
|
path: "{nextLink}",
|
|
1308
1425
|
httpMethod: "GET",
|
|
1309
1426
|
responses: {
|
|
1310
1427
|
200: {
|
|
1311
|
-
bodyMapper: Mappers.DeploymentListResult
|
|
1428
|
+
bodyMapper: Mappers.DeploymentListResult,
|
|
1312
1429
|
},
|
|
1313
1430
|
default: {
|
|
1314
|
-
bodyMapper: Mappers.ErrorResponse
|
|
1315
|
-
}
|
|
1431
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
1432
|
+
},
|
|
1316
1433
|
},
|
|
1317
1434
|
urlParameters: [
|
|
1318
1435
|
Parameters.$host,
|
|
1319
1436
|
Parameters.nextLink,
|
|
1320
1437
|
Parameters.subscriptionId,
|
|
1321
1438
|
Parameters.resourceGroupName,
|
|
1322
|
-
Parameters.catalogName
|
|
1439
|
+
Parameters.catalogName,
|
|
1323
1440
|
],
|
|
1324
1441
|
headerParameters: [Parameters.accept],
|
|
1325
|
-
serializer
|
|
1442
|
+
serializer,
|
|
1326
1443
|
};
|
|
1327
1444
|
const listDeviceGroupsNextOperationSpec: coreClient.OperationSpec = {
|
|
1328
1445
|
path: "{nextLink}",
|
|
1329
1446
|
httpMethod: "GET",
|
|
1330
1447
|
responses: {
|
|
1331
1448
|
200: {
|
|
1332
|
-
bodyMapper: Mappers.DeviceGroupListResult
|
|
1449
|
+
bodyMapper: Mappers.DeviceGroupListResult,
|
|
1333
1450
|
},
|
|
1334
1451
|
default: {
|
|
1335
|
-
bodyMapper: Mappers.ErrorResponse
|
|
1336
|
-
}
|
|
1452
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
1453
|
+
},
|
|
1337
1454
|
},
|
|
1338
1455
|
urlParameters: [
|
|
1339
1456
|
Parameters.$host,
|
|
1340
1457
|
Parameters.nextLink,
|
|
1341
1458
|
Parameters.subscriptionId,
|
|
1342
1459
|
Parameters.resourceGroupName,
|
|
1343
|
-
Parameters.catalogName
|
|
1460
|
+
Parameters.catalogName,
|
|
1344
1461
|
],
|
|
1345
1462
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
1346
1463
|
mediaType: "json",
|
|
1347
|
-
serializer
|
|
1464
|
+
serializer,
|
|
1348
1465
|
};
|
|
1349
1466
|
const listDeviceInsightsNextOperationSpec: coreClient.OperationSpec = {
|
|
1350
1467
|
path: "{nextLink}",
|
|
1351
1468
|
httpMethod: "GET",
|
|
1352
1469
|
responses: {
|
|
1353
1470
|
200: {
|
|
1354
|
-
bodyMapper: Mappers.PagedDeviceInsight
|
|
1471
|
+
bodyMapper: Mappers.PagedDeviceInsight,
|
|
1355
1472
|
},
|
|
1356
1473
|
default: {
|
|
1357
|
-
bodyMapper: Mappers.ErrorResponse
|
|
1358
|
-
}
|
|
1474
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
1475
|
+
},
|
|
1359
1476
|
},
|
|
1360
1477
|
urlParameters: [
|
|
1361
1478
|
Parameters.$host,
|
|
1362
1479
|
Parameters.nextLink,
|
|
1363
1480
|
Parameters.subscriptionId,
|
|
1364
1481
|
Parameters.resourceGroupName,
|
|
1365
|
-
Parameters.catalogName
|
|
1482
|
+
Parameters.catalogName,
|
|
1366
1483
|
],
|
|
1367
1484
|
headerParameters: [Parameters.accept],
|
|
1368
|
-
serializer
|
|
1485
|
+
serializer,
|
|
1369
1486
|
};
|
|
1370
1487
|
const listDevicesNextOperationSpec: coreClient.OperationSpec = {
|
|
1371
1488
|
path: "{nextLink}",
|
|
1372
1489
|
httpMethod: "GET",
|
|
1373
1490
|
responses: {
|
|
1374
1491
|
200: {
|
|
1375
|
-
bodyMapper: Mappers.DeviceListResult
|
|
1492
|
+
bodyMapper: Mappers.DeviceListResult,
|
|
1376
1493
|
},
|
|
1377
1494
|
default: {
|
|
1378
|
-
bodyMapper: Mappers.ErrorResponse
|
|
1379
|
-
}
|
|
1495
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
1496
|
+
},
|
|
1380
1497
|
},
|
|
1381
1498
|
urlParameters: [
|
|
1382
1499
|
Parameters.$host,
|
|
1383
1500
|
Parameters.nextLink,
|
|
1384
1501
|
Parameters.subscriptionId,
|
|
1385
1502
|
Parameters.resourceGroupName,
|
|
1386
|
-
Parameters.catalogName
|
|
1503
|
+
Parameters.catalogName,
|
|
1387
1504
|
],
|
|
1388
1505
|
headerParameters: [Parameters.accept],
|
|
1389
|
-
serializer
|
|
1506
|
+
serializer,
|
|
1390
1507
|
};
|