code: public PagedList<DenyAssignmentInner> listForResource(final String resourceGroupName, final String resourceProviderNamespace, final String parentResourcePath, final String resourceType, final String resourceName) {
          ServiceResponse<Page<DenyAssignmentInner>> response = listForResourceSinglePageAsync(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName).toBlocking().single();
          return new PagedList<DenyAssignmentInner>(response.body()) {
              @Override
              public Page<DenyAssignmentInner> nextPage(String nextPageLink) {
                  return listForResourceNextSinglePageAsync(nextPageLink).toBlocking().single().body();
              }
          };
      }
docs: Gets deny assignments for a resource.
  
  @param resourceGroupName The name of the resource group.
  @param resourceProviderNamespace The namespace of the resource provider.
  @param parentResourcePath The parent resource identity.
  @param resourceType The resource type of the resource.
  @param resourceName The name of the resource to get deny assignments for.
  @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;DenyAssignmentInner&gt; object if successful.