bin/binary.py
def Binary(data):
    """Builds and returns the Binary JSON"""

    return {
        "request": {
            "method": "PUT",
            "url"   : "Binary/" + data["id"]
        },
        "resource": {
            "id"          : data["id"],
            "resourceType": "Binary",
            "contentType" : data["mime_type"],
            "content"     : data["content"]
        }
    }
Builds and returns the Binary JSON
Builds and returns the Binary JSON
Builds and returns the Binary JSON
def Binary(data):
    return {
        "request": {
            "method": "PUT",
            "url"   : "Binary/" + data["id"]
        },
        "resource": {
            "id"          : data["id"],
            "resourceType": "Binary",
            "contentType" : data["mime_type"],
            "content"     : data["content"]
        }
    }
def Binary ( data ) : return { "request" : { "method" : "PUT" , "url" : "Binary/" + data [ "id" ] } , "resource" : { "id" : data [ "id" ] , "resourceType" : "Binary" , "contentType" : data [ "mime_type" ] , "content" : data [ "content" ] } }
Builds and returns the Binary JSON
Builds and returns the Binary JSON
"""Builds and returns the Binary JSON"""
data