Sha256: 0e93f5d639f78faad136794a81d4fc2fccd35bab7033d590cd4eaedcae8beaa8

Contents?: true

Size: 470 Bytes

Versions: 29

Compression:

Stored size: 470 Bytes

Contents

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

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

Version data entries

29 entries across 29 versions & 4 rubygems

Version Path
ns-fog-1.22.9 lib/fog/openstack/requests/compute/delete_snapshot.rb
ns-fog-1.22.8 lib/fog/openstack/requests/compute/delete_snapshot.rb
ns-fog-1.22.7 lib/fog/openstack/requests/compute/delete_snapshot.rb
ns-fog-1.22.6 lib/fog/openstack/requests/compute/delete_snapshot.rb
fog-1.23.0 lib/fog/openstack/requests/compute/delete_snapshot.rb
ns-fog-1.22.4 lib/fog/openstack/requests/compute/delete_snapshot.rb
ns-fog-1.22.3 lib/fog/openstack/requests/compute/delete_snapshot.rb
ns-fog-1.22.2 lib/fog/openstack/requests/compute/delete_snapshot.rb
fog-1.22.1 lib/fog/openstack/requests/compute/delete_snapshot.rb