diff --git a/Godeps/Godeps.json b/Godeps/Godeps.json index 7c5802e4b..3f0ea9b1b 100644 --- a/Godeps/Godeps.json +++ b/Godeps/Godeps.json @@ -1266,78 +1266,78 @@ }, { "ImportPath": "github.com/vmware/govmomi", - "Comment": "v0.3.0-18-g3b66976", - "Rev": "3b669760f460befb135048aea80d2f5fa13885ca" + "Comment": "v0.6.1", + "Rev": "18154e511bc8f6bc1fffe2e47d11ef4f1931a044" }, { "ImportPath": "github.com/vmware/govmomi/find", - "Comment": "v0.3.0-18-g3b66976", - "Rev": "3b669760f460befb135048aea80d2f5fa13885ca" + "Comment": "v0.6.1", + "Rev": "18154e511bc8f6bc1fffe2e47d11ef4f1931a044" }, { "ImportPath": "github.com/vmware/govmomi/list", - "Comment": "v0.3.0-18-g3b66976", - "Rev": "3b669760f460befb135048aea80d2f5fa13885ca" + "Comment": "v0.6.1", + "Rev": "18154e511bc8f6bc1fffe2e47d11ef4f1931a044" }, { "ImportPath": "github.com/vmware/govmomi/object", - "Comment": "v0.3.0-18-g3b66976", - "Rev": "3b669760f460befb135048aea80d2f5fa13885ca" + "Comment": "v0.6.1", + "Rev": "18154e511bc8f6bc1fffe2e47d11ef4f1931a044" }, { "ImportPath": "github.com/vmware/govmomi/property", - "Comment": "v0.3.0-18-g3b66976", - "Rev": "3b669760f460befb135048aea80d2f5fa13885ca" + "Comment": "v0.6.1", + "Rev": "18154e511bc8f6bc1fffe2e47d11ef4f1931a044" }, { "ImportPath": "github.com/vmware/govmomi/session", - "Comment": "v0.3.0-18-g3b66976", - "Rev": "3b669760f460befb135048aea80d2f5fa13885ca" + "Comment": "v0.6.1", + "Rev": "18154e511bc8f6bc1fffe2e47d11ef4f1931a044" }, { "ImportPath": "github.com/vmware/govmomi/task", - "Comment": "v0.3.0-18-g3b66976", - "Rev": "3b669760f460befb135048aea80d2f5fa13885ca" + "Comment": "v0.6.1", + "Rev": "18154e511bc8f6bc1fffe2e47d11ef4f1931a044" }, { "ImportPath": "github.com/vmware/govmomi/vim25", - "Comment": "v0.3.0-18-g3b66976", - "Rev": "3b669760f460befb135048aea80d2f5fa13885ca" + "Comment": "v0.6.1", + "Rev": "18154e511bc8f6bc1fffe2e47d11ef4f1931a044" }, { "ImportPath": "github.com/vmware/govmomi/vim25/debug", - "Comment": "v0.3.0-18-g3b66976", - "Rev": "3b669760f460befb135048aea80d2f5fa13885ca" + "Comment": "v0.6.1", + "Rev": "18154e511bc8f6bc1fffe2e47d11ef4f1931a044" }, { "ImportPath": "github.com/vmware/govmomi/vim25/methods", - "Comment": "v0.3.0-18-g3b66976", - "Rev": "3b669760f460befb135048aea80d2f5fa13885ca" + "Comment": "v0.6.1", + "Rev": "18154e511bc8f6bc1fffe2e47d11ef4f1931a044" }, { "ImportPath": "github.com/vmware/govmomi/vim25/mo", - "Comment": "v0.3.0-18-g3b66976", - "Rev": "3b669760f460befb135048aea80d2f5fa13885ca" + "Comment": "v0.6.1", + "Rev": "18154e511bc8f6bc1fffe2e47d11ef4f1931a044" }, { "ImportPath": "github.com/vmware/govmomi/vim25/progress", - "Comment": "v0.3.0-18-g3b66976", - "Rev": "3b669760f460befb135048aea80d2f5fa13885ca" + "Comment": "v0.6.1", + "Rev": "18154e511bc8f6bc1fffe2e47d11ef4f1931a044" }, { "ImportPath": "github.com/vmware/govmomi/vim25/soap", - "Comment": "v0.3.0-18-g3b66976", - "Rev": "3b669760f460befb135048aea80d2f5fa13885ca" + "Comment": "v0.6.1", + "Rev": "18154e511bc8f6bc1fffe2e47d11ef4f1931a044" }, { "ImportPath": "github.com/vmware/govmomi/vim25/types", - "Comment": "v0.3.0-18-g3b66976", - "Rev": "3b669760f460befb135048aea80d2f5fa13885ca" + "Comment": "v0.6.1", + "Rev": "18154e511bc8f6bc1fffe2e47d11ef4f1931a044" }, { "ImportPath": "github.com/vmware/govmomi/vim25/xml", - "Comment": "v0.3.0-18-g3b66976", - "Rev": "3b669760f460befb135048aea80d2f5fa13885ca" + "Comment": "v0.6.1", + "Rev": "18154e511bc8f6bc1fffe2e47d11ef4f1931a044" }, { "ImportPath": "github.com/xanzy/go-cloudstack/cloudstack", diff --git a/builtin/providers/vsphere/resource_vsphere_virtual_machine.go b/builtin/providers/vsphere/resource_vsphere_virtual_machine.go index d36aa7880..74da959d2 100644 --- a/builtin/providers/vsphere/resource_vsphere_virtual_machine.go +++ b/builtin/providers/vsphere/resource_vsphere_virtual_machine.go @@ -72,7 +72,7 @@ type virtualMachine struct { cluster string resourcePool string datastore string - vcpu int + vcpu int32 memoryMb int64 memoryAllocation memoryAllocation template string @@ -423,7 +423,7 @@ func resourceVSphereVirtualMachineUpdate(d *schema.ResourceData, meta interface{ configSpec := types.VirtualMachineConfigSpec{} if d.HasChange("vcpu") { - configSpec.NumCPUs = d.Get("vcpu").(int) + configSpec.NumCPUs = int32(d.Get("vcpu").(int)) hasChanges = true rebootRequired = true } @@ -505,7 +505,7 @@ func resourceVSphereVirtualMachineCreate(d *schema.ResourceData, meta interface{ vm := virtualMachine{ name: d.Get("name").(string), - vcpu: d.Get("vcpu").(int), + vcpu: int32(d.Get("vcpu").(int)), memoryMb: int64(d.Get("memory").(int)), memoryAllocation: memoryAllocation{ reservation: int64(d.Get("memory_reservation").(int)), @@ -958,15 +958,7 @@ func addHardDisk(vm *object.VirtualMachine, size, iops int64, diskType string, d } log.Printf("[DEBUG] disk controller: %#v\n", controller) - // If diskPath is not specified, pass empty string to CreateDisk() - var newDiskPath string - if diskPath == "" { - newDiskPath = "" - } else { - // TODO Check if diskPath & datastore exist - newDiskPath = fmt.Sprintf("[%v] %v", datastore.Name(), diskPath) - } - disk := devices.CreateDisk(controller, newDiskPath) + disk := devices.CreateDisk(controller, datastore.Reference(), diskPath) existing := devices.SelectByBackingInfo(disk.Backing) log.Printf("[DEBUG] disk: %#v\n", disk) @@ -1071,7 +1063,7 @@ func buildNetworkDevice(f *find.Finder, label, adapterType string) (*types.Virtu // buildVMRelocateSpec builds VirtualMachineRelocateSpec to set a place for a new VirtualMachine. func buildVMRelocateSpec(rp *object.ResourcePool, ds *object.Datastore, vm *object.VirtualMachine, linkedClone bool, initType string) (types.VirtualMachineRelocateSpec, error) { - var key int + var key int32 var moveType string if linkedClone { moveType = "createNewChildDiskBacking" @@ -1086,7 +1078,7 @@ func buildVMRelocateSpec(rp *object.ResourcePool, ds *object.Datastore, vm *obje } for _, d := range devices { if devices.Type(d) == "disk" { - key = d.GetVirtualDevice().Key + key = int32(d.GetVirtualDevice().Key) } } @@ -1164,9 +1156,9 @@ func buildStoragePlacementSpecClone(c *govmomi.Client, f *object.DatacenterFolde return types.StoragePlacementSpec{} } - var key int + var key int32 for _, d := range devices.SelectByType((*types.VirtualDisk)(nil)) { - key = d.GetVirtualDevice().Key + key = int32(d.GetVirtualDevice().Key) log.Printf("[DEBUG] findDatastore: virtual devices: %#v\n", d.GetVirtualDevice()) } @@ -1558,7 +1550,7 @@ func (vm *virtualMachine) deployVirtualMachine(c *govmomi.Client) error { ipv6Spec.Ip = []types.BaseCustomizationIpV6Generator{ &types.CustomizationFixedIpV6{ IpAddress: network.ipv6Address, - SubnetMask: network.ipv6PrefixLength, + SubnetMask: int32(network.ipv6PrefixLength), }, } ipv6Spec.Gateway = []string{network.ipv6Gateway} @@ -1620,7 +1612,7 @@ func (vm *virtualMachine) deployVirtualMachine(c *govmomi.Client) error { guiUnattended := types.CustomizationGuiUnattended{ AutoLogon: false, AutoLogonCount: 1, - TimeZone: timeZone, + TimeZone: int32(timeZone), } customIdentification := types.CustomizationIdentification{} @@ -1720,7 +1712,7 @@ func (vm *virtualMachine) deployVirtualMachine(c *govmomi.Client) error { for _, dvc := range devices { // Issue 3559/3560: Delete all ethernet devices to add the correct ones later if devices.Type(dvc) == "ethernet" { - err := newVM.RemoveDevice(context.TODO(), dvc) + err := newVM.RemoveDevice(context.TODO(), false, dvc) if err != nil { return err } diff --git a/vendor/github.com/vmware/govmomi/.drone.sec b/vendor/github.com/vmware/govmomi/.drone.sec new file mode 100644 index 000000000..ad52e59ac --- /dev/null +++ b/vendor/github.com/vmware/govmomi/.drone.sec @@ -0,0 +1 @@ +eyJhbGciOiJSU0EtT0FFUCIsImVuYyI6IkExMjhHQ00ifQ.kK6pryC8R-O1R0Gj9ydLvQuIZlcYLGze23WdW7xbpiEEKdz6nweJrMm7ysy8lgu1tM47JVo19p2_b26bNKSQshCUOETvd7Hb2UMZOjnyUnqdyAAyoi6UkIquXfUUbHTNS0iMxwSxxW9KMp2GXNq8-o6T8xQZTDirBJFKKd8ZNUasTaoa5j8U9IfdR1aCavTBuOhvk8IVs-jSbY5TVJMJiE0IOPXois7aRJ6uAiANQBk9VKLegEcZD_qAewecXHDsHi-u0jbmg3o3PPaJaK_Qv5dsPlR2M-E2kE3AGUn0-zn5zYRngoAZ8WZr2O4GvLdltJKq9i2z7jOrdOzzRcDRow.96qvwl_E1Hj15u7Q.hWs-jQ8FsqQFD7pE9N-UEP1BWQ9rsJIcCaPvQRIp8Fukm_vvlw9YEaEq0ERLrsUWsJWpd1ca8_h8x7xD6f_d5YppwRqRHIeGIsdBOTMhNs0lG8ikkQXLat-UroCpy8EC17nuUtDE2E2Kdxrk4Cdd6Bk-dKk0Ta4w3Ud0YBKa.P8zrO7xizgv0i98eVWWzEg \ No newline at end of file diff --git a/vendor/github.com/vmware/govmomi/.drone.yml b/vendor/github.com/vmware/govmomi/.drone.yml new file mode 100644 index 000000000..c1febba3c --- /dev/null +++ b/vendor/github.com/vmware/govmomi/.drone.yml @@ -0,0 +1,17 @@ +clone: + tags: true + path: github.com/vmware/govmomi +build: + image: golang:1.6 + pull: true + environment: + - GOVC_TEST_URL=$$GOVC_TEST_URL + - GOVC_INSECURE=1 + - VCA=1 + commands: + - make all install + - git clone https://github.com/sstephenson/bats.git /tmp/bats + - /tmp/bats/install.sh /usr/local + - apt-get -qq update && apt-get install -yqq uuid-runtime bsdmainutils jq + - govc/test/images/update.sh + - bats govc/test diff --git a/vendor/github.com/vmware/govmomi/.gitignore b/vendor/github.com/vmware/govmomi/.gitignore new file mode 100644 index 000000000..769c24400 --- /dev/null +++ b/vendor/github.com/vmware/govmomi/.gitignore @@ -0,0 +1 @@ +secrets.yml diff --git a/vendor/github.com/vmware/govmomi/.travis.yml b/vendor/github.com/vmware/govmomi/.travis.yml index 3432c4d82..3c12d8777 100644 --- a/vendor/github.com/vmware/govmomi/.travis.yml +++ b/vendor/github.com/vmware/govmomi/.travis.yml @@ -1,10 +1,12 @@ sudo: false + language: go -go: 1.4 + +go: + - 1.6 before_install: - - go get golang.org/x/tools/cmd/vet - - go get golang.org/x/tools/cmd/goimports + - make vendor script: - make check test diff --git a/vendor/github.com/vmware/govmomi/CHANGELOG.md b/vendor/github.com/vmware/govmomi/CHANGELOG.md index 29f28ce52..b21ed71e3 100644 --- a/vendor/github.com/vmware/govmomi/CHANGELOG.md +++ b/vendor/github.com/vmware/govmomi/CHANGELOG.md @@ -1,5 +1,46 @@ # changelog +### 0.6.1 (2016-04-30) + +* Fix mo.Entity interface + +### 0.6.0 (2016-04-29) + +* Add Common.Rename method + +* Add mo.Entity interface + +* Add OptionManager + +* Add Finder.FolderList method + +* Add VirtualMachine.WaitForNetIP method + +* Add VirtualMachine.RevertToSnapshot method + +* Add Datastore.Download method + +### 0.5.0 (2016-03-30) + +Generated fields using xsd type 'int' change to Go type 'int32' + +VirtualDevice.UnitNumber field changed to pointer type + +### 0.4.0 (2016-02-26) + +* Add method to convert virtual device list to array with virtual device + changes that can be used in the VirtualMachineConfigSpec. + +* Make datastore cluster traversable in lister + +* Add finder.DatastoreCluster methods (also known as storage pods) + +* Add Drone CI check + +* Add object.Datastore Type and AttachedClusterHosts methods + +* Add finder.*OrDefault methods + ### 0.3.0 (2016-01-16) * Add object.VirtualNicManager wrapper diff --git a/vendor/github.com/vmware/govmomi/CONTRIBUTING.md b/vendor/github.com/vmware/govmomi/CONTRIBUTING.md new file mode 100644 index 000000000..18c7be510 --- /dev/null +++ b/vendor/github.com/vmware/govmomi/CONTRIBUTING.md @@ -0,0 +1,92 @@ +# Contributing to govmomi + +## Getting started + +First, fork the repository on GitHub to your personal account. + +Note that _GOPATH_ can be any directory, the example below uses _$HOME/govmomi_. +Change _$USER_ below to your github username if they are not the same. + +``` shell +export GOPATH=$HOME/govmomi +mkdir -p $GOPATH/src/github.com/vmware +cd $GOPATH/src/github.com/vmware +git clone git@github.com:vmware/govmomi.git +cd govmomi +git config push.default nothing # anything to avoid pushing to vmware/govmomi by default +git remote rename origin vmware +git remote add $USER git@github.com:$USER/govmomi.git +git fetch $USER +``` + +## Contribution flow + +This is a rough outline of what a contributor's workflow looks like: + +- Create a topic branch from where you want to base your work. +- Make commits of logical units. +- Make sure your commit messages are in the proper format (see below). +- Push your changes to a topic branch in your fork of the repository. +- Submit a pull request to vmware/govmomi. + +Example: + +``` shell +git checkout -b my-new-feature vmware/master +git commit -a +git push $USER my-new-feature +``` + +### Stay in sync with upstream + +When your branch gets out of sync with the vmware/master branch, use the following to update: + +``` shell +git checkout my-new-feature +git fetch -a +git rebase vmware/master +git push --force-with-lease $USER my-new-feature +``` + +### Updating pull requests + +If your PR fails to pass CI or needs changes based on code review, you'll most likely want to squash these changes into +existing commits. + +If your pull request contains a single commit or your changes are related to the most recent commit, you can simply +amend the commit. + +``` shell +git add . +git commit --amend +git push --force-with-lease $USER my-new-feature +``` + +If you need to squash changes into an earlier commit, you can use: + +``` shell +git add . +git commit --fixup +git rebase -i --autosquash vmware/master +git push --force-with-lease $USER my-new-feature +``` + +Be sure to add a comment to the PR indicating your new changes are ready to review, as github does not generate a +notification when you git push. + +### Code style + +The coding style suggested by the Golang community is used in govmomi. See the +[style doc](https://github.com/golang/go/wiki/CodeReviewComments) for details. + +Try to limit column width to 120 characters for both code and markdown documents such as this one. + +### Format of the Commit Message + +We follow the conventions on [How to Write a Git Commit Message](http://chris.beams.io/posts/git-commit/). + +Be sure to include any related GitHub issue references in the commit message. + +## Reporting Bugs and Creating Issues + +When opening a new issue, try to roughly follow the commit message format conventions above. diff --git a/vendor/github.com/vmware/govmomi/CONTRIBUTORS b/vendor/github.com/vmware/govmomi/CONTRIBUTORS index 8813540f1..c6d83e756 100644 --- a/vendor/github.com/vmware/govmomi/CONTRIBUTORS +++ b/vendor/github.com/vmware/govmomi/CONTRIBUTORS @@ -4,23 +4,35 @@ # Alvaro Miranda -Amit Bathla +Amit Bathla +Andrew Chin +Arran Walker Bob Killen Bruce Downs Clint Greenwood +Cédric Blomart Danny Lockard +Dave Tucker Doug MacEachern Eloy Coto Eric Yutao +Fabio Rapposelli Faiyaz Ahmed Gavin Gray Gavrie Philipson +George Hicken +Gerrit Renker +gthombare +Isaac Rodman Louie Jiang Mevan Samaratunga Pieter Noordhuis runner.mei S.Çağlar Onur +Sergey Ignatov Takaaki Furukawa +Steve Purcell Yang Yang Yuya Kusakabe +Zach Tucker Zee Yang diff --git a/vendor/github.com/vmware/govmomi/Makefile b/vendor/github.com/vmware/govmomi/Makefile index 5a4264732..af1489634 100644 --- a/vendor/github.com/vmware/govmomi/Makefile +++ b/vendor/github.com/vmware/govmomi/Makefile @@ -4,7 +4,12 @@ all: check test check: goimports govet -goimports: +vendor: + go get golang.org/x/tools/cmd/goimports + go get github.com/davecgh/go-spew/spew + go get golang.org/x/net/context + +goimports: vendor @echo checking go imports... @! goimports -d . 2>&1 | egrep -v '^$$' @@ -12,9 +17,8 @@ govet: @echo checking go vet... @go tool vet -structtags=false -methods=false . -test: - go get +test: vendor go test -v $(TEST_OPTS) ./... -install: +install: vendor go install github.com/vmware/govmomi/govc diff --git a/vendor/github.com/vmware/govmomi/README.md b/vendor/github.com/vmware/govmomi/README.md index 6831d64be..5a9513b69 100644 --- a/vendor/github.com/vmware/govmomi/README.md +++ b/vendor/github.com/vmware/govmomi/README.md @@ -1,4 +1,5 @@ [![Build Status](https://travis-ci.org/vmware/govmomi.png?branch=master)](https://travis-ci.org/vmware/govmomi) +[![Build Status](https://ci.vmware.run/api/badges/vmware/govmomi/status.svg)](https://ci.vmware.run/vmware/govmomi) # govmomi @@ -24,6 +25,17 @@ See [godoc.org][godoc] for documentation. [apiref]:http://pubs.vmware.com/vsphere-60/index.jsp#com.vmware.wssdk.apiref.doc/right-pane.html [godoc]:http://godoc.org/github.com/vmware/govmomi +[drone]:https://drone.io +[dronesrc]:https://github.com/drone/drone +[dronecli]:http://readme.drone.io/devs/cli/ + +#### Building with CI +Merges to this repository will trigger builds in both Travis and [Drone][drone]. + +To build locally with Drone: +- Ensure that you have Docker 1.6 or higher installed. +- Install the [Drone command line tools][dronecli]. +- Run `drone exec` from within the root directory of the govmomi repository. ## Status @@ -31,6 +43,12 @@ Changes to the API are subject to [semantic versioning](http://semver.org). Refer to the [CHANGELOG](CHANGELOG.md) for version to version changes. +## Projects using govmomi + +* [Docker Machine](https://github.com/docker/machine/tree/master/drivers/vmwarevsphere) + +* [Terraform](https://github.com/hashicorp/terraform/tree/master/builtin/providers/vsphere) + ## License govmomi is available under the [Apache 2 license](LICENSE). diff --git a/vendor/github.com/vmware/govmomi/client.go b/vendor/github.com/vmware/govmomi/client.go index 56b5191cf..6068e2db3 100644 --- a/vendor/github.com/vmware/govmomi/client.go +++ b/vendor/github.com/vmware/govmomi/client.go @@ -1,5 +1,5 @@ /* -Copyright (c) 2014-2015 VMware, Inc. All Rights Reserved. +Copyright (c) 2014-2016 VMware, Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/vendor/github.com/vmware/govmomi/find/finder.go b/vendor/github.com/vmware/govmomi/find/finder.go index 165a330c1..3e9c3acb3 100644 --- a/vendor/github.com/vmware/govmomi/find/finder.go +++ b/vendor/github.com/vmware/govmomi/find/finder.go @@ -1,5 +1,5 @@ /* -Copyright (c) 2014-2015 VMware, Inc. All Rights Reserved. +Copyright (c) 2014-2016 VMware, Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -313,6 +313,63 @@ func (f *Finder) DatastoreOrDefault(ctx context.Context, path string) (*object.D return f.DefaultDatastore(ctx) } +func (f *Finder) DatastoreClusterList(ctx context.Context, path string) ([]*object.StoragePod, error) { + es, err := f.find(ctx, f.datastoreFolder, false, path) + if err != nil { + return nil, err + } + + var sps []*object.StoragePod + for _, e := range es { + ref := e.Object.Reference() + if ref.Type == "StoragePod" { + sp := object.NewStoragePod(f.client, ref) + sp.InventoryPath = e.Path + sps = append(sps, sp) + } + } + + if len(sps) == 0 { + return nil, &NotFoundError{"datastore cluster", path} + } + + return sps, nil +} + +func (f *Finder) DatastoreCluster(ctx context.Context, path string) (*object.StoragePod, error) { + sps, err := f.DatastoreClusterList(ctx, path) + if err != nil { + return nil, err + } + + if len(sps) > 1 { + return nil, &MultipleFoundError{"datastore cluster", path} + } + + return sps[0], nil +} + +func (f *Finder) DefaultDatastoreCluster(ctx context.Context) (*object.StoragePod, error) { + sp, err := f.DatastoreCluster(ctx, "*") + if err != nil { + return nil, toDefaultError(err) + } + + return sp, nil +} + +func (f *Finder) DatastoreClusterOrDefault(ctx context.Context, path string) (*object.StoragePod, error) { + if path != "" { + sp, err := f.DatastoreCluster(ctx, path) + if err != nil { + return nil, err + } + return sp, nil + } + + return f.DefaultDatastoreCluster(ctx) +} + func (f *Finder) ComputeResourceList(ctx context.Context, path string) ([]*object.ComputeResource, error) { es, err := f.find(ctx, f.hostFolder, false, path) if err != nil { @@ -612,6 +669,27 @@ func (f *Finder) ResourcePoolOrDefault(ctx context.Context, path string) (*objec return f.DefaultResourcePool(ctx) } +func (f *Finder) DefaultFolder(ctx context.Context) (*object.Folder, error) { + ref, err := f.vmFolder(ctx) + if err != nil { + return nil, toDefaultError(err) + } + folder := object.NewFolder(f.client, ref.Reference()) + + return folder, nil +} + +func (f *Finder) FolderOrDefault(ctx context.Context, path string) (*object.Folder, error) { + if path != "" { + folder, err := f.Folder(ctx, path) + if err != nil { + return nil, err + } + return folder, nil + } + return f.DefaultFolder(ctx) +} + func (f *Finder) VirtualMachineList(ctx context.Context, path string) ([]*object.VirtualMachine, error) { es, err := f.find(ctx, f.vmFolder, false, path) if err != nil { @@ -684,28 +762,42 @@ func (f *Finder) VirtualApp(ctx context.Context, path string) (*object.VirtualAp return apps[0], nil } -func (f *Finder) Folder(ctx context.Context, path string) (*object.Folder, error) { - mo, err := f.ManagedObjectList(ctx, path) +func (f *Finder) FolderList(ctx context.Context, path string) ([]*object.Folder, error) { + es, err := f.ManagedObjectList(ctx, path) if err != nil { return nil, err } - if len(mo) == 0 { + var folders []*object.Folder + + for _, e := range es { + switch o := e.Object.(type) { + case mo.Folder: + folder := object.NewFolder(f.client, o.Reference()) + folder.InventoryPath = e.Path + folders = append(folders, folder) + case *object.Folder: + // RootFolder + folders = append(folders, o) + } + } + + if len(folders) == 0 { return nil, &NotFoundError{"folder", path} } - if len(mo) > 1 { + return folders, nil +} + +func (f *Finder) Folder(ctx context.Context, path string) (*object.Folder, error) { + folders, err := f.FolderList(ctx, path) + if err != nil { + return nil, err + } + + if len(folders) > 1 { return nil, &MultipleFoundError{"folder", path} } - ref := mo[0].Object.Reference() - if ref.Type != "Folder" { - return nil, &NotFoundError{"folder", path} - } - - folder := object.NewFolder(f.client, ref) - - folder.InventoryPath = mo[0].Path - - return folder, nil + return folders[0], nil } diff --git a/vendor/github.com/vmware/govmomi/list/lister.go b/vendor/github.com/vmware/govmomi/list/lister.go index fd632010c..355208f53 100644 --- a/vendor/github.com/vmware/govmomi/list/lister.go +++ b/vendor/github.com/vmware/govmomi/list/lister.go @@ -1,5 +1,5 @@ /* -Copyright (c) 2014-2015 VMware, Inc. All Rights Reserved. +Copyright (c) 2014-2016 VMware, Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -119,6 +119,7 @@ func traversable(ref types.ManagedObjectReference) bool { // It doesn't matter from the perspective of the lister. case "HostSystem": case "VirtualApp": + case "StoragePod": default: return false } diff --git a/vendor/github.com/vmware/govmomi/object/authorization_manager.go b/vendor/github.com/vmware/govmomi/object/authorization_manager.go index 60f063b9d..868db4f71 100644 --- a/vendor/github.com/vmware/govmomi/object/authorization_manager.go +++ b/vendor/github.com/vmware/govmomi/object/authorization_manager.go @@ -38,7 +38,7 @@ func NewAuthorizationManager(c *vim25.Client) *AuthorizationManager { type AuthorizationRoleList []types.AuthorizationRole -func (l AuthorizationRoleList) ById(id int) *types.AuthorizationRole { +func (l AuthorizationRoleList) ById(id int32) *types.AuthorizationRole { for _, role := range l { if role.RoleId == id { return &role diff --git a/vendor/github.com/vmware/govmomi/object/common.go b/vendor/github.com/vmware/govmomi/object/common.go index 3e641441a..97972849f 100644 --- a/vendor/github.com/vmware/govmomi/object/common.go +++ b/vendor/github.com/vmware/govmomi/object/common.go @@ -69,3 +69,17 @@ func (c Common) Destroy(ctx context.Context) (*Task, error) { return NewTask(c.c, res.Returnval), nil } + +func (c Common) Rename(ctx context.Context, name string) (*Task, error) { + req := types.Rename_Task{ + This: c.Reference(), + NewName: name, + } + + res, err := methods.Rename_Task(ctx, c.c, &req) + if err != nil { + return nil, err + } + + return NewTask(c.c, res.Returnval), nil +} diff --git a/vendor/github.com/vmware/govmomi/object/custom_fields_manager.go b/vendor/github.com/vmware/govmomi/object/custom_fields_manager.go index 5b5e91829..ce9abf087 100644 --- a/vendor/github.com/vmware/govmomi/object/custom_fields_manager.go +++ b/vendor/github.com/vmware/govmomi/object/custom_fields_manager.go @@ -69,7 +69,7 @@ func (m CustomFieldsManager) Add(ctx context.Context, name string, moType string return &res.Returnval, nil } -func (m CustomFieldsManager) Remove(ctx context.Context, key int) error { +func (m CustomFieldsManager) Remove(ctx context.Context, key int32) error { req := types.RemoveCustomFieldDef{ This: m.Reference(), Key: key, @@ -79,7 +79,7 @@ func (m CustomFieldsManager) Remove(ctx context.Context, key int) error { return err } -func (m CustomFieldsManager) Rename(ctx context.Context, key int, name string) error { +func (m CustomFieldsManager) Rename(ctx context.Context, key int32, name string) error { req := types.RenameCustomFieldDef{ This: m.Reference(), Key: key, @@ -90,7 +90,7 @@ func (m CustomFieldsManager) Rename(ctx context.Context, key int, name string) e return err } -func (m CustomFieldsManager) Set(ctx context.Context, entity types.ManagedObjectReference, key int, value string) error { +func (m CustomFieldsManager) Set(ctx context.Context, entity types.ManagedObjectReference, key int32, value string) error { req := types.SetField{ This: m.Reference(), Entity: entity, @@ -113,7 +113,7 @@ func (m CustomFieldsManager) Field(ctx context.Context) ([]types.CustomFieldDef, return fm.Field, nil } -func (m CustomFieldsManager) FindKey(ctx context.Context, key string) (int, error) { +func (m CustomFieldsManager) FindKey(ctx context.Context, key string) (int32, error) { field, err := m.Field(ctx) if err != nil { return -1, err @@ -128,7 +128,7 @@ func (m CustomFieldsManager) FindKey(ctx context.Context, key string) (int, erro k, err := strconv.Atoi(key) if err == nil { // assume literal int key - return k, nil + return int32(k), nil } return -1, ErrKeyNameNotFound diff --git a/vendor/github.com/vmware/govmomi/object/datastore.go b/vendor/github.com/vmware/govmomi/object/datastore.go index 34bb062d5..14399d026 100644 --- a/vendor/github.com/vmware/govmomi/object/datastore.go +++ b/vendor/github.com/vmware/govmomi/object/datastore.go @@ -1,5 +1,5 @@ /* -Copyright (c) 2015 VMware, Inc. All Rights Reserved. +Copyright (c) 2015-2016 VMware, Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -220,7 +220,16 @@ func (d Datastore) UploadFile(ctx context.Context, file string, path string, par return d.Client().UploadFile(file, u, p) } -// DownloadFile via soap.Upload with an http service ticket +// Download via soap.Download with an http service ticket +func (d Datastore) Download(ctx context.Context, path string, param *soap.Download) (io.ReadCloser, int64, error) { + u, p, err := d.downloadTicket(ctx, path, param) + if err != nil { + return nil, 0, err + } + return d.Client().Download(u, p) +} + +// DownloadFile via soap.Download with an http service ticket func (d Datastore) DownloadFile(ctx context.Context, path string, file string, param *soap.Download) error { u, p, err := d.downloadTicket(ctx, path, param) if err != nil { diff --git a/vendor/github.com/vmware/govmomi/object/diagnostic_manager.go b/vendor/github.com/vmware/govmomi/object/diagnostic_manager.go index b181592cd..2a4cf1b8f 100644 --- a/vendor/github.com/vmware/govmomi/object/diagnostic_manager.go +++ b/vendor/github.com/vmware/govmomi/object/diagnostic_manager.go @@ -35,7 +35,7 @@ func NewDiagnosticManager(c *vim25.Client) *DiagnosticManager { return &m } -func (m DiagnosticManager) BrowseLog(ctx context.Context, host *HostSystem, key string, start, lines int) (*types.DiagnosticManagerLogHeader, error) { +func (m DiagnosticManager) BrowseLog(ctx context.Context, host *HostSystem, key string, start, lines int32) (*types.DiagnosticManagerLogHeader, error) { req := types.BrowseDiagnosticLog{ This: m.Reference(), Key: key, diff --git a/vendor/github.com/vmware/govmomi/object/folder.go b/vendor/github.com/vmware/govmomi/object/folder.go index 38fddd6da..97c793470 100644 --- a/vendor/github.com/vmware/govmomi/object/folder.go +++ b/vendor/github.com/vmware/govmomi/object/folder.go @@ -37,7 +37,9 @@ func NewFolder(c *vim25.Client, ref types.ManagedObjectReference) *Folder { } func NewRootFolder(c *vim25.Client) *Folder { - return NewFolder(c, c.ServiceContent.RootFolder) + f := NewFolder(c, c.ServiceContent.RootFolder) + f.InventoryPath = "/" + return f } func (f Folder) Children(ctx context.Context) ([]Reference, error) { @@ -196,3 +198,17 @@ func (f Folder) CreateDVS(ctx context.Context, spec types.DVSCreateSpec) (*Task, return NewTask(f.c, res.Returnval), nil } + +func (f Folder) MoveInto(ctx context.Context, list []types.ManagedObjectReference) (*Task, error) { + req := types.MoveIntoFolder_Task{ + This: f.Reference(), + List: list, + } + + res, err := methods.MoveIntoFolder_Task(ctx, f.c, &req) + if err != nil { + return nil, err + } + + return NewTask(f.c, res.Returnval), nil +} diff --git a/vendor/github.com/vmware/govmomi/object/history_collector.go b/vendor/github.com/vmware/govmomi/object/history_collector.go index a0fb6aabc..9d9ef4c91 100644 --- a/vendor/github.com/vmware/govmomi/object/history_collector.go +++ b/vendor/github.com/vmware/govmomi/object/history_collector.go @@ -60,7 +60,7 @@ func (h HistoryCollector) Rewind(ctx context.Context) error { return err } -func (h HistoryCollector) SetPageSize(ctx context.Context, maxCount int) error { +func (h HistoryCollector) SetPageSize(ctx context.Context, maxCount int32) error { req := types.SetCollectorPageSize{ This: h.Reference(), MaxCount: maxCount, diff --git a/vendor/github.com/vmware/govmomi/object/host_account_manager.go b/vendor/github.com/vmware/govmomi/object/host_account_manager.go new file mode 100644 index 000000000..9505f508c --- /dev/null +++ b/vendor/github.com/vmware/govmomi/object/host_account_manager.go @@ -0,0 +1,64 @@ +/* +Copyright (c) 2016 VMware, Inc. All Rights Reserved. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package object + +import ( + "github.com/vmware/govmomi/vim25" + "github.com/vmware/govmomi/vim25/methods" + "github.com/vmware/govmomi/vim25/types" + "golang.org/x/net/context" +) + +type HostAccountManager struct { + Common +} + +func NewHostAccountManager(c *vim25.Client, ref types.ManagedObjectReference) *HostAccountManager { + return &HostAccountManager{ + Common: NewCommon(c, ref), + } +} + +func (m HostAccountManager) Create(ctx context.Context, user *types.HostAccountSpec) error { + req := types.CreateUser{ + This: m.Reference(), + User: user, + } + + _, err := methods.CreateUser(ctx, m.Client(), &req) + return err +} + +func (m HostAccountManager) Update(ctx context.Context, user *types.HostAccountSpec) error { + req := types.UpdateUser{ + This: m.Reference(), + User: user, + } + + _, err := methods.UpdateUser(ctx, m.Client(), &req) + return err +} + +func (m HostAccountManager) Remove(ctx context.Context, userName string) error { + req := types.RemoveUser{ + This: m.Reference(), + UserName: userName, + } + + _, err := methods.RemoveUser(ctx, m.Client(), &req) + return err +} diff --git a/vendor/github.com/vmware/govmomi/object/host_config_manager.go b/vendor/github.com/vmware/govmomi/object/host_config_manager.go index 6d906e8c5..12327ee0f 100644 --- a/vendor/github.com/vmware/govmomi/object/host_config_manager.go +++ b/vendor/github.com/vmware/govmomi/object/host_config_manager.go @@ -98,3 +98,25 @@ func (m HostConfigManager) VsanSystem(ctx context.Context) (*HostVsanSystem, err return NewHostVsanSystem(m.c, *h.ConfigManager.VsanSystem), nil } + +func (m HostConfigManager) AccountManager(ctx context.Context) (*HostAccountManager, error) { + var h mo.HostSystem + + err := m.Properties(ctx, m.Reference(), []string{"configManager.accountManager"}, &h) + if err != nil { + return nil, err + } + + return NewHostAccountManager(m.c, *h.ConfigManager.AccountManager), nil +} + +func (m HostConfigManager) OptionManager(ctx context.Context) (*OptionManager, error) { + var h mo.HostSystem + + err := m.Properties(ctx, m.Reference(), []string{"configManager.advancedOption"}, &h) + if err != nil { + return nil, err + } + + return NewOptionManager(m.c, *h.ConfigManager.AdvancedOption), nil +} diff --git a/vendor/github.com/vmware/govmomi/object/host_system.go b/vendor/github.com/vmware/govmomi/object/host_system.go index 206b27cac..0146d9ae5 100644 --- a/vendor/github.com/vmware/govmomi/object/host_system.go +++ b/vendor/github.com/vmware/govmomi/object/host_system.go @@ -142,7 +142,7 @@ func (h HostSystem) Reconnect(ctx context.Context, cnxSpec *types.HostConnectSpe return NewTask(h.c, res.Returnval), nil } -func (h HostSystem) EnterMaintenanceMode(ctx context.Context, timeout int, evacuate bool, spec *types.HostMaintenanceSpec) (*Task, error) { +func (h HostSystem) EnterMaintenanceMode(ctx context.Context, timeout int32, evacuate bool, spec *types.HostMaintenanceSpec) (*Task, error) { req := types.EnterMaintenanceMode_Task{ This: h.Reference(), Timeout: timeout, @@ -158,7 +158,7 @@ func (h HostSystem) EnterMaintenanceMode(ctx context.Context, timeout int, evacu return NewTask(h.c, res.Returnval), nil } -func (h HostSystem) ExitMaintenanceMode(ctx context.Context, timeout int) (*Task, error) { +func (h HostSystem) ExitMaintenanceMode(ctx context.Context, timeout int32) (*Task, error) { req := types.ExitMaintenanceMode_Task{ This: h.Reference(), Timeout: timeout, diff --git a/vendor/github.com/vmware/govmomi/object/http_nfc_lease.go b/vendor/github.com/vmware/govmomi/object/http_nfc_lease.go index f100f2088..3b06e3c3a 100644 --- a/vendor/github.com/vmware/govmomi/object/http_nfc_lease.go +++ b/vendor/github.com/vmware/govmomi/object/http_nfc_lease.go @@ -82,7 +82,7 @@ func (o HttpNfcLease) HttpNfcLeaseGetManifest(ctx context.Context) error { } // HttpNfcLeaseProgress wraps methods.HttpNfcLeaseProgress -func (o HttpNfcLease) HttpNfcLeaseProgress(ctx context.Context, percent int) error { +func (o HttpNfcLease) HttpNfcLeaseProgress(ctx context.Context, percent int32) error { req := types.HttpNfcLeaseProgress{ This: o.Reference(), Percent: percent, diff --git a/vendor/github.com/vmware/govmomi/object/list_view.go b/vendor/github.com/vmware/govmomi/object/list_view.go new file mode 100644 index 000000000..a79d33bc3 --- /dev/null +++ b/vendor/github.com/vmware/govmomi/object/list_view.go @@ -0,0 +1,43 @@ +/* +Copyright (c) 2015 VMware, Inc. All Rights Reserved. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package object + +import ( + "github.com/vmware/govmomi/vim25" + "github.com/vmware/govmomi/vim25/methods" + "github.com/vmware/govmomi/vim25/types" + "golang.org/x/net/context" +) + +type ListView struct { + Common +} + +func NewListView(c *vim25.Client, ref types.ManagedObjectReference) *ListView { + return &ListView{ + Common: NewCommon(c, ref), + } +} + +func (v ListView) Destroy(ctx context.Context) error { + req := types.DestroyView{ + This: v.Reference(), + } + + _, err := methods.DestroyView(ctx, v.c, &req) + return err +} diff --git a/vendor/github.com/vmware/govmomi/object/option_manager.go b/vendor/github.com/vmware/govmomi/object/option_manager.go new file mode 100644 index 000000000..eae1223cc --- /dev/null +++ b/vendor/github.com/vmware/govmomi/object/option_manager.go @@ -0,0 +1,58 @@ +/* +Copyright (c) 2016 VMware, Inc. All Rights Reserved. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package object + +import ( + "github.com/vmware/govmomi/vim25" + "github.com/vmware/govmomi/vim25/methods" + "github.com/vmware/govmomi/vim25/types" + "golang.org/x/net/context" +) + +type OptionManager struct { + Common +} + +func NewOptionManager(c *vim25.Client, ref types.ManagedObjectReference) *OptionManager { + return &OptionManager{ + Common: NewCommon(c, ref), + } +} + +func (m OptionManager) Query(ctx context.Context, name string) ([]types.BaseOptionValue, error) { + req := types.QueryOptions{ + This: m.Reference(), + Name: name, + } + + res, err := methods.QueryOptions(ctx, m.Client(), &req) + if err != nil { + return nil, err + } + + return res.Returnval, nil +} + +func (m OptionManager) Update(ctx context.Context, value []types.BaseOptionValue) error { + req := types.UpdateOptions{ + This: m.Reference(), + ChangedValue: value, + } + + _, err := methods.UpdateOptions(ctx, m.Client(), &req) + return err +} diff --git a/vendor/github.com/vmware/govmomi/object/storage_pod.go b/vendor/github.com/vmware/govmomi/object/storage_pod.go index 18865ff98..188b91a00 100644 --- a/vendor/github.com/vmware/govmomi/object/storage_pod.go +++ b/vendor/github.com/vmware/govmomi/object/storage_pod.go @@ -16,6 +16,19 @@ limitations under the License. package object +import ( + "github.com/vmware/govmomi/vim25" + "github.com/vmware/govmomi/vim25/types" +) + type StoragePod struct { *Folder } + +func NewStoragePod(c *vim25.Client, ref types.ManagedObjectReference) *StoragePod { + return &StoragePod{ + Folder: &Folder{ + Common: NewCommon(c, ref), + }, + } +} diff --git a/vendor/github.com/vmware/govmomi/object/virtual_device_list.go b/vendor/github.com/vmware/govmomi/object/virtual_device_list.go index e80f69910..327b5d27a 100644 --- a/vendor/github.com/vmware/govmomi/object/virtual_device_list.go +++ b/vendor/github.com/vmware/govmomi/object/virtual_device_list.go @@ -63,7 +63,6 @@ func EthernetCardTypes() VirtualDeviceList { &types.VirtualVmxnet3{}, }).Select(func(device types.BaseVirtualDevice) bool { c := device.(types.BaseVirtualEthernetCard).GetVirtualEthernetCard() - c.AddressType = string(types.VirtualEthernetCardMacTypeGenerated) c.GetVirtualDevice().Key = -1 return true }) @@ -126,7 +125,8 @@ func (l VirtualDeviceList) SelectByBackingInfo(backing types.BaseVirtualDeviceBa return a.DeviceName == b.DeviceName case *types.VirtualEthernetCardDistributedVirtualPortBackingInfo: b := backing.(*types.VirtualEthernetCardDistributedVirtualPortBackingInfo) - return a.Port.SwitchUuid == b.Port.SwitchUuid + return a.Port.SwitchUuid == b.Port.SwitchUuid && + a.Port.PortgroupKey == b.Port.PortgroupKey case *types.VirtualDiskFlatVer2BackingInfo: b := backing.(*types.VirtualDiskFlatVer2BackingInfo) if a.Parent != nil && b.Parent != nil { @@ -156,7 +156,7 @@ func (l VirtualDeviceList) Find(name string) types.BaseVirtualDevice { } // FindByKey returns the device matching the given key. -func (l VirtualDeviceList) FindByKey(key int) types.BaseVirtualDevice { +func (l VirtualDeviceList) FindByKey(key int32) types.BaseVirtualDevice { for _, device := range l { if device.GetVirtualDevice().Key == key { return device @@ -188,6 +188,13 @@ func (l VirtualDeviceList) FindIDEController(name string) (*types.VirtualIDECont return c.(*types.VirtualIDEController), nil } +// CreateIDEController creates a new IDE controller. +func (l VirtualDeviceList) CreateIDEController() (types.BaseVirtualDevice, error) { + ide := &types.VirtualIDEController{} + ide.Key = l.NewKey() + return ide, nil +} + // FindSCSIController will find the named SCSI controller if given, otherwise will pick an available controller. // An error is returned if the named controller is not found or not an SCSI controller. Or, if name is not // given and no available controller can be found. @@ -233,9 +240,8 @@ func (l VirtualDeviceList) CreateSCSIController(name string) (types.BaseVirtualD } scsi := c.GetVirtualSCSIController() - scsi.BusNumber = l.newSCSIBusNumber() - + scsi.Key = l.NewKey() return c.(types.BaseVirtualDevice), nil } @@ -243,13 +249,13 @@ var scsiBusNumbers = []int{0, 1, 2, 3} // newSCSIBusNumber returns the bus number to use for adding a new SCSI bus device. // -1 is returned if there are no bus numbers available. -func (l VirtualDeviceList) newSCSIBusNumber() int { +func (l VirtualDeviceList) newSCSIBusNumber() int32 { var used []int for _, d := range l.SelectByType((*types.VirtualSCSIController)(nil)) { num := d.(types.BaseVirtualSCSIController).GetVirtualSCSIController().BusNumber if num >= 0 { - used = append(used, num) + used = append(used, int(num)) } // else caller is creating a new vm using SCSIControllerTypes } @@ -257,7 +263,7 @@ func (l VirtualDeviceList) newSCSIBusNumber() int { for i, n := range scsiBusNumbers { if i == len(used) || n != used[i] { - return n + return int32(n) } } @@ -303,16 +309,16 @@ func (l VirtualDeviceList) PickController(kind types.BaseVirtualController) type } // newUnitNumber returns the unit number to use for attaching a new device to the given controller. -func (l VirtualDeviceList) newUnitNumber(c types.BaseVirtualController) int { +func (l VirtualDeviceList) newUnitNumber(c types.BaseVirtualController) int32 { key := c.GetVirtualController().Key - max := -1 + var max int32 = -1 for _, device := range l { d := device.GetVirtualDevice() if d.ControllerKey == key { - if d.UnitNumber > max { - max = d.UnitNumber + if d.UnitNumber != nil && *d.UnitNumber > max { + max = *d.UnitNumber } } } @@ -320,16 +326,37 @@ func (l VirtualDeviceList) newUnitNumber(c types.BaseVirtualController) int { return max + 1 } +// NewKey returns the key to use for adding a new device to the device list. +// The device list we're working with here may not be complete (e.g. when +// we're only adding new devices), so any positive keys could conflict with device keys +// that are already in use. To avoid this type of conflict, we can use negative keys +// here, which will be resolved to positive keys by vSphere as the reconfiguration is done. +func (l VirtualDeviceList) NewKey() int32 { + var key int32 = -200 + + for _, device := range l { + d := device.GetVirtualDevice() + if d.Key < key { + key = d.Key + } + } + + return key - 1 +} + // AssignController assigns a device to a controller. func (l VirtualDeviceList) AssignController(device types.BaseVirtualDevice, c types.BaseVirtualController) { d := device.GetVirtualDevice() d.ControllerKey = c.GetVirtualController().Key - d.UnitNumber = l.newUnitNumber(c) - d.Key = -1 + d.UnitNumber = new(int32) + *d.UnitNumber = l.newUnitNumber(c) + if d.Key == 0 { + d.Key = -1 + } } // CreateDisk creates a new VirtualDisk device which can be added to a VM. -func (l VirtualDeviceList) CreateDisk(c types.BaseVirtualController, name string) *types.VirtualDisk { +func (l VirtualDeviceList) CreateDisk(c types.BaseVirtualController, ds types.ManagedObjectReference, name string) *types.VirtualDisk { // If name is not specified, one will be chosen for you. // But if when given, make sure it ends in .vmdk, otherwise it will be treated as a directory. if len(name) > 0 && filepath.Ext(name) != ".vmdk" { @@ -342,18 +369,14 @@ func (l VirtualDeviceList) CreateDisk(c types.BaseVirtualController, name string DiskMode: string(types.VirtualDiskModePersistent), ThinProvisioned: types.NewBool(true), VirtualDeviceFileBackingInfo: types.VirtualDeviceFileBackingInfo{ - FileName: name, + FileName: name, + Datastore: &ds, }, }, }, } l.AssignController(device, c) - - if device.UnitNumber == 0 { - device.UnitNumber = -1 // TODO: this field is annotated as omitempty - } - return device } @@ -366,7 +389,8 @@ func (l VirtualDeviceList) ChildDisk(parent *types.VirtualDisk) *types.VirtualDi // Use specified disk as parent backing to a new disk. disk.Backing = &types.VirtualDiskFlatVer2BackingInfo{ VirtualDeviceFileBackingInfo: types.VirtualDeviceFileBackingInfo{ - FileName: fmt.Sprintf("[%s]", ds[0]), + FileName: fmt.Sprintf("[%s]", ds[0]), + Datastore: backing.Datastore, }, Parent: backing, DiskMode: backing.DiskMode, @@ -738,17 +762,66 @@ func (l VirtualDeviceList) Type(device types.BaseVirtualDevice) string { // Name returns a stable, human-readable name for the given device func (l VirtualDeviceList) Name(device types.BaseVirtualDevice) string { var key string + var UnitNumber int32 d := device.GetVirtualDevice() - dtype := l.Type(device) + if d.UnitNumber != nil { + UnitNumber = *d.UnitNumber + } + dtype := l.Type(device) switch dtype { case DeviceTypeEthernet: - key = fmt.Sprintf("%d", d.UnitNumber-7) + key = fmt.Sprintf("%d", UnitNumber-7) case DeviceTypeDisk: - key = fmt.Sprintf("%d-%d", d.ControllerKey, d.UnitNumber) + key = fmt.Sprintf("%d-%d", d.ControllerKey, UnitNumber) default: key = fmt.Sprintf("%d", d.Key) } return fmt.Sprintf("%s-%s", dtype, key) } + +// ConfigSpec creates a virtual machine configuration spec for +// the specified operation, for the list of devices in the device list. +func (l VirtualDeviceList) ConfigSpec(op types.VirtualDeviceConfigSpecOperation) ([]types.BaseVirtualDeviceConfigSpec, error) { + var fop types.VirtualDeviceConfigSpecFileOperation + switch op { + case types.VirtualDeviceConfigSpecOperationAdd: + fop = types.VirtualDeviceConfigSpecFileOperationCreate + case types.VirtualDeviceConfigSpecOperationEdit: + fop = types.VirtualDeviceConfigSpecFileOperationReplace + case types.VirtualDeviceConfigSpecOperationRemove: + fop = types.VirtualDeviceConfigSpecFileOperationDestroy + default: + panic("unknown op") + } + + var res []types.BaseVirtualDeviceConfigSpec + for _, device := range l { + config := &types.VirtualDeviceConfigSpec{ + Device: device, + Operation: op, + } + + if disk, ok := device.(*types.VirtualDisk); ok { + config.FileOperation = fop + + // Special case to attach an existing disk + if op == types.VirtualDeviceConfigSpecOperationAdd && disk.CapacityInKB == 0 { + childDisk := false + if b, ok := disk.Backing.(*types.VirtualDiskFlatVer2BackingInfo); ok { + childDisk = b.Parent != nil + } + + if !childDisk { + // Existing disk, clear file operation + config.FileOperation = "" + } + } + } + + res = append(res, config) + } + + return res, nil +} diff --git a/vendor/github.com/vmware/govmomi/object/virtual_machine.go b/vendor/github.com/vmware/govmomi/object/virtual_machine.go index 701b27e4a..400fb6163 100644 --- a/vendor/github.com/vmware/govmomi/object/virtual_machine.go +++ b/vendor/github.com/vmware/govmomi/object/virtual_machine.go @@ -19,6 +19,7 @@ package object import ( "errors" "fmt" + "net" "github.com/vmware/govmomi/property" "github.com/vmware/govmomi/vim25" @@ -245,6 +246,77 @@ func (v VirtualMachine) WaitForIP(ctx context.Context) (string, error) { return ip, nil } +// WaitForNetIP waits for the VM guest.net property to report an IP address for all VM NICs. +// Only consider IPv4 addresses if the v4 param is true. +// Returns a map with MAC address as the key and IP address list as the value. +func (v VirtualMachine) WaitForNetIP(ctx context.Context, v4 bool) (map[string][]string, error) { + macs := make(map[string][]string) + + p := property.DefaultCollector(v.c) + + // Wait for all NICs to have a MacAddress, which may not be generated yet. + err := property.Wait(ctx, p, v.Reference(), []string{"config.hardware.device"}, func(pc []types.PropertyChange) bool { + for _, c := range pc { + if c.Op != types.PropertyChangeOpAssign { + continue + } + + devices := c.Val.(types.ArrayOfVirtualDevice).VirtualDevice + for _, device := range devices { + if nic, ok := device.(types.BaseVirtualEthernetCard); ok { + mac := nic.GetVirtualEthernetCard().MacAddress + if mac == "" { + return false + } + macs[mac] = nil + } + } + } + + return true + }) + + err = property.Wait(ctx, p, v.Reference(), []string{"guest.net"}, func(pc []types.PropertyChange) bool { + for _, c := range pc { + if c.Op != types.PropertyChangeOpAssign { + continue + } + + nics := c.Val.(types.ArrayOfGuestNicInfo).GuestNicInfo + for _, nic := range nics { + mac := nic.MacAddress + if mac == "" || nic.IpConfig == nil { + continue + } + + for _, ip := range nic.IpConfig.IpAddress { + if _, ok := macs[mac]; !ok { + continue // Ignore any that don't correspond to a VM device + } + if v4 && net.ParseIP(ip.IpAddress).To4() == nil { + continue // Ignore non IPv4 address + } + macs[mac] = append(macs[mac], ip.IpAddress) + } + } + } + + for _, ips := range macs { + if len(ips) == 0 { + return false + } + } + + return true + }) + + if err != nil { + return nil, err + } + + return macs, nil +} + // Device returns the VirtualMachine's config.hardware.device property. func (v VirtualMachine) Device(ctx context.Context) (VirtualDeviceList, error) { var o mo.VirtualMachine @@ -336,8 +408,12 @@ func (v VirtualMachine) EditDevice(ctx context.Context, device ...types.BaseVirt } // RemoveDevice removes the given devices on the VirtualMachine -func (v VirtualMachine) RemoveDevice(ctx context.Context, device ...types.BaseVirtualDevice) error { - return v.configureDevice(ctx, types.VirtualDeviceConfigSpecOperationRemove, types.VirtualDeviceConfigSpecFileOperationDestroy, device...) +func (v VirtualMachine) RemoveDevice(ctx context.Context, keepFiles bool, device ...types.BaseVirtualDevice) error { + fop := types.VirtualDeviceConfigSpecFileOperationDestroy + if keepFiles { + fop = "" + } + return v.configureDevice(ctx, types.VirtualDeviceConfigSpecOperationRemove, fop, device...) } // BootOptions returns the VirtualMachine's config.bootOptions property. @@ -400,6 +476,61 @@ func (v VirtualMachine) CreateSnapshot(ctx context.Context, name string, descrip return NewTask(v.c, res.Returnval), nil } +// RevertToSnapshot reverts to a named snapshot +func (v VirtualMachine) RevertToSnapshot(ctx context.Context, name string, suppressPowerOn bool) (*Task, error) { + var o mo.VirtualMachine + + err := v.Properties(ctx, v.Reference(), []string{"snapshot"}, &o) + + snapshotTree := o.Snapshot.RootSnapshotList + if len(snapshotTree) < 1 { + return nil, errors.New("No snapshots for this VM") + } + + snapshot, err := traverseSnapshotInTree(snapshotTree, name) + if err != nil { + return nil, err + } + + req := types.RevertToSnapshot_Task{ + This: snapshot, + SuppressPowerOn: types.NewBool(suppressPowerOn), + } + + res, err := methods.RevertToSnapshot_Task(ctx, v.c, &req) + if err != nil { + return nil, err + } + + return NewTask(v.c, res.Returnval), nil +} + +// traverseSnapshotInTree is a recursive function that will traverse a snapshot tree to find a given snapshot +func traverseSnapshotInTree(tree []types.VirtualMachineSnapshotTree, name string) (types.ManagedObjectReference, error) { + var o types.ManagedObjectReference + if tree == nil { + return o, errors.New("Snapshot tree is empty") + } + for _, s := range tree { + if s.Name == name { + o = s.Snapshot + break + } else { + childTree := s.ChildSnapshotList + var err error + o, err = traverseSnapshotInTree(childTree, name) + if err != nil { + return o, err + } + } + } + if o.Value == "" { + return o, errors.New("Snapshot not found") + } + + return o, nil +} + // IsToolsRunning returns true if VMware Tools is currently running in the guest OS, and false otherwise. func (v VirtualMachine) IsToolsRunning(ctx context.Context) (bool, error) { var o mo.VirtualMachine diff --git a/vendor/github.com/vmware/govmomi/property/wait.go b/vendor/github.com/vmware/govmomi/property/wait.go index 44f73eda6..930cad770 100644 --- a/vendor/github.com/vmware/govmomi/property/wait.go +++ b/vendor/github.com/vmware/govmomi/property/wait.go @@ -64,9 +64,66 @@ func Wait(ctx context.Context, c *Collector, obj types.ManagedObjectReference, p if err != nil { return err } + return waitLoop(ctx, p, f) +} +// WaitForView waits for any of the specified properties of the managed +// objects in the View to change. It calls the specified function for every update it +// receives. If this function returns false, it continues waiting for +// subsequent updates. If this function returns true, it stops waiting and +// returns. +// +// To only receive updates for the View's specified managed objects, the function +// creates a new property collector and calls CreateFilter. A new property +// collector is required because filters can only be added, not removed. +// +// The newly created collector is destroyed before this function returns (both +// in case of success or error). +// +// The code assumes that all objects in the View are the same type +func WaitForView(ctx context.Context, c *Collector, view types.ManagedObjectReference, obj types.ManagedObjectReference, ps []string, f func([]types.PropertyChange) bool) error { + p, err := c.Create(ctx) + if err != nil { + return err + } + + // Attempt to destroy the collector using the background context, as the + // specified context may have timed out or have been cancelled. + defer p.Destroy(context.Background()) + + req := types.CreateFilter{ + + Spec: types.PropertyFilterSpec{ + ObjectSet: []types.ObjectSpec{ + { + Obj: view, + SelectSet: []types.BaseSelectionSpec{ + &types.TraversalSpec{ + SelectionSpec: types.SelectionSpec{ + Name: "traverseEntities", + }, + Path: "view", + Type: view.Type}}, + }, + }, + PropSet: []types.PropertySpec{ + types.PropertySpec{ + Type: obj.Type, + PathSet: ps, + }, + }, + }} + + err = p.CreateFilter(ctx, req) + if err != nil { + return err + } + return waitLoop(ctx, p, f) +} + +func waitLoop(ctx context.Context, c *Collector, f func([]types.PropertyChange) bool) error { for version := ""; ; { - res, err := p.WaitForUpdates(ctx, version) + res, err := c.WaitForUpdates(ctx, version) if err != nil { return err } @@ -80,12 +137,11 @@ func Wait(ctx context.Context, c *Collector, obj types.ManagedObjectReference, p for _, fs := range res.FilterSet { for _, os := range fs.ObjectSet { - if os.Obj == obj { - if f(os.ChangeSet) { - return nil - } + if f(os.ChangeSet) { + return nil } } } } + } diff --git a/vendor/github.com/vmware/govmomi/vim25/client.go b/vendor/github.com/vmware/govmomi/vim25/client.go index 41cc45069..210bf6bff 100644 --- a/vendor/github.com/vmware/govmomi/vim25/client.go +++ b/vendor/github.com/vmware/govmomi/vim25/client.go @@ -1,5 +1,5 @@ /* -Copyright (c) 2015 VMware, Inc. All Rights Reserved. +Copyright (c) 2015-2016 VMware, Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/vendor/github.com/vmware/govmomi/vim25/methods/methods.go b/vendor/github.com/vmware/govmomi/vim25/methods/methods.go index 8356883bf..ccc1b38c8 100644 --- a/vendor/github.com/vmware/govmomi/vim25/methods/methods.go +++ b/vendor/github.com/vmware/govmomi/vim25/methods/methods.go @@ -1,5 +1,5 @@ /* -Copyright (c) 2014-2015 VMware, Inc. All Rights Reserved. +Copyright (c) 2014-2016 VMware, Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -2682,26 +2682,6 @@ func CreateVM_Task(ctx context.Context, r soap.RoundTripper, req *types.CreateVM return resBody.Res, nil } -type CreateVRPBody struct { - Req *types.CreateVRP `xml:"urn:vim25 CreateVRP,omitempty"` - Res *types.CreateVRPResponse `xml:"urn:vim25 CreateVRPResponse,omitempty"` - Fault_ *soap.Fault `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault,omitempty"` -} - -func (b *CreateVRPBody) Fault() *soap.Fault { return b.Fault_ } - -func CreateVRP(ctx context.Context, r soap.RoundTripper, req *types.CreateVRP) (*types.CreateVRPResponse, error) { - var reqBody, resBody CreateVRPBody - - reqBody.Req = req - - if err := r.RoundTrip(ctx, &reqBody, &resBody); err != nil { - return nil, err - } - - return resBody.Res, nil -} - type CreateVirtualDisk_TaskBody struct { Req *types.CreateVirtualDisk_Task `xml:"urn:vim25 CreateVirtualDisk_Task,omitempty"` Res *types.CreateVirtualDisk_TaskResponse `xml:"urn:vim25 CreateVirtualDisk_TaskResponse,omitempty"` @@ -3202,26 +3182,6 @@ func DeleteScsiLunState(ctx context.Context, r soap.RoundTripper, req *types.Del return resBody.Res, nil } -type DeleteVRPBody struct { - Req *types.DeleteVRP `xml:"urn:vim25 DeleteVRP,omitempty"` - Res *types.DeleteVRPResponse `xml:"urn:vim25 DeleteVRPResponse,omitempty"` - Fault_ *soap.Fault `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault,omitempty"` -} - -func (b *DeleteVRPBody) Fault() *soap.Fault { return b.Fault_ } - -func DeleteVRP(ctx context.Context, r soap.RoundTripper, req *types.DeleteVRP) (*types.DeleteVRPResponse, error) { - var reqBody, resBody DeleteVRPBody - - reqBody.Req = req - - if err := r.RoundTrip(ctx, &reqBody, &resBody); err != nil { - return nil, err - } - - return resBody.Res, nil -} - type DeleteVffsVolumeStateBody struct { Req *types.DeleteVffsVolumeState `xml:"urn:vim25 DeleteVffsVolumeState,omitempty"` Res *types.DeleteVffsVolumeStateResponse `xml:"urn:vim25 DeleteVffsVolumeStateResponse,omitempty"` @@ -3302,26 +3262,6 @@ func DeleteVsanObjects(ctx context.Context, r soap.RoundTripper, req *types.Dele return resBody.Res, nil } -type DeployVMBody struct { - Req *types.DeployVM `xml:"urn:vim25 DeployVM,omitempty"` - Res *types.DeployVMResponse `xml:"urn:vim25 DeployVMResponse,omitempty"` - Fault_ *soap.Fault `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault,omitempty"` -} - -func (b *DeployVMBody) Fault() *soap.Fault { return b.Fault_ } - -func DeployVM(ctx context.Context, r soap.RoundTripper, req *types.DeployVM) (*types.DeployVMResponse, error) { - var reqBody, resBody DeployVMBody - - reqBody.Req = req - - if err := r.RoundTrip(ctx, &reqBody, &resBody); err != nil { - return nil, err - } - - return resBody.Res, nil -} - type DeselectVnicBody struct { Req *types.DeselectVnic `xml:"urn:vim25 DeselectVnic,omitempty"` Res *types.DeselectVnicResponse `xml:"urn:vim25 DeselectVnicResponse,omitempty"` @@ -4962,46 +4902,6 @@ func GetAlarmState(ctx context.Context, r soap.RoundTripper, req *types.GetAlarm return resBody.Res, nil } -type GetAllVRPIdsBody struct { - Req *types.GetAllVRPIds `xml:"urn:vim25 GetAllVRPIds,omitempty"` - Res *types.GetAllVRPIdsResponse `xml:"urn:vim25 GetAllVRPIdsResponse,omitempty"` - Fault_ *soap.Fault `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault,omitempty"` -} - -func (b *GetAllVRPIdsBody) Fault() *soap.Fault { return b.Fault_ } - -func GetAllVRPIds(ctx context.Context, r soap.RoundTripper, req *types.GetAllVRPIds) (*types.GetAllVRPIdsResponse, error) { - var reqBody, resBody GetAllVRPIdsBody - - reqBody.Req = req - - if err := r.RoundTrip(ctx, &reqBody, &resBody); err != nil { - return nil, err - } - - return resBody.Res, nil -} - -type GetChildRPforHubBody struct { - Req *types.GetChildRPforHub `xml:"urn:vim25 GetChildRPforHub,omitempty"` - Res *types.GetChildRPforHubResponse `xml:"urn:vim25 GetChildRPforHubResponse,omitempty"` - Fault_ *soap.Fault `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault,omitempty"` -} - -func (b *GetChildRPforHubBody) Fault() *soap.Fault { return b.Fault_ } - -func GetChildRPforHub(ctx context.Context, r soap.RoundTripper, req *types.GetChildRPforHub) (*types.GetChildRPforHubResponse, error) { - var reqBody, resBody GetChildRPforHubBody - - reqBody.Req = req - - if err := r.RoundTrip(ctx, &reqBody, &resBody); err != nil { - return nil, err - } - - return resBody.Res, nil -} - type GetCustomizationSpecBody struct { Req *types.GetCustomizationSpec `xml:"urn:vim25 GetCustomizationSpec,omitempty"` Res *types.GetCustomizationSpecResponse `xml:"urn:vim25 GetCustomizationSpecResponse,omitempty"` @@ -5042,26 +4942,6 @@ func GetPublicKey(ctx context.Context, r soap.RoundTripper, req *types.GetPublic return resBody.Res, nil } -type GetRPSettingsBody struct { - Req *types.GetRPSettings `xml:"urn:vim25 GetRPSettings,omitempty"` - Res *types.GetRPSettingsResponse `xml:"urn:vim25 GetRPSettingsResponse,omitempty"` - Fault_ *soap.Fault `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault,omitempty"` -} - -func (b *GetRPSettingsBody) Fault() *soap.Fault { return b.Fault_ } - -func GetRPSettings(ctx context.Context, r soap.RoundTripper, req *types.GetRPSettings) (*types.GetRPSettingsResponse, error) { - var reqBody, resBody GetRPSettingsBody - - reqBody.Req = req - - if err := r.RoundTrip(ctx, &reqBody, &resBody); err != nil { - return nil, err - } - - return resBody.Res, nil -} - type GetResourceUsageBody struct { Req *types.GetResourceUsage `xml:"urn:vim25 GetResourceUsage,omitempty"` Res *types.GetResourceUsageResponse `xml:"urn:vim25 GetResourceUsageResponse,omitempty"` @@ -5082,66 +4962,6 @@ func GetResourceUsage(ctx context.Context, r soap.RoundTripper, req *types.GetRe return resBody.Res, nil } -type GetVRPSettingsBody struct { - Req *types.GetVRPSettings `xml:"urn:vim25 GetVRPSettings,omitempty"` - Res *types.GetVRPSettingsResponse `xml:"urn:vim25 GetVRPSettingsResponse,omitempty"` - Fault_ *soap.Fault `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault,omitempty"` -} - -func (b *GetVRPSettingsBody) Fault() *soap.Fault { return b.Fault_ } - -func GetVRPSettings(ctx context.Context, r soap.RoundTripper, req *types.GetVRPSettings) (*types.GetVRPSettingsResponse, error) { - var reqBody, resBody GetVRPSettingsBody - - reqBody.Req = req - - if err := r.RoundTrip(ctx, &reqBody, &resBody); err != nil { - return nil, err - } - - return resBody.Res, nil -} - -type GetVRPUsageBody struct { - Req *types.GetVRPUsage `xml:"urn:vim25 GetVRPUsage,omitempty"` - Res *types.GetVRPUsageResponse `xml:"urn:vim25 GetVRPUsageResponse,omitempty"` - Fault_ *soap.Fault `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault,omitempty"` -} - -func (b *GetVRPUsageBody) Fault() *soap.Fault { return b.Fault_ } - -func GetVRPUsage(ctx context.Context, r soap.RoundTripper, req *types.GetVRPUsage) (*types.GetVRPUsageResponse, error) { - var reqBody, resBody GetVRPUsageBody - - reqBody.Req = req - - if err := r.RoundTrip(ctx, &reqBody, &resBody); err != nil { - return nil, err - } - - return resBody.Res, nil -} - -type GetVRPofVMBody struct { - Req *types.GetVRPofVM `xml:"urn:vim25 GetVRPofVM,omitempty"` - Res *types.GetVRPofVMResponse `xml:"urn:vim25 GetVRPofVMResponse,omitempty"` - Fault_ *soap.Fault `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault,omitempty"` -} - -func (b *GetVRPofVMBody) Fault() *soap.Fault { return b.Fault_ } - -func GetVRPofVM(ctx context.Context, r soap.RoundTripper, req *types.GetVRPofVM) (*types.GetVRPofVMResponse, error) { - var reqBody, resBody GetVRPofVMBody - - reqBody.Req = req - - if err := r.RoundTrip(ctx, &reqBody, &resBody); err != nil { - return nil, err - } - - return resBody.Res, nil -} - type GetVsanObjExtAttrsBody struct { Req *types.GetVsanObjExtAttrs `xml:"urn:vim25 GetVsanObjExtAttrs,omitempty"` Res *types.GetVsanObjExtAttrsResponse `xml:"urn:vim25 GetVsanObjExtAttrsResponse,omitempty"` @@ -11862,26 +11682,6 @@ func SetLocale(ctx context.Context, r soap.RoundTripper, req *types.SetLocale) ( return resBody.Res, nil } -type SetManagedByVDCBody struct { - Req *types.SetManagedByVDC `xml:"urn:vim25 SetManagedByVDC,omitempty"` - Res *types.SetManagedByVDCResponse `xml:"urn:vim25 SetManagedByVDCResponse,omitempty"` - Fault_ *soap.Fault `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault,omitempty"` -} - -func (b *SetManagedByVDCBody) Fault() *soap.Fault { return b.Fault_ } - -func SetManagedByVDC(ctx context.Context, r soap.RoundTripper, req *types.SetManagedByVDC) (*types.SetManagedByVDCResponse, error) { - var reqBody, resBody SetManagedByVDCBody - - reqBody.Req = req - - if err := r.RoundTrip(ctx, &reqBody, &resBody); err != nil { - return nil, err - } - - return resBody.Res, nil -} - type SetMultipathLunPolicyBody struct { Req *types.SetMultipathLunPolicy `xml:"urn:vim25 SetMultipathLunPolicy,omitempty"` Res *types.SetMultipathLunPolicyResponse `xml:"urn:vim25 SetMultipathLunPolicyResponse,omitempty"` @@ -12522,26 +12322,6 @@ func UnbindVnic(ctx context.Context, r soap.RoundTripper, req *types.UnbindVnic) return resBody.Res, nil } -type UndeployVMBody struct { - Req *types.UndeployVM `xml:"urn:vim25 UndeployVM,omitempty"` - Res *types.UndeployVMResponse `xml:"urn:vim25 UndeployVMResponse,omitempty"` - Fault_ *soap.Fault `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault,omitempty"` -} - -func (b *UndeployVMBody) Fault() *soap.Fault { return b.Fault_ } - -func UndeployVM(ctx context.Context, r soap.RoundTripper, req *types.UndeployVM) (*types.UndeployVMResponse, error) { - var reqBody, resBody UndeployVMBody - - reqBody.Req = req - - if err := r.RoundTrip(ctx, &reqBody, &resBody); err != nil { - return nil, err - } - - return resBody.Res, nil -} - type UninstallHostPatch_TaskBody struct { Req *types.UninstallHostPatch_Task `xml:"urn:vim25 UninstallHostPatch_Task,omitempty"` Res *types.UninstallHostPatch_TaskResponse `xml:"urn:vim25 UninstallHostPatch_TaskResponse,omitempty"` @@ -13982,26 +13762,6 @@ func UpdateVAppConfig(ctx context.Context, r soap.RoundTripper, req *types.Updat return resBody.Res, nil } -type UpdateVRPBody struct { - Req *types.UpdateVRP `xml:"urn:vim25 UpdateVRP,omitempty"` - Res *types.UpdateVRPResponse `xml:"urn:vim25 UpdateVRPResponse,omitempty"` - Fault_ *soap.Fault `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault,omitempty"` -} - -func (b *UpdateVRPBody) Fault() *soap.Fault { return b.Fault_ } - -func UpdateVRP(ctx context.Context, r soap.RoundTripper, req *types.UpdateVRP) (*types.UpdateVRPResponse, error) { - var reqBody, resBody UpdateVRPBody - - reqBody.Req = req - - if err := r.RoundTrip(ctx, &reqBody, &resBody); err != nil { - return nil, err - } - - return resBody.Res, nil -} - type UpdateVirtualMachineFiles_TaskBody struct { Req *types.UpdateVirtualMachineFiles_Task `xml:"urn:vim25 UpdateVirtualMachineFiles_Task,omitempty"` Res *types.UpdateVirtualMachineFiles_TaskResponse `xml:"urn:vim25 UpdateVirtualMachineFiles_TaskResponse,omitempty"` diff --git a/vendor/github.com/vmware/govmomi/vim25/mo/entity.go b/vendor/github.com/vmware/govmomi/vim25/mo/entity.go new file mode 100644 index 000000000..193e6f71e --- /dev/null +++ b/vendor/github.com/vmware/govmomi/vim25/mo/entity.go @@ -0,0 +1,24 @@ +/* +Copyright (c) 2016 VMware, Inc. All Rights Reserved. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package mo + +// Entity is the interface that is implemented by all managed objects +// that extend ManagedEntity. +type Entity interface { + Reference + Entity() *ManagedEntity +} diff --git a/vendor/github.com/vmware/govmomi/vim25/mo/mo.go b/vendor/github.com/vmware/govmomi/vim25/mo/mo.go index 4ae25839d..f68b890a5 100644 --- a/vendor/github.com/vmware/govmomi/vim25/mo/mo.go +++ b/vendor/github.com/vmware/govmomi/vim25/mo/mo.go @@ -1,5 +1,5 @@ /* -Copyright (c) 2014 VMware, Inc. All Rights Reserved. +Copyright (c) 2014-2016 VMware, Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -64,6 +64,18 @@ func init() { t["AuthorizationManager"] = reflect.TypeOf((*AuthorizationManager)(nil)).Elem() } +type CertificateManager struct { + Self types.ManagedObjectReference +} + +func (m CertificateManager) Reference() types.ManagedObjectReference { + return m.Self +} + +func init() { + t["CertificateManager"] = reflect.TypeOf((*CertificateManager)(nil)).Elem() +} + type ClusterComputeResource struct { ComputeResource @@ -79,6 +91,17 @@ func init() { t["ClusterComputeResource"] = reflect.TypeOf((*ClusterComputeResource)(nil)).Elem() } +type ClusterEVCManager struct { + ExtensibleManagedObject + + ManagedCluster types.ManagedObjectReference `mo:"managedCluster"` + EvcState types.ClusterEVCManagerEVCState `mo:"evcState"` +} + +func init() { + t["ClusterEVCManager"] = reflect.TypeOf((*ClusterEVCManager)(nil)).Elem() +} + type ClusterProfile struct { Profile } @@ -107,6 +130,10 @@ type ComputeResource struct { ConfigurationEx types.BaseComputeResourceConfigInfo `mo:"configurationEx"` } +func (m *ComputeResource) Entity() *ManagedEntity { + return &m.ManagedEntity +} + func init() { t["ComputeResource"] = reflect.TypeOf((*ComputeResource)(nil)).Elem() } @@ -164,6 +191,10 @@ type Datacenter struct { Configuration types.DatacenterConfigInfo `mo:"configuration"` } +func (m *Datacenter) Entity() *ManagedEntity { + return &m.ManagedEntity +} + func init() { t["Datacenter"] = reflect.TypeOf((*Datacenter)(nil)).Elem() } @@ -180,6 +211,10 @@ type Datastore struct { IormConfiguration *types.StorageIORMInfo `mo:"iormConfiguration"` } +func (m *Datastore) Entity() *ManagedEntity { + return &m.ManagedEntity +} + func init() { t["Datastore"] = reflect.TypeOf((*Datastore)(nil)).Elem() } @@ -232,6 +267,10 @@ type DistributedVirtualSwitch struct { Runtime *types.DVSRuntimeInfo `mo:"runtime"` } +func (m *DistributedVirtualSwitch) Entity() *ManagedEntity { + return &m.ManagedEntity +} + func init() { t["DistributedVirtualSwitch"] = reflect.TypeOf((*DistributedVirtualSwitch)(nil)).Elem() } @@ -277,7 +316,7 @@ type EventManager struct { Description types.EventDescription `mo:"description"` LatestEvent types.BaseEvent `mo:"latestEvent"` - MaxCollector int `mo:"maxCollector"` + MaxCollector int32 `mo:"maxCollector"` } func (m EventManager) Reference() types.ManagedObjectReference { @@ -336,10 +375,26 @@ type Folder struct { ChildEntity []types.ManagedObjectReference `mo:"childEntity"` } +func (m *Folder) Entity() *ManagedEntity { + return &m.ManagedEntity +} + func init() { t["Folder"] = reflect.TypeOf((*Folder)(nil)).Elem() } +type GuestAliasManager struct { + Self types.ManagedObjectReference +} + +func (m GuestAliasManager) Reference() types.ManagedObjectReference { + return m.Self +} + +func init() { + t["GuestAliasManager"] = reflect.TypeOf((*GuestAliasManager)(nil)).Elem() +} + type GuestAuthManager struct { Self types.ManagedObjectReference } @@ -367,9 +422,11 @@ func init() { type GuestOperationsManager struct { Self types.ManagedObjectReference - AuthManager *types.ManagedObjectReference `mo:"authManager"` - FileManager *types.ManagedObjectReference `mo:"fileManager"` - ProcessManager *types.ManagedObjectReference `mo:"processManager"` + AuthManager *types.ManagedObjectReference `mo:"authManager"` + FileManager *types.ManagedObjectReference `mo:"fileManager"` + ProcessManager *types.ManagedObjectReference `mo:"processManager"` + GuestWindowsRegistryManager *types.ManagedObjectReference `mo:"guestWindowsRegistryManager"` + AliasManager *types.ManagedObjectReference `mo:"aliasManager"` } func (m GuestOperationsManager) Reference() types.ManagedObjectReference { @@ -392,6 +449,18 @@ func init() { t["GuestProcessManager"] = reflect.TypeOf((*GuestProcessManager)(nil)).Elem() } +type GuestWindowsRegistryManager struct { + Self types.ManagedObjectReference +} + +func (m GuestWindowsRegistryManager) Reference() types.ManagedObjectReference { + return m.Self +} + +func init() { + t["GuestWindowsRegistryManager"] = reflect.TypeOf((*GuestWindowsRegistryManager)(nil)).Elem() +} + type HistoryCollector struct { Self types.ManagedObjectReference @@ -406,6 +475,20 @@ func init() { t["HistoryCollector"] = reflect.TypeOf((*HistoryCollector)(nil)).Elem() } +type HostAccessManager struct { + Self types.ManagedObjectReference + + LockdownMode types.HostLockdownMode `mo:"lockdownMode"` +} + +func (m HostAccessManager) Reference() types.ManagedObjectReference { + return m.Self +} + +func init() { + t["HostAccessManager"] = reflect.TypeOf((*HostAccessManager)(nil)).Elem() +} + type HostActiveDirectoryAuthentication struct { HostDirectoryStore } @@ -483,6 +566,20 @@ func init() { t["HostCacheConfigurationManager"] = reflect.TypeOf((*HostCacheConfigurationManager)(nil)).Elem() } +type HostCertificateManager struct { + Self types.ManagedObjectReference + + CertificateInfo types.HostCertificateManagerCertificateInfo `mo:"certificateInfo"` +} + +func (m HostCertificateManager) Reference() types.ManagedObjectReference { + return m.Self +} + +func init() { + t["HostCertificateManager"] = reflect.TypeOf((*HostCertificateManager)(nil)).Elem() +} + type HostCpuSchedulerSystem struct { ExtensibleManagedObject @@ -598,7 +695,8 @@ func init() { type HostGraphicsManager struct { ExtensibleManagedObject - GraphicsInfo []types.HostGraphicsInfo `mo:"graphicsInfo"` + GraphicsInfo []types.HostGraphicsInfo `mo:"graphicsInfo"` + SharedPassthruGpuTypes []string `mo:"sharedPassthruGpuTypes"` } func init() { @@ -800,6 +898,10 @@ type HostSystem struct { SystemResources *types.HostSystemResourceInfo `mo:"systemResources"` } +func (m *HostSystem) Entity() *ManagedEntity { + return &m.ManagedEntity +} + func init() { t["HostSystem"] = reflect.TypeOf((*HostSystem)(nil)).Elem() } @@ -868,7 +970,7 @@ func init() { type HttpNfcLease struct { Self types.ManagedObjectReference - InitializeProgress int `mo:"initializeProgress"` + InitializeProgress int32 `mo:"initializeProgress"` Info *types.HttpNfcLeaseInfo `mo:"info"` State types.HttpNfcLeaseState `mo:"state"` Error *types.LocalizedMethodFault `mo:"error"` @@ -882,18 +984,6 @@ func init() { t["HttpNfcLease"] = reflect.TypeOf((*HttpNfcLease)(nil)).Elem() } -type InternalDynamicTypeManager struct { - Self types.ManagedObjectReference -} - -func (m InternalDynamicTypeManager) Reference() types.ManagedObjectReference { - return m.Self -} - -func init() { - t["InternalDynamicTypeManager"] = reflect.TypeOf((*InternalDynamicTypeManager)(nil)).Elem() -} - type InventoryView struct { ManagedObjectView } @@ -902,6 +992,18 @@ func init() { t["InventoryView"] = reflect.TypeOf((*InventoryView)(nil)).Elem() } +type IoFilterManager struct { + Self types.ManagedObjectReference +} + +func (m IoFilterManager) Reference() types.ManagedObjectReference { + return m.Self +} + +func init() { + t["IoFilterManager"] = reflect.TypeOf((*IoFilterManager)(nil)).Elem() +} + type IpPoolManager struct { Self types.ManagedObjectReference } @@ -989,7 +1091,7 @@ type ManagedEntity struct { OverallStatus types.ManagedEntityStatus `mo:"overallStatus"` ConfigStatus types.ManagedEntityStatus `mo:"configStatus"` ConfigIssue []types.BaseEvent `mo:"configIssue"` - EffectiveRole []int `mo:"effectiveRole"` + EffectiveRole []int32 `mo:"effectiveRole"` Permission []types.Permission `mo:"permission"` Name string `mo:"name"` DisabledMethod []string `mo:"disabledMethod"` @@ -1018,6 +1120,18 @@ func init() { t["ManagedObjectView"] = reflect.TypeOf((*ManagedObjectView)(nil)).Elem() } +type MessageBusProxy struct { + Self types.ManagedObjectReference +} + +func (m MessageBusProxy) Reference() types.ManagedObjectReference { + return m.Self +} + +func init() { + t["MessageBusProxy"] = reflect.TypeOf((*MessageBusProxy)(nil)).Elem() +} + type Network struct { ManagedEntity @@ -1027,6 +1141,10 @@ type Network struct { Vm []types.ManagedObjectReference `mo:"vm"` } +func (m *Network) Entity() *ManagedEntity { + return &m.ManagedEntity +} + func init() { t["Network"] = reflect.TypeOf((*Network)(nil)).Elem() } @@ -1054,6 +1172,18 @@ func init() { t["OptionManager"] = reflect.TypeOf((*OptionManager)(nil)).Elem() } +type OverheadMemoryManager struct { + Self types.ManagedObjectReference +} + +func (m OverheadMemoryManager) Reference() types.ManagedObjectReference { + return m.Self +} + +func init() { + t["OverheadMemoryManager"] = reflect.TypeOf((*OverheadMemoryManager)(nil)).Elem() +} + type OvfManager struct { Self types.ManagedObjectReference @@ -1160,18 +1290,6 @@ func init() { t["PropertyFilter"] = reflect.TypeOf((*PropertyFilter)(nil)).Elem() } -type ReflectManagedMethodExecuter struct { - Self types.ManagedObjectReference -} - -func (m ReflectManagedMethodExecuter) Reference() types.ManagedObjectReference { - return m.Self -} - -func init() { - t["ReflectManagedMethodExecuter"] = reflect.TypeOf((*ReflectManagedMethodExecuter)(nil)).Elem() -} - type ResourcePlanningManager struct { Self types.ManagedObjectReference } @@ -1196,6 +1314,10 @@ type ResourcePool struct { ChildConfiguration []types.ResourceConfigSpec `mo:"childConfiguration"` } +func (m *ResourcePool) Entity() *ManagedEntity { + return &m.ManagedEntity +} + func init() { t["ResourcePool"] = reflect.TypeOf((*ResourcePool)(nil)).Elem() } @@ -1349,7 +1471,7 @@ type TaskManager struct { RecentTask []types.ManagedObjectReference `mo:"recentTask"` Description types.TaskDescription `mo:"description"` - MaxCollector int `mo:"maxCollector"` + MaxCollector int32 `mo:"maxCollector"` } func (m TaskManager) Reference() types.ManagedObjectReference { @@ -1374,6 +1496,18 @@ func init() { t["UserDirectory"] = reflect.TypeOf((*UserDirectory)(nil)).Elem() } +type VRPResourceManager struct { + Self types.ManagedObjectReference +} + +func (m VRPResourceManager) Reference() types.ManagedObjectReference { + return m.Self +} + +func init() { + t["VRPResourceManager"] = reflect.TypeOf((*VRPResourceManager)(nil)).Elem() +} + type View struct { Self types.ManagedObjectReference } @@ -1449,6 +1583,10 @@ type VirtualMachine struct { GuestHeartbeatStatus types.ManagedEntityStatus `mo:"guestHeartbeatStatus"` } +func (m *VirtualMachine) Entity() *ManagedEntity { + return &m.ManagedEntity +} + func init() { t["VirtualMachine"] = reflect.TypeOf((*VirtualMachine)(nil)).Elem() } @@ -1482,6 +1620,7 @@ type VirtualMachineSnapshot struct { Config types.VirtualMachineConfigInfo `mo:"config"` ChildSnapshot []types.ManagedObjectReference `mo:"childSnapshot"` + Vm types.ManagedObjectReference `mo:"vm"` } func init() { @@ -1507,3 +1646,15 @@ type VmwareDistributedVirtualSwitch struct { func init() { t["VmwareDistributedVirtualSwitch"] = reflect.TypeOf((*VmwareDistributedVirtualSwitch)(nil)).Elem() } + +type VsanUpgradeSystem struct { + Self types.ManagedObjectReference +} + +func (m VsanUpgradeSystem) Reference() types.ManagedObjectReference { + return m.Self +} + +func init() { + t["VsanUpgradeSystem"] = reflect.TypeOf((*VsanUpgradeSystem)(nil)).Elem() +} diff --git a/vendor/github.com/vmware/govmomi/vim25/mo/retrieve.go b/vendor/github.com/vmware/govmomi/vim25/mo/retrieve.go index 310f720cc..32fc374b4 100644 --- a/vendor/github.com/vmware/govmomi/vim25/mo/retrieve.go +++ b/vendor/github.com/vmware/govmomi/vim25/mo/retrieve.go @@ -32,6 +32,9 @@ func ignoreMissingProperty(ref types.ManagedObjectReference, p types.MissingProp case "environmentBrowser": // See https://github.com/vmware/govmomi/pull/242 return true + case "alarmActionsEnabled": + // Seen with vApp child VM + return true } } diff --git a/vendor/github.com/vmware/govmomi/vim25/soap/client.go b/vendor/github.com/vmware/govmomi/vim25/soap/client.go index 74aed0bef..4f65afb63 100644 --- a/vendor/github.com/vmware/govmomi/vim25/soap/client.go +++ b/vendor/github.com/vmware/govmomi/vim25/soap/client.go @@ -21,6 +21,7 @@ import ( "crypto/tls" "encoding/json" "errors" + "fmt" "io" "net" "net/http" @@ -45,6 +46,9 @@ type RoundTripper interface { RoundTrip(ctx context.Context, req, res HasFault) error } +var DefaultVimNamespace = "urn:vim25" +var DefaultVimVersion = "6.0" + type Client struct { http.Client @@ -53,6 +57,9 @@ type Client struct { d *debugContainer t *http.Transport p *url.URL + + Namespace string // Vim namespace + Version string // Vim version } var schemeMatch = regexp.MustCompile(`^\w+://`) @@ -114,6 +121,9 @@ func NewClient(u *url.URL, insecure bool) *Client { c.u = c.URL() c.u.User = nil + c.Namespace = DefaultVimNamespace + c.Version = DefaultVimVersion + return &c } @@ -255,7 +265,8 @@ func (c *Client) RoundTrip(ctx context.Context, reqBody, resBody HasFault) error } req.Header.Set(`Content-Type`, `text/xml; charset="utf-8"`) - req.Header.Set(`SOAPAction`, `urn:vim25/6.0`) + soapAction := fmt.Sprintf("%s/%s", c.Namespace, c.Version) + req.Header.Set(`SOAPAction`, soapAction) if d.enabled() { d.debugRequest(req) @@ -417,23 +428,12 @@ var DefaultDownload = Download{ Method: "GET", } -// DownloadFile GETs the given URL to a local file -func (c *Client) DownloadFile(file string, u *url.URL, param *Download) error { - var err error - - if param == nil { - param = &DefaultDownload - } - - fh, err := os.Create(file) - if err != nil { - return err - } - defer fh.Close() +// Download GETs the remote file from the given URL +func (c *Client) Download(u *url.URL, param *Download) (io.ReadCloser, int64, error) { req, err := http.NewRequest(param.Method, u.String(), nil) if err != nil { - return err + return nil, 0, err } if param.Ticket != nil { @@ -442,11 +442,9 @@ func (c *Client) DownloadFile(file string, u *url.URL, param *Download) error { res, err := c.Client.Do(req) if err != nil { - return err + return nil, 0, err } - defer res.Body.Close() - switch res.StatusCode { case http.StatusOK: default: @@ -454,12 +452,37 @@ func (c *Client) DownloadFile(file string, u *url.URL, param *Download) error { } if err != nil { - return err + return nil, 0, err } - var r io.Reader = res.Body + var r io.ReadCloser = res.Body + + return r, res.ContentLength, nil +} + +// DownloadFile GETs the given URL to a local file +func (c *Client) DownloadFile(file string, u *url.URL, param *Download) error { + var err error + if param == nil { + param = &DefaultDownload + } + + rc, contentLength, err := c.Download(u, param) + if err != nil { + return err + } + defer rc.Close() + + var r io.Reader = rc + + fh, err := os.Create(file) + if err != nil { + return err + } + defer fh.Close() + if param.Progress != nil { - pr := progress.NewReader(param.Progress, res.Body, res.ContentLength) + pr := progress.NewReader(param.Progress, r, contentLength) r = pr // Mark progress reader as done when returning from this function. diff --git a/vendor/github.com/vmware/govmomi/vim25/types/enum.go b/vendor/github.com/vmware/govmomi/vim25/types/enum.go index d63a1d54b..07076e3a5 100644 --- a/vendor/github.com/vmware/govmomi/vim25/types/enum.go +++ b/vendor/github.com/vmware/govmomi/vim25/types/enum.go @@ -1,5 +1,5 @@ /* -Copyright (c) 2014-2015 VMware, Inc. All Rights Reserved. +Copyright (c) 2014-2016 VMware, Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -1033,6 +1033,7 @@ const ( HostConfigChangeOperationAdd = HostConfigChangeOperation("add") HostConfigChangeOperationRemove = HostConfigChangeOperation("remove") HostConfigChangeOperationEdit = HostConfigChangeOperation("edit") + HostConfigChangeOperationIgnore = HostConfigChangeOperation("ignore") ) func init() { diff --git a/vendor/github.com/vmware/govmomi/vim25/types/helpers.go b/vendor/github.com/vmware/govmomi/vim25/types/helpers.go index cbe577d63..75c82cab3 100644 --- a/vendor/github.com/vmware/govmomi/vim25/types/helpers.go +++ b/vendor/github.com/vmware/govmomi/vim25/types/helpers.go @@ -19,3 +19,7 @@ package types func NewBool(v bool) *bool { return &v } + +func NewReference(r ManagedObjectReference) *ManagedObjectReference { + return &r +} diff --git a/vendor/github.com/vmware/govmomi/vim25/types/if.go b/vendor/github.com/vmware/govmomi/vim25/types/if.go index f1102e10d..5894e9069 100644 --- a/vendor/github.com/vmware/govmomi/vim25/types/if.go +++ b/vendor/github.com/vmware/govmomi/vim25/types/if.go @@ -1,5 +1,5 @@ /* -Copyright (c) 2014-2015 VMware, Inc. All Rights Reserved. +Copyright (c) 2014-2016 VMware, Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/vendor/github.com/vmware/govmomi/vim25/types/types.go b/vendor/github.com/vmware/govmomi/vim25/types/types.go index e04995e94..03b976c2b 100644 --- a/vendor/github.com/vmware/govmomi/vim25/types/types.go +++ b/vendor/github.com/vmware/govmomi/vim25/types/types.go @@ -1,5 +1,5 @@ /* -Copyright (c) 2014-2015 VMware, Inc. All Rights Reserved. +Copyright (c) 2014-2016 VMware, Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -259,7 +259,7 @@ func init() { type ActiveDirectoryFault struct { VimFault - ErrorCode int `xml:"errorCode,omitempty"` + ErrorCode int32 `xml:"errorCode,omitempty"` } func init() { @@ -315,7 +315,7 @@ func init() { } type AddAuthorizationRoleResponse struct { - Returnval int `xml:"returnval"` + Returnval int32 `xml:"returnval"` } type AddCustomFieldDef AddCustomFieldDefRequestType @@ -653,7 +653,7 @@ func init() { type AfterStartupTaskScheduler struct { TaskScheduler - Minute int `xml:"minute"` + Minute int32 `xml:"minute"` } func init() { @@ -664,7 +664,7 @@ type AgentInstallFailed struct { HostConnectFault Reason string `xml:"reason,omitempty"` - StatusCode int `xml:"statusCode,omitempty"` + StatusCode int32 `xml:"statusCode,omitempty"` InstallerOutput string `xml:"installerOutput,omitempty"` } @@ -808,7 +808,7 @@ type AlarmInfo struct { Entity ManagedObjectReference `xml:"entity"` LastModifiedTime time.Time `xml:"lastModifiedTime"` LastModifiedUser string `xml:"lastModifiedUser"` - CreationEventId int `xml:"creationEventId"` + CreationEventId int32 `xml:"creationEventId"` } func init() { @@ -861,8 +861,8 @@ func init() { type AlarmSetting struct { DynamicData - ToleranceRange int `xml:"toleranceRange"` - ReportingFrequency int `xml:"reportingFrequency"` + ToleranceRange int32 `xml:"toleranceRange"` + ReportingFrequency int32 `xml:"reportingFrequency"` } func init() { @@ -899,7 +899,7 @@ type AlarmSpec struct { Enabled bool `xml:"enabled"` Expression BaseAlarmExpression `xml:"expression,typeattr"` Action BaseAlarmAction `xml:"action,omitempty,typeattr"` - ActionFrequency int `xml:"actionFrequency,omitempty"` + ActionFrequency int32 `xml:"actionFrequency,omitempty"` Setting *AlarmSetting `xml:"setting,omitempty"` } @@ -918,7 +918,7 @@ type AlarmState struct { Acknowledged *bool `xml:"acknowledged"` AcknowledgedByUser string `xml:"acknowledgedByUser,omitempty"` AcknowledgedTime *time.Time `xml:"acknowledgedTime"` - EventKey int `xml:"eventKey,omitempty"` + EventKey int32 `xml:"eventKey,omitempty"` } func init() { @@ -982,7 +982,7 @@ func init() { type AllocateIpv4AddressRequestType struct { This ManagedObjectReference `xml:"_this"` Dc ManagedObjectReference `xml:"dc"` - PoolId int `xml:"poolId"` + PoolId int32 `xml:"poolId"` AllocationId string `xml:"allocationId"` } @@ -1003,7 +1003,7 @@ func init() { type AllocateIpv6AddressRequestType struct { This ManagedObjectReference `xml:"_this"` Dc ManagedObjectReference `xml:"dc"` - PoolId int `xml:"poolId"` + PoolId int32 `xml:"poolId"` AllocationId string `xml:"allocationId"` } @@ -3431,7 +3431,7 @@ func init() { } type ArrayOfInt struct { - Int []int `xml:"int,omitempty"` + Int []int32 `xml:"int,omitempty"` } func init() { @@ -5289,7 +5289,7 @@ func init() { type AuthorizationRole struct { DynamicData - RoleId int `xml:"roleId"` + RoleId int32 `xml:"roleId"` System bool `xml:"system"` Name string `xml:"name"` Info BaseDescription `xml:"info,typeattr"` @@ -5304,8 +5304,8 @@ type AutoStartDefaults struct { DynamicData Enabled *bool `xml:"enabled"` - StartDelay int `xml:"startDelay,omitempty"` - StopDelay int `xml:"stopDelay,omitempty"` + StartDelay int32 `xml:"startDelay,omitempty"` + StopDelay int32 `xml:"stopDelay,omitempty"` WaitForHeartbeat *bool `xml:"waitForHeartbeat"` StopAction string `xml:"stopAction,omitempty"` } @@ -5318,11 +5318,11 @@ type AutoStartPowerInfo struct { DynamicData Key ManagedObjectReference `xml:"key"` - StartOrder int `xml:"startOrder"` - StartDelay int `xml:"startDelay"` + StartOrder int32 `xml:"startOrder"` + StartDelay int32 `xml:"startDelay"` WaitForHeartbeat AutoStartWaitHeartbeatSetting `xml:"waitForHeartbeat"` StartAction string `xml:"startAction"` - StopDelay int `xml:"stopDelay"` + StopDelay int32 `xml:"stopDelay"` StopAction string `xml:"stopAction"` } @@ -5505,8 +5505,8 @@ type BrowseDiagnosticLogRequestType struct { This ManagedObjectReference `xml:"_this"` Host *ManagedObjectReference `xml:"host,omitempty"` Key string `xml:"key"` - Start int `xml:"start,omitempty"` - Lines int `xml:"lines,omitempty"` + Start int32 `xml:"start,omitempty"` + Lines int32 `xml:"lines,omitempty"` } func init() { @@ -6592,7 +6592,7 @@ type ChoiceOption struct { OptionType ChoiceInfo []BaseElementDescription `xml:"choiceInfo,typeattr"` - DefaultIndex int `xml:"defaultIndex,omitempty"` + DefaultIndex int32 `xml:"defaultIndex,omitempty"` } func init() { @@ -6809,11 +6809,11 @@ func init() { type ClusterComputeResourceSummary struct { ComputeResourceSummary - CurrentFailoverLevel int `xml:"currentFailoverLevel"` + CurrentFailoverLevel int32 `xml:"currentFailoverLevel"` AdmissionControlInfo BaseClusterDasAdmissionControlInfo `xml:"admissionControlInfo,omitempty,typeattr"` - NumVmotions int `xml:"numVmotions"` - TargetBalance int `xml:"targetBalance,omitempty"` - CurrentBalance int `xml:"currentBalance,omitempty"` + NumVmotions int32 `xml:"numVmotions"` + TargetBalance int32 `xml:"targetBalance,omitempty"` + CurrentBalance int32 `xml:"currentBalance,omitempty"` UsageSummary *ClusterUsageSummary `xml:"usageSummary,omitempty"` CurrentEVCModeKey string `xml:"currentEVCModeKey,omitempty"` DasData BaseClusterDasData `xml:"dasData,omitempty,typeattr"` @@ -6969,7 +6969,7 @@ type ClusterDasConfigInfo struct { VmMonitoring string `xml:"vmMonitoring,omitempty"` HostMonitoring string `xml:"hostMonitoring,omitempty"` VmComponentProtecting string `xml:"vmComponentProtecting,omitempty"` - FailoverLevel int `xml:"failoverLevel,omitempty"` + FailoverLevel int32 `xml:"failoverLevel,omitempty"` AdmissionControlPolicy BaseClusterDasAdmissionControlPolicy `xml:"admissionControlPolicy,omitempty,typeattr"` AdmissionControlEnabled *bool `xml:"admissionControlEnabled"` DefaultVmSettings *ClusterDasVmSettings `xml:"defaultVmSettings,omitempty"` @@ -7006,12 +7006,12 @@ type ClusterDasFailoverLevelAdvancedRuntimeInfo struct { ClusterDasAdvancedRuntimeInfo SlotInfo ClusterDasFailoverLevelAdvancedRuntimeInfoSlotInfo `xml:"slotInfo"` - TotalSlots int `xml:"totalSlots"` - UsedSlots int `xml:"usedSlots"` - UnreservedSlots int `xml:"unreservedSlots"` - TotalVms int `xml:"totalVms"` - TotalHosts int `xml:"totalHosts"` - TotalGoodHosts int `xml:"totalGoodHosts"` + TotalSlots int32 `xml:"totalSlots"` + UsedSlots int32 `xml:"usedSlots"` + UnreservedSlots int32 `xml:"unreservedSlots"` + TotalVms int32 `xml:"totalVms"` + TotalHosts int32 `xml:"totalHosts"` + TotalGoodHosts int32 `xml:"totalGoodHosts"` HostSlots []ClusterDasFailoverLevelAdvancedRuntimeInfoHostSlots `xml:"hostSlots,omitempty"` VmsRequiringMultipleSlots []ClusterDasFailoverLevelAdvancedRuntimeInfoVmSlots `xml:"vmsRequiringMultipleSlots,omitempty"` } @@ -7024,7 +7024,7 @@ type ClusterDasFailoverLevelAdvancedRuntimeInfoHostSlots struct { DynamicData Host ManagedObjectReference `xml:"host"` - Slots int `xml:"slots"` + Slots int32 `xml:"slots"` } func init() { @@ -7034,9 +7034,9 @@ func init() { type ClusterDasFailoverLevelAdvancedRuntimeInfoSlotInfo struct { DynamicData - NumVcpus int `xml:"numVcpus"` - CpuMHz int `xml:"cpuMHz"` - MemoryMB int `xml:"memoryMB"` + NumVcpus int32 `xml:"numVcpus"` + CpuMHz int32 `xml:"cpuMHz"` + MemoryMB int32 `xml:"memoryMB"` } func init() { @@ -7047,7 +7047,7 @@ type ClusterDasFailoverLevelAdvancedRuntimeInfoVmSlots struct { DynamicData Vm ManagedObjectReference `xml:"vm"` - Slots int `xml:"slots"` + Slots int32 `xml:"slots"` } func init() { @@ -7077,7 +7077,7 @@ type ClusterDasHostRecommendation struct { DynamicData Host ManagedObjectReference `xml:"host"` - DrsRating int `xml:"drsRating,omitempty"` + DrsRating int32 `xml:"drsRating,omitempty"` } func init() { @@ -7133,7 +7133,7 @@ type ClusterDpmConfigInfo struct { Enabled *bool `xml:"enabled"` DefaultDpmBehavior DpmBehavior `xml:"defaultDpmBehavior,omitempty"` - HostPowerActionRate int `xml:"hostPowerActionRate,omitempty"` + HostPowerActionRate int32 `xml:"hostPowerActionRate,omitempty"` Option []BaseOptionValue `xml:"option,omitempty,typeattr"` } @@ -7169,7 +7169,7 @@ type ClusterDrsConfigInfo struct { Enabled *bool `xml:"enabled"` EnableVmBehaviorOverrides *bool `xml:"enableVmBehaviorOverrides"` DefaultVmBehavior DrsBehavior `xml:"defaultVmBehavior,omitempty"` - VmotionRate int `xml:"vmotionRate,omitempty"` + VmotionRate int32 `xml:"vmotionRate,omitempty"` Option []BaseOptionValue `xml:"option,omitempty,typeattr"` } @@ -7215,13 +7215,13 @@ type ClusterDrsMigration struct { Key string `xml:"key"` Time time.Time `xml:"time"` Vm ManagedObjectReference `xml:"vm"` - CpuLoad int `xml:"cpuLoad,omitempty"` + CpuLoad int32 `xml:"cpuLoad,omitempty"` MemoryLoad int64 `xml:"memoryLoad,omitempty"` Source ManagedObjectReference `xml:"source"` - SourceCpuLoad int `xml:"sourceCpuLoad,omitempty"` + SourceCpuLoad int32 `xml:"sourceCpuLoad,omitempty"` SourceMemoryLoad int64 `xml:"sourceMemoryLoad,omitempty"` Destination ManagedObjectReference `xml:"destination"` - DestinationCpuLoad int `xml:"destinationCpuLoad,omitempty"` + DestinationCpuLoad int32 `xml:"destinationCpuLoad,omitempty"` DestinationMemoryLoad int64 `xml:"destinationMemoryLoad,omitempty"` } @@ -7233,7 +7233,7 @@ type ClusterDrsRecommendation struct { DynamicData Key string `xml:"key"` - Rating int `xml:"rating"` + Rating int32 `xml:"rating"` Reason string `xml:"reason"` ReasonText string `xml:"reasonText"` MigrationList []ClusterDrsMigration `xml:"migrationList"` @@ -7365,7 +7365,7 @@ func init() { type ClusterFailoverLevelAdmissionControlInfo struct { ClusterDasAdmissionControlInfo - CurrentFailoverLevel int `xml:"currentFailoverLevel"` + CurrentFailoverLevel int32 `xml:"currentFailoverLevel"` } func init() { @@ -7375,7 +7375,7 @@ func init() { type ClusterFailoverLevelAdmissionControlPolicy struct { ClusterDasAdmissionControlPolicy - FailoverLevel int `xml:"failoverLevel"` + FailoverLevel int32 `xml:"failoverLevel"` SlotPolicy BaseClusterSlotPolicy `xml:"slotPolicy,omitempty,typeattr"` } @@ -7386,8 +7386,8 @@ func init() { type ClusterFailoverResourcesAdmissionControlInfo struct { ClusterDasAdmissionControlInfo - CurrentCpuFailoverResourcesPercent int `xml:"currentCpuFailoverResourcesPercent"` - CurrentMemoryFailoverResourcesPercent int `xml:"currentMemoryFailoverResourcesPercent"` + CurrentCpuFailoverResourcesPercent int32 `xml:"currentCpuFailoverResourcesPercent"` + CurrentMemoryFailoverResourcesPercent int32 `xml:"currentMemoryFailoverResourcesPercent"` } func init() { @@ -7397,8 +7397,8 @@ func init() { type ClusterFailoverResourcesAdmissionControlPolicy struct { ClusterDasAdmissionControlPolicy - CpuFailoverResourcesPercent int `xml:"cpuFailoverResourcesPercent"` - MemoryFailoverResourcesPercent int `xml:"memoryFailoverResourcesPercent"` + CpuFailoverResourcesPercent int32 `xml:"cpuFailoverResourcesPercent"` + MemoryFailoverResourcesPercent int32 `xml:"memoryFailoverResourcesPercent"` } func init() { @@ -7408,8 +7408,8 @@ func init() { type ClusterFixedSizeSlotPolicy struct { ClusterSlotPolicy - Cpu int `xml:"cpu"` - Memory int `xml:"memory"` + Cpu int32 `xml:"cpu"` + Memory int32 `xml:"memory"` } func init() { @@ -7452,9 +7452,9 @@ type ClusterHostPowerAction struct { ClusterAction OperationType HostPowerOperationType `xml:"operationType"` - PowerConsumptionWatt int `xml:"powerConsumptionWatt,omitempty"` - CpuCapacityMHz int `xml:"cpuCapacityMHz,omitempty"` - MemCapacityMB int `xml:"memCapacityMB,omitempty"` + PowerConsumptionWatt int32 `xml:"powerConsumptionWatt,omitempty"` + CpuCapacityMHz int32 `xml:"cpuCapacityMHz,omitempty"` + MemCapacityMB int32 `xml:"memCapacityMB,omitempty"` } func init() { @@ -7465,7 +7465,7 @@ type ClusterHostRecommendation struct { DynamicData Host ManagedObjectReference `xml:"host"` - Rating int `xml:"rating"` + Rating int32 `xml:"rating"` } func init() { @@ -7586,7 +7586,7 @@ type ClusterRecommendation struct { Key string `xml:"key"` Type string `xml:"type"` Time time.Time `xml:"time"` - Rating int `xml:"rating"` + Rating int32 `xml:"rating"` Reason string `xml:"reason"` ReasonText string `xml:"reasonText"` WarningText string `xml:"warningText,omitempty"` @@ -7611,10 +7611,10 @@ func init() { type ClusterResourceUsageSummary struct { DynamicData - CpuUsedMHz int `xml:"cpuUsedMHz"` - CpuCapacityMHz int `xml:"cpuCapacityMHz"` - MemUsedMB int `xml:"memUsedMB"` - MemCapacityMB int `xml:"memCapacityMB"` + CpuUsedMHz int32 `xml:"cpuUsedMHz"` + CpuCapacityMHz int32 `xml:"cpuCapacityMHz"` + MemUsedMB int32 `xml:"memUsedMB"` + MemCapacityMB int32 `xml:"memCapacityMB"` StorageUsedMB int64 `xml:"storageUsedMB"` StorageCapacityMB int64 `xml:"storageCapacityMB"` } @@ -7626,7 +7626,7 @@ func init() { type ClusterRuleInfo struct { DynamicData - Key int `xml:"key,omitempty"` + Key int32 `xml:"key,omitempty"` Status ManagedEntityStatus `xml:"status,omitempty"` Enabled *bool `xml:"enabled"` Name string `xml:"name,omitempty"` @@ -7672,19 +7672,19 @@ func init() { type ClusterUsageSummary struct { DynamicData - TotalCpuCapacityMhz int `xml:"totalCpuCapacityMhz"` - TotalMemCapacityMB int `xml:"totalMemCapacityMB"` - CpuReservationMhz int `xml:"cpuReservationMhz"` - MemReservationMB int `xml:"memReservationMB"` - PoweredOffCpuReservationMhz int `xml:"poweredOffCpuReservationMhz,omitempty"` - PoweredOffMemReservationMB int `xml:"poweredOffMemReservationMB,omitempty"` - CpuDemandMhz int `xml:"cpuDemandMhz"` - MemDemandMB int `xml:"memDemandMB"` + TotalCpuCapacityMhz int32 `xml:"totalCpuCapacityMhz"` + TotalMemCapacityMB int32 `xml:"totalMemCapacityMB"` + CpuReservationMhz int32 `xml:"cpuReservationMhz"` + MemReservationMB int32 `xml:"memReservationMB"` + PoweredOffCpuReservationMhz int32 `xml:"poweredOffCpuReservationMhz,omitempty"` + PoweredOffMemReservationMB int32 `xml:"poweredOffMemReservationMB,omitempty"` + CpuDemandMhz int32 `xml:"cpuDemandMhz"` + MemDemandMB int32 `xml:"memDemandMB"` StatsGenNumber int64 `xml:"statsGenNumber"` - CpuEntitledMhz int `xml:"cpuEntitledMhz"` - MemEntitledMB int `xml:"memEntitledMB"` - PoweredOffVmCount int `xml:"poweredOffVmCount"` - TotalVmCount int `xml:"totalVmCount"` + CpuEntitledMhz int32 `xml:"cpuEntitledMhz"` + MemEntitledMB int32 `xml:"memEntitledMB"` + PoweredOffVmCount int32 `xml:"poweredOffVmCount"` + TotalVmCount int32 `xml:"totalVmCount"` } func init() { @@ -7696,7 +7696,7 @@ type ClusterVmComponentProtectionSettings struct { VmStorageProtectionForAPD string `xml:"vmStorageProtectionForAPD,omitempty"` EnableAPDTimeoutForHosts *bool `xml:"enableAPDTimeoutForHosts"` - VmTerminateDelayForAPDSec int `xml:"vmTerminateDelayForAPDSec,omitempty"` + VmTerminateDelayForAPDSec int32 `xml:"vmTerminateDelayForAPDSec,omitempty"` VmReactionOnAPDCleared string `xml:"vmReactionOnAPDCleared,omitempty"` VmStorageProtectionForPDL string `xml:"vmStorageProtectionForPDL,omitempty"` } @@ -7733,10 +7733,10 @@ type ClusterVmToolsMonitoringSettings struct { Enabled *bool `xml:"enabled"` VmMonitoring string `xml:"vmMonitoring,omitempty"` ClusterSettings *bool `xml:"clusterSettings"` - FailureInterval int `xml:"failureInterval,omitempty"` - MinUpTime int `xml:"minUpTime,omitempty"` - MaxFailures int `xml:"maxFailures,omitempty"` - MaxFailureWindow int `xml:"maxFailureWindow,omitempty"` + FailureInterval int32 `xml:"failureInterval,omitempty"` + MinUpTime int32 `xml:"minUpTime,omitempty"` + MaxFailures int32 `xml:"maxFailures,omitempty"` + MaxFailureWindow int32 `xml:"maxFailureWindow,omitempty"` } func init() { @@ -7905,14 +7905,14 @@ func init() { type ComputeResourceSummary struct { DynamicData - TotalCpu int `xml:"totalCpu"` + TotalCpu int32 `xml:"totalCpu"` TotalMemory int64 `xml:"totalMemory"` NumCpuCores int16 `xml:"numCpuCores"` NumCpuThreads int16 `xml:"numCpuThreads"` - EffectiveCpu int `xml:"effectiveCpu"` + EffectiveCpu int32 `xml:"effectiveCpu"` EffectiveMemory int64 `xml:"effectiveMemory"` - NumHosts int `xml:"numHosts"` - NumEffectiveHosts int `xml:"numEffectiveHosts"` + NumHosts int32 `xml:"numHosts"` + NumEffectiveHosts int32 `xml:"numEffectiveHosts"` OverallStatus ManagedEntityStatus `xml:"overallStatus"` } @@ -7937,9 +7937,9 @@ func init() { type ConfigTarget struct { DynamicData - NumCpus int `xml:"numCpus"` - NumCpuCores int `xml:"numCpuCores"` - NumNumaNodes int `xml:"numNumaNodes"` + NumCpus int32 `xml:"numCpus"` + NumCpuCores int32 `xml:"numCpuCores"` + NumNumaNodes int32 `xml:"numNumaNodes"` SmcPresent *bool `xml:"smcPresent"` Datastore []VirtualMachineDatastoreInfo `xml:"datastore,omitempty"` Network []VirtualMachineNetworkInfo `xml:"network,omitempty"` @@ -7956,7 +7956,7 @@ type ConfigTarget struct { ScsiPassthrough []VirtualMachineScsiPassthroughInfo `xml:"scsiPassthrough,omitempty"` ScsiDisk []VirtualMachineScsiDiskDeviceInfo `xml:"scsiDisk,omitempty"` IdeDisk []VirtualMachineIdeDiskDeviceInfo `xml:"ideDisk,omitempty"` - MaxMemMBOptimalPerf int `xml:"maxMemMBOptimalPerf"` + MaxMemMBOptimalPerf int32 `xml:"maxMemMBOptimalPerf"` ResourcePool *ResourcePoolRuntimeInfo `xml:"resourcePool,omitempty"` AutoVmotion *bool `xml:"autoVmotion"` PciPassthrough []BaseVirtualMachinePciPassthroughInfo `xml:"pciPassthrough,omitempty,typeattr"` @@ -8073,7 +8073,7 @@ func init() { type ConfigurePowerPolicyRequestType struct { This ManagedObjectReference `xml:"_this"` - Key int `xml:"key"` + Key int32 `xml:"key"` } func init() { @@ -8299,7 +8299,7 @@ func init() { type CpuIncompatible struct { VirtualHardwareCompatibilityIssue - Level int `xml:"level"` + Level int32 `xml:"level"` RegisterName string `xml:"registerName"` RegisterBits string `xml:"registerBits,omitempty"` DesiredBits string `xml:"desiredBits,omitempty"` @@ -8768,7 +8768,7 @@ func init() { } type CreateIpPoolResponse struct { - Returnval int `xml:"returnval"` + Returnval int32 `xml:"returnval"` } type CreateListView CreateListViewRequestType @@ -9225,25 +9225,6 @@ type CreateVM_TaskResponse struct { Returnval ManagedObjectReference `xml:"returnval"` } -type CreateVRP CreateVRPRequestType - -func init() { - t["CreateVRP"] = reflect.TypeOf((*CreateVRP)(nil)).Elem() -} - -type CreateVRPRequestType struct { - This ManagedObjectReference `xml:"_this"` - Spec VirtualResourcePoolSpec `xml:"spec"` -} - -func init() { - t["CreateVRPRequestType"] = reflect.TypeOf((*CreateVRPRequestType)(nil)).Elem() -} - -type CreateVRPResponse struct { - Returnval string `xml:"returnval"` -} - type CreateVirtualDiskRequestType struct { This ManagedObjectReference `xml:"_this"` Name string `xml:"name"` @@ -9324,7 +9305,7 @@ type CurrentTimeResponse struct { type CustomFieldDef struct { DynamicData - Key int `xml:"key"` + Key int32 `xml:"key"` Name string `xml:"name"` Type string `xml:"type"` ManagedObjectType string `xml:"managedObjectType,omitempty"` @@ -9347,7 +9328,7 @@ func init() { type CustomFieldDefEvent struct { CustomFieldEvent - FieldKey int `xml:"fieldKey"` + FieldKey int32 `xml:"fieldKey"` Name string `xml:"name"` } @@ -9394,7 +9375,7 @@ func init() { type CustomFieldValue struct { DynamicData - Key int `xml:"key"` + Key int32 `xml:"key"` } func init() { @@ -9405,7 +9386,7 @@ type CustomFieldValueChangedEvent struct { CustomFieldEvent Entity ManagedEntityEventArgument `xml:"entity"` - FieldKey int `xml:"fieldKey"` + FieldKey int32 `xml:"fieldKey"` Name string `xml:"name"` Value string `xml:"value"` } @@ -9525,7 +9506,7 @@ type CustomizationFixedIpV6 struct { CustomizationIpV6Generator IpAddress string `xml:"ipAddress"` - SubnetMask int `xml:"subnetMask"` + SubnetMask int32 `xml:"subnetMask"` } func init() { @@ -9567,9 +9548,9 @@ type CustomizationGuiUnattended struct { DynamicData Password *CustomizationPassword `xml:"password,omitempty"` - TimeZone int `xml:"timeZone"` + TimeZone int32 `xml:"timeZone"` AutoLogon bool `xml:"autoLogon"` - AutoLogonCount int `xml:"autoLogonCount"` + AutoLogonCount int32 `xml:"autoLogonCount"` } func init() { @@ -9646,7 +9627,7 @@ type CustomizationLicenseFilePrintData struct { DynamicData AutoMode CustomizationLicenseDataMode `xml:"autoMode"` - AutoUsers int `xml:"autoUsers,omitempty"` + AutoUsers int32 `xml:"autoUsers,omitempty"` } func init() { @@ -10021,7 +10002,7 @@ type DVPortStatus struct { Blocked bool `xml:"blocked"` VlanIds []NumericRange `xml:"vlanIds,omitempty"` TrunkingMode *bool `xml:"trunkingMode"` - Mtu int `xml:"mtu,omitempty"` + Mtu int32 `xml:"mtu,omitempty"` LinkPeer string `xml:"linkPeer,omitempty"` MacAddress string `xml:"macAddress,omitempty"` StatusDetail string `xml:"statusDetail,omitempty"` @@ -10040,7 +10021,7 @@ type DVPortgroupConfigInfo struct { Key string `xml:"key"` Name string `xml:"name"` - NumPorts int `xml:"numPorts"` + NumPorts int32 `xml:"numPorts"` DistributedVirtualSwitch *ManagedObjectReference `xml:"distributedVirtualSwitch,omitempty"` DefaultPortConfig BaseDVPortSetting `xml:"defaultPortConfig,omitempty,typeattr"` Description string `xml:"description,omitempty"` @@ -10063,7 +10044,7 @@ type DVPortgroupConfigSpec struct { ConfigVersion string `xml:"configVersion,omitempty"` Name string `xml:"name,omitempty"` - NumPorts int `xml:"numPorts,omitempty"` + NumPorts int32 `xml:"numPorts,omitempty"` PortNameFormat string `xml:"portNameFormat,omitempty"` DefaultPortConfig BaseDVPortSetting `xml:"defaultPortConfig,omitempty,typeattr"` Description string `xml:"description,omitempty"` @@ -10199,9 +10180,9 @@ type DVSConfigInfo struct { Uuid string `xml:"uuid"` Name string `xml:"name"` - NumStandalonePorts int `xml:"numStandalonePorts"` - NumPorts int `xml:"numPorts"` - MaxPorts int `xml:"maxPorts"` + NumStandalonePorts int32 `xml:"numStandalonePorts"` + NumPorts int32 `xml:"numPorts"` + MaxPorts int32 `xml:"maxPorts"` UplinkPortPolicy BaseDVSUplinkPortPolicy `xml:"uplinkPortPolicy,typeattr"` UplinkPortgroup []ManagedObjectReference `xml:"uplinkPortgroup,omitempty"` DefaultPortConfig BaseDVPortSetting `xml:"defaultPortConfig,typeattr"` @@ -10217,12 +10198,12 @@ type DVSConfigInfo struct { SwitchIpAddress string `xml:"switchIpAddress,omitempty"` CreateTime time.Time `xml:"createTime"` NetworkResourceManagementEnabled *bool `xml:"networkResourceManagementEnabled"` - DefaultProxySwitchMaxNumPorts int `xml:"defaultProxySwitchMaxNumPorts,omitempty"` + DefaultProxySwitchMaxNumPorts int32 `xml:"defaultProxySwitchMaxNumPorts,omitempty"` HealthCheckConfig []BaseDVSHealthCheckConfig `xml:"healthCheckConfig,omitempty,typeattr"` InfrastructureTrafficResourceConfig []DvsHostInfrastructureTrafficResource `xml:"infrastructureTrafficResourceConfig,omitempty"` NetworkResourceControlVersion string `xml:"networkResourceControlVersion,omitempty"` VmVnicNetworkResourcePool []DVSVmVnicNetworkResourcePool `xml:"vmVnicNetworkResourcePool,omitempty"` - PnicCapacityRatioForReservation int `xml:"pnicCapacityRatioForReservation,omitempty"` + PnicCapacityRatioForReservation int32 `xml:"pnicCapacityRatioForReservation,omitempty"` } func init() { @@ -10234,8 +10215,8 @@ type DVSConfigSpec struct { ConfigVersion string `xml:"configVersion,omitempty"` Name string `xml:"name,omitempty"` - NumStandalonePorts int `xml:"numStandalonePorts,omitempty"` - MaxPorts int `xml:"maxPorts,omitempty"` + NumStandalonePorts int32 `xml:"numStandalonePorts,omitempty"` + MaxPorts int32 `xml:"maxPorts,omitempty"` UplinkPortPolicy BaseDVSUplinkPortPolicy `xml:"uplinkPortPolicy,omitempty,typeattr"` UplinkPortgroup []ManagedObjectReference `xml:"uplinkPortgroup,omitempty"` DefaultPortConfig BaseDVPortSetting `xml:"defaultPortConfig,omitempty,typeattr"` @@ -10246,7 +10227,7 @@ type DVSConfigSpec struct { VendorSpecificConfig []DistributedVirtualSwitchKeyedOpaqueBlob `xml:"vendorSpecificConfig,omitempty"` Contact *DVSContactInfo `xml:"contact,omitempty"` SwitchIpAddress string `xml:"switchIpAddress,omitempty"` - DefaultProxySwitchMaxNumPorts int `xml:"defaultProxySwitchMaxNumPorts,omitempty"` + DefaultProxySwitchMaxNumPorts int32 `xml:"defaultProxySwitchMaxNumPorts,omitempty"` InfrastructureTrafficResourceConfig []DvsHostInfrastructureTrafficResource `xml:"infrastructureTrafficResourceConfig,omitempty"` NetworkResourceControlVersion string `xml:"networkResourceControlVersion,omitempty"` } @@ -10300,7 +10281,7 @@ type DVSFeatureCapability struct { NetworkResourceManagementSupported bool `xml:"networkResourceManagementSupported"` VmDirectPathGen2Supported bool `xml:"vmDirectPathGen2Supported"` NicTeamingPolicy []string `xml:"nicTeamingPolicy,omitempty"` - NetworkResourcePoolHighShareValue int `xml:"networkResourcePoolHighShareValue,omitempty"` + NetworkResourcePoolHighShareValue int32 `xml:"networkResourcePoolHighShareValue,omitempty"` NetworkResourceManagementCapability *DVSNetworkResourceManagementCapability `xml:"networkResourceManagementCapability,omitempty"` HealthCheckCapability BaseDVSHealthCheckCapability `xml:"healthCheckCapability,omitempty,typeattr"` RollbackCapability *DVSRollbackCapability `xml:"rollbackCapability,omitempty"` @@ -10324,7 +10305,7 @@ type DVSHealthCheckConfig struct { DynamicData Enable *bool `xml:"enable"` - Interval int `xml:"interval,omitempty"` + Interval int32 `xml:"interval,omitempty"` } func init() { @@ -10428,7 +10409,7 @@ type DVSNetworkResourceManagementCapability struct { DynamicData NetworkResourceManagementSupported bool `xml:"networkResourceManagementSupported"` - NetworkResourcePoolHighShareValue int `xml:"networkResourcePoolHighShareValue"` + NetworkResourcePoolHighShareValue int32 `xml:"networkResourcePoolHighShareValue"` QosSupported bool `xml:"qosSupported"` UserDefinedNetworkResourcePoolsSupported bool `xml:"userDefinedNetworkResourcePoolsSupported"` NetworkResourceControlVersion3Supported *bool `xml:"networkResourceControlVersion3Supported"` @@ -10457,7 +10438,7 @@ type DVSNetworkResourcePoolAllocationInfo struct { Limit int64 `xml:"limit,omitempty"` Shares *SharesInfo `xml:"shares,omitempty"` - PriorityTag int `xml:"priorityTag,omitempty"` + PriorityTag int32 `xml:"priorityTag,omitempty"` } func init() { @@ -10557,7 +10538,7 @@ type DVSSummary struct { Name string `xml:"name"` Uuid string `xml:"uuid"` - NumPorts int `xml:"numPorts"` + NumPorts int32 `xml:"numPorts"` ProductInfo *DistributedVirtualSwitchProductSpec `xml:"productInfo,omitempty"` HostMember []ManagedObjectReference `xml:"hostMember,omitempty"` Vm []ManagedObjectReference `xml:"vm,omitempty"` @@ -10565,7 +10546,7 @@ type DVSSummary struct { PortgroupName []string `xml:"portgroupName,omitempty"` Description string `xml:"description,omitempty"` Contact *DVSContactInfo `xml:"contact,omitempty"` - NumHosts int `xml:"numHosts,omitempty"` + NumHosts int32 `xml:"numHosts,omitempty"` } func init() { @@ -10620,7 +10601,7 @@ func init() { type DailyTaskScheduler struct { HourlyTaskScheduler - Hour int `xml:"hour"` + Hour int32 `xml:"hour"` } func init() { @@ -11376,24 +11357,6 @@ func init() { type DeleteScsiLunStateResponse struct { } -type DeleteVRP DeleteVRPRequestType - -func init() { - t["DeleteVRP"] = reflect.TypeOf((*DeleteVRP)(nil)).Elem() -} - -type DeleteVRPRequestType struct { - This ManagedObjectReference `xml:"_this"` - VrpId string `xml:"vrpId"` -} - -func init() { - t["DeleteVRPRequestType"] = reflect.TypeOf((*DeleteVRPRequestType)(nil)).Elem() -} - -type DeleteVRPResponse struct { -} - type DeleteVffsVolumeState DeleteVffsVolumeStateRequestType func init() { @@ -11487,26 +11450,6 @@ func init() { t["DeltaDiskFormatNotSupportedFault"] = reflect.TypeOf((*DeltaDiskFormatNotSupportedFault)(nil)).Elem() } -type DeployVM DeployVMRequestType - -func init() { - t["DeployVM"] = reflect.TypeOf((*DeployVM)(nil)).Elem() -} - -type DeployVMRequestType struct { - This ManagedObjectReference `xml:"_this"` - VrpId string `xml:"vrpId"` - Vm ManagedObjectReference `xml:"vm"` - Cluster ManagedObjectReference `xml:"cluster"` -} - -func init() { - t["DeployVMRequestType"] = reflect.TypeOf((*DeployVMRequestType)(nil)).Elem() -} - -type DeployVMResponse struct { -} - type Description struct { DynamicData @@ -11644,7 +11587,7 @@ func init() { type DestroyIpPoolRequestType struct { This ManagedObjectReference `xml:"_this"` Dc ManagedObjectReference `xml:"dc"` - Id int `xml:"id"` + Id int32 `xml:"id"` Force bool `xml:"force"` } @@ -11960,8 +11903,8 @@ func init() { type DiagnosticManagerLogHeader struct { DynamicData - LineStart int `xml:"lineStart"` - LineEnd int `xml:"lineEnd"` + LineStart int32 `xml:"lineStart"` + LineEnd int32 `xml:"lineEnd"` LineText []string `xml:"lineText,omitempty"` } @@ -12348,7 +12291,7 @@ func init() { type DiskNotSupported struct { VirtualHardwareCompatibilityIssue - Disk int `xml:"disk"` + Disk int32 `xml:"disk"` } func init() { @@ -12405,7 +12348,7 @@ type DistributedVirtualPort struct { Conflict bool `xml:"conflict"` ConflictPortKey string `xml:"conflictPortKey,omitempty"` State *DVPortState `xml:"state,omitempty"` - ConnectionCookie int `xml:"connectionCookie,omitempty"` + ConnectionCookie int32 `xml:"connectionCookie,omitempty"` LastStatusChange time.Time `xml:"lastStatusChange"` HostLocalPort *bool `xml:"hostLocalPort"` } @@ -12458,7 +12401,7 @@ type DistributedVirtualSwitchHostMemberConfigInfo struct { DynamicData Host *ManagedObjectReference `xml:"host,omitempty"` - MaxProxySwitchPorts int `xml:"maxProxySwitchPorts"` + MaxProxySwitchPorts int32 `xml:"maxProxySwitchPorts"` VendorSpecificConfig []DistributedVirtualSwitchKeyedOpaqueBlob `xml:"vendorSpecificConfig,omitempty"` Backing BaseDistributedVirtualSwitchHostMemberBacking `xml:"backing,typeattr"` } @@ -12473,7 +12416,7 @@ type DistributedVirtualSwitchHostMemberConfigSpec struct { Operation string `xml:"operation"` Host ManagedObjectReference `xml:"host"` Backing BaseDistributedVirtualSwitchHostMemberBacking `xml:"backing,omitempty,typeattr"` - MaxProxySwitchPorts int `xml:"maxProxySwitchPorts,omitempty"` + MaxProxySwitchPorts int32 `xml:"maxProxySwitchPorts,omitempty"` VendorSpecificConfig []DistributedVirtualSwitchKeyedOpaqueBlob `xml:"vendorSpecificConfig,omitempty"` } @@ -12497,7 +12440,7 @@ type DistributedVirtualSwitchHostMemberPnicSpec struct { PnicDevice string `xml:"pnicDevice"` UplinkPortKey string `xml:"uplinkPortKey,omitempty"` UplinkPortgroupKey string `xml:"uplinkPortgroupKey,omitempty"` - ConnectionCookie int `xml:"connectionCookie,omitempty"` + ConnectionCookie int32 `xml:"connectionCookie,omitempty"` } func init() { @@ -12507,7 +12450,7 @@ func init() { type DistributedVirtualSwitchHostMemberRuntimeState struct { DynamicData - CurrentMaxProxySwitchPorts int `xml:"currentMaxProxySwitchPorts"` + CurrentMaxProxySwitchPorts int32 `xml:"currentMaxProxySwitchPorts"` } func init() { @@ -12653,7 +12596,7 @@ type DistributedVirtualSwitchPortConnection struct { SwitchUuid string `xml:"switchUuid"` PortgroupKey string `xml:"portgroupKey,omitempty"` PortKey string `xml:"portKey,omitempty"` - ConnectionCookie int `xml:"connectionCookie,omitempty"` + ConnectionCookie int32 `xml:"connectionCookie,omitempty"` } func init() { @@ -13298,8 +13241,8 @@ func init() { type DvsIpPortRange struct { DvsIpPort - StartPortNumber int `xml:"startPortNumber"` - EndPortNumber int `xml:"endPortNumber"` + StartPortNumber int32 `xml:"startPortNumber"` + EndPortNumber int32 `xml:"endPortNumber"` } func init() { @@ -13608,7 +13551,7 @@ func init() { type DvsRateLimitNetworkRuleAction struct { DvsNetworkRuleAction - PacketsPerSecond int `xml:"packetsPerSecond"` + PacketsPerSecond int32 `xml:"packetsPerSecond"` } func init() { @@ -13658,9 +13601,9 @@ func init() { type DvsResourceRuntimeInfo struct { DynamicData - Capacity int `xml:"capacity,omitempty"` - Usage int `xml:"usage,omitempty"` - Available int `xml:"available,omitempty"` + Capacity int32 `xml:"capacity,omitempty"` + Usage int32 `xml:"usage,omitempty"` + Available int32 `xml:"available,omitempty"` AllocatedResource []DvsVnicAllocatedResource `xml:"allocatedResource,omitempty"` VmVnicNetworkResourcePoolRuntime []DvsVmVnicNetworkResourcePoolRuntimeInfo `xml:"vmVnicNetworkResourcePoolRuntime,omitempty"` } @@ -13705,7 +13648,7 @@ func init() { type DvsSingleIpPort struct { DvsIpPort - PortNumber int `xml:"portNumber"` + PortNumber int32 `xml:"portNumber"` } func init() { @@ -13747,7 +13690,7 @@ type DvsTrafficRule struct { Key string `xml:"key,omitempty"` Description string `xml:"description,omitempty"` - Sequence int `xml:"sequence,omitempty"` + Sequence int32 `xml:"sequence,omitempty"` Qualifier []BaseDvsNetworkRuleQualifier `xml:"qualifier,omitempty,typeattr"` Action BaseDvsNetworkRuleAction `xml:"action,omitempty,typeattr"` Direction string `xml:"direction,omitempty"` @@ -13762,7 +13705,7 @@ type DvsTrafficRuleset struct { Key string `xml:"key,omitempty"` Enabled *bool `xml:"enabled"` - Precedence int `xml:"precedence,omitempty"` + Precedence int32 `xml:"precedence,omitempty"` Rules []DvsTrafficRule `xml:"rules,omitempty"` } @@ -13773,8 +13716,8 @@ func init() { type DvsUpdateTagNetworkRuleAction struct { DvsNetworkRuleAction - QosTag int `xml:"qosTag,omitempty"` - DscpTag int `xml:"dscpTag,omitempty"` + QosTag int32 `xml:"qosTag,omitempty"` + DscpTag int32 `xml:"dscpTag,omitempty"` } func init() { @@ -13837,9 +13780,9 @@ type DvsVmVnicNetworkResourcePoolRuntimeInfo struct { Key string `xml:"key"` Name string `xml:"name,omitempty"` - Capacity int `xml:"capacity,omitempty"` - Usage int `xml:"usage,omitempty"` - Available int `xml:"available,omitempty"` + Capacity int32 `xml:"capacity,omitempty"` + Usage int32 `xml:"usage,omitempty"` + Available int32 `xml:"available,omitempty"` Status string `xml:"status"` AllocatedResource []DvsVnicAllocatedResource `xml:"allocatedResource,omitempty"` } @@ -14083,7 +14026,7 @@ type EVCMode struct { FeatureRequirement []VirtualMachineFeatureRequirement `xml:"featureRequirement,omitempty"` Vendor string `xml:"vendor"` Track []string `xml:"track,omitempty"` - VendorTier int `xml:"vendorTier"` + VendorTier int32 `xml:"vendorTier"` } func init() { @@ -14369,7 +14312,7 @@ type EnterLockdownModeResponse struct { type EnterMaintenanceModeRequestType struct { This ManagedObjectReference `xml:"_this"` - Timeout int `xml:"timeout"` + Timeout int32 `xml:"timeout"` EvacuatePoweredOffVms *bool `xml:"evacuatePoweredOffVms"` MaintenanceSpec *HostMaintenanceSpec `xml:"maintenanceSpec,omitempty"` } @@ -14553,7 +14496,7 @@ type EsxAgentHostManagerUpdateConfigResponse struct { type EvacuateVsanNodeRequestType struct { This ManagedObjectReference `xml:"_this"` MaintenanceSpec HostMaintenanceSpec `xml:"maintenanceSpec"` - Timeout int `xml:"timeout"` + Timeout int32 `xml:"timeout"` } func init() { @@ -14601,8 +14544,8 @@ type EvcManagerResponse struct { type Event struct { DynamicData - Key int `xml:"key"` - ChainId int `xml:"chainId"` + Key int32 `xml:"key"` + ChainId int32 `xml:"chainId"` CreatedTime time.Time `xml:"createdTime"` UserName string `xml:"userName"` Datacenter *DatacenterEventArgument `xml:"datacenter,omitempty"` @@ -14719,7 +14662,7 @@ type EventFilterSpec struct { Entity *EventFilterSpecByEntity `xml:"entity,omitempty"` Time *EventFilterSpecByTime `xml:"time,omitempty"` UserName *EventFilterSpecByUsername `xml:"userName,omitempty"` - EventChainId int `xml:"eventChainId,omitempty"` + EventChainId int32 `xml:"eventChainId,omitempty"` Alarm *ManagedObjectReference `xml:"alarm,omitempty"` ScheduledTask *ManagedObjectReference `xml:"scheduledTask,omitempty"` DisableFullMessage *bool `xml:"disableFullMessage"` @@ -14832,7 +14775,7 @@ func init() { type ExitMaintenanceModeRequestType struct { This ManagedObjectReference `xml:"_this"` - Timeout int `xml:"timeout"` + Timeout int32 `xml:"timeout"` } func init() { @@ -14944,7 +14887,7 @@ type ExpiredFeatureLicense struct { NotEnoughLicenses Feature string `xml:"feature"` - Count int `xml:"count"` + Count int32 `xml:"count"` ExpirationDate time.Time `xml:"expirationDate"` } @@ -15299,7 +15242,7 @@ type ExtensionManagerIpAllocationUsage struct { DynamicData ExtensionKey string `xml:"extensionKey"` - NumAddresses int `xml:"numAddresses"` + NumAddresses int32 `xml:"numAddresses"` } func init() { @@ -15464,7 +15407,7 @@ func init() { type FaultToleranceConfigInfo struct { DynamicData - Role int `xml:"role"` + Role int32 `xml:"role"` InstanceUuids []string `xml:"instanceUuids"` ConfigPaths []string `xml:"configPaths"` Orphaned *bool `xml:"orphaned"` @@ -15652,7 +15595,7 @@ func init() { type FcoeConfig struct { DynamicData - PriorityClass int `xml:"priorityClass"` + PriorityClass int32 `xml:"priorityClass"` SourceMac string `xml:"sourceMac"` VlanRange []FcoeConfigVlanRange `xml:"vlanRange"` Capabilities FcoeConfigFcoeCapabilities `xml:"capabilities"` @@ -15679,7 +15622,7 @@ type FcoeConfigFcoeSpecification struct { DynamicData UnderlyingPnic string `xml:"underlyingPnic"` - PriorityClass int `xml:"priorityClass,omitempty"` + PriorityClass int32 `xml:"priorityClass,omitempty"` SourceMac string `xml:"sourceMac,omitempty"` VlanRange []FcoeConfigVlanRange `xml:"vlanRange,omitempty"` } @@ -15691,8 +15634,8 @@ func init() { type FcoeConfigVlanRange struct { DynamicData - VlanLow int `xml:"vlanLow"` - VlanHigh int `xml:"vlanHigh"` + VlanLow int32 `xml:"vlanLow"` + VlanHigh int32 `xml:"vlanHigh"` } func init() { @@ -16474,7 +16417,7 @@ type GatewayToHostConnectFault struct { GatewayConnectFault Hostname string `xml:"hostname"` - Port int `xml:"port,omitempty"` + Port int32 `xml:"port,omitempty"` } func init() { @@ -16740,44 +16683,6 @@ type GetAlarmStateResponse struct { Returnval []AlarmState `xml:"returnval,omitempty"` } -type GetAllVRPIds GetAllVRPIdsRequestType - -func init() { - t["GetAllVRPIds"] = reflect.TypeOf((*GetAllVRPIds)(nil)).Elem() -} - -type GetAllVRPIdsRequestType struct { - This ManagedObjectReference `xml:"_this"` -} - -func init() { - t["GetAllVRPIdsRequestType"] = reflect.TypeOf((*GetAllVRPIdsRequestType)(nil)).Elem() -} - -type GetAllVRPIdsResponse struct { - Returnval []string `xml:"returnval,omitempty"` -} - -type GetChildRPforHub GetChildRPforHubRequestType - -func init() { - t["GetChildRPforHub"] = reflect.TypeOf((*GetChildRPforHub)(nil)).Elem() -} - -type GetChildRPforHubRequestType struct { - This ManagedObjectReference `xml:"_this"` - VrpId string `xml:"vrpId"` - Hub ManagedObjectReference `xml:"hub"` -} - -func init() { - t["GetChildRPforHubRequestType"] = reflect.TypeOf((*GetChildRPforHubRequestType)(nil)).Elem() -} - -type GetChildRPforHubResponse struct { - Returnval *ManagedObjectReference `xml:"returnval,omitempty"` -} - type GetCustomizationSpec GetCustomizationSpecRequestType func init() { @@ -16815,25 +16720,6 @@ type GetPublicKeyResponse struct { Returnval string `xml:"returnval"` } -type GetRPSettings GetRPSettingsRequestType - -func init() { - t["GetRPSettings"] = reflect.TypeOf((*GetRPSettings)(nil)).Elem() -} - -type GetRPSettingsRequestType struct { - This ManagedObjectReference `xml:"_this"` - ResourcePool ManagedObjectReference `xml:"resourcePool"` -} - -func init() { - t["GetRPSettingsRequestType"] = reflect.TypeOf((*GetRPSettingsRequestType)(nil)).Elem() -} - -type GetRPSettingsResponse struct { - Returnval *ResourceConfigSpec `xml:"returnval,omitempty"` -} - type GetResourceUsage GetResourceUsageRequestType func init() { @@ -16852,63 +16738,6 @@ type GetResourceUsageResponse struct { Returnval ClusterResourceUsageSummary `xml:"returnval"` } -type GetVRPSettings GetVRPSettingsRequestType - -func init() { - t["GetVRPSettings"] = reflect.TypeOf((*GetVRPSettings)(nil)).Elem() -} - -type GetVRPSettingsRequestType struct { - This ManagedObjectReference `xml:"_this"` - VrpId string `xml:"vrpId"` -} - -func init() { - t["GetVRPSettingsRequestType"] = reflect.TypeOf((*GetVRPSettingsRequestType)(nil)).Elem() -} - -type GetVRPSettingsResponse struct { - Returnval VirtualResourcePoolSpec `xml:"returnval"` -} - -type GetVRPUsage GetVRPUsageRequestType - -func init() { - t["GetVRPUsage"] = reflect.TypeOf((*GetVRPUsage)(nil)).Elem() -} - -type GetVRPUsageRequestType struct { - This ManagedObjectReference `xml:"_this"` - VrpId string `xml:"vrpId"` -} - -func init() { - t["GetVRPUsageRequestType"] = reflect.TypeOf((*GetVRPUsageRequestType)(nil)).Elem() -} - -type GetVRPUsageResponse struct { - Returnval VirtualResourcePoolUsage `xml:"returnval"` -} - -type GetVRPofVM GetVRPofVMRequestType - -func init() { - t["GetVRPofVM"] = reflect.TypeOf((*GetVRPofVM)(nil)).Elem() -} - -type GetVRPofVMRequestType struct { - This ManagedObjectReference `xml:"_this"` - Vm ManagedObjectReference `xml:"vm"` -} - -func init() { - t["GetVRPofVMRequestType"] = reflect.TypeOf((*GetVRPofVMRequestType)(nil)).Elem() -} - -type GetVRPofVMResponse struct { - Returnval string `xml:"returnval,omitempty"` -} - type GetVsanObjExtAttrs GetVsanObjExtAttrsRequestType func init() { @@ -17129,7 +16958,7 @@ type GuestInfoNamespaceGenerationInfo struct { DynamicData Key string `xml:"key"` - GenerationNo int `xml:"generationNo"` + GenerationNo int32 `xml:"generationNo"` } func init() { @@ -17140,7 +16969,7 @@ type GuestListFileInfo struct { DynamicData Files []GuestFileInfo `xml:"files,omitempty"` - Remaining int `xml:"remaining"` + Remaining int32 `xml:"remaining"` } func init() { @@ -17180,7 +17009,7 @@ type GuestNicInfo struct { IpAddress []string `xml:"ipAddress,omitempty"` MacAddress string `xml:"macAddress,omitempty"` Connected bool `xml:"connected"` - DeviceConfigId int `xml:"deviceConfigId"` + DeviceConfigId int32 `xml:"deviceConfigId"` DnsConfig *NetDnsConfigInfo `xml:"dnsConfig,omitempty"` IpConfig *NetIpConfigInfo `xml:"ipConfig,omitempty"` NetBIOSConfig BaseNetBIOSConfigInfo `xml:"netBIOSConfig,omitempty,typeattr"` @@ -17224,18 +17053,18 @@ type GuestOsDescriptor struct { Id string `xml:"id"` Family string `xml:"family"` FullName string `xml:"fullName"` - SupportedMaxCPUs int `xml:"supportedMaxCPUs"` - NumSupportedPhysicalSockets int `xml:"numSupportedPhysicalSockets,omitempty"` - NumSupportedCoresPerSocket int `xml:"numSupportedCoresPerSocket,omitempty"` - SupportedMinMemMB int `xml:"supportedMinMemMB"` - SupportedMaxMemMB int `xml:"supportedMaxMemMB"` - RecommendedMemMB int `xml:"recommendedMemMB"` - RecommendedColorDepth int `xml:"recommendedColorDepth"` + SupportedMaxCPUs int32 `xml:"supportedMaxCPUs"` + NumSupportedPhysicalSockets int32 `xml:"numSupportedPhysicalSockets,omitempty"` + NumSupportedCoresPerSocket int32 `xml:"numSupportedCoresPerSocket,omitempty"` + SupportedMinMemMB int32 `xml:"supportedMinMemMB"` + SupportedMaxMemMB int32 `xml:"supportedMaxMemMB"` + RecommendedMemMB int32 `xml:"recommendedMemMB"` + RecommendedColorDepth int32 `xml:"recommendedColorDepth"` SupportedDiskControllerList []string `xml:"supportedDiskControllerList"` RecommendedSCSIController string `xml:"recommendedSCSIController,omitempty"` RecommendedDiskController string `xml:"recommendedDiskController"` - SupportedNumDisks int `xml:"supportedNumDisks"` - RecommendedDiskSizeMB int `xml:"recommendedDiskSizeMB"` + SupportedNumDisks int32 `xml:"supportedNumDisks"` + RecommendedDiskSizeMB int32 `xml:"recommendedDiskSizeMB"` RecommendedCdromController string `xml:"recommendedCdromController,omitempty"` SupportedEthernetCard []string `xml:"supportedEthernetCard"` RecommendedEthernetCard string `xml:"recommendedEthernetCard,omitempty"` @@ -17259,7 +17088,7 @@ type GuestOsDescriptor struct { SupportLevel string `xml:"supportLevel,omitempty"` SupportedForCreate *bool `xml:"supportedForCreate"` VRAMSizeInKB *IntOption `xml:"vRAMSizeInKB,omitempty"` - NumSupportedFloppyDevices int `xml:"numSupportedFloppyDevices,omitempty"` + NumSupportedFloppyDevices int32 `xml:"numSupportedFloppyDevices,omitempty"` WakeOnLanEthernetCard []string `xml:"wakeOnLanEthernetCard,omitempty"` SupportsPvscsiControllerForBoot *bool `xml:"supportsPvscsiControllerForBoot"` DiskUuidEnabled *bool `xml:"diskUuidEnabled"` @@ -17287,8 +17116,8 @@ func init() { type GuestPosixFileAttributes struct { GuestFileAttributes - OwnerId int `xml:"ownerId,omitempty"` - GroupId int `xml:"groupId,omitempty"` + OwnerId int32 `xml:"ownerId,omitempty"` + GroupId int32 `xml:"groupId,omitempty"` Permissions int64 `xml:"permissions,omitempty"` } @@ -17305,7 +17134,7 @@ type GuestProcessInfo struct { CmdLine string `xml:"cmdLine"` StartTime time.Time `xml:"startTime"` EndTime *time.Time `xml:"endTime"` - ExitCode int `xml:"exitCode,omitempty"` + ExitCode int32 `xml:"exitCode,omitempty"` } func init() { @@ -17396,7 +17225,7 @@ func init() { type GuestRegValueDwordSpec struct { GuestRegValueDataSpec - Value int `xml:"value"` + Value int32 `xml:"value"` } func init() { @@ -17587,8 +17416,8 @@ func init() { type GuestScreenInfo struct { DynamicData - Width int `xml:"width"` - Height int `xml:"height"` + Width int32 `xml:"width"` + Height int32 `xml:"height"` } func init() { @@ -18020,10 +17849,10 @@ type HostCapability struct { VmotionSupported bool `xml:"vmotionSupported"` StandbySupported bool `xml:"standbySupported"` IpmiSupported *bool `xml:"ipmiSupported"` - MaxSupportedVMs int `xml:"maxSupportedVMs,omitempty"` - MaxRunningVMs int `xml:"maxRunningVMs,omitempty"` - MaxSupportedVcpus int `xml:"maxSupportedVcpus,omitempty"` - MaxRegisteredVMs int `xml:"maxRegisteredVMs,omitempty"` + MaxSupportedVMs int32 `xml:"maxSupportedVMs,omitempty"` + MaxRunningVMs int32 `xml:"maxRunningVMs,omitempty"` + MaxSupportedVcpus int32 `xml:"maxSupportedVcpus,omitempty"` + MaxRegisteredVMs int32 `xml:"maxRegisteredVMs,omitempty"` DatastorePrincipalSupported bool `xml:"datastorePrincipalSupported"` SanSupported bool `xml:"sanSupported"` NfsSupported bool `xml:"nfsSupported"` @@ -18044,7 +17873,7 @@ type HostCapability struct { StorageVMotionSupported *bool `xml:"storageVMotionSupported"` VmotionWithStorageVMotionSupported *bool `xml:"vmotionWithStorageVMotionSupported"` VmotionAcrossNetworkSupported *bool `xml:"vmotionAcrossNetworkSupported"` - MaxNumDisksSVMotion int `xml:"maxNumDisksSVMotion,omitempty"` + MaxNumDisksSVMotion int32 `xml:"maxNumDisksSVMotion,omitempty"` HbrNicSelectionSupported *bool `xml:"hbrNicSelectionSupported"` VrNfcNicSelectionSupported *bool `xml:"vrNfcNicSelectionSupported"` RecordReplaySupported *bool `xml:"recordReplaySupported"` @@ -18054,7 +17883,7 @@ type HostCapability struct { SmpFtSupported *bool `xml:"smpFtSupported"` FtCompatibilityIssues []string `xml:"ftCompatibilityIssues,omitempty"` SmpFtCompatibilityIssues []string `xml:"smpFtCompatibilityIssues,omitempty"` - MaxVcpusPerFtVm int `xml:"maxVcpusPerFtVm,omitempty"` + MaxVcpusPerFtVm int32 `xml:"maxVcpusPerFtVm,omitempty"` LoginBySSLThumbprintSupported *bool `xml:"loginBySSLThumbprintSupported"` CloneFromSnapshotSupported *bool `xml:"cloneFromSnapshotSupported"` DeltaDiskBackingsSupported *bool `xml:"deltaDiskBackingsSupported"` @@ -18066,13 +17895,13 @@ type HostCapability struct { VmDirectPathGen2Supported *bool `xml:"vmDirectPathGen2Supported"` VmDirectPathGen2UnsupportedReason []string `xml:"vmDirectPathGen2UnsupportedReason,omitempty"` VmDirectPathGen2UnsupportedReasonExtended string `xml:"vmDirectPathGen2UnsupportedReasonExtended,omitempty"` - SupportedVmfsMajorVersion []int `xml:"supportedVmfsMajorVersion,omitempty"` + SupportedVmfsMajorVersion []int32 `xml:"supportedVmfsMajorVersion,omitempty"` VStorageCapable *bool `xml:"vStorageCapable"` SnapshotRelayoutSupported *bool `xml:"snapshotRelayoutSupported"` FirewallIpRulesSupported *bool `xml:"firewallIpRulesSupported"` ServicePackageInfoSupported *bool `xml:"servicePackageInfoSupported"` - MaxHostRunningVms int `xml:"maxHostRunningVms,omitempty"` - MaxHostSupportedVcpus int `xml:"maxHostSupportedVcpus,omitempty"` + MaxHostRunningVms int32 `xml:"maxHostRunningVms,omitempty"` + MaxHostSupportedVcpus int32 `xml:"maxHostSupportedVcpus,omitempty"` VmfsDatastoreMountCapable *bool `xml:"vmfsDatastoreMountCapable"` EightPlusHostVmfsSharedAccessSupported *bool `xml:"eightPlusHostVmfsSharedAccessSupported"` NestedHVSupported *bool `xml:"nestedHVSupported"` @@ -18434,7 +18263,7 @@ type HostConfigSummary struct { DynamicData Name string `xml:"name"` - Port int `xml:"port"` + Port int32 `xml:"port"` SslThumbprint string `xml:"sslThumbprint,omitempty"` Product *AboutInfo `xml:"product,omitempty"` VmotionEnabled bool `xml:"vmotionEnabled"` @@ -18531,7 +18360,7 @@ type HostConnectSpec struct { DynamicData HostName string `xml:"hostName,omitempty"` - Port int `xml:"port,omitempty"` + Port int32 `xml:"port,omitempty"` SslThumbprint string `xml:"sslThumbprint,omitempty"` UserName string `xml:"userName,omitempty"` Password string `xml:"password,omitempty"` @@ -18567,7 +18396,7 @@ func init() { type HostCpuIdInfo struct { DynamicData - Level int `xml:"level"` + Level int32 `xml:"level"` Vendor string `xml:"vendor,omitempty"` Eax string `xml:"eax,omitempty"` Ebx string `xml:"ebx,omitempty"` @@ -18797,7 +18626,7 @@ type HostDateTimeSystemTimeZone struct { Key string `xml:"key"` Name string `xml:"name"` Description string `xml:"description"` - GmtOffset int `xml:"gmtOffset"` + GmtOffset int32 `xml:"gmtOffset"` } func init() { @@ -18842,10 +18671,10 @@ type HostDhcpServiceSpec struct { DynamicData VirtualSwitch string `xml:"virtualSwitch"` - DefaultLeaseDuration int `xml:"defaultLeaseDuration"` + DefaultLeaseDuration int32 `xml:"defaultLeaseDuration"` LeaseBeginIp string `xml:"leaseBeginIp"` LeaseEndIp string `xml:"leaseEndIp"` - MaxLeaseDuration int `xml:"maxLeaseDuration"` + MaxLeaseDuration int32 `xml:"maxLeaseDuration"` UnlimitedLease bool `xml:"unlimitedLease"` IpSubnetAddr string `xml:"ipSubnetAddr"` IpSubnetMask string `xml:"ipSubnetMask"` @@ -18860,7 +18689,7 @@ type HostDiagnosticPartition struct { StorageType string `xml:"storageType"` DiagnosticType string `xml:"diagnosticType"` - Slots int `xml:"slots"` + Slots int32 `xml:"slots"` Id HostScsiDiskPartition `xml:"id"` } @@ -18960,8 +18789,8 @@ type HostDiskDimensionsChs struct { DynamicData Cylinder int64 `xml:"cylinder"` - Head int `xml:"head"` - Sector int `xml:"sector"` + Head int32 `xml:"head"` + Sector int32 `xml:"sector"` } func init() { @@ -18971,7 +18800,7 @@ func init() { type HostDiskDimensionsLba struct { DynamicData - BlockSize int `xml:"blockSize"` + BlockSize int32 `xml:"blockSize"` Block int64 `xml:"block"` } @@ -19029,7 +18858,7 @@ func init() { type HostDiskPartitionAttributes struct { DynamicData - Partition int `xml:"partition"` + Partition int32 `xml:"partition"` StartSector int64 `xml:"startSector"` EndSector int64 `xml:"endSector"` Type string `xml:"type"` @@ -19046,7 +18875,7 @@ func init() { type HostDiskPartitionBlockRange struct { DynamicData - Partition int `xml:"partition,omitempty"` + Partition int32 `xml:"partition,omitempty"` Type string `xml:"type"` Start HostDiskDimensionsLba `xml:"start"` End HostDiskDimensionsLba `xml:"end"` @@ -19243,7 +19072,7 @@ type HostFibreChannelOverEthernetHbaLinkInfo struct { VnportMac string `xml:"vnportMac"` FcfMac string `xml:"fcfMac"` - VlanId int `xml:"vlanId"` + VlanId int32 `xml:"vlanId"` } func init() { @@ -19255,7 +19084,7 @@ type HostFibreChannelOverEthernetTargetTransport struct { VnportMac string `xml:"vnportMac"` FcfMac string `xml:"fcfMac"` - VlanId int `xml:"vlanId"` + VlanId int32 `xml:"vlanId"` } func init() { @@ -19367,8 +19196,8 @@ func init() { type HostFirewallRule struct { DynamicData - Port int `xml:"port"` - EndPort int `xml:"endPort,omitempty"` + Port int32 `xml:"port"` + EndPort int32 `xml:"endPort,omitempty"` Direction HostFirewallRuleDirection `xml:"direction"` PortType HostFirewallRulePortType `xml:"portType,omitempty"` Protocol string `xml:"protocol"` @@ -19410,7 +19239,7 @@ type HostFirewallRulesetIpNetwork struct { DynamicData Network string `xml:"network"` - PrefixLength int `xml:"prefixLength"` + PrefixLength int32 `xml:"prefixLength"` } func init() { @@ -19555,12 +19384,12 @@ type HostHardwareSummary struct { OtherIdentifyingInfo []HostSystemIdentificationInfo `xml:"otherIdentifyingInfo,omitempty"` MemorySize int64 `xml:"memorySize"` CpuModel string `xml:"cpuModel"` - CpuMhz int `xml:"cpuMhz"` + CpuMhz int32 `xml:"cpuMhz"` NumCpuPkgs int16 `xml:"numCpuPkgs"` NumCpuCores int16 `xml:"numCpuCores"` NumCpuThreads int16 `xml:"numCpuThreads"` - NumNics int `xml:"numNics"` - NumHBAs int `xml:"numHBAs"` + NumNics int32 `xml:"numNics"` + NumHBAs int32 `xml:"numHBAs"` } func init() { @@ -19590,7 +19419,7 @@ type HostHostBusAdapter struct { Key string `xml:"key,omitempty"` Device string `xml:"device"` - Bus int `xml:"bus"` + Bus int32 `xml:"bus"` Status string `xml:"status"` Model string `xml:"model"` Driver string `xml:"driver,omitempty"` @@ -19736,8 +19565,8 @@ type HostInternetScsiHba struct { IScsiAlias string `xml:"iScsiAlias,omitempty"` ConfiguredSendTarget []HostInternetScsiHbaSendTarget `xml:"configuredSendTarget,omitempty"` ConfiguredStaticTarget []HostInternetScsiHbaStaticTarget `xml:"configuredStaticTarget,omitempty"` - MaxSpeedMb int `xml:"maxSpeedMb,omitempty"` - CurrentSpeedMb int `xml:"currentSpeedMb,omitempty"` + MaxSpeedMb int32 `xml:"maxSpeedMb,omitempty"` + CurrentSpeedMb int32 `xml:"currentSpeedMb,omitempty"` } func init() { @@ -19851,12 +19680,12 @@ type HostInternetScsiHbaIPCapabilities struct { Ipv4EnableSettable *bool `xml:"ipv4EnableSettable"` Ipv6EnableSettable *bool `xml:"ipv6EnableSettable"` Ipv6PrefixLengthSettable *bool `xml:"ipv6PrefixLengthSettable"` - Ipv6PrefixLength int `xml:"ipv6PrefixLength,omitempty"` + Ipv6PrefixLength int32 `xml:"ipv6PrefixLength,omitempty"` Ipv6DhcpConfigurationSettable *bool `xml:"ipv6DhcpConfigurationSettable"` Ipv6LinkLocalAutoConfigurationSettable *bool `xml:"ipv6LinkLocalAutoConfigurationSettable"` Ipv6RouterAdvertisementConfigurationSettable *bool `xml:"ipv6RouterAdvertisementConfigurationSettable"` Ipv6DefaultGatewaySettable *bool `xml:"ipv6DefaultGatewaySettable"` - Ipv6MaxStaticAddressesSupported int `xml:"ipv6MaxStaticAddressesSupported,omitempty"` + Ipv6MaxStaticAddressesSupported int32 `xml:"ipv6MaxStaticAddressesSupported,omitempty"` } func init() { @@ -19877,7 +19706,7 @@ type HostInternetScsiHbaIPProperties struct { Ipv6SubnetMask string `xml:"ipv6SubnetMask,omitempty"` Ipv6DefaultGateway string `xml:"ipv6DefaultGateway,omitempty"` ArpRedirectEnabled *bool `xml:"arpRedirectEnabled"` - Mtu int `xml:"mtu,omitempty"` + Mtu int32 `xml:"mtu,omitempty"` JumboFramesEnabled *bool `xml:"jumboFramesEnabled"` Ipv4Enabled *bool `xml:"ipv4Enabled"` Ipv6Enabled *bool `xml:"ipv6Enabled"` @@ -19906,7 +19735,7 @@ type HostInternetScsiHbaIscsiIpv6Address struct { DynamicData Address string `xml:"address"` - PrefixLength int `xml:"prefixLength"` + PrefixLength int32 `xml:"prefixLength"` Origin string `xml:"origin"` Operation string `xml:"operation,omitempty"` } @@ -19929,7 +19758,7 @@ type HostInternetScsiHbaSendTarget struct { DynamicData Address string `xml:"address"` - Port int `xml:"port,omitempty"` + Port int32 `xml:"port,omitempty"` AuthenticationProperties *HostInternetScsiHbaAuthenticationProperties `xml:"authenticationProperties,omitempty"` DigestProperties *HostInternetScsiHbaDigestProperties `xml:"digestProperties,omitempty"` SupportedAdvancedOptions []OptionDef `xml:"supportedAdvancedOptions,omitempty"` @@ -19945,7 +19774,7 @@ type HostInternetScsiHbaStaticTarget struct { DynamicData Address string `xml:"address"` - Port int `xml:"port,omitempty"` + Port int32 `xml:"port,omitempty"` IScsiName string `xml:"iScsiName"` DiscoveryMethod string `xml:"discoveryMethod,omitempty"` AuthenticationProperties *HostInternetScsiHbaAuthenticationProperties `xml:"authenticationProperties,omitempty"` @@ -19985,7 +19814,7 @@ func init() { type HostInventoryFull struct { NotEnoughLicenses - Capacity int `xml:"capacity"` + Capacity int32 `xml:"capacity"` } func init() { @@ -19995,7 +19824,7 @@ func init() { type HostInventoryFullEvent struct { LicenseEvent - Capacity int `xml:"capacity"` + Capacity int32 `xml:"capacity"` } func init() { @@ -20054,7 +19883,7 @@ type HostIpConfigIpV6Address struct { DynamicData IpAddress string `xml:"ipAddress"` - PrefixLength int `xml:"prefixLength"` + PrefixLength int32 `xml:"prefixLength"` Origin string `xml:"origin,omitempty"` DadState string `xml:"dadState,omitempty"` Lifetime *time.Time `xml:"lifetime"` @@ -20116,7 +19945,7 @@ type HostIpRouteEntry struct { DynamicData Network string `xml:"network"` - PrefixLength int `xml:"prefixLength"` + PrefixLength int32 `xml:"prefixLength"` Gateway string `xml:"gateway"` DeviceName string `xml:"deviceName,omitempty"` } @@ -20267,11 +20096,11 @@ func init() { type HostListSummaryQuickStats struct { DynamicData - OverallCpuUsage int `xml:"overallCpuUsage,omitempty"` - OverallMemoryUsage int `xml:"overallMemoryUsage,omitempty"` - DistributedCpuFairness int `xml:"distributedCpuFairness,omitempty"` - DistributedMemoryFairness int `xml:"distributedMemoryFairness,omitempty"` - Uptime int `xml:"uptime,omitempty"` + OverallCpuUsage int32 `xml:"overallCpuUsage,omitempty"` + OverallMemoryUsage int32 `xml:"overallMemoryUsage,omitempty"` + DistributedCpuFairness int32 `xml:"distributedCpuFairness,omitempty"` + DistributedMemoryFairness int32 `xml:"distributedMemoryFairness,omitempty"` + Uptime int32 `xml:"uptime,omitempty"` } func init() { @@ -20321,8 +20150,8 @@ type HostLowLevelProvisioningManagerDiskLayoutSpec struct { DynamicData ControllerType string `xml:"controllerType"` - BusNumber int `xml:"busNumber"` - UnitNumber int `xml:"unitNumber"` + BusNumber int32 `xml:"busNumber"` + UnitNumber *int32 `xml:"unitNumber"` SrcFilename string `xml:"srcFilename"` DstFilename string `xml:"dstFilename"` } @@ -20381,7 +20210,7 @@ func init() { type HostLowLevelProvisioningManagerSnapshotLayoutSpec struct { DynamicData - Id int `xml:"id"` + Id int32 `xml:"id"` SrcFilename string `xml:"srcFilename"` DstFilename string `xml:"dstFilename"` Disk []HostLowLevelProvisioningManagerDiskLayoutSpec `xml:"disk,omitempty"` @@ -20687,12 +20516,12 @@ type HostNatServiceNameServiceSpec struct { DnsAutoDetect bool `xml:"dnsAutoDetect"` DnsPolicy string `xml:"dnsPolicy"` - DnsRetries int `xml:"dnsRetries"` - DnsTimeout int `xml:"dnsTimeout"` + DnsRetries int32 `xml:"dnsRetries"` + DnsTimeout int32 `xml:"dnsTimeout"` DnsNameServer []string `xml:"dnsNameServer,omitempty"` - NbdsTimeout int `xml:"nbdsTimeout"` - NbnsRetries int `xml:"nbnsRetries"` - NbnsTimeout int `xml:"nbnsTimeout"` + NbdsTimeout int32 `xml:"nbdsTimeout"` + NbnsRetries int32 `xml:"nbnsRetries"` + NbnsTimeout int32 `xml:"nbnsTimeout"` } func init() { @@ -20704,8 +20533,8 @@ type HostNatServicePortForwardSpec struct { Type string `xml:"type"` Name string `xml:"name"` - HostPort int `xml:"hostPort"` - GuestPort int `xml:"guestPort"` + HostPort int32 `xml:"hostPort"` + GuestPort int32 `xml:"guestPort"` GuestIpAddress string `xml:"guestIpAddress"` } @@ -20721,7 +20550,7 @@ type HostNatServiceSpec struct { AllowAnyOui bool `xml:"allowAnyOui"` ConfigPort bool `xml:"configPort"` IpGatewayAddress string `xml:"ipGatewayAddress"` - UdpTimeout int `xml:"udpTimeout"` + UdpTimeout int32 `xml:"udpTimeout"` PortForward []HostNatServicePortForwardSpec `xml:"portForward,omitempty"` NameService *HostNatServiceNameServiceSpec `xml:"nameService,omitempty"` } @@ -20739,7 +20568,7 @@ type HostNetCapabilities struct { SupportsVlan bool `xml:"supportsVlan"` UsesServiceConsoleNic bool `xml:"usesServiceConsoleNic"` SupportsNetworkHints bool `xml:"supportsNetworkHints"` - MaxPortGroupsPerVswitch int `xml:"maxPortGroupsPerVswitch,omitempty"` + MaxPortGroupsPerVswitch int32 `xml:"maxPortGroupsPerVswitch,omitempty"` VswitchConfigSupported bool `xml:"vswitchConfigSupported"` VnicConfigSupported bool `xml:"vnicConfigSupported"` IpRouteConfigSupported bool `xml:"ipRouteConfigSupported"` @@ -20771,7 +20600,7 @@ type HostNetStackInstance struct { Name string `xml:"name,omitempty"` DnsConfig BaseHostDnsConfig `xml:"dnsConfig,omitempty,typeattr"` IpRouteConfig BaseHostIpRouteConfig `xml:"ipRouteConfig,omitempty,typeattr"` - RequestedMaxNumberOfConnections int `xml:"requestedMaxNumberOfConnections,omitempty"` + RequestedMaxNumberOfConnections int32 `xml:"requestedMaxNumberOfConnections,omitempty"` CongestionControlAlgorithm string `xml:"congestionControlAlgorithm,omitempty"` IpV6Enabled *bool `xml:"ipV6Enabled"` RouteTableConfig *HostIpRouteTableConfig `xml:"routeTableConfig,omitempty"` @@ -20912,11 +20741,11 @@ type HostNicFailureCriteria struct { DynamicData CheckSpeed string `xml:"checkSpeed,omitempty"` - Speed int `xml:"speed,omitempty"` + Speed int32 `xml:"speed,omitempty"` CheckDuplex *bool `xml:"checkDuplex"` FullDuplex *bool `xml:"fullDuplex"` CheckErrorPercent *bool `xml:"checkErrorPercent"` - Percentage int `xml:"percentage,omitempty"` + Percentage int32 `xml:"percentage,omitempty"` CheckBeacon *bool `xml:"checkBeacon"` } @@ -21035,7 +20864,7 @@ type HostNumaInfo struct { DynamicData Type string `xml:"type"` - NumNodes int `xml:"numNodes"` + NumNodes int32 `xml:"numNodes"` NumaNode []HostNumaNode `xml:"numaNode,omitempty"` } @@ -21062,7 +20891,7 @@ type HostNumericSensorInfo struct { Name string `xml:"name"` HealthState BaseElementDescription `xml:"healthState,omitempty,typeattr"` CurrentReading int64 `xml:"currentReading"` - UnitModifier int `xml:"unitModifier"` + UnitModifier int32 `xml:"unitModifier"` BaseUnits string `xml:"baseUnits"` RateUnits string `xml:"rateUnits,omitempty"` SensorType string `xml:"sensorType"` @@ -21150,7 +20979,7 @@ type HostPatchManagerPatchManagerOperationSpec struct { DynamicData Proxy string `xml:"proxy,omitempty"` - Port int `xml:"port,omitempty"` + Port int32 `xml:"port,omitempty"` UserName string `xml:"userName,omitempty"` Password string `xml:"password,omitempty"` CmdOption string `xml:"cmdOption,omitempty"` @@ -21264,7 +21093,7 @@ type HostPlacedVirtualNicIdentifier struct { Vm ManagedObjectReference `xml:"vm"` VnicKey string `xml:"vnicKey"` - Reservation int `xml:"reservation,omitempty"` + Reservation int32 `xml:"reservation,omitempty"` } func init() { @@ -21314,9 +21143,9 @@ type HostPlugStoreTopologyPath struct { Key string `xml:"key"` Name string `xml:"name"` - ChannelNumber int `xml:"channelNumber,omitempty"` - TargetNumber int `xml:"targetNumber,omitempty"` - LunNumber int `xml:"lunNumber,omitempty"` + ChannelNumber int32 `xml:"channelNumber,omitempty"` + TargetNumber int32 `xml:"targetNumber,omitempty"` + LunNumber int32 `xml:"lunNumber,omitempty"` Adapter string `xml:"adapter,omitempty"` Target string `xml:"target,omitempty"` Device string `xml:"device,omitempty"` @@ -21414,7 +21243,7 @@ type HostPortGroupSpec struct { DynamicData Name string `xml:"name"` - VlanId int `xml:"vlanId"` + VlanId int32 `xml:"vlanId"` VswitchName string `xml:"vswitchName"` Policy HostNetworkPolicy `xml:"policy"` } @@ -21426,7 +21255,7 @@ func init() { type HostPosixAccountSpec struct { HostAccountSpec - PosixId int `xml:"posixId,omitempty"` + PosixId int32 `xml:"posixId,omitempty"` ShellAccess *bool `xml:"shellAccess"` } @@ -21451,7 +21280,7 @@ func init() { type HostPowerPolicy struct { DynamicData - Key int `xml:"key"` + Key int32 `xml:"key"` Name string `xml:"name"` ShortName string `xml:"shortName"` Description string `xml:"description"` @@ -21574,11 +21403,11 @@ type HostProxySwitch struct { DvsUuid string `xml:"dvsUuid"` DvsName string `xml:"dvsName"` Key string `xml:"key"` - NumPorts int `xml:"numPorts"` - ConfigNumPorts int `xml:"configNumPorts,omitempty"` - NumPortsAvailable int `xml:"numPortsAvailable"` + NumPorts int32 `xml:"numPorts"` + ConfigNumPorts int32 `xml:"configNumPorts,omitempty"` + NumPortsAvailable int32 `xml:"numPortsAvailable"` UplinkPort []KeyValue `xml:"uplinkPort,omitempty"` - Mtu int `xml:"mtu,omitempty"` + Mtu int32 `xml:"mtu,omitempty"` Pnic []string `xml:"pnic,omitempty"` Spec HostProxySwitchSpec `xml:"spec"` HostLag []HostProxySwitchHostLagConfig `xml:"hostLag,omitempty"` @@ -21704,7 +21533,7 @@ type HostRuntimeInfoNetStackInstanceRuntimeInfo struct { NetStackInstanceKey string `xml:"netStackInstanceKey"` State string `xml:"state,omitempty"` VmknicKeys []string `xml:"vmknicKeys,omitempty"` - MaxNumberOfConnections int `xml:"maxNumberOfConnections,omitempty"` + MaxNumberOfConnections int32 `xml:"maxNumberOfConnections,omitempty"` CurrentIpV6Enabled *bool `xml:"currentIpV6Enabled"` } @@ -21743,7 +21572,7 @@ type HostScsiDiskPartition struct { DynamicData DiskName string `xml:"diskName"` - Partition int `xml:"partition"` + Partition int32 `xml:"partition"` } func init() { @@ -21776,7 +21605,7 @@ type HostScsiTopologyLun struct { DynamicData Key string `xml:"key"` - Lun int `xml:"lun"` + Lun int32 `xml:"lun"` ScsiLun string `xml:"scsiLun"` } @@ -21788,7 +21617,7 @@ type HostScsiTopologyTarget struct { DynamicData Key string `xml:"key"` - Target int `xml:"target"` + Target int32 `xml:"target"` Lun []HostScsiTopologyLun `xml:"lun,omitempty"` Transport BaseHostTargetTransport `xml:"transport,omitempty,typeattr"` } @@ -21862,7 +21691,7 @@ type HostServiceTicket struct { DynamicData Host string `xml:"host,omitempty"` - Port int `xml:"port,omitempty"` + Port int32 `xml:"port,omitempty"` SslThumbprint string `xml:"sslThumbprint,omitempty"` Service string `xml:"service"` ServiceVersion string `xml:"serviceVersion"` @@ -21908,7 +21737,7 @@ type HostSnmpConfigSpec struct { DynamicData Enabled *bool `xml:"enabled"` - Port int `xml:"port,omitempty"` + Port int32 `xml:"port,omitempty"` ReadOnlyCommunities []string `xml:"readOnlyCommunities,omitempty"` TrapTargets []HostSnmpDestination `xml:"trapTargets,omitempty"` Option []KeyValue `xml:"option,omitempty"` @@ -21922,7 +21751,7 @@ type HostSnmpDestination struct { DynamicData HostName string `xml:"hostName"` - Port int `xml:"port"` + Port int32 `xml:"port"` Community string `xml:"community"` } @@ -21933,10 +21762,10 @@ func init() { type HostSnmpSystemAgentLimits struct { DynamicData - MaxReadOnlyCommunities int `xml:"maxReadOnlyCommunities"` - MaxTrapDestinations int `xml:"maxTrapDestinations"` - MaxCommunityLength int `xml:"maxCommunityLength"` - MaxBufferSize int `xml:"maxBufferSize"` + MaxReadOnlyCommunities int32 `xml:"maxReadOnlyCommunities"` + MaxTrapDestinations int32 `xml:"maxTrapDestinations"` + MaxCommunityLength int32 `xml:"maxCommunityLength"` + MaxBufferSize int32 `xml:"maxBufferSize"` Capability HostSnmpAgentCapability `xml:"capability,omitempty"` } @@ -21947,8 +21776,8 @@ func init() { type HostSriovConfig struct { HostPciPassthruConfig - SriovEnabled bool `xml:"sriovEnabled"` - NumVirtualFunction int `xml:"numVirtualFunction"` + SriovEnabled bool `xml:"sriovEnabled"` + NumVirtualFunction int32 `xml:"numVirtualFunction"` } func init() { @@ -21958,12 +21787,12 @@ func init() { type HostSriovInfo struct { HostPciPassthruInfo - SriovEnabled bool `xml:"sriovEnabled"` - SriovCapable bool `xml:"sriovCapable"` - SriovActive bool `xml:"sriovActive"` - NumVirtualFunctionRequested int `xml:"numVirtualFunctionRequested"` - NumVirtualFunction int `xml:"numVirtualFunction"` - MaxVirtualFunctionSupported int `xml:"maxVirtualFunctionSupported"` + SriovEnabled bool `xml:"sriovEnabled"` + SriovCapable bool `xml:"sriovCapable"` + SriovActive bool `xml:"sriovActive"` + NumVirtualFunctionRequested int32 `xml:"numVirtualFunctionRequested"` + NumVirtualFunction int32 `xml:"numVirtualFunction"` + MaxVirtualFunctionSupported int32 `xml:"maxVirtualFunctionSupported"` } func init() { @@ -22182,7 +22011,7 @@ func init() { type HostSystemSwapConfigurationSystemSwapOption struct { DynamicData - Key int `xml:"key"` + Key int32 `xml:"key"` } func init() { @@ -22232,7 +22061,7 @@ func init() { type HostTpmDigestInfo struct { HostDigestInfo - PcrNumber int `xml:"pcrNumber"` + PcrNumber int32 `xml:"pcrNumber"` } func init() { @@ -22252,7 +22081,7 @@ func init() { type HostTpmEventLogEntry struct { DynamicData - PcrIndex int `xml:"pcrIndex"` + PcrIndex int32 `xml:"pcrIndex"` EventDetails BaseHostTpmEventDetails `xml:"eventDetails,typeattr"` } @@ -22291,9 +22120,9 @@ type HostUnresolvedVmfsExtent struct { DevicePath string `xml:"devicePath"` VmfsUuid string `xml:"vmfsUuid"` IsHeadExtent bool `xml:"isHeadExtent"` - Ordinal int `xml:"ordinal"` - StartBlock int `xml:"startBlock"` - EndBlock int `xml:"endBlock"` + Ordinal int32 `xml:"ordinal"` + StartBlock int32 `xml:"startBlock"` + EndBlock int32 `xml:"endBlock"` Reason string `xml:"reason"` } @@ -22340,7 +22169,7 @@ type HostUnresolvedVmfsVolume struct { Extent []HostUnresolvedVmfsExtent `xml:"extent"` VmfsLabel string `xml:"vmfsLabel"` VmfsUuid string `xml:"vmfsUuid"` - TotalBlocks int `xml:"totalBlocks"` + TotalBlocks int32 `xml:"totalBlocks"` ResolveStatus HostUnresolvedVmfsVolumeResolveStatus `xml:"resolveStatus"` } @@ -22531,7 +22360,7 @@ type HostVffsSpec struct { DevicePath string `xml:"devicePath"` Partition *HostDiskPartitionSpec `xml:"partition,omitempty"` - MajorVersion int `xml:"majorVersion"` + MajorVersion int32 `xml:"majorVersion"` VolumeName string `xml:"volumeName"` } @@ -22542,7 +22371,7 @@ func init() { type HostVffsVolume struct { HostFileSystemVolume - MajorVersion int `xml:"majorVersion"` + MajorVersion int32 `xml:"majorVersion"` Version string `xml:"version"` Uuid string `xml:"uuid"` Extent []HostScsiDiskPartition `xml:"extent"` @@ -22629,7 +22458,7 @@ type HostVirtualNicSpec struct { Mac string `xml:"mac,omitempty"` DistributedVirtualPort *DistributedVirtualSwitchPortConnection `xml:"distributedVirtualPort,omitempty"` Portgroup string `xml:"portgroup,omitempty"` - Mtu int `xml:"mtu,omitempty"` + Mtu int32 `xml:"mtu,omitempty"` TsoEnabled *bool `xml:"tsoEnabled"` NetStackInstanceKey string `xml:"netStackInstanceKey,omitempty"` OpaqueNetwork *HostVirtualNicOpaqueNetworkSpec `xml:"opaqueNetwork,omitempty"` @@ -22646,9 +22475,9 @@ type HostVirtualSwitch struct { Name string `xml:"name"` Key string `xml:"key"` - NumPorts int `xml:"numPorts"` - NumPortsAvailable int `xml:"numPortsAvailable"` - Mtu int `xml:"mtu,omitempty"` + NumPorts int32 `xml:"numPorts"` + NumPortsAvailable int32 `xml:"numPortsAvailable"` + Mtu int32 `xml:"mtu,omitempty"` Portgroup []string `xml:"portgroup,omitempty"` Pnic []string `xml:"pnic,omitempty"` Spec HostVirtualSwitchSpec `xml:"spec"` @@ -22671,7 +22500,7 @@ func init() { type HostVirtualSwitchBeaconConfig struct { DynamicData - Interval int `xml:"interval"` + Interval int32 `xml:"interval"` } func init() { @@ -22723,10 +22552,10 @@ func init() { type HostVirtualSwitchSpec struct { DynamicData - NumPorts int `xml:"numPorts"` + NumPorts int32 `xml:"numPorts"` Bridge BaseHostVirtualSwitchBridge `xml:"bridge,omitempty,typeattr"` Policy *HostNetworkPolicy `xml:"policy,omitempty"` - Mtu int `xml:"mtu,omitempty"` + Mtu int32 `xml:"mtu,omitempty"` } func init() { @@ -22760,8 +22589,8 @@ type HostVmfsSpec struct { DynamicData Extent HostScsiDiskPartition `xml:"extent"` - BlockSizeMb int `xml:"blockSizeMb,omitempty"` - MajorVersion int `xml:"majorVersion"` + BlockSizeMb int32 `xml:"blockSizeMb,omitempty"` + MajorVersion int32 `xml:"majorVersion"` VolumeName string `xml:"volumeName"` } @@ -22772,9 +22601,9 @@ func init() { type HostVmfsVolume struct { HostFileSystemVolume - BlockSizeMb int `xml:"blockSizeMb"` - MaxBlocks int `xml:"maxBlocks"` - MajorVersion int `xml:"majorVersion"` + BlockSizeMb int32 `xml:"blockSizeMb"` + MaxBlocks int32 `xml:"maxBlocks"` + MajorVersion int32 `xml:"majorVersion"` Version string `xml:"version"` Uuid string `xml:"uuid"` Extent []HostScsiDiskPartition `xml:"extent"` @@ -22914,7 +22743,7 @@ func init() { type HourlyTaskScheduler struct { RecurrentTaskScheduler - Minute int `xml:"minute"` + Minute int32 `xml:"minute"` } func init() { @@ -23020,7 +22849,7 @@ type HttpNfcLeaseInfo struct { Entity ManagedObjectReference `xml:"entity"` DeviceUrl []HttpNfcLeaseDeviceUrl `xml:"deviceUrl,omitempty"` TotalDiskCapacityInKB int64 `xml:"totalDiskCapacityInKB"` - LeaseTimeout int `xml:"leaseTimeout"` + LeaseTimeout int32 `xml:"leaseTimeout"` HostMap []HttpNfcLeaseDatastoreLeaseInfo `xml:"hostMap,omitempty"` } @@ -23051,7 +22880,7 @@ func init() { type HttpNfcLeaseProgressRequestType struct { This ManagedObjectReference `xml:"_this"` - Percent int `xml:"percent"` + Percent int32 `xml:"percent"` } func init() { @@ -23619,8 +23448,8 @@ type InsufficientAgentVmsDeployed struct { InsufficientResourcesFault HostName string `xml:"hostName"` - RequiredNumAgentVms int `xml:"requiredNumAgentVms"` - CurrentNumAgentVms int `xml:"currentNumAgentVms"` + RequiredNumAgentVms int32 `xml:"requiredNumAgentVms"` + CurrentNumAgentVms int32 `xml:"currentNumAgentVms"` } func init() { @@ -23932,7 +23761,7 @@ func init() { type IntExpression struct { NegatableExpression - Value int `xml:"value,omitempty"` + Value int32 `xml:"value,omitempty"` } func init() { @@ -23942,9 +23771,9 @@ func init() { type IntOption struct { OptionType - Min int `xml:"min"` - Max int `xml:"max"` - DefaultValue int `xml:"defaultValue"` + Min int32 `xml:"min"` + Max int32 `xml:"max"` + DefaultValue int32 `xml:"defaultValue"` } func init() { @@ -23954,7 +23783,7 @@ func init() { type IntPolicy struct { InheritablePolicy - Value int `xml:"value,omitempty"` + Value int32 `xml:"value,omitempty"` } func init() { @@ -24080,7 +23909,7 @@ func init() { type InvalidController struct { InvalidDeviceSpec - ControllerKey int `xml:"controllerKey"` + ControllerKey int32 `xml:"controllerKey"` } func init() { @@ -24210,7 +24039,7 @@ func init() { type InvalidDeviceSpec struct { InvalidVmConfig - DeviceIndex int `xml:"deviceIndex"` + DeviceIndex int32 `xml:"deviceIndex"` } func init() { @@ -24755,16 +24584,16 @@ func init() { type InventoryDescription struct { DynamicData - NumHosts int `xml:"numHosts"` - NumVirtualMachines int `xml:"numVirtualMachines"` - NumResourcePools int `xml:"numResourcePools,omitempty"` - NumClusters int `xml:"numClusters,omitempty"` - NumCpuDev int `xml:"numCpuDev,omitempty"` - NumNetDev int `xml:"numNetDev,omitempty"` - NumDiskDev int `xml:"numDiskDev,omitempty"` - NumvCpuDev int `xml:"numvCpuDev,omitempty"` - NumvNetDev int `xml:"numvNetDev,omitempty"` - NumvDiskDev int `xml:"numvDiskDev,omitempty"` + NumHosts int32 `xml:"numHosts"` + NumVirtualMachines int32 `xml:"numVirtualMachines"` + NumResourcePools int32 `xml:"numResourcePools,omitempty"` + NumClusters int32 `xml:"numClusters,omitempty"` + NumCpuDev int32 `xml:"numCpuDev,omitempty"` + NumNetDev int32 `xml:"numNetDev,omitempty"` + NumDiskDev int32 `xml:"numDiskDev,omitempty"` + NumvCpuDev int32 `xml:"numvCpuDev,omitempty"` + NumvNetDev int32 `xml:"numvNetDev,omitempty"` + NumvDiskDev int32 `xml:"numvDiskDev,omitempty"` } func init() { @@ -24857,7 +24686,7 @@ func init() { type IpPool struct { DynamicData - Id int `xml:"id,omitempty"` + Id int32 `xml:"id,omitempty"` Name string `xml:"name,omitempty"` Ipv4Config *IpPoolIpPoolConfigInfo `xml:"ipv4Config,omitempty"` Ipv6Config *IpPoolIpPoolConfigInfo `xml:"ipv6Config,omitempty"` @@ -24866,10 +24695,10 @@ type IpPool struct { HostPrefix string `xml:"hostPrefix,omitempty"` HttpProxy string `xml:"httpProxy,omitempty"` NetworkAssociation []IpPoolAssociation `xml:"networkAssociation,omitempty"` - AvailableIpv4Addresses int `xml:"availableIpv4Addresses,omitempty"` - AvailableIpv6Addresses int `xml:"availableIpv6Addresses,omitempty"` - AllocatedIpv4Addresses int `xml:"allocatedIpv4Addresses,omitempty"` - AllocatedIpv6Addresses int `xml:"allocatedIpv6Addresses,omitempty"` + AvailableIpv4Addresses int32 `xml:"availableIpv4Addresses,omitempty"` + AvailableIpv6Addresses int32 `xml:"availableIpv6Addresses,omitempty"` + AllocatedIpv4Addresses int32 `xml:"allocatedIpv4Addresses,omitempty"` + AllocatedIpv6Addresses int32 `xml:"allocatedIpv6Addresses,omitempty"` } func init() { @@ -24918,7 +24747,7 @@ type IpRange struct { IpAddress AddressPrefix string `xml:"addressPrefix"` - PrefixLength int `xml:"prefixLength,omitempty"` + PrefixLength int32 `xml:"prefixLength,omitempty"` } func init() { @@ -25257,14 +25086,14 @@ type JoinDomain_TaskResponse struct { type KernelModuleInfo struct { DynamicData - Id int `xml:"id"` + Id int32 `xml:"id"` Name string `xml:"name"` Version string `xml:"version"` Filename string `xml:"filename"` OptionString string `xml:"optionString"` Loaded bool `xml:"loaded"` Enabled bool `xml:"enabled"` - UseCount int `xml:"useCount"` + UseCount int32 `xml:"useCount"` ReadOnlySection KernelModuleSectionInfo `xml:"readOnlySection"` WritableSection KernelModuleSectionInfo `xml:"writableSection"` TextSection KernelModuleSectionInfo `xml:"textSection"` @@ -25280,7 +25109,7 @@ type KernelModuleSectionInfo struct { DynamicData Address int64 `xml:"address"` - Length int `xml:"length,omitempty"` + Length int32 `xml:"length,omitempty"` } func init() { @@ -25347,7 +25176,7 @@ type LatencySensitivity struct { DynamicData Level LatencySensitivitySensitivityLevel `xml:"level"` - Sensitivity int `xml:"sensitivity,omitempty"` + Sensitivity int32 `xml:"sensitivity,omitempty"` } func init() { @@ -25421,8 +25250,8 @@ type LicenseAvailabilityInfo struct { DynamicData Feature LicenseFeatureInfo `xml:"feature"` - Total int `xml:"total"` - Available int `xml:"available"` + Total int32 `xml:"total"` + Available int32 `xml:"available"` } func init() { @@ -25563,8 +25392,8 @@ type LicenseManagerLicenseInfo struct { LicenseKey string `xml:"licenseKey"` EditionKey string `xml:"editionKey"` Name string `xml:"name"` - Total int `xml:"total"` - Used int `xml:"used,omitempty"` + Total int32 `xml:"total"` + Used int32 `xml:"used,omitempty"` CostUnit string `xml:"costUnit"` Properties []KeyAnyValue `xml:"properties,omitempty"` Labels []KeyValue `xml:"labels,omitempty"` @@ -25589,7 +25418,7 @@ type LicenseReservationInfo struct { Key string `xml:"key"` State LicenseReservationInfoState `xml:"state"` - Required int `xml:"required"` + Required int32 `xml:"required"` } func init() { @@ -25705,7 +25534,7 @@ type LimitExceeded struct { VimFault Property string `xml:"property,omitempty"` - Limit int `xml:"limit,omitempty"` + Limit int32 `xml:"limit,omitempty"` } func init() { @@ -25734,7 +25563,7 @@ type LinkLayerDiscoveryProtocolInfo struct { ChassisId string `xml:"chassisId"` PortId string `xml:"portId"` - TimeToLive int `xml:"timeToLive"` + TimeToLive int32 `xml:"timeToLive"` Parameter []KeyAnyValue `xml:"parameter,omitempty"` } @@ -25811,8 +25640,8 @@ type ListFilesInGuestRequestType struct { Vm ManagedObjectReference `xml:"vm"` Auth BaseGuestAuthentication `xml:"auth,typeattr"` FilePath string `xml:"filePath"` - Index int `xml:"index,omitempty"` - MaxResults int `xml:"maxResults,omitempty"` + Index int32 `xml:"index,omitempty"` + MaxResults int32 `xml:"maxResults,omitempty"` MatchPattern string `xml:"matchPattern,omitempty"` } @@ -26563,9 +26392,9 @@ func init() { type MemorySizeNotRecommended struct { VirtualHardwareCompatibilityIssue - MemorySizeMB int `xml:"memorySizeMB"` - MinMemorySizeMB int `xml:"minMemorySizeMB"` - MaxMemorySizeMB int `xml:"maxMemorySizeMB"` + MemorySizeMB int32 `xml:"memorySizeMB"` + MinMemorySizeMB int32 `xml:"minMemorySizeMB"` + MaxMemorySizeMB int32 `xml:"maxMemorySizeMB"` } func init() { @@ -26581,9 +26410,9 @@ func init() { type MemorySizeNotSupported struct { VirtualHardwareCompatibilityIssue - MemorySizeMB int `xml:"memorySizeMB"` - MinMemorySizeMB int `xml:"minMemorySizeMB"` - MaxMemorySizeMB int `xml:"maxMemorySizeMB"` + MemorySizeMB int32 `xml:"memorySizeMB"` + MinMemorySizeMB int32 `xml:"minMemorySizeMB"` + MaxMemorySizeMB int32 `xml:"maxMemorySizeMB"` } func init() { @@ -26594,8 +26423,8 @@ type MemorySizeNotSupportedByDatastore struct { VirtualHardwareCompatibilityIssue Datastore ManagedObjectReference `xml:"datastore"` - MemorySizeMB int `xml:"memorySizeMB"` - MaxMemorySizeMB int `xml:"maxMemorySizeMB"` + MemorySizeMB int32 `xml:"memorySizeMB"` + MaxMemorySizeMB int32 `xml:"maxMemorySizeMB"` } func init() { @@ -26655,8 +26484,8 @@ func init() { type MergePermissionsRequestType struct { This ManagedObjectReference `xml:"_this"` - SrcRoleId int `xml:"srcRoleId"` - DstRoleId int `xml:"dstRoleId"` + SrcRoleId int32 `xml:"srcRoleId"` + DstRoleId int32 `xml:"dstRoleId"` } func init() { @@ -26767,10 +26596,10 @@ type MetricAlarmExpression struct { Operator MetricAlarmOperator `xml:"operator"` Type string `xml:"type"` Metric PerfMetricId `xml:"metric"` - Yellow int `xml:"yellow,omitempty"` - YellowInterval int `xml:"yellowInterval,omitempty"` - Red int `xml:"red,omitempty"` - RedInterval int `xml:"redInterval,omitempty"` + Yellow int32 `xml:"yellow,omitempty"` + YellowInterval int32 `xml:"yellowInterval,omitempty"` + Red int32 `xml:"red,omitempty"` + RedInterval int32 `xml:"redInterval,omitempty"` } func init() { @@ -26934,8 +26763,8 @@ type MismatchedBundle struct { BundleUuid string `xml:"bundleUuid"` HostUuid string `xml:"hostUuid"` - BundleBuildNumber int `xml:"bundleBuildNumber"` - HostBuildNumber int `xml:"hostBuildNumber"` + BundleBuildNumber int32 `xml:"bundleBuildNumber"` + HostBuildNumber int32 `xml:"hostBuildNumber"` } func init() { @@ -27120,7 +26949,7 @@ func init() { type MksConnectionLimitReached struct { InvalidState - ConnectionLimit int `xml:"connectionLimit"` + ConnectionLimit int32 `xml:"connectionLimit"` } func init() { @@ -27171,7 +27000,7 @@ type ModifyListViewResponse struct { type MonthlyByDayTaskScheduler struct { MonthlyTaskScheduler - Day int `xml:"day"` + Day int32 `xml:"day"` } func init() { @@ -27201,7 +27030,7 @@ type MountError struct { CustomizationFault Vm ManagedObjectReference `xml:"vm"` - DiskIndex int `xml:"diskIndex"` + DiskIndex int32 `xml:"diskIndex"` } func init() { @@ -27521,7 +27350,7 @@ func init() { type MultipleCertificatesVerifyFaultThumbprintData struct { DynamicData - Port int `xml:"port"` + Port int32 `xml:"port"` Thumbprint string `xml:"thumbprint"` } @@ -27585,7 +27414,7 @@ func init() { type NamespaceLimitReached struct { VimFault - Limit int `xml:"limit,omitempty"` + Limit int32 `xml:"limit,omitempty"` } func init() { @@ -27811,7 +27640,7 @@ type NetIpConfigInfoIpAddress struct { DynamicData IpAddress string `xml:"ipAddress"` - PrefixLength int `xml:"prefixLength"` + PrefixLength int32 `xml:"prefixLength"` Origin string `xml:"origin,omitempty"` State string `xml:"state,omitempty"` Lifetime *time.Time `xml:"lifetime"` @@ -27837,7 +27666,7 @@ type NetIpConfigSpecIpAddressSpec struct { DynamicData IpAddress string `xml:"ipAddress"` - PrefixLength int `xml:"prefixLength"` + PrefixLength int32 `xml:"prefixLength"` Operation string `xml:"operation"` } @@ -27870,7 +27699,7 @@ type NetIpRouteConfigInfoIpRoute struct { DynamicData Network string `xml:"network"` - PrefixLength int `xml:"prefixLength"` + PrefixLength int32 `xml:"prefixLength"` Gateway NetIpRouteConfigInfoGateway `xml:"gateway"` } @@ -27903,7 +27732,7 @@ type NetIpRouteConfigSpecIpRouteSpec struct { DynamicData Network string `xml:"network"` - PrefixLength int `xml:"prefixLength"` + PrefixLength int32 `xml:"prefixLength"` Gateway NetIpRouteConfigSpecGatewaySpec `xml:"gateway"` Operation string `xml:"operation"` } @@ -28070,7 +27899,7 @@ type NetworkSummary struct { Name string `xml:"name"` Accessible bool `xml:"accessible"` IpPoolName string `xml:"ipPoolName,omitempty"` - IpPoolId int `xml:"ipPoolId,omitempty"` + IpPoolId int32 `xml:"ipPoolId,omitempty"` } func init() { @@ -28096,8 +27925,8 @@ func init() { type NicSettingMismatch struct { CustomizationFault - NumberOfNicsInSpec int `xml:"numberOfNicsInSpec"` - NumberOfNicsInVM int `xml:"numberOfNicsInVM"` + NumberOfNicsInSpec int32 `xml:"numberOfNicsInSpec"` + NumberOfNicsInVM int32 `xml:"numberOfNicsInVM"` } func init() { @@ -28646,8 +28475,8 @@ func init() { type NotEnoughCpus struct { VirtualHardwareCompatibilityIssue - NumCpuDest int `xml:"numCpuDest"` - NumCpuVm int `xml:"numCpuVm"` + NumCpuDest int32 `xml:"numCpuDest"` + NumCpuVm int32 `xml:"numCpuVm"` } func init() { @@ -28930,8 +28759,8 @@ func init() { type NumVirtualCoresPerSocketNotSupported struct { VirtualHardwareCompatibilityIssue - MaxSupportedCoresPerSocketDest int `xml:"maxSupportedCoresPerSocketDest"` - NumCoresPerSocketVm int `xml:"numCoresPerSocketVm"` + MaxSupportedCoresPerSocketDest int32 `xml:"maxSupportedCoresPerSocketDest"` + NumCoresPerSocketVm int32 `xml:"numCoresPerSocketVm"` } func init() { @@ -28947,7 +28776,7 @@ func init() { type NumVirtualCpusExceedsLimit struct { InsufficientResourcesFault - MaxSupportedVcpus int `xml:"maxSupportedVcpus"` + MaxSupportedVcpus int32 `xml:"maxSupportedVcpus"` } func init() { @@ -28964,7 +28793,7 @@ type NumVirtualCpusIncompatible struct { VmConfigFault Reason string `xml:"reason"` - NumCpu int `xml:"numCpu"` + NumCpu int32 `xml:"numCpu"` } func init() { @@ -28980,8 +28809,8 @@ func init() { type NumVirtualCpusNotSupported struct { VirtualHardwareCompatibilityIssue - MaxSupportedVcpusDest int `xml:"maxSupportedVcpusDest"` - NumCpuVm int `xml:"numCpuVm"` + MaxSupportedVcpusDest int32 `xml:"maxSupportedVcpusDest"` + NumCpuVm int32 `xml:"numCpuVm"` } func init() { @@ -28997,8 +28826,8 @@ func init() { type NumericRange struct { DynamicData - Start int `xml:"start"` - End int `xml:"end"` + Start int32 `xml:"start"` + End int32 `xml:"end"` } func init() { @@ -29363,7 +29192,7 @@ func init() { type OvfConsumerInvalidSection struct { OvfConsumerCallbackFault - LineNumber int `xml:"lineNumber"` + LineNumber int32 `xml:"lineNumber"` Description string `xml:"description"` } @@ -29394,7 +29223,7 @@ func init() { type OvfConsumerOvfSection struct { DynamicData - LineNumber int `xml:"lineNumber"` + LineNumber int32 `xml:"lineNumber"` Xml string `xml:"xml"` } @@ -29474,7 +29303,7 @@ type OvfCpuCompatibility struct { OvfImport RegisterName string `xml:"registerName"` - Level int `xml:"level"` + Level int32 `xml:"level"` RegisterValue string `xml:"registerValue"` DesiredRegisterValue string `xml:"desiredRegisterValue"` } @@ -29763,7 +29592,7 @@ type OvfFileItem struct { CompressionMethod string `xml:"compressionMethod,omitempty"` ChunkSize int64 `xml:"chunkSize,omitempty"` Size int64 `xml:"size,omitempty"` - CimType int `xml:"cimType"` + CimType int32 `xml:"cimType"` Create bool `xml:"create"` } @@ -29880,7 +29709,7 @@ func init() { type OvfInvalidPackage struct { OvfFault - LineNumber int `xml:"lineNumber"` + LineNumber int32 `xml:"lineNumber"` } func init() { @@ -29997,7 +29826,7 @@ func init() { type OvfMappedOsId struct { OvfImport - OvfId int `xml:"ovfId"` + OvfId int32 `xml:"ovfId"` OvfDescription string `xml:"ovfDescription"` TargetDescription string `xml:"targetDescription"` } @@ -30060,7 +29889,7 @@ type OvfMissingHardware struct { OvfImport Name string `xml:"name"` - ResourceType int `xml:"resourceType"` + ResourceType int32 `xml:"resourceType"` } func init() { @@ -30450,7 +30279,7 @@ func init() { type OvfUnknownEntity struct { OvfSystemFault - LineNumber int `xml:"lineNumber"` + LineNumber int32 `xml:"lineNumber"` } func init() { @@ -30600,7 +30429,7 @@ func init() { type OvfUnsupportedPackage struct { OvfFault - LineNumber int `xml:"lineNumber,omitempty"` + LineNumber int32 `xml:"lineNumber,omitempty"` } func init() { @@ -30634,7 +30463,7 @@ type OvfUnsupportedSubType struct { ElementName string `xml:"elementName"` InstanceId string `xml:"instanceId"` - DeviceType int `xml:"deviceType"` + DeviceType int32 `xml:"deviceType"` DeviceSubType string `xml:"deviceSubType"` } @@ -30653,7 +30482,7 @@ type OvfUnsupportedType struct { Name string `xml:"name"` InstanceId string `xml:"instanceId"` - DeviceType int `xml:"deviceType"` + DeviceType int32 `xml:"deviceType"` } func init() { @@ -30950,15 +30779,15 @@ func init() { type PerfCounterInfo struct { DynamicData - Key int `xml:"key"` + Key int32 `xml:"key"` NameInfo BaseElementDescription `xml:"nameInfo,typeattr"` GroupInfo BaseElementDescription `xml:"groupInfo,typeattr"` UnitInfo BaseElementDescription `xml:"unitInfo,typeattr"` RollupType PerfSummaryType `xml:"rollupType"` StatsType PerfStatsType `xml:"statsType"` - Level int `xml:"level,omitempty"` - PerDeviceLevel int `xml:"perDeviceLevel,omitempty"` - AssociatedCounterId []int `xml:"associatedCounterId,omitempty"` + Level int32 `xml:"level,omitempty"` + PerDeviceLevel int32 `xml:"perDeviceLevel,omitempty"` + AssociatedCounterId []int32 `xml:"associatedCounterId,omitempty"` } func init() { @@ -31000,11 +30829,11 @@ func init() { type PerfInterval struct { DynamicData - Key int `xml:"key"` - SamplingPeriod int `xml:"samplingPeriod"` + Key int32 `xml:"key"` + SamplingPeriod int32 `xml:"samplingPeriod"` Name string `xml:"name"` - Length int `xml:"length"` - Level int `xml:"level,omitempty"` + Length int32 `xml:"length"` + Level int32 `xml:"level,omitempty"` Enabled bool `xml:"enabled"` } @@ -31015,7 +30844,7 @@ func init() { type PerfMetricId struct { DynamicData - CounterId int `xml:"counterId"` + CounterId int32 `xml:"counterId"` Instance string `xml:"instance"` } @@ -31059,7 +30888,7 @@ type PerfProviderSummary struct { Entity ManagedObjectReference `xml:"entity"` CurrentSupported bool `xml:"currentSupported"` SummarySupported bool `xml:"summarySupported"` - RefreshRate int `xml:"refreshRate,omitempty"` + RefreshRate int32 `xml:"refreshRate,omitempty"` } func init() { @@ -31072,9 +30901,9 @@ type PerfQuerySpec struct { Entity ManagedObjectReference `xml:"entity"` StartTime *time.Time `xml:"startTime"` EndTime *time.Time `xml:"endTime"` - MaxSample int `xml:"maxSample,omitempty"` + MaxSample int32 `xml:"maxSample,omitempty"` MetricId []PerfMetricId `xml:"metricId,omitempty"` - IntervalId int `xml:"intervalId,omitempty"` + IntervalId int32 `xml:"intervalId,omitempty"` Format string `xml:"format,omitempty"` } @@ -31086,7 +30915,7 @@ type PerfSampleInfo struct { DynamicData Timestamp time.Time `xml:"timestamp"` - Interval int `xml:"interval"` + Interval int32 `xml:"interval"` } func init() { @@ -31170,9 +30999,9 @@ func init() { type PerformanceManagerCounterLevelMapping struct { DynamicData - CounterId int `xml:"counterId"` - AggregateLevel int `xml:"aggregateLevel,omitempty"` - PerDeviceLevel int `xml:"perDeviceLevel,omitempty"` + CounterId int32 `xml:"counterId"` + AggregateLevel int32 `xml:"aggregateLevel,omitempty"` + PerDeviceLevel int32 `xml:"perDeviceLevel,omitempty"` } func init() { @@ -31195,7 +31024,7 @@ type Permission struct { Entity *ManagedObjectReference `xml:"entity,omitempty"` Principal string `xml:"principal"` Group bool `xml:"group"` - RoleId int `xml:"roleId"` + RoleId int32 `xml:"roleId"` Propagate bool `xml:"propagate"` } @@ -31312,10 +31141,10 @@ func init() { type PhysicalNicCdpInfo struct { DynamicData - CdpVersion int `xml:"cdpVersion,omitempty"` - Timeout int `xml:"timeout,omitempty"` - Ttl int `xml:"ttl,omitempty"` - Samples int `xml:"samples,omitempty"` + CdpVersion int32 `xml:"cdpVersion,omitempty"` + Timeout int32 `xml:"timeout,omitempty"` + Ttl int32 `xml:"ttl,omitempty"` + Samples int32 `xml:"samples,omitempty"` DevId string `xml:"devId,omitempty"` Address string `xml:"address,omitempty"` PortId string `xml:"portId,omitempty"` @@ -31323,10 +31152,10 @@ type PhysicalNicCdpInfo struct { SoftwareVersion string `xml:"softwareVersion,omitempty"` HardwarePlatform string `xml:"hardwarePlatform,omitempty"` IpPrefix string `xml:"ipPrefix,omitempty"` - IpPrefixLen int `xml:"ipPrefixLen,omitempty"` - Vlan int `xml:"vlan,omitempty"` + IpPrefixLen int32 `xml:"ipPrefixLen,omitempty"` + Vlan int32 `xml:"vlan,omitempty"` FullDuplex *bool `xml:"fullDuplex"` - Mtu int `xml:"mtu,omitempty"` + Mtu int32 `xml:"mtu,omitempty"` SystemName string `xml:"systemName,omitempty"` SystemOID string `xml:"systemOID,omitempty"` MgmtAddr string `xml:"mgmtAddr,omitempty"` @@ -31351,7 +31180,7 @@ func init() { type PhysicalNicHint struct { DynamicData - VlanId int `xml:"vlanId,omitempty"` + VlanId int32 `xml:"vlanId,omitempty"` } func init() { @@ -31385,8 +31214,8 @@ func init() { type PhysicalNicLinkInfo struct { DynamicData - SpeedMb int `xml:"speedMb"` - Duplex bool `xml:"duplex"` + SpeedMb int32 `xml:"speedMb"` + Duplex bool `xml:"duplex"` } func init() { @@ -31559,7 +31388,7 @@ func init() { type PodDiskLocator struct { DynamicData - DiskId int `xml:"diskId"` + DiskId int32 `xml:"diskId"` DiskMoveType string `xml:"diskMoveType,omitempty"` DiskBackingInfo BaseVirtualDeviceBackingInfo `xml:"diskBackingInfo,omitempty,typeattr"` Profile []BaseVirtualMachineProfileSpec `xml:"profile,omitempty,typeattr"` @@ -31610,7 +31439,7 @@ func init() { type PosixUserSearchResult struct { UserSearchResult - Id int `xml:"id"` + Id int32 `xml:"id"` ShellAccess *bool `xml:"shellAccess"` } @@ -31639,7 +31468,7 @@ type PostEventResponse struct { type PowerDownHostToStandByRequestType struct { This ManagedObjectReference `xml:"_this"` - TimeoutSec int `xml:"timeoutSec"` + TimeoutSec int32 `xml:"timeoutSec"` EvacuatePoweredOffVms *bool `xml:"evacuatePoweredOffVms"` } @@ -31719,7 +31548,7 @@ type PowerOnFtSecondaryTimedout struct { Vm ManagedObjectReference `xml:"vm"` VmName string `xml:"vmName"` - Timeout int `xml:"timeout"` + Timeout int32 `xml:"timeout"` } func init() { @@ -31811,7 +31640,7 @@ func init() { type PowerUpHostFromStandByRequestType struct { This ManagedObjectReference `xml:"_this"` - TimeoutSec int `xml:"timeoutSec"` + TimeoutSec int32 `xml:"timeoutSec"` } func init() { @@ -31858,7 +31687,7 @@ type ProductComponentInfo struct { Id string `xml:"id"` Name string `xml:"name"` Version string `xml:"version"` - Release int `xml:"release"` + Release int32 `xml:"release"` } func init() { @@ -32411,7 +32240,7 @@ type QueryAvailablePerfMetricRequestType struct { Entity ManagedObjectReference `xml:"entity"` BeginTime *time.Time `xml:"beginTime"` EndTime *time.Time `xml:"endTime"` - IntervalId int `xml:"intervalId,omitempty"` + IntervalId int32 `xml:"intervalId,omitempty"` } func init() { @@ -32524,7 +32353,7 @@ func init() { type QueryChangedDiskAreasRequestType struct { This ManagedObjectReference `xml:"_this"` Snapshot *ManagedObjectReference `xml:"snapshot,omitempty"` - DeviceKey int `xml:"deviceKey"` + DeviceKey int32 `xml:"deviceKey"` StartOffset int64 `xml:"startOffset"` ChangeId string `xml:"changeId"` } @@ -32722,7 +32551,7 @@ func init() { type QueryConnectionInfoRequestType struct { This ManagedObjectReference `xml:"_this"` Hostname string `xml:"hostname"` - Port int `xml:"port"` + Port int32 `xml:"port"` Username string `xml:"username"` Password string `xml:"password"` SslThumbprint string `xml:"sslThumbprint,omitempty"` @@ -33164,7 +32993,7 @@ func init() { type QueryIPAllocationsRequestType struct { This ManagedObjectReference `xml:"_this"` Dc ManagedObjectReference `xml:"dc"` - PoolId int `xml:"poolId"` + PoolId int32 `xml:"poolId"` ExtensionKey string `xml:"extensionKey"` } @@ -33337,8 +33166,8 @@ type QueryMemoryOverheadExResponse struct { type QueryMemoryOverheadRequestType struct { This ManagedObjectReference `xml:"_this"` MemorySize int64 `xml:"memorySize"` - VideoRamSize int `xml:"videoRamSize,omitempty"` - NumVcpus int `xml:"numVcpus"` + VideoRamSize int32 `xml:"videoRamSize,omitempty"` + NumVcpus int32 `xml:"numVcpus"` } func init() { @@ -33577,7 +33406,7 @@ func init() { type QueryPerfCounterByLevelRequestType struct { This ManagedObjectReference `xml:"_this"` - Level int `xml:"level"` + Level int32 `xml:"level"` } func init() { @@ -33590,7 +33419,7 @@ type QueryPerfCounterByLevelResponse struct { type QueryPerfCounterRequestType struct { This ManagedObjectReference `xml:"_this"` - CounterId []int `xml:"counterId"` + CounterId []int32 `xml:"counterId"` } func init() { @@ -33928,7 +33757,7 @@ func init() { } type QueryUsedVlanIdInDvsResponse struct { - Returnval []int `xml:"returnval,omitempty"` + Returnval []int32 `xml:"returnval,omitempty"` } type QueryVMotionCompatibility QueryVMotionCompatibilityRequestType @@ -33989,7 +33818,7 @@ func init() { } type QueryVirtualDiskFragmentationResponse struct { - Returnval int `xml:"returnval"` + Returnval int32 `xml:"returnval"` } type QueryVirtualDiskGeometry QueryVirtualDiskGeometryRequestType @@ -34041,7 +33870,7 @@ func init() { type QueryVmfsDatastoreCreateOptionsRequestType struct { This ManagedObjectReference `xml:"_this"` DevicePath string `xml:"devicePath"` - VmfsMajorVersion int `xml:"vmfsMajorVersion,omitempty"` + VmfsMajorVersion int32 `xml:"vmfsMajorVersion,omitempty"` } func init() { @@ -34120,8 +33949,8 @@ func init() { type QueryVsanObjectUuidsByFilterRequestType struct { This ManagedObjectReference `xml:"_this"` Uuids []string `xml:"uuids,omitempty"` - Limit int `xml:"limit,omitempty"` - Version int `xml:"version,omitempty"` + Limit int32 `xml:"limit,omitempty"` + Version int32 `xml:"version,omitempty"` } func init() { @@ -34359,7 +34188,7 @@ func init() { type ReadNextEventsRequestType struct { This ManagedObjectReference `xml:"_this"` - MaxCount int `xml:"maxCount"` + MaxCount int32 `xml:"maxCount"` } func init() { @@ -34378,7 +34207,7 @@ func init() { type ReadNextTasksRequestType struct { This ManagedObjectReference `xml:"_this"` - MaxCount int `xml:"maxCount"` + MaxCount int32 `xml:"maxCount"` } func init() { @@ -34392,8 +34221,8 @@ type ReadNextTasksResponse struct { type ReadOnlyDisksWithLegacyDestination struct { MigrationFault - RoDiskCount int `xml:"roDiskCount"` - TimeoutDanger bool `xml:"timeoutDanger"` + RoDiskCount int32 `xml:"roDiskCount"` + TimeoutDanger bool `xml:"timeoutDanger"` } func init() { @@ -34414,7 +34243,7 @@ func init() { type ReadPreviousEventsRequestType struct { This ManagedObjectReference `xml:"_this"` - MaxCount int `xml:"maxCount"` + MaxCount int32 `xml:"maxCount"` } func init() { @@ -34433,7 +34262,7 @@ func init() { type ReadPreviousTasksRequestType struct { This ManagedObjectReference `xml:"_this"` - MaxCount int `xml:"maxCount"` + MaxCount int32 `xml:"maxCount"` } func init() { @@ -34942,7 +34771,7 @@ type RectifyDvsOnHost_TaskResponse struct { type RecurrentTaskScheduler struct { TaskScheduler - Interval int `xml:"interval"` + Interval int32 `xml:"interval"` } func init() { @@ -35296,7 +35125,7 @@ func init() { type ReleaseIpAllocationRequestType struct { This ManagedObjectReference `xml:"_this"` Dc ManagedObjectReference `xml:"dc"` - PoolId int `xml:"poolId"` + PoolId int32 `xml:"poolId"` AllocationId string `xml:"allocationId"` } @@ -35428,7 +35257,7 @@ func init() { type RemoveAuthorizationRoleRequestType struct { This ManagedObjectReference `xml:"_this"` - RoleId int `xml:"roleId"` + RoleId int32 `xml:"roleId"` FailIfUsed bool `xml:"failIfUsed"` } @@ -35447,7 +35276,7 @@ func init() { type RemoveCustomFieldDefRequestType struct { This ManagedObjectReference `xml:"_this"` - Key int `xml:"key"` + Key int32 `xml:"key"` } func init() { @@ -35498,7 +35327,7 @@ type RemoveDiskMappingRequestType struct { This ManagedObjectReference `xml:"_this"` Mapping []VsanHostDiskMapping `xml:"mapping"` MaintenanceSpec *HostMaintenanceSpec `xml:"maintenanceSpec,omitempty"` - Timeout int `xml:"timeout,omitempty"` + Timeout int32 `xml:"timeout,omitempty"` } func init() { @@ -35519,7 +35348,7 @@ type RemoveDiskRequestType struct { This ManagedObjectReference `xml:"_this"` Disk []HostScsiDisk `xml:"disk"` MaintenanceSpec *HostMaintenanceSpec `xml:"maintenanceSpec,omitempty"` - Timeout int `xml:"timeout,omitempty"` + Timeout int32 `xml:"timeout,omitempty"` } func init() { @@ -35732,7 +35561,7 @@ func init() { type RemovePerfIntervalRequestType struct { This ManagedObjectReference `xml:"_this"` - SamplePeriod int `xml:"samplePeriod"` + SamplePeriod int32 `xml:"samplePeriod"` } func init() { @@ -35915,7 +35744,7 @@ func init() { type RenameCustomFieldDefRequestType struct { This ManagedObjectReference `xml:"_this"` - Key int `xml:"key"` + Key int32 `xml:"key"` Name string `xml:"name"` } @@ -36058,7 +35887,7 @@ type ReplicationConfigSpec struct { Generation int64 `xml:"generation"` VmReplicationId string `xml:"vmReplicationId"` Destination string `xml:"destination"` - Port int `xml:"port"` + Port int32 `xml:"port"` Rpo int64 `xml:"rpo"` QuiesceGuestEnabled bool `xml:"quiesceGuestEnabled"` Paused bool `xml:"paused"` @@ -36076,7 +35905,7 @@ type ReplicationDiskConfigFault struct { Reason string `xml:"reason,omitempty"` VmRef *ManagedObjectReference `xml:"vmRef,omitempty"` - Key int `xml:"key,omitempty"` + Key int32 `xml:"key,omitempty"` } func init() { @@ -36120,7 +35949,7 @@ func init() { type ReplicationInfoDiskSettings struct { DynamicData - Key int `xml:"key"` + Key int32 `xml:"key"` DiskReplicationId string `xml:"diskReplicationId"` } @@ -36215,7 +36044,7 @@ func init() { type ReplicationVmProgressInfo struct { DynamicData - Progress int `xml:"progress"` + Progress int32 `xml:"progress"` BytesTransferred int64 `xml:"bytesTransferred"` BytesToTransfer int64 `xml:"bytesToTransfer"` ChecksumTotalBytes int64 `xml:"checksumTotalBytes,omitempty"` @@ -36334,7 +36163,7 @@ func init() { type ResetCounterLevelMappingRequestType struct { This ManagedObjectReference `xml:"_this"` - Counters []int `xml:"counters"` + Counters []int32 `xml:"counters"` } func init() { @@ -36708,8 +36537,8 @@ type ResourcePoolQuickStats struct { HostMemoryUsage int64 `xml:"hostMemoryUsage,omitempty"` DistributedCpuEntitlement int64 `xml:"distributedCpuEntitlement,omitempty"` DistributedMemoryEntitlement int64 `xml:"distributedMemoryEntitlement,omitempty"` - StaticCpuEntitlement int `xml:"staticCpuEntitlement,omitempty"` - StaticMemoryEntitlement int `xml:"staticMemoryEntitlement,omitempty"` + StaticCpuEntitlement int32 `xml:"staticCpuEntitlement,omitempty"` + StaticMemoryEntitlement int32 `xml:"staticMemoryEntitlement,omitempty"` PrivateMemory int64 `xml:"privateMemory,omitempty"` SharedMemory int64 `xml:"sharedMemory,omitempty"` SwappedMemory int64 `xml:"swappedMemory,omitempty"` @@ -36765,7 +36594,7 @@ type ResourcePoolSummary struct { Config ResourceConfigSpec `xml:"config"` Runtime ResourcePoolRuntimeInfo `xml:"runtime"` QuickStats *ResourcePoolQuickStats `xml:"quickStats,omitempty"` - ConfiguredMemoryMB int `xml:"configuredMemoryMB,omitempty"` + ConfiguredMemoryMB int32 `xml:"configuredMemoryMB,omitempty"` } func init() { @@ -37092,7 +36921,7 @@ type RetrieveObjectScheduledTaskResponse struct { type RetrieveOptions struct { DynamicData - MaxObjects int `xml:"maxObjects,omitempty"` + MaxObjects int32 `xml:"maxObjects,omitempty"` } func init() { @@ -37175,7 +37004,7 @@ func init() { type RetrieveRolePermissionsRequestType struct { This ManagedObjectReference `xml:"_this"` - RoleId int `xml:"roleId"` + RoleId int32 `xml:"roleId"` } func init() { @@ -37309,7 +37138,7 @@ func init() { type RoleEventArgument struct { EventArgument - RoleId int `xml:"roleId"` + RoleId int32 `xml:"roleId"` Name string `xml:"name"` } @@ -37666,7 +37495,7 @@ type ScheduledTaskInfo struct { State TaskInfoState `xml:"state"` Error *LocalizedMethodFault `xml:"error,omitempty"` Result AnyType `xml:"result,omitempty,typeattr"` - Progress int `xml:"progress,omitempty"` + Progress int32 `xml:"progress,omitempty"` ActiveTask *ManagedObjectReference `xml:"activeTask,omitempty"` TaskObject *ManagedObjectReference `xml:"taskObject,omitempty"` } @@ -37726,12 +37555,12 @@ type ScsiLun struct { Vendor string `xml:"vendor,omitempty"` Model string `xml:"model,omitempty"` Revision string `xml:"revision,omitempty"` - ScsiLevel int `xml:"scsiLevel,omitempty"` + ScsiLevel int32 `xml:"scsiLevel,omitempty"` SerialNumber string `xml:"serialNumber,omitempty"` DurableName *ScsiLunDurableName `xml:"durableName,omitempty"` AlternateName []ScsiLunDurableName `xml:"alternateName,omitempty"` StandardInquiry []byte `xml:"standardInquiry,omitempty"` - QueueDepth int `xml:"queueDepth,omitempty"` + QueueDepth int32 `xml:"queueDepth,omitempty"` OperationalState []string `xml:"operationalState"` Capabilities *ScsiLunCapabilities `xml:"capabilities,omitempty"` VStorageSupport string `xml:"vStorageSupport,omitempty"` @@ -37778,7 +37607,7 @@ func init() { type SeSparseVirtualDiskSpec struct { FileBackedVirtualDiskSpec - GrainSizeKb int `xml:"grainSizeKb,omitempty"` + GrainSizeKb int32 `xml:"grainSizeKb,omitempty"` } func init() { @@ -38294,7 +38123,7 @@ func init() { type SetCollectorPageSizeRequestType struct { This ManagedObjectReference `xml:"_this"` - MaxCount int `xml:"maxCount"` + MaxCount int32 `xml:"maxCount"` } func init() { @@ -38369,7 +38198,7 @@ func init() { type SetFieldRequestType struct { This ManagedObjectReference `xml:"_this"` Entity ManagedObjectReference `xml:"entity"` - Key int `xml:"key"` + Key int32 `xml:"key"` Value string `xml:"value"` } @@ -38417,25 +38246,6 @@ func init() { type SetLocaleResponse struct { } -type SetManagedByVDC SetManagedByVDCRequestType - -func init() { - t["SetManagedByVDC"] = reflect.TypeOf((*SetManagedByVDC)(nil)).Elem() -} - -type SetManagedByVDCRequestType struct { - This ManagedObjectReference `xml:"_this"` - Cluster ManagedObjectReference `xml:"cluster"` - Status bool `xml:"status"` -} - -func init() { - t["SetManagedByVDCRequestType"] = reflect.TypeOf((*SetManagedByVDCRequestType)(nil)).Elem() -} - -type SetManagedByVDCResponse struct { -} - type SetMultipathLunPolicy SetMultipathLunPolicyRequestType func init() { @@ -38521,8 +38331,8 @@ func init() { type SetScreenResolutionRequestType struct { This ManagedObjectReference `xml:"_this"` - Width int `xml:"width"` - Height int `xml:"height"` + Width int32 `xml:"width"` + Height int32 `xml:"height"` } func init() { @@ -38607,7 +38417,7 @@ func init() { type SharesInfo struct { DynamicData - Shares int `xml:"shares"` + Shares int32 `xml:"shares"` Level SharesLevel `xml:"level"` } @@ -38629,7 +38439,7 @@ func init() { type ShrinkDiskFault struct { VimFault - DiskId int `xml:"diskId,omitempty"` + DiskId int32 `xml:"diskId,omitempty"` } func init() { @@ -39391,11 +39201,11 @@ func init() { type StorageDrsIoLoadBalanceConfig struct { DynamicData - ReservablePercentThreshold int `xml:"reservablePercentThreshold,omitempty"` - ReservableIopsThreshold int `xml:"reservableIopsThreshold,omitempty"` + ReservablePercentThreshold int32 `xml:"reservablePercentThreshold,omitempty"` + ReservableIopsThreshold int32 `xml:"reservableIopsThreshold,omitempty"` ReservableThresholdMode string `xml:"reservableThresholdMode,omitempty"` - IoLatencyThreshold int `xml:"ioLatencyThreshold,omitempty"` - IoLoadImbalanceThreshold int `xml:"ioLoadImbalanceThreshold,omitempty"` + IoLatencyThreshold int32 `xml:"ioLatencyThreshold,omitempty"` + IoLoadImbalanceThreshold int32 `xml:"ioLoadImbalanceThreshold,omitempty"` } func init() { @@ -39443,7 +39253,7 @@ type StorageDrsPodConfigInfo struct { Enabled bool `xml:"enabled"` IoLoadBalanceEnabled bool `xml:"ioLoadBalanceEnabled"` DefaultVmBehavior string `xml:"defaultVmBehavior"` - LoadBalanceInterval int `xml:"loadBalanceInterval,omitempty"` + LoadBalanceInterval int32 `xml:"loadBalanceInterval,omitempty"` DefaultIntraVmAffinity *bool `xml:"defaultIntraVmAffinity"` SpaceLoadBalanceConfig *StorageDrsSpaceLoadBalanceConfig `xml:"spaceLoadBalanceConfig,omitempty"` IoLoadBalanceConfig *StorageDrsIoLoadBalanceConfig `xml:"ioLoadBalanceConfig,omitempty"` @@ -39462,7 +39272,7 @@ type StorageDrsPodConfigSpec struct { Enabled *bool `xml:"enabled"` IoLoadBalanceEnabled *bool `xml:"ioLoadBalanceEnabled"` DefaultVmBehavior string `xml:"defaultVmBehavior,omitempty"` - LoadBalanceInterval int `xml:"loadBalanceInterval,omitempty"` + LoadBalanceInterval int32 `xml:"loadBalanceInterval,omitempty"` DefaultIntraVmAffinity *bool `xml:"defaultIntraVmAffinity"` SpaceLoadBalanceConfig *StorageDrsSpaceLoadBalanceConfig `xml:"spaceLoadBalanceConfig,omitempty"` IoLoadBalanceConfig *StorageDrsIoLoadBalanceConfig `xml:"ioLoadBalanceConfig,omitempty"` @@ -39504,9 +39314,9 @@ type StorageDrsSpaceLoadBalanceConfig struct { DynamicData SpaceThresholdMode string `xml:"spaceThresholdMode,omitempty"` - SpaceUtilizationThreshold int `xml:"spaceUtilizationThreshold,omitempty"` - FreeSpaceThresholdGB int `xml:"freeSpaceThresholdGB,omitempty"` - MinSpaceUtilizationDifference int `xml:"minSpaceUtilizationDifference,omitempty"` + SpaceUtilizationThreshold int32 `xml:"spaceUtilizationThreshold,omitempty"` + FreeSpaceThresholdGB int32 `xml:"freeSpaceThresholdGB,omitempty"` + MinSpaceUtilizationDifference int32 `xml:"minSpaceUtilizationDifference,omitempty"` } func init() { @@ -39570,7 +39380,7 @@ type StorageIOAllocationInfo struct { Limit int64 `xml:"limit,omitempty"` Shares *SharesInfo `xml:"shares,omitempty"` - Reservation int `xml:"reservation,omitempty"` + Reservation int32 `xml:"reservation,omitempty"` } func init() { @@ -39606,12 +39416,12 @@ type StorageIORMConfigSpec struct { Enabled *bool `xml:"enabled"` CongestionThresholdMode string `xml:"congestionThresholdMode,omitempty"` - CongestionThreshold int `xml:"congestionThreshold,omitempty"` - PercentOfPeakThroughput int `xml:"percentOfPeakThroughput,omitempty"` + CongestionThreshold int32 `xml:"congestionThreshold,omitempty"` + PercentOfPeakThroughput int32 `xml:"percentOfPeakThroughput,omitempty"` StatsCollectionEnabled *bool `xml:"statsCollectionEnabled"` ReservationEnabled *bool `xml:"reservationEnabled"` StatsAggregationDisabled *bool `xml:"statsAggregationDisabled"` - ReservableIopsThreshold int `xml:"reservableIopsThreshold,omitempty"` + ReservableIopsThreshold int32 `xml:"reservableIopsThreshold,omitempty"` } func init() { @@ -39623,12 +39433,12 @@ type StorageIORMInfo struct { Enabled bool `xml:"enabled"` CongestionThresholdMode string `xml:"congestionThresholdMode,omitempty"` - CongestionThreshold int `xml:"congestionThreshold"` - PercentOfPeakThroughput int `xml:"percentOfPeakThroughput,omitempty"` + CongestionThreshold int32 `xml:"congestionThreshold"` + PercentOfPeakThroughput int32 `xml:"percentOfPeakThroughput,omitempty"` StatsCollectionEnabled *bool `xml:"statsCollectionEnabled"` ReservationEnabled *bool `xml:"reservationEnabled"` StatsAggregationDisabled *bool `xml:"statsAggregationDisabled"` - ReservableIopsThreshold int `xml:"reservableIopsThreshold,omitempty"` + ReservableIopsThreshold int32 `xml:"reservableIopsThreshold,omitempty"` } func init() { @@ -39658,14 +39468,14 @@ func init() { type StoragePerformanceSummary struct { DynamicData - Interval int `xml:"interval"` - Percentile []int `xml:"percentile"` + Interval int32 `xml:"interval"` + Percentile []int32 `xml:"percentile"` DatastoreReadLatency []float64 `xml:"datastoreReadLatency"` DatastoreWriteLatency []float64 `xml:"datastoreWriteLatency"` DatastoreVmLatency []float64 `xml:"datastoreVmLatency"` DatastoreReadIops []float64 `xml:"datastoreReadIops"` DatastoreWriteIops []float64 `xml:"datastoreWriteIops"` - SiocActivityDuration int `xml:"siocActivityDuration"` + SiocActivityDuration int32 `xml:"siocActivityDuration"` } func init() { @@ -39716,7 +39526,7 @@ type StoragePlacementSpec struct { Host *ManagedObjectReference `xml:"host,omitempty"` Folder *ManagedObjectReference `xml:"folder,omitempty"` DisallowPrerequisiteMoves *bool `xml:"disallowPrerequisiteMoves"` - ResourceLeaseDurationSec int `xml:"resourceLeaseDurationSec,omitempty"` + ResourceLeaseDurationSec int32 `xml:"resourceLeaseDurationSec,omitempty"` } func init() { @@ -40007,7 +39817,7 @@ type TaskFilterSpec struct { State []TaskInfoState `xml:"state,omitempty"` Alarm *ManagedObjectReference `xml:"alarm,omitempty"` ScheduledTask *ManagedObjectReference `xml:"scheduledTask,omitempty"` - EventChainId []int `xml:"eventChainId,omitempty"` + EventChainId []int32 `xml:"eventChainId,omitempty"` Tag []string `xml:"tag,omitempty"` ParentTaskKey []string `xml:"parentTaskKey,omitempty"` RootTaskKey []string `xml:"rootTaskKey,omitempty"` @@ -40083,12 +39893,12 @@ type TaskInfo struct { Cancelable bool `xml:"cancelable"` Error *LocalizedMethodFault `xml:"error,omitempty"` Result AnyType `xml:"result,omitempty,typeattr"` - Progress int `xml:"progress,omitempty"` + Progress int32 `xml:"progress,omitempty"` Reason BaseTaskReason `xml:"reason,typeattr"` QueueTime time.Time `xml:"queueTime"` StartTime *time.Time `xml:"startTime"` CompleteTime *time.Time `xml:"completeTime"` - EventChainId int `xml:"eventChainId"` + EventChainId int32 `xml:"eventChainId"` ChangeTag string `xml:"changeTag,omitempty"` ParentTaskKey string `xml:"parentTaskKey,omitempty"` RootTaskKey string `xml:"rootTaskKey,omitempty"` @@ -40405,8 +40215,8 @@ func init() { type TooManyDisksOnLegacyHost struct { MigrationFault - DiskCount int `xml:"diskCount"` - TimeoutDanger bool `xml:"timeoutDanger"` + DiskCount int32 `xml:"diskCount"` + TimeoutDanger bool `xml:"timeoutDanger"` } func init() { @@ -40520,7 +40330,7 @@ func init() { type ToolsConfigInfo struct { DynamicData - ToolsVersion int `xml:"toolsVersion,omitempty"` + ToolsVersion int32 `xml:"toolsVersion,omitempty"` AfterPowerOn *bool `xml:"afterPowerOn"` AfterResume *bool `xml:"afterResume"` BeforeGuestStandby *bool `xml:"beforeGuestStandby"` @@ -40539,7 +40349,7 @@ func init() { type ToolsConfigInfoToolsLastInstallInfo struct { DynamicData - Counter int `xml:"counter"` + Counter int32 `xml:"counter"` Fault *LocalizedMethodFault `xml:"fault,omitempty"` } @@ -40810,26 +40620,6 @@ func init() { t["UncustomizableGuestFault"] = reflect.TypeOf((*UncustomizableGuestFault)(nil)).Elem() } -type UndeployVM UndeployVMRequestType - -func init() { - t["UndeployVM"] = reflect.TypeOf((*UndeployVM)(nil)).Elem() -} - -type UndeployVMRequestType struct { - This ManagedObjectReference `xml:"_this"` - VrpId string `xml:"vrpId"` - Vm ManagedObjectReference `xml:"vm"` - Cluster ManagedObjectReference `xml:"cluster"` -} - -func init() { - t["UndeployVMRequestType"] = reflect.TypeOf((*UndeployVMRequestType)(nil)).Elem() -} - -type UndeployVMResponse struct { -} - type UnexpectedCustomizationFault struct { CustomizationFault } @@ -40922,8 +40712,8 @@ type UninstallServiceResponse struct { type UnlicensedVirtualMachinesEvent struct { LicenseEvent - Unlicensed int `xml:"unlicensed"` - Available int `xml:"available"` + Unlicensed int32 `xml:"unlicensed"` + Available int32 `xml:"available"` } func init() { @@ -40933,7 +40723,7 @@ func init() { type UnlicensedVirtualMachinesFoundEvent struct { LicenseEvent - Available int `xml:"available"` + Available int32 `xml:"available"` } func init() { @@ -41276,7 +41066,7 @@ func init() { type UpdateAuthorizationRoleRequestType struct { This ManagedObjectReference `xml:"_this"` - RoleId int `xml:"roleId"` + RoleId int32 `xml:"roleId"` NewName string `xml:"newName"` PrivIds []string `xml:"privIds,omitempty"` } @@ -42095,7 +41885,7 @@ func init() { type UpdateProgressRequestType struct { This ManagedObjectReference `xml:"_this"` - PercentDone int `xml:"percentDone"` + PercentDone int32 `xml:"percentDone"` } func init() { @@ -42337,24 +42127,6 @@ func init() { type UpdateVAppConfigResponse struct { } -type UpdateVRP UpdateVRPRequestType - -func init() { - t["UpdateVRP"] = reflect.TypeOf((*UpdateVRP)(nil)).Elem() -} - -type UpdateVRPRequestType struct { - This ManagedObjectReference `xml:"_this"` - Spec VRPEditSpec `xml:"spec"` -} - -func init() { - t["UpdateVRPRequestType"] = reflect.TypeOf((*UpdateVRPRequestType)(nil)).Elem() -} - -type UpdateVRPResponse struct { -} - type UpdateVirtualMachineFilesRequestType struct { This ManagedObjectReference `xml:"_this"` MountPathDatastoreMapping []DatastoreMountPathDatastorePair `xml:"mountPathDatastoreMapping"` @@ -42573,7 +42345,7 @@ func init() { type UpgradeVsanObjectsRequestType struct { This ManagedObjectReference `xml:"_this"` Uuids []string `xml:"uuids"` - NewVersion int `xml:"newVersion"` + NewVersion int32 `xml:"newVersion"` } func init() { @@ -42861,11 +42633,11 @@ type VAppEntityConfigInfo struct { Key *ManagedObjectReference `xml:"key,omitempty"` Tag string `xml:"tag,omitempty"` - StartOrder int `xml:"startOrder,omitempty"` - StartDelay int `xml:"startDelay,omitempty"` + StartOrder int32 `xml:"startOrder,omitempty"` + StartDelay int32 `xml:"startDelay,omitempty"` WaitingForGuest *bool `xml:"waitingForGuest"` StartAction string `xml:"startAction,omitempty"` - StopDelay int `xml:"stopDelay,omitempty"` + StopDelay int32 `xml:"stopDelay,omitempty"` StopAction string `xml:"stopAction,omitempty"` DestroyWithParent *bool `xml:"destroyWithParent"` } @@ -42918,7 +42690,7 @@ func init() { type VAppOvfSectionInfo struct { DynamicData - Key int `xml:"key,omitempty"` + Key int32 `xml:"key,omitempty"` Namespace string `xml:"namespace,omitempty"` Type string `xml:"type,omitempty"` AtEnvelopeLevel *bool `xml:"atEnvelopeLevel"` @@ -42942,7 +42714,7 @@ func init() { type VAppProductInfo struct { DynamicData - Key int `xml:"key"` + Key int32 `xml:"key"` ClassId string `xml:"classId,omitempty"` InstanceId string `xml:"instanceId,omitempty"` Name string `xml:"name,omitempty"` @@ -42991,7 +42763,7 @@ func init() { type VAppPropertyInfo struct { DynamicData - Key int `xml:"key"` + Key int32 `xml:"key"` ClassId string `xml:"classId,omitempty"` InstanceId string `xml:"instanceId,omitempty"` Id string `xml:"id,omitempty"` @@ -43290,7 +43062,7 @@ type VMwareDVSConfigInfo struct { VspanSession []VMwareVspanSession `xml:"vspanSession,omitempty"` PvlanConfig []VMwareDVSPvlanMapEntry `xml:"pvlanConfig,omitempty"` - MaxMtu int `xml:"maxMtu"` + MaxMtu int32 `xml:"maxMtu"` LinkDiscoveryProtocolConfig *LinkDiscoveryProtocolConfig `xml:"linkDiscoveryProtocolConfig,omitempty"` IpfixConfig *VMwareIpfixConfig `xml:"ipfixConfig,omitempty"` LacpGroupConfig []VMwareDvsLacpGroupConfig `xml:"lacpGroupConfig,omitempty"` @@ -43307,7 +43079,7 @@ type VMwareDVSConfigSpec struct { PvlanConfigSpec []VMwareDVSPvlanConfigSpec `xml:"pvlanConfigSpec,omitempty"` VspanConfigSpec []VMwareDVSVspanConfigSpec `xml:"vspanConfigSpec,omitempty"` - MaxMtu int `xml:"maxMtu,omitempty"` + MaxMtu int32 `xml:"maxMtu,omitempty"` LinkDiscoveryProtocolConfig *LinkDiscoveryProtocolConfig `xml:"linkDiscoveryProtocolConfig,omitempty"` IpfixConfig *VMwareIpfixConfig `xml:"ipfixConfig,omitempty"` LacpApiVersion string `xml:"lacpApiVersion,omitempty"` @@ -43408,8 +43180,8 @@ func init() { type VMwareDVSPvlanMapEntry struct { DynamicData - PrimaryVlanId int `xml:"primaryVlanId"` - SecondaryVlanId int `xml:"secondaryVlanId"` + PrimaryVlanId int32 `xml:"primaryVlanId"` + SecondaryVlanId int32 `xml:"secondaryVlanId"` PvlanType string `xml:"pvlanType"` } @@ -43508,7 +43280,7 @@ type VMwareDvsLacpGroupConfig struct { Key string `xml:"key,omitempty"` Name string `xml:"name,omitempty"` Mode string `xml:"mode,omitempty"` - UplinkNum int `xml:"uplinkNum,omitempty"` + UplinkNum int32 `xml:"uplinkNum,omitempty"` LoadbalanceAlgorithm string `xml:"loadbalanceAlgorithm,omitempty"` Vlan *VMwareDvsLagVlanConfig `xml:"vlan,omitempty"` Ipfix *VMwareDvsLagIpfixConfig `xml:"ipfix,omitempty"` @@ -43555,11 +43327,11 @@ type VMwareIpfixConfig struct { DynamicData CollectorIpAddress string `xml:"collectorIpAddress,omitempty"` - CollectorPort int `xml:"collectorPort,omitempty"` + CollectorPort int32 `xml:"collectorPort,omitempty"` ObservationDomainId int64 `xml:"observationDomainId,omitempty"` - ActiveFlowTimeout int `xml:"activeFlowTimeout"` - IdleFlowTimeout int `xml:"idleFlowTimeout"` - SamplingRate int `xml:"samplingRate"` + ActiveFlowTimeout int32 `xml:"activeFlowTimeout"` + IdleFlowTimeout int32 `xml:"idleFlowTimeout"` + SamplingRate int32 `xml:"samplingRate"` InternalFlowsOnly bool `xml:"internalFlowsOnly"` } @@ -43595,7 +43367,7 @@ type VMwareVspanPort struct { PortKey []string `xml:"portKey,omitempty"` UplinkPortName []string `xml:"uplinkPortName,omitempty"` WildcardPortConnecteeType []string `xml:"wildcardPortConnecteeType,omitempty"` - Vlans []int `xml:"vlans,omitempty"` + Vlans []int32 `xml:"vlans,omitempty"` IpAddress []string `xml:"ipAddress,omitempty"` } @@ -43613,12 +43385,12 @@ type VMwareVspanSession struct { SourcePortTransmitted *VMwareVspanPort `xml:"sourcePortTransmitted,omitempty"` SourcePortReceived *VMwareVspanPort `xml:"sourcePortReceived,omitempty"` DestinationPort *VMwareVspanPort `xml:"destinationPort,omitempty"` - EncapsulationVlanId int `xml:"encapsulationVlanId,omitempty"` + EncapsulationVlanId int32 `xml:"encapsulationVlanId,omitempty"` StripOriginalVlan bool `xml:"stripOriginalVlan"` - MirroredPacketLength int `xml:"mirroredPacketLength,omitempty"` + MirroredPacketLength int32 `xml:"mirroredPacketLength,omitempty"` NormalTrafficAllowed bool `xml:"normalTrafficAllowed"` SessionType string `xml:"sessionType,omitempty"` - SamplingRate int `xml:"samplingRate,omitempty"` + SamplingRate int32 `xml:"samplingRate,omitempty"` } func init() { @@ -43811,7 +43583,7 @@ func init() { type VimVasaProviderStatePerArray struct { DynamicData - Priority int `xml:"priority"` + Priority int32 `xml:"priority"` ArrayId string `xml:"arrayId"` Active bool `xml:"active"` } @@ -43997,8 +43769,8 @@ func init() { type VirtualController struct { VirtualDevice - BusNumber int `xml:"busNumber"` - Device []int `xml:"device,omitempty"` + BusNumber int32 `xml:"busNumber"` + Device []int32 `xml:"device,omitempty"` } func init() { @@ -44019,13 +43791,13 @@ func init() { type VirtualDevice struct { DynamicData - Key int `xml:"key"` + Key int32 `xml:"key"` DeviceInfo BaseDescription `xml:"deviceInfo,omitempty,typeattr"` Backing BaseVirtualDeviceBackingInfo `xml:"backing,omitempty,typeattr"` Connectable *VirtualDeviceConnectInfo `xml:"connectable,omitempty"` SlotInfo BaseVirtualDeviceBusSlotInfo `xml:"slotInfo,omitempty,typeattr"` - ControllerKey int `xml:"controllerKey,omitempty"` - UnitNumber int `xml:"unitNumber,omitempty"` + ControllerKey int32 `xml:"controllerKey,omitempty"` + UnitNumber *int32 `xml:"unitNumber"` } func init() { @@ -44157,7 +43929,7 @@ type VirtualDeviceOption struct { ControllerType string `xml:"controllerType,omitempty"` AutoAssignController *BoolOption `xml:"autoAssignController,omitempty"` BackingOption []BaseVirtualDeviceBackingOption `xml:"backingOption,omitempty,typeattr"` - DefaultBackingOptionIndex int `xml:"defaultBackingOptionIndex,omitempty"` + DefaultBackingOptionIndex int32 `xml:"defaultBackingOptionIndex,omitempty"` LicensingLimit []string `xml:"licensingLimit,omitempty"` Deprecated bool `xml:"deprecated"` PlugAndPlay bool `xml:"plugAndPlay"` @@ -44171,7 +43943,7 @@ func init() { type VirtualDevicePciBusSlotInfo struct { VirtualDeviceBusSlotInfo - PciSlotNumber int `xml:"pciSlotNumber"` + PciSlotNumber int32 `xml:"pciSlotNumber"` } func init() { @@ -44258,7 +44030,7 @@ func init() { type VirtualDiskAntiAffinityRuleSpec struct { ClusterRuleInfo - DiskId []int `xml:"diskId"` + DiskId []int32 `xml:"diskId"` } func init() { @@ -44342,7 +44114,7 @@ type VirtualDiskFlatVer2BackingInfo struct { Parent *VirtualDiskFlatVer2BackingInfo `xml:"parent,omitempty"` DeltaDiskFormat string `xml:"deltaDiskFormat,omitempty"` DigestEnabled *bool `xml:"digestEnabled"` - DeltaGrainSize int `xml:"deltaGrainSize,omitempty"` + DeltaGrainSize int32 `xml:"deltaGrainSize,omitempty"` DeltaDiskFormatVariant string `xml:"deltaDiskFormatVariant,omitempty"` Sharing string `xml:"sharing,omitempty"` } @@ -44374,7 +44146,7 @@ type VirtualDiskId struct { DynamicData Vm ManagedObjectReference `xml:"vm"` - DiskId int `xml:"diskId"` + DiskId int32 `xml:"diskId"` } func init() { @@ -44425,7 +44197,7 @@ func init() { type VirtualDiskPartitionedRawDiskVer2BackingInfo struct { VirtualDiskRawDiskVer2BackingInfo - Partition []int `xml:"partition"` + Partition []int32 `xml:"partition"` } func init() { @@ -44506,7 +44278,7 @@ type VirtualDiskSeSparseBackingInfo struct { Parent *VirtualDiskSeSparseBackingInfo `xml:"parent,omitempty"` DeltaDiskFormat string `xml:"deltaDiskFormat,omitempty"` DigestEnabled *bool `xml:"digestEnabled"` - GrainSize int `xml:"grainSize,omitempty"` + GrainSize int32 `xml:"grainSize,omitempty"` } func init() { @@ -44855,9 +44627,9 @@ func init() { type VirtualHardware struct { DynamicData - NumCPU int `xml:"numCPU"` - NumCoresPerSocket int `xml:"numCoresPerSocket,omitempty"` - MemoryMB int `xml:"memoryMB"` + NumCPU int32 `xml:"numCPU"` + NumCoresPerSocket int32 `xml:"numCoresPerSocket,omitempty"` + MemoryMB int32 `xml:"memoryMB"` VirtualICH7MPresent *bool `xml:"virtualICH7MPresent"` VirtualSMCPresent *bool `xml:"virtualSMCPresent"` Device []BaseVirtualDevice `xml:"device,omitempty,typeattr"` @@ -44884,10 +44656,10 @@ func init() { type VirtualHardwareOption struct { DynamicData - HwVersion int `xml:"hwVersion"` + HwVersion int32 `xml:"hwVersion"` VirtualDeviceOption []BaseVirtualDeviceOption `xml:"virtualDeviceOption,typeattr"` DeviceListReadonly bool `xml:"deviceListReadonly"` - NumCPU []int `xml:"numCPU"` + NumCPU []int32 `xml:"numCPU"` NumCoresPerSocket *IntOption `xml:"numCoresPerSocket,omitempty"` NumCpuReadonly bool `xml:"numCpuReadonly"` MemoryMB LongOption `xml:"memoryMB"` @@ -45010,7 +44782,7 @@ func init() { type VirtualMachineAffinityInfo struct { DynamicData - AffinitySet []int `xml:"affinitySet,omitempty"` + AffinitySet []int32 `xml:"affinitySet,omitempty"` } func init() { @@ -45051,7 +44823,7 @@ func init() { type VirtualMachineBootOptionsBootableDiskDevice struct { VirtualMachineBootOptionsBootableDevice - DeviceKey int `xml:"deviceKey"` + DeviceKey int32 `xml:"deviceKey"` } func init() { @@ -45061,7 +44833,7 @@ func init() { type VirtualMachineBootOptionsBootableEthernetDevice struct { VirtualMachineBootOptionsBootableDevice - DeviceKey int `xml:"deviceKey"` + DeviceKey int32 `xml:"deviceKey"` } func init() { @@ -45196,7 +44968,7 @@ type VirtualMachineConfigInfo struct { VAssertsEnabled *bool `xml:"vAssertsEnabled"` ChangeTrackingEnabled *bool `xml:"changeTrackingEnabled"` Firmware string `xml:"firmware,omitempty"` - MaxMksConnections int `xml:"maxMksConnections,omitempty"` + MaxMksConnections int32 `xml:"maxMksConnections,omitempty"` GuestAutoLockEnabled *bool `xml:"guestAutoLockEnabled"` ManagedBy *ManagedByInfo `xml:"managedBy,omitempty"` MemoryReservationLockedToMax *bool `xml:"memoryReservationLockedToMax"` @@ -45244,7 +45016,7 @@ type VirtualMachineConfigOption struct { Version string `xml:"version"` Description string `xml:"description"` GuestOSDescriptor []GuestOsDescriptor `xml:"guestOSDescriptor"` - GuestOSDefaultIndex int `xml:"guestOSDefaultIndex"` + GuestOSDefaultIndex int32 `xml:"guestOSDefaultIndex"` HardwareOptions VirtualHardwareOption `xml:"hardwareOptions"` Capabilities VirtualMachineCapability `xml:"capabilities"` Datastore DatastoreOption `xml:"datastore"` @@ -45299,8 +45071,8 @@ type VirtualMachineConfigSpec struct { Flags *VirtualMachineFlagInfo `xml:"flags,omitempty"` ConsolePreferences *VirtualMachineConsolePreferences `xml:"consolePreferences,omitempty"` PowerOpInfo *VirtualMachineDefaultPowerOpInfo `xml:"powerOpInfo,omitempty"` - NumCPUs int `xml:"numCPUs,omitempty"` - NumCoresPerSocket int `xml:"numCoresPerSocket,omitempty"` + NumCPUs int32 `xml:"numCPUs,omitempty"` + NumCoresPerSocket int32 `xml:"numCoresPerSocket,omitempty"` MemoryMB int64 `xml:"memoryMB,omitempty"` MemoryHotAddEnabled *bool `xml:"memoryHotAddEnabled"` CpuHotAddEnabled *bool `xml:"cpuHotAddEnabled"` @@ -45325,7 +45097,7 @@ type VirtualMachineConfigSpec struct { VAssertsEnabled *bool `xml:"vAssertsEnabled"` ChangeTrackingEnabled *bool `xml:"changeTrackingEnabled"` Firmware string `xml:"firmware,omitempty"` - MaxMksConnections int `xml:"maxMksConnections,omitempty"` + MaxMksConnections int32 `xml:"maxMksConnections,omitempty"` GuestAutoLockEnabled *bool `xml:"guestAutoLockEnabled"` ManagedBy *ManagedByInfo `xml:"managedBy,omitempty"` MemoryReservationLockedToMax *bool `xml:"memoryReservationLockedToMax"` @@ -45346,12 +45118,12 @@ type VirtualMachineConfigSummary struct { Name string `xml:"name"` Template bool `xml:"template"` VmPathName string `xml:"vmPathName"` - MemorySizeMB int `xml:"memorySizeMB,omitempty"` - CpuReservation int `xml:"cpuReservation,omitempty"` - MemoryReservation int `xml:"memoryReservation,omitempty"` - NumCpu int `xml:"numCpu,omitempty"` - NumEthernetCards int `xml:"numEthernetCards,omitempty"` - NumVirtualDisks int `xml:"numVirtualDisks,omitempty"` + MemorySizeMB int32 `xml:"memorySizeMB,omitempty"` + CpuReservation int32 `xml:"cpuReservation,omitempty"` + MemoryReservation int32 `xml:"memoryReservation,omitempty"` + NumCpu int32 `xml:"numCpu,omitempty"` + NumEthernetCards int32 `xml:"numEthernetCards,omitempty"` + NumVirtualDisks int32 `xml:"numVirtualDisks,omitempty"` Uuid string `xml:"uuid,omitempty"` InstanceUuid string `xml:"instanceUuid,omitempty"` GuestId string `xml:"guestId,omitempty"` @@ -45422,7 +45194,7 @@ type VirtualMachineDatastoreVolumeOption struct { DynamicData FileSystemType string `xml:"fileSystemType"` - MajorVersion int `xml:"majorVersion,omitempty"` + MajorVersion int32 `xml:"majorVersion,omitempty"` } func init() { @@ -45468,7 +45240,7 @@ type VirtualMachineDeviceRuntimeInfo struct { DynamicData RuntimeState BaseVirtualMachineDeviceRuntimeInfoDeviceRuntimeState `xml:"runtimeState,typeattr"` - Key int `xml:"key"` + Key int32 `xml:"key"` } func init() { @@ -45511,10 +45283,10 @@ func init() { type VirtualMachineDisplayTopology struct { DynamicData - X int `xml:"x"` - Y int `xml:"y"` - Width int `xml:"width"` - Height int `xml:"height"` + X int32 `xml:"x"` + Y int32 `xml:"y"` + Width int32 `xml:"width"` + Height int32 `xml:"height"` } func init() { @@ -45572,7 +45344,7 @@ func init() { type VirtualMachineFileLayoutDiskLayout struct { DynamicData - Key int `xml:"key"` + Key int32 `xml:"key"` DiskFile []string `xml:"diskFile"` } @@ -45596,7 +45368,7 @@ func init() { type VirtualMachineFileLayoutExDiskLayout struct { DynamicData - Key int `xml:"key"` + Key int32 `xml:"key"` Chain []VirtualMachineFileLayoutExDiskUnit `xml:"chain,omitempty"` } @@ -45607,7 +45379,7 @@ func init() { type VirtualMachineFileLayoutExDiskUnit struct { DynamicData - FileKey []int `xml:"fileKey"` + FileKey []int32 `xml:"fileKey"` } func init() { @@ -45617,7 +45389,7 @@ func init() { type VirtualMachineFileLayoutExFileInfo struct { DynamicData - Key int `xml:"key"` + Key int32 `xml:"key"` Name string `xml:"name"` Type string `xml:"type"` Size int64 `xml:"size"` @@ -45634,8 +45406,8 @@ type VirtualMachineFileLayoutExSnapshotLayout struct { DynamicData Key ManagedObjectReference `xml:"key"` - DataKey int `xml:"dataKey"` - MemoryKey int `xml:"memoryKey,omitempty"` + DataKey int32 `xml:"dataKey"` + MemoryKey int32 `xml:"memoryKey,omitempty"` Disk []VirtualMachineFileLayoutExDiskLayout `xml:"disk,omitempty"` } @@ -45727,8 +45499,8 @@ func init() { type VirtualMachineIdeDiskDevicePartitionInfo struct { DynamicData - Id int `xml:"id"` - Capacity int `xml:"capacity"` + Id int32 `xml:"id"` + Capacity int32 `xml:"capacity"` } func init() { @@ -45841,7 +45613,7 @@ type VirtualMachineMksTicket struct { Ticket string `xml:"ticket"` CfgFile string `xml:"cfgFile"` Host string `xml:"host,omitempty"` - Port int `xml:"port,omitempty"` + Port int32 `xml:"port,omitempty"` SslThumbprint string `xml:"sslThumbprint,omitempty"` } @@ -45936,25 +45708,25 @@ func init() { type VirtualMachineQuickStats struct { DynamicData - OverallCpuUsage int `xml:"overallCpuUsage,omitempty"` - OverallCpuDemand int `xml:"overallCpuDemand,omitempty"` - GuestMemoryUsage int `xml:"guestMemoryUsage,omitempty"` - HostMemoryUsage int `xml:"hostMemoryUsage,omitempty"` + OverallCpuUsage int32 `xml:"overallCpuUsage,omitempty"` + OverallCpuDemand int32 `xml:"overallCpuDemand,omitempty"` + GuestMemoryUsage int32 `xml:"guestMemoryUsage,omitempty"` + HostMemoryUsage int32 `xml:"hostMemoryUsage,omitempty"` GuestHeartbeatStatus ManagedEntityStatus `xml:"guestHeartbeatStatus"` - DistributedCpuEntitlement int `xml:"distributedCpuEntitlement,omitempty"` - DistributedMemoryEntitlement int `xml:"distributedMemoryEntitlement,omitempty"` - StaticCpuEntitlement int `xml:"staticCpuEntitlement,omitempty"` - StaticMemoryEntitlement int `xml:"staticMemoryEntitlement,omitempty"` - PrivateMemory int `xml:"privateMemory,omitempty"` - SharedMemory int `xml:"sharedMemory,omitempty"` - SwappedMemory int `xml:"swappedMemory,omitempty"` - BalloonedMemory int `xml:"balloonedMemory,omitempty"` - ConsumedOverheadMemory int `xml:"consumedOverheadMemory,omitempty"` - FtLogBandwidth int `xml:"ftLogBandwidth,omitempty"` - FtSecondaryLatency int `xml:"ftSecondaryLatency,omitempty"` + DistributedCpuEntitlement int32 `xml:"distributedCpuEntitlement,omitempty"` + DistributedMemoryEntitlement int32 `xml:"distributedMemoryEntitlement,omitempty"` + StaticCpuEntitlement int32 `xml:"staticCpuEntitlement,omitempty"` + StaticMemoryEntitlement int32 `xml:"staticMemoryEntitlement,omitempty"` + PrivateMemory int32 `xml:"privateMemory,omitempty"` + SharedMemory int32 `xml:"sharedMemory,omitempty"` + SwappedMemory int32 `xml:"swappedMemory,omitempty"` + BalloonedMemory int32 `xml:"balloonedMemory,omitempty"` + ConsumedOverheadMemory int32 `xml:"consumedOverheadMemory,omitempty"` + FtLogBandwidth int32 `xml:"ftLogBandwidth,omitempty"` + FtSecondaryLatency int32 `xml:"ftSecondaryLatency,omitempty"` FtLatencyStatus ManagedEntityStatus `xml:"ftLatencyStatus,omitempty"` CompressedMemory int64 `xml:"compressedMemory,omitempty"` - UptimeSeconds int `xml:"uptimeSeconds,omitempty"` + UptimeSeconds int32 `xml:"uptimeSeconds,omitempty"` SsdSwappedMemory int64 `xml:"ssdSwappedMemory,omitempty"` } @@ -45984,7 +45756,7 @@ func init() { type VirtualMachineRelocateSpecDiskLocator struct { DynamicData - DiskId int `xml:"diskId"` + DiskId int32 `xml:"diskId"` Datastore ManagedObjectReference `xml:"datastore"` DiskMoveType string `xml:"diskMoveType,omitempty"` DiskBackingInfo BaseVirtualDeviceBackingInfo `xml:"diskBackingInfo,omitempty,typeattr"` @@ -46010,9 +45782,9 @@ type VirtualMachineRuntimeInfo struct { SuspendInterval int64 `xml:"suspendInterval,omitempty"` Question *VirtualMachineQuestionInfo `xml:"question,omitempty"` MemoryOverhead int64 `xml:"memoryOverhead,omitempty"` - MaxCpuUsage int `xml:"maxCpuUsage,omitempty"` - MaxMemoryUsage int `xml:"maxMemoryUsage,omitempty"` - NumMksConnections int `xml:"numMksConnections"` + MaxCpuUsage int32 `xml:"maxCpuUsage,omitempty"` + MaxMemoryUsage int32 `xml:"maxMemoryUsage,omitempty"` + NumMksConnections int32 `xml:"numMksConnections"` RecordReplayState VirtualMachineRecordReplayState `xml:"recordReplayState,omitempty"` CleanPowerOff *bool `xml:"cleanPowerOff"` NeedSecondaryReason string `xml:"needSecondaryReason,omitempty"` @@ -46047,7 +45819,7 @@ type VirtualMachineScsiDiskDeviceInfo struct { Disk *HostScsiDisk `xml:"disk,omitempty"` TransportHint string `xml:"transportHint,omitempty"` - LunNumber int `xml:"lunNumber,omitempty"` + LunNumber int32 `xml:"lunNumber,omitempty"` } func init() { @@ -46059,7 +45831,7 @@ type VirtualMachineScsiPassthroughInfo struct { ScsiClass string `xml:"scsiClass"` Vendor string `xml:"vendor"` - PhysicalUnitNumber int `xml:"physicalUnitNumber"` + PhysicalUnitNumber int32 `xml:"physicalUnitNumber"` } func init() { @@ -46092,7 +45864,7 @@ type VirtualMachineSnapshotTree struct { Vm ManagedObjectReference `xml:"vm"` Name string `xml:"name"` Description string `xml:"description"` - Id int `xml:"id,omitempty"` + Id int32 `xml:"id,omitempty"` CreateTime time.Time `xml:"createTime"` State VirtualMachinePowerState `xml:"state"` Quiesced bool `xml:"quiesced"` @@ -46182,7 +45954,7 @@ type VirtualMachineTicket struct { Ticket string `xml:"ticket"` CfgFile string `xml:"cfgFile"` Host string `xml:"host,omitempty"` - Port int `xml:"port,omitempty"` + Port int32 `xml:"port,omitempty"` SslThumbprint string `xml:"sslThumbprint,omitempty"` } @@ -46207,8 +45979,8 @@ type VirtualMachineUsbInfo struct { VirtualMachineTargetInfo Description string `xml:"description"` - Vendor int `xml:"vendor"` - Product int `xml:"product"` + Vendor int32 `xml:"vendor"` + Product int32 `xml:"product"` PhysicalPath string `xml:"physicalPath"` Family []string `xml:"family,omitempty"` Speed []string `xml:"speed,omitempty"` @@ -46305,7 +46077,7 @@ type VirtualMachineVideoCard struct { VirtualDevice VideoRamSizeInKB int64 `xml:"videoRamSizeInKB,omitempty"` - NumDisplays int `xml:"numDisplays,omitempty"` + NumDisplays int32 `xml:"numDisplays,omitempty"` UseAutoDetect *bool `xml:"useAutoDetect"` Enable3DSupport *bool `xml:"enable3DSupport"` Use3dRenderer string `xml:"use3dRenderer,omitempty"` @@ -46319,7 +46091,7 @@ func init() { type VirtualMachineWipeResult struct { DynamicData - DiskId int `xml:"diskId"` + DiskId int32 `xml:"diskId"` ShrinkableDiskSpace int64 `xml:"shrinkableDiskSpace"` } @@ -46435,7 +46207,7 @@ type VirtualPCIPassthroughVmiopBackingOption struct { VirtualPCIPassthroughPluginBackingOption Vgpu StringOption `xml:"vgpu"` - MaxInstances int `xml:"maxInstances"` + MaxInstances int32 `xml:"maxInstances"` } func init() { @@ -46620,7 +46392,7 @@ type VirtualSCSIController struct { HotAddRemove *bool `xml:"hotAddRemove"` SharedBus VirtualSCSISharing `xml:"sharedBus"` - ScsiCtlrUnitNumber int `xml:"scsiCtlrUnitNumber,omitempty"` + ScsiCtlrUnitNumber int32 `xml:"scsiCtlrUnitNumber,omitempty"` } func init() { @@ -46634,9 +46406,9 @@ type VirtualSCSIControllerOption struct { NumSCSICdroms IntOption `xml:"numSCSICdroms"` NumSCSIPassthrough IntOption `xml:"numSCSIPassthrough"` Sharing []VirtualSCSISharing `xml:"sharing"` - DefaultSharedIndex int `xml:"defaultSharedIndex"` + DefaultSharedIndex int32 `xml:"defaultSharedIndex"` HotAddRemove BoolOption `xml:"hotAddRemove"` - ScsiCtlrUnitNumber int `xml:"scsiCtlrUnitNumber"` + ScsiCtlrUnitNumber int32 `xml:"scsiCtlrUnitNumber"` } func init() { @@ -46873,7 +46645,7 @@ type VirtualSriovEthernetCardSriovBackingInfo struct { PhysicalFunctionBacking *VirtualPCIPassthroughDeviceBackingInfo `xml:"physicalFunctionBacking,omitempty"` VirtualFunctionBacking *VirtualPCIPassthroughDeviceBackingInfo `xml:"virtualFunctionBacking,omitempty"` - VirtualFunctionIndex int `xml:"virtualFunctionIndex,omitempty"` + VirtualFunctionIndex int32 `xml:"virtualFunctionIndex,omitempty"` } func init() { @@ -46914,8 +46686,8 @@ type VirtualUSB struct { VirtualDevice Connected bool `xml:"connected"` - Vendor int `xml:"vendor,omitempty"` - Product int `xml:"product,omitempty"` + Vendor int32 `xml:"vendor,omitempty"` + Product int32 `xml:"product,omitempty"` Family []string `xml:"family,omitempty"` Speed []string `xml:"speed,omitempty"` } @@ -46950,7 +46722,7 @@ func init() { type VirtualUSBControllerPciBusSlotInfo struct { VirtualDevicePciBusSlotInfo - EhciPciSlotNumber int `xml:"ehciPciSlotNumber,omitempty"` + EhciPciSlotNumber int32 `xml:"ehciPciSlotNumber,omitempty"` } func init() { @@ -47292,7 +47064,7 @@ func init() { type VmConfigFileInfo struct { FileInfo - ConfigVersion int `xml:"configVersion,omitempty"` + ConfigVersion int32 `xml:"configVersion,omitempty"` } func init() { @@ -47313,7 +47085,7 @@ func init() { type VmConfigFileQueryFilter struct { DynamicData - MatchConfigVersion []int `xml:"matchConfigVersion,omitempty"` + MatchConfigVersion []int32 `xml:"matchConfigVersion,omitempty"` } func init() { @@ -47372,7 +47144,7 @@ type VmConfigInfo struct { OvfSection []VAppOvfSectionInfo `xml:"ovfSection,omitempty"` OvfEnvironmentTransport []string `xml:"ovfEnvironmentTransport,omitempty"` InstallBootRequired bool `xml:"installBootRequired"` - InstallBootStopDelay int `xml:"installBootStopDelay"` + InstallBootStopDelay int32 `xml:"installBootStopDelay"` } func init() { @@ -47397,7 +47169,7 @@ type VmConfigSpec struct { OvfSection []VAppOvfSectionSpec `xml:"ovfSection,omitempty"` OvfEnvironmentTransport []string `xml:"ovfEnvironmentTransport,omitempty"` InstallBootRequired *bool `xml:"installBootRequired"` - InstallBootStopDelay int `xml:"installBootStopDelay,omitempty"` + InstallBootStopDelay int32 `xml:"installBootStopDelay,omitempty"` } func init() { @@ -47525,7 +47297,7 @@ type VmDiskFileInfo struct { DiskType string `xml:"diskType,omitempty"` CapacityKb int64 `xml:"capacityKb,omitempty"` - HardwareVersion int `xml:"hardwareVersion,omitempty"` + HardwareVersion int32 `xml:"hardwareVersion,omitempty"` ControllerType string `xml:"controllerType,omitempty"` DiskExtents []string `xml:"diskExtents,omitempty"` Thin *bool `xml:"thin"` @@ -47550,7 +47322,7 @@ type VmDiskFileQueryFilter struct { DynamicData DiskType []string `xml:"diskType,omitempty"` - MatchHardwareVersion []int `xml:"matchHardwareVersion,omitempty"` + MatchHardwareVersion []int32 `xml:"matchHardwareVersion,omitempty"` ControllerType []string `xml:"controllerType,omitempty"` Thin *bool `xml:"thin"` } @@ -47846,7 +47618,7 @@ type VmFaultToleranceTooManyFtVcpusOnHost struct { InsufficientResourcesFault HostName string `xml:"hostName,omitempty"` - MaxNumFtVcpus int `xml:"maxNumFtVcpus"` + MaxNumFtVcpus int32 `xml:"maxNumFtVcpus"` } func init() { @@ -47863,7 +47635,7 @@ type VmFaultToleranceTooManyVMsOnHost struct { InsufficientResourcesFault HostName string `xml:"hostName,omitempty"` - MaxNumFtVms int `xml:"maxNumFtVms"` + MaxNumFtVms int32 `xml:"maxNumFtVms"` } func init() { @@ -47988,7 +47760,7 @@ func init() { type VmLimitLicense struct { NotEnoughLicenses - Limit int `xml:"limit"` + Limit int32 `xml:"limit"` } func init() { @@ -48495,7 +48267,7 @@ type VmSmpFaultToleranceTooManyVMsOnHost struct { InsufficientResourcesFault HostName string `xml:"hostName,omitempty"` - MaxNumSmpFtVms int `xml:"maxNumSmpFtVms"` + MaxNumSmpFtVms int32 `xml:"maxNumSmpFtVms"` } func init() { @@ -48689,8 +48461,8 @@ type VmValidateMaxDevice struct { VimFault Device string `xml:"device"` - Max int `xml:"max"` - Count int `xml:"count"` + Max int32 `xml:"max"` + Count int32 `xml:"count"` } func init() { @@ -48947,7 +48719,7 @@ func init() { type VmwareDistributedVirtualSwitchPvlanSpec struct { VmwareDistributedVirtualSwitchVlanSpec - PvlanId int `xml:"pvlanId"` + PvlanId int32 `xml:"pvlanId"` } func init() { @@ -48967,7 +48739,7 @@ func init() { type VmwareDistributedVirtualSwitchVlanIdSpec struct { VmwareDistributedVirtualSwitchVlanSpec - VlanId int `xml:"vlanId"` + VlanId int32 `xml:"vlanId"` } func init() { @@ -49025,7 +48797,7 @@ func init() { type VramLimitLicense struct { NotEnoughLicenses - Limit int `xml:"limit"` + Limit int32 `xml:"limit"` } func init() { @@ -49147,7 +48919,7 @@ type VsanHostClusterStatusStateCompletionEstimate struct { DynamicData CompleteTime *time.Time `xml:"completeTime"` - PercentComplete int `xml:"percentComplete,omitempty"` + PercentComplete int32 `xml:"percentComplete,omitempty"` } func init() { @@ -49309,7 +49081,7 @@ type VsanHostRuntimeInfo struct { MembershipList []VsanHostMembershipInfo `xml:"membershipList,omitempty"` DiskIssues []VsanHostRuntimeInfoDiskIssue `xml:"diskIssues,omitempty"` - AccessGenNo int `xml:"accessGenNo,omitempty"` + AccessGenNo int32 `xml:"accessGenNo,omitempty"` } func init() { @@ -49331,7 +49103,7 @@ type VsanHostVsanDiskInfo struct { DynamicData VsanUuid string `xml:"vsanUuid"` - FormatVersion int `xml:"formatVersion"` + FormatVersion int32 `xml:"formatVersion"` } func init() { @@ -49546,7 +49318,7 @@ type VsanUpgradeSystemUpgradeStatus struct { History []BaseVsanUpgradeSystemUpgradeHistoryItem `xml:"history,omitempty,typeattr"` Aborted *bool `xml:"aborted"` Completed *bool `xml:"completed"` - Progress int `xml:"progress,omitempty"` + Progress int32 `xml:"progress,omitempty"` } func init() { @@ -49761,8 +49533,8 @@ type WaitForUpdatesResponse struct { type WaitOptions struct { DynamicData - MaxWaitSeconds int `xml:"maxWaitSeconds,omitempty"` - MaxObjectUpdates int `xml:"maxObjectUpdates,omitempty"` + MaxWaitSeconds int32 `xml:"maxWaitSeconds,omitempty"` + MaxObjectUpdates int32 `xml:"maxObjectUpdates,omitempty"` } func init() {