original_docstring: Updates the "available" metric for the given quota.
docstring: Updates the "available" metric for the given quota.
docstring_tokens: Updates the " available " metric for the given quota .
code: def update_available(self, name):
          """Updates the "available" metric for the given quota."""
          available = self.usages[name]['quota'] - self.usages[name]['used']
          if available < 0:
              available = 0
          self.usages[name]['available'] = available
code_tokens: def update_available ( self , name ) : available = self . usages [ name ] [ 'quota' ] - self . usages [ name ] [ 'used' ] if available < 0 : available = 0 self . usages [ name ] [ 'available' ] = available
short_docstring: Updates the "available" metric for the given quota.
short_docstring_tokens: Updates the " available " metric for the given quota .
comment: """Updates the "available" metric for the given quota."""