Sha256: 0e35c782a9018d3c89388d53dd17c106834bca80c1e39f137853ab346c26c365

Contents?: true

Size: 614 Bytes

Versions: 6

Compression:

Stored size: 614 Bytes

Contents

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

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

          servers = self.data[:servers][db_name]

          response.body = servers
          response
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
fog-oraclecloud-0.1.12 lib/fog/oraclecloud/requests/database/list_servers.rb
fog-oraclecloud-0.1.11 lib/fog/oraclecloud/requests/database/list_servers.rb
fog-oraclecloud-0.1.10 lib/fog/oraclecloud/requests/database/list_servers.rb
fog-oraclecloud-0.1.9 lib/fog/oraclecloud/requests/database/list_servers.rb
fog-oraclecloud-0.1.8 lib/fog/oraclecloud/requests/database/list_servers.rb
fog-oraclecloud-0.1.3 lib/fog/oraclecloud/requests/database/list_servers.rb