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

21 lines
447 B
Ruby
Raw Normal View History

2013-07-03 07:10:31 -04:00
module Fog
module Compute
2013-08-27 05:19:54 -04:00
class VcloudDirector
2013-07-03 07:10:31 -04:00
class Real
2013-09-16 13:13:09 -04:00
2013-08-26 10:57:58 -04:00
def delete_metadata(vm_id, metadata_key)
2013-08-27 05:19:54 -04:00
require 'fog/vcloud_director/parsers/compute/metadata'
2013-09-16 13:13:09 -04:00
2013-07-03 07:10:31 -04:00
request(
2013-09-16 13:13:09 -04:00
:expects => 202,
:method => 'DELETE',
:parser => Fog::ToHashDocument.new,
:path => "vApp/#{vm_id}/metadata/#{URI.escape(metadata_key)}"
2013-07-03 07:10:31 -04:00
)
end
end
end
end
end