Sha256: d200fa4db808bdead899e962944a36684596c8e2ddfd4b9c55137bd91fde6613

Contents?: true

Size: 534 Bytes

Versions: 4

Compression:

Stored size: 534 Bytes

Contents

module Fog
  module Introspection
    class HuaweiCloud
      class Real
        def get_introspection(node_id)
          request(
            :expects => 200,
            :method  => "GET",
            :path    => "introspection/#{node_id}"
          )
        end
      end

      class Mock
        def get_introspection(_node_id)
          response = Excon::Response.new
          response.status = 200
          response.body = {"error" => "null", "finished" => "true"}
          response
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fog-huaweicloud-0.0.3 lib/fog/introspection/huaweicloud/requests/get_introspection.rb
fog-huaweicloud-0.0.2 lib/fog/introspection/huaweicloud/requests/get_introspection.rb
fog-huaweicloud-0.1.3 lib/fog/introspection/huaweicloud/requests/get_introspection.rb
fog-huaweicloud-0.1.2 lib/fog/introspection/huaweicloud/requests/get_introspection.rb