Sha256: 8669940d53bd3e230f34c8e6638f06423a47ba2f39630de342f7b9907cc87dba
Contents?: true
Size: 713 Bytes
Versions: 20
Compression:
Stored size: 713 Bytes
Contents
module Fog module OpenStack class Network class Real def get_network_ip_availability(network_id) request( :expects => [200], :method => 'GET', :path => "network-ip-availabilities/#{network_id}" ) end end class Mock def get_network_ip_availability(network_id) response = Excon::Response.new if data = self.data[:network_ip_availabilities].first response.status = 200 response.body = {'network_ip_availability' => data} response else raise Fog::OpenStack::Network::NotFound end end end end end end
Version data entries
20 entries across 20 versions & 3 rubygems