/
jira_group.go
65 lines (57 loc) · 2.13 KB
/
jira_group.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
package models
type UserGroupsScheme struct {
Size int `json:"size,omitempty"`
Items []*UserGroupScheme `json:"items,omitempty"`
MaxResults int `json:"max-results,omitempty"`
}
type UserGroupScheme struct {
Name string `json:"name,omitempty"`
Self string `json:"self,omitempty"`
}
type GroupScheme struct {
Name string `json:"name,omitempty"`
Self string `json:"self,omitempty"`
Users *GroupUserPageScheme `json:"users,omitempty"`
Expand string `json:"expand,omitempty"`
}
type GroupUserPageScheme struct {
Size int `json:"size,omitempty"`
Items []*UserScheme `json:"items,omitempty"`
MaxResults int `json:"max-results,omitempty"`
StartIndex int `json:"start-index,omitempty"`
EndIndex int `json:"end-index,omitempty"`
}
type BulkGroupScheme struct {
MaxResults int `json:"maxResults,omitempty"`
StartAt int `json:"startAt,omitempty"`
Total int `json:"total,omitempty"`
IsLast bool `json:"isLast,omitempty"`
Values []struct {
Name string `json:"name,omitempty"`
GroupID string `json:"groupId,omitempty"`
} `json:"values,omitempty"`
}
type GroupMemberPageScheme struct {
Self string `json:"self,omitempty"`
NextPage string `json:"nextPage,omitempty"`
MaxResults int `json:"maxResults,omitempty"`
StartAt int `json:"startAt,omitempty"`
Total int `json:"total,omitempty"`
IsLast bool `json:"isLast,omitempty"`
Values []*GroupUserDetailScheme `json:"values,omitempty"`
}
type GroupUserDetailScheme struct {
Self string `json:"self"`
Name string `json:"name"`
Key string `json:"key"`
AccountID string `json:"accountId"`
EmailAddress string `json:"emailAddress"`
DisplayName string `json:"displayName"`
Active bool `json:"active"`
TimeZone string `json:"timeZone"`
AccountType string `json:"accountType"`
}
type GroupBulkOptionsScheme struct {
GroupIDs []string
GroupNames []string
}