code: public Observable<ServiceResponse<UpdateSummaryInner>> getUpdateSummaryWithServiceResponseAsync(String deviceName, String resourceGroupName) {
          if (deviceName == null) {
              throw new IllegalArgumentException("Parameter deviceName is required and cannot be null.");
          }
          if (this.client.subscriptionId() == null) {
              throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null.");
          }
          if (resourceGroupName == null) {
              throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.");
          }
          if (this.client.apiVersion() == null) {
              throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.");
          }
          return service.getUpdateSummary(deviceName, this.client.subscriptionId(), resourceGroupName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent())
              .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<UpdateSummaryInner>>>() {
                  @Override
                  public Observable<ServiceResponse<UpdateSummaryInner>> call(Response<ResponseBody> response) {
                      try {
                          ServiceResponse<UpdateSummaryInner> clientResponse = getUpdateSummaryDelegate(response);
                          return Observable.just(clientResponse);
                      } catch (Throwable t) {
                          return Observable.error(t);
                      }
                  }
              });
      }
docs: Gets information about the availability of updates based on the last scan of the device. It also gets information about any ongoing download or install jobs on the device.
  
  @param deviceName The device name.
  @param resourceGroupName The resource group name.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the observable to the UpdateSummaryInner object