Sha256: 909d64148bf0e61bdf5dfed85a02e0d4fda66cc18ae733aac399af95d84ba9be

Contents?: true

Size: 941 Bytes

Versions: 26

Compression:

Stored size: 941 Bytes

Contents

module Fog
  module Terremark
    module Shared
      module Real

        # Get details for a Network
        #
        # ==== Parameters
        # * network_id<~Integer> - Id of the network to look up
        #
        # ==== Returns
        # * response<~Excon::Response>:
        #   * body<~Hash>:
        #   FIXME
        def get_network_ips(network_id)
          opts =  {
            :expects  => 200,
            :method   => 'GET',
            :parser   => Fog::Parsers::Terremark::Shared::GetNetworkIps.new,
            :path     => "network/#{network_id}/ipAddresses"
          }
          if self.is_a?(Fog::Terremark::Ecloud::Real)
            opts[:path] = "/extensions/network/#{network_id}/ips"
          end
          request(opts)
        end

      end

      module Mock

        def get_network_ips(network_id)
          raise MockNotImplemented.new("Contributions welcome!")
        end

      end
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
fog-0.1.3 lib/fog/terremark/requests/shared/get_network_ips.rb
fog-0.1.2 lib/fog/terremark/requests/shared/get_network_ips.rb
fog-0.1.1 lib/fog/terremark/requests/shared/get_network_ips.rb
fog-0.1.0 lib/fog/terremark/requests/shared/get_network_ips.rb
fog-0.0.100 lib/fog/terremark/requests/shared/get_network_ips.rb
fog-0.0.99 lib/fog/terremark/requests/shared/get_network_ips.rb
fog-0.0.98 lib/fog/terremark/requests/shared/get_network_ips.rb
fog-0.0.97 lib/fog/terremark/requests/shared/get_network_ips.rb
fog-0.0.96 lib/fog/terremark/requests/shared/get_network_ips.rb
fog-0.0.95 lib/fog/terremark/requests/shared/get_network_ips.rb
fog-0.0.94 lib/fog/terremark/requests/shared/get_network_ips.rb
fog-0.0.93 lib/fog/terremark/requests/shared/get_network_ips.rb
fog-0.0.92 lib/fog/terremark/requests/shared/get_network_ips.rb
fog-0.0.91 lib/fog/terremark/requests/shared/get_network_ips.rb
fog-0.0.90 lib/fog/terremark/requests/shared/get_network_ips.rb
fog-0.0.89 lib/fog/terremark/requests/shared/get_network_ips.rb
fog-0.0.88 lib/fog/terremark/requests/shared/get_network_ips.rb
fog-0.0.87 lib/fog/terremark/requests/shared/get_network_ips.rb
fog-0.0.86 lib/fog/terremark/requests/shared/get_network_ips.rb
fog-0.0.85 lib/fog/terremark/requests/shared/get_network_ips.rb