Skip to content

Commit

Permalink
See windmill-labs/windmill@57bc070 from refs/tags/v1.253.3
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenfiszel committed Jan 25, 2024
1 parent 6c06d3e commit 7ed944d
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
1 change: 1 addition & 0 deletions windmill-api/models/LargeFileStorage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
export type LargeFileStorage = {
type?: LargeFileStorage.type;
s3_resource_path?: string;
public_resource?: boolean;
};

export namespace LargeFileStorage {
Expand Down
37 changes: 37 additions & 0 deletions windmill-api/services/HelpersService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ export class HelpersService {
}): CancelablePromise<{
next_marker?: string;
windmill_large_files: Array<WindmillLargeFile>;
restricted_access?: boolean;
}> {
return __request(OpenAPI, {
method: 'GET',
Expand Down Expand Up @@ -395,6 +396,7 @@ export class HelpersService {
is_final: boolean;
cancel_upload: boolean;
s3_resource_path?: string;
file_expiration?: string;
},
}): CancelablePromise<{
upload_id: string;
Expand All @@ -413,4 +415,39 @@ export class HelpersService {
});
}

/**
* Download file to S3 bucket
* @returns any Chunk of the downloaded file
* @throws ApiError
*/
public static multipartFileDownload({
workspace,
requestBody,
}: {
workspace: string,
/**
* Query args for a multipart file upload to S3
*/
requestBody: {
file_key: string;
part_number: number;
file_size?: number;
s3_resource_path?: string;
},
}): CancelablePromise<{
file_size?: number;
part_content: Array<number>;
next_part_number?: number;
}> {
return __request(OpenAPI, {
method: 'POST',
url: '/w/{workspace}/job_helpers/multipart_download_s3_file',
path: {
'workspace': workspace,
},
body: requestBody,
mediaType: 'application/json',
});
}

}

0 comments on commit 7ed944d

Please sign in to comment.