1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog/vcloud_director/requests/compute/delete_metadata.rb
2013-09-16 18:13:09 +01:00

20 lines
447 B
Ruby

module Fog
module Compute
class VcloudDirector
class Real
def delete_metadata(vm_id, metadata_key)
require 'fog/vcloud_director/parsers/compute/metadata'
request(
:expects => 202,
:method => 'DELETE',
:parser => Fog::ToHashDocument.new,
:path => "vApp/#{vm_id}/metadata/#{URI.escape(metadata_key)}"
)
end
end
end
end
end