Sha256: 54f897b4fdd39f9e916b84c53470ab4006fccf28c73af63574d713072849f088
Contents?: true
Size: 692 Bytes
Versions: 4
Compression:
Stored size: 692 Bytes
Contents
module Fog module Network class HuaweiCloud class Real def get_subnet_pool(subnet_pool_id) request( :expects => [200], :method => 'GET', :path => "subnetpools/#{subnet_pool_id}" ) end end class Mock def get_subnet_pool(subnet_pool_id) data = self.data[:subnet_pools][subnet_pool_id] if data response = Excon::Response.new response.status = 200 response.body = {'subnetpool' => data} response else raise Fog::Network::HuaweiCloud::NotFound end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems