Sha256: 06480ff3e36c63b1faec509c3d29474fe2215a70be374de5b9830d466283820a

Contents?: true

Size: 641 Bytes

Versions: 5

Compression:

Stored size: 641 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.12 lib/fog/oraclecloud/requests/soa/list_instances.rb
fog-oraclecloud-0.1.11 lib/fog/oraclecloud/requests/soa/list_instances.rb
fog-oraclecloud-0.1.10 lib/fog/oraclecloud/requests/soa/list_instances.rb
fog-oraclecloud-0.1.9 lib/fog/oraclecloud/requests/soa/list_instances.rb
fog-oraclecloud-0.1.8 lib/fog/oraclecloud/requests/soa/list_instances.rb