Sha256: 8bb0a9f437a2254cc5a7c36e9ceecdc9ccd488a76a668dc8c9f0c621b773f39d

Contents?: true

Size: 587 Bytes

Versions: 4

Compression:

Stored size: 587 Bytes

Contents

module Fog
  module Compute
    class Gridscale
      class Real

        def server_relation_isoimage_update(server_uuid, isoimage_uuid, payload)

          encoded_body = Fog::JSON.encode(payload)
          request(
              :expects => [202],
              :headers => {
                  'Content-Type' => "application/json; charset=UTF-8",
              },
              :method  => 'PATCH',
              :path    => "/objects/servers/#{server_uuid}/isoimages/#{isoimage_uuid}",
              :body    => encoded_body,
              )
        end

      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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