Sha256: 4f888f7ca9d1e7f5171221d59882fb7d7f15c253e1c077b79bc80bcc0031ea6f

Contents?: true

Size: 999 Bytes

Versions: 16

Compression:

Stored size: 999 Bytes

Contents

#
# AFAICT this is basically undocumented ATM - 6/18/2010 - freeformz
#

module Fog
  class Vcloud
    module Terremark
      class Ecloud

        class Real
          basic_request :get_network_ip
        end

        class Mock

          def get_network_ip(network_ip_uri)
            if network_ip = mock_data.network_ip_from_href(network_ip_uri)
              builder = Builder::XmlMarkup.new
              xml = builder.IpAddress(ecloud_xmlns) do
                builder.Id network_ip.object_id
                builder.Href network_ip.href
                builder.Name network_ip.name

                builder.Status network_ip.status
                if network_ip.used_by
                  builder.Server network_ip.used_by
                end
              end

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

        end
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
fog-0.3.31 lib/fog/vcloud/terremark/ecloud/requests/get_network_ip.rb
fog-0.3.30 lib/fog/vcloud/terremark/ecloud/requests/get_network_ip.rb
fog-0.3.29 lib/fog/vcloud/terremark/ecloud/requests/get_network_ip.rb
fog-0.3.28 lib/fog/vcloud/terremark/ecloud/requests/get_network_ip.rb
fog-0.3.27 lib/fog/vcloud/terremark/ecloud/requests/get_network_ip.rb
fog-0.3.26 lib/fog/vcloud/terremark/ecloud/requests/get_network_ip.rb
fog-0.3.25 lib/fog/vcloud/terremark/ecloud/requests/get_network_ip.rb
fog-0.3.24 lib/fog/vcloud/terremark/ecloud/requests/get_network_ip.rb
bbcloud-0.8.1 lib/bbcloud/vendor/fog-0.3.23/lib/fog/vcloud/terremark/ecloud/requests/get_network_ip.rb
fog-0.3.23 lib/fog/vcloud/terremark/ecloud/requests/get_network_ip.rb
fog-0.3.22 lib/fog/vcloud/terremark/ecloud/requests/get_network_ip.rb
fog-0.3.21 lib/fog/vcloud/terremark/ecloud/requests/get_network_ip.rb
fog-0.3.20 lib/fog/vcloud/terremark/ecloud/requests/get_network_ip.rb
fog-0.3.19 lib/fog/vcloud/terremark/ecloud/requests/get_network_ip.rb
fog-0.3.18 lib/fog/vcloud/terremark/ecloud/requests/get_network_ip.rb
fog-0.3.17 lib/fog/vcloud/terremark/ecloud/requests/get_network_ip.rb