1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog/terremark/requests/get_vapp_template.rb
2010-02-15 12:44:27 -08:00

47 lines
1 KiB
Ruby

unless Fog.mocking?
module Fog
class Terremark
# Get details of a vapp template
#
# ==== Parameters
# * vapp_template_id<~Integer> - Id of vapp template to lookup
#
# ==== Returns
# * response<~Excon::Response>:
# * body<~Hash>:
# FIXME
# * 'CatalogItems'<~Array>
# * 'href'<~String> - linke to item
# * 'name'<~String> - name of item
# * 'type'<~String> - type of item
# * 'description'<~String> - Description of catalog
# * 'name'<~String> - Name of catalog
def get_vapp_template(vapp_template_id)
request(
:expects => 200,
:method => 'GET',
:parser => Fog::Parsers::Terremark::GetVappTemplate.new,
:path => "vAppTemplate/#{vapp_template_id}"
)
end
end
end
else
module Fog
class Terremark
def get_vapp_template(vapp_template_id)
raise MockNotImplemented.new("Contributions welcome!")
end
end
end
end