Sha256: d07910a09e46f0eaf5535546c6411a31b81ee521e1c0b9c156d7b5e25294d434

Contents?: true

Size: 655 Bytes

Versions: 3

Compression:

Stored size: 655 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" => servers
          }
          response
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fog-oraclecloud-0.1.7 lib/fog/oraclecloud/requests/database/list_servers.rb
fog-oraclecloud-0.1.6 lib/fog/oraclecloud/requests/database/list_servers.rb
fog-oraclecloud-0.1.5 lib/fog/oraclecloud/requests/database/list_servers.rb