code: public Observable<Page<AutomationAccountInner>> listByResourceGroupAsync(final String resourceGroupName) {
          return listByResourceGroupWithServiceResponseAsync(resourceGroupName)
              .map(new Func1<ServiceResponse<Page<AutomationAccountInner>>, Page<AutomationAccountInner>>() {
                  @Override
                  public Page<AutomationAccountInner> call(ServiceResponse<Page<AutomationAccountInner>> response) {
                      return response.body();
                  }
              });
      }
docs: Retrieve a list of accounts within a given resource group.
  
  @param resourceGroupName Name of an Azure Resource group.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the observable to the PagedList&lt;AutomationAccountInner&gt; object