Sha256: 93482037d04a97390fa91306f7cec0c572ac632a34c00c62becc1ead2449dd04
Contents?: true
Size: 656 Bytes
Versions: 1
Compression:
Stored size: 656 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fog-oraclecloud-0.1.4 | lib/fog/oraclecloud/requests/database/list_servers.rb |