#NEWLINE# def image_list( self , detailed = False , public = False , private = False , **filter ) : #NEWLINE# #INDENT# 'Get available images\n\n        :param detailed:\n            Retrieve detailed response from server if True\n        :param public:\n            Return public images if True\n        :param private:\n            Return private images if True\n\n        If public and private are both True or both False then all images are\n        returned.  Both arguments False is equivalent to no filter and all\n        images are returned.  Both arguments True is a filter that includes\n        both public and private images which is the same set as all images.\n\n        http://docs.openstack.org/api/openstack-image-service/1.1/content/requesting-a-list-of-public-vm-images.html\n        http://docs.openstack.org/api/openstack-image-service/1.1/content/requesting-detailed-metadata-on-public-vm-images.html\n        http://docs.openstack.org/api/openstack-image-service/1.1/content/filtering-images-returned-via-get-images-and-get-imagesdetail.html\n        ' #NEWLINE# url = '/images' #NEWLINE# if ( detailed or public or private ) : #NEWLINE# #INDENT# url += '/detail' #NEWLINE# #UNINDENT# image_list = self . list ( url , ** filter ) [ 'images' ] #NEWLINE# if ( public != private ) : #NEWLINE# #INDENT# image_list = [ i for i in image_list if ( i [ 'is_public' ] == public ) ] #NEWLINE# #UNINDENT# return image_list