# File lib/openstack/network/connection.rb, line 169 def list_qos_policies(options = {}) path = options.empty? ? "/qos/policies" : "/qos/policies?#{options.to_query}" response = @connection.req("GET", path) OpenStack::Exception.raise_exception(response) unless response.code.match(/^20.$/) qos_hash = JSON.parse(response.body)["policies"] qos_hash.inject([]){|res, current| res << OpenStack::Network::QoSPolicy.new(@connection, current); res} end