Menu
Introduction
Getting Started
Developer guide
Release
Architecture
CLI
Technical documentations
Version
Publication date

Mar 9, 2022

Confidentiality
Public
Reactions
1
Share

DataHubS3ServerService

Class to manage file upload to this lab as an S3 server for the data hub.

Functions
__init__

Initialize the service with a bucket name

bucket_name : str
abort_multipart_upload

Abort a multipart upload and clean up temp files

key : str
upload_id : str
complete_multipart_upload

Complete multipart upload and return ETag

key : str
upload_id : str
parts : list
Return type : str
create_bucket

Create a bucket

delete_object

Delete an object from the bucket

key : str
delete_objects

Delete multiple objects, ignore if the object does not exist

keys : list
_description_
get_additional_tags

Return the additional tags to save on the object, it skips the predefined tags

tags : dict
Return type : dict
get_datahub_tag

Get the datahub tag used to tags the objects that are stored in the datahub

Return type : Tag
get_object

Get an object from the bucket

key : str
Return type : FileResponse
get_object_tags

Get the tags of an object

key : str
Return type : S3GetTagResponse
get_tag_origin

Get the origin of a tag

Return type : TagOrigins
head_object

Head an object from the bucket

key : str
Return type : dict
initiate_multipart_upload

Initiate a multipart upload and return upload ID

key : str
last_modified : float
Return type : str
list_objects

List objects in a bucket

prefix : str
max_keys : int - 1000
delimiter : str
continuation_token : str
start_after : str
Return type : ListObjectsV2OutputTypeDef
update_object_tags

Update the tags of an object

key : str
tags : S3UpdateTagRequest
update_object_tags_dict

Update the tags of an object

key : str
tags : dict
upload_object
upload_part

Upload a part for multipart upload and return ETag

key : str
upload_id : str
part_number : int
data : ByteString
Return type : str
convert_query_param_string_to_dict @staticmethod

Convert a query parameter string to a dictionary

query_param : str
the query parameter string
Return type : dict
get_instance @staticmethod

Get an instance of the DataHubS3ServerService

Return type : DataHubS3ServerService
Shine Logo
Technical bricks to reuse or customize

Have you developed a brick?

Share it to accelerate projects for the entire community.