Sha256: 139581ed27ebd56822ea6fef6ea7a59e580fdbcec0b531fb35b089a65e9ef3a1

Contents?: true

Size: 538 Bytes

Versions: 4

Compression:

Stored size: 538 Bytes

Contents

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

      class Mock
        def list_floating_ips(_filters = {})
          Excon::Response.new(
            :body   => {'floatingips' => data[:floating_ips].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_floating_ips.rb
fog-huaweicloud-0.0.2 lib/fog/network/huaweicloud/requests/list_floating_ips.rb
fog-huaweicloud-0.1.3 lib/fog/network/huaweicloud/requests/list_floating_ips.rb
fog-huaweicloud-0.1.2 lib/fog/network/huaweicloud/requests/list_floating_ips.rb