This mechanism allows vRO Actions to be converted to JSDoc annotated Pure Javascript Code without even using any JSdoc annotatio in vRO. This mechanism intelligently fetches the funtionName, version, inputs and outputs from the vRO Actions itself and create comments on basis of it.
/**
* @function getAllDesktopsForAUserInPool
* @version 0.0.0
* @param {string} poolName
* @param {string} username
* @returns string
*/
var DAConfiguration = System.getModule("com.mayank.actions").getDAConfigurationElement();
var podConfiguration = System.getModule("com.mayank.actions").getPodConfigurationElement();
var daUser = System.getModule("com.mayank.actions").getDA();
var podAlias = System.getModule("com.vmware.library.view.configuration").getDefaultOrFirstPod(DAConfiguration, daUser);
var machine = System.getModule("com.vmware.library.view.assignment").getAssignedMachine(poolName, podAlias, username, podConfiguration);
if (machine)
return machine.name;
Here, all the JSDoc comments are derived from vRO Action itself. There is no additional metadata/comment ever added while this vRO action was formed. Hence, it gives us a out-of-the-box funtionality.
If you find any issue with the current scripts, you can create a issue.
If you have any other scripts that you want to share, you can create a pull request.