Class AsyncClassifyRunsClient


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

      • AsyncClassifyRunsClient

        public AsyncClassifyRunsClient​(ClientOptions clientOptions)
    • Method Detail

      • list

        public java.util.concurrent.CompletableFuture<ClassifyRunsListResponse> list()
        List all classify runs.

        Returns a summary of each run. Use GET /classify_runs/{id} to retrieve the full object including output and config.

      • list

        public java.util.concurrent.CompletableFuture<ClassifyRunsListResponse> list​(RequestOptions requestOptions)
        List all classify runs.

        Returns a summary of each run. Use GET /classify_runs/{id} to retrieve the full object including output and config.

      • list

        public java.util.concurrent.CompletableFuture<ClassifyRunsListResponse> list​(ClassifyRunsListRequest request)
        List all classify runs.

        Returns a summary of each run. Use GET /classify_runs/{id} to retrieve the full object including output and config.

      • create

        public java.util.concurrent.CompletableFuture<ClassifyRun> create​(ClassifyRunsCreateRequest request)
        Classify a document using an existing classifier or an inline configuration.

        The request returns immediately with a PROCESSING status. Use webhooks or poll the Get Classify Run endpoint for results.

      • create

        public java.util.concurrent.CompletableFuture<ClassifyRun> create​(ClassifyRunsCreateRequest request,
                                                                          RequestOptions requestOptions)
        Classify a document using an existing classifier or an inline configuration.

        The request returns immediately with a PROCESSING status. Use webhooks or poll the Get Classify Run endpoint for results.

      • retrieve

        public java.util.concurrent.CompletableFuture<ClassifyRun> retrieve​(java.lang.String id)
        Retrieve details about a specific classify run, including its status and outputs.

        A common use case for this endpoint is to poll for the status and final output of a classify run when using the Create Classify Run endpoint. For instance, if you do not want to not configure webhooks to receive the output via completion/failure events.

      • retrieve

        public java.util.concurrent.CompletableFuture<ClassifyRun> retrieve​(java.lang.String id,
                                                                            RequestOptions requestOptions)
        Retrieve details about a specific classify run, including its status and outputs.

        A common use case for this endpoint is to poll for the status and final output of a classify run when using the Create Classify Run endpoint. For instance, if you do not want to not configure webhooks to receive the output via completion/failure events.

      • retrieve

        public java.util.concurrent.CompletableFuture<ClassifyRun> retrieve​(java.lang.String id,
                                                                            ClassifyRunsRetrieveRequest request)
        Retrieve details about a specific classify run, including its status and outputs.

        A common use case for this endpoint is to poll for the status and final output of a classify run when using the Create Classify Run endpoint. For instance, if you do not want to not configure webhooks to receive the output via completion/failure events.

      • retrieve

        public java.util.concurrent.CompletableFuture<ClassifyRun> retrieve​(java.lang.String id,
                                                                            ClassifyRunsRetrieveRequest request,
                                                                            RequestOptions requestOptions)
        Retrieve details about a specific classify run, including its status and outputs.

        A common use case for this endpoint is to poll for the status and final output of a classify run when using the Create Classify Run endpoint. For instance, if you do not want to not configure webhooks to receive the output via completion/failure events.

      • delete

        public java.util.concurrent.CompletableFuture<ClassifyRunsDeleteResponse> delete​(java.lang.String id)
        Delete a classify run 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<ClassifyRunsDeleteResponse> delete​(java.lang.String id,
                                                                                         RequestOptions requestOptions)
        Delete a classify run 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<ClassifyRunsDeleteResponse> delete​(java.lang.String id,
                                                                                         ClassifyRunsDeleteRequest request)
        Delete a classify run 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<ClassifyRunsDeleteResponse> delete​(java.lang.String id,
                                                                                         ClassifyRunsDeleteRequest request,
                                                                                         RequestOptions requestOptions)
        Delete a classify run 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.

      • cancel

        public java.util.concurrent.CompletableFuture<ClassifyRun> cancel​(java.lang.String id)
        Cancel an in-progress classify run.

        Note: Only classify runs with a status of "PROCESSING" can be cancelled. Classifier runs that have already completed, failed, or been cancelled cannot be cancelled again.

      • cancel

        public java.util.concurrent.CompletableFuture<ClassifyRun> cancel​(java.lang.String id,
                                                                          RequestOptions requestOptions)
        Cancel an in-progress classify run.

        Note: Only classify runs with a status of "PROCESSING" can be cancelled. Classifier runs that have already completed, failed, or been cancelled cannot be cancelled again.

      • cancel

        public java.util.concurrent.CompletableFuture<ClassifyRun> cancel​(java.lang.String id,
                                                                          ClassifyRunsCancelRequest request)
        Cancel an in-progress classify run.

        Note: Only classify runs with a status of "PROCESSING" can be cancelled. Classifier runs that have already completed, failed, or been cancelled cannot be cancelled again.

      • cancel

        public java.util.concurrent.CompletableFuture<ClassifyRun> cancel​(java.lang.String id,
                                                                          ClassifyRunsCancelRequest request,
                                                                          RequestOptions requestOptions)
        Cancel an in-progress classify run.

        Note: Only classify runs with a status of "PROCESSING" can be cancelled. Classifier runs that have already completed, failed, or been cancelled cannot be cancelled again.