-
Notifications
You must be signed in to change notification settings - Fork 45
/
Copy pathDeviceShadowOverSomeipInterface.fidl
62 lines (49 loc) · 1.68 KB
/
DeviceShadowOverSomeipInterface.fidl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package commonapi
interface DeviceShadowOverSomeipInterface {
version { major 1 minor 0 }
method getShadow {
in {
String shadowName // empty ("") for classic shadow; non-empty for named shadow
}
out {
String errorMessage // only valid in case of error
String shadowDocument // only valid in case of no error
}
error ErrorCode // please check it to determine which output (errorMessage, shadowDocument) is valid
}
method updateShadow {
in {
String shadowName // empty ("") for classic shadow; non-empty for named shadow
String updateDocument
}
out {
String errorMessage // only valid in case of error
String shadowDocument // only valid in case of no error
}
error ErrorCode // please check it to determine which output (errorMessage, shadowDocument) is valid
}
method deleteShadow {
in {
String shadowName // empty ("") for classic shadow; non-empty for named shadow
}
out {
String errorMessage // only valid in case of error
}
error ErrorCode // please check it to determine which output (errorMessage) is valid
}
broadcast shadowChanged {
out {
String shadowName // empty ("") for classic shadow; non-empty for named shadow
String shadowDocument
}
}
enumeration ErrorCode {
NO_ERROR
INVALID_REQUEST
SHADOW_SERVICE_UNREACHABLE
REJECTED
UNKNOWN
}
}