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

20 lines
467 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