public PagedList<RoleAssignmentInner> listForScope(final String scope) {
        ServiceResponse<Page<RoleAssignmentInner>> response = listForScopeSinglePageAsync(scope).toBlocking().single();
        return new PagedList<RoleAssignmentInner>(response.body()) {
            @Override
            public Page<RoleAssignmentInner> nextPage(String nextPageLink) {
                return listForScopeNextSinglePageAsync(nextPageLink).toBlocking().single().body();
            }
        };
    }
public PagedList < RoleAssignmentInner > listForScope ( final String scope ) { ServiceResponse < Page < RoleAssignmentInner > > response = listForScopeSinglePageAsync ( scope ) . toBlocking ( ) . single ( ) ; return new PagedList < RoleAssignmentInner > ( response . body ( ) ) { @ Override public Page < RoleAssignmentInner > nextPage ( String nextPageLink ) { return listForScopeNextSinglePageAsync ( nextPageLink ) . toBlocking ( ) . single ( ) . body ( ) ; } } ; }
Gets role assignments for a scope.

@param scope The scope of the role assignments.
@throws IllegalArgumentException thrown if parameters fail the validation
@throws CloudException thrown if the request is rejected by server
@throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
@return the PagedList&lt;RoleAssignmentInner&gt; object if successful.