Class: SignalWire::REST::Namespaces::DatasphereDocuments
Overview
Document management with search and chunk operations.
Instance Method Summary
collapse
#create, #delete, #get, #list, #update, update_method, update_method=
Constructor Details
Returns a new instance of DatasphereDocuments.
8
9
10
|
# File 'lib/signalwire/rest/namespaces/datasphere.rb', line 8
def initialize(http)
super(http, '/api/datasphere/documents')
end
|
Instance Method Details
#delete_chunk(document_id, chunk_id) ⇒ Object
24
25
26
|
# File 'lib/signalwire/rest/namespaces/datasphere.rb', line 24
def delete_chunk(document_id, chunk_id)
@http.delete(_path(document_id, 'chunks', chunk_id))
end
|
#get_chunk(document_id, chunk_id) ⇒ Object
20
21
22
|
# File 'lib/signalwire/rest/namespaces/datasphere.rb', line 20
def get_chunk(document_id, chunk_id)
@http.get(_path(document_id, 'chunks', chunk_id))
end
|
#list_chunks(document_id, **params) ⇒ Object
16
17
18
|
# File 'lib/signalwire/rest/namespaces/datasphere.rb', line 16
def list_chunks(document_id, **params)
@http.get(_path(document_id, 'chunks'), params.empty? ? nil : params)
end
|
#search(**kwargs) ⇒ Object
12
13
14
|
# File 'lib/signalwire/rest/namespaces/datasphere.rb', line 12
def search(**kwargs)
@http.post(_path('search'), kwargs)
end
|