Sha256: cf4f04405cf4c04cf2f53524f1d40a2076ef795ca1e126662fc1a82148e0d77b
Contents?: true
Size: 549 Bytes
Versions: 15
Compression:
Stored size: 549 Bytes
Contents
require 'fog/openstack/volume/requests/update_volume' require 'fog/openstack/volume/v2/requests/real' module Fog module OpenStack class Volume module Real def update_volume(volume_id, data = {}) data = data.select { |key| key == :name || key == :description || key == :metadata } request( :body => Fog::JSON.encode('volume' => data), :expects => 200, :method => 'PUT', :path => "volumes/#{volume_id}" ) end end end end end
Version data entries
15 entries across 15 versions & 3 rubygems