Sha256: 1dbd39254cae61ef7e45cced9b8a156c42d386d830a46ed48bcfa87264541085
Contents?: true
Size: 1.09 KB
Versions: 3
Compression:
Stored size: 1.09 KB
Contents
class Ey::Core::Client class Real def get_logical_databases(params={}) query = Ey::Core.paging_parameters(params) url = params.delete("url") request( :params => params, :query => query, :path => "/logical-databases", :url => url, ) end end class Mock def get_logical_databases(_params={}) params = Cistern::Hash.stringify_keys(_params) extract_url_params!(params) params["service"] = params.delete("database_service") if params["database_service"] if environment_id = resource_identity(params.delete("environment") || params.delete("environment_id")) params["service"] = url_for("/database-services/#{find(:environments, environment_id)["database_service"]}") end headers, logical_databases_page = search_and_page(params, :logical_databases, search_keys: %w[name username service ]) response( :body => {"logical_databases" => logical_databases_page}, :status => 200, :headers => headers ) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ey-core-3.6.6 | lib/ey-core/requests/get_logical_databases.rb |
ey-core-3.4.5 | lib/ey-core/requests/get_logical_databases.rb |
ey-core-3.6.5 | lib/ey-core/requests/get_logical_databases.rb |