| Trees | Indices | Help |
|---|
|
|
MediaUpload for a chunk of bytes. Construct a MediaFileUpload and pass as the media_body parameter of the method.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
|
|||
|
|||
|
Inherited from |
|||
|
|||
Create a new MediaBytesUpload.
Args:
body: string, Bytes of body content.
mimetype: string, Mime-type of the file or default of
'application/octet-stream'.
chunksize: int, File will be uploaded in chunks of this many bytes. Only
used if resumable=True.
resumable: bool, True if this is a resumable upload. False means upload
in a single request.
|
Chunk size for resumable uploads. Returns: Chunk size in bytes.
|
Mime type of the body. Returns: Mime type.
|
Size of upload. Returns: Size of the body, or None of the size is unknown.
|
Whether this upload is resumable. Returns: True if resumable upload or False.
|
Get bytes from the media. Args: begin: int, offset from beginning of file. length: int, number of bytes to read, starting at begin. Returns: A string of bytes read. May be shorter than length if EOF was reached first.
|
Create a JSON representation of a MediaInMemoryUpload. Returns: string, a JSON representation of this instance, suitable to pass to from_json().
|
| Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0.1 on Fri Jun 15 13:13:23 2012 | http://epydoc.sourceforge.net |