public class GroupParams
extends java.lang.Object
implements java.io.Serializable
GroupApi.createGroup(GroupParams)
and GroupApi.updateGroup(Object, GroupParams)
methods to set
the parameters for the call to the GitLab API.Constructor and Description |
---|
GroupParams() |
Modifier and Type | Method and 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) |
public GroupParams withParentId(java.lang.Long parentId)
parentId
- the parent group ID for creating nested grouppublic GroupParams withMembershipLock(java.lang.Boolean membershipLock)
membershipLock
- if true, prevent adding new members to project membership within this grouppublic GroupParams withFileTemplateProjectId(java.lang.Long fileTemplateProjectId)
fileTemplateProjectId
- the ID of a project to load custom file templates frompublic GroupParams withName(java.lang.String name)
public GroupParams withPath(java.lang.String path)
public GroupParams withDescription(java.lang.String description)
public GroupParams withVisibility(java.lang.String visibility)
public GroupParams withShareWithGroupLock(java.lang.Boolean shareWithGroupLock)
public GroupParams withRequireTwoFactorAuthentication(java.lang.Boolean requireTwoFactorAuthentication)
public GroupParams withTwoFactorGracePeriod(java.lang.Integer twoFactorGracePeriod)
public GroupParams withProjectCreationLevel(Constants.ProjectCreationLevel projectCreationLevel)
public GroupParams withAutoDevopsEnabled(java.lang.Boolean autoDevopsEnabled)
public GroupParams withSubgroupCreationLevel(Constants.SubgroupCreationLevel subgroupCreationLevel)
public GroupParams withEmailsDisabled(java.lang.Boolean emailsDisabled)
public GroupParams withLfsEnabled(java.lang.Boolean lfsEnabled)
public GroupParams withRequestAccessEnabled(java.lang.Boolean requestAccessEnabled)
public GroupParams withSharedRunnersMinutesLimit(java.lang.Integer sharedRunnersMinutesLimit)
public GroupParams withExtraSharedRunnersMinutesLimit(java.lang.Integer extraSharedRunnersMinutesLimit)
public GroupParams withDefaultBranchProtection(Constants.DefaultBranchProtectionLevel defaultBranchProtection)
public GroupParams withPreventSharingGroupsOutsideHierarchy(java.lang.Boolean preventSharingGroupsOutsideHierarchy)
public GroupParams withPreventForkingOutsideGroup(java.lang.Boolean preventForkingOutsideGroup)
public GitLabApiForm getForm(boolean isCreate)
isCreate
- set to true for a create group call, false for updatejava.lang.RuntimeException
- if required parameters are missing