code: public SpatialAnchorsAccountKeysInner regenerateKeys(String resourceGroupName, String spatialAnchorsAccountName, Integer serial) {
          return regenerateKeysWithServiceResponseAsync(resourceGroupName, spatialAnchorsAccountName, serial).toBlocking().single().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
  @throws ErrorResponseException thrown if the request is rejected by server
  @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
  @return the SpatialAnchorsAccountKeysInner object if successful.