Skip to content
This repository was archived by the owner on Dec 10, 2024. It is now read-only.

Commit de4ff04

Browse files
committed
Update ordering
1 parent b2fe294 commit de4ff04

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

groups.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ type Group struct {
5050
AvatarURL string `json:"avatar_url"`
5151
WebURL string `json:"web_url"`
5252
RequestAccessEnabled bool `json:"request_access_enabled"`
53+
RepositoryStorage string `json:"repository_storage"`
5354
FullName string `json:"full_name"`
5455
FullPath string `json:"full_path"`
5556
FileTemplateProjectID int `json:"file_template_project_id"`
@@ -86,7 +87,6 @@ type Group struct {
8687
CreatedAt *time.Time `json:"created_at"`
8788
IPRestrictionRanges string `json:"ip_restriction_ranges"`
8889
WikiAccessLevel AccessControlValue `json:"wiki_access_level"`
89-
RepositoryStorage string `json:"repository_storage"`
9090
}
9191

9292
// GroupAvatar represents a GitLab group avatar.
@@ -129,17 +129,17 @@ type SAMLGroupLink struct {
129129
// GitLab API docs: https://docs.gitlab.com/ee/api/groups.html#list-groups
130130
type ListGroupsOptions struct {
131131
ListOptions
132+
SkipGroups *[]int `url:"skip_groups,omitempty" del:"," json:"skip_groups,omitempty"`
132133
AllAvailable *bool `url:"all_available,omitempty" json:"all_available,omitempty"`
133-
MinAccessLevel *AccessLevelValue `url:"min_access_level,omitempty" json:"min_access_level,omitempty"`
134-
OrderBy *string `url:"order_by,omitempty" json:"order_by,omitempty"`
135-
Owned *bool `url:"owned,omitempty" json:"owned,omitempty"`
136-
RepositoryStorage *string `url:"repository_storage,omitempty" json:"repository_storage,omitempty"`
137134
Search *string `url:"search,omitempty" json:"search,omitempty"`
138-
SkipGroups *[]int `url:"skip_groups,omitempty" del:"," json:"skip_groups,omitempty"`
135+
OrderBy *string `url:"order_by,omitempty" json:"order_by,omitempty"`
139136
Sort *string `url:"sort,omitempty" json:"sort,omitempty"`
140137
Statistics *bool `url:"statistics,omitempty" json:"statistics,omitempty"`
141-
TopLevelOnly *bool `url:"top_level_only,omitempty" json:"top_level_only,omitempty"`
142138
WithCustomAttributes *bool `url:"with_custom_attributes,omitempty" json:"with_custom_attributes,omitempty"`
139+
Owned *bool `url:"owned,omitempty" json:"owned,omitempty"`
140+
MinAccessLevel *AccessLevelValue `url:"min_access_level,omitempty" json:"min_access_level,omitempty"`
141+
TopLevelOnly *bool `url:"top_level_only,omitempty" json:"top_level_only,omitempty"`
142+
RepositoryStorage *string `url:"repository_storage,omitempty" json:"repository_storage,omitempty"`
143143
}
144144

145145
// ListGroups gets a list of groups (as user: my groups, as admin: all groups).

0 commit comments

Comments
 (0)