There is a features request for revolving a sketch into a solid.
I thought I might try googling a little to see what I could come up with.
Ok…. I think I found the magic term. BRepPrimAPI_MakeRevol
And this looks very very interesting here: