gitlab-haskell-1.0.0.1: A Haskell library for the GitLab web API
Copyright(c) Rob Stewart Heriot-Watt University 2019
LicenseBSD3
Maintainerrobstewart57@gmail.com
Stabilitystable
Safe HaskellNone
LanguageHaskell2010

GitLab.API.Groups

Description

 
Synopsis

List groups

groups :: ListGroupsAttrs -> GitLab [Group] Source #

Get a list of visible groups for the authenticated user.

List a group’s subgroups

subGroups :: Group -> ListGroupsAttrs -> GitLab [Group] Source #

Get a list of visible direct subgroups in this group.

List a group’s descendant groups

descendantGroups :: Group -> ListGroupsAttrs -> GitLab [Group] Source #

Get a list of visible descendant groups of this group.

List a group’s projects

groupProjects :: Group -> GroupProjectAttrs -> GitLab [Project] Source #

Get a list of projects in this group.

List a group’s shared projects

groupSharedProjects :: Group -> GroupProjectAttrs -> GitLab [Project] Source #

Get a list of projects in this group.

Details of a group

group Source #

Arguments

:: Int

group ID

-> GitLab (Either (Response ByteString) (Maybe Group)) 

Get all details of a group.

New group

newGroup Source #

Arguments

:: Text

group name

-> Text

group path

-> GroupAttrs

group attributes

-> GitLab (Either (Response ByteString) (Maybe Group)) 

Creates a new project group (TODO include attributes).

New Subgroup

newSubGroup Source #

Arguments

:: Text

group name

-> Text

group path

-> Int

parent group ID

-> GroupAttrs

group attributes

-> GitLab (Either (Response ByteString) (Maybe Group)) 

Creates a new project group.

Update group

updateGroup Source #

Arguments

:: Int

The ID of the group.

-> GroupAttrs

Group attributes

-> GitLab (Either (Response ByteString) (Maybe Group)) 

Updates the project group. Only available to group owners and administrators.

Remove group

removeGroup Source #

Arguments

:: Int

The ID of the group.

-> GitLab (Either (Response ByteString) (Maybe ())) 

Only available to group owners and administrators.

Search for group

searchGroup Source #

Arguments

:: Text

String or path to search for.

-> GitLab [Group] 

Get all groups that match your string in their name or path.

Group attributes

data GroupOrderBy Source #

The order of groups in search results.

Instances

Instances details
Show GroupOrderBy Source # 
Instance details

Defined in GitLab.API.Groups

data GroupAttrs Source #

Attributes related to a group

Constructors

GroupAttrs 

Fields

data BranchProtection Source #

A group level branch protection setting.

Constructors

NoProtection

Users with the Developer or Maintainer role can: push new commits, force push changes, delete the branch

PartialProtection

Users with the Developer or Maintainer role can: push new commits

FullProtection

Only users with the Maintainer role can: push new commits

ProtectAgainstPushes

Users with the Maintainer role can: push new commits, force push changes, accept merge requests; Users with the Developer role can: accept merge requests

Instances

Instances details
Show BranchProtection Source # 
Instance details

Defined in GitLab.API.Groups

defaultGroupFilters :: GroupAttrs Source #

No group filters applied.

defaultListGroupsFilters :: ListGroupsAttrs Source #

No group filters applied, thereby returning all groups.