Sha256: c543f780409e3912148e6af4abc05827365dc280ab8faf88fae571532d0bc07d

Contents?: true

Size: 330 Bytes

Versions: 4

Compression:

Stored size: 330 Bytes

Contents

module Fog
  module Volume
    class HuaweiCloud
      module Real
        def action(id, data)
          request(
            :body    => Fog::JSON.encode(data),
            :expects => [200, 202],
            :method  => 'POST',
            :path    => "volumes/#{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/volume/huaweicloud/requests/action.rb
fog-huaweicloud-0.0.2 lib/fog/volume/huaweicloud/requests/action.rb
fog-huaweicloud-0.1.3 lib/fog/volume/huaweicloud/requests/action.rb
fog-huaweicloud-0.1.2 lib/fog/volume/huaweicloud/requests/action.rb