@@ -298,6 +298,7 @@ struct ICEBERG_REST_EXPORT OAuthTokenResponse {
298298 bool operator ==(const OAuthTokenResponse&) const = default ;
299299};
300300
301+ // / \brief Request to initiate a server-side scan planning operation.
301302struct ICEBERG_REST_EXPORT PlanTableScanRequest {
302303 std::optional<int64_t > snapshot_id;
303304 std::vector<std::string> select;
@@ -314,6 +315,8 @@ struct ICEBERG_REST_EXPORT PlanTableScanRequest {
314315 bool operator ==(const PlanTableScanRequest&) const ;
315316};
316317
318+ // / \brief Base response containing scan tasks and delete files returned by scan plan
319+ // / endpoints.
317320struct ICEBERG_REST_EXPORT BaseScanTaskResponse {
318321 std::vector<std::string> plan_tasks;
319322 std::vector<FileScanTask> file_scan_tasks;
@@ -325,6 +328,8 @@ struct ICEBERG_REST_EXPORT BaseScanTaskResponse {
325328 bool operator ==(const BaseScanTaskResponse&) const ;
326329};
327330
331+ // / \brief Response from initiating a scan planning operation, including plan status and
332+ // / initial scan tasks.
328333struct ICEBERG_REST_EXPORT PlanTableScanResponse : BaseScanTaskResponse {
329334 std::string plan_status;
330335 std::string plan_id;
@@ -335,6 +340,8 @@ struct ICEBERG_REST_EXPORT PlanTableScanResponse : BaseScanTaskResponse {
335340 bool operator ==(const PlanTableScanResponse&) const ;
336341};
337342
343+ // / \brief Response from polling an asynchronous scan plan, including current status and
344+ // / available scan tasks.
338345struct ICEBERG_REST_EXPORT FetchPlanningResultResponse : BaseScanTaskResponse {
339346 PlanStatus plan_status;
340347 // TODO: Add credentials.
@@ -344,6 +351,7 @@ struct ICEBERG_REST_EXPORT FetchPlanningResultResponse : BaseScanTaskResponse {
344351 bool operator ==(const FetchPlanningResultResponse&) const ;
345352};
346353
354+ // / \brief Request to fetch the scan tasks for a given plan task token.
347355struct ICEBERG_REST_EXPORT FetchScanTasksRequest {
348356 std::string planTask;
349357
@@ -352,6 +360,7 @@ struct ICEBERG_REST_EXPORT FetchScanTasksRequest {
352360 bool operator ==(const FetchScanTasksRequest&) const ;
353361};
354362
363+ // / \brief Response containing the file scan tasks for a given plan task token.
355364struct ICEBERG_REST_EXPORT FetchScanTasksResponse : BaseScanTaskResponse {
356365 Status Validate () const ;
357366
0 commit comments