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

Version Path
fog-openstack-1.1.3 lib/fog/openstack/volume/v2/requests/update_volume.rb
fog-openstack-1.1.2 lib/fog/openstack/volume/v2/requests/update_volume.rb
fog-openstack-fork-99 lib/fog/openstack/volume/v2/requests/update_volume.rb
fog-openstack-1.1.0 lib/fog/openstack/volume/v2/requests/update_volume.rb
fog-openstack-1.1.0.pre lib/fog/openstack/volume/v2/requests/update_volume.rb
fog-openstack-apibank-1.0.102 lib/fog/openstack/volume/v2/requests/update_volume.rb
fog-openstack-1.0.11 lib/fog/openstack/volume/v2/requests/update_volume.rb
fog-openstack-apibank-1.0.101 lib/fog/openstack/volume/v2/requests/update_volume.rb
fog-openstack-1.0.10 lib/fog/openstack/volume/v2/requests/update_volume.rb
fog-openstack-1.0.9 lib/fog/openstack/volume/v2/requests/update_volume.rb
fog-openstack-1.0.8 lib/fog/openstack/volume/v2/requests/update_volume.rb
fog-openstack-1.0.7 lib/fog/openstack/volume/v2/requests/update_volume.rb
fog-openstack-1.0.6 lib/fog/openstack/volume/v2/requests/update_volume.rb
fog-openstack-1.0.5 lib/fog/openstack/volume/v2/requests/update_volume.rb
fog-openstack-1.0.4 lib/fog/openstack/volume/v2/requests/update_volume.rb