Ruby VIM SDK is a gem to simplify making vSphere API calls.