-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
/
doc.go
48 lines (40 loc) · 1.11 KB
/
doc.go
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
// Package group offers capabilities for grouping subjects together, making policy management easier.
package group
// A list of groups the member is belonging to
// swagger:response listGroupsResponse
type swaggerListGroupsResponse struct {
// in: body
Body []string
}
// swagger:parameters listGroups
type swaggerListGroupsParameters struct {
// The id of the member to look up.
// in: query
Member int `json:"member"`
// The offset from where to start looking if member isn't specified.
// in: query
Offset int `json:"offset"`
// The maximum amount of policies returned if member isn't specified.
// in: query
Limit int `json:"limit"`
}
// swagger:parameters getGroup deleteGroup
type swaggerGetGroupParameters struct {
// The id of the group to look up.
// in: path
ID int `json:"id"`
}
// swagger:parameters removeMembersFromGroup addMembersToGroup
type swaggerModifyMembersParameters struct {
// The id of the group to modify.
// in: path
ID int `json:"id"`
// in: body
Body membersRequest
}
// A group
// swagger:response groupResponse
type swaggerGroupResponse struct {
// in: body
Body Group
}