Class: Cadenya::Resources::Search

Inherits:
Object
  • Object
show all
Defined in:
lib/cadenya/resources/search.rb

Instance Method Summary collapse

Constructor Details

#initialize(client:) ⇒ Search

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Search.

Parameters:



32
33
34
# File 'lib/cadenya/resources/search.rb', line 32

def initialize(client:)
  @client = client
end

Instance Method Details

#search_tools_or_tool_sets(workspace_id, query: nil, request_options: {}) ⇒ Cadenya::Models::SearchSearchToolsOrToolSetsResponse

Searches for tools or tool sets in the workspace

Parameters:

Returns:

See Also:



17
18
19
20
21
22
23
24
25
26
27
# File 'lib/cadenya/resources/search.rb', line 17

def search_tools_or_tool_sets(workspace_id, params = {})
  parsed, options = Cadenya::SearchSearchToolsOrToolSetsParams.dump_request(params)
  query = Cadenya::Internal::Util.encode_query_params(parsed)
  @client.request(
    method: :get,
    path: ["v1/workspaces/%1$s/search/tools_or_tool_sets", workspace_id],
    query: query,
    model: Cadenya::Models::SearchSearchToolsOrToolSetsResponse,
    options: options
  )
end