4 ms·
Not sure how familiar you are with the vSphere API but the whole thing is done over HTTP, which would explain why it's so string heavy. The SDKs VMware releases
by hangonhn 9y ago
Not sure how familiar you are with the vSphere API but the whole thing is done over HTTP, which would explain why it's so string heavy. The SDKs VMware releases for various languages just papers over this.
- blinkingled 9y agoI guess the least the API could do is provide some suitably named constants that represent the various elements such that the call becomes something like - err = v.Retrieve(ctx, VSphere.DATASTORE, VSphere.SUMMARY, &dss) The constants can just be enums that map to the actual valid string representations. That way API user knows the full extent of the parameters and doesn't have to rely on arbitrary strings.