Sha256: 972fe02c96afbca95d3ea42b0e9a38f34894d81ed566122be3a20e73fd8c2580
Contents?: true
Size: 892 Bytes
Versions: 4
Compression:
Stored size: 892 Bytes
Contents
module Fog module Network class HuaweiCloud class Real def delete_ipsec_site_connection(ipsec_site_connection_id) request( :expects => 204, :method => 'DELETE', :path => "vpn/ipsec-site-connections/#{ipsec_site_connection_id}" ) end end class Mock def delete_ipsec_site_connection(ipsec_site_connection_id) response = Excon::Response.new ip_site_connections = list_ipsec_site_connections.body['ipsec_site_connections'] if ip_site_connections.collect { |r| r['id'] }.include? ipsec_site_connection_id data[:ipsec_site_connections].delete(ipsec_site_connection_id) response.status = 204 response else raise Fog::Network::HuaweiCloud::NotFound end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems