Package com.qtsurfer.api.sdk.internal
Class DatasetUploads
java.lang.Object
com.qtsurfer.api.sdk.internal.DatasetUploads
Transfers dataset bytes to presigned upload targets without an API-auth interceptor.
- Since:
- 0.18.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidupload(HttpClient client, com.qtsurfer.api.client.model.DatasetCreated created, Path file) Upload a file using the initial target returned when a dataset is created.static voidupload(HttpClient client, com.qtsurfer.api.client.model.DatasetUploadSession session, Path file) Upload a file using a target opened for an existing dataset.
-
Method Details
-
upload
public static void upload(HttpClient client, com.qtsurfer.api.client.model.DatasetCreated created, Path file) Upload a file using the initial target returned when a dataset is created.- Parameters:
client- HTTP client used for the transfercreated- newly created dataset containing its first upload targetfile- readable regular file to transfer- Throws:
QTSUploadError- when the input is invalid, the transfer fails, or the target rejects it
-
upload
public static void upload(HttpClient client, com.qtsurfer.api.client.model.DatasetUploadSession session, Path file) Upload a file using a target opened for an existing dataset.- Parameters:
client- HTTP client used for the transfersession- upload session containing the presigned targetfile- readable regular file to transfer- Throws:
QTSUploadError- when the input is invalid, the transfer fails, or the target rejects it
-