blob: f76d48d75e26f1c05776add2516ba55e467279c1 [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:
12 - name: path
Patrick Williams9f6133c2016-12-09 09:29:38 -060013 type: path
Brad Bishop938b1d52016-11-01 12:47:24 -050014 description: >
15 The object path for which the result should be fetched.
Brad Bishopa2560642016-11-01 13:01:19 -050016 - name: interfaces
Patrick Williams9f6133c2016-12-09 09:29:38 -060017 type: array[string]
Brad Bishopa2560642016-11-01 13:01:19 -050018 description: >
19 An array of result set constraining interfaces.
Brad Bishop938b1d52016-11-01 12:47:24 -050020 returns:
21 - name: services
Patrick Williams9f6133c2016-12-09 09:29:38 -060022 type: dict[string,array[string]]
Brad Bishop938b1d52016-11-01 12:47:24 -050023 description: >
24 A dictionary of service -> implemented interface(s).
Patrick Williamsd37091a2020-11-11 14:24:21 -060025 errors:
26 - 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:
33 - name: path
Patrick Williams9f6133c2016-12-09 09:29:38 -060034 type: path
Brad Bishop938b1d52016-11-01 12:47:24 -050035 description: >
36 The path for which the result should be fetched.
Brad Bishopa2560642016-11-01 13:01:19 -050037 - name: interfaces
Patrick Williams9f6133c2016-12-09 09:29:38 -060038 type: array[string]
Brad Bishopa2560642016-11-01 13:01:19 -050039 description: >
40 An array of result set constraining interfaces.
Brad Bishop938b1d52016-11-01 12:47:24 -050041 returns:
42 - name: ancestors
Patrick Williams9f6133c2016-12-09 09:29:38 -060043 type: dict[path,dict[string,array[string]]]
Brad Bishop938b1d52016-11-01 12:47:24 -050044 description: >
45 A dictionary of ancestor -> services.
Patrick Williamsd37091a2020-11-11 14:24:21 -060046 errors:
47 - 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:
54 - name: subtree
Patrick Williams9f6133c2016-12-09 09:29:38 -060055 type: path
Brad Bishop938b1d52016-11-01 12:47:24 -050056 description: >
57 The subtree path for which the result should be fetched.
58 - name: depth
Patrick Williams9f6133c2016-12-09 09:29:38 -060059 type: int32
Brad Bishop938b1d52016-11-01 12:47:24 -050060 description: >
61 The maximum subtree depth for which results should be fetched.
62 For unconstrained fetches use a depth of zero.
Brad Bishopa2560642016-11-01 13:01:19 -050063 - name: interfaces
Patrick Williams9f6133c2016-12-09 09:29:38 -060064 type: array[string]
Brad Bishopa2560642016-11-01 13:01:19 -050065 description: >
66 An array of result set constraining interfaces.
Brad Bishop938b1d52016-11-01 12:47:24 -050067 returns:
68 - name: objects
Patrick Williams9f6133c2016-12-09 09:29:38 -060069 type: dict[path,dict[string,array[string]]]
Brad Bishop938b1d52016-11-01 12:47:24 -050070 description: >
71 A dictionary of path -> services.
Patrick Williamsd37091a2020-11-11 14:24:21 -060072 errors:
73 - 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:
78 - name: subtree
Patrick Williams9f6133c2016-12-09 09:29:38 -060079 type: path
Brad Bishop938b1d52016-11-01 12:47:24 -050080 description: >
81 The subtree path for which the result should be fetched.
82 - name: depth
Patrick Williams9f6133c2016-12-09 09:29:38 -060083 type: int32
Brad Bishop938b1d52016-11-01 12:47:24 -050084 description: >
85 The maximum subtree depth for which results should be fetched.
86 For unconstrained fetches use a depth of zero.
Brad Bishopa2560642016-11-01 13:01:19 -050087 - name: interfaces
Patrick Williams9f6133c2016-12-09 09:29:38 -060088 type: array[string]
Brad Bishopa2560642016-11-01 13:01:19 -050089 description: >
90 An array of result set constraining interfaces.
Brad Bishop938b1d52016-11-01 12:47:24 -050091 returns:
92 - name: paths
Patrick Williams9f6133c2016-12-09 09:29:38 -060093 type: array[path]
Brad Bishop938b1d52016-11-01 12:47:24 -050094 description: >
95 An array of paths.
Patrick Williamsd37091a2020-11-11 14:24:21 -060096 errors:
97 - xyz.openbmc_project.Common.Error.ResourceNotFound