public class

SetRestrictionRequest

extends Object
java.lang.Object
   ↳ com.atlassian.bitbucket.repository.ref.restriction.SetRestrictionRequest

Class Overview

A request for creating or updating a RefRestriction. These requests are handled by the RefRestrictionService. The SetRestrictionRequest.Builder should be used to construct these requests.

Summary

Nested Classes
class SetRestrictionRequest.Builder  
Public Methods
@Nonnull List<SshAccessKey> getAccessKeyGrants()
@Nonnull List<String> getGroupGrants()
@Nonnull RefMatcher getMatcher()
@Deprecated @Nullable Repository getRepository()
This method is deprecated. in 5.1 for removal in 6.0. Use getScope() instead.
@Deprecated int getRepositoryId()
This method is deprecated. in 5.1 for removal in 6.0. Use getScope() instead.
@Nonnull Scope getScope()
@Nonnull RefRestrictionType getType()
@Nonnull List<ApplicationUser> getUserGrants()
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

@Nonnull public List<SshAccessKey> getAccessKeyGrants ()

@Nonnull public List<String> getGroupGrants ()

@Nonnull public RefMatcher getMatcher ()

@Deprecated @Nullable public Repository getRepository ()

This method is deprecated.
in 5.1 for removal in 6.0. Use getScope() instead.

@Deprecated public int getRepositoryId ()

This method is deprecated.
in 5.1 for removal in 6.0. Use getScope() instead.

Throws
UnsupportedOperationException if the scope is not of type REPOSITORY

@Nonnull public Scope getScope ()

@Nonnull public RefRestrictionType getType ()

@Nonnull public List<ApplicationUser> getUserGrants ()