Sha256: ce36576e9739370ec4e6fad9c6119457bf41d48df1e12c3a36f67d096d78bdb4
Contents?: true
Size: 728 Bytes
Versions: 4
Compression:
Stored size: 728 Bytes
Contents
module Fog module Network class HuaweiCloud class Real def delete_vpn_service(vpn_service_id) request( :expects => 204, :method => 'DELETE', :path => "vpn/vpnservices/#{vpn_service_id}" ) end end class Mock def delete_vpn_service(vpn_service_id) response = Excon::Response.new if list_vpn_services.body['vpnservices'].collect { |r| r['id'] }.include? vpn_service_id data[:vpn_services].delete(vpn_service_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