Sha256: ca74028992a14e768141ee437d1edb956340c7f6eafc6c855f5647907242ff11

Contents?: true

Size: 671 Bytes

Versions: 7

Compression:

Stored size: 671 Bytes

Contents

module Fog
  module Compute
    class OpenStack
      class Real

        def create_volume_snapshot(volume_id, name, description, force=false)
          data = {
            'snapshot' => {
              'volume_id'           => volume_id,
              'display_name'        => name,
              'display_description' => description,
              'force'               => force
            }
          }

          request(
            :body     => MultiJson.encode(data),
            :expects  => [200, 202],
            :method   => 'POST',
            :path     => "os-snapshots"
          )
        end

      end

      class Mock

      end

    end
  end
end

Version data entries

7 entries across 7 versions & 4 rubygems

Version Path
fog-parser-fix-1.6.1 lib/fog/openstack/requests/compute/create_volume_snapshot.rb
fog-test-again-1.6.0 lib/fog/openstack/requests/compute/create_volume_snapshot.rb
fog-parser-fix-1.6.0 lib/fog/openstack/requests/compute/create_volume_snapshot.rb
fog-1.6.0 lib/fog/openstack/requests/compute/create_volume_snapshot.rb
fog-1.5.0 lib/fog/openstack/requests/compute/create_volume_snapshot.rb
rackspace-fog-1.4.2 lib/rackspace-fog/openstack/requests/compute/create_volume_snapshot.rb
fog-1.4.0 lib/fog/openstack/requests/compute/create_volume_snapshot.rb