@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
package/types/arm-sphere.d.ts
CHANGED
|
@@ -68,19 +68,33 @@ export declare type CapabilityType = string;
|
|
|
68
68
|
|
|
69
69
|
/** An Azure Sphere catalog */
|
|
70
70
|
export declare interface Catalog extends TrackedResource {
|
|
71
|
-
/**
|
|
72
|
-
|
|
73
|
-
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
74
|
-
*/
|
|
75
|
-
readonly provisioningState?: ProvisioningState;
|
|
71
|
+
/** The resource-specific properties for this resource. */
|
|
72
|
+
properties?: CatalogProperties;
|
|
76
73
|
}
|
|
77
74
|
|
|
78
75
|
/** The response of a Catalog list operation. */
|
|
79
76
|
export declare interface CatalogListResult {
|
|
80
77
|
/** The Catalog items on this page */
|
|
81
78
|
value: Catalog[];
|
|
82
|
-
/**
|
|
83
|
-
|
|
79
|
+
/**
|
|
80
|
+
* The link to the next page of items
|
|
81
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
82
|
+
*/
|
|
83
|
+
readonly nextLink?: string;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/** Catalog properties */
|
|
87
|
+
export declare interface CatalogProperties {
|
|
88
|
+
/**
|
|
89
|
+
* The Azure Sphere tenant ID associated with the catalog.
|
|
90
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
91
|
+
*/
|
|
92
|
+
readonly tenantId?: string;
|
|
93
|
+
/**
|
|
94
|
+
* The status of the last operation.
|
|
95
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
96
|
+
*/
|
|
97
|
+
readonly provisioningState?: ProvisioningState;
|
|
84
98
|
}
|
|
85
99
|
|
|
86
100
|
/** Interface representing a Catalogs. */
|
|
@@ -177,6 +191,22 @@ export declare interface Catalogs {
|
|
|
177
191
|
* @param options The options parameters.
|
|
178
192
|
*/
|
|
179
193
|
countDevices(resourceGroupName: string, catalogName: string, options?: CatalogsCountDevicesOptionalParams): Promise<CatalogsCountDevicesResponse>;
|
|
194
|
+
/**
|
|
195
|
+
* Creates an image. Use this action when the image ID is unknown.
|
|
196
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
197
|
+
* @param catalogName Name of catalog
|
|
198
|
+
* @param uploadImageRequest Image upload request body.
|
|
199
|
+
* @param options The options parameters.
|
|
200
|
+
*/
|
|
201
|
+
beginUploadImage(resourceGroupName: string, catalogName: string, uploadImageRequest: Image_2, options?: CatalogsUploadImageOptionalParams): Promise<SimplePollerLike<OperationState<CatalogsUploadImageResponse>, CatalogsUploadImageResponse>>;
|
|
202
|
+
/**
|
|
203
|
+
* Creates an image. Use this action when the image ID is unknown.
|
|
204
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
205
|
+
* @param catalogName Name of catalog
|
|
206
|
+
* @param uploadImageRequest Image upload request body.
|
|
207
|
+
* @param options The options parameters.
|
|
208
|
+
*/
|
|
209
|
+
beginUploadImageAndWait(resourceGroupName: string, catalogName: string, uploadImageRequest: Image_2, options?: CatalogsUploadImageOptionalParams): Promise<CatalogsUploadImageResponse>;
|
|
180
210
|
}
|
|
181
211
|
|
|
182
212
|
/** Optional parameters. */
|
|
@@ -184,7 +214,7 @@ export declare interface CatalogsCountDevicesOptionalParams extends coreClient.O
|
|
|
184
214
|
}
|
|
185
215
|
|
|
186
216
|
/** Contains response data for the countDevices operation. */
|
|
187
|
-
export declare type CatalogsCountDevicesResponse =
|
|
217
|
+
export declare type CatalogsCountDevicesResponse = CountDevicesResponse;
|
|
188
218
|
|
|
189
219
|
/** Defines headers for Catalogs_createOrUpdate operation. */
|
|
190
220
|
export declare interface CatalogsCreateOrUpdateHeaders {
|
|
@@ -349,6 +379,25 @@ export declare interface CatalogsUpdateOptionalParams extends coreClient.Operati
|
|
|
349
379
|
/** Contains response data for the update operation. */
|
|
350
380
|
export declare type CatalogsUpdateResponse = Catalog;
|
|
351
381
|
|
|
382
|
+
/** Defines headers for Catalogs_uploadImage operation. */
|
|
383
|
+
export declare interface CatalogsUploadImageHeaders {
|
|
384
|
+
/** The Retry-After header can indicate how long the client should wait before polling the operation status. */
|
|
385
|
+
retryAfter?: number;
|
|
386
|
+
/** The Location header contains the URL where the status of the long running operation can be checked. */
|
|
387
|
+
location?: string;
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
/** Optional parameters. */
|
|
391
|
+
export declare interface CatalogsUploadImageOptionalParams extends coreClient.OperationOptions {
|
|
392
|
+
/** Delay to wait until next poll, in milliseconds. */
|
|
393
|
+
updateIntervalInMs?: number;
|
|
394
|
+
/** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
|
|
395
|
+
resumeFrom?: string;
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
/** Contains response data for the uploadImage operation. */
|
|
399
|
+
export declare type CatalogsUploadImageResponse = CatalogsUploadImageHeaders;
|
|
400
|
+
|
|
352
401
|
/** The type used for update operations of the Catalog. */
|
|
353
402
|
export declare interface CatalogUpdate {
|
|
354
403
|
/** Resource tags. */
|
|
@@ -359,41 +408,8 @@ export declare interface CatalogUpdate {
|
|
|
359
408
|
|
|
360
409
|
/** An certificate resource belonging to a catalog resource. */
|
|
361
410
|
export declare interface Certificate extends ProxyResource {
|
|
362
|
-
/**
|
|
363
|
-
|
|
364
|
-
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
365
|
-
*/
|
|
366
|
-
readonly certificate?: string;
|
|
367
|
-
/**
|
|
368
|
-
* The certificate status.
|
|
369
|
-
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
370
|
-
*/
|
|
371
|
-
readonly status?: CertificateStatus;
|
|
372
|
-
/**
|
|
373
|
-
* The certificate subject.
|
|
374
|
-
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
375
|
-
*/
|
|
376
|
-
readonly subject?: string;
|
|
377
|
-
/**
|
|
378
|
-
* The certificate thumbprint.
|
|
379
|
-
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
380
|
-
*/
|
|
381
|
-
readonly thumbprint?: string;
|
|
382
|
-
/**
|
|
383
|
-
* The certificate expiry date.
|
|
384
|
-
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
385
|
-
*/
|
|
386
|
-
readonly expiryUtc?: Date;
|
|
387
|
-
/**
|
|
388
|
-
* The certificate not before date.
|
|
389
|
-
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
390
|
-
*/
|
|
391
|
-
readonly notBeforeUtc?: Date;
|
|
392
|
-
/**
|
|
393
|
-
* The status of the last operation.
|
|
394
|
-
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
395
|
-
*/
|
|
396
|
-
readonly provisioningState?: ProvisioningState;
|
|
411
|
+
/** The resource-specific properties for this resource. */
|
|
412
|
+
properties?: CertificateProperties;
|
|
397
413
|
}
|
|
398
414
|
|
|
399
415
|
/** The certificate chain response. */
|
|
@@ -409,8 +425,11 @@ export declare interface CertificateChainResponse {
|
|
|
409
425
|
export declare interface CertificateListResult {
|
|
410
426
|
/** The Certificate items on this page */
|
|
411
427
|
value: Certificate[];
|
|
412
|
-
/**
|
|
413
|
-
|
|
428
|
+
/**
|
|
429
|
+
* The link to the next page of items
|
|
430
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
431
|
+
*/
|
|
432
|
+
readonly nextLink?: string;
|
|
414
433
|
}
|
|
415
434
|
|
|
416
435
|
/** The properties of certificate */
|
|
@@ -552,10 +571,14 @@ export declare interface ClaimDevicesRequest {
|
|
|
552
571
|
deviceIdentifiers: string[];
|
|
553
572
|
}
|
|
554
573
|
|
|
555
|
-
/** Response to the action call for count devices in a catalog. */
|
|
574
|
+
/** Response to the action call for count devices in a catalog (preview API). */
|
|
556
575
|
export declare interface CountDeviceResponse extends CountElementsResponse {
|
|
557
576
|
}
|
|
558
577
|
|
|
578
|
+
/** Response to the action call for count devices in a catalog. */
|
|
579
|
+
export declare interface CountDevicesResponse extends CountElementsResponse {
|
|
580
|
+
}
|
|
581
|
+
|
|
559
582
|
/** Response of the count for elements. */
|
|
560
583
|
export declare interface CountElementsResponse {
|
|
561
584
|
/** Number of children resources in parent resource. */
|
|
@@ -576,6 +599,23 @@ export declare type CreatedByType = string;
|
|
|
576
599
|
|
|
577
600
|
/** An deployment resource belonging to a device group resource. */
|
|
578
601
|
export declare interface Deployment extends ProxyResource {
|
|
602
|
+
/** The resource-specific properties for this resource. */
|
|
603
|
+
properties?: DeploymentProperties;
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
/** The response of a Deployment list operation. */
|
|
607
|
+
export declare interface DeploymentListResult {
|
|
608
|
+
/** The Deployment items on this page */
|
|
609
|
+
value: Deployment[];
|
|
610
|
+
/**
|
|
611
|
+
* The link to the next page of items
|
|
612
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
613
|
+
*/
|
|
614
|
+
readonly nextLink?: string;
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
/** The properties of deployment */
|
|
618
|
+
export declare interface DeploymentProperties {
|
|
579
619
|
/** Deployment ID */
|
|
580
620
|
deploymentId?: string;
|
|
581
621
|
/** Images deployed */
|
|
@@ -592,14 +632,6 @@ export declare interface Deployment extends ProxyResource {
|
|
|
592
632
|
readonly provisioningState?: ProvisioningState;
|
|
593
633
|
}
|
|
594
634
|
|
|
595
|
-
/** The response of a Deployment list operation. */
|
|
596
|
-
export declare interface DeploymentListResult {
|
|
597
|
-
/** The Deployment items on this page */
|
|
598
|
-
value: Deployment[];
|
|
599
|
-
/** The link to the next page of items */
|
|
600
|
-
nextLink?: string;
|
|
601
|
-
}
|
|
602
|
-
|
|
603
635
|
/** Interface representing a Deployments. */
|
|
604
636
|
export declare interface Deployments {
|
|
605
637
|
/**
|
|
@@ -740,42 +772,29 @@ export declare type DeploymentsListByDeviceGroupResponse = DeploymentListResult;
|
|
|
740
772
|
|
|
741
773
|
/** An device resource belonging to a device group resource. */
|
|
742
774
|
export declare interface Device extends ProxyResource {
|
|
743
|
-
/**
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
/**
|
|
756
|
-
|
|
757
|
-
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
758
|
-
*/
|
|
759
|
-
readonly lastInstalledOsVersion?: string;
|
|
760
|
-
/**
|
|
761
|
-
* Time when update requested and new OS version available
|
|
762
|
-
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
763
|
-
*/
|
|
764
|
-
readonly lastOsUpdateUtc?: Date;
|
|
765
|
-
/**
|
|
766
|
-
* Time when update was last requested
|
|
767
|
-
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
768
|
-
*/
|
|
769
|
-
readonly lastUpdateRequestUtc?: Date;
|
|
775
|
+
/** The resource-specific properties for this resource. */
|
|
776
|
+
properties?: DeviceProperties;
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
/** An device group resource belonging to a product resource. */
|
|
780
|
+
export declare interface DeviceGroup extends ProxyResource {
|
|
781
|
+
/** The resource-specific properties for this resource. */
|
|
782
|
+
properties?: DeviceGroupProperties;
|
|
783
|
+
}
|
|
784
|
+
|
|
785
|
+
/** The response of a DeviceGroup list operation. */
|
|
786
|
+
export declare interface DeviceGroupListResult {
|
|
787
|
+
/** The DeviceGroup items on this page */
|
|
788
|
+
value: DeviceGroup[];
|
|
770
789
|
/**
|
|
771
|
-
* The
|
|
790
|
+
* The link to the next page of items
|
|
772
791
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
773
792
|
*/
|
|
774
|
-
readonly
|
|
793
|
+
readonly nextLink?: string;
|
|
775
794
|
}
|
|
776
795
|
|
|
777
|
-
/**
|
|
778
|
-
export declare interface
|
|
796
|
+
/** The properties of deviceGroup */
|
|
797
|
+
export declare interface DeviceGroupProperties {
|
|
779
798
|
/** Description of the device group. */
|
|
780
799
|
description?: string;
|
|
781
800
|
/** Operating system feed type of the device group. */
|
|
@@ -798,14 +817,6 @@ export declare interface DeviceGroup extends ProxyResource {
|
|
|
798
817
|
readonly provisioningState?: ProvisioningState;
|
|
799
818
|
}
|
|
800
819
|
|
|
801
|
-
/** The response of a DeviceGroup list operation. */
|
|
802
|
-
export declare interface DeviceGroupListResult {
|
|
803
|
-
/** The DeviceGroup items on this page */
|
|
804
|
-
value: DeviceGroup[];
|
|
805
|
-
/** The link to the next page of items */
|
|
806
|
-
nextLink?: string;
|
|
807
|
-
}
|
|
808
|
-
|
|
809
820
|
/** Interface representing a DeviceGroups. */
|
|
810
821
|
export declare interface DeviceGroups {
|
|
811
822
|
/**
|
|
@@ -929,6 +940,8 @@ export declare interface DeviceGroups {
|
|
|
929
940
|
export declare interface DeviceGroupsClaimDevicesHeaders {
|
|
930
941
|
/** The Retry-After header can indicate how long the client should wait before polling the operation status. */
|
|
931
942
|
retryAfter?: number;
|
|
943
|
+
/** The Location header contains the URL where the status of the long running operation can be checked. */
|
|
944
|
+
location?: string;
|
|
932
945
|
}
|
|
933
946
|
|
|
934
947
|
/** Optional parameters. */
|
|
@@ -947,7 +960,7 @@ export declare interface DeviceGroupsCountDevicesOptionalParams extends coreClie
|
|
|
947
960
|
}
|
|
948
961
|
|
|
949
962
|
/** Contains response data for the countDevices operation. */
|
|
950
|
-
export declare type DeviceGroupsCountDevicesResponse =
|
|
963
|
+
export declare type DeviceGroupsCountDevicesResponse = CountDevicesResponse;
|
|
951
964
|
|
|
952
965
|
/** Defines headers for DeviceGroups_createOrUpdate operation. */
|
|
953
966
|
export declare interface DeviceGroupsCreateOrUpdateHeaders {
|
|
@@ -1032,6 +1045,12 @@ export declare type DeviceGroupsUpdateResponse = DeviceGroup;
|
|
|
1032
1045
|
|
|
1033
1046
|
/** The type used for update operations of the DeviceGroup. */
|
|
1034
1047
|
export declare interface DeviceGroupUpdate {
|
|
1048
|
+
/** The updatable properties of the DeviceGroup. */
|
|
1049
|
+
properties?: DeviceGroupUpdateProperties;
|
|
1050
|
+
}
|
|
1051
|
+
|
|
1052
|
+
/** The updatable properties of the DeviceGroup. */
|
|
1053
|
+
export declare interface DeviceGroupUpdateProperties {
|
|
1035
1054
|
/** Description of the device group. */
|
|
1036
1055
|
description?: string;
|
|
1037
1056
|
/** Operating system feed type of the device group. */
|
|
@@ -1068,14 +1087,47 @@ export declare interface DeviceInsight {
|
|
|
1068
1087
|
export declare interface DeviceListResult {
|
|
1069
1088
|
/** The Device items on this page */
|
|
1070
1089
|
value: Device[];
|
|
1071
|
-
/**
|
|
1072
|
-
|
|
1090
|
+
/**
|
|
1091
|
+
* The link to the next page of items
|
|
1092
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
1093
|
+
*/
|
|
1094
|
+
readonly nextLink?: string;
|
|
1073
1095
|
}
|
|
1074
1096
|
|
|
1075
|
-
/** The properties of device
|
|
1076
|
-
export declare interface
|
|
1077
|
-
/** Device
|
|
1078
|
-
|
|
1097
|
+
/** The properties of device */
|
|
1098
|
+
export declare interface DeviceProperties {
|
|
1099
|
+
/** Device ID */
|
|
1100
|
+
deviceId?: string;
|
|
1101
|
+
/**
|
|
1102
|
+
* SKU of the chip
|
|
1103
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
1104
|
+
*/
|
|
1105
|
+
readonly chipSku?: string;
|
|
1106
|
+
/**
|
|
1107
|
+
* OS version available for installation when update requested
|
|
1108
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
1109
|
+
*/
|
|
1110
|
+
readonly lastAvailableOsVersion?: string;
|
|
1111
|
+
/**
|
|
1112
|
+
* OS version running on device when update requested
|
|
1113
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
1114
|
+
*/
|
|
1115
|
+
readonly lastInstalledOsVersion?: string;
|
|
1116
|
+
/**
|
|
1117
|
+
* Time when update requested and new OS version available
|
|
1118
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
1119
|
+
*/
|
|
1120
|
+
readonly lastOsUpdateUtc?: Date;
|
|
1121
|
+
/**
|
|
1122
|
+
* Time when update was last requested
|
|
1123
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
1124
|
+
*/
|
|
1125
|
+
readonly lastUpdateRequestUtc?: Date;
|
|
1126
|
+
/**
|
|
1127
|
+
* The status of the last operation.
|
|
1128
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
1129
|
+
*/
|
|
1130
|
+
readonly provisioningState?: ProvisioningState;
|
|
1079
1131
|
}
|
|
1080
1132
|
|
|
1081
1133
|
/** Interface representing a Devices. */
|
|
@@ -1234,6 +1286,8 @@ export declare interface DevicesDeleteOptionalParams extends coreClient.Operatio
|
|
|
1234
1286
|
export declare interface DevicesGenerateCapabilityImageHeaders {
|
|
1235
1287
|
/** The Retry-After header can indicate how long the client should wait before polling the operation status. */
|
|
1236
1288
|
retryAfter?: number;
|
|
1289
|
+
/** The Location header contains the URL where the status of the long running operation can be checked. */
|
|
1290
|
+
location?: string;
|
|
1237
1291
|
}
|
|
1238
1292
|
|
|
1239
1293
|
/** Optional parameters. */
|
|
@@ -1287,6 +1341,12 @@ export declare type DevicesUpdateResponse = Device;
|
|
|
1287
1341
|
|
|
1288
1342
|
/** The type used for update operations of the Device. */
|
|
1289
1343
|
export declare interface DeviceUpdate {
|
|
1344
|
+
/** The updatable properties of the Device. */
|
|
1345
|
+
properties?: DeviceUpdateProperties;
|
|
1346
|
+
}
|
|
1347
|
+
|
|
1348
|
+
/** The updatable properties of the Device. */
|
|
1349
|
+
export declare interface DeviceUpdateProperties {
|
|
1290
1350
|
/** Device group id */
|
|
1291
1351
|
deviceGroupId?: string;
|
|
1292
1352
|
}
|
|
@@ -1357,6 +1417,24 @@ export declare function getContinuationToken(page: unknown): string | undefined;
|
|
|
1357
1417
|
|
|
1358
1418
|
/** An image resource belonging to a catalog resource. */
|
|
1359
1419
|
declare interface Image_2 extends ProxyResource {
|
|
1420
|
+
/** The resource-specific properties for this resource. */
|
|
1421
|
+
properties?: ImageProperties;
|
|
1422
|
+
}
|
|
1423
|
+
export { Image_2 as Image }
|
|
1424
|
+
|
|
1425
|
+
/** The response of a Image list operation. */
|
|
1426
|
+
export declare interface ImageListResult {
|
|
1427
|
+
/** The Image items on this page */
|
|
1428
|
+
value: Image_2[];
|
|
1429
|
+
/**
|
|
1430
|
+
* The link to the next page of items
|
|
1431
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
1432
|
+
*/
|
|
1433
|
+
readonly nextLink?: string;
|
|
1434
|
+
}
|
|
1435
|
+
|
|
1436
|
+
/** The properties of image */
|
|
1437
|
+
export declare interface ImageProperties {
|
|
1360
1438
|
/** Image as a UTF-8 encoded base 64 string on image create. This field contains the image URI on image reads. */
|
|
1361
1439
|
image?: string;
|
|
1362
1440
|
/** Image ID */
|
|
@@ -1394,15 +1472,6 @@ declare interface Image_2 extends ProxyResource {
|
|
|
1394
1472
|
*/
|
|
1395
1473
|
readonly provisioningState?: ProvisioningState;
|
|
1396
1474
|
}
|
|
1397
|
-
export { Image_2 as Image }
|
|
1398
|
-
|
|
1399
|
-
/** The response of a Image list operation. */
|
|
1400
|
-
export declare interface ImageListResult {
|
|
1401
|
-
/** The Image items on this page */
|
|
1402
|
-
value: Image_2[];
|
|
1403
|
-
/** The link to the next page of items */
|
|
1404
|
-
nextLink?: string;
|
|
1405
|
-
}
|
|
1406
1475
|
|
|
1407
1476
|
/** Interface representing a Images. */
|
|
1408
1477
|
export declare interface Images {
|
|
@@ -1417,7 +1486,7 @@ export declare interface Images {
|
|
|
1417
1486
|
* Get a Image
|
|
1418
1487
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1419
1488
|
* @param catalogName Name of catalog
|
|
1420
|
-
* @param imageName Image name. Use
|
|
1489
|
+
* @param imageName Image name. Use an image GUID for GA versions of the API.
|
|
1421
1490
|
* @param options The options parameters.
|
|
1422
1491
|
*/
|
|
1423
1492
|
get(resourceGroupName: string, catalogName: string, imageName: string, options?: ImagesGetOptionalParams): Promise<ImagesGetResponse>;
|
|
@@ -1425,7 +1494,7 @@ export declare interface Images {
|
|
|
1425
1494
|
* Create a Image
|
|
1426
1495
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1427
1496
|
* @param catalogName Name of catalog
|
|
1428
|
-
* @param imageName Image name. Use
|
|
1497
|
+
* @param imageName Image name. Use an image GUID for GA versions of the API.
|
|
1429
1498
|
* @param resource Resource create parameters.
|
|
1430
1499
|
* @param options The options parameters.
|
|
1431
1500
|
*/
|
|
@@ -1434,7 +1503,7 @@ export declare interface Images {
|
|
|
1434
1503
|
* Create a Image
|
|
1435
1504
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1436
1505
|
* @param catalogName Name of catalog
|
|
1437
|
-
* @param imageName Image name. Use
|
|
1506
|
+
* @param imageName Image name. Use an image GUID for GA versions of the API.
|
|
1438
1507
|
* @param resource Resource create parameters.
|
|
1439
1508
|
* @param options The options parameters.
|
|
1440
1509
|
*/
|
|
@@ -1443,7 +1512,7 @@ export declare interface Images {
|
|
|
1443
1512
|
* Delete a Image
|
|
1444
1513
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1445
1514
|
* @param catalogName Name of catalog
|
|
1446
|
-
* @param imageName Image name. Use
|
|
1515
|
+
* @param imageName Image name. Use an image GUID for GA versions of the API.
|
|
1447
1516
|
* @param options The options parameters.
|
|
1448
1517
|
*/
|
|
1449
1518
|
beginDelete(resourceGroupName: string, catalogName: string, imageName: string, options?: ImagesDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
@@ -1451,7 +1520,7 @@ export declare interface Images {
|
|
|
1451
1520
|
* Delete a Image
|
|
1452
1521
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1453
1522
|
* @param catalogName Name of catalog
|
|
1454
|
-
* @param imageName Image name. Use
|
|
1523
|
+
* @param imageName Image name. Use an image GUID for GA versions of the API.
|
|
1455
1524
|
* @param options The options parameters.
|
|
1456
1525
|
*/
|
|
1457
1526
|
beginDeleteAndWait(resourceGroupName: string, catalogName: string, imageName: string, options?: ImagesDeleteOptionalParams): Promise<void>;
|
|
@@ -1551,12 +1620,6 @@ export declare type ImagesListByCatalogResponse = ImageListResult;
|
|
|
1551
1620
|
*/
|
|
1552
1621
|
export declare type ImageType = string;
|
|
1553
1622
|
|
|
1554
|
-
/** Image upload request body. */
|
|
1555
|
-
export declare interface ImageUploadRequestBody {
|
|
1556
|
-
/** . */
|
|
1557
|
-
images: string;
|
|
1558
|
-
}
|
|
1559
|
-
|
|
1560
1623
|
/** Known values of {@link ActionType} that the service accepts. */
|
|
1561
1624
|
export declare enum KnownActionType {
|
|
1562
1625
|
/** Internal */
|
|
@@ -1825,12 +1888,32 @@ export declare type OSFeedType = string;
|
|
|
1825
1888
|
export declare interface PagedDeviceInsight {
|
|
1826
1889
|
/** The DeviceInsight items on this page */
|
|
1827
1890
|
value: DeviceInsight[];
|
|
1828
|
-
/**
|
|
1829
|
-
|
|
1891
|
+
/**
|
|
1892
|
+
* The link to the next page of items
|
|
1893
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
1894
|
+
*/
|
|
1895
|
+
readonly nextLink?: string;
|
|
1830
1896
|
}
|
|
1831
1897
|
|
|
1832
1898
|
/** An product resource belonging to a catalog resource. */
|
|
1833
1899
|
export declare interface Product extends ProxyResource {
|
|
1900
|
+
/** The resource-specific properties for this resource. */
|
|
1901
|
+
properties?: ProductProperties;
|
|
1902
|
+
}
|
|
1903
|
+
|
|
1904
|
+
/** The response of a Product list operation. */
|
|
1905
|
+
export declare interface ProductListResult {
|
|
1906
|
+
/** The Product items on this page */
|
|
1907
|
+
value: Product[];
|
|
1908
|
+
/**
|
|
1909
|
+
* The link to the next page of items
|
|
1910
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
1911
|
+
*/
|
|
1912
|
+
readonly nextLink?: string;
|
|
1913
|
+
}
|
|
1914
|
+
|
|
1915
|
+
/** The properties of product */
|
|
1916
|
+
export declare interface ProductProperties {
|
|
1834
1917
|
/** Description of the product */
|
|
1835
1918
|
description?: string;
|
|
1836
1919
|
/**
|
|
@@ -1840,14 +1923,6 @@ export declare interface Product extends ProxyResource {
|
|
|
1840
1923
|
readonly provisioningState?: ProvisioningState;
|
|
1841
1924
|
}
|
|
1842
1925
|
|
|
1843
|
-
/** The response of a Product list operation. */
|
|
1844
|
-
export declare interface ProductListResult {
|
|
1845
|
-
/** The Product items on this page */
|
|
1846
|
-
value: Product[];
|
|
1847
|
-
/** The link to the next page of items */
|
|
1848
|
-
nextLink?: string;
|
|
1849
|
-
}
|
|
1850
|
-
|
|
1851
1926
|
/** Interface representing a Products. */
|
|
1852
1927
|
export declare interface Products {
|
|
1853
1928
|
/**
|
|
@@ -1949,7 +2024,7 @@ export declare interface ProductsCountDevicesOptionalParams extends coreClient.O
|
|
|
1949
2024
|
}
|
|
1950
2025
|
|
|
1951
2026
|
/** Contains response data for the countDevices operation. */
|
|
1952
|
-
export declare type ProductsCountDevicesResponse =
|
|
2027
|
+
export declare type ProductsCountDevicesResponse = CountDevicesResponse;
|
|
1953
2028
|
|
|
1954
2029
|
/** Defines headers for Products_createOrUpdate operation. */
|
|
1955
2030
|
export declare interface ProductsCreateOrUpdateHeaders {
|
|
@@ -2040,6 +2115,12 @@ export declare type ProductsUpdateResponse = Product;
|
|
|
2040
2115
|
|
|
2041
2116
|
/** The type used for update operations of the Product. */
|
|
2042
2117
|
export declare interface ProductUpdate {
|
|
2118
|
+
/** The updatable properties of the Product. */
|
|
2119
|
+
properties?: ProductUpdateProperties;
|
|
2120
|
+
}
|
|
2121
|
+
|
|
2122
|
+
/** The updatable properties of the Product. */
|
|
2123
|
+
export declare interface ProductUpdateProperties {
|
|
2043
2124
|
/** Description of the product */
|
|
2044
2125
|
description?: string;
|
|
2045
2126
|
}
|
package/rollup.config.js
DELETED
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*
|
|
5
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
import nodeResolve from "@rollup/plugin-node-resolve";
|
|
10
|
-
import cjs from "@rollup/plugin-commonjs";
|
|
11
|
-
import sourcemaps from "rollup-plugin-sourcemaps";
|
|
12
|
-
import multiEntry from "@rollup/plugin-multi-entry";
|
|
13
|
-
import json from "@rollup/plugin-json";
|
|
14
|
-
|
|
15
|
-
import nodeBuiltins from "builtin-modules";
|
|
16
|
-
|
|
17
|
-
// #region Warning Handler
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* A function that can determine whether a rollup warning should be ignored. If
|
|
21
|
-
* the function returns `true`, then the warning will not be displayed.
|
|
22
|
-
*/
|
|
23
|
-
|
|
24
|
-
function ignoreNiseSinonEval(warning) {
|
|
25
|
-
return (
|
|
26
|
-
warning.code === "EVAL" &&
|
|
27
|
-
warning.id &&
|
|
28
|
-
(warning.id.includes("node_modules/nise") ||
|
|
29
|
-
warning.id.includes("node_modules/sinon")) === true
|
|
30
|
-
);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
function ignoreChaiCircularDependency(warning) {
|
|
34
|
-
return (
|
|
35
|
-
warning.code === "CIRCULAR_DEPENDENCY" &&
|
|
36
|
-
warning.importer && warning.importer.includes("node_modules/chai") === true
|
|
37
|
-
);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
const warningInhibitors = [ignoreChaiCircularDependency, ignoreNiseSinonEval];
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Construct a warning handler for the shared rollup configuration
|
|
44
|
-
* that ignores certain warnings that are not relevant to testing.
|
|
45
|
-
*/
|
|
46
|
-
function makeOnWarnForTesting() {
|
|
47
|
-
return (warning, warn) => {
|
|
48
|
-
// If every inhibitor returns false (i.e. no inhibitors), then show the warning
|
|
49
|
-
if (warningInhibitors.every((inhib) => !inhib(warning))) {
|
|
50
|
-
warn(warning);
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
// #endregion
|
|
56
|
-
|
|
57
|
-
function makeBrowserTestConfig() {
|
|
58
|
-
const config = {
|
|
59
|
-
input: {
|
|
60
|
-
include: ["dist-esm/test/**/*.spec.js"],
|
|
61
|
-
exclude: ["dist-esm/test/**/node/**"]
|
|
62
|
-
},
|
|
63
|
-
output: {
|
|
64
|
-
file: `dist-test/index.browser.js`,
|
|
65
|
-
format: "umd",
|
|
66
|
-
sourcemap: true
|
|
67
|
-
},
|
|
68
|
-
preserveSymlinks: false,
|
|
69
|
-
plugins: [
|
|
70
|
-
multiEntry({ exports: false }),
|
|
71
|
-
nodeResolve({
|
|
72
|
-
mainFields: ["module", "browser"]
|
|
73
|
-
}),
|
|
74
|
-
cjs(),
|
|
75
|
-
json(),
|
|
76
|
-
sourcemaps()
|
|
77
|
-
//viz({ filename: "dist-test/browser-stats.html", sourcemap: true })
|
|
78
|
-
],
|
|
79
|
-
onwarn: makeOnWarnForTesting(),
|
|
80
|
-
// Disable tree-shaking of test code. In rollup-plugin-node-resolve@5.0.0,
|
|
81
|
-
// rollup started respecting the "sideEffects" field in package.json. Since
|
|
82
|
-
// our package.json sets "sideEffects=false", this also applies to test
|
|
83
|
-
// code, which causes all tests to be removed by tree-shaking.
|
|
84
|
-
treeshake: false
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
return config;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
const defaultConfigurationOptions = {
|
|
91
|
-
disableBrowserBundle: false
|
|
92
|
-
};
|
|
93
|
-
|
|
94
|
-
export function makeConfig(pkg, options) {
|
|
95
|
-
options = {
|
|
96
|
-
...defaultConfigurationOptions,
|
|
97
|
-
...(options || {})
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
const baseConfig = {
|
|
101
|
-
// Use the package's module field if it has one
|
|
102
|
-
input: pkg["module"] || "dist-esm/src/index.js",
|
|
103
|
-
external: [
|
|
104
|
-
...nodeBuiltins,
|
|
105
|
-
...Object.keys(pkg.dependencies),
|
|
106
|
-
...Object.keys(pkg.devDependencies)
|
|
107
|
-
],
|
|
108
|
-
output: { file: "dist/index.js", format: "cjs", sourcemap: true },
|
|
109
|
-
preserveSymlinks: false,
|
|
110
|
-
plugins: [sourcemaps(), nodeResolve()]
|
|
111
|
-
};
|
|
112
|
-
|
|
113
|
-
const config = [baseConfig];
|
|
114
|
-
|
|
115
|
-
if (!options.disableBrowserBundle) {
|
|
116
|
-
config.push(makeBrowserTestConfig());
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
return config;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
export default makeConfig(require("./package.json"));
|