Module bus.gitlab

Class GroupParams

java.lang.Object
org.miaixz.bus.gitlab.models.GroupParams
All Implemented Interfaces:
Serializable

public class GroupParams extends Object implements 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 Details

    • GroupParams

      public GroupParams()
  • Method Details

    • withParentId

      public GroupParams withParentId(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(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(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(String name)
    • withPath

      public GroupParams withPath(String path)
    • withDescription

      public GroupParams withDescription(String description)
    • withVisibility

      public GroupParams withVisibility(String visibility)
    • withShareWithGroupLock

      public GroupParams withShareWithGroupLock(Boolean shareWithGroupLock)
    • withRequireTwoFactorAuthentication

      public GroupParams withRequireTwoFactorAuthentication(Boolean requireTwoFactorAuthentication)
    • withTwoFactorGracePeriod

      public GroupParams withTwoFactorGracePeriod(Integer twoFactorGracePeriod)
    • withProjectCreationLevel

      public GroupParams withProjectCreationLevel(Constants.ProjectCreationLevel projectCreationLevel)
    • withAutoDevopsEnabled

      public GroupParams withAutoDevopsEnabled(Boolean autoDevopsEnabled)
    • withSubgroupCreationLevel

      public GroupParams withSubgroupCreationLevel(Constants.SubgroupCreationLevel subgroupCreationLevel)
    • withEmailsDisabled

      public GroupParams withEmailsDisabled(Boolean emailsDisabled)
    • withLfsEnabled

      public GroupParams withLfsEnabled(Boolean lfsEnabled)
    • withRequestAccessEnabled

      public GroupParams withRequestAccessEnabled(Boolean requestAccessEnabled)
    • withSharedRunnersMinutesLimit

      public GroupParams withSharedRunnersMinutesLimit(Integer sharedRunnersMinutesLimit)
    • withExtraSharedRunnersMinutesLimit

      public GroupParams withExtraSharedRunnersMinutesLimit(Integer extraSharedRunnersMinutesLimit)
    • withDefaultBranchProtection

      public GroupParams withDefaultBranchProtection(Constants.DefaultBranchProtectionLevel defaultBranchProtection)
    • withPreventSharingGroupsOutsideHierarchy

      public GroupParams withPreventSharingGroupsOutsideHierarchy(Boolean preventSharingGroupsOutsideHierarchy)
    • withPreventForkingOutsideGroup

      public GroupParams withPreventForkingOutsideGroup(Boolean preventForkingOutsideGroup)
    • getForm

      public GitLabForm 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:
      RuntimeException - if required parameters are missing