'Configure a plugin.
Args:
name (string): The name of the plugin. The ``:latest`` tag is
optional, and is the default if omitted.
options (dict): A key-value mapping of options
Returns:
``True`` if successful'

@utils.minimum_version('1.25')
@utils.check_resource('name')
def configure_plugin(self, name, options):

    url = self._url('/plugins/{0}/set', name)
    data = options
    if isinstance(data, dict):
        data = ['{0}={1}'.format(k, v) for (k, v) in six.iteritems(data)]
    res = self._post_json(url, data=data)
    self._raise_for_status(res)
    return True
