Package org.gitlab4j.api.models
Class GroupParams
java.lang.Object
org.gitlab4j.api.models.GroupParams
public class GroupParams extends Object
This class is utilized by the
GroupApi.createGroup(GroupParams)
and GroupApi.updateGroup(Object, GroupParams)
methods to set
the parameters for the call to the GitLab API.-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GroupParams.DefaultBranchProtectionLevel
static class
GroupParams.ProjectCreationLevel
Constant to specify the project_creation_level for the group.static class
GroupParams.SubgroupCreationLevel
Constant to specify the subgroup_creation_level for the group. -
Constructor Summary
Constructors Constructor Description GroupParams()
-
Method Summary
-
Constructor Details
-
GroupParams
public GroupParams()
-
-
Method Details
-
withParentId
The parent group ID for creating nested group. For create only.- Parameters:
parentId
- the parent group ID for creating nested group- Returns:
- this GroupParms instance
-
withMembershipLock
Prevent adding new members to project membership within this group. For update only.- Parameters:
membershipLock
- if true, prevent adding new members to project membership within this group- Returns:
- this GroupParms instance
-
withFileTemplateProjectId
The ID of a project to load custom file templates from. For update only.- Parameters:
fileTemplateProjectId
- the ID of a project to load custom file templates from- Returns:
- this GroupParms instance
-
withName
-
withPath
-
withDescription
-
withVisibility
-
withRequireTwoFactorAuthentication
-
withTwoFactorGracePeriod
-
withProjectCreationLevel
-
withAutoDevopsEnabled
-
withSubgroupCreationLevel
public GroupParams withSubgroupCreationLevel(GroupParams.SubgroupCreationLevel subgroupCreationLevel) -
withEmailsDisabled
-
withLfsEnabled
-
withRequestAccessEnabled
-
withDefaultBranchProtection
public GroupParams withDefaultBranchProtection(GroupParams.DefaultBranchProtectionLevel defaultBranchProtection) -
getForm
Get the form params for a group create oir update call.- Parameters:
isCreate
- set to true for a create group call, false for update- Returns:
- a GitLabApiForm instance holding the parameters for the group create or update operation
- Throws:
RuntimeException
- if required parameters are missing
-