code: func expandToolsConfigInfo(d *schema.ResourceData) *types.ToolsConfigInfo {
  	obj := &types.ToolsConfigInfo{
  		SyncTimeWithHost:    structure.GetBool(d, "sync_time_with_host"),
  		AfterPowerOn:        getBoolWithRestart(d, "run_tools_scripts_after_power_on"),
  		AfterResume:         getBoolWithRestart(d, "run_tools_scripts_after_resume"),
  		BeforeGuestStandby:  getBoolWithRestart(d, "run_tools_scripts_before_guest_standby"),
  		BeforeGuestShutdown: getBoolWithRestart(d, "run_tools_scripts_before_guest_shutdown"),
  		BeforeGuestReboot:   getBoolWithRestart(d, "run_tools_scripts_before_guest_reboot"),
  	}
  	return obj
  }
docs: // expandToolsConfigInfo reads certain ResourceData keys and
  // returns a ToolsConfigInfo.