code: func (v VirtualMachine) RevertToSnapshot(ctx context.Context, name string, suppressPowerOn bool) (*Task, error) {
  	snapshot, err := v.FindSnapshot(ctx, name)
  	if err != nil {
  		return nil, err
  	}
  
  	req := types.RevertToSnapshot_Task{
  		This:            snapshot.Reference(),
  		SuppressPowerOn: types.NewBool(suppressPowerOn),
  	}
  
  	res, err := methods.RevertToSnapshot_Task(ctx, v.c, &req)
  	if err != nil {
  		return nil, err
  	}
  
  	return NewTask(v.c, res.Returnval), nil
  }
docs: // RevertToSnapshot reverts to a named snapshot