Sha256: bae9a113c4d1840e62b0ba38a727fc084e86b150045d23a8d3bb3fb011b0a133

Contents?: true

Size: 871 Bytes

Versions: 32

Compression:

Stored size: 871 Bytes

Contents

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

module Fog
  module Compute
    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

Version data entries

32 entries across 32 versions & 8 rubygems

Version Path
brightbox-cli-0.18.1 lib/brightbox-cli/vendor/fog/lib/fog/ecloud/requests/compute/get_network_ips.rb
michiels-fog-1.3.1 lib/fog/ecloud/requests/compute/get_network_ips.rb
ftl-0.2.0 vendor/bundle/gems/fog-1.3.1/lib/fog/ecloud/requests/compute/get_network_ips.rb
brightbox-cli-0.18.0 lib/brightbox-cli/vendor/fog/lib/fog/ecloud/requests/compute/get_network_ips.rb
fog-1.3.1 lib/fog/ecloud/requests/compute/get_network_ips.rb
fog-1.3.0 lib/fog/ecloud/requests/compute/get_network_ips.rb
brightbox-cli-0.17.5 lib/brightbox-cli/vendor/fog/lib/fog/ecloud/requests/compute/get_network_ips.rb
fog-1.2.0 lib/fog/ecloud/requests/compute/get_network_ips.rb
ktheory-fog-1.1.2 lib/fog/ecloud/requests/compute/get_network_ips.rb
brightbox-cli-0.17.4 lib/brightbox-cli/vendor/fog/lib/fog/ecloud/requests/compute/get_network_ips.rb
brightbox-cli-0.17.3 lib/brightbox-cli/vendor/fog/lib/fog/ecloud/requests/compute/get_network_ips.rb
brightbox-cli-0.17.2 lib/brightbox-cli/vendor/fog/lib/fog/ecloud/requests/compute/get_network_ips.rb
brightbox-cli-0.17.1 lib/brightbox-cli/vendor/fog/lib/fog/ecloud/requests/compute/get_network_ips.rb
brightbox-cli-0.17.0 lib/brightbox-cli/vendor/fog/lib/fog/ecloud/requests/compute/get_network_ips.rb
fog-1.1.2 lib/fog/ecloud/requests/compute/get_network_ips.rb
fog_tractical-1.1.4 lib/fog/ecloud/requests/compute/get_network_ips.rb
fog_tractical-1.1.3 lib/fog/ecloud/requests/compute/get_network_ips.rb
brightbox-cli-0.16.0 lib/brightbox-cli/vendor/fog/lib/fog/ecloud/requests/compute/get_network_ips.rb
fog-1.1.1 lib/fog/ecloud/requests/compute/get_network_ips.rb
fog-1.1.0 lib/fog/ecloud/requests/compute/get_network_ips.rb