 
 #---------------------------------------------------------------------
 
+# TODO: implement resource sets
 snapshot = $coroutine ({vm, name}) ->
   yield checkPermissionOnSrs.call(this, vm)
 

  {_xapiRef: ref} = VM

  # Memory.
  if 'memory' of params
    memory = parseSize(params.memory)



#---------------------------------------------------------------------

# TODO: implement resource sets
clone = $coroutine ({vm, name, full_copy}) ->
  yield checkPermissionOnSrs.call(this, vm)

