@@ -120,7 +120,7 @@ def list(
120120 raise ApiError (status_code = _response .status_code , body = _response .text )
121121 raise ApiError (status_code = _response .status_code , body = _response_json )
122122
123- def create (
123+ def upsert (
124124 self ,
125125 * ,
126126 datapoints : typing .Sequence [CreateDatapointRequest ],
@@ -196,7 +196,7 @@ def create(
196196 client = Humanloop(
197197 api_key="YOUR_API_KEY",
198198 )
199- client.datasets.create (
199+ client.datasets.upsert (
200200 datapoints=[CreateDatapointRequest()],
201201 )
202202 """
@@ -333,7 +333,7 @@ def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] =
333333 raise ApiError (status_code = _response .status_code , body = _response .text )
334334 raise ApiError (status_code = _response .status_code , body = _response_json )
335335
336- def update (
336+ def move (
337337 self ,
338338 id : str ,
339339 * ,
@@ -370,7 +370,7 @@ def update(
370370 client = Humanloop(
371371 api_key="YOUR_API_KEY",
372372 )
373- client.datasets.update (
373+ client.datasets.move (
374374 id="id",
375375 )
376376 """
@@ -393,7 +393,7 @@ def update(
393393 raise ApiError (status_code = _response .status_code , body = _response .text )
394394 raise ApiError (status_code = _response .status_code , body = _response_json )
395395
396- def list_datapoints (
396+ def listdatapoints (
397397 self ,
398398 id : str ,
399399 * ,
@@ -438,7 +438,7 @@ def list_datapoints(
438438 client = Humanloop(
439439 api_key="YOUR_API_KEY",
440440 )
441- client.datasets.list_datapoints (
441+ client.datasets.listdatapoints (
442442 id="id",
443443 )
444444 """
@@ -453,7 +453,7 @@ def list_datapoints(
453453 if 200 <= _response .status_code < 300 :
454454 _parsed_response = typing .cast (PaginatedDatapointResponse , construct_type (type_ = PaginatedDatapointResponse , object_ = _response .json ())) # type: ignore
455455 _has_next = True
456- _get_next = lambda : self .list_datapoints (
456+ _get_next = lambda : self .listdatapoints (
457457 id ,
458458 version_id = version_id ,
459459 environment = environment ,
@@ -472,7 +472,7 @@ def list_datapoints(
472472 raise ApiError (status_code = _response .status_code , body = _response .text )
473473 raise ApiError (status_code = _response .status_code , body = _response_json )
474474
475- def list_versions (
475+ def listversions (
476476 self ,
477477 id : str ,
478478 * ,
@@ -512,7 +512,7 @@ def list_versions(
512512 client = Humanloop(
513513 api_key="YOUR_API_KEY",
514514 )
515- client.datasets.list_versions (
515+ client.datasets.listversions (
516516 id="id",
517517 )
518518 """
@@ -918,7 +918,7 @@ async def list(
918918 raise ApiError (status_code = _response .status_code , body = _response .text )
919919 raise ApiError (status_code = _response .status_code , body = _response_json )
920920
921- async def create (
921+ async def upsert (
922922 self ,
923923 * ,
924924 datapoints : typing .Sequence [CreateDatapointRequest ],
@@ -994,7 +994,7 @@ async def create(
994994 client = AsyncHumanloop(
995995 api_key="YOUR_API_KEY",
996996 )
997- await client.datasets.create (
997+ await client.datasets.upsert (
998998 datapoints=[CreateDatapointRequest()],
999999 )
10001000 """
@@ -1131,7 +1131,7 @@ async def delete(self, id: str, *, request_options: typing.Optional[RequestOptio
11311131 raise ApiError (status_code = _response .status_code , body = _response .text )
11321132 raise ApiError (status_code = _response .status_code , body = _response_json )
11331133
1134- async def update (
1134+ async def move (
11351135 self ,
11361136 id : str ,
11371137 * ,
@@ -1168,7 +1168,7 @@ async def update(
11681168 client = AsyncHumanloop(
11691169 api_key="YOUR_API_KEY",
11701170 )
1171- await client.datasets.update (
1171+ await client.datasets.move (
11721172 id="id",
11731173 )
11741174 """
@@ -1191,7 +1191,7 @@ async def update(
11911191 raise ApiError (status_code = _response .status_code , body = _response .text )
11921192 raise ApiError (status_code = _response .status_code , body = _response_json )
11931193
1194- async def list_datapoints (
1194+ async def listdatapoints (
11951195 self ,
11961196 id : str ,
11971197 * ,
@@ -1236,7 +1236,7 @@ async def list_datapoints(
12361236 client = AsyncHumanloop(
12371237 api_key="YOUR_API_KEY",
12381238 )
1239- await client.datasets.list_datapoints (
1239+ await client.datasets.listdatapoints (
12401240 id="id",
12411241 )
12421242 """
@@ -1251,7 +1251,7 @@ async def list_datapoints(
12511251 if 200 <= _response .status_code < 300 :
12521252 _parsed_response = typing .cast (PaginatedDatapointResponse , construct_type (type_ = PaginatedDatapointResponse , object_ = _response .json ())) # type: ignore
12531253 _has_next = True
1254- _get_next = lambda : self .list_datapoints (
1254+ _get_next = lambda : self .listdatapoints (
12551255 id ,
12561256 version_id = version_id ,
12571257 environment = environment ,
@@ -1270,7 +1270,7 @@ async def list_datapoints(
12701270 raise ApiError (status_code = _response .status_code , body = _response .text )
12711271 raise ApiError (status_code = _response .status_code , body = _response_json )
12721272
1273- async def list_versions (
1273+ async def listversions (
12741274 self ,
12751275 id : str ,
12761276 * ,
@@ -1310,7 +1310,7 @@ async def list_versions(
13101310 client = AsyncHumanloop(
13111311 api_key="YOUR_API_KEY",
13121312 )
1313- await client.datasets.list_versions (
1313+ await client.datasets.listversions (
13141314 id="id",
13151315 )
13161316 """
0 commit comments