Sha256: 72ca568bbaa9727d83281f60bd50ce72c681b27ee83b51e1d1d6fc9acd9cca8f

Contents?: true

Size: 538 Bytes

Versions: 4

Compression:

Stored size: 538 Bytes

Contents

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

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