def build(self, image_obj, detail=False):
        image = ViewBuilder.build(self, image_obj, detail)
        href = self.generate_href(image_obj["id"])
        bookmark = self.generate_bookmark(image_obj["id"])

        image["links"] = [
            {
                "rel": "self",
                "href": href,
            },
            {
                "rel": "bookmark",
                "href": bookmark,
            },

        ]

        if detail:
            image["metadata"] = image_obj.get("properties", {})

        return image
Receives a YouTube Token and a YouTube PostUrl from a YouTubeVideoEntry.
dataset/ETHPy150Open nii-cloud/dodai-compute/nova/api/openstack/views/images.py/ViewBuilderV11.build--crossover with--dataset/ETHPy150Open acil-bwh/SlicerCIP/Scripted/attic/PicasaSnap/gdata/youtube/service.py/YouTubeService.GetFormUploadToken