code: public Observable<ServiceResponse<NotificationListResponseInner>> listUpgradeNotificationsWithServiceResponseAsync(String resourceGroupName, String name, double history) {
          if (resourceGroupName == null) {
              throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.");
          }
          if (name == null) {
              throw new IllegalArgumentException("Parameter name 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 (this.client.apiVersion() == null) {
              throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.");
          }
          return service.listUpgradeNotifications(resourceGroupName, name, this.client.subscriptionId(), this.client.apiVersion(), history, this.client.acceptLanguage(), this.client.userAgent())
              .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<NotificationListResponseInner>>>() {
                  @Override
                  public Observable<ServiceResponse<NotificationListResponseInner>> call(Response<ResponseBody> response) {
                      try {
                          ServiceResponse<NotificationListResponseInner> clientResponse = listUpgradeNotificationsDelegate(response);
                          return Observable.just(clientResponse);
                      } catch (Throwable t) {
                          return Observable.error(t);
                      }
                  }
              });
      }
docs: Gets any upgrade notifications for a Redis cache.
  
  @param resourceGroupName The name of the resource group.
  @param name The name of the Redis cache.
  @param history how many minutes in past to look for upgrade notifications
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the observable to the NotificationListResponseInner object