[WIP] Added query for flavor details.

This commit is contained in:
Alfonso Juan Dillera
2013-09-24 11:52:12 +08:00
parent e49d015645
commit bbe057a22e
9 changed files with 605 additions and 1 deletions

View File

@@ -0,0 +1,29 @@
module Aviator
define_request :get_flavor_details, inherit: [:openstack, :common, :v2, :public, :base] do
meta :service, :compute
link 'documentation',
'http://docs.openstack.org/api/openstack-compute/2/content/Get_Flavor_Details-d1e4317.html'
param :id, required: true
def headers
super
end
def http_method
:get
end
def url
"#{ base_url_for :public }/flavors/#{ params[:id] }"
end
end
end