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.SerializableThis 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 GitLabApiFormgetForm(boolean isCreate)Get the form params for a group create oir update call.GroupParamswithAutoDevopsEnabled(java.lang.Boolean autoDevopsEnabled)GroupParamswithDefaultBranchProtection(Constants.DefaultBranchProtectionLevel defaultBranchProtection)GroupParamswithDescription(java.lang.String description)GroupParamswithEmailsDisabled(java.lang.Boolean emailsDisabled)GroupParamswithExtraSharedRunnersMinutesLimit(java.lang.Integer extraSharedRunnersMinutesLimit)GroupParamswithFileTemplateProjectId(java.lang.Long fileTemplateProjectId)The ID of a project to load custom file templates from.GroupParamswithLfsEnabled(java.lang.Boolean lfsEnabled)GroupParamswithMembershipLock(java.lang.Boolean membershipLock)Prevent adding new members to project membership within this group.GroupParamswithName(java.lang.String name)GroupParamswithParentId(java.lang.Long parentId)The parent group ID for creating nested group.GroupParamswithPath(java.lang.String path)GroupParamswithPreventForkingOutsideGroup(java.lang.Boolean preventForkingOutsideGroup)GroupParamswithPreventSharingGroupsOutsideHierarchy(java.lang.Boolean preventSharingGroupsOutsideHierarchy)GroupParamswithProjectCreationLevel(Constants.ProjectCreationLevel projectCreationLevel)GroupParamswithRequestAccessEnabled(java.lang.Boolean requestAccessEnabled)GroupParamswithRequireTwoFactorAuthentication(java.lang.Boolean requireTwoFactorAuthentication)GroupParamswithSharedRunnersMinutesLimit(java.lang.Integer sharedRunnersMinutesLimit)GroupParamswithShareWithGroupLock(java.lang.Boolean shareWithGroupLock)GroupParamswithSubgroupCreationLevel(Constants.SubgroupCreationLevel subgroupCreationLevel)GroupParamswithTwoFactorGracePeriod(java.lang.Integer twoFactorGracePeriod)GroupParamswithVisibility(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
-
-