Package org.gitlab4j.api.models
Class GroupParams
- java.lang.Object
-
- org.gitlab4j.api.models.GroupParams
-
- All Implemented Interfaces:
java.io.Serializable
public class GroupParams extends java.lang.Object implements java.io.Serializable
This class is utilized by theGroupApi.createGroup(GroupParams)
andGroupApi.updateGroup(Object, GroupParams)
methods to set the parameters for the call to the GitLab API.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GroupParams()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GitLabApiForm
getForm(boolean isCreate)
Get the form params for a group create oir update call.GroupParams
withAutoDevopsEnabled(java.lang.Boolean autoDevopsEnabled)
GroupParams
withDefaultBranchProtection(Constants.DefaultBranchProtectionLevel defaultBranchProtection)
GroupParams
withDescription(java.lang.String description)
GroupParams
withEmailsDisabled(java.lang.Boolean emailsDisabled)
GroupParams
withExtraSharedRunnersMinutesLimit(java.lang.Integer extraSharedRunnersMinutesLimit)
GroupParams
withFileTemplateProjectId(java.lang.Long fileTemplateProjectId)
The ID of a project to load custom file templates from.GroupParams
withLfsEnabled(java.lang.Boolean lfsEnabled)
GroupParams
withMembershipLock(java.lang.Boolean membershipLock)
Prevent adding new members to project membership within this group.GroupParams
withName(java.lang.String name)
GroupParams
withParentId(java.lang.Long parentId)
The parent group ID for creating nested group.GroupParams
withPath(java.lang.String path)
GroupParams
withPreventForkingOutsideGroup(java.lang.Boolean preventForkingOutsideGroup)
GroupParams
withPreventSharingGroupsOutsideHierarchy(java.lang.Boolean preventSharingGroupsOutsideHierarchy)
GroupParams
withProjectCreationLevel(Constants.ProjectCreationLevel projectCreationLevel)
GroupParams
withRequestAccessEnabled(java.lang.Boolean requestAccessEnabled)
GroupParams
withRequireTwoFactorAuthentication(java.lang.Boolean requireTwoFactorAuthentication)
GroupParams
withSharedRunnersMinutesLimit(java.lang.Integer sharedRunnersMinutesLimit)
GroupParams
withShareWithGroupLock(java.lang.Boolean shareWithGroupLock)
GroupParams
withSubgroupCreationLevel(Constants.SubgroupCreationLevel subgroupCreationLevel)
GroupParams
withTwoFactorGracePeriod(java.lang.Integer twoFactorGracePeriod)
GroupParams
withVisibility(java.lang.String visibility)
-
-
-
Method Detail
-
withParentId
public GroupParams withParentId(java.lang.Long parentId)
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
public GroupParams withMembershipLock(java.lang.Boolean membershipLock)
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
public GroupParams withFileTemplateProjectId(java.lang.Long fileTemplateProjectId)
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
public GroupParams withName(java.lang.String name)
-
withPath
public GroupParams withPath(java.lang.String path)
-
withDescription
public GroupParams withDescription(java.lang.String description)
-
withVisibility
public GroupParams withVisibility(java.lang.String visibility)
-
withShareWithGroupLock
public GroupParams withShareWithGroupLock(java.lang.Boolean shareWithGroupLock)
-
withRequireTwoFactorAuthentication
public GroupParams withRequireTwoFactorAuthentication(java.lang.Boolean requireTwoFactorAuthentication)
-
withTwoFactorGracePeriod
public GroupParams withTwoFactorGracePeriod(java.lang.Integer twoFactorGracePeriod)
-
withProjectCreationLevel
public GroupParams withProjectCreationLevel(Constants.ProjectCreationLevel projectCreationLevel)
-
withAutoDevopsEnabled
public GroupParams withAutoDevopsEnabled(java.lang.Boolean autoDevopsEnabled)
-
withSubgroupCreationLevel
public GroupParams withSubgroupCreationLevel(Constants.SubgroupCreationLevel subgroupCreationLevel)
-
withEmailsDisabled
public GroupParams withEmailsDisabled(java.lang.Boolean emailsDisabled)
-
withLfsEnabled
public GroupParams withLfsEnabled(java.lang.Boolean lfsEnabled)
-
withRequestAccessEnabled
public GroupParams withRequestAccessEnabled(java.lang.Boolean requestAccessEnabled)
-
withSharedRunnersMinutesLimit
public GroupParams withSharedRunnersMinutesLimit(java.lang.Integer sharedRunnersMinutesLimit)
-
withExtraSharedRunnersMinutesLimit
public GroupParams withExtraSharedRunnersMinutesLimit(java.lang.Integer extraSharedRunnersMinutesLimit)
-
withDefaultBranchProtection
public GroupParams withDefaultBranchProtection(Constants.DefaultBranchProtectionLevel defaultBranchProtection)
-
withPreventSharingGroupsOutsideHierarchy
public GroupParams withPreventSharingGroupsOutsideHierarchy(java.lang.Boolean preventSharingGroupsOutsideHierarchy)
-
withPreventForkingOutsideGroup
public GroupParams withPreventForkingOutsideGroup(java.lang.Boolean preventForkingOutsideGroup)
-
getForm
public GitLabApiForm getForm(boolean isCreate)
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:
java.lang.RuntimeException
- if required parameters are missing
-
-