Sha256: e017e58399074dabf069bc19247cf291613701962419584fbbfa00ae72767649

Contents?: true

Size: 648 Bytes

Versions: 10

Compression:

Stored size: 648 Bytes

Contents

module Fog
  module OracleCloud
    class Database
      class Real
      	def list_snapshots(db_name)
          response = request(
            :expects  => 200,
            :method   => 'GET',
            :path     => "/paas/api/v1.1/instancemgmt/#{@identity_domain}/services/dbaas/instances/#{db_name}/snapshots"
          )
          response
        end
      end

      class Mock
        def list_snapshots(db_name)
          response = Excon::Response.new

          snapshots = self.data[:snapshots][db_name].values

          response.body = snapshots
          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/list_snapshots.rb
fog-oraclecloud-0.1.11 lib/fog/oraclecloud/requests/database/list_snapshots.rb
fog-oraclecloud-0.1.10 lib/fog/oraclecloud/requests/database/list_snapshots.rb
fog-oraclecloud-0.1.9 lib/fog/oraclecloud/requests/database/list_snapshots.rb
fog-oraclecloud-0.1.8 lib/fog/oraclecloud/requests/database/list_snapshots.rb
fog-oraclecloud-0.1.7 lib/fog/oraclecloud/requests/database/list_snapshots.rb
fog-oraclecloud-0.1.6 lib/fog/oraclecloud/requests/database/list_snapshots.rb
fog-oraclecloud-0.1.5 lib/fog/oraclecloud/requests/database/list_snapshots.rb
fog-oraclecloud-0.1.4 lib/fog/oraclecloud/requests/database/list_snapshots.rb
fog-oraclecloud-0.1.3 lib/fog/oraclecloud/requests/database/list_snapshots.rb