class documentation

class UploadSessionLookupError(bb.Union): (source)

Known subclasses: dropbox.files.UploadSessionAppendError

View In Hierarchy

This class acts as a tagged union. Only one of the ``is_*`` methods will return true. To get the associated value of a tag (if one exists), use the corresponding ``get_*`` method. :ivar files.UploadSessionLookupError.not_found: The upload session ID was not found or has expired. Upload sessions are valid for 7 days. :ivar UploadSessionOffsetError UploadSessionLookupError.incorrect_offset: The specified offset was incorrect. See the value for the correct offset. This error may occur when a previous request was received and processed successfully but the client did not receive the response, e.g. due to a network error. :ivar files.UploadSessionLookupError.closed: You are attempting to append data to an upload session that has already been closed (i.e. committed). :ivar files.UploadSessionLookupError.not_closed: The session must be closed before calling upload_session/finish_batch. :ivar files.UploadSessionLookupError.too_large: You can not append to the upload session because the size of a file should not reach the max file size limit (i.e. 350GB). :ivar files.UploadSessionLookupError.concurrent_session_invalid_offset: For concurrent upload sessions, offset needs to be multiple of 4194304 bytes. :ivar files.UploadSessionLookupError.concurrent_session_invalid_data_size: For concurrent upload sessions, only chunks with size multiple of 4194304 bytes can be uploaded. :ivar files.UploadSessionLookupError.payload_too_large: The request payload must be at most 150 MB.

Class Method incorrect_offset Create an instance of this class set to the ``incorrect_offset`` tag with value ``val``.
Method get_incorrect_offset The specified offset was incorrect. See the value for the correct offset. This error may occur when a previous request was received and processed successfully but the client did not receive the response, e...
Method is_closed Check if the union tag is ``closed``.
Method is_concurrent_session_invalid_data_size Check if the union tag is ``concurrent_session_invalid_data_size``.
Method is_concurrent_session_invalid_offset Check if the union tag is ``concurrent_session_invalid_offset``.
Method is_incorrect_offset Check if the union tag is ``incorrect_offset``.
Method is_not_closed Check if the union tag is ``not_closed``.
Method is_not_found Check if the union tag is ``not_found``.
Method is_other Check if the union tag is ``other``.
Method is_payload_too_large Check if the union tag is ``payload_too_large``.
Method is_too_large Check if the union tag is ``too_large``.
Class Variable closed Undocumented
Class Variable concurrent_session_invalid_data_size Undocumented
Class Variable concurrent_session_invalid_offset Undocumented
Class Variable not_closed Undocumented
Class Variable not_found Undocumented
Class Variable other Undocumented
Class Variable payload_too_large Undocumented
Class Variable too_large Undocumented
Method _process_custom_annotations Undocumented
Class Variable _catch_all Undocumented
@classmethod
def incorrect_offset(cls, val): (source)

Create an instance of this class set to the ``incorrect_offset`` tag with value ``val``. :param UploadSessionOffsetError val: :rtype: UploadSessionLookupError

def get_incorrect_offset(self): (source)

The specified offset was incorrect. See the value for the correct offset. This error may occur when a previous request was received and processed successfully but the client did not receive the response, e.g. due to a network error. Only call this if :meth:`is_incorrect_offset` is true. :rtype: UploadSessionOffsetError

def is_closed(self): (source)

Check if the union tag is ``closed``. :rtype: bool

def is_concurrent_session_invalid_data_size(self): (source)

Check if the union tag is ``concurrent_session_invalid_data_size``. :rtype: bool

def is_concurrent_session_invalid_offset(self): (source)

Check if the union tag is ``concurrent_session_invalid_offset``. :rtype: bool

def is_incorrect_offset(self): (source)

Check if the union tag is ``incorrect_offset``. :rtype: bool

def is_not_closed(self): (source)

Check if the union tag is ``not_closed``. :rtype: bool

def is_not_found(self): (source)

Check if the union tag is ``not_found``. :rtype: bool

def is_other(self): (source)

Check if the union tag is ``other``. :rtype: bool

def is_payload_too_large(self): (source)

Check if the union tag is ``payload_too_large``. :rtype: bool

def is_too_large(self): (source)

Check if the union tag is ``too_large``. :rtype: bool

Undocumented

concurrent_session_invalid_data_size = (source)

Undocumented

concurrent_session_invalid_offset = (source)

Undocumented

not_closed = (source)

Undocumented

not_found = (source)

Undocumented

Undocumented

payload_too_large = (source)

Undocumented

too_large = (source)

Undocumented

def _process_custom_annotations(self, annotation_type, field_path, processor): (source)

Undocumented

_catch_all: str = (source)

Undocumented