vmware / govmomi

Go library for the VMware vSphere API
Apache License 2.0
2.27k stars 897 forks source link

Add VAPI bindings for guest namespaces and virtual machine classes #3397

Closed spacegospod closed 2 months ago

spacegospod commented 3 months ago

Description

We already have bindings for supervisor enable/disable. I am building on top of those to add support for guest namespace and virtual machine class CRUD operations.

I have taken into account the fact that the original supervisor bindings were implemented when vSphere 7.0.3 was the latest version in existence and I have made sure that these new bindings do not use anything that was added to the API after 7.0.3.

For reference: https://developer.vmware.com/apis/vsphere-automation/v7.0U3/vcenter/api/vcenter/namespaces/instances/ https://developer.vmware.com/apis/vsphere-automation/v7.0U3/vcenter/namespace_management/

Type of change

Please mark options that are relevant:

How Has This Been Tested?

I ran the "lint-fix" and "test" make scripts I also added new cases to "namespace.bats" And of course I implemented & tested the whole thing with a live vCenter. These changes work with 7.0.3 and with 8.0.X

Checklist: