def list_vm_images(self, location=None, publisher=None, category=None):
path = self._get_vm_image_path()<EOL>query = '<STR_LIT>'<EOL>if location:<EOL><INDENT>query += '<STR_LIT>' + location<EOL><DEDENT>if publisher:<EOL><INDENT>query += '<STR_LIT>' + publisher<EOL><DEDENT>if category:<EOL><INDENT>query += '<STR_LIT>' + category<EOL><DEDENT>if query:<EOL><INDENT>path = path + '<STR_LIT:?>' + query.lstrip('<STR_LIT:&>')<EOL><DEDENT>return self._perform_get(path, VMImages)<EOL>
Retrieves a list of the VM Images from the image repository that is
associated with the specified subscription.