Sha256: 8e96ddbec3dadc6eac8ed8124ef26553d38ee13168737bc8539eebe5dbed817e

Contents?: true

Size: 534 Bytes

Versions: 4

Compression:

Stored size: 534 Bytes

Contents

module Fog
  module Introspection
    class HuaweiCloud
      class Real
        def abort_introspection(node_id)
          request(
            :body    => "",
            :expects => 202,
            :method  => "POST",
            :path    => "introspection/#{node_id}/abort"
          )
        end
      end

      class Mock
        def abort_introspection(_node_id)
          response = Excon::Response.new
          response.status = 202
          response.body = ""
          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/abort_introspection.rb
fog-huaweicloud-0.0.2 lib/fog/introspection/huaweicloud/requests/abort_introspection.rb
fog-huaweicloud-0.1.3 lib/fog/introspection/huaweicloud/requests/abort_introspection.rb
fog-huaweicloud-0.1.2 lib/fog/introspection/huaweicloud/requests/abort_introspection.rb