def _generate_read_callable(name, display_name, arguments, regex, doc, supported):
def f(self, *args, **kwargs):<EOL><INDENT>url = self._generate_url(regex, args)<EOL>if '<STR_LIT>' in kwargs:<EOL><INDENT>url += "<STR_LIT:?>" + urllib.parse.urlencode(kwargs['<STR_LIT>'])<EOL><DEDENT>return self._get_data(url, accept=(kwargs.get('<STR_LIT>')))<EOL><DEDENT>f.__name__ = str('<STR_LIT>' % name)<EOL>f.__doc__ = doc<EOL>f._resource_uri = regex<EOL>f._get_args = arguments<EOL>f._put_or_post_args = None <EOL>f.resource_name = display_name<EOL>f.is_api_call = True<EOL>f.is_supported_api = supported<EOL>return f<EOL>
Returns a callable which conjures the URL for the resource and GETs a response