Sha256: a8dc32ca5b5cc4bfb24fb456bb345b72cda5728c9e5b3df78e8a5f3d201965d4
Contents?: true
Size: 815 Bytes
Versions: 100
Compression:
Stored size: 815 Bytes
Contents
module Fog module Compute class RackspaceV2 class Real def create_network(label, cidr) data = { 'network' => { 'label' => label, 'cidr' => cidr } } request( :method => 'POST', :body => Fog::JSON.encode(data), :path => "os-networksv2", :expects => 200 ) end end class Mock def create_network(label, cidr) network_id = Fog::Rackspace::MockData.uuid self.data[:networks][network_id] = { 'id' => network_id, 'label' => label, 'cidr' => cidr } response(:body => { 'network' => self.data[:networks][network_id] }) end end end end end
Version data entries
100 entries across 98 versions & 11 rubygems