vsphere/internal/helper/virtualmachine/virtual_machine_helper.go
func (r MOIDForUUIDResults) ManagedObjectReferences() []types.ManagedObjectReference {
	var refs []types.ManagedObjectReference
	for _, result := range r {
		refs = append(refs, types.ManagedObjectReference{
			Type:  "VirtualMachine",
			Value: result.MOID,
		})
	}
	return refs
}
func (r MOIDForUUIDResults) ManagedObjectReferences() []types.ManagedObjectReference {
	var refs []types.ManagedObjectReference
	for _, result := range r {
		refs = append(refs, types.ManagedObjectReference{
			Type:  "VirtualMachine",
			Value: result.MOID,
		})
	}
	return refs
}
func ( r MOIDForUUIDResults ) ManagedObjectReferences ( ) [ ] types . ManagedObjectReference { var refs [ ] types . ManagedObjectReference for _ , result := range r { refs = append ( refs , types . ManagedObjectReference { Type : " " , Value : result . MOID , } ) } return refs }
// ManagedObjectReferences returns all MOIDs in a MOIDForUUIDResults, as
// ManagedObjectReferences as type VirtualMachine.
ManagedObjectReferences returns all MOIDs in a MOIDForUUIDResults as ManagedObjectReferences as type VirtualMachine .