public PagedList<DedicatedCapacityInner> listByResourceGroup(String resourceGroupName) {PageImpl<DedicatedCapacityInner> page = new PageImpl<>();page.setItems(listByResourceGroupWithServiceResponseAsync(resourceGroupName).toBlocking().single().body());page.setNextPageLink(null);return new PagedList<DedicatedCapacityInner>(page) {@Overridepublic Page<DedicatedCapacityInner> nextPage(String nextPageLink) {return null;}};}

public async Task<AzureOperationResponse<IEnumerable<DedicatedCapacity>>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)){return await innerCapacityOperations.ListByResourceGroupWithHttpMessagesAsync(resourceGroupName, customHeaders, cancellationToken).ConfigureAwait(false);}
