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.1.3 lib/fog/terremark/requests/shared/get_internet_services.rb
fog-0.1.2 lib/fog/terremark/requests/shared/get_internet_services.rb
fog-0.1.1 lib/fog/terremark/requests/shared/get_internet_services.rb
fog-0.1.0 lib/fog/terremark/requests/shared/get_internet_services.rb
fog-0.0.100 lib/fog/terremark/requests/shared/get_internet_services.rb
fog-0.0.99 lib/fog/terremark/requests/shared/get_internet_services.rb
fog-0.0.98 lib/fog/terremark/requests/shared/get_internet_services.rb
fog-0.0.97 lib/fog/terremark/requests/shared/get_internet_services.rb
fog-0.0.96 lib/fog/terremark/requests/shared/get_internet_services.rb
fog-0.0.95 lib/fog/terremark/requests/shared/get_internet_services.rb
fog-0.0.94 lib/fog/terremark/requests/shared/get_internet_services.rb
fog-0.0.93 lib/fog/terremark/requests/shared/get_internet_services.rb
fog-0.0.92 lib/fog/terremark/requests/shared/get_internet_services.rb
fog-0.0.91 lib/fog/terremark/requests/shared/get_internet_services.rb
fog-0.0.90 lib/fog/terremark/requests/shared/get_internet_services.rb
fog-0.0.89 lib/fog/terremark/requests/shared/get_internet_services.rb
fog-0.0.88 lib/fog/terremark/requests/shared/get_internet_services.rb
fog-0.0.87 lib/fog/terremark/requests/shared/get_internet_services.rb
fog-0.0.86 lib/fog/terremark/requests/shared/get_internet_services.rb
fog-0.0.85 lib/fog/terremark/requests/shared/get_internet_services.rb