hw/misc/led: Add yellow LED
[qemu/ar7.git] / qapi / authz.json
blob42afe752d1c18d8d2f46aefd0e6790e3fec41265
1 # -*- Mode: Python -*-
2 # vim: filetype=python
4 ##
5 # = User authorization
6 ##
8 ##
9 # @QAuthZListPolicy:
11 # The authorization policy result
13 # @deny: deny access
14 # @allow: allow access
16 # Since: 4.0
18 { 'enum': 'QAuthZListPolicy',
19   'prefix': 'QAUTHZ_LIST_POLICY',
20   'data': ['deny', 'allow']}
23 # @QAuthZListFormat:
25 # The authorization policy match format
27 # @exact: an exact string match
28 # @glob: string with ? and * shell wildcard support
30 # Since: 4.0
32 { 'enum': 'QAuthZListFormat',
33   'prefix': 'QAUTHZ_LIST_FORMAT',
34   'data': ['exact', 'glob']}
37 # @QAuthZListRule:
39 # A single authorization rule.
41 # @match: a string or glob to match against a user identity
42 # @policy: the result to return if @match evaluates to true
43 # @format: the format of the @match rule (default 'exact')
45 # Since: 4.0
47 { 'struct': 'QAuthZListRule',
48   'data': {'match': 'str',
49            'policy': 'QAuthZListPolicy',
50            '*format': 'QAuthZListFormat'}}
53 # @QAuthZListRuleListHack:
55 # Not exposed via QMP; hack to generate QAuthZListRuleList
56 # for use internally by the code.
58 # Since: 4.0
60 { 'struct': 'QAuthZListRuleListHack',
61   'data': { 'unused': ['QAuthZListRule'] } }