Brad Bishop | 938b1d5 | 2016-11-01 12:47:24 -0500 | [diff] [blame] | 1 | description: > |
| 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. |
| 6 | methods: |
| 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 Williams | 9f6133c | 2016-12-09 09:29:38 -0600 | [diff] [blame] | 13 | type: path |
Brad Bishop | 938b1d5 | 2016-11-01 12:47:24 -0500 | [diff] [blame] | 14 | description: > |
| 15 | The object path for which the result should be fetched. |
Brad Bishop | a256064 | 2016-11-01 13:01:19 -0500 | [diff] [blame] | 16 | - name: interfaces |
Patrick Williams | 9f6133c | 2016-12-09 09:29:38 -0600 | [diff] [blame] | 17 | type: array[string] |
Brad Bishop | a256064 | 2016-11-01 13:01:19 -0500 | [diff] [blame] | 18 | description: > |
| 19 | An array of result set constraining interfaces. |
Brad Bishop | 938b1d5 | 2016-11-01 12:47:24 -0500 | [diff] [blame] | 20 | returns: |
| 21 | - name: services |
Patrick Williams | 9f6133c | 2016-12-09 09:29:38 -0600 | [diff] [blame] | 22 | type: dict[string,array[string]] |
Brad Bishop | 938b1d5 | 2016-11-01 12:47:24 -0500 | [diff] [blame] | 23 | description: > |
| 24 | A dictionary of service -> implemented interface(s). |
| 25 | - name: GetAncestors |
| 26 | description: > |
| 27 | Obtain a dictionary of ancestor -> services where ancestor is an |
| 28 | ancestor of path and services is of the type returned by the |
| 29 | GetObject method. |
| 30 | parameters: |
| 31 | - name: path |
Patrick Williams | 9f6133c | 2016-12-09 09:29:38 -0600 | [diff] [blame] | 32 | type: path |
Brad Bishop | 938b1d5 | 2016-11-01 12:47:24 -0500 | [diff] [blame] | 33 | description: > |
| 34 | The path for which the result should be fetched. |
Brad Bishop | a256064 | 2016-11-01 13:01:19 -0500 | [diff] [blame] | 35 | - name: interfaces |
Patrick Williams | 9f6133c | 2016-12-09 09:29:38 -0600 | [diff] [blame] | 36 | type: array[string] |
Brad Bishop | a256064 | 2016-11-01 13:01:19 -0500 | [diff] [blame] | 37 | description: > |
| 38 | An array of result set constraining interfaces. |
Brad Bishop | 938b1d5 | 2016-11-01 12:47:24 -0500 | [diff] [blame] | 39 | returns: |
| 40 | - name: ancestors |
Patrick Williams | 9f6133c | 2016-12-09 09:29:38 -0600 | [diff] [blame] | 41 | type: dict[path,dict[string,array[string]]] |
Brad Bishop | 938b1d5 | 2016-11-01 12:47:24 -0500 | [diff] [blame] | 42 | description: > |
| 43 | A dictionary of ancestor -> services. |
| 44 | - name: GetSubTree |
| 45 | description: > |
| 46 | Obtain a dictionary of path -> services where path is in |
| 47 | sutbtree and services is of the type returned by the |
| 48 | GetObject method. |
| 49 | parameters: |
| 50 | - name: subtree |
Patrick Williams | 9f6133c | 2016-12-09 09:29:38 -0600 | [diff] [blame] | 51 | type: path |
Brad Bishop | 938b1d5 | 2016-11-01 12:47:24 -0500 | [diff] [blame] | 52 | description: > |
| 53 | The subtree path for which the result should be fetched. |
| 54 | - name: depth |
Patrick Williams | 9f6133c | 2016-12-09 09:29:38 -0600 | [diff] [blame] | 55 | type: int32 |
Brad Bishop | 938b1d5 | 2016-11-01 12:47:24 -0500 | [diff] [blame] | 56 | description: > |
| 57 | The maximum subtree depth for which results should be fetched. |
| 58 | For unconstrained fetches use a depth of zero. |
Brad Bishop | a256064 | 2016-11-01 13:01:19 -0500 | [diff] [blame] | 59 | - name: interfaces |
Patrick Williams | 9f6133c | 2016-12-09 09:29:38 -0600 | [diff] [blame] | 60 | type: array[string] |
Brad Bishop | a256064 | 2016-11-01 13:01:19 -0500 | [diff] [blame] | 61 | description: > |
| 62 | An array of result set constraining interfaces. |
Brad Bishop | 938b1d5 | 2016-11-01 12:47:24 -0500 | [diff] [blame] | 63 | returns: |
| 64 | - name: objects |
Patrick Williams | 9f6133c | 2016-12-09 09:29:38 -0600 | [diff] [blame] | 65 | type: dict[path,dict[string,array[string]]] |
Brad Bishop | 938b1d5 | 2016-11-01 12:47:24 -0500 | [diff] [blame] | 66 | description: > |
| 67 | A dictionary of path -> services. |
| 68 | - name: GetSubTreePaths |
| 69 | description: > |
| 70 | Obtain an array of paths where array elements are in subtree. |
| 71 | parameters: |
| 72 | - name: subtree |
Patrick Williams | 9f6133c | 2016-12-09 09:29:38 -0600 | [diff] [blame] | 73 | type: path |
Brad Bishop | 938b1d5 | 2016-11-01 12:47:24 -0500 | [diff] [blame] | 74 | description: > |
| 75 | The subtree path for which the result should be fetched. |
| 76 | - name: depth |
Patrick Williams | 9f6133c | 2016-12-09 09:29:38 -0600 | [diff] [blame] | 77 | type: int32 |
Brad Bishop | 938b1d5 | 2016-11-01 12:47:24 -0500 | [diff] [blame] | 78 | description: > |
| 79 | The maximum subtree depth for which results should be fetched. |
| 80 | For unconstrained fetches use a depth of zero. |
Brad Bishop | a256064 | 2016-11-01 13:01:19 -0500 | [diff] [blame] | 81 | - name: interfaces |
Patrick Williams | 9f6133c | 2016-12-09 09:29:38 -0600 | [diff] [blame] | 82 | type: array[string] |
Brad Bishop | a256064 | 2016-11-01 13:01:19 -0500 | [diff] [blame] | 83 | description: > |
| 84 | An array of result set constraining interfaces. |
Brad Bishop | 938b1d5 | 2016-11-01 12:47:24 -0500 | [diff] [blame] | 85 | returns: |
| 86 | - name: paths |
Patrick Williams | 9f6133c | 2016-12-09 09:29:38 -0600 | [diff] [blame] | 87 | type: array[path] |
Brad Bishop | 938b1d5 | 2016-11-01 12:47:24 -0500 | [diff] [blame] | 88 | description: > |
| 89 | An array of paths. |