Sha256: f06ddb51c3a9854f2e6cd140c0bcb357a0d9a8cf8da08f5e0498cdf2e55d5171

Contents?: true

Size: 1.02 KB

Versions: 43

Compression:

Stored size: 1.02 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
    end
  end
end

Version data entries

43 entries across 43 versions & 8 rubygems

Version Path
fog-1.5.0 lib/fog/terremark/requests/shared/get_internet_services.rb
fog-1.4.0 lib/fog/terremark/requests/shared/get_internet_services.rb
brightbox-cli-0.18.1 lib/brightbox-cli/vendor/fog/lib/fog/terremark/requests/shared/get_internet_services.rb
michiels-fog-1.3.1 lib/fog/terremark/requests/shared/get_internet_services.rb
ftl-0.2.0 vendor/bundle/gems/fog-1.3.1/lib/fog/terremark/requests/shared/get_internet_services.rb
brightbox-cli-0.18.0 lib/brightbox-cli/vendor/fog/lib/fog/terremark/requests/shared/get_internet_services.rb
fog-1.3.1 lib/fog/terremark/requests/shared/get_internet_services.rb
fog-1.3.0 lib/fog/terremark/requests/shared/get_internet_services.rb
brightbox-cli-0.17.5 lib/brightbox-cli/vendor/fog/lib/fog/terremark/requests/shared/get_internet_services.rb
fog-1.2.0 lib/fog/terremark/requests/shared/get_internet_services.rb
ktheory-fog-1.1.2 lib/fog/terremark/requests/shared/get_internet_services.rb
brightbox-cli-0.17.4 lib/brightbox-cli/vendor/fog/lib/fog/terremark/requests/shared/get_internet_services.rb
brightbox-cli-0.17.3 lib/brightbox-cli/vendor/fog/lib/fog/terremark/requests/shared/get_internet_services.rb
brightbox-cli-0.17.2 lib/brightbox-cli/vendor/fog/lib/fog/terremark/requests/shared/get_internet_services.rb
brightbox-cli-0.17.1 lib/brightbox-cli/vendor/fog/lib/fog/terremark/requests/shared/get_internet_services.rb
brightbox-cli-0.17.0 lib/brightbox-cli/vendor/fog/lib/fog/terremark/requests/shared/get_internet_services.rb
fog-1.1.2 lib/fog/terremark/requests/shared/get_internet_services.rb
fog_tractical-1.1.4 lib/fog/terremark/requests/shared/get_internet_services.rb
fog_tractical-1.1.3 lib/fog/terremark/requests/shared/get_internet_services.rb
brightbox-cli-0.16.0 lib/brightbox-cli/vendor/fog/lib/fog/terremark/requests/shared/get_internet_services.rb