Exemplo n.º 1
0
def get_bundle_list(api_key, limit, offset, filters=None):
    """Return a list of bundles, paginated by @limit and @offset
    Filter by @collection or by providing a dictionary with filter name
    and value with @filters as described in the API documentation."""
    return _get_object_list(api_key,
                            "collectionbundle",
                            limit,
                            offset,
                            filters_dict=filters)
Exemplo n.º 2
0
def get_image_list(api_key, limit, offset, item=None, filters=None):
    """Return a list of images, paginated by @limit and @offset
    Filter by @item or by providing a dictionary with filter name
    and value with @filters as described in the API documentation."""
    return _get_object_list(api_key,
                            "image",
                            limit,
                            offset,
                            filter=item,
                            filters_dict=filters)
Exemplo n.º 3
0
def get_token_list(api_key, limit, offset, collection=None, filters=None):
    """Return a list of tokens, paginated by @limit and @offset.
    Filter by @collection or by providing a dictionary with filter name
    and value with @filters as described in the API documentation."""
    return _get_object_list(api_key,
                            "token",
                            limit,
                            offset,
                            filter=collection,
                            filters_dict=filters)
Exemplo n.º 4
0
def get_version_list(api_key, limit, offset):
    """Return a list of SDK versions, paginated by @limit and @offset
    Filter by @collection"""
    return _get_object_list(api_key, "version", limit, offset)
Exemplo n.º 5
0
def get_collection_list(api_key, limit, offset):
    "Return a list of collections, paginated by @limit and @offset"
    return _get_object_list(api_key, "collection", limit, offset, filter=None)
Exemplo n.º 6
0
def get_app_list(api_key, limit, offset):
    """Return a list of applications, paginated by @limit and @offset
    Filter by @collection"""
    return _get_object_list(api_key, "app", limit, offset)
Exemplo n.º 7
0
def get_token_list(api_key, limit, offset, collection=None):
    """Return a list of tokens, paginated by @limit and @offset.
    Filter by @collection"""
    return _get_object_list(api_key, "token", limit, offset, filter=collection)
Exemplo n.º 8
0
def get_media_list(api_key, limit, offset):
    """Return a list of media objects, paginated by @limit and @offset"""
    return _get_object_list(api_key, "media", limit, offset)
Exemplo n.º 9
0
def get_bundle_list(api_key, limit, offset):
    """Return a list of bundles, paginated by @limit and @offset
    Filter by @collection"""
    return _get_object_list(api_key, "collectionbundle", limit, offset)
Exemplo n.º 10
0
def get_image_list(api_key, limit, offset, item=None):
    """Return a list of images, paginated by @limit and @offset
    Filter by @item"""
    return _get_object_list(api_key, "image", limit, offset, filter=item)
Exemplo n.º 11
0
def get_bundle_list(api_key, limit, offset):
    """Return a list of bundles, paginated by @limit and @offset
    Filter by @collection"""
    return _get_object_list(api_key, "collectionbundle", limit, offset)
Exemplo n.º 12
0
def get_version_list(api_key, limit, offset):
    """Return a list of SDK versions, paginated by @limit and @offset
    Filter by @collection"""
    return _get_object_list(api_key, "version", limit, offset)
Exemplo n.º 13
0
def get_item_list(api_key, limit, offset, collection=None):
    """Return a list of items, paginated by @limit and @offset
    Filter by @collection"""
    return _get_object_list(api_key, "item", limit, offset, filter=collection)
Exemplo n.º 14
0
def get_collection_list(api_key, limit, offset):
    "Return a list of collections, paginated by @limit and @offset"
    return _get_object_list(api_key, "collection", limit, offset, filter=None)
Exemplo n.º 15
0
def get_media_list(api_key, limit, offset):
    """Return a list of media objects, paginated by @limit and @offset"""
    return _get_object_list(api_key, "media", limit, offset)
Exemplo n.º 16
0
def get_token_list(api_key, limit, offset, collection=None):
    """Return a list of tokens, paginated by @limit and @offset.
    Filter by @collection"""
    return _get_object_list(api_key, "token", limit, offset, filter=collection)
Exemplo n.º 17
0
def get_image_list(api_key, limit, offset, item=None):
    """Return a list of images, paginated by @limit and @offset
    Filter by @item"""
    return _get_object_list(api_key, "image", limit, offset, filter=item)
Exemplo n.º 18
0
def get_item_list(api_key, limit, offset, collection=None):
    """Return a list of items, paginated by @limit and @offset
    Filter by @collection"""
    return _get_object_list(api_key, "item", limit, offset, filter=collection)
Exemplo n.º 19
0
def get_app_list(api_key, limit, offset):
    """Return a list of applications, paginated by @limit and @offset
    Filter by @collection"""
    return _get_object_list(api_key, "app", limit, offset)