Sha256: 26f38b43d9444211901f92a1485a19240f281d5f617753de6d57cc05b39c50b7

Contents?: true

Size: 642 Bytes

Versions: 11

Compression:

Stored size: 642 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

11 entries across 11 versions & 1 rubygems

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