Class AsyncRawFilesClient


  • public class AsyncRawFilesClient
    extends java.lang.Object
    • Constructor Detail

      • AsyncRawFilesClient

        public AsyncRawFilesClient​(ClientOptions clientOptions)
    • Method Detail

      • retrieve

        public java.util.concurrent.CompletableFuture<ExtendClientHttpResponse<File>> retrieve​(java.lang.String id)
        Fetch a file by its ID.
      • delete

        public java.util.concurrent.CompletableFuture<ExtendClientHttpResponse<FilesDeleteResponse>> delete​(java.lang.String id)
        Delete a file and all associated data from Extend. This operation is permanent and cannot be undone.

        This endpoint can be used if you'd like to manage data retention on your own rather than automated data retention policies. Or make one-off deletions for your downstream customers.

      • delete

        public java.util.concurrent.CompletableFuture<ExtendClientHttpResponse<FilesDeleteResponse>> delete​(java.lang.String id,
                                                                                                            RequestOptions requestOptions)
        Delete a file and all associated data from Extend. This operation is permanent and cannot be undone.

        This endpoint can be used if you'd like to manage data retention on your own rather than automated data retention policies. Or make one-off deletions for your downstream customers.

      • delete

        public java.util.concurrent.CompletableFuture<ExtendClientHttpResponse<FilesDeleteResponse>> delete​(java.lang.String id,
                                                                                                            FilesDeleteRequest request)
        Delete a file and all associated data from Extend. This operation is permanent and cannot be undone.

        This endpoint can be used if you'd like to manage data retention on your own rather than automated data retention policies. Or make one-off deletions for your downstream customers.

      • delete

        public java.util.concurrent.CompletableFuture<ExtendClientHttpResponse<FilesDeleteResponse>> delete​(java.lang.String id,
                                                                                                            FilesDeleteRequest request,
                                                                                                            RequestOptions requestOptions)
        Delete a file and all associated data from Extend. This operation is permanent and cannot be undone.

        This endpoint can be used if you'd like to manage data retention on your own rather than automated data retention policies. Or make one-off deletions for your downstream customers.

      • upload

        public java.util.concurrent.CompletableFuture<ExtendClientHttpResponse<File>> upload​(java.io.File file,
                                                                                             FilesUploadRequest request)
        Upload and create a new file in Extend.

        This endpoint accepts file contents and registers them as a File in Extend, which can be used for running workflows, creating evaluation set items, parsing, etc.

        If an uploaded file is detected as a Word or PowerPoint document, it will be automatically converted to a PDF.

        Supported file types can be found here.

        This endpoint requires multipart form encoding. Most HTTP clients will handle this encoding automatically (see the examples).

      • upload

        public java.util.concurrent.CompletableFuture<ExtendClientHttpResponse<File>> upload​(java.io.File file,
                                                                                             FilesUploadRequest request,
                                                                                             RequestOptions requestOptions)
        Upload and create a new file in Extend.

        This endpoint accepts file contents and registers them as a File in Extend, which can be used for running workflows, creating evaluation set items, parsing, etc.

        If an uploaded file is detected as a Word or PowerPoint document, it will be automatically converted to a PDF.

        Supported file types can be found here.

        This endpoint requires multipart form encoding. Most HTTP clients will handle this encoding automatically (see the examples).