Sha256: a2d0ff31ae918b35c6dc17313ba518709f21043d8b4e310730b51f4df1dea0ae

Contents?: true

Size: 647 Bytes

Versions: 11

Compression:

Stored size: 647 Bytes

Contents

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

      class Mock
        def list_instances
          response = Excon::Response.new

          instances = self.data[:instances].values

          response.body = {
            'services' => instances
          }
          response
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
fog-oraclecloud-0.1.12 lib/fog/oraclecloud/requests/database/list_instances.rb
fog-oraclecloud-0.1.11 lib/fog/oraclecloud/requests/database/list_instances.rb
fog-oraclecloud-0.1.10 lib/fog/oraclecloud/requests/database/list_instances.rb
fog-oraclecloud-0.1.9 lib/fog/oraclecloud/requests/database/list_instances.rb
fog-oraclecloud-0.1.8 lib/fog/oraclecloud/requests/database/list_instances.rb
fog-oraclecloud-0.1.7 lib/fog/oraclecloud/requests/database/list_instances.rb
fog-oraclecloud-0.1.6 lib/fog/oraclecloud/requests/database/list_instances.rb
fog-oraclecloud-0.1.5 lib/fog/oraclecloud/requests/database/list_instances.rb
fog-oraclecloud-0.1.4 lib/fog/oraclecloud/requests/database/list_instances.rb
fog-oraclecloud-0.1.3 lib/fog/oraclecloud/requests/database/list_instances.rb
fog-oraclecloud-0.1.2 lib/fog/oraclecloud/requests/database/list_instances.rb