Sha256: a04e82fb4674bbd50507b66096b0f39f786bc1d0da5aef15f5f238c7e0e8891c
Contents?: true
Size: 745 Bytes
Versions: 10
Compression:
Stored size: 745 Bytes
Contents
module Fog module OracleCloud class Database class Real def delete_snapshot(db_name, snapshot_name) request( :method => 'DELETE', :expects => 202, :path => "/paas/api/v1.1/instancemgmt/#{@identity_domain}/services/dbaas/instances/#{db_name}/snapshots/#{snapshot_name}" ) end end class Mock def delete_snapshot(db_name, snapshot_name) response = Excon::Response.new self.data[:snapshots][db_name][snapshot_name]['status'] = 'Terminating' self.data[:deleted_at][snapshot_name] = Time.now response.status = 204 response end end end end end
Version data entries
10 entries across 10 versions & 1 rubygems