#NEWLINE# def list_locations( self ) : #NEWLINE# #INDENT# '\n        List available zones for deployment\n\n        :rtype: ``list`` of :class:`NodeLocation`\n        ' #NEWLINE# result = self . connection . request ( '/datacenter/zone/' ) . object #NEWLINE# locations = [ ] #NEWLINE# for value in result . get ( 'data' , [ ] ) : #NEWLINE# #INDENT# location = NodeLocation ( id = value . get ( 'id' ) , name = value . get ( 'name' ) , country = 'US' , driver = self ) #NEWLINE# locations . append ( location ) #NEWLINE# #UNINDENT# return locations