Sha256: 13c73a1cc73210fb3bdc6de572d1ecfdb7aaff13fcc5d5e97b62e9dd2789b5fe

Contents?: true

Size: 468 Bytes

Versions: 7

Compression:

Stored size: 468 Bytes

Contents

module Fog
  module Volume
    class OpenStack
      module Real
        def delete_snapshot(snapshot_id)
          request(
            :expects  => 202,
            :method   => 'DELETE',
            :path     => "snapshots/#{snapshot_id}"
          )
        end
      end

      module Mock
        def delete_snapshot(snapshot_id)
          response = Excon::Response.new
          response.status = 204
          response
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
fog-openstack-0.1.5 lib/fog/openstack/requests/volume/delete_snapshot.rb
fog-openstack-0.1.4 lib/fog/openstack/requests/volume/delete_snapshot.rb
fog-openstack-0.1.3 lib/fog/openstack/requests/volume/delete_snapshot.rb
fog-openstack-0.1.2 lib/fog/openstack/requests/volume/delete_snapshot.rb
fog-openstack-0.1.1 lib/fog/openstack/requests/volume/delete_snapshot.rb
fog-openstack-0.1.0 lib/fog/openstack/requests/volume/delete_snapshot.rb
fog-1.37.0 lib/fog/openstack/requests/volume/delete_snapshot.rb