-
Notifications
You must be signed in to change notification settings - Fork 1
/
topic_spec.py
59 lines (45 loc) · 1.05 KB
/
topic_spec.py
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
# type: ignore
class organization:
"""
An organization exists.
"""
def msgDataSpec(org):
"""
- org: organization description
"""
class root:
"""
An organization has a root.
"""
def msgDataSpec(org, resource):
"""
- org: organization description
- resource: root description
"""
class organizational_unit:
"""
A parent has an organizational unit.
"""
def msgDataSpec(parent, resource):
"""
- parent: description of root or organizational unit
- resource: description of child organizational unit
"""
class account:
"""
A parent has an account.
"""
def msgDataSpec(parent, resource):
"""
- parent: description of root or organizational unit
- resource: acccount description
"""
class tag:
"""
An organization resource has a tag.
"""
def msgDataSpec(resource, tag):
"""
- resource: tagged resource description
- tag: key-value pair
"""