Sha256: ce097edd671d62749bf36dfa66e23109bc25ac6a5d5dfb289a494fdc798af40a

Contents?: true

Size: 1.08 KB

Versions: 76

Compression:

Stored size: 1.08 KB

Contents

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

Version data entries

76 entries across 76 versions & 11 rubygems

Version Path
fog-1.22.0 lib/fog/terremark/requests/shared/get_internet_services.rb
fog-1.21.0 lib/fog/terremark/requests/shared/get_internet_services.rb
fog-maestrodev-1.20.0.20140305101839 lib/fog/terremark/requests/shared/get_internet_services.rb
fog-maestrodev-1.20.0.20140305101305 lib/fog/terremark/requests/shared/get_internet_services.rb
fog-maestrodev-1.19.0.20140212012611 lib/fog/terremark/requests/shared/get_internet_services.rb
fog-1.20.0 lib/fog/terremark/requests/shared/get_internet_services.rb
fog-maestrodev-1.19.0.20140110004459 lib/fog/terremark/requests/shared/get_internet_services.rb
fog-maestrodev-1.19.0.20140110003812 lib/fog/terremark/requests/shared/get_internet_services.rb
fog-maestrodev-1.19.0.20140109202555 lib/fog/terremark/requests/shared/get_internet_services.rb
fog-maestrodev-1.19.0.20140107192102 lib/fog/terremark/requests/shared/get_internet_services.rb
fog-maestrodev-1.19.0.20140107142106 lib/fog/terremark/requests/shared/get_internet_services.rb
fog-maestrodev-1.19.0.20131219203941 lib/fog/terremark/requests/shared/get_internet_services.rb
fog-maestrodev-1.18.0.20131219193542 lib/fog/terremark/requests/shared/get_internet_services.rb
fog-1.19.0 lib/fog/terremark/requests/shared/get_internet_services.rb
fog-maestrodev-1.18.0.20131219033443 lib/fog/terremark/requests/shared/get_internet_services.rb
fog-maestrodev-1.18.0.20131219032002 lib/fog/terremark/requests/shared/get_internet_services.rb
fog-maestrodev-1.18.0.20131219030716 lib/fog/terremark/requests/shared/get_internet_services.rb
fog-maestrodev-1.18.0.20131219022322 lib/fog/terremark/requests/shared/get_internet_services.rb
fog-maestrodev-1.18.0.20131218202447 lib/fog/terremark/requests/shared/get_internet_services.rb
fog-maestrodev-1.18.0.20131209091424 lib/fog/terremark/requests/shared/get_internet_services.rb