Sha256: c571f711d38a78f0ce0e6c48f5a2e27709cce24679c213511604481f9ad11997
Contents?: true
Size: 778 Bytes
Versions: 4
Compression:
Stored size: 778 Bytes
Contents
module Fog module Compute class Gridscale class Real def server_relation_storage_create(server_uuid, storage_uuid, options = {}) create_options = { :object_uuid => storage_uuid, } if options[:bootdevice] create_options[:bootdevice] = options[:bootdevice] end encoded_body = Fog::JSON.encode(create_options) request( :expects => [202], :headers => { 'Content-Type' => "application/json; charset=UTF-8", }, :method => 'POST', :path => "/objects/servers/#{server_uuid}/storages", :body => encoded_body, ) end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems