code: public Observable<ServiceResponse<LocationCapabilitiesInner>> listByLocationWithServiceResponseAsync(String locationName) {
          if (locationName == null) {
              throw new IllegalArgumentException("Parameter locationName 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.");
          }
          final CapabilityGroup include = null;
          return service.listByLocation(locationName, this.client.subscriptionId(), include, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent())
              .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<LocationCapabilitiesInner>>>() {
                  @Override
                  public Observable<ServiceResponse<LocationCapabilitiesInner>> call(Response<ResponseBody> response) {
                      try {
                          ServiceResponse<LocationCapabilitiesInner> clientResponse = listByLocationDelegate(response);
                          return Observable.just(clientResponse);
                      } catch (Throwable t) {
                          return Observable.error(t);
                      }
                  }
              });
      }
docs: Gets the subscription capabilities available for the specified location.
  
  @param locationName The location name whose capabilities are retrieved.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the observable to the LocationCapabilitiesInner object