blob: 45faf7545a6d03426ce2a85df875d1662db700fb [file] [log] [blame]
Brad Bishop938b1d52016-11-01 12:47:24 -05001description: >
2 Implement to provide DBus service lookup features.
3
4 Any OpenBMC implementation must provide exactly one implementation of
5 xyz.openbmc_project.ObjectMapper on /xyz/openbmc_project/ObjectMapper.
6methods:
7 - name: GetObject
8 description: >
9 Obtain a dictionary of service -> implemented interface(s)
10 for the given path.
11 parameters:
Patrick Williams8da396c2022-03-14 14:21:02 -050012 - name: path
Patrick Williamsb78a0702022-10-24 12:32:56 -050013 type: object_path
Patrick Williams8da396c2022-03-14 14:21:02 -050014 description: >
15 The object path for which the result should be fetched.
16 - name: interfaces
17 type: array[string]
18 description: >
19 An array of result set constraining interfaces.
Brad Bishop938b1d52016-11-01 12:47:24 -050020 returns:
Patrick Williams8da396c2022-03-14 14:21:02 -050021 - name: services
22 type: dict[string,array[string]]
23 description: >
24 A dictionary of service -> implemented interface(s).
Patrick Williamsd37091a2020-11-11 14:24:21 -060025 errors:
Patrick Williams8da396c2022-03-14 14:21:02 -050026 - xyz.openbmc_project.Common.Error.ResourceNotFound
Brad Bishop938b1d52016-11-01 12:47:24 -050027 - name: GetAncestors
28 description: >
29 Obtain a dictionary of ancestor -> services where ancestor is an
30 ancestor of path and services is of the type returned by the
31 GetObject method.
32 parameters:
Patrick Williams8da396c2022-03-14 14:21:02 -050033 - name: path
Patrick Williamsb78a0702022-10-24 12:32:56 -050034 type: object_path
Patrick Williams8da396c2022-03-14 14:21:02 -050035 description: >
36 The path for which the result should be fetched.
37 - name: interfaces
38 type: array[string]
39 description: >
40 An array of result set constraining interfaces.
Brad Bishop938b1d52016-11-01 12:47:24 -050041 returns:
Patrick Williams8da396c2022-03-14 14:21:02 -050042 - name: ancestors
Patrick Williamsb78a0702022-10-24 12:32:56 -050043 type: dict[object_path,dict[string,array[string]]]
Patrick Williams8da396c2022-03-14 14:21:02 -050044 description: >
45 A dictionary of ancestor -> services.
Patrick Williamsd37091a2020-11-11 14:24:21 -060046 errors:
Patrick Williams8da396c2022-03-14 14:21:02 -050047 - xyz.openbmc_project.Common.Error.ResourceNotFound
Brad Bishop938b1d52016-11-01 12:47:24 -050048 - name: GetSubTree
49 description: >
50 Obtain a dictionary of path -> services where path is in
51 sutbtree and services is of the type returned by the
52 GetObject method.
53 parameters:
Patrick Williams8da396c2022-03-14 14:21:02 -050054 - name: subtree
Patrick Williamsb78a0702022-10-24 12:32:56 -050055 type: object_path
Patrick Williams8da396c2022-03-14 14:21:02 -050056 description: >
57 The subtree path for which the result should be fetched.
58 - name: depth
59 type: int32
60 description: >
61 The maximum subtree depth for which results should be fetched.
62 For unconstrained fetches use a depth of zero.
63 - name: interfaces
64 type: array[string]
65 description: >
66 An array of result set constraining interfaces.
Brad Bishop938b1d52016-11-01 12:47:24 -050067 returns:
Patrick Williams8da396c2022-03-14 14:21:02 -050068 - name: objects
Patrick Williamsb78a0702022-10-24 12:32:56 -050069 type: dict[object_path,dict[string,array[string]]]
Patrick Williams8da396c2022-03-14 14:21:02 -050070 description: >
71 A dictionary of path -> services.
Patrick Williamsd37091a2020-11-11 14:24:21 -060072 errors:
Patrick Williams8da396c2022-03-14 14:21:02 -050073 - xyz.openbmc_project.Common.Error.ResourceNotFound
Brad Bishop938b1d52016-11-01 12:47:24 -050074 - name: GetSubTreePaths
75 description: >
76 Obtain an array of paths where array elements are in subtree.
77 parameters:
Patrick Williams8da396c2022-03-14 14:21:02 -050078 - name: subtree
Patrick Williamsb78a0702022-10-24 12:32:56 -050079 type: object_path
Patrick Williams8da396c2022-03-14 14:21:02 -050080 description: >
81 The subtree path for which the result should be fetched.
82 - name: depth
83 type: int32
84 description: >
85 The maximum subtree depth for which results should be fetched.
86 For unconstrained fetches use a depth of zero.
87 - name: interfaces
88 type: array[string]
89 description: >
90 An array of result set constraining interfaces.
Brad Bishop938b1d52016-11-01 12:47:24 -050091 returns:
Patrick Williams8da396c2022-03-14 14:21:02 -050092 - name: paths
Patrick Williamsb78a0702022-10-24 12:32:56 -050093 type: array[object_path]
Patrick Williams8da396c2022-03-14 14:21:02 -050094 description: >
95 An array of paths.
Patrick Williamsd37091a2020-11-11 14:24:21 -060096 errors:
Patrick Williams8da396c2022-03-14 14:21:02 -050097 - xyz.openbmc_project.Common.Error.ResourceNotFound
Willy Tu8e56f4c2022-10-11 20:52:59 +000098 - name: GetAssociatedSubTree
99 description: >
100 Same as GetSubTree, but only return the dbus paths that are
101 an association endpoint on associatedPath
102 parameters:
103 - name: associatedPath
Patrick Williamsb78a0702022-10-24 12:32:56 -0500104 type: object_path
Willy Tu8e56f4c2022-10-11 20:52:59 +0000105 description: >
106 The path where the associated endpoint is fetched from.
107 - name: subtree
Patrick Williamsb78a0702022-10-24 12:32:56 -0500108 type: object_path
Willy Tu8e56f4c2022-10-11 20:52:59 +0000109 description: >
110 The subtree path for which the result should be fetched.
111 - name: depth
112 type: int32
113 description: >
114 The maximum subtree depth for which results should be fetched.
115 For unconstrained fetches use a depth of zero.
116 - name: interfaces
117 type: array[string]
118 description: >
119 An array of result set constraining interfaces.
120 returns:
121 - name: objects
Patrick Williamsb78a0702022-10-24 12:32:56 -0500122 type: dict[object_path,dict[string,array[string]]]
Willy Tu8e56f4c2022-10-11 20:52:59 +0000123 description: >
124 A dictionary of path -> services.
125 errors:
126 - xyz.openbmc_project.Common.Error.ResourceNotFound
127 - name: GetAssociatedSubTreePaths
128 description: >
129 Same as GetSubTreePaths, but only return the dbus paths that are
130 an association endpoint on associatedPath
131 parameters:
132 - name: associatedPath
Patrick Williamsb78a0702022-10-24 12:32:56 -0500133 type: object_path
Willy Tu8e56f4c2022-10-11 20:52:59 +0000134 description: >
135 The path where the associated endpoint is fetched from.
136 - name: subtree
Patrick Williamsb78a0702022-10-24 12:32:56 -0500137 type: object_path
Willy Tu8e56f4c2022-10-11 20:52:59 +0000138 description: >
139 The subtree path for which the result should be fetched.
140 - name: depth
141 type: int32
142 description: >
143 The maximum subtree depth for which results should be fetched.
144 For unconstrained fetches use a depth of zero.
145 - name: interfaces
146 type: array[string]
147 description: >
148 An array of result set constraining interfaces.
149 returns:
150 - name: paths
Patrick Williamsb78a0702022-10-24 12:32:56 -0500151 type: array[object_path]
Willy Tu8e56f4c2022-10-11 20:52:59 +0000152 description: >
153 An array of paths.
154 errors:
155 - xyz.openbmc_project.Common.Error.ResourceNotFound
156