summaryrefslogtreecommitdiffstats
path: root/xyz/openbmc_project/ObjectMapper.interface.yaml
blob: 72e89a1f843356a4c577fd314b5f9ba4ef812c05 (plain)
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
description: >
    Implement to provide DBus service lookup features.

    Any OpenBMC implementation must provide exactly one implementation of
    xyz.openbmc_project.ObjectMapper on /xyz/openbmc_project/ObjectMapper.
methods:
    - name: GetObject
      description: >
          Obtain a dictionary of service -> implemented interface(s)
          for the given path.
      parameters:
        - name: path
          type: path
          description: >
            The object path for which the result should be fetched.
        - name: interfaces
          type: array[string]
          description: >
            An array of result set constraining interfaces.
      returns:
        - name: services
          type: dict[string,array[string]]
          description: >
            A dictionary of service -> implemented interface(s).
    - name: GetAncestors
      description: >
          Obtain a dictionary of ancestor -> services where ancestor is an
          ancestor of path and services is of the type returned by the
          GetObject method.
      parameters:
        - name: path
          type: path
          description: >
            The path for which the result should be fetched.
        - name: interfaces
          type: array[string]
          description: >
            An array of result set constraining interfaces.
      returns:
        - name: ancestors
          type: dict[path,dict[string,array[string]]]
          description: >
            A dictionary of ancestor -> services.
    - name: GetSubTree
      description: >
          Obtain a dictionary of path -> services where path is in
          sutbtree and services is of the type returned by the
          GetObject method.
      parameters:
        - name: subtree
          type: path
          description: >
            The subtree path for which the result should be fetched.
        - name: depth
          type: int32
          description: >
            The maximum subtree depth for which results should be fetched.
            For unconstrained fetches use a depth of zero.
        - name: interfaces
          type: array[string]
          description: >
            An array of result set constraining interfaces.
      returns:
        - name: objects
          type: dict[path,dict[string,array[string]]]
          description: >
            A dictionary of path -> services.
    - name: GetSubTreePaths
      description: >
          Obtain an array of paths where array elements are in subtree.
      parameters:
        - name: subtree
          type: path
          description: >
            The subtree path for which the result should be fetched.
        - name: depth
          type: int32
          description: >
            The maximum subtree depth for which results should be fetched.
            For unconstrained fetches use a depth of zero.
        - name: interfaces
          type: array[string]
          description: >
            An array of result set constraining interfaces.
      returns:
        - name: paths
          type: array[path]
          description: >
            An array of paths.

# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
OpenPOWER on IntegriCloud