code: public List<PartitionUsageInner> listUsages(String resourceGroupName, String accountName, String databaseRid, String collectionRid) {
          return listUsagesWithServiceResponseAsync(resourceGroupName, accountName, databaseRid, collectionRid).toBlocking().single().body();
      }
docs: Retrieves the usages (most recent storage data) for the given collection, split by partition.
  
  @param resourceGroupName Name of an Azure resource group.
  @param accountName Cosmos DB database account name.
  @param databaseRid Cosmos DB database rid.
  @param collectionRid Cosmos DB collection rid.
  @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 List&lt;PartitionUsageInner&gt; object if successful.