Sha256: 8918997a465926a93e8e7e47fad46902ed9e76066dd54d0d6a08f347a43f439e

Contents?: true

Size: 625 Bytes

Versions: 12

Compression:

Stored size: 625 Bytes

Contents

module Fog
  module Volume
    class OpenStack
      module Real
        private
        def _create_volume(data, options={})
          vanilla_options = [:snapshot_id, :imageRef, :volume_type,
                             :source_volid, :availability_zone, :metadata]
          vanilla_options.select { |o| options[o] }.each do |key|
            data['volume'][key] = options[key]
          end
          request(
              :body    => Fog::JSON.encode(data),
              :expects => [200, 202],
              :method  => 'POST',
              :path    => "volumes"
          )
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
fog-openstack-0.1.10 lib/fog/openstack/requests/volume/create_volume.rb
fog-openstack-0.1.9 lib/fog/openstack/requests/volume/create_volume.rb
fog-openstack-0.1.8 lib/fog/openstack/requests/volume/create_volume.rb
fog-openstack-0.1.7 lib/fog/openstack/requests/volume/create_volume.rb
fog-openstack-0.1.6 lib/fog/openstack/requests/volume/create_volume.rb
fog-openstack-0.1.5 lib/fog/openstack/requests/volume/create_volume.rb
fog-openstack-0.1.4 lib/fog/openstack/requests/volume/create_volume.rb
fog-openstack-0.1.3 lib/fog/openstack/requests/volume/create_volume.rb
fog-openstack-0.1.2 lib/fog/openstack/requests/volume/create_volume.rb
fog-openstack-0.1.1 lib/fog/openstack/requests/volume/create_volume.rb
fog-openstack-0.1.0 lib/fog/openstack/requests/volume/create_volume.rb
fog-1.37.0 lib/fog/openstack/requests/volume/create_volume.rb