Sha256: 2e2823c88b728ea37ce4a0adcc1d8422e1446cf52feadb1b72f66fbd9d7f1349

Contents?: true

Size: 583 Bytes

Versions: 4

Compression:

Stored size: 583 Bytes

Contents

module Fog
  module Compute
    class Gridscale
      class Real

        def server_relation_storage_update(server_uuid, storage_uuid, options)

          encoded_body = Fog::JSON.encode(options)
          request(
              :expects => [202],
              :headers => {
                  'Content-Type' => "application/json; charset=UTF-8",
              },
              :method  => 'PATCH',
              :path    => "/objects/servers/#{server_uuid}/storages/#{storage_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_storage_update.rb
fog-gridscale-0.1.4 lib/fog/compute/gridscale/requests/server_relation_storage_update.rb
fog-gridscale-0.1.3 lib/fog/compute/gridscale/requests/server_relation_storage_update.rb
fog-gridscale-0.1.2 lib/fog/compute/gridscale/requests/server_relation_storage_update.rb