java.lang.Object
org.miaixz.bus.gitlab.models.GroupParams
- All Implemented Interfaces:
Serializable
This class is utilized by the
org.miaixz.bus.gitlab.GroupApi#createGroup(GroupParams) and
org.miaixz.bus.gitlab.GroupApi#updateGroup(Object, GroupParams) methods to set the parameters for the
call to the GitLab API.- See Also:
-
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(Constants.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.withPreventForkingOutsideGroup(Boolean preventForkingOutsideGroup) withPreventSharingGroupsOutsideHierarchy(Boolean preventSharingGroupsOutsideHierarchy) withProjectCreationLevel(Constants.ProjectCreationLevel projectCreationLevel) withRequestAccessEnabled(Boolean requestAccessEnabled) withRequireTwoFactorAuthentication(Boolean requireTwoFactorAuthentication) withSharedRunnersMinutesLimit(Integer sharedRunnersMinutesLimit) withShareWithGroupLock(Boolean shareWithGroupLock) withSubgroupCreationLevel(Constants.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
-
withEmailsDisabled
-
withLfsEnabled
-
withRequestAccessEnabled
-
withDefaultBranchProtection
public GroupParams withDefaultBranchProtection(Constants.DefaultBranchProtectionLevel defaultBranchProtection) -
withPreventSharingGroupsOutsideHierarchy
public GroupParams withPreventSharingGroupsOutsideHierarchy(Boolean preventSharingGroupsOutsideHierarchy) -
withPreventForkingOutsideGroup
-
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
-