Sha256: f4a7e125bc6b3f56970820087e664d0ed8f3577b55eebe54ce21c6f8763598d8

Contents?: true

Size: 663 Bytes

Versions: 8

Compression:

Stored size: 663 Bytes

Contents

module Fog
  module OracleCloud
    class Java
      class Real
      	def list_servers(service_name)
          response = request(
            :expects  => 200,
            :method   => 'GET',
            :path     => "/paas/service/jcs/api/v1.1/instances/#{@identity_domain}/#{service_name}/servers"
          )
          response
        end
      end

      class Mock
        def list_servers(db_name)
          response = Excon::Response.new

          servers = self.data[:servers][db_name]

          response.body =  {
            'servers' => servers
          }

          response
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
fog-oraclecloud-0.1.11 lib/fog/oraclecloud/requests/java/list_servers.rb
fog-oraclecloud-0.1.10 lib/fog/oraclecloud/requests/java/list_servers.rb
fog-oraclecloud-0.1.9 lib/fog/oraclecloud/requests/java/list_servers.rb
fog-oraclecloud-0.1.8 lib/fog/oraclecloud/requests/java/list_servers.rb
fog-oraclecloud-0.1.7 lib/fog/oraclecloud/requests/java/list_servers.rb
fog-oraclecloud-0.1.6 lib/fog/oraclecloud/requests/java/list_servers.rb
fog-oraclecloud-0.1.5 lib/fog/oraclecloud/requests/java/list_servers.rb
fog-oraclecloud-0.1.4 lib/fog/oraclecloud/requests/java/list_servers.rb