This document describes how a VMware engineer can generate the vim types from internal builds:
- Docker
-
Find the desired build of
vcenter-all
. -
Click on the
vsphere-h5client
dependency. -
Click on the
vimbase
dependency. -
Download the published deliverable
wsdl.zip
and inflate it into the directory./gen/sdk
. -
Navigate back to the
vsphere-h5client
dependency. -
Click on the
eam-vcenter
dependency. -
Download the published deliverable
eam-wsdl.zip
and copy itseam-messagetypes.xsd
andeam-types.xsd
files into the directory./gen/sdk
. -
Download the latest OpenAPI specification for the vSphere Web Services API from https://developer.vmware.com/apis by clicking on
Resources
, and then clicking onDownload OpenAPI
. Once downloaded, please copy it to the./gen/sdk
directory, renaming it tovim.yaml
.
⚠️ TODO(akutz)Add step for finding the vim.yaml file from internal builds
-
Open a terminal window.
-
Run
make generate-types
.
⚠️ Please noteThis can take a while the first time because it has to build the image used to generate the types, and building the image includes building OpenSSL and Ruby2, since the GoVmomi generator requires Ruby2, and Ruby2 requires an older version of OpenSSL than is available on recent container images.