mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-27 11:53:53 +00:00
Update vmware/govmomi vendor: add vapi package
Zones implementation for vSphere cloud provider needs dependencies which are not included in current vmware/govmomi vendor. So this update added "vapi" package to support zones.
This commit is contained in:
16
vendor/github.com/vmware/govmomi/vim25/mo/retrieve.go
generated
vendored
16
vendor/github.com/vmware/govmomi/vim25/mo/retrieve.go
generated
vendored
@@ -65,6 +65,22 @@ func ObjectContentToType(o types.ObjectContent) (interface{}, error) {
|
||||
return v.Elem().Interface(), nil
|
||||
}
|
||||
|
||||
// ApplyPropertyChange converts the response of a call to WaitForUpdates
|
||||
// and applies it to the given managed object.
|
||||
func ApplyPropertyChange(obj Reference, changes []types.PropertyChange) {
|
||||
t := typeInfoForType(obj.Reference().Type)
|
||||
v := reflect.ValueOf(obj)
|
||||
|
||||
for _, p := range changes {
|
||||
rv, ok := t.props[p.Name]
|
||||
if !ok {
|
||||
continue
|
||||
}
|
||||
|
||||
assignValue(v, rv, reflect.ValueOf(p.Val))
|
||||
}
|
||||
}
|
||||
|
||||
// LoadRetrievePropertiesResponse converts the response of a call to
|
||||
// RetrieveProperties to one or more managed objects.
|
||||
func LoadRetrievePropertiesResponse(res *types.RetrievePropertiesResponse, dst interface{}) error {
|
||||
|
||||
Reference in New Issue
Block a user