public List<WorkbookInner> listByResourceGroup(String resourceGroupName, CategoryType category) {
        return listByResourceGroupWithServiceResponseAsync(resourceGroupName, category).toBlocking().single().body();
    }
public List < WorkbookInner > listByResourceGroup ( String resourceGroupName , CategoryType category ) { return listByResourceGroupWithServiceResponseAsync ( resourceGroupName , category ) . toBlocking ( ) . single ( ) . body ( ) ; }
Get all Workbooks defined within a specified resource group and category.

@param resourceGroupName The name of the resource group.
@param category Category of workbook to return. Possible values include: 'workbook', 'TSG', 'performance', 'retention'
@throws IllegalArgumentException thrown if parameters fail the validation
@throws WorkbookErrorException 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;WorkbookInner&gt; object if successful.