Interface MorpheusFileCopyService


public interface MorpheusFileCopyService
  • Method Details

    • copyToServer

      io.reactivex.rxjava3.core.Single<ServiceResponse> copyToServer(ComputeServer server, String fileName, String filePath, InputStream sourceStream, Long contentLength)
      Copy a file to the target server.
      Parameters:
      server - The target server
      fileName - name of the copied file for the file copy request URL.
      filePath - path on the server, including the file name (/some/path/file.txt), to place the file copy.
      sourceStream - source InputStream to copy to the server
      contentLength - size of the file to be copied
      Returns:
      ServiceResponse containing the success status of the copy operation
    • copyToServer

      io.reactivex.rxjava3.core.Single<ServiceResponse> copyToServer(ComputeServer server, String fileName, String filePath, InputStream sourceStream, Long contentLength, Long timeout)
      Copy a file to the target server.
      Parameters:
      server - The target server
      fileName - name of the copied file for the file copy request URL.
      filePath - path on the server, including the file name (/some/path/file.txt), to place the file copy.
      sourceStream - source InputStream to copy to the server
      contentLength - size of the file to be copied
      timeout - max timeout to initialize the copy operation
      Returns:
      ServiceResponse containing the success status of the copy operation
    • copyToServer

      io.reactivex.rxjava3.core.Single<ServiceResponse> copyToServer(ComputeServer server, String fileName, String filePath, InputStream sourceStream, Long contentLength, Long timeout, Boolean autoExpand)
      Copy a file to the target server.
      Parameters:
      server - The target server
      fileName - name of the copied file for the file copy request URL.
      filePath - path on the server, including the file name (/some/path/file.txt), to place the file copy.
      sourceStream - source InputStream to copy to the server
      contentLength - size of the file to be copied
      timeout - max timeout to initialize the copy operation
      autoExpand - automatically expand .tar.gz compressed files during upload
      Returns:
      ServiceResponse containing the success status of the copy operation
    • generateUrl

      io.reactivex.rxjava3.core.Single<ServiceResponse> generateUrl(String fileName, User user, InputStream sourceStream, Long contentLength, Long timeout, Boolean autoExpand, String contentType)
      Create a url to copy a file to the target server.
      Parameters:
      fileName - name of the copied file for the file copy request URL.
      sourceStream - source InputStream to copy to the server
      contentLength - size of the file to be copied
      timeout - max timeout to initialize the copy operation
      autoExpand - automatically expand .tar.gz compressed files during upload
      contentType - override the application/octet-stream content type when serving the file
      Returns:
      ServiceResponse containing the success status of the generate operation and data property containing the url
    • generateUrl

      io.reactivex.rxjava3.core.Single<ServiceResponse> generateUrl(String fileName, User user, InputStream sourceStream, Long contentLength, Long timeout, Boolean autoExpand)
      Create a url to copy a file to the target server.
      Parameters:
      fileName - name of the copied file for the file copy request URL.
      sourceStream - source InputStream to copy to the server
      contentLength - size of the file to be copied
      timeout - max timeout to initialize the copy operation
      autoExpand - automatically expand .tar.gz compressed files during upload
      Returns:
      ServiceResponse containing the success status of the generate operation and data property containing the url
    • generateUrl

      io.reactivex.rxjava3.core.Single<ServiceResponse> generateUrl(String fileName, User user, InputStream sourceStream, Long contentLength, Long timeout)
      Create a url to copy a file to the target server.
      Parameters:
      fileName - name of the copied file for the file copy request URL.
      sourceStream - source InputStream to copy to the server
      contentLength - size of the file to be copied
      timeout - max timeout to initialize the copy operation
      Returns:
      ServiceResponse containing the success status of the generate operation and data property containing the url
    • generateUrl

      io.reactivex.rxjava3.core.Single<ServiceResponse> generateUrl(String fileName, User user, InputStream sourceStream, Long contentLength)
      Create a url to copy a file to the target server.
      Parameters:
      fileName - name of the copied file for the file copy request URL.
      sourceStream - source InputStream to copy to the server
      contentLength - size of the file to be copied
      Returns:
      ServiceResponse containing the success status of the generate operation and data property containing the url
    • deleteUrl

      io.reactivex.rxjava3.core.Single<ServiceResponse> deleteUrl(String fileCopyUrl)
      Expires AND deletes the temporary file content of a file copy url
      Parameters:
      fileCopyUrl - the original URL submitted
      Returns:
      ServiceResponse containing the success status of the copy operation