lib/fog/openstack/volume/v1/requests/update_volume.rb in fog-openstack-1.0.3 vs lib/fog/openstack/volume/v1/requests/update_volume.rb in fog-openstack-1.0.4
- old
+ new
@@ -1,2 +1,19 @@
require 'fog/openstack/volume/requests/update_volume'
require 'fog/openstack/volume/v1/requests/real'
+
+module Fog
+ module OpenStack
+ class Volume
+ module Real
+ def update_volume(volume_id, data = {})
+ request(
+ :body => Fog::JSON.encode('volume' => data),
+ :expects => 200,
+ :method => 'PUT',
+ :path => "volumes/#{volume_id}"
+ )
+ end
+ end
+ end
+ end
+end