@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sphere_operations_test.spec.js","sourceRoot":"","sources":["../../test/sphere_operations_test.spec.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,EACL,GAAG,EACH,QAAQ,EAGR,cAAc,GACf,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAE9B,OAAO,EAAE,2BAA2B,EAAE,MAAM,oCAAoC,CAAC;AAEjF,MAAM,oBAAoB,GAA2B;IACnD,eAAe,EAAE,iBAAiB;IAClC,mBAAmB,EAAE,qBAAqB;IAC1C,eAAe,EAAE,sCAAsC;IACvD,eAAe,EAAE,uBAAuB;CACzC,CAAC;AAEF,MAAM,eAAe,GAAyB;IAC5C,mBAAmB,EAAE,oBAAoB;CAC1C,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,kBAAkB,EAAE,cAAc,EAAE,CAAC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B,CAAC,CAAC;YACpC,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;gBAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,QAAQ,CAAC,mBAAmB,CAAC,aAAa,CAAC,CAAA,IAAA,sDAAE,CAAC;oBAArD,cAAkD;oBAAlD,WAAkD;oBAA9D,IAAI,IAAI,KAAA,CAAA;oBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;gBACtB,CAAC;;;;;;;;;YACD,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;;KAClC,CAAC,CAAC;AACL,CAAC,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -3,17 +3,17 @@
|
|
|
3
3
|
"sdk-type": "mgmt",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "A generated SDK for AzureSphereManagementClient.",
|
|
6
|
-
"version": "1.0.0
|
|
6
|
+
"version": "1.0.0",
|
|
7
7
|
"engines": {
|
|
8
|
-
"node": ">=
|
|
8
|
+
"node": ">=18.0.0"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@azure/core-lro": "^2.5.
|
|
11
|
+
"@azure/core-lro": "^2.5.4",
|
|
12
12
|
"@azure/abort-controller": "^1.0.0",
|
|
13
13
|
"@azure/core-paging": "^1.2.0",
|
|
14
14
|
"@azure/core-client": "^1.7.0",
|
|
15
|
-
"@azure/core-auth": "^1.
|
|
16
|
-
"@azure/core-rest-pipeline": "^1.
|
|
15
|
+
"@azure/core-auth": "^1.6.0",
|
|
16
|
+
"@azure/core-rest-pipeline": "^1.14.0",
|
|
17
17
|
"tslib": "^2.2.0"
|
|
18
18
|
},
|
|
19
19
|
"keywords": [
|
|
@@ -29,26 +29,23 @@
|
|
|
29
29
|
"types": "./types/arm-sphere.d.ts",
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@microsoft/api-extractor": "^7.31.1",
|
|
32
|
-
"@rollup/plugin-commonjs": "^24.0.0",
|
|
33
|
-
"@rollup/plugin-json": "^6.0.0",
|
|
34
|
-
"@rollup/plugin-multi-entry": "^6.0.0",
|
|
35
|
-
"@rollup/plugin-node-resolve": "^13.1.3",
|
|
36
32
|
"mkdirp": "^2.1.2",
|
|
37
|
-
"
|
|
38
|
-
"rollup-plugin-sourcemaps": "^0.6.3",
|
|
39
|
-
"typescript": "~5.0.0",
|
|
33
|
+
"typescript": "~5.3.3",
|
|
40
34
|
"uglify-js": "^3.4.9",
|
|
41
|
-
"rimraf": "^
|
|
35
|
+
"rimraf": "^5.0.0",
|
|
42
36
|
"dotenv": "^16.0.0",
|
|
43
|
-
"@azure/
|
|
37
|
+
"@azure/dev-tool": "^1.0.0",
|
|
38
|
+
"@azure/identity": "^4.0.1",
|
|
44
39
|
"@azure-tools/test-recorder": "^3.0.0",
|
|
45
40
|
"@azure-tools/test-credential": "^1.0.0",
|
|
46
|
-
"mocha": "^
|
|
41
|
+
"mocha": "^10.0.0",
|
|
42
|
+
"@types/mocha": "^10.0.0",
|
|
43
|
+
"esm": "^3.2.18",
|
|
47
44
|
"@types/chai": "^4.2.8",
|
|
48
45
|
"chai": "^4.2.0",
|
|
49
46
|
"cross-env": "^7.0.2",
|
|
50
|
-
"@types/node": "^
|
|
51
|
-
"
|
|
47
|
+
"@types/node": "^18.0.0",
|
|
48
|
+
"ts-node": "^10.0.0"
|
|
52
49
|
},
|
|
53
50
|
"repository": {
|
|
54
51
|
"type": "git",
|
|
@@ -69,21 +66,19 @@
|
|
|
69
66
|
"src/**/*.ts",
|
|
70
67
|
"README.md",
|
|
71
68
|
"LICENSE",
|
|
72
|
-
"rollup.config.js",
|
|
73
69
|
"tsconfig.json",
|
|
74
70
|
"review/*",
|
|
75
71
|
"CHANGELOG.md",
|
|
76
72
|
"types/*"
|
|
77
73
|
],
|
|
78
74
|
"scripts": {
|
|
79
|
-
"build": "npm run clean && tsc &&
|
|
75
|
+
"build": "npm run clean && tsc && dev-tool run bundle && npm run minify && mkdirp ./review && npm run extract-api",
|
|
80
76
|
"minify": "uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
|
|
81
77
|
"prepack": "npm run build",
|
|
82
78
|
"pack": "npm pack 2>&1",
|
|
83
79
|
"extract-api": "api-extractor run --local",
|
|
84
80
|
"lint": "echo skipped",
|
|
85
|
-
"
|
|
86
|
-
"clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log",
|
|
81
|
+
"clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
|
|
87
82
|
"build:node": "echo skipped",
|
|
88
83
|
"build:browser": "echo skipped",
|
|
89
84
|
"build:test": "echo skipped",
|
package/review/arm-sphere.api.md
CHANGED
|
@@ -55,21 +55,29 @@ export type CapabilityType = string;
|
|
|
55
55
|
|
|
56
56
|
// @public
|
|
57
57
|
export interface Catalog extends TrackedResource {
|
|
58
|
-
|
|
58
|
+
properties?: CatalogProperties;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
// @public
|
|
62
62
|
export interface CatalogListResult {
|
|
63
|
-
nextLink?: string;
|
|
63
|
+
readonly nextLink?: string;
|
|
64
64
|
value: Catalog[];
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
+
// @public
|
|
68
|
+
export interface CatalogProperties {
|
|
69
|
+
readonly provisioningState?: ProvisioningState;
|
|
70
|
+
readonly tenantId?: string;
|
|
71
|
+
}
|
|
72
|
+
|
|
67
73
|
// @public
|
|
68
74
|
export interface Catalogs {
|
|
69
75
|
beginCreateOrUpdate(resourceGroupName: string, catalogName: string, resource: Catalog, options?: CatalogsCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<CatalogsCreateOrUpdateResponse>, CatalogsCreateOrUpdateResponse>>;
|
|
70
76
|
beginCreateOrUpdateAndWait(resourceGroupName: string, catalogName: string, resource: Catalog, options?: CatalogsCreateOrUpdateOptionalParams): Promise<CatalogsCreateOrUpdateResponse>;
|
|
71
77
|
beginDelete(resourceGroupName: string, catalogName: string, options?: CatalogsDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
72
78
|
beginDeleteAndWait(resourceGroupName: string, catalogName: string, options?: CatalogsDeleteOptionalParams): Promise<void>;
|
|
79
|
+
beginUploadImage(resourceGroupName: string, catalogName: string, uploadImageRequest: Image_2, options?: CatalogsUploadImageOptionalParams): Promise<SimplePollerLike<OperationState<CatalogsUploadImageResponse>, CatalogsUploadImageResponse>>;
|
|
80
|
+
beginUploadImageAndWait(resourceGroupName: string, catalogName: string, uploadImageRequest: Image_2, options?: CatalogsUploadImageOptionalParams): Promise<CatalogsUploadImageResponse>;
|
|
73
81
|
countDevices(resourceGroupName: string, catalogName: string, options?: CatalogsCountDevicesOptionalParams): Promise<CatalogsCountDevicesResponse>;
|
|
74
82
|
get(resourceGroupName: string, catalogName: string, options?: CatalogsGetOptionalParams): Promise<CatalogsGetResponse>;
|
|
75
83
|
listByResourceGroup(resourceGroupName: string, options?: CatalogsListByResourceGroupOptionalParams): PagedAsyncIterableIterator<Catalog>;
|
|
@@ -86,7 +94,7 @@ export interface CatalogsCountDevicesOptionalParams extends coreClient.Operation
|
|
|
86
94
|
}
|
|
87
95
|
|
|
88
96
|
// @public
|
|
89
|
-
export type CatalogsCountDevicesResponse =
|
|
97
|
+
export type CatalogsCountDevicesResponse = CountDevicesResponse;
|
|
90
98
|
|
|
91
99
|
// @public
|
|
92
100
|
export interface CatalogsCreateOrUpdateHeaders {
|
|
@@ -228,6 +236,21 @@ export interface CatalogsUpdateOptionalParams extends coreClient.OperationOption
|
|
|
228
236
|
// @public
|
|
229
237
|
export type CatalogsUpdateResponse = Catalog;
|
|
230
238
|
|
|
239
|
+
// @public
|
|
240
|
+
export interface CatalogsUploadImageHeaders {
|
|
241
|
+
location?: string;
|
|
242
|
+
retryAfter?: number;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
// @public
|
|
246
|
+
export interface CatalogsUploadImageOptionalParams extends coreClient.OperationOptions {
|
|
247
|
+
resumeFrom?: string;
|
|
248
|
+
updateIntervalInMs?: number;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
// @public
|
|
252
|
+
export type CatalogsUploadImageResponse = CatalogsUploadImageHeaders;
|
|
253
|
+
|
|
231
254
|
// @public
|
|
232
255
|
export interface CatalogUpdate {
|
|
233
256
|
tags?: {
|
|
@@ -237,13 +260,7 @@ export interface CatalogUpdate {
|
|
|
237
260
|
|
|
238
261
|
// @public
|
|
239
262
|
export interface Certificate extends ProxyResource {
|
|
240
|
-
|
|
241
|
-
readonly expiryUtc?: Date;
|
|
242
|
-
readonly notBeforeUtc?: Date;
|
|
243
|
-
readonly provisioningState?: ProvisioningState;
|
|
244
|
-
readonly status?: CertificateStatus;
|
|
245
|
-
readonly subject?: string;
|
|
246
|
-
readonly thumbprint?: string;
|
|
263
|
+
properties?: CertificateProperties;
|
|
247
264
|
}
|
|
248
265
|
|
|
249
266
|
// @public
|
|
@@ -253,7 +270,7 @@ export interface CertificateChainResponse {
|
|
|
253
270
|
|
|
254
271
|
// @public
|
|
255
272
|
export interface CertificateListResult {
|
|
256
|
-
nextLink?: string;
|
|
273
|
+
readonly nextLink?: string;
|
|
257
274
|
value: Certificate[];
|
|
258
275
|
}
|
|
259
276
|
|
|
@@ -327,6 +344,10 @@ export interface ClaimDevicesRequest {
|
|
|
327
344
|
export interface CountDeviceResponse extends CountElementsResponse {
|
|
328
345
|
}
|
|
329
346
|
|
|
347
|
+
// @public
|
|
348
|
+
export interface CountDevicesResponse extends CountElementsResponse {
|
|
349
|
+
}
|
|
350
|
+
|
|
330
351
|
// @public
|
|
331
352
|
export interface CountElementsResponse {
|
|
332
353
|
value: number;
|
|
@@ -337,18 +358,23 @@ export type CreatedByType = string;
|
|
|
337
358
|
|
|
338
359
|
// @public
|
|
339
360
|
export interface Deployment extends ProxyResource {
|
|
340
|
-
|
|
341
|
-
readonly deploymentDateUtc?: Date;
|
|
342
|
-
deploymentId?: string;
|
|
343
|
-
readonly provisioningState?: ProvisioningState;
|
|
361
|
+
properties?: DeploymentProperties;
|
|
344
362
|
}
|
|
345
363
|
|
|
346
364
|
// @public
|
|
347
365
|
export interface DeploymentListResult {
|
|
348
|
-
nextLink?: string;
|
|
366
|
+
readonly nextLink?: string;
|
|
349
367
|
value: Deployment[];
|
|
350
368
|
}
|
|
351
369
|
|
|
370
|
+
// @public
|
|
371
|
+
export interface DeploymentProperties {
|
|
372
|
+
deployedImages?: Image_2[];
|
|
373
|
+
readonly deploymentDateUtc?: Date;
|
|
374
|
+
deploymentId?: string;
|
|
375
|
+
readonly provisioningState?: ProvisioningState;
|
|
376
|
+
}
|
|
377
|
+
|
|
352
378
|
// @public
|
|
353
379
|
export interface Deployments {
|
|
354
380
|
beginCreateOrUpdate(resourceGroupName: string, catalogName: string, productName: string, deviceGroupName: string, deploymentName: string, resource: Deployment, options?: DeploymentsCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<DeploymentsCreateOrUpdateResponse>, DeploymentsCreateOrUpdateResponse>>;
|
|
@@ -412,17 +438,22 @@ export type DeploymentsListByDeviceGroupResponse = DeploymentListResult;
|
|
|
412
438
|
|
|
413
439
|
// @public
|
|
414
440
|
export interface Device extends ProxyResource {
|
|
415
|
-
|
|
416
|
-
deviceId?: string;
|
|
417
|
-
readonly lastAvailableOsVersion?: string;
|
|
418
|
-
readonly lastInstalledOsVersion?: string;
|
|
419
|
-
readonly lastOsUpdateUtc?: Date;
|
|
420
|
-
readonly lastUpdateRequestUtc?: Date;
|
|
421
|
-
readonly provisioningState?: ProvisioningState;
|
|
441
|
+
properties?: DeviceProperties;
|
|
422
442
|
}
|
|
423
443
|
|
|
424
444
|
// @public
|
|
425
445
|
export interface DeviceGroup extends ProxyResource {
|
|
446
|
+
properties?: DeviceGroupProperties;
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
// @public
|
|
450
|
+
export interface DeviceGroupListResult {
|
|
451
|
+
readonly nextLink?: string;
|
|
452
|
+
value: DeviceGroup[];
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
// @public
|
|
456
|
+
export interface DeviceGroupProperties {
|
|
426
457
|
allowCrashDumpsCollection?: AllowCrashDumpCollection;
|
|
427
458
|
description?: string;
|
|
428
459
|
readonly hasDeployment?: boolean;
|
|
@@ -432,12 +463,6 @@ export interface DeviceGroup extends ProxyResource {
|
|
|
432
463
|
updatePolicy?: UpdatePolicy;
|
|
433
464
|
}
|
|
434
465
|
|
|
435
|
-
// @public
|
|
436
|
-
export interface DeviceGroupListResult {
|
|
437
|
-
nextLink?: string;
|
|
438
|
-
value: DeviceGroup[];
|
|
439
|
-
}
|
|
440
|
-
|
|
441
466
|
// @public
|
|
442
467
|
export interface DeviceGroups {
|
|
443
468
|
beginClaimDevices(resourceGroupName: string, catalogName: string, productName: string, deviceGroupName: string, claimDevicesRequest: ClaimDevicesRequest, options?: DeviceGroupsClaimDevicesOptionalParams): Promise<SimplePollerLike<OperationState<DeviceGroupsClaimDevicesResponse>, DeviceGroupsClaimDevicesResponse>>;
|
|
@@ -455,6 +480,7 @@ export interface DeviceGroups {
|
|
|
455
480
|
|
|
456
481
|
// @public
|
|
457
482
|
export interface DeviceGroupsClaimDevicesHeaders {
|
|
483
|
+
location?: string;
|
|
458
484
|
retryAfter?: number;
|
|
459
485
|
}
|
|
460
486
|
|
|
@@ -472,7 +498,7 @@ export interface DeviceGroupsCountDevicesOptionalParams extends coreClient.Opera
|
|
|
472
498
|
}
|
|
473
499
|
|
|
474
500
|
// @public
|
|
475
|
-
export type DeviceGroupsCountDevicesResponse =
|
|
501
|
+
export type DeviceGroupsCountDevicesResponse = CountDevicesResponse;
|
|
476
502
|
|
|
477
503
|
// @public
|
|
478
504
|
export interface DeviceGroupsCreateOrUpdateHeaders {
|
|
@@ -542,6 +568,11 @@ export type DeviceGroupsUpdateResponse = DeviceGroup;
|
|
|
542
568
|
|
|
543
569
|
// @public
|
|
544
570
|
export interface DeviceGroupUpdate {
|
|
571
|
+
properties?: DeviceGroupUpdateProperties;
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
// @public
|
|
575
|
+
export interface DeviceGroupUpdateProperties {
|
|
545
576
|
allowCrashDumpsCollection?: AllowCrashDumpCollection;
|
|
546
577
|
description?: string;
|
|
547
578
|
osFeedType?: OSFeedType;
|
|
@@ -563,13 +594,19 @@ export interface DeviceInsight {
|
|
|
563
594
|
|
|
564
595
|
// @public
|
|
565
596
|
export interface DeviceListResult {
|
|
566
|
-
nextLink?: string;
|
|
597
|
+
readonly nextLink?: string;
|
|
567
598
|
value: Device[];
|
|
568
599
|
}
|
|
569
600
|
|
|
570
601
|
// @public
|
|
571
|
-
export interface
|
|
572
|
-
|
|
602
|
+
export interface DeviceProperties {
|
|
603
|
+
readonly chipSku?: string;
|
|
604
|
+
deviceId?: string;
|
|
605
|
+
readonly lastAvailableOsVersion?: string;
|
|
606
|
+
readonly lastInstalledOsVersion?: string;
|
|
607
|
+
readonly lastOsUpdateUtc?: Date;
|
|
608
|
+
readonly lastUpdateRequestUtc?: Date;
|
|
609
|
+
readonly provisioningState?: ProvisioningState;
|
|
573
610
|
}
|
|
574
611
|
|
|
575
612
|
// @public
|
|
@@ -614,6 +651,7 @@ export interface DevicesDeleteOptionalParams extends coreClient.OperationOptions
|
|
|
614
651
|
|
|
615
652
|
// @public
|
|
616
653
|
export interface DevicesGenerateCapabilityImageHeaders {
|
|
654
|
+
location?: string;
|
|
617
655
|
retryAfter?: number;
|
|
618
656
|
}
|
|
619
657
|
|
|
@@ -663,6 +701,11 @@ export type DevicesUpdateResponse = Device;
|
|
|
663
701
|
|
|
664
702
|
// @public
|
|
665
703
|
export interface DeviceUpdate {
|
|
704
|
+
properties?: DeviceUpdateProperties;
|
|
705
|
+
}
|
|
706
|
+
|
|
707
|
+
// @public
|
|
708
|
+
export interface DeviceUpdateProperties {
|
|
666
709
|
deviceGroupId?: string;
|
|
667
710
|
}
|
|
668
711
|
|
|
@@ -696,6 +739,18 @@ export function getContinuationToken(page: unknown): string | undefined;
|
|
|
696
739
|
|
|
697
740
|
// @public
|
|
698
741
|
interface Image_2 extends ProxyResource {
|
|
742
|
+
properties?: ImageProperties;
|
|
743
|
+
}
|
|
744
|
+
export { Image_2 as Image }
|
|
745
|
+
|
|
746
|
+
// @public
|
|
747
|
+
export interface ImageListResult {
|
|
748
|
+
readonly nextLink?: string;
|
|
749
|
+
value: Image_2[];
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
// @public
|
|
753
|
+
export interface ImageProperties {
|
|
699
754
|
readonly componentId?: string;
|
|
700
755
|
readonly description?: string;
|
|
701
756
|
image?: string;
|
|
@@ -706,13 +761,6 @@ interface Image_2 extends ProxyResource {
|
|
|
706
761
|
regionalDataBoundary?: RegionalDataBoundary;
|
|
707
762
|
readonly uri?: string;
|
|
708
763
|
}
|
|
709
|
-
export { Image_2 as Image }
|
|
710
|
-
|
|
711
|
-
// @public
|
|
712
|
-
export interface ImageListResult {
|
|
713
|
-
nextLink?: string;
|
|
714
|
-
value: Image_2[];
|
|
715
|
-
}
|
|
716
764
|
|
|
717
765
|
// @public
|
|
718
766
|
export interface Images {
|
|
@@ -778,12 +826,6 @@ export type ImagesListByCatalogResponse = ImageListResult;
|
|
|
778
826
|
// @public
|
|
779
827
|
export type ImageType = string;
|
|
780
828
|
|
|
781
|
-
// @public
|
|
782
|
-
export interface ImageUploadRequestBody {
|
|
783
|
-
// (undocumented)
|
|
784
|
-
images: string;
|
|
785
|
-
}
|
|
786
|
-
|
|
787
829
|
// @public
|
|
788
830
|
export enum KnownActionType {
|
|
789
831
|
Internal = "Internal"
|
|
@@ -936,22 +978,27 @@ export type OSFeedType = string;
|
|
|
936
978
|
|
|
937
979
|
// @public
|
|
938
980
|
export interface PagedDeviceInsight {
|
|
939
|
-
nextLink?: string;
|
|
981
|
+
readonly nextLink?: string;
|
|
940
982
|
value: DeviceInsight[];
|
|
941
983
|
}
|
|
942
984
|
|
|
943
985
|
// @public
|
|
944
986
|
export interface Product extends ProxyResource {
|
|
945
|
-
|
|
946
|
-
readonly provisioningState?: ProvisioningState;
|
|
987
|
+
properties?: ProductProperties;
|
|
947
988
|
}
|
|
948
989
|
|
|
949
990
|
// @public
|
|
950
991
|
export interface ProductListResult {
|
|
951
|
-
nextLink?: string;
|
|
992
|
+
readonly nextLink?: string;
|
|
952
993
|
value: Product[];
|
|
953
994
|
}
|
|
954
995
|
|
|
996
|
+
// @public
|
|
997
|
+
export interface ProductProperties {
|
|
998
|
+
description?: string;
|
|
999
|
+
readonly provisioningState?: ProvisioningState;
|
|
1000
|
+
}
|
|
1001
|
+
|
|
955
1002
|
// @public
|
|
956
1003
|
export interface Products {
|
|
957
1004
|
beginCreateOrUpdate(resourceGroupName: string, catalogName: string, productName: string, resource: Product, options?: ProductsCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<ProductsCreateOrUpdateResponse>, ProductsCreateOrUpdateResponse>>;
|
|
@@ -971,7 +1018,7 @@ export interface ProductsCountDevicesOptionalParams extends coreClient.Operation
|
|
|
971
1018
|
}
|
|
972
1019
|
|
|
973
1020
|
// @public
|
|
974
|
-
export type ProductsCountDevicesResponse =
|
|
1021
|
+
export type ProductsCountDevicesResponse = CountDevicesResponse;
|
|
975
1022
|
|
|
976
1023
|
// @public
|
|
977
1024
|
export interface ProductsCreateOrUpdateHeaders {
|
|
@@ -1051,6 +1098,11 @@ export type ProductsUpdateResponse = Product;
|
|
|
1051
1098
|
|
|
1052
1099
|
// @public
|
|
1053
1100
|
export interface ProductUpdate {
|
|
1101
|
+
properties?: ProductUpdateProperties;
|
|
1102
|
+
}
|
|
1103
|
+
|
|
1104
|
+
// @public
|
|
1105
|
+
export interface ProductUpdateProperties {
|
|
1054
1106
|
description?: string;
|
|
1055
1107
|
}
|
|
1056
1108
|
|
|
@@ -11,7 +11,7 @@ import * as coreRestPipeline from "@azure/core-rest-pipeline";
|
|
|
11
11
|
import {
|
|
12
12
|
PipelineRequest,
|
|
13
13
|
PipelineResponse,
|
|
14
|
-
SendRequest
|
|
14
|
+
SendRequest,
|
|
15
15
|
} from "@azure/core-rest-pipeline";
|
|
16
16
|
import * as coreAuth from "@azure/core-auth";
|
|
17
17
|
import {
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
ProductsImpl,
|
|
23
23
|
DeviceGroupsImpl,
|
|
24
24
|
DeploymentsImpl,
|
|
25
|
-
DevicesImpl
|
|
25
|
+
DevicesImpl,
|
|
26
26
|
} from "./operations";
|
|
27
27
|
import {
|
|
28
28
|
Operations,
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
Products,
|
|
33
33
|
DeviceGroups,
|
|
34
34
|
Deployments,
|
|
35
|
-
Devices
|
|
35
|
+
Devices,
|
|
36
36
|
} from "./operationsInterfaces";
|
|
37
37
|
import { AzureSphereManagementClientOptionalParams } from "./models";
|
|
38
38
|
|
|
@@ -50,7 +50,7 @@ export class AzureSphereManagementClient extends coreClient.ServiceClient {
|
|
|
50
50
|
constructor(
|
|
51
51
|
credentials: coreAuth.TokenCredential,
|
|
52
52
|
subscriptionId: string,
|
|
53
|
-
options?: AzureSphereManagementClientOptionalParams
|
|
53
|
+
options?: AzureSphereManagementClientOptionalParams,
|
|
54
54
|
) {
|
|
55
55
|
if (credentials === undefined) {
|
|
56
56
|
throw new Error("'credentials' cannot be null");
|
|
@@ -65,10 +65,10 @@ export class AzureSphereManagementClient extends coreClient.ServiceClient {
|
|
|
65
65
|
}
|
|
66
66
|
const defaults: AzureSphereManagementClientOptionalParams = {
|
|
67
67
|
requestContentType: "application/json; charset=utf-8",
|
|
68
|
-
credential: credentials
|
|
68
|
+
credential: credentials,
|
|
69
69
|
};
|
|
70
70
|
|
|
71
|
-
const packageDetails = `azsdk-js-arm-sphere/1.0.0
|
|
71
|
+
const packageDetails = `azsdk-js-arm-sphere/1.0.0`;
|
|
72
72
|
const userAgentPrefix =
|
|
73
73
|
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
74
74
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
@@ -78,20 +78,21 @@ export class AzureSphereManagementClient extends coreClient.ServiceClient {
|
|
|
78
78
|
...defaults,
|
|
79
79
|
...options,
|
|
80
80
|
userAgentOptions: {
|
|
81
|
-
userAgentPrefix
|
|
81
|
+
userAgentPrefix,
|
|
82
82
|
},
|
|
83
83
|
endpoint:
|
|
84
|
-
options.endpoint ?? options.baseUri ?? "https://management.azure.com"
|
|
84
|
+
options.endpoint ?? options.baseUri ?? "https://management.azure.com",
|
|
85
85
|
};
|
|
86
86
|
super(optionsWithDefaults);
|
|
87
87
|
|
|
88
88
|
let bearerTokenAuthenticationPolicyFound: boolean = false;
|
|
89
89
|
if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
|
|
90
|
-
const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =
|
|
90
|
+
const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =
|
|
91
|
+
options.pipeline.getOrderedPolicies();
|
|
91
92
|
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(
|
|
92
93
|
(pipelinePolicy) =>
|
|
93
94
|
pipelinePolicy.name ===
|
|
94
|
-
coreRestPipeline.bearerTokenAuthenticationPolicyName
|
|
95
|
+
coreRestPipeline.bearerTokenAuthenticationPolicyName,
|
|
95
96
|
);
|
|
96
97
|
}
|
|
97
98
|
if (
|
|
@@ -101,7 +102,7 @@ export class AzureSphereManagementClient extends coreClient.ServiceClient {
|
|
|
101
102
|
!bearerTokenAuthenticationPolicyFound
|
|
102
103
|
) {
|
|
103
104
|
this.pipeline.removePolicy({
|
|
104
|
-
name: coreRestPipeline.bearerTokenAuthenticationPolicyName
|
|
105
|
+
name: coreRestPipeline.bearerTokenAuthenticationPolicyName,
|
|
105
106
|
});
|
|
106
107
|
this.pipeline.addPolicy(
|
|
107
108
|
coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
@@ -111,9 +112,9 @@ export class AzureSphereManagementClient extends coreClient.ServiceClient {
|
|
|
111
112
|
`${optionsWithDefaults.endpoint}/.default`,
|
|
112
113
|
challengeCallbacks: {
|
|
113
114
|
authorizeRequestOnChallenge:
|
|
114
|
-
coreClient.authorizeRequestOnClaimChallenge
|
|
115
|
-
}
|
|
116
|
-
})
|
|
115
|
+
coreClient.authorizeRequestOnClaimChallenge,
|
|
116
|
+
},
|
|
117
|
+
}),
|
|
117
118
|
);
|
|
118
119
|
}
|
|
119
120
|
// Parameter assignments
|
|
@@ -121,7 +122,7 @@ export class AzureSphereManagementClient extends coreClient.ServiceClient {
|
|
|
121
122
|
|
|
122
123
|
// Assigning values to Constant parameters
|
|
123
124
|
this.$host = options.$host || "https://management.azure.com";
|
|
124
|
-
this.apiVersion = options.apiVersion || "
|
|
125
|
+
this.apiVersion = options.apiVersion || "2024-04-01";
|
|
125
126
|
this.operations = new OperationsImpl(this);
|
|
126
127
|
this.catalogs = new CatalogsImpl(this);
|
|
127
128
|
this.certificates = new CertificatesImpl(this);
|
|
@@ -142,7 +143,7 @@ export class AzureSphereManagementClient extends coreClient.ServiceClient {
|
|
|
142
143
|
name: "CustomApiVersionPolicy",
|
|
143
144
|
async sendRequest(
|
|
144
145
|
request: PipelineRequest,
|
|
145
|
-
next: SendRequest
|
|
146
|
+
next: SendRequest,
|
|
146
147
|
): Promise<PipelineResponse> {
|
|
147
148
|
const param = request.url.split("?");
|
|
148
149
|
if (param.length > 1) {
|
|
@@ -156,7 +157,7 @@ export class AzureSphereManagementClient extends coreClient.ServiceClient {
|
|
|
156
157
|
request.url = param[0] + "?" + newParams.join("&");
|
|
157
158
|
}
|
|
158
159
|
return next(request);
|
|
159
|
-
}
|
|
160
|
+
},
|
|
160
161
|
};
|
|
161
162
|
this.pipeline.addPolicy(apiVersionPolicy);
|
|
162
163
|
}
|
package/src/lroImpl.ts
CHANGED
|
@@ -28,15 +28,15 @@ export function createLroSpec<T>(inputs: {
|
|
|
28
28
|
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
29
29
|
sendPollRequest: (
|
|
30
30
|
path: string,
|
|
31
|
-
options?: { abortSignal?: AbortSignalLike }
|
|
31
|
+
options?: { abortSignal?: AbortSignalLike },
|
|
32
32
|
) => {
|
|
33
33
|
const { requestBody, ...restSpec } = spec;
|
|
34
34
|
return sendOperationFn(args, {
|
|
35
35
|
...restSpec,
|
|
36
36
|
httpMethod: "GET",
|
|
37
37
|
path,
|
|
38
|
-
abortSignal: options?.abortSignal
|
|
38
|
+
abortSignal: options?.abortSignal,
|
|
39
39
|
});
|
|
40
|
-
}
|
|
40
|
+
},
|
|
41
41
|
};
|
|
42
42
|
}
|