Sha256: 1cdc8cf7d3d3765eaae8983272ad44479a7c48f3bf84916b558369ef341996a4

Contents?: true

Size: 719 Bytes

Versions: 4

Compression:

Stored size: 719 Bytes

Contents

module Fog
  module Network
    class HuaweiCloud
      class Real
        def get_lbaas_healthmonitor(healthmonitor_id)
          request(
            :expects => [200],
            :method  => 'GET',
            :path    => "lbaas/healthmonitors/#{healthmonitor_id}"
          )
        end
      end

      class Mock
        def get_lbaas_healthmonitor(healthmonitor_id)
          response = Excon::Response.new
          if data = self.data[:lbaas_healthmonitors][healthmonitor_id]
            response.status = 200
            response.body = {'healthmonitor' => data}
            response
          else
            raise Fog::Network::HuaweiCloud::NotFound
          end
        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/get_lbaas_healthmonitor.rb
fog-huaweicloud-0.0.2 lib/fog/network/huaweicloud/requests/get_lbaas_healthmonitor.rb
fog-huaweicloud-0.1.3 lib/fog/network/huaweicloud/requests/get_lbaas_healthmonitor.rb
fog-huaweicloud-0.1.2 lib/fog/network/huaweicloud/requests/get_lbaas_healthmonitor.rb