       'request bundle change'   : ['member','moderator']
       'commission resources'    : ['member','moderator']
     limits            :
-      cpu             : { unit: 'core', quota: 1 }
-      ram             : { unit: 'GB',   quota: 0.25 }
-      disk            : { unit: 'GB',   quota: 0.5 }
-      users           : { unit: 'user', quota: 20 }
-      cpuPerUser      : { unit: 'core', quota: 0, title: 'cpu per user' }
-      ramPerUser      : { unit: 'GB',   quota: 0, title: 'ram per user' }
-      diskPerUser     : { unit: 'GB',   quota: 0, title: 'disk per user' }
+      'cpu'           : { unit: 'core', quota: 1 }
+      'ram'           : { unit: 'GB',   quota: 0.25 }
+      'disk'          : { unit: 'GB',   quota: 0.5 }
+      'users'         : { unit: 'user', quota: 20 }
+      'cpu per user'  : { unit: 'core', quota: 0 }
+      'ram per user'  : { unit: 'GB',   quota: 0 }
+      'disk per user' : { unit: 'GB',   quota: 0 }
     schema            :
       overagePolicy   :
         type          : String

  fetchLimits$: permit 'change bundle',
    success: (client, callback)-> @fetchLimits callback

  debit$: permit 'commission resources',
    success: (client, debits, callback)->
      JVM = require '../vm'
      {connection:{delegate}, context:{group}} = client
      JVM.calculateUsage delegate, group, (err, usage)=>
        return callback err  if err?

        # TODO: we need to do some number-crunching with the usage stats

        @debit debits, callback

module.exports = class JGroupBundle extends JBundle

  KodingError = require '../../error'

  {permit} = require '../group/permissionset'

  {groupBy} = require 'underscore'

  {dash} = require 'bongo'

  @share()

