File tree Expand file tree Collapse file tree 3 files changed +6
-14
lines changed Expand file tree Collapse file tree 3 files changed +6
-14
lines changed Original file line number Diff line number Diff line change @@ -17,19 +17,10 @@ async def main():
17
17
print ("client initialized" , client )
18
18
19
19
try :
20
- resp = await client .replace_all_objects (
21
- index_name = "newoneeverytime" ,
22
- objects = [
23
- {
24
- "name" : f"John Doe{ i } " ,
25
- "objectID" : f"fff2bd4d-bb17-4e21-a0c4-0a8ea5e363f2{ i } " ,
26
- }
27
- for i in range (33 )
28
- ],
29
- batch_size = 10 ,
20
+ await client .browse_objects (
21
+ index_name = "api-clients-automation" ,
22
+ aggregator = lambda _resp : print ("baaaaaaaaaaaaaaar" , _resp .to_json ()),
30
23
)
31
-
32
- print (resp )
33
24
finally :
34
25
await client .close ()
35
26
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ from algoliasearch.search.models.scope_type import ScopeType
7
7
from algoliasearch.search.models.action import Action
8
8
from algoliasearch.search.models.secured_api_key_restrictions import SecuredApiKeyRestrictions
9
9
from algoliasearch.search.models.replace_all_objects_response import ReplaceAllObjectsResponse
10
+ from algoliasearch.search.models.browse_params_object import BrowseParamsObject
10
11
{ {/isSearchClient} }
11
12
12
13
{ {#operations} }{ {#operation} }{ {#imports} }
@@ -185,4 +186,4 @@ class {{classname}}:
185
186
return (await self.{ {operationId} }_with_http_info({ {#allParams} }{ {paramName} },{ {/allParams} }request_options)).deserialize({ {{returnType} }})
186
187
187
188
{ {/operation} }
188
- { {/operations} }
189
+ { {/operations} }
Original file line number Diff line number Diff line change 111
111
self,
112
112
index_name: str,
113
113
aggregator: Optional[Callable[[BrowseResponse], None]],
114
- browse_params: Optional[BrowseParams ] = None ,
114
+ browse_params: Optional[BrowseParamsObject ] = BrowseParamsObject() ,
115
115
request_options: Optional[Union[dict, RequestOptions]] = None,
116
116
) -> BrowseResponse:
117
117
"""
You can’t perform that action at this time.
0 commit comments