def call(self, op_name, query=None, **kwargs):
LOG.debug(kwargs)<EOL>kwargs = {k: v for k, v in kwargs.items() if v}<EOL>if query:<EOL><INDENT>query = jmespath.compile(query)<EOL><DEDENT>if self.client.can_paginate(op_name):<EOL><INDENT>paginator = self.client.get_paginator(op_name)<EOL>results = paginator.paginate(**kwargs)<EOL>data = results.build_full_result()<EOL><DEDENT>else:<EOL><INDENT>op = getattr(self.client, op_name)<EOL>data = op(**kwargs)<EOL><DEDENT>if query:<EOL><INDENT>data = query.search(data)<EOL><DEDENT>return data<EOL>
Make a request to a method in this client.  The response data is
returned from this call as native Python data structures.

This method differs from just calling the client method directly
in the following ways:

  * It automatically handles the pagination rather than
    relying on a separate pagination method call.
  * You can pass an optional jmespath query and this query
    will be applied to the data returned from the low-level
    call.  This allows you to tailor the returned data to be
    exactly what you want.
  * It automatically gets rid of uneeded parameters (with None values)

:type op_name: str
:param op_name: The name of the request you wish to make.

:type query: str
:param query: A jmespath query that will be applied to the
    data returned by the operation prior to returning
    it to the user.

:type kwargs: keyword arguments
:param kwargs: Additional keyword arguments you want to pass
    to the method when making the request.