Sha256: 08ae177d3838ab49ea995b50c5677eb0fc54a1e6e69cfa950b2ccae3141dcd50

Contents?: true

Size: 520 Bytes

Versions: 4

Compression:

Stored size: 520 Bytes

Contents

module Fog
  module Network
    class HuaweiCloud
      class Real
        def list_networks(filters = {})
          request(
            :expects => 200,
            :method  => 'GET',
            :path    => 'networks',
            :query   => filters
          )
        end
      end

      class Mock
        def list_networks(_filters = {})
          Excon::Response.new(
            :body   => {'networks' => data[:networks].values},
            :status => 200
          )
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fog-huaweicloud-0.0.3 lib/fog/network/huaweicloud/requests/list_networks.rb
fog-huaweicloud-0.0.2 lib/fog/network/huaweicloud/requests/list_networks.rb
fog-huaweicloud-0.1.3 lib/fog/network/huaweicloud/requests/list_networks.rb
fog-huaweicloud-0.1.2 lib/fog/network/huaweicloud/requests/list_networks.rb