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

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