Sha256: 2148024f2653ae3ea0cde7721457af7341456f2a4903d971d17a983416beabb6

Contents?: true

Size: 1.17 KB

Versions: 27

Compression:

Stored size: 1.17 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     => "vdc/#{vdc_id}/internetServices"
          )
        end

      end

      module Mock

        def get_internet_services(vdc_id)
          raise MockNotImplemented.new("Contributions welcome!")
        end

      end
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
fog-0.0.84 lib/fog/terremark/requests/shared/get_internet_services.rb
fog-0.0.83 lib/fog/terremark/requests/shared/get_internet_services.rb
fog-0.0.82 lib/fog/terremark/requests/shared/get_internet_services.rb
fog-0.0.81 lib/fog/terremark/requests/shared/get_internet_services.rb
fog-0.0.80 lib/fog/terremark/requests/shared/get_internet_services.rb
fog-0.0.79 lib/fog/terremark/requests/shared/get_internet_services.rb
fog-0.0.78 lib/fog/terremark/requests/shared/get_internet_services.rb