code: func expandClusterDasVMConfigInfo(
  	d *schema.ResourceData,
  	meta interface{},
  	vm *object.VirtualMachine,
  ) (*types.ClusterDasVmConfigInfo, error) {
  	client, err := resourceVSphereHAVMOverrideClient(meta)
  	if err != nil {
  		return nil, err
  	}
  	version := viapi.ParseVersionFromClient(client)
  
  	obj := &types.ClusterDasVmConfigInfo{
  		DasSettings: expandClusterDasVMSettings(d, version),
  		Key:         vm.Reference(),
  	}
  
  	// Expand ha_vm_monitoring_use_cluster_defaults here as it's not included in
  	// the base vsphere_compute_cluster resource.
  	obj.DasSettings.VmToolsMonitoringSettings.ClusterSettings = structure.GetBool(d, "ha_vm_monitoring_use_cluster_defaults")
  
  	return obj, nil
  }
docs: // expandClusterDasVMConfigInfo reads certain ResourceData keys and returns a
  // ClusterDasVmConfigInfo.