Sha256: ca67ff53bf68a2c327408b494750429d68aa281a462e4d0359a7fcde28aa46dd

Contents?: true

Size: 653 Bytes

Versions: 11

Compression:

Stored size: 653 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

11 entries across 11 versions & 1 rubygems

Version Path
fog-oraclecloud-0.1.12 lib/fog/oraclecloud/requests/database/delete_instance.rb
fog-oraclecloud-0.1.11 lib/fog/oraclecloud/requests/database/delete_instance.rb
fog-oraclecloud-0.1.10 lib/fog/oraclecloud/requests/database/delete_instance.rb
fog-oraclecloud-0.1.9 lib/fog/oraclecloud/requests/database/delete_instance.rb
fog-oraclecloud-0.1.8 lib/fog/oraclecloud/requests/database/delete_instance.rb
fog-oraclecloud-0.1.7 lib/fog/oraclecloud/requests/database/delete_instance.rb
fog-oraclecloud-0.1.6 lib/fog/oraclecloud/requests/database/delete_instance.rb
fog-oraclecloud-0.1.5 lib/fog/oraclecloud/requests/database/delete_instance.rb
fog-oraclecloud-0.1.4 lib/fog/oraclecloud/requests/database/delete_instance.rb
fog-oraclecloud-0.1.3 lib/fog/oraclecloud/requests/database/delete_instance.rb
fog-oraclecloud-0.1.2 lib/fog/oraclecloud/requests/database/delete_instance.rb