docs: public Observable<ServiceResponse<SummarizeResultsInner>> summarizeForManagementGroupWithServiceResponseAsync(String managementGroupName, QueryOptions queryOptions) {
          if (managementGroupName == null) {
              throw new IllegalArgumentException("Parameter managementGroupName is required and cannot be null.");
          }
          if (this.client.apiVersion() == null) {
              throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.");
          }
          Validator.validate(queryOptions);
          final String policyStatesSummaryResource = "latest";
          final String managementGroupsNamespace = "Microsoft.Management";
          Integer top = null;
          if (queryOptions != null) {
              top = queryOptions.top();
          }
          DateTime from = null;
          if (queryOptions != null) {
              from = queryOptions.from();
          }
          DateTime to = null;
          if (queryOptions != null) {
              to = queryOptions.to();
          }
          String filter = null;
          if (queryOptions != null) {
              filter = queryOptions.filter();
          }
          return service.summarizeForManagementGroup(policyStatesSummaryResource, managementGroupsNamespace, managementGroupName, this.client.apiVersion(), this.client.acceptLanguage(), top, from, to, filter, this.client.userAgent())
              .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<SummarizeResultsInner>>>() {
                  @Override
                  public Observable<ServiceResponse<SummarizeResultsInner>> call(Response<ResponseBody> response) {
                      try {
                          ServiceResponse<SummarizeResultsInner> clientResponse = summarizeForManagementGroupDelegate(response);
                          return Observable.just(clientResponse);
                      } catch (Throwable t) {
                          return Observable.error(t);
                      }
                  }
              });
      }