Sha256: 745d5c8a96cd3ccfd7eafff13d9bfda7c3f9a7fa90e9bdb038f3b2d19e4382de
Contents?: true
Size: 627 Bytes
Versions: 5
Compression:
Stored size: 627 Bytes
Contents
module Fog module OracleCloud class Database class Real def delete_instance(service_name) request( :method => 'DELETE', :expects => 202, :path => "/paas/service/dbcs/api/v1.1/instances/#{@identity_domain}/#{service_name}" ) end end class Mock def delete_instance(name) response = Excon::Response.new self.data[:instances][name]['status'] = 'Terminating' self.data[:deleted_at][name] = Time.now response.status = 204 response end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems