public class GroupParams extends Object
GroupApi.createGroup(GroupParams)
and GroupApi.updateGroup(Object, GroupParams)
methods to set
the parameters for the call to the GitLab API.Modifier and Type | Class and Description |
---|---|
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 and Description |
---|
GroupParams() |
public GroupParams withParentId(Integer parentId)
parentId
- the parent group ID for creating nested grouppublic GroupParams withMembershipLock(Boolean membershipLock)
membershipLock
- if true, prevent adding new members to project membership within this grouppublic GroupParams withFileTemplateProjectId(Integer fileTemplateProjectId)
fileTemplateProjectId
- the ID of a project to load custom file templates frompublic GroupParams withName(String name)
public GroupParams withPath(String path)
public GroupParams withDescription(String description)
public GroupParams withVisibility(String visibility)
public GroupParams withShareWithGroupLock(Boolean shareWithGroupLock)
public GroupParams withRequireTwoFactorAuthentication(Boolean requireTwoFactorAuthentication)
public GroupParams withTwoFactorGracePeriod(Integer twoFactorGracePeriod)
public GroupParams withProjectCreationLevel(GroupParams.ProjectCreationLevel projectCreationLevel)
public GroupParams withAutoDevopsEnabled(Boolean autoDevopsEnabled)
public GroupParams withSubgroupCreationLevel(GroupParams.SubgroupCreationLevel subgroupCreationLevel)
public GroupParams withEmailsDisabled(Boolean emailsDisabled)
public GroupParams withLfsEnabled(Boolean lfsEnabled)
public GroupParams withRequestAccessEnabled(Boolean requestAccessEnabled)
public GroupParams withSharedRunnersMinutesLimit(Integer sharedRunnersMinutesLimit)
public GroupParams withExtraSharedRunnersMinutesLimit(Integer extraSharedRunnersMinutesLimit)
public GitLabApiForm getForm(boolean isCreate)
isCreate
- set to true for a create group call, false for updateRuntimeException
- if required parameters are missingCopyright © 2020. All rights reserved.