Package apiclient :: Module http :: Class MediaUpload
[hide private]
[frames] | no frames]

Class MediaUpload

source code


Describes a media object to upload.

Base class that defines the interface of MediaUpload subclasses.

Instance Methods [hide private]
 
getbytes(self, begin, end) source code
 
size(self) source code
 
chunksize(self) source code
 
mimetype(self) source code
 
resumable(self) source code
 
_to_json(self, strip=None)
Utility function for creating a JSON representation of a MediaUpload.
source code
 
to_json(self)
Create a JSON representation of an instance of MediaUpload.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Methods [hide private]
 
new_from_json(cls, s)
Utility class method to instantiate a MediaUpload subclass from a JSON representation produced by to_json().
source code
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

_to_json(self, strip=None)

source code 
Utility function for creating a JSON representation of a MediaUpload.

Args:
  strip: array, An array of names of members to not include in the JSON.

Returns:
   string, a JSON representation of this instance, suitable to pass to
   from_json().

to_json(self)

source code 
Create a JSON representation of an instance of MediaUpload.

Returns:
   string, a JSON representation of this instance, suitable to pass to
   from_json().

new_from_json(cls, s)
Class Method

source code 
Utility class method to instantiate a MediaUpload subclass from a JSON
representation produced by to_json().

Args:
  s: string, JSON from to_json().

Returns:
  An instance of the subclass of MediaUpload that was serialized with
  to_json().