vsphere/internal/helper/resourcepool/resource_pool_helper.go
func DefaultDevices(client *govmomi.Client, pool *object.ResourcePool, guest string) (object.VirtualDeviceList, error) {
	log.Printf("[DEBUG] Fetching default device list for resource pool %q for OS type %q", pool.Reference().Value, guest)
	pprops, err := Properties(pool)
	if err != nil {
		return nil, err
	}
	return computeresource.DefaultDevicesFromReference(client, pprops.Owner, guest)
}
func DefaultDevices(client *govmomi.Client, pool *object.ResourcePool, guest string) (object.VirtualDeviceList, error) {
	log.Printf("[DEBUG] Fetching default device list for resource pool %q for OS type %q", pool.Reference().Value, guest)
	pprops, err := Properties(pool)
	if err != nil {
		return nil, err
	}
	return computeresource.DefaultDevicesFromReference(client, pprops.Owner, guest)
}
func DefaultDevices ( client * govmomi . Client , pool * object . ResourcePool , guest string ) ( object . VirtualDeviceList , error ) { log . Printf ( " " , pool . Reference ( ) . Value , guest ) pprops , err := Properties ( pool ) if err != nil { return nil , err } return computeresource . DefaultDevicesFromReference ( client , pprops . Owner , guest ) }
// DefaultDevices loads a default VirtualDeviceList for a supplied pool
// and guest ID (guest OS type).
DefaultDevices loads a default VirtualDeviceList for a supplied pool and guest ID ( guest OS type ) .