github.com/vmware/govmomi@v0.37.1/gen/README.md (about) 1 # Generating the types 2 3 This document describes how a VMware engineer can generate the vim types from internal builds: 4 5 ## Requirements 6 7 * Docker 8 9 ## Steps 10 11 1. Find the desired build of `vcenter-all`. 12 2. Click on the `vsphere-h5client` dependency. 13 3. Click on the `vimbase` dependency. 14 4. Download the published deliverable `wsdl.zip` and inflate it into the directory `./gen/sdk`. 15 5. Navigate back to the `vsphere-h5client` dependency. 16 6. Click on the `eam-vcenter` dependency. 17 7. Download the published deliverable `eam-wsdl.zip` and copy its `eam-messagetypes.xsd` and `eam-types.xsd` files into the directory `./gen/sdk`. 18 8. Download the latest OpenAPI specification for the vSphere Web Services API from https://developer.vmware.com/apis by clicking on `Resources`, and then clicking on `Download OpenAPI`. Once downloaded, please copy it to the `./gen/sdk` directory, renaming it to `vim.yaml`. 19 20 --- 21 22 :warning: TODO(akutz) 23 24 Add step for finding the vim.yaml file from internal builds 25 26 --- 27 28 9. Open a terminal window. 29 10. Run `make generate-types`. 30 31 --- 32 33 :warning: **Please note** 34 35 This 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. 36 37 ---