Package org.gitlab4j.api.models
Class AllowedTo
- java.lang.Object
-
- org.gitlab4j.api.models.AllowedTo
-
- All Implemented Interfaces:
java.io.Serializable
public class AllowedTo extends java.lang.Object implements java.io.Serializable
This class is used by the ProtectedBranchesAPi to set up the allowed_to_push, allowed_to_merge, and allowed_to_unprotect values.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AllowedTo(AccessLevel accessLevel, java.lang.Long userId, java.lang.Long groupId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GitLabApiForm
getForm(GitLabApiForm form, java.lang.String allowedToName)
AllowedTo
withAccessLevel(AccessLevel accessLevel)
AllowedTo
withGroupId(java.lang.Long groupId)
AllowedTo
withUserId(java.lang.Long userId)
-
-
-
Constructor Detail
-
AllowedTo
public AllowedTo(AccessLevel accessLevel, java.lang.Long userId, java.lang.Long groupId)
-
-
Method Detail
-
withAccessLevel
public AllowedTo withAccessLevel(AccessLevel accessLevel)
-
withUserId
public AllowedTo withUserId(java.lang.Long userId)
-
withGroupId
public AllowedTo withGroupId(java.lang.Long groupId)
-
getForm
public GitLabApiForm getForm(GitLabApiForm form, java.lang.String allowedToName)
-
-