Sha256: 5d676ac3041c2ac04c0f7577a34880401d6794ea9e38e6b640e8e86d7ff0fec2

Contents?: true

Size: 613 Bytes

Versions: 5

Compression:

Stored size: 613 Bytes

Contents

module Fog
  module OracleCloud
    class Java
      class Real
      	def list_instances
          response = request(
            :expects  => 200,
            :method   => 'GET',
            :path     => "/paas/service/jcs/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/java/list_instances.rb
fog-oraclecloud-0.1.16 lib/fog/oraclecloud/requests/java/list_instances.rb
fog-oraclecloud-0.1.15 lib/fog/oraclecloud/requests/java/list_instances.rb
fog-oraclecloud-0.1.14 lib/fog/oraclecloud/requests/java/list_instances.rb
fog-oraclecloud-0.1.13 lib/fog/oraclecloud/requests/java/list_instances.rb