Sha256: a654755eb0541564265f3ec1634cb29c59b37ff4e088d9ab814c98524ddd5d48
Contents?: true
Size: 818 Bytes
Versions: 4
Compression:
Stored size: 818 Bytes
Contents
module Fog module Compute class OracleCloud class Real def delete_ip_network (name) name.sub! "/Compute-#{@identity_domain}/#{@username}/", '' request( :method => 'DELETE', :expects => 204, :path => "/network/v1/ipnetwork/Compute-#{@identity_domain}/#{@username}/#{name}", :headers => { 'Content-Type' => 'application/oracle-compute-v3+json' } ) end end class Mock def delete_ip_network(name) response = Excon::Response.new clean_name = name.sub "/Compute-#{@identity_domain}/#{@username}/", '' self.data[:ip_networks].delete(clean_name) response.status = 204 response end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems