Package org.gitlab4j.api.models
Class GroupParams
java.lang.Object
org.gitlab4j.api.models.GroupParams
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 ClassesModifier and TypeClassDescriptionstatic enumstatic enumConstant to specify the project_creation_level for the group.static enumConstant to specify the subgroup_creation_level for the group. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetForm(boolean isCreate) Get the form params for a group create oir update call.withAutoDevopsEnabled(Boolean autoDevopsEnabled) withDefaultBranchProtection(GroupParams.DefaultBranchProtectionLevel defaultBranchProtection) withDescription(String description) withEmailsDisabled(Boolean emailsDisabled) withExtraSharedRunnersMinutesLimit(Integer extraSharedRunnersMinutesLimit) withFileTemplateProjectId(Long fileTemplateProjectId) The ID of a project to load custom file templates from.withLfsEnabled(Boolean lfsEnabled) withMembershipLock(Boolean membershipLock) Prevent adding new members to project membership within this group.withParentId(Long parentId) The parent group ID for creating nested group.withProjectCreationLevel(GroupParams.ProjectCreationLevel projectCreationLevel) withRequestAccessEnabled(Boolean requestAccessEnabled) withRequireTwoFactorAuthentication(Boolean requireTwoFactorAuthentication) withSharedRunnersMinutesLimit(Integer sharedRunnersMinutesLimit) withShareWithGroupLock(Boolean shareWithGroupLock) withSubgroupCreationLevel(GroupParams.SubgroupCreationLevel subgroupCreationLevel) withTwoFactorGracePeriod(Integer twoFactorGracePeriod) withVisibility(String visibility)
-
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
-