-
Notifications
You must be signed in to change notification settings - Fork 160
/
role.yaml
164 lines (161 loc) · 4.9 KB
/
role.yaml
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
openapi: 3.0.3
info:
title: Eclipse Kapua REST API - Roles
version: '1.0'
contact:
name: Eclipse Kapua Dev Team
url: https://eclipse.org/kapua
email: kapua-dev@eclipse.org
license:
name: Eclipse Public License 2.0
url: https://www.eclipse.org/legal/epl-2.0
paths: {}
components:
parameters:
roleId:
name: roleId
in: path
description: The ID of the Role on which to perform the operation
schema:
$ref: '../openapi.yaml#/components/schemas/kapuaId'
required: true
rolePermissionId:
name: rolePermissionId
in: path
description: The ID of the RolePermission on which to perform the operation
schema:
$ref: '../openapi.yaml#/components/schemas/kapuaId'
required: true
schemas:
role:
allOf:
- $ref: '../openapi.yaml#/components/schemas/kapuaNamedEntity'
- type: object
example:
type: role
id: KmhOD4JHfwk
scopeId: AQ
createdOn: '2019-09-16T07:33:26.719Z'
createdBy: AQ
modifiedOn: '2019-09-16T07:33:26.719Z'
modifiedBy: AQ
optlock: 1
name: new-role
description: A new role
roleCreator:
allOf:
- $ref: '../openapi.yaml#/components/schemas/kapuaNamedEntityCreator'
- type: object
properties:
permissions:
type: array
items:
$ref: '../accessInfo/accessInfo.yaml#/components/schemas/permission'
example:
name: new-role
description: A new role
permissions:
- domain: broker
action: connect
forwardable: true
targetScopeId: AQ
roleListResult:
allOf:
- $ref: '../openapi.yaml#/components/schemas/kapuaListResult'
- type: object
properties:
items:
type: array
items:
$ref: '#/components/schemas/role'
example:
type: roleListResult
limitExceeded: false
size: 2
items:
- type: role
id: AQ
scopeId: AQ
createdOn: '2019-09-10T15:08:50.701Z'
createdBy: AQ
modifiedOn: '2019-09-10T15:08:50.701Z'
modifiedBy: AQ
optlock: 0
name: admin
- type: role
id: OYLRT30Z9sA
scopeId: AQ
createdOn: '2019-09-11T14:48:33.531Z'
createdBy: AQ
modifiedOn: '2019-09-11T14:48:33.531Z'
modifiedBy: AQ
optlock: 1
name: role
description: desc
rolePermissionCreator:
allOf:
- $ref: '../openapi.yaml#/components/schemas/kapuaEntityCreator'
- type: object
properties:
permission:
$ref: '../accessInfo/accessInfo.yaml#/components/schemas/permission'
example:
permission:
domain: account
action: read
forwardable: true
rolePermission:
allOf:
- $ref: '../openapi.yaml#/components/schemas/kapuaEntity'
- type: object
properties:
roleId:
allOf:
- $ref: '../openapi.yaml#/components/schemas/kapuaId'
permission:
$ref: '../accessInfo/accessInfo.yaml#/components/schemas/permission'
example:
type: rolePermission
id: BpbQqk31GLc
scopeId: AQ
createdOn: '2019-09-16T07:49:51.117Z'
createdBy: AQ
roleId: OYLRT30Z9sA
permission:
domain: domain
action: read
forwardable: true
rolePermissionListResult:
allOf:
- $ref: '../openapi.yaml#/components/schemas/kapuaListResult'
- type: object
properties:
items:
type: array
items:
$ref: '#/components/schemas/rolePermission'
example:
type: rolePermissionListResult
limitExceeded: false
size: 2
items:
- type: rolePermission
id: BPJyd1ObUK8
scopeId: AQ
createdOn: '2019-09-16T07:46:06.191Z'
createdBy: AQ
roleId: OYLRT30Z9sA
permission:
domain: broker
action: connect
forwardable: true
- type: rolePermission
id: Zi4XYBuG7Xw
scopeId: AQ
createdOn: '2019-09-16T07:46:14.082Z'
createdBy: AQ
roleId: OYLRT30Z9sA
permission:
domain: device
action: read
forwardable: true