code: public Observable<ServiceResponse<SpatialAnchorsAccountKeysInner>> getKeysWithServiceResponseAsync(String resourceGroupName, String spatialAnchorsAccountName) {
          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 (spatialAnchorsAccountName == null) {
              throw new IllegalArgumentException("Parameter spatialAnchorsAccountName 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.getKeys(this.client.subscriptionId(), resourceGroupName, spatialAnchorsAccountName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent())
              .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<SpatialAnchorsAccountKeysInner>>>() {
                  @Override
                  public Observable<ServiceResponse<SpatialAnchorsAccountKeysInner>> call(Response<ResponseBody> response) {
                      try {
                          ServiceResponse<SpatialAnchorsAccountKeysInner> clientResponse = getKeysDelegate(response);
                          return Observable.just(clientResponse);
                      } catch (Throwable t) {
                          return Observable.error(t);
                      }
                  }
              });
      }
docs: Get Both of the 2 Keys of a Spatial Anchors Account.
  
  @param resourceGroupName Name of an Azure resource group.
  @param spatialAnchorsAccountName Name of an Mixed Reality Spatial Anchors Account.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the observable to the SpatialAnchorsAccountKeysInner object