Sha256: 5495ebafebf044be3659777eaab5b15f3b4202dc3fcd494949759054c61fc040
Contents?: true
Size: 860 Bytes
Versions: 59
Compression:
Stored size: 860 Bytes
Contents
module Fog module HP class BlockStorage class Real # Delete an existing block storage snapshot # # ==== Parameters # * snapshot_id<~Integer> - Id of the snapshot to delete # def delete_snapshot(snapshot_id) response = request( :expects => 202, :method => 'DELETE', :path => "os-snapshots/#{snapshot_id}" ) response end end class Mock # :nodoc:all def delete_snapshot(snapshot_id) response = Excon::Response.new if self.data[:snapshots][snapshot_id] self.data[:snapshots].delete(snapshot_id) response.status = 202 else raise Fog::HP::BlockStorage::NotFound end response end end end end end
Version data entries
59 entries across 59 versions & 6 rubygems