#NEWLINE# def update_available( self , name ) : #NEWLINE# #INDENT# 'Updates the "available" metric for the given quota.' #NEWLINE# available = ( self . usages [ name ] [ 'quota' ] - self . usages [ name ] [ 'used' ] ) #NEWLINE# if ( available < 0 ) : #NEWLINE# #INDENT# available = 0 #NEWLINE# #UNINDENT# self . usages [ name ] [ 'available' ] = available