Sha256: 48aa0692fda72801ae18766e33ec5f1c0f5d7f55f02847ec32419dc164ded919

Contents?: true

Size: 370 Bytes

Versions: 4

Compression:

Stored size: 370 Bytes

Contents

module Fog
  module Compute
    class HuaweiCloud
      class Real
        def server_action(server_id, body, expects = [200, 202])
          request(
            :body    => Fog::JSON.encode(body),
            :expects => expects,
            :method  => 'POST',
            :path    => "servers/#{server_id}/action"
          )
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fog-huaweicloud-0.0.3 lib/fog/compute/huaweicloud/requests/server_action.rb
fog-huaweicloud-0.0.2 lib/fog/compute/huaweicloud/requests/server_action.rb
fog-huaweicloud-0.1.3 lib/fog/compute/huaweicloud/requests/server_action.rb
fog-huaweicloud-0.1.2 lib/fog/compute/huaweicloud/requests/server_action.rb