def uri(self, parent, tag=None, hash_key=None, fullname=True):
    name = (self.fullname(parent) if fullname else self.name)
    return generate_object_uri(parent.metadata.project, name, tag=(tag or parent.metadata.tag), hash_key=hash_key)
def uri(self, parent, tag=None, hash_key=None, fullname=True):
    name = (self.fullname(parent) if fullname else self.name)
    return generate_object_uri(parent.metadata.project, name, tag=(tag or parent.metadata.tag), hash_key=hash_key)