models.extract_file_range_result module¶
-
class
models.extract_file_range_result.
ExtractFileRangeResult
(data=None, eof=None, error=None, file_length=None, start_offset=None)[source]¶ Bases:
object
Implementation of the ‘ExtractFileRangeResult’ model.
This will capture output of ExtractFileRange and ExtractNFSFileRange.
- Attributes:
data (list of int|long): The actual data bytes. eof (bool): Will be true if start_offset > file length or EOF is
reached. This is an alternative to using file_length to determine when entire file is read. Used when fetching from a view.
error (ErrorProto): Success/error status of the operation. file_length (int|long): The total length of the file. This field would
be set provided no error had occurred (indicated by error field above).
start_offset (int|long): The offset from which data was read.
-
classmethod
from_dictionary
(dictionary)[source]¶ Creates an instance of this model from a dictionary
- Args:
dictionary (dictionary): A dictionary representation of the object as obtained from the deserialization of the server’s response. The keys MUST match property names in the API description.
- Returns:
object: An instance of this structure class.