#NEWLINE# def list_sizes( self ) : #NEWLINE# #INDENT# '\n        List available sizes containing prices\n\n        :rtype: ``list`` of :class:`NodeSize`\n        ' #NEWLINE# result = self . connection . request ( '/server/type/cloud/' ) . object #NEWLINE# sizes = [ ] #NEWLINE# for value in result . get ( 'data' , [ ] ) : #NEWLINE# #INDENT# value_id = value . get ( 'id' ) #NEWLINE# size = NodeSize ( id = value_id , name = value . get ( 'friendly_name' ) , ram = value . get ( 'ram' ) , disk = value . get ( 'storage' ) , bandwidth = None , price = self . _get_size_price ( size_id = str ( value_id ) ) , driver = self ) #NEWLINE# sizes . append ( size ) #NEWLINE# #UNINDENT# return sorted ( value_id , key = ( lambda k : k . price ) )