Sha256: 9c03ab9adbf6c00ebfb3fd2814629c3b22299f8f5fe81b4a78f59e76fb313275

Contents?: true

Size: 621 Bytes

Versions: 5

Compression:

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

5 entries across 5 versions & 1 rubygems

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