Sha256: a7b1290d6a01e507b3acaa21909730ad1533870d4b30b9ef79f2eaed88d15ed9

Contents?: true

Size: 520 Bytes

Versions: 3

Compression:

Stored size: 520 Bytes

Contents

module Fog
  module Compute
    class Gridscale
      class Real

        def cas_update(cas_uuid, payload)
          encoded_body = Fog::JSON.encode(payload)

          request(
              :expects => [202],
              :headers => {
                  'Content-Type' => "application/json; charset=UTF-8",
              },
              :method  => 'PATCH',
              :path    => "/objects/cas/tasks/#{cas_uuid}",
              :body    => encoded_body,
              )
        end

      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fog-gridscale-0.1.4 lib/fog/compute/gridscale/requests/cas_update.rb
fog-gridscale-0.1.3 lib/fog/compute/gridscale/requests/cas_update.rb
fog-gridscale-0.1.2 lib/fog/compute/gridscale/requests/cas_update.rb