Sha256: dc9e33306378cbcb025e37969b818487be512f40ff9a97555c57cb0eb0af3df1

Contents?: true

Size: 598 Bytes

Versions: 4

Compression:

Stored size: 598 Bytes

Contents

module Fog
  module Network
    class HuaweiCloud
      class Real
        def list_lbaas_l7rules(l7policy_id, filters = {})
          request(
              :expects => 200,
              :method  => 'GET',
              :path    => "lbaas/l7policies/#{l7policy_id}/rules",
              :query   => filters
          )
        end
      end

      class Mock
        def list_lbaas_l7rules(l7policy_id, filters = {})
          Excon::Response.new(
              :body   => {'rules' => data[:lbaas_l7rules].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_lbaas_l7rules.rb
fog-huaweicloud-0.0.2 lib/fog/network/huaweicloud/requests/list_lbaas_l7rules.rb
fog-huaweicloud-0.1.3 lib/fog/network/huaweicloud/requests/list_lbaas_l7rules.rb
fog-huaweicloud-0.1.2 lib/fog/network/huaweicloud/requests/list_lbaas_l7rules.rb