Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
go-gitlab
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
go-gitlab
Commits
2700a1ea
Commit
2700a1ea
authored
Feb 01, 2019
by
Craig Squire
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add custom attributes to groups request/response
parent
cd1e3f03
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
groups.go
groups.go
+10
-8
No files found.
groups.go
View file @
2700a1ea
...
...
@@ -47,6 +47,7 @@ type Group struct {
ParentID
int
`json:"parent_id"`
Projects
[]
*
Project
`json:"projects"`
Statistics
*
StorageStatistics
`json:"statistics"`
CustomAttributes
[]
*
CustomAttribute
`json:"custom_attributes"`
}
// ListGroupsOptions represents the available ListGroups() options.
...
...
@@ -54,14 +55,15 @@ type Group struct {
// GitLab API docs: https://docs.gitlab.com/ce/api/groups.html#list-project-groups
type
ListGroupsOptions
struct
{
ListOptions
AllAvailable
*
bool
`url:"all_available,omitempty" json:"all_available,omitempty"`
MinAccessLevel
*
AccessLevelValue
`url:"min_access_level,omitempty" json:"min_access_level,omitempty"`
OrderBy
*
string
`url:"order_by,omitempty" json:"order_by,omitempty"`
Owned
*
bool
`url:"owned,omitempty" json:"owned,omitempty"`
Search
*
string
`url:"search,omitempty" json:"search,omitempty"`
SkipGroups
[]
int
`url:"skip_groups,omitempty" json:"skip_groups,omitempty"`
Sort
*
string
`url:"sort,omitempty" json:"sort,omitempty"`
Statistics
*
bool
`url:"statistics,omitempty" json:"statistics,omitempty"`
AllAvailable
*
bool
`url:"all_available,omitempty" json:"all_available,omitempty"`
MinAccessLevel
*
AccessLevelValue
`url:"min_access_level,omitempty" json:"min_access_level,omitempty"`
OrderBy
*
string
`url:"order_by,omitempty" json:"order_by,omitempty"`
Owned
*
bool
`url:"owned,omitempty" json:"owned,omitempty"`
Search
*
string
`url:"search,omitempty" json:"search,omitempty"`
SkipGroups
[]
int
`url:"skip_groups,omitempty" json:"skip_groups,omitempty"`
Sort
*
string
`url:"sort,omitempty" json:"sort,omitempty"`
Statistics
*
bool
`url:"statistics,omitempty" json:"statistics,omitempty"`
WithCustomAttributes
*
bool
`url:"with_custom_attributes,omitempty" json:"with_custom_attributes,omitempty"`
}
// ListGroups gets a list of groups (as user: my groups, as admin: all groups).
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment