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: > |
Patrick Williams | a134741 | 2022-12-06 10:56:22 -0600 | [diff] [blame] | 9 | Obtain a dictionary of service -> implemented interface(s) for the |
| 10 | given path. |
Brad Bishop | 938b1d5 | 2016-11-01 12:47:24 -0500 | [diff] [blame] | 11 | parameters: |
Patrick Williams | 8da396c | 2022-03-14 14:21:02 -0500 | [diff] [blame] | 12 | - name: path |
Patrick Williams | b78a070 | 2022-10-24 12:32:56 -0500 | [diff] [blame] | 13 | type: object_path |
Patrick Williams | 8da396c | 2022-03-14 14:21:02 -0500 | [diff] [blame] | 14 | 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 Bishop | 938b1d5 | 2016-11-01 12:47:24 -0500 | [diff] [blame] | 20 | returns: |
Patrick Williams | 8da396c | 2022-03-14 14:21:02 -0500 | [diff] [blame] | 21 | - name: services |
| 22 | type: dict[string,array[string]] |
| 23 | description: > |
| 24 | A dictionary of service -> implemented interface(s). |
Patrick Williams | d37091a | 2020-11-11 14:24:21 -0600 | [diff] [blame] | 25 | errors: |
Patrick Williams | 8da396c | 2022-03-14 14:21:02 -0500 | [diff] [blame] | 26 | - xyz.openbmc_project.Common.Error.ResourceNotFound |
Brad Bishop | 938b1d5 | 2016-11-01 12:47:24 -0500 | [diff] [blame] | 27 | - name: GetAncestors |
| 28 | description: > |
| 29 | Obtain a dictionary of ancestor -> services where ancestor is an |
Patrick Williams | a134741 | 2022-12-06 10:56:22 -0600 | [diff] [blame] | 30 | ancestor of path and services is of the type returned by the GetObject |
| 31 | method. |
Brad Bishop | 938b1d5 | 2016-11-01 12:47:24 -0500 | [diff] [blame] | 32 | parameters: |
Patrick Williams | 8da396c | 2022-03-14 14:21:02 -0500 | [diff] [blame] | 33 | - name: path |
Patrick Williams | b78a070 | 2022-10-24 12:32:56 -0500 | [diff] [blame] | 34 | type: object_path |
Patrick Williams | 8da396c | 2022-03-14 14:21:02 -0500 | [diff] [blame] | 35 | 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 Bishop | 938b1d5 | 2016-11-01 12:47:24 -0500 | [diff] [blame] | 41 | returns: |
Patrick Williams | 8da396c | 2022-03-14 14:21:02 -0500 | [diff] [blame] | 42 | - name: ancestors |
Patrick Williams | b78a070 | 2022-10-24 12:32:56 -0500 | [diff] [blame] | 43 | type: dict[object_path,dict[string,array[string]]] |
Patrick Williams | 8da396c | 2022-03-14 14:21:02 -0500 | [diff] [blame] | 44 | description: > |
| 45 | A dictionary of ancestor -> services. |
Patrick Williams | d37091a | 2020-11-11 14:24:21 -0600 | [diff] [blame] | 46 | errors: |
Patrick Williams | 8da396c | 2022-03-14 14:21:02 -0500 | [diff] [blame] | 47 | - xyz.openbmc_project.Common.Error.ResourceNotFound |
Brad Bishop | 938b1d5 | 2016-11-01 12:47:24 -0500 | [diff] [blame] | 48 | - name: GetSubTree |
| 49 | description: > |
Patrick Williams | a134741 | 2022-12-06 10:56:22 -0600 | [diff] [blame] | 50 | Obtain a dictionary of path -> services where path is in sutbtree and |
| 51 | services is of the type returned by the GetObject method. |
Brad Bishop | 938b1d5 | 2016-11-01 12:47:24 -0500 | [diff] [blame] | 52 | parameters: |
Patrick Williams | 8da396c | 2022-03-14 14:21:02 -0500 | [diff] [blame] | 53 | - name: subtree |
Patrick Williams | b78a070 | 2022-10-24 12:32:56 -0500 | [diff] [blame] | 54 | type: object_path |
Patrick Williams | 8da396c | 2022-03-14 14:21:02 -0500 | [diff] [blame] | 55 | description: > |
| 56 | The subtree path for which the result should be fetched. |
| 57 | - name: depth |
| 58 | type: int32 |
| 59 | description: > |
| 60 | The maximum subtree depth for which results should be fetched. |
| 61 | For unconstrained fetches use a depth of zero. |
| 62 | - name: interfaces |
| 63 | type: array[string] |
| 64 | description: > |
| 65 | An array of result set constraining interfaces. |
Brad Bishop | 938b1d5 | 2016-11-01 12:47:24 -0500 | [diff] [blame] | 66 | returns: |
Patrick Williams | 8da396c | 2022-03-14 14:21:02 -0500 | [diff] [blame] | 67 | - name: objects |
Patrick Williams | b78a070 | 2022-10-24 12:32:56 -0500 | [diff] [blame] | 68 | type: dict[object_path,dict[string,array[string]]] |
Patrick Williams | 8da396c | 2022-03-14 14:21:02 -0500 | [diff] [blame] | 69 | description: > |
| 70 | A dictionary of path -> services. |
Patrick Williams | d37091a | 2020-11-11 14:24:21 -0600 | [diff] [blame] | 71 | errors: |
Patrick Williams | 8da396c | 2022-03-14 14:21:02 -0500 | [diff] [blame] | 72 | - xyz.openbmc_project.Common.Error.ResourceNotFound |
Brad Bishop | 938b1d5 | 2016-11-01 12:47:24 -0500 | [diff] [blame] | 73 | - name: GetSubTreePaths |
| 74 | description: > |
| 75 | Obtain an array of paths where array elements are in subtree. |
| 76 | parameters: |
Patrick Williams | 8da396c | 2022-03-14 14:21:02 -0500 | [diff] [blame] | 77 | - name: subtree |
Patrick Williams | b78a070 | 2022-10-24 12:32:56 -0500 | [diff] [blame] | 78 | type: object_path |
Patrick Williams | 8da396c | 2022-03-14 14:21:02 -0500 | [diff] [blame] | 79 | description: > |
| 80 | The subtree path for which the result should be fetched. |
| 81 | - name: depth |
| 82 | type: int32 |
| 83 | description: > |
| 84 | The maximum subtree depth for which results should be fetched. |
| 85 | For unconstrained fetches use a depth of zero. |
| 86 | - name: interfaces |
| 87 | type: array[string] |
| 88 | description: > |
| 89 | An array of result set constraining interfaces. |
Brad Bishop | 938b1d5 | 2016-11-01 12:47:24 -0500 | [diff] [blame] | 90 | returns: |
Patrick Williams | 8da396c | 2022-03-14 14:21:02 -0500 | [diff] [blame] | 91 | - name: paths |
Patrick Williams | b78a070 | 2022-10-24 12:32:56 -0500 | [diff] [blame] | 92 | type: array[object_path] |
Patrick Williams | 8da396c | 2022-03-14 14:21:02 -0500 | [diff] [blame] | 93 | description: > |
| 94 | An array of paths. |
Patrick Williams | d37091a | 2020-11-11 14:24:21 -0600 | [diff] [blame] | 95 | errors: |
Patrick Williams | 8da396c | 2022-03-14 14:21:02 -0500 | [diff] [blame] | 96 | - xyz.openbmc_project.Common.Error.ResourceNotFound |
Willy Tu | 8e56f4c | 2022-10-11 20:52:59 +0000 | [diff] [blame] | 97 | - name: GetAssociatedSubTree |
| 98 | description: > |
Patrick Williams | a134741 | 2022-12-06 10:56:22 -0600 | [diff] [blame] | 99 | Same as GetSubTree, but only return the dbus paths that are an |
| 100 | association endpoint on associatedPath |
Willy Tu | 8e56f4c | 2022-10-11 20:52:59 +0000 | [diff] [blame] | 101 | parameters: |
| 102 | - name: associatedPath |
Patrick Williams | b78a070 | 2022-10-24 12:32:56 -0500 | [diff] [blame] | 103 | type: object_path |
Willy Tu | 8e56f4c | 2022-10-11 20:52:59 +0000 | [diff] [blame] | 104 | description: > |
| 105 | The path where the associated endpoint is fetched from. |
| 106 | - name: subtree |
Patrick Williams | b78a070 | 2022-10-24 12:32:56 -0500 | [diff] [blame] | 107 | type: object_path |
Willy Tu | 8e56f4c | 2022-10-11 20:52:59 +0000 | [diff] [blame] | 108 | description: > |
| 109 | The subtree path for which the result should be fetched. |
| 110 | - name: depth |
| 111 | type: int32 |
| 112 | description: > |
| 113 | The maximum subtree depth for which results should be fetched. |
| 114 | For unconstrained fetches use a depth of zero. |
| 115 | - name: interfaces |
| 116 | type: array[string] |
| 117 | description: > |
| 118 | An array of result set constraining interfaces. |
| 119 | returns: |
| 120 | - name: objects |
Patrick Williams | b78a070 | 2022-10-24 12:32:56 -0500 | [diff] [blame] | 121 | type: dict[object_path,dict[string,array[string]]] |
Willy Tu | 8e56f4c | 2022-10-11 20:52:59 +0000 | [diff] [blame] | 122 | description: > |
| 123 | A dictionary of path -> services. |
| 124 | errors: |
| 125 | - xyz.openbmc_project.Common.Error.ResourceNotFound |
| 126 | - name: GetAssociatedSubTreePaths |
| 127 | description: > |
Patrick Williams | a134741 | 2022-12-06 10:56:22 -0600 | [diff] [blame] | 128 | Same as GetSubTreePaths, but only return the dbus paths that are an |
| 129 | association endpoint on associatedPath |
Willy Tu | 8e56f4c | 2022-10-11 20:52:59 +0000 | [diff] [blame] | 130 | parameters: |
| 131 | - name: associatedPath |
Patrick Williams | b78a070 | 2022-10-24 12:32:56 -0500 | [diff] [blame] | 132 | type: object_path |
Willy Tu | 8e56f4c | 2022-10-11 20:52:59 +0000 | [diff] [blame] | 133 | description: > |
| 134 | The path where the associated endpoint is fetched from. |
| 135 | - name: subtree |
Patrick Williams | b78a070 | 2022-10-24 12:32:56 -0500 | [diff] [blame] | 136 | type: object_path |
Willy Tu | 8e56f4c | 2022-10-11 20:52:59 +0000 | [diff] [blame] | 137 | description: > |
| 138 | The subtree path for which the result should be fetched. |
| 139 | - name: depth |
| 140 | type: int32 |
| 141 | description: > |
| 142 | The maximum subtree depth for which results should be fetched. |
| 143 | For unconstrained fetches use a depth of zero. |
| 144 | - name: interfaces |
| 145 | type: array[string] |
| 146 | description: > |
| 147 | An array of result set constraining interfaces. |
| 148 | returns: |
| 149 | - name: paths |
Patrick Williams | b78a070 | 2022-10-24 12:32:56 -0500 | [diff] [blame] | 150 | type: array[object_path] |
Willy Tu | 8e56f4c | 2022-10-11 20:52:59 +0000 | [diff] [blame] | 151 | description: > |
| 152 | An array of paths. |
| 153 | errors: |
| 154 | - xyz.openbmc_project.Common.Error.ResourceNotFound |