code: func expandVirtualMachineFlagInfo(d *schema.ResourceData) *types.VirtualMachineFlagInfo {
  	obj := &types.VirtualMachineFlagInfo{
  		DiskUuidEnabled:  getBoolWithRestart(d, "enable_disk_uuid"),
  		VirtualExecUsage: getWithRestart(d, "hv_mode").(string),
  		VirtualMmuUsage:  getWithRestart(d, "ept_rvi_mode").(string),
  		EnableLogging:    getBoolWithRestart(d, "enable_logging"),
  	}
  	return obj
  }
docs: // expandVirtualMachineFlagInfo reads certain ResourceData keys and
  // returns a VirtualMachineFlagInfo.