Sha256: 4630d3d95f433197a9a8a09bcd045df4cc29f62abf9312749bd0e2dedd9dc164

Contents?: true

Size: 612 Bytes

Versions: 5

Compression:

Stored size: 612 Bytes

Contents

module Fog
  module OracleCloud
    class SOA
      class Real
      	def list_instances
          response = request(
            :expects  => 200,
            :method   => 'GET',
            :path     => "/paas/service/soa/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

5 entries across 5 versions & 1 rubygems

Version Path
fog-oraclecloud-0.1.17 lib/fog/oraclecloud/requests/soa/list_instances.rb
fog-oraclecloud-0.1.16 lib/fog/oraclecloud/requests/soa/list_instances.rb
fog-oraclecloud-0.1.15 lib/fog/oraclecloud/requests/soa/list_instances.rb
fog-oraclecloud-0.1.14 lib/fog/oraclecloud/requests/soa/list_instances.rb
fog-oraclecloud-0.1.13 lib/fog/oraclecloud/requests/soa/list_instances.rb