code: public ImageInner createOrUpdate(String resourceGroupName, String imageName, ImageInner parameters) {
          return createOrUpdateWithServiceResponseAsync(resourceGroupName, imageName, parameters).toBlocking().last().body();
      }
docs: Create or update an image.
  
  @param resourceGroupName The name of the resource group.
  @param imageName The name of the image.
  @param parameters Parameters supplied to the Create Image operation.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @throws CloudException thrown if the request is rejected by server
  @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
  @return the ImageInner object if successful.