Skip to content

Commit c2820d1

Browse files
dpokludalmazuel
andauthored
Device update public preview refresh (#17205)
* Batch2: approved PR 4891 Azure/azure-rest-api-specs-pr#4891 * Batch3: minor updates (PR 5556) Azure/azure-rest-api-specs-pr#5556 Co-authored-by: Laurent Mazuel <laurent.mazuel@gmail.com>
1 parent 949388b commit c2820d1

File tree

44 files changed

+4988
-4
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+4988
-4
lines changed

specification/deviceupdate/data-plane/Microsoft.DeviceUpdate/preview/2021-06-01-preview/deviceupdate.json

Lines changed: 3742 additions & 0 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"parameters": {
3+
"endpoint": "contoso.api.adu.microsoft.com",
4+
"instanceId": "blue",
5+
"operationId": "SampleOperationId",
6+
"api-version": "2021-06-01-preview",
7+
"logCollectionRequest": {
8+
"deviceList": [
9+
{
10+
"deviceId": "DeviceA"
11+
},
12+
{
13+
"deviceId": "DeviceB",
14+
"moduleId": "ModuleB"
15+
}
16+
],
17+
"description": "Example diagnostics operation"
18+
}
19+
},
20+
"responses": {
21+
"201": {
22+
"body": {
23+
"operationId": "SampleOperationId",
24+
"deviceList": [
25+
{
26+
"deviceId": "DeviceA"
27+
},
28+
{
29+
"deviceId": "DeviceB",
30+
"moduleId": "ModuleB"
31+
}
32+
],
33+
"description": "Example diagnostics operation",
34+
"createdDateTime": "2021-09-30T02:23:41.59Z",
35+
"lastActionDateTime": "2021-09-30T02:23:41.59Z",
36+
"status": "NotStarted"
37+
}
38+
}
39+
}
40+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"parameters": {
3+
"endpoint": "contoso.api.adu.microsoft.com",
4+
"instanceId": "blue",
5+
"groupId": "TestGroup",
6+
"deploymentId": "deploymentId",
7+
"api-version": "2021-06-01-preview",
8+
"deployment": {
9+
"deploymentId": "deploymentId",
10+
"groupId": "TestGroup",
11+
"startDateTime": "2020-04-22T12:12:12.0000000+00:00",
12+
"updateId": {
13+
"provider": "provider",
14+
"name": "name",
15+
"version": "1.2.3.4"
16+
}
17+
}
18+
},
19+
"responses": {
20+
"200": {
21+
"body": {
22+
"deploymentId": "deploymentId",
23+
"groupId": "TestGroup",
24+
"startDateTime": "2020-04-22T12:12:12.0000000+00:00",
25+
"updateId": {
26+
"provider": "provider",
27+
"name": "name",
28+
"version": "1.2.3.4"
29+
}
30+
}
31+
}
32+
}
33+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"parameters": {
3+
"endpoint": "contoso.api.adu.microsoft.com",
4+
"instanceId": "blue",
5+
"groupId": "MyGroup",
6+
"api-version": "2021-06-01-preview",
7+
"group": {
8+
"groupId": "MyGroup",
9+
"groupType": "DeviceClassIdAndIoTHubTag",
10+
"tags": [
11+
"MyGroup"
12+
],
13+
"createdDateTime": "2020-07-01T12:13:14.0000000Z",
14+
"deviceClassId": "9fd33c505d62e4c585b529ae0d643478d8da42c9"
15+
}
16+
},
17+
"responses": {
18+
"200": {
19+
"body": {
20+
"groupId": "MyGroup",
21+
"groupType": "DeviceClassIdAndIoTHubTag",
22+
"tags": [
23+
"MyGroup"
24+
],
25+
"createdDateTime": "2020-07-01T12:13:14.0000000Z",
26+
"deviceClassId": "9fd33c505d62e4c585b529ae0d643478d8da42c9"
27+
}
28+
}
29+
}
30+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"parameters": {
3+
"endpoint": "contoso.api.adu.microsoft.com",
4+
"instanceId": "blue",
5+
"groupId": "TestGroup",
6+
"deploymentId": "deploymentId",
7+
"api-version": "2021-06-01-preview"
8+
},
9+
"responses": {
10+
"204": {}
11+
}
12+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"parameters": {
3+
"endpoint": "contoso.api.adu.microsoft.com",
4+
"instanceId": "blue",
5+
"groupId": "group1",
6+
"api-version": "2021-06-01-preview"
7+
},
8+
"responses": {
9+
"204": {}
10+
}
11+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"parameters": {
3+
"endpoint": "contoso.api.adu.microsoft.com",
4+
"instanceId": "blue",
5+
"groupId": "TestGroup",
6+
"deploymentId": "deploymentId",
7+
"api-version": "2021-06-01-preview"
8+
},
9+
"responses": {
10+
"200": {
11+
"body": {
12+
"deploymentId": "deploymentId",
13+
"startDateTime": "2020-04-22T12:12:12.0000000+00:00",
14+
"groupId": "TestGroup",
15+
"updateId": {
16+
"provider": "provider",
17+
"name": "name",
18+
"version": "1.2.3.4"
19+
},
20+
"isCanceled": false,
21+
"isRetried": false
22+
}
23+
}
24+
}
25+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"parameters": {
3+
"endpoint": "contoso.api.adu.microsoft.com",
4+
"instanceId": "blue",
5+
"groupId": "TestGroup",
6+
"deploymentId": "deploymentId",
7+
"api-version": "2021-06-01-preview"
8+
},
9+
"responses": {
10+
"200": {
11+
"body": {
12+
"deploymentState": "Active",
13+
"totalDevices": 1,
14+
"devicesInProgressCount": 0,
15+
"devicesCompletedFailedCount": 0,
16+
"devicesCompletedSucceededCount": 1,
17+
"devicesCanceledCount": 0
18+
}
19+
}
20+
}
21+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
{
2+
"parameters": {
3+
"endpoint": "contoso.api.adu.microsoft.com",
4+
"instanceId": "blue",
5+
"deviceId": "deviceId",
6+
"api-version": "2021-06-01-preview"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"deviceId": "device1",
12+
"deviceClassId": "deviceClass1",
13+
"manufacturer": "manufacturer1",
14+
"model": "model1",
15+
"lastAttemptedUpdateId": {
16+
"provider": "provider1",
17+
"name": "name1",
18+
"version": "2.0.0.0"
19+
},
20+
"deploymentStatus": "Failed",
21+
"installedUpdateId": {
22+
"provider": "provider1",
23+
"name": "name1",
24+
"version": "1.0.0.0"
25+
},
26+
"onLatestUpdate": false,
27+
"lastInstallResult": {
28+
"resultCode": 200,
29+
"extendedResultCode": 0,
30+
"resultDetails": "",
31+
"stepResults": [
32+
{
33+
"updateId": {
34+
"provider": "microsoft",
35+
"name": "peripheralcamera",
36+
"version": "1.0"
37+
},
38+
"resultCode": 200,
39+
"extendedResultCode": 0,
40+
"resultDetails": ""
41+
},
42+
{
43+
"updateId": {
44+
"provider": "microsoft",
45+
"name": "peripheralspeaker",
46+
"version": "1.0"
47+
},
48+
"resultCode": 200,
49+
"extendedResultCode": 0,
50+
"resultDetails": ""
51+
}
52+
]
53+
}
54+
}
55+
}
56+
}
57+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"parameters": {
3+
"endpoint": "contoso.api.adu.microsoft.com",
4+
"instanceId": "blue",
5+
"deviceClassId": "deviceClassId",
6+
"api-version": "2021-06-01-preview"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"deviceClassId": "deviceClassId",
12+
"compatProperties": {
13+
"manufacturer": "manufacturer1",
14+
"model": "model1"
15+
},
16+
"bestCompatibleUpdateId": {
17+
"provider": "provider",
18+
"name": "name",
19+
"version": "1.0.0.0"
20+
}
21+
}
22+
}
23+
}
24+
}

0 commit comments

Comments
 (0)