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/shared/get_internet_services.rb
Paul Thornthwaite 2e0b7e545a Standardise empty lines throughout codebase
Done with `rubocop --auto-correct --only EmptyLineBetweenDefs,EmptyLines,EmptyLinesAroundBody`
2014-05-26 14:20:02 +01:00

34 lines
1.1 KiB
Ruby

module Fog
module Terremark
module Shared
module Real
require 'fog/terremark/parsers/shared/get_internet_services'
# Get a list of all internet services for a vdc
#
# ==== Parameters
# * vdc_id<~Integer> - Id of vDc to get list of internet services for
#
# ==== Returns
# * response<~Excon::Response>:
# * body<~Hash>:
# * 'InternetServices'<~Array>
# * 'id'<~String> => id of the internet service
# * 'name'<~String> => name of service
# * 'PublicIPAddress'<~Hash>
# * 'Id'<~String> => id of the public IP
# * 'name'<~String> => actual ip address
#
def get_internet_services(vdc_id)
request(
:expects => 200,
:method => 'GET',
:parser => Fog::Parsers::Terremark::Shared::GetInternetServices.new,
:path => "api/extensions/v1.6/vdc/#{vdc_id}/internetServices",
:override_path => true
)
end
end
end
end
end