Skip to content

Commit d7c9be2

Browse files
authored
Adding 200 response to LRO operation (#20572)
1 parent 2e8d9f8 commit d7c9be2

File tree

2 files changed

+49
-0
lines changed

2 files changed

+49
-0
lines changed

specification/deviceupdate/data-plane/Microsoft.DeviceUpdate/stable/2022-10-01/deviceupdate.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,12 @@
136136
}
137137
}
138138
},
139+
"200": {
140+
"description": "The requested update version.",
141+
"schema": {
142+
"$ref": "#/definitions/Update"
143+
}
144+
},
139145
"default": {
140146
"description": "Default response.",
141147
"schema": {

specification/deviceupdate/data-plane/Microsoft.DeviceUpdate/stable/2022-10-01/examples/DeviceUpdate_ImportUpdate.json

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,49 @@
3434
"headers": {
3535
"Operation-Location": "/deviceUpdate/blue/updates/operations/e4491c54-916f-443d-9094-bcca546ace2f?api-version=2022-10-01"
3636
}
37+
},
38+
"200": {
39+
"body": {
40+
"updateId": {
41+
"provider": "microsoft",
42+
"name": "adu",
43+
"version": "1.0.0.0"
44+
},
45+
"friendlyName": "Lab Sensor Update v1",
46+
"description": "Fix for critical vulnerability",
47+
"compatibility": [
48+
{
49+
"deviceManufacturer": "Microsoft",
50+
"deviceModel": "Toaster"
51+
}
52+
],
53+
"instructions": {
54+
"steps": [
55+
{
56+
"description": "pre-install script",
57+
"handler": "microsoft/script:1",
58+
"handlerProperties": {
59+
"arguments": "--pre-install"
60+
},
61+
"files": [
62+
"configure.sh"
63+
]
64+
},
65+
{
66+
"type": "reference",
67+
"updateId": {
68+
"provider": "microsoft",
69+
"name": "sensor",
70+
"version": "1.0"
71+
}
72+
}
73+
]
74+
},
75+
"manifestVersion": "5.0",
76+
"importedDateTime": "2020-04-22T21:01:43.8408797+00:00",
77+
"createdDateTime": "2019-09-12T00:00:00.0000000+00:00",
78+
"etag": "\"3fed3378-0c67-47d2-b796-296962c66cbb\""
79+
}
3780
}
3881
}
3982
}

0 commit comments

Comments
 (0)