1description: >
2    Power button control service
3methods:
4    - name: simPress
5      description: >
6        Emulate power button press.
7      errors:
8       - xyz.openbmc_project.Chassis.Common.Error.UnsupportedCommand
9       - xyz.openbmc_project.Chassis.Common.Error.IOError
10
11    - name: simLongPress
12      description: >
13        Emulate power button long press.
14      errors:
15       - xyz.openbmc_project.Chassis.Common.Error.UnsupportedCommand
16       - xyz.openbmc_project.Chassis.Common.Error.IOError
17
18properties:
19    - name: Enabled
20      type: boolean
21      default: true
22      description: >
23        Enable/disable power button.
24        false means power button is disabled
25        true means power button is enabled
26      errors:
27       - xyz.openbmc_project.Chassis.Common.Error.UnsupportedCommand
28       - xyz.openbmc_project.Chassis.Common.Error.IOError
29
30signals:
31    - name: Released
32      description: >
33        Power button released signal
34    - name: Pressed
35      description: >
36        Power button pressed signal
37    - name: PressedLong
38      description: >
39        Power button long pressed signal
40