nucleus.upload_response#
Response for long upload job. For internal use only! |
- class nucleus.upload_response.UploadResponse(json)#
Response for long upload job. For internal use only!
- Parameters:
json (dict) – Payload from which to construct the UploadResponse.
- dataset_id#
The scale-generated id for the dataset that was uploaded to
- new_items#
How many items are new in the upload
- updated_items#
How many items were updated
- ignored_items#
How many items were ignored
- upload_errors#
A list of errors encountered during upload
- error_codes#
A set of all the error codes encountered during upload
- error_payload#
The detailed error payload returned from the endpoint.
- json()#
return: { new_items: int, updated_items: int, ignored_items: int, upload_errors: int, }
- Return type:
dict
- record_error(response, num_uploads)#
- Parameters:
response – json response
num_uploads – len of itemss tried to upload
- update_response(json)#
- Parameters:
json – { new_items: int, updated_items: int, ignored_items: int, upload_errors: int, }