code: func (v VirtualMachine) RevertToCurrentSnapshot(ctx context.Context, suppressPowerOn bool) (*Task, error) {
  	req := types.RevertToCurrentSnapshot_Task{
  		This:            v.Reference(),
  		SuppressPowerOn: types.NewBool(suppressPowerOn),
  	}
  
  	res, err := methods.RevertToCurrentSnapshot_Task(ctx, v.c, &req)
  	if err != nil {
  		return nil, err
  	}
  
  	return NewTask(v.c, res.Returnval), nil
  }
docs: // RevertToCurrentSnapshot reverts to the current snapshot