def listing(self, auth, types, options=None, resource=None, defer=False):
if options is None:<EOL><INDENT>return self._call('<STR_LIT>', auth, [types], defer)<EOL><DEDENT>else:<EOL><INDENT>if resource is None:<EOL><INDENT>return self._call('<STR_LIT>',<EOL>auth,<EOL>[types, options],<EOL>defer)<EOL><DEDENT>else:<EOL><INDENT>return self._call('<STR_LIT>',<EOL>auth,<EOL>[resource, types, options],<EOL>defer)<EOL><DEDENT><DEDENT>
This provides backward compatibility with two
           previous variants of listing. To use the non-deprecated
           API, pass both options and resource.