Sha256: 3aaffd0d0db251dc93a91bc00172c802e0ec45bfc06aca6ec5ebe57485f8ea04
Contents?: true
Size: 645 Bytes
Versions: 2
Compression:
Stored size: 645 Bytes
Contents
module Fog module Network class HuaweiCloud class Real def list_subnets(filters = {}, openstack_compatible = true) overwrite_version = openstack_compatible ? {} : {'v2.0' => 'v1'} request( {:expects => 200, :method => 'GET', :path => 'subnets', :query => filters}, true, overwrite_version ) end end class Mock def list_subnets(_filters = {}, openstack_compatible = true) Excon::Response.new( :body => {'subnets' => data[:subnets].values}, :status => 200 ) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fog-huaweicloud-0.0.2 | lib/fog/network/huaweicloud/requests/list_subnets.rb |
fog-huaweicloud-0.1.3 | lib/fog/network/huaweicloud/requests/list_subnets.rb |