@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.
Files changed (149) hide show
  1. package/CHANGELOG.md +2 -2
  2. package/LICENSE +1 -1
  3. package/README.md +1 -1
  4. package/dist/index.js +1517 -1338
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.min.js +1 -1
  7. package/dist/index.min.js.map +1 -1
  8. package/dist-esm/samples-dev/catalogsCountDevicesSample.js +1 -1
  9. package/dist-esm/samples-dev/catalogsCreateOrUpdateSample.js +1 -1
  10. package/dist-esm/samples-dev/catalogsDeleteSample.js +1 -1
  11. package/dist-esm/samples-dev/catalogsGetSample.js +1 -1
  12. package/dist-esm/samples-dev/catalogsListByResourceGroupSample.js +4 -9
  13. package/dist-esm/samples-dev/catalogsListByResourceGroupSample.js.map +1 -1
  14. package/dist-esm/samples-dev/catalogsListBySubscriptionSample.js +4 -9
  15. package/dist-esm/samples-dev/catalogsListBySubscriptionSample.js.map +1 -1
  16. package/dist-esm/samples-dev/catalogsListDeploymentsSample.js +4 -9
  17. package/dist-esm/samples-dev/catalogsListDeploymentsSample.js.map +1 -1
  18. package/dist-esm/samples-dev/catalogsListDeviceGroupsSample.js +6 -11
  19. package/dist-esm/samples-dev/catalogsListDeviceGroupsSample.js.map +1 -1
  20. package/dist-esm/samples-dev/catalogsListDeviceInsightsSample.js +6 -11
  21. package/dist-esm/samples-dev/catalogsListDeviceInsightsSample.js.map +1 -1
  22. package/dist-esm/samples-dev/catalogsListDevicesSample.js +4 -9
  23. package/dist-esm/samples-dev/catalogsListDevicesSample.js.map +1 -1
  24. package/dist-esm/samples-dev/catalogsUpdateSample.js +1 -1
  25. package/dist-esm/samples-dev/catalogsUploadImageSample.d.ts +2 -0
  26. package/dist-esm/samples-dev/catalogsUploadImageSample.d.ts.map +1 -0
  27. package/dist-esm/samples-dev/catalogsUploadImageSample.js +42 -0
  28. package/dist-esm/samples-dev/catalogsUploadImageSample.js.map +1 -0
  29. package/dist-esm/samples-dev/certificatesGetSample.js +1 -1
  30. package/dist-esm/samples-dev/certificatesListByCatalogSample.js +4 -9
  31. package/dist-esm/samples-dev/certificatesListByCatalogSample.js.map +1 -1
  32. package/dist-esm/samples-dev/certificatesRetrieveCertChainSample.js +1 -1
  33. package/dist-esm/samples-dev/certificatesRetrieveProofOfPossessionNonceSample.js +3 -3
  34. package/dist-esm/samples-dev/certificatesRetrieveProofOfPossessionNonceSample.js.map +1 -1
  35. package/dist-esm/samples-dev/deploymentsCreateOrUpdateSample.js +1 -1
  36. package/dist-esm/samples-dev/deploymentsDeleteSample.js +1 -1
  37. package/dist-esm/samples-dev/deploymentsGetSample.js +1 -1
  38. package/dist-esm/samples-dev/deploymentsListByDeviceGroupSample.js +4 -9
  39. package/dist-esm/samples-dev/deploymentsListByDeviceGroupSample.js.map +1 -1
  40. package/dist-esm/samples-dev/deviceGroupsClaimDevicesSample.js +4 -4
  41. package/dist-esm/samples-dev/deviceGroupsClaimDevicesSample.js.map +1 -1
  42. package/dist-esm/samples-dev/deviceGroupsCountDevicesSample.js +1 -1
  43. package/dist-esm/samples-dev/deviceGroupsCreateOrUpdateSample.js +6 -4
  44. package/dist-esm/samples-dev/deviceGroupsCreateOrUpdateSample.js.map +1 -1
  45. package/dist-esm/samples-dev/deviceGroupsDeleteSample.js +1 -1
  46. package/dist-esm/samples-dev/deviceGroupsGetSample.js +1 -1
  47. package/dist-esm/samples-dev/deviceGroupsListByProductSample.js +4 -9
  48. package/dist-esm/samples-dev/deviceGroupsListByProductSample.js.map +1 -1
  49. package/dist-esm/samples-dev/deviceGroupsUpdateSample.js +2 -2
  50. package/dist-esm/samples-dev/deviceGroupsUpdateSample.js.map +1 -1
  51. package/dist-esm/samples-dev/devicesCreateOrUpdateSample.js +1 -1
  52. package/dist-esm/samples-dev/devicesDeleteSample.js +1 -1
  53. package/dist-esm/samples-dev/devicesGenerateCapabilityImageSample.js +3 -3
  54. package/dist-esm/samples-dev/devicesGenerateCapabilityImageSample.js.map +1 -1
  55. package/dist-esm/samples-dev/devicesGetSample.js +1 -1
  56. package/dist-esm/samples-dev/devicesListByDeviceGroupSample.js +4 -9
  57. package/dist-esm/samples-dev/devicesListByDeviceGroupSample.js.map +1 -1
  58. package/dist-esm/samples-dev/devicesUpdateSample.js +1 -1
  59. package/dist-esm/samples-dev/imagesCreateOrUpdateSample.js +3 -3
  60. package/dist-esm/samples-dev/imagesCreateOrUpdateSample.js.map +1 -1
  61. package/dist-esm/samples-dev/imagesDeleteSample.js +2 -2
  62. package/dist-esm/samples-dev/imagesDeleteSample.js.map +1 -1
  63. package/dist-esm/samples-dev/imagesGetSample.js +2 -2
  64. package/dist-esm/samples-dev/imagesGetSample.js.map +1 -1
  65. package/dist-esm/samples-dev/imagesListByCatalogSample.js +4 -9
  66. package/dist-esm/samples-dev/imagesListByCatalogSample.js.map +1 -1
  67. package/dist-esm/samples-dev/operationsListSample.js +4 -9
  68. package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
  69. package/dist-esm/samples-dev/productsCountDevicesSample.js +1 -1
  70. package/dist-esm/samples-dev/productsCreateOrUpdateSample.js +1 -1
  71. package/dist-esm/samples-dev/productsDeleteSample.js +1 -1
  72. package/dist-esm/samples-dev/productsGenerateDefaultDeviceGroupsSample.js +4 -9
  73. package/dist-esm/samples-dev/productsGenerateDefaultDeviceGroupsSample.js.map +1 -1
  74. package/dist-esm/samples-dev/productsGetSample.js +1 -1
  75. package/dist-esm/samples-dev/productsListByCatalogSample.js +4 -9
  76. package/dist-esm/samples-dev/productsListByCatalogSample.js.map +1 -1
  77. package/dist-esm/samples-dev/productsUpdateSample.js +1 -1
  78. package/dist-esm/src/azureSphereManagementClient.d.ts.map +1 -1
  79. package/dist-esm/src/azureSphereManagementClient.js +9 -9
  80. package/dist-esm/src/azureSphereManagementClient.js.map +1 -1
  81. package/dist-esm/src/lroImpl.js +1 -1
  82. package/dist-esm/src/models/index.d.ts +232 -178
  83. package/dist-esm/src/models/index.d.ts.map +1 -1
  84. package/dist-esm/src/models/index.js.map +1 -1
  85. package/dist-esm/src/models/mappers.d.ts +11 -2
  86. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  87. package/dist-esm/src/models/mappers.js +783 -636
  88. package/dist-esm/src/models/mappers.js.map +1 -1
  89. package/dist-esm/src/models/parameters.d.ts +1 -0
  90. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  91. package/dist-esm/src/models/parameters.js +80 -76
  92. package/dist-esm/src/models/parameters.js.map +1 -1
  93. package/dist-esm/src/operations/catalogs.d.ts +17 -1
  94. package/dist-esm/src/operations/catalogs.d.ts.map +1 -1
  95. package/dist-esm/src/operations/catalogs.js +214 -154
  96. package/dist-esm/src/operations/catalogs.js.map +1 -1
  97. package/dist-esm/src/operations/certificates.js +31 -36
  98. package/dist-esm/src/operations/certificates.js.map +1 -1
  99. package/dist-esm/src/operations/deployments.d.ts.map +1 -1
  100. package/dist-esm/src/operations/deployments.js +45 -50
  101. package/dist-esm/src/operations/deployments.js.map +1 -1
  102. package/dist-esm/src/operations/deviceGroups.d.ts.map +1 -1
  103. package/dist-esm/src/operations/deviceGroups.js +74 -79
  104. package/dist-esm/src/operations/deviceGroups.js.map +1 -1
  105. package/dist-esm/src/operations/devices.d.ts.map +1 -1
  106. package/dist-esm/src/operations/devices.js +70 -75
  107. package/dist-esm/src/operations/devices.js.map +1 -1
  108. package/dist-esm/src/operations/images.d.ts +5 -5
  109. package/dist-esm/src/operations/images.d.ts.map +1 -1
  110. package/dist-esm/src/operations/images.js +46 -51
  111. package/dist-esm/src/operations/images.js.map +1 -1
  112. package/dist-esm/src/operations/operations.js +12 -17
  113. package/dist-esm/src/operations/operations.js.map +1 -1
  114. package/dist-esm/src/operations/products.d.ts.map +1 -1
  115. package/dist-esm/src/operations/products.js +72 -82
  116. package/dist-esm/src/operations/products.js.map +1 -1
  117. package/dist-esm/src/operationsInterfaces/catalogs.d.ts +17 -1
  118. package/dist-esm/src/operationsInterfaces/catalogs.d.ts.map +1 -1
  119. package/dist-esm/src/operationsInterfaces/images.d.ts +5 -5
  120. package/dist-esm/src/pagingHelper.js.map +1 -1
  121. package/dist-esm/test/sphere_operations_test.spec.js +12 -27
  122. package/dist-esm/test/sphere_operations_test.spec.js.map +1 -1
  123. package/package.json +16 -21
  124. package/review/arm-sphere.api.md +103 -51
  125. package/src/azureSphereManagementClient.ts +18 -17
  126. package/src/lroImpl.ts +3 -3
  127. package/src/models/index.ts +262 -194
  128. package/src/models/mappers.ts +811 -682
  129. package/src/models/parameters.ts +85 -80
  130. package/src/operations/catalogs.ts +338 -221
  131. package/src/operations/certificates.ts +51 -55
  132. package/src/operations/deployments.ts +81 -87
  133. package/src/operations/deviceGroups.ts +135 -146
  134. package/src/operations/devices.ts +128 -138
  135. package/src/operations/images.ts +82 -88
  136. package/src/operations/operations.ts +16 -16
  137. package/src/operations/products.ts +132 -142
  138. package/src/operationsInterfaces/catalogs.ts +48 -14
  139. package/src/operationsInterfaces/certificates.ts +5 -5
  140. package/src/operationsInterfaces/deployments.ts +7 -7
  141. package/src/operationsInterfaces/deviceGroups.ts +12 -12
  142. package/src/operationsInterfaces/devices.ts +11 -11
  143. package/src/operationsInterfaces/images.ts +12 -12
  144. package/src/operationsInterfaces/operations.ts +1 -1
  145. package/src/operationsInterfaces/products.ts +11 -11
  146. package/src/pagingHelper.ts +1 -1
  147. package/types/arm-sphere.d.ts +212 -131
  148. package/types/tsdoc-metadata.json +1 -1
  149. package/rollup.config.js +0 -122
@@ -125,8 +125,25 @@ export interface ErrorAdditionalInfo {
125
125
  export interface CatalogListResult {
126
126
  /** The Catalog items on this page */
127
127
  value: Catalog[];
128
- /** The link to the next page of items */
129
- nextLink?: string;
128
+ /**
129
+ * The link to the next page of items
130
+ * NOTE: This property will not be serialized. It can only be populated by the server.
131
+ */
132
+ readonly nextLink?: string;
133
+ }
134
+
135
+ /** Catalog properties */
136
+ export interface CatalogProperties {
137
+ /**
138
+ * The Azure Sphere tenant ID associated with the catalog.
139
+ * NOTE: This property will not be serialized. It can only be populated by the server.
140
+ */
141
+ readonly tenantId?: string;
142
+ /**
143
+ * The status of the last operation.
144
+ * NOTE: This property will not be serialized. It can only be populated by the server.
145
+ */
146
+ readonly provisioningState?: ProvisioningState;
130
147
  }
131
148
 
132
149
  /** Common fields that are returned in the response for all Azure Resource Manager resources */
@@ -179,8 +196,11 @@ export interface CatalogUpdate {
179
196
  export interface CertificateListResult {
180
197
  /** The Certificate items on this page */
181
198
  value: Certificate[];
182
- /** The link to the next page of items */
183
- nextLink?: string;
199
+ /**
200
+ * The link to the next page of items
201
+ * NOTE: This property will not be serialized. It can only be populated by the server.
202
+ */
203
+ readonly nextLink?: string;
184
204
  }
185
205
 
186
206
  /** The properties of certificate */
@@ -247,16 +267,80 @@ export interface CountElementsResponse {
247
267
  export interface ImageListResult {
248
268
  /** The Image items on this page */
249
269
  value: Image[];
250
- /** The link to the next page of items */
251
- nextLink?: string;
270
+ /**
271
+ * The link to the next page of items
272
+ * NOTE: This property will not be serialized. It can only be populated by the server.
273
+ */
274
+ readonly nextLink?: string;
275
+ }
276
+
277
+ /** The properties of image */
278
+ export interface ImageProperties {
279
+ /** Image as a UTF-8 encoded base 64 string on image create. This field contains the image URI on image reads. */
280
+ image?: string;
281
+ /** Image ID */
282
+ imageId?: string;
283
+ /**
284
+ * Image name
285
+ * NOTE: This property will not be serialized. It can only be populated by the server.
286
+ */
287
+ readonly imageName?: string;
288
+ /** Regional data boundary for an image */
289
+ regionalDataBoundary?: RegionalDataBoundary;
290
+ /**
291
+ * Location the image
292
+ * NOTE: This property will not be serialized. It can only be populated by the server.
293
+ */
294
+ readonly uri?: string;
295
+ /**
296
+ * The image description.
297
+ * NOTE: This property will not be serialized. It can only be populated by the server.
298
+ */
299
+ readonly description?: string;
300
+ /**
301
+ * The image component id.
302
+ * NOTE: This property will not be serialized. It can only be populated by the server.
303
+ */
304
+ readonly componentId?: string;
305
+ /**
306
+ * The image type.
307
+ * NOTE: This property will not be serialized. It can only be populated by the server.
308
+ */
309
+ readonly imageType?: ImageType;
310
+ /**
311
+ * The status of the last operation.
312
+ * NOTE: This property will not be serialized. It can only be populated by the server.
313
+ */
314
+ readonly provisioningState?: ProvisioningState;
252
315
  }
253
316
 
254
317
  /** The response of a Deployment list operation. */
255
318
  export interface DeploymentListResult {
256
319
  /** The Deployment items on this page */
257
320
  value: Deployment[];
258
- /** The link to the next page of items */
259
- nextLink?: string;
321
+ /**
322
+ * The link to the next page of items
323
+ * NOTE: This property will not be serialized. It can only be populated by the server.
324
+ */
325
+ readonly nextLink?: string;
326
+ }
327
+
328
+ /** The properties of deployment */
329
+ export interface DeploymentProperties {
330
+ /** Deployment ID */
331
+ deploymentId?: string;
332
+ /** Images deployed */
333
+ deployedImages?: Image[];
334
+ /**
335
+ * Deployment date UTC
336
+ * NOTE: This property will not be serialized. It can only be populated by the server.
337
+ */
338
+ readonly deploymentDateUtc?: Date;
339
+ /**
340
+ * The status of the last operation.
341
+ * NOTE: This property will not be serialized. It can only be populated by the server.
342
+ */
343
+ readonly provisioningState?: ProvisioningState;
260
344
  }
261
345
 
262
346
  /** Request of the action to list device groups for a catalog. */
@@ -269,16 +353,46 @@ export interface ListDeviceGroupsRequest {
269
353
  export interface DeviceGroupListResult {
270
354
  /** The DeviceGroup items on this page */
271
355
  value: DeviceGroup[];
272
- /** The link to the next page of items */
273
- nextLink?: string;
356
+ /**
357
+ * The link to the next page of items
358
+ * NOTE: This property will not be serialized. It can only be populated by the server.
359
+ */
360
+ readonly nextLink?: string;
361
+ }
362
+
363
+ /** The properties of deviceGroup */
364
+ export interface DeviceGroupProperties {
365
+ /** Description of the device group. */
366
+ description?: string;
367
+ /** Operating system feed type of the device group. */
368
+ osFeedType?: OSFeedType;
369
+ /** Update policy of the device group. */
370
+ updatePolicy?: UpdatePolicy;
371
+ /** Flag to define if the user allows for crash dump collection. */
372
+ allowCrashDumpsCollection?: AllowCrashDumpCollection;
373
+ /** Regional data boundary for the device group. */
374
+ regionalDataBoundary?: RegionalDataBoundary;
375
+ /**
376
+ * Deployment status for the device group.
377
+ * NOTE: This property will not be serialized. It can only be populated by the server.
378
+ */
379
+ readonly hasDeployment?: boolean;
380
+ /**
381
+ * The status of the last operation.
382
+ * NOTE: This property will not be serialized. It can only be populated by the server.
383
+ */
384
+ readonly provisioningState?: ProvisioningState;
274
385
  }
275
386
 
276
387
  /** Paged collection of DeviceInsight items */
277
388
  export interface PagedDeviceInsight {
278
389
  /** The DeviceInsight items on this page */
279
390
  value: DeviceInsight[];
280
- /** The link to the next page of items */
281
- nextLink?: string;
391
+ /**
392
+ * The link to the next page of items
393
+ * NOTE: This property will not be serialized. It can only be populated by the server.
394
+ */
395
+ readonly nextLink?: string;
282
396
  }
283
397
 
284
398
  /** Device insight report. */
@@ -305,26 +419,91 @@ export interface DeviceInsight {
305
419
  export interface DeviceListResult {
306
420
  /** The Device items on this page */
307
421
  value: Device[];
308
- /** The link to the next page of items */
309
- nextLink?: string;
422
+ /**
423
+ * The link to the next page of items
424
+ * NOTE: This property will not be serialized. It can only be populated by the server.
425
+ */
426
+ readonly nextLink?: string;
427
+ }
428
+
429
+ /** The properties of device */
430
+ export interface DeviceProperties {
431
+ /** Device ID */
432
+ deviceId?: string;
433
+ /**
434
+ * SKU of the chip
435
+ * NOTE: This property will not be serialized. It can only be populated by the server.
436
+ */
437
+ readonly chipSku?: string;
438
+ /**
439
+ * OS version available for installation when update requested
440
+ * NOTE: This property will not be serialized. It can only be populated by the server.
441
+ */
442
+ readonly lastAvailableOsVersion?: string;
443
+ /**
444
+ * OS version running on device when update requested
445
+ * NOTE: This property will not be serialized. It can only be populated by the server.
446
+ */
447
+ readonly lastInstalledOsVersion?: string;
448
+ /**
449
+ * Time when update requested and new OS version available
450
+ * NOTE: This property will not be serialized. It can only be populated by the server.
451
+ */
452
+ readonly lastOsUpdateUtc?: Date;
453
+ /**
454
+ * Time when update was last requested
455
+ * NOTE: This property will not be serialized. It can only be populated by the server.
456
+ */
457
+ readonly lastUpdateRequestUtc?: Date;
458
+ /**
459
+ * The status of the last operation.
460
+ * NOTE: This property will not be serialized. It can only be populated by the server.
461
+ */
462
+ readonly provisioningState?: ProvisioningState;
310
463
  }
311
464
 
312
465
  /** The response of a Product list operation. */
313
466
  export interface ProductListResult {
314
467
  /** The Product items on this page */
315
468
  value: Product[];
316
- /** The link to the next page of items */
317
- nextLink?: string;
469
+ /**
470
+ * The link to the next page of items
471
+ * NOTE: This property will not be serialized. It can only be populated by the server.
472
+ */
473
+ readonly nextLink?: string;
474
+ }
475
+
476
+ /** The properties of product */
477
+ export interface ProductProperties {
478
+ /** Description of the product */
479
+ description?: string;
480
+ /**
481
+ * The status of the last operation.
482
+ * NOTE: This property will not be serialized. It can only be populated by the server.
483
+ */
484
+ readonly provisioningState?: ProvisioningState;
318
485
  }
319
486
 
320
487
  /** The type used for update operations of the Product. */
321
488
  export interface ProductUpdate {
489
+ /** The updatable properties of the Product. */
490
+ properties?: ProductUpdateProperties;
491
+ }
492
+
493
+ /** The updatable properties of the Product. */
494
+ export interface ProductUpdateProperties {
322
495
  /** Description of the product */
323
496
  description?: string;
324
497
  }
325
498
 
326
499
  /** The type used for update operations of the DeviceGroup. */
327
500
  export interface DeviceGroupUpdate {
501
+ /** The updatable properties of the DeviceGroup. */
502
+ properties?: DeviceGroupUpdateProperties;
503
+ }
504
+
505
+ /** The updatable properties of the DeviceGroup. */
506
+ export interface DeviceGroupUpdateProperties {
328
507
  /** Description of the device group. */
329
508
  description?: string;
330
509
  /** Operating system feed type of the device group. */
@@ -345,6 +524,12 @@ export interface ClaimDevicesRequest {
345
524
 
346
525
  /** The type used for update operations of the Device. */
347
526
  export interface DeviceUpdate {
527
+ /** The updatable properties of the Device. */
528
+ properties?: DeviceUpdateProperties;
529
+ }
530
+
531
+ /** The updatable properties of the Device. */
532
+ export interface DeviceUpdateProperties {
348
533
  /** Device group id */
349
534
  deviceGroupId?: string;
350
535
  }
@@ -364,18 +549,6 @@ export interface SignedCapabilityImageResponse {
364
549
  readonly image?: string;
365
550
  }
366
551
 
367
- /** The properties of device patch */
368
- export interface DevicePatchProperties {
369
- /** Device group id */
370
- deviceGroupId: string;
371
- }
372
-
373
- /** Image upload request body. */
374
- export interface ImageUploadRequestBody {
375
- /** . */
376
- images: string;
377
- }
378
-
379
552
  /** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */
380
553
  export interface TrackedResource extends Resource {
381
554
  /** Resource tags. */
@@ -391,183 +564,51 @@ export interface ProxyResource extends Resource {}
391
564
  export interface ProofOfPossessionNonceResponse extends CertificateProperties {}
392
565
 
393
566
  /** Response to the action call for count devices in a catalog. */
567
+ export interface CountDevicesResponse extends CountElementsResponse {}
568
+
569
+ /** Response to the action call for count devices in a catalog (preview API). */
394
570
  export interface CountDeviceResponse extends CountElementsResponse {}
395
571
 
396
572
  /** An Azure Sphere catalog */
397
573
  export interface Catalog extends TrackedResource {
398
- /**
399
- * The status of the last operation.
400
- * NOTE: This property will not be serialized. It can only be populated by the server.
401
- */
402
- readonly provisioningState?: ProvisioningState;
574
+ /** The resource-specific properties for this resource. */
575
+ properties?: CatalogProperties;
403
576
  }
404
577
 
405
578
  /** An certificate resource belonging to a catalog resource. */
406
579
  export interface Certificate extends ProxyResource {
407
- /**
408
- * The certificate as a UTF-8 encoded base 64 string.
409
- * NOTE: This property will not be serialized. It can only be populated by the server.
410
- */
411
- readonly certificate?: string;
412
- /**
413
- * The certificate status.
414
- * NOTE: This property will not be serialized. It can only be populated by the server.
415
- */
416
- readonly status?: CertificateStatus;
417
- /**
418
- * The certificate subject.
419
- * NOTE: This property will not be serialized. It can only be populated by the server.
420
- */
421
- readonly subject?: string;
422
- /**
423
- * The certificate thumbprint.
424
- * NOTE: This property will not be serialized. It can only be populated by the server.
425
- */
426
- readonly thumbprint?: string;
427
- /**
428
- * The certificate expiry date.
429
- * NOTE: This property will not be serialized. It can only be populated by the server.
430
- */
431
- readonly expiryUtc?: Date;
432
- /**
433
- * The certificate not before date.
434
- * NOTE: This property will not be serialized. It can only be populated by the server.
435
- */
436
- readonly notBeforeUtc?: Date;
437
- /**
438
- * The status of the last operation.
439
- * NOTE: This property will not be serialized. It can only be populated by the server.
440
- */
441
- readonly provisioningState?: ProvisioningState;
580
+ /** The resource-specific properties for this resource. */
581
+ properties?: CertificateProperties;
442
582
  }
443
583
 
444
584
  /** An image resource belonging to a catalog resource. */
445
585
  export interface Image extends ProxyResource {
446
- /** Image as a UTF-8 encoded base 64 string on image create. This field contains the image URI on image reads. */
447
- image?: string;
448
- /** Image ID */
449
- imageId?: string;
450
- /**
451
- * Image name
452
- * NOTE: This property will not be serialized. It can only be populated by the server.
453
- */
454
- readonly imageName?: string;
455
- /** Regional data boundary for an image */
456
- regionalDataBoundary?: RegionalDataBoundary;
457
- /**
458
- * Location the image
459
- * NOTE: This property will not be serialized. It can only be populated by the server.
460
- */
461
- readonly uri?: string;
462
- /**
463
- * The image description.
464
- * NOTE: This property will not be serialized. It can only be populated by the server.
465
- */
466
- readonly description?: string;
467
- /**
468
- * The image component id.
469
- * NOTE: This property will not be serialized. It can only be populated by the server.
470
- */
471
- readonly componentId?: string;
472
- /**
473
- * The image type.
474
- * NOTE: This property will not be serialized. It can only be populated by the server.
475
- */
476
- readonly imageType?: ImageType;
477
- /**
478
- * The status of the last operation.
479
- * NOTE: This property will not be serialized. It can only be populated by the server.
480
- */
481
- readonly provisioningState?: ProvisioningState;
586
+ /** The resource-specific properties for this resource. */
587
+ properties?: ImageProperties;
482
588
  }
483
589
 
484
590
  /** An deployment resource belonging to a device group resource. */
485
591
  export interface Deployment extends ProxyResource {
486
- /** Deployment ID */
487
- deploymentId?: string;
488
- /** Images deployed */
489
- deployedImages?: Image[];
490
- /**
491
- * Deployment date UTC
492
- * NOTE: This property will not be serialized. It can only be populated by the server.
493
- */
494
- readonly deploymentDateUtc?: Date;
495
- /**
496
- * The status of the last operation.
497
- * NOTE: This property will not be serialized. It can only be populated by the server.
498
- */
499
- readonly provisioningState?: ProvisioningState;
592
+ /** The resource-specific properties for this resource. */
593
+ properties?: DeploymentProperties;
500
594
  }
501
595
 
502
596
  /** An device group resource belonging to a product resource. */
503
597
  export interface DeviceGroup extends ProxyResource {
504
- /** Description of the device group. */
505
- description?: string;
506
- /** Operating system feed type of the device group. */
507
- osFeedType?: OSFeedType;
508
- /** Update policy of the device group. */
509
- updatePolicy?: UpdatePolicy;
510
- /** Flag to define if the user allows for crash dump collection. */
511
- allowCrashDumpsCollection?: AllowCrashDumpCollection;
512
- /** Regional data boundary for the device group. */
513
- regionalDataBoundary?: RegionalDataBoundary;
514
- /**
515
- * Deployment status for the device group.
516
- * NOTE: This property will not be serialized. It can only be populated by the server.
517
- */
518
- readonly hasDeployment?: boolean;
519
- /**
520
- * The status of the last operation.
521
- * NOTE: This property will not be serialized. It can only be populated by the server.
522
- */
523
- readonly provisioningState?: ProvisioningState;
598
+ /** The resource-specific properties for this resource. */
599
+ properties?: DeviceGroupProperties;
524
600
  }
525
601
 
526
602
  /** An device resource belonging to a device group resource. */
527
603
  export interface Device extends ProxyResource {
528
- /** Device ID */
529
- deviceId?: string;
530
- /**
531
- * SKU of the chip
532
- * NOTE: This property will not be serialized. It can only be populated by the server.
533
- */
534
- readonly chipSku?: string;
535
- /**
536
- * OS version available for installation when update requested
537
- * NOTE: This property will not be serialized. It can only be populated by the server.
538
- */
539
- readonly lastAvailableOsVersion?: string;
540
- /**
541
- * OS version running on device when update requested
542
- * NOTE: This property will not be serialized. It can only be populated by the server.
543
- */
544
- readonly lastInstalledOsVersion?: string;
545
- /**
546
- * Time when update requested and new OS version available
547
- * NOTE: This property will not be serialized. It can only be populated by the server.
548
- */
549
- readonly lastOsUpdateUtc?: Date;
550
- /**
551
- * Time when update was last requested
552
- * NOTE: This property will not be serialized. It can only be populated by the server.
553
- */
554
- readonly lastUpdateRequestUtc?: Date;
555
- /**
556
- * The status of the last operation.
557
- * NOTE: This property will not be serialized. It can only be populated by the server.
558
- */
559
- readonly provisioningState?: ProvisioningState;
604
+ /** The resource-specific properties for this resource. */
605
+ properties?: DeviceProperties;
560
606
  }
561
607
 
562
608
  /** An product resource belonging to a catalog resource. */
563
609
  export interface Product extends ProxyResource {
564
- /** Description of the product */
565
- description?: string;
566
- /**
567
- * The status of the last operation.
568
- * NOTE: This property will not be serialized. It can only be populated by the server.
569
- */
570
- readonly provisioningState?: ProvisioningState;
610
+ /** The resource-specific properties for this resource. */
611
+ properties?: ProductProperties;
571
612
  }
572
613
 
573
614
  /** Defines headers for Catalogs_createOrUpdate operation. */
@@ -584,6 +625,14 @@ export interface CatalogsDeleteHeaders {
584
625
  location?: string;
585
626
  }
586
627
 
628
+ /** Defines headers for Catalogs_uploadImage operation. */
629
+ export interface CatalogsUploadImageHeaders {
630
+ /** The Retry-After header can indicate how long the client should wait before polling the operation status. */
631
+ retryAfter?: number;
632
+ /** The Location header contains the URL where the status of the long running operation can be checked. */
633
+ location?: string;
634
+ }
635
+
587
636
  /** Defines headers for Images_createOrUpdate operation. */
588
637
  export interface ImagesCreateOrUpdateHeaders {
589
638
  /** The Retry-After header can indicate how long the client should wait before polling the operation status. */
@@ -646,6 +695,8 @@ export interface DeviceGroupsDeleteHeaders {
646
695
  export interface DeviceGroupsClaimDevicesHeaders {
647
696
  /** The Retry-After header can indicate how long the client should wait before polling the operation status. */
648
697
  retryAfter?: number;
698
+ /** The Location header contains the URL where the status of the long running operation can be checked. */
699
+ location?: string;
649
700
  }
650
701
 
651
702
  /** Defines headers for Deployments_createOrUpdate operation. */
@@ -686,6 +737,8 @@ export interface DevicesDeleteHeaders {
686
737
  export interface DevicesGenerateCapabilityImageHeaders {
687
738
  /** The Retry-After header can indicate how long the client should wait before polling the operation status. */
688
739
  retryAfter?: number;
740
+ /** The Location header contains the URL where the status of the long running operation can be checked. */
741
+ location?: string;
689
742
  }
690
743
 
691
744
  /** Known values of {@link Origin} that the service accepts. */
@@ -695,7 +748,7 @@ export enum KnownOrigin {
695
748
  /** System */
696
749
  System = "system",
697
750
  /** UserSystem */
698
- UserSystem = "user,system"
751
+ UserSystem = "user,system",
699
752
  }
700
753
 
701
754
  /**
@@ -712,7 +765,7 @@ export type Origin = string;
712
765
  /** Known values of {@link ActionType} that the service accepts. */
713
766
  export enum KnownActionType {
714
767
  /** Internal */
715
- Internal = "Internal"
768
+ Internal = "Internal",
716
769
  }
717
770
 
718
771
  /**
@@ -739,7 +792,7 @@ export enum KnownProvisioningState {
739
792
  /** The resource is being deleted */
740
793
  Deleting = "Deleting",
741
794
  /** The resource create request has been accepted */
742
- Accepted = "Accepted"
795
+ Accepted = "Accepted",
743
796
  }
744
797
 
745
798
  /**
@@ -766,7 +819,7 @@ export enum KnownCreatedByType {
766
819
  /** ManagedIdentity */
767
820
  ManagedIdentity = "ManagedIdentity",
768
821
  /** Key */
769
- Key = "Key"
822
+ Key = "Key",
770
823
  }
771
824
 
772
825
  /**
@@ -790,7 +843,7 @@ export enum KnownCertificateStatus {
790
843
  /** Certificate has expired */
791
844
  Expired = "Expired",
792
845
  /** Certificate has been revoked */
793
- Revoked = "Revoked"
846
+ Revoked = "Revoked",
794
847
  }
795
848
 
796
849
  /**
@@ -810,7 +863,7 @@ export enum KnownRegionalDataBoundary {
810
863
  /** No data boundary */
811
864
  None = "None",
812
865
  /** EU data boundary */
813
- EU = "EU"
866
+ EU = "EU",
814
867
  }
815
868
 
816
869
  /**
@@ -872,7 +925,7 @@ export enum KnownImageType {
872
925
  /** manifest set image type */
873
926
  ManifestSet = "ManifestSet",
874
927
  /** Other image type */
875
- Other = "Other"
928
+ Other = "Other",
876
929
  }
877
930
 
878
931
  /**
@@ -912,7 +965,7 @@ export enum KnownOSFeedType {
912
965
  /** Retail OS feed type. */
913
966
  Retail = "Retail",
914
967
  /** Retail evaluation OS feed type. */
915
- RetailEval = "RetailEval"
968
+ RetailEval = "RetailEval",
916
969
  }
917
970
 
918
971
  /**
@@ -930,7 +983,7 @@ export enum KnownUpdatePolicy {
930
983
  /** Update all policy. */
931
984
  UpdateAll = "UpdateAll",
932
985
  /** No update for 3rd party app policy. */
933
- No3RdPartyAppUpdates = "No3rdPartyAppUpdates"
986
+ No3RdPartyAppUpdates = "No3rdPartyAppUpdates",
934
987
  }
935
988
 
936
989
  /**
@@ -948,7 +1001,7 @@ export enum KnownAllowCrashDumpCollection {
948
1001
  /** Crash dump collection enabled */
949
1002
  Enabled = "Enabled",
950
1003
  /** Crash dump collection disabled */
951
- Disabled = "Disabled"
1004
+ Disabled = "Disabled",
952
1005
  }
953
1006
 
954
1007
  /**
@@ -966,7 +1019,7 @@ export enum KnownCapabilityType {
966
1019
  /** Application development capability */
967
1020
  ApplicationDevelopment = "ApplicationDevelopment",
968
1021
  /** Field servicing capability */
969
- FieldServicing = "FieldServicing"
1022
+ FieldServicing = "FieldServicing",
970
1023
  }
971
1024
 
972
1025
  /**
@@ -1047,7 +1100,7 @@ export interface CatalogsCountDevicesOptionalParams
1047
1100
  extends coreClient.OperationOptions {}
1048
1101
 
1049
1102
  /** Contains response data for the countDevices operation. */
1050
- export type CatalogsCountDevicesResponse = CountDeviceResponse;
1103
+ export type CatalogsCountDevicesResponse = CountDevicesResponse;
1051
1104
 
1052
1105
  /** Optional parameters. */
1053
1106
  export interface CatalogsListDeploymentsOptionalParams
@@ -1113,6 +1166,18 @@ export interface CatalogsListDevicesOptionalParams
1113
1166
  /** Contains response data for the listDevices operation. */
1114
1167
  export type CatalogsListDevicesResponse = DeviceListResult;
1115
1168
 
1169
+ /** Optional parameters. */
1170
+ export interface CatalogsUploadImageOptionalParams
1171
+ extends coreClient.OperationOptions {
1172
+ /** Delay to wait until next poll, in milliseconds. */
1173
+ updateIntervalInMs?: number;
1174
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
1175
+ resumeFrom?: string;
1176
+ }
1177
+
1178
+ /** Contains response data for the uploadImage operation. */
1179
+ export type CatalogsUploadImageResponse = CatalogsUploadImageHeaders;
1180
+
1116
1181
  /** Optional parameters. */
1117
1182
  export interface CatalogsListBySubscriptionNextOptionalParams
1118
1183
  extends coreClient.OperationOptions {}
@@ -1190,7 +1255,8 @@ export interface CertificatesRetrieveProofOfPossessionNonceOptionalParams
1190
1255
  extends coreClient.OperationOptions {}
1191
1256
 
1192
1257
  /** Contains response data for the retrieveProofOfPossessionNonce operation. */
1193
- export type CertificatesRetrieveProofOfPossessionNonceResponse = ProofOfPossessionNonceResponse;
1258
+ export type CertificatesRetrieveProofOfPossessionNonceResponse =
1259
+ ProofOfPossessionNonceResponse;
1194
1260
 
1195
1261
  /** Optional parameters. */
1196
1262
  export interface CertificatesListByCatalogNextOptionalParams
@@ -1301,7 +1367,7 @@ export interface ProductsCountDevicesOptionalParams
1301
1367
  extends coreClient.OperationOptions {}
1302
1368
 
1303
1369
  /** Contains response data for the countDevices operation. */
1304
- export type ProductsCountDevicesResponse = CountDeviceResponse;
1370
+ export type ProductsCountDevicesResponse = CountDevicesResponse;
1305
1371
 
1306
1372
  /** Optional parameters. */
1307
1373
  export interface ProductsGenerateDefaultDeviceGroupsOptionalParams
@@ -1322,7 +1388,8 @@ export interface ProductsGenerateDefaultDeviceGroupsNextOptionalParams
1322
1388
  extends coreClient.OperationOptions {}
1323
1389
 
1324
1390
  /** Contains response data for the generateDefaultDeviceGroupsNext operation. */
1325
- export type ProductsGenerateDefaultDeviceGroupsNextResponse = DeviceGroupListResult;
1391
+ export type ProductsGenerateDefaultDeviceGroupsNextResponse =
1392
+ DeviceGroupListResult;
1326
1393
 
1327
1394
  /** Optional parameters. */
1328
1395
  export interface DeviceGroupsListByProductOptionalParams
@@ -1397,7 +1464,7 @@ export interface DeviceGroupsCountDevicesOptionalParams
1397
1464
  extends coreClient.OperationOptions {}
1398
1465
 
1399
1466
  /** Contains response data for the countDevices operation. */
1400
- export type DeviceGroupsCountDevicesResponse = CountDeviceResponse;
1467
+ export type DeviceGroupsCountDevicesResponse = CountDevicesResponse;
1401
1468
 
1402
1469
  /** Optional parameters. */
1403
1470
  export interface DeviceGroupsListByProductNextOptionalParams
@@ -1513,7 +1580,8 @@ export interface DevicesGenerateCapabilityImageOptionalParams
1513
1580
  }
1514
1581
 
1515
1582
  /** Contains response data for the generateCapabilityImage operation. */
1516
- export type DevicesGenerateCapabilityImageResponse = SignedCapabilityImageResponse;
1583
+ export type DevicesGenerateCapabilityImageResponse =
1584
+ SignedCapabilityImageResponse;
1517
1585
 
1518
1586
  /** Optional parameters. */
1519
1587
  export interface DevicesListByDeviceGroupNextOptionalParams