Sha256: 0ebf985f1b84810e3bb349a03c1fa67f53bfbbf4f2ebfe11cc960dbbd169ccab
Contents?: true
Size: 681 Bytes
Versions: 4
Compression:
Stored size: 681 Bytes
Contents
module Fog module Network class HuaweiCloud class Real def get_vpn_service(vpn_service_id) request( :expects => [200], :method => 'GET', :path => "vpn/vpnservices/#{vpn_service_id}" ) end end class Mock def get_vpn_service(vpn_service_id) response = Excon::Response.new if data = self.data[:vpn_services][vpn_service_id] response.status = 200 response.body = {'vpnservice' => data} response else raise Fog::Network::HuaweiCloud::NotFound end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems