Sha256: ef763fdab6bb700b51f26fb5e727ad67005628f25dc60920ed5c27973195b6bb

Contents?: true

Size: 940 Bytes

Versions: 13

Compression:

Stored size: 940 Bytes

Contents

#
# AFAICT - This is basically undocumented - 6/18/2010 - freeformz
#

module Fog
  class Vcloud
    module Terremark
      class Ecloud

        class Real
          basic_request :get_network_ips
        end

        class Mock

          def get_network_ips(network_ips_uri)
            network_ips_uri = ensure_unparsed(network_ips_uri)

            if network_ip_collection = mock_data.network_ip_collection_from_href(network_ips_uri)
              builder = Builder::XmlMarkup.new
              xml = builder.IpAddresses do
                network_ip_collection.ordered_ips.each do |network_ip|
                  network_ip_response(builder, network_ip)
                end
              end

              mock_it 200, xml, { 'Content-Type' => 'application/vnd.tmrk.ecloud.ipAddressesList+xml' }
            else
              mock_error 200, "401 Unauthorized"
            end
          end

        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
fog-0.5.3 lib/fog/vcloud/terremark/ecloud/requests/get_network_ips.rb
fog-0.5.2 lib/fog/vcloud/terremark/ecloud/requests/get_network_ips.rb
fog-0.5.1 lib/fog/vcloud/terremark/ecloud/requests/get_network_ips.rb
fog-0.5.0 lib/fog/vcloud/terremark/ecloud/requests/get_network_ips.rb
phpfog-fog-0.4.1.3 lib/fog/vcloud/terremark/ecloud/requests/get_network_ips.rb
phpfog-fog-0.4.1.2 lib/fog/vcloud/terremark/ecloud/requests/get_network_ips.rb
phpfog-fog-0.4.1.1 lib/fog/vcloud/terremark/ecloud/requests/get_network_ips.rb
phpfog-fog-0.4.1 lib/fog/vcloud/terremark/ecloud/requests/get_network_ips.rb
fog-0.4.1 lib/fog/vcloud/terremark/ecloud/requests/get_network_ips.rb
fog-0.4.0 lib/fog/vcloud/terremark/ecloud/requests/get_network_ips.rb
fog-0.3.34 lib/fog/vcloud/terremark/ecloud/requests/get_network_ips.rb
fog-0.3.33 lib/fog/vcloud/terremark/ecloud/requests/get_network_ips.rb
fog-0.3.32 lib/fog/vcloud/terremark/ecloud/requests/get_network_ips.rb