Class GroupParams

    • Constructor Detail

      • GroupParams

        public GroupParams()
    • 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)
      • withAutoDevopsEnabled

        public GroupParams withAutoDevopsEnabled​(java.lang.Boolean autoDevopsEnabled)
      • 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)
      • 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