public List<VaultUsageInner> listByVaults(String resourceGroupName, String vaultName) {
        return listByVaultsWithServiceResponseAsync(resourceGroupName, vaultName).toBlocking().single().body();
    }
public List < VaultUsageInner > listByVaults ( String resourceGroupName , String vaultName ) { return listByVaultsWithServiceResponseAsync ( resourceGroupName , vaultName ) . toBlocking ( ) . single ( ) . body ( ) ; }
Fetches the usages of the vault.

@param resourceGroupName The name of the resource group where the recovery services vault is present.
@param vaultName The name of the recovery services vault.
@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;VaultUsageInner&gt; object if successful.