code: def update_available(self, name):
          
          quota = self.usages.get(name, {}).get('quota', float('inf'))
          available = quota - self.usages[name]['used']
          if available < 0:
              available = 0
          self.usages[name]['available'] = available
docs: Updates the "available" metric for the given quota.