def upload_file(content_path, timeout:60, custom_headers:nil)
      response = upload_file_async(content_path, timeout:timeout, custom_headers:custom_headers).value!
      nil
    end
def upload_file(content_path, timeout:60, custom_headers:nil)
      response = upload_file_async(content_path, timeout:timeout, custom_headers:custom_headers).value!
      nil
    end
Uploads contents of the file to the image store.

 Uploads contents of the file to the image store. Use this API if the file is
 small enough to upload again if the connection fails. The file's data needs
 to be added to the request body. The contents will be uploaded to the
 specified path. Image store service uses a mark file to indicate the
 availability of the folder. The mark file is an empty file named "_.dir". The
 mark file is generated by the image store service when all files in a folder
 are uploaded. When using File-by-File approach to upload application package
 in REST, the image store service isn't aware of the file hierarchy of the
 application package; you need to create a mark file per folder and upload it
 last, to let the image store service know that the folder is complete.

 @param content_path [String] Relative path to file or folder in the image
 store from its root.
 @param timeout [Integer] The server timeout for performing the operation in
 seconds. This timeout specifies the time duration that the client is willing
 to wait for the requested operation to complete. The default value for this
 parameter is 60 seconds.
 @param custom_headers [Hash{String => String}] A hash of custom headers that
 will be added to the HTTP request.