code: public Observable<SpatialAnchorsAccountKeysInner> regenerateKeysAsync(String resourceGroupName, String spatialAnchorsAccountName, Integer serial) {
          return regenerateKeysWithServiceResponseAsync(resourceGroupName, spatialAnchorsAccountName, serial).map(new Func1<ServiceResponse<SpatialAnchorsAccountKeysInner>, SpatialAnchorsAccountKeysInner>() {
              @Override
              public SpatialAnchorsAccountKeysInner call(ServiceResponse<SpatialAnchorsAccountKeysInner> response) {
                  return response.body();
              }
          });
      }
docs: Regenerate 1 Key of a Spatial Anchors Account.
  
  @param resourceGroupName Name of an Azure resource group.
  @param spatialAnchorsAccountName Name of an Mixed Reality Spatial Anchors Account.
  @param serial serial of key to be regenerated
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the observable to the SpatialAnchorsAccountKeysInner object