docs: public Observable<ServiceResponse<SummarizeResultsInner>> summarizeForResourceWithServiceResponseAsync(String resourceId) {
          if (resourceId == null) {
              throw new IllegalArgumentException("Parameter resourceId is required and cannot be null.");
          }
          if (this.client.apiVersion() == null) {
              throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.");
          }
          final String policyStatesSummaryResource = "latest";
          final QueryOptions queryOptions = null;
          Integer top = null;
          DateTime from = null;
          DateTime to = null;
          String filter = null;
          return service.summarizeForResource(policyStatesSummaryResource, resourceId, 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 = summarizeForResourceDelegate(response);
                          return Observable.just(clientResponse);
                      } catch (Throwable t) {
                          return Observable.error(t);
                      }
                  }
              });
      }