Source code for contentful_management.upload
from .resource import Resource
"""
contentful_management.upload
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This module implements the Upload class.
API reference: https://www.contentful.com/developers/docs/references/content-management-api/#/reference/uploads
:copyright: (c) 2018 by Contentful GmbH.
:license: MIT, see LICENSE for more details.
"""
[docs]class Upload(Resource):
"""
API reference: https://www.contentful.com/developers/docs/references/content-management-api/#/reference/uploads
"""
def __init__(self, item, **kwargs):
super(Upload, self).__init__(item, **kwargs)
def __repr__(self):
return "<Upload id='{0}'>".format(
self.sys.get('id', '')
)