# File lib/openstack/network/qos_policy.rb, line 17 def populate(qos_hash=nil) if @id and not qos_hash response = @connection.req("GET", "/qos/policies/#{@id}") OpenStack::Exception.raise_exception(response) unless response.code.match(/^20.$/) qos_hash = JSON.parse(response.body)["policy"] end @id = qos_hash["id"] @tenant_id = qos_hash["tenant_id"] @name = qos_hash["name"] @description = qos_hash["description"] @shared = qos_hash["shared"] end