Sha256: 8f997537e407618c9cb8b5d2396bbe7048bbe7754e5131f79c4a8c395a5e36d5

Contents?: true

Size: 756 Bytes

Versions: 53

Compression:

Stored size: 756 Bytes

Contents

class Ey::Core::Client
  class Real
    def get_database_servers(params={})
      query = Ey::Core.paging_parameters(params)
      url = params.delete("url")

      request(
        :params => params,
        :query  => query,
        :path   => "/database-servers",
        :url    => url,
      )
    end
  end

  class Mock
    def get_database_servers(params={})
      extract_url_params!(params)
      extract_url_params!(params)

      headers, database_servers_page = search_and_page(params, :database_servers, search_keys: %w[provisioned_id provider database_service flavor location])

      response(
        :body    => {"database_servers" => database_servers_page},
        :status  => 200,
        :headers => headers
      )
    end
  end
end

Version data entries

53 entries across 53 versions & 3 rubygems

Version Path
ey-core-3.6.4 lib/ey-core/requests/get_database_servers.rb
ey-core-3.6.3 lib/ey-core/requests/get_database_servers.rb
ey-core-3.6.1 lib/ey-core/requests/get_database_servers.rb
groove-ey-core-3.6.3 lib/ey-core/requests/get_database_servers.rb
groove-ey-core-3.6.2 lib/ey-core/requests/get_database_servers.rb
groove-ey-core-3.6.1 lib/ey-core/requests/get_database_servers.rb
ey-core-3.5.0 lib/ey-core/requests/get_database_servers.rb
ey-core-3.4.4 lib/ey-core/requests/get_database_servers.rb
ey-core-3.4.2 lib/ey-core/requests/get_database_servers.rb
ey-core-3.4.1 lib/ey-core/requests/get_database_servers.rb
ey-core-3.4.0 lib/ey-core/requests/get_database_servers.rb
ey-core-3.3.1 lib/ey-core/requests/get_database_servers.rb
ey-core-3.3.0 lib/ey-core/requests/get_database_servers.rb
ey-core-3.2.6 lib/ey-core/requests/get_database_servers.rb
ey-core-3.2.5 lib/ey-core/requests/get_database_servers.rb
ey-core-3.2.4 lib/ey-core/requests/get_database_servers.rb
ey-core-3.2.3 lib/ey-core/requests/get_database_servers.rb
ey-core-3.2.2 lib/ey-core/requests/get_database_servers.rb
ey-core-3.2.1 lib/ey-core/requests/get_database_servers.rb
ey-core-3.2.0 lib/ey-core/requests/get_database_servers.rb