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

Version Path
fog-oraclecloud-0.1.17 lib/fog/oraclecloud/requests/database/delete_instance.rb
fog-oraclecloud-0.1.16 lib/fog/oraclecloud/requests/database/delete_instance.rb
fog-oraclecloud-0.1.15 lib/fog/oraclecloud/requests/database/delete_instance.rb
fog-oraclecloud-0.1.14 lib/fog/oraclecloud/requests/database/delete_instance.rb
fog-oraclecloud-0.1.13 lib/fog/oraclecloud/requests/database/delete_instance.rb