[WIP] Added query for flavor details.
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user