Skip to content

Commit 218bc31

Browse files
SDK regeneration
1 parent 471a46d commit 218bc31

File tree

3 files changed

+0
-269
lines changed

3 files changed

+0
-269
lines changed

reference.md

Lines changed: 0 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -912,77 +912,6 @@ client.users.activate(
912912
</dl>
913913

914914

915-
</dd>
916-
</dl>
917-
</details>
918-
919-
<details><summary><code>client.users.<a href="src/truefoundry_sdk/users/client.py">update_profile_picture</a>(...) -&gt; AsyncHttpResponse[None]</code></summary>
920-
<dl>
921-
<dd>
922-
923-
#### 📝 Description
924-
925-
<dl>
926-
<dd>
927-
928-
<dl>
929-
<dd>
930-
931-
Update the profile picture URL for the authenticated user
932-
</dd>
933-
</dl>
934-
</dd>
935-
</dl>
936-
937-
#### 🔌 Usage
938-
939-
<dl>
940-
<dd>
941-
942-
<dl>
943-
<dd>
944-
945-
```python
946-
from truefoundry_sdk import TrueFoundry
947-
948-
client = TrueFoundry(
949-
api_key="YOUR_API_KEY",
950-
base_url="https://yourhost.com/path/to/api",
951-
)
952-
client.users.update_profile_picture(
953-
download_path="downloadPath",
954-
)
955-
956-
```
957-
</dd>
958-
</dl>
959-
</dd>
960-
</dl>
961-
962-
#### ⚙️ Parameters
963-
964-
<dl>
965-
<dd>
966-
967-
<dl>
968-
<dd>
969-
970-
**download_path:** `str` — Path of the profile picture to be saved
971-
972-
</dd>
973-
</dl>
974-
975-
<dl>
976-
<dd>
977-
978-
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
979-
980-
</dd>
981-
</dl>
982-
</dd>
983-
</dl>
984-
985-
986915
</dd>
987916
</dl>
988917
</details>

src/truefoundry_sdk/users/client.py

Lines changed: 0 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -383,41 +383,6 @@ def activate(self, *, email: str, request_options: typing.Optional[RequestOption
383383
_response = self._raw_client.activate(email=email, request_options=request_options)
384384
return _response.data
385385

386-
def update_profile_picture(
387-
self, *, download_path: str, request_options: typing.Optional[RequestOptions] = None
388-
) -> None:
389-
"""
390-
Update the profile picture URL for the authenticated user
391-
392-
Parameters
393-
----------
394-
download_path : str
395-
Path of the profile picture to be saved
396-
397-
request_options : typing.Optional[RequestOptions]
398-
Request-specific configuration.
399-
400-
Returns
401-
-------
402-
None
403-
404-
Examples
405-
--------
406-
from truefoundry_sdk import TrueFoundry
407-
408-
client = TrueFoundry(
409-
api_key="YOUR_API_KEY",
410-
base_url="https://yourhost.com/path/to/api",
411-
)
412-
client.users.update_profile_picture(
413-
download_path="downloadPath",
414-
)
415-
"""
416-
_response = self._raw_client.update_profile_picture(
417-
download_path=download_path, request_options=request_options
418-
)
419-
return _response.data
420-
421386
def change_password(
422387
self,
423388
*,
@@ -961,49 +926,6 @@ async def main() -> None:
961926
_response = await self._raw_client.activate(email=email, request_options=request_options)
962927
return _response.data
963928

964-
async def update_profile_picture(
965-
self, *, download_path: str, request_options: typing.Optional[RequestOptions] = None
966-
) -> None:
967-
"""
968-
Update the profile picture URL for the authenticated user
969-
970-
Parameters
971-
----------
972-
download_path : str
973-
Path of the profile picture to be saved
974-
975-
request_options : typing.Optional[RequestOptions]
976-
Request-specific configuration.
977-
978-
Returns
979-
-------
980-
None
981-
982-
Examples
983-
--------
984-
import asyncio
985-
986-
from truefoundry_sdk import AsyncTrueFoundry
987-
988-
client = AsyncTrueFoundry(
989-
api_key="YOUR_API_KEY",
990-
base_url="https://yourhost.com/path/to/api",
991-
)
992-
993-
994-
async def main() -> None:
995-
await client.users.update_profile_picture(
996-
download_path="downloadPath",
997-
)
998-
999-
1000-
asyncio.run(main())
1001-
"""
1002-
_response = await self._raw_client.update_profile_picture(
1003-
download_path=download_path, request_options=request_options
1004-
)
1005-
return _response.data
1006-
1007929
async def change_password(
1008930
self,
1009931
*,

src/truefoundry_sdk/users/raw_client.py

Lines changed: 0 additions & 120 deletions
Original file line numberDiff line numberDiff line change
@@ -647,66 +647,6 @@ def activate(
647647
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
648648
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
649649

650-
def update_profile_picture(
651-
self, *, download_path: str, request_options: typing.Optional[RequestOptions] = None
652-
) -> HttpResponse[None]:
653-
"""
654-
Update the profile picture URL for the authenticated user
655-
656-
Parameters
657-
----------
658-
download_path : str
659-
Path of the profile picture to be saved
660-
661-
request_options : typing.Optional[RequestOptions]
662-
Request-specific configuration.
663-
664-
Returns
665-
-------
666-
HttpResponse[None]
667-
"""
668-
_response = self._client_wrapper.httpx_client.request(
669-
"api/svc/v1/users/profile-picture",
670-
method="PATCH",
671-
json={
672-
"downloadPath": download_path,
673-
},
674-
headers={
675-
"content-type": "application/json",
676-
},
677-
request_options=request_options,
678-
omit=OMIT,
679-
)
680-
try:
681-
if 200 <= _response.status_code < 300:
682-
return HttpResponse(response=_response, data=None)
683-
if _response.status_code == 400:
684-
raise BadRequestError(
685-
headers=dict(_response.headers),
686-
body=typing.cast(
687-
typing.Any,
688-
parse_obj_as(
689-
type_=typing.Any, # type: ignore
690-
object_=_response.json(),
691-
),
692-
),
693-
)
694-
if _response.status_code == 404:
695-
raise NotFoundError(
696-
headers=dict(_response.headers),
697-
body=typing.cast(
698-
typing.Any,
699-
parse_obj_as(
700-
type_=typing.Any, # type: ignore
701-
object_=_response.json(),
702-
),
703-
),
704-
)
705-
_response_json = _response.json()
706-
except JSONDecodeError:
707-
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
708-
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
709-
710650
def change_password(
711651
self,
712652
*,
@@ -1507,66 +1447,6 @@ async def activate(
15071447
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
15081448
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
15091449

1510-
async def update_profile_picture(
1511-
self, *, download_path: str, request_options: typing.Optional[RequestOptions] = None
1512-
) -> AsyncHttpResponse[None]:
1513-
"""
1514-
Update the profile picture URL for the authenticated user
1515-
1516-
Parameters
1517-
----------
1518-
download_path : str
1519-
Path of the profile picture to be saved
1520-
1521-
request_options : typing.Optional[RequestOptions]
1522-
Request-specific configuration.
1523-
1524-
Returns
1525-
-------
1526-
AsyncHttpResponse[None]
1527-
"""
1528-
_response = await self._client_wrapper.httpx_client.request(
1529-
"api/svc/v1/users/profile-picture",
1530-
method="PATCH",
1531-
json={
1532-
"downloadPath": download_path,
1533-
},
1534-
headers={
1535-
"content-type": "application/json",
1536-
},
1537-
request_options=request_options,
1538-
omit=OMIT,
1539-
)
1540-
try:
1541-
if 200 <= _response.status_code < 300:
1542-
return AsyncHttpResponse(response=_response, data=None)
1543-
if _response.status_code == 400:
1544-
raise BadRequestError(
1545-
headers=dict(_response.headers),
1546-
body=typing.cast(
1547-
typing.Any,
1548-
parse_obj_as(
1549-
type_=typing.Any, # type: ignore
1550-
object_=_response.json(),
1551-
),
1552-
),
1553-
)
1554-
if _response.status_code == 404:
1555-
raise NotFoundError(
1556-
headers=dict(_response.headers),
1557-
body=typing.cast(
1558-
typing.Any,
1559-
parse_obj_as(
1560-
type_=typing.Any, # type: ignore
1561-
object_=_response.json(),
1562-
),
1563-
),
1564-
)
1565-
_response_json = _response.json()
1566-
except JSONDecodeError:
1567-
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
1568-
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
1569-
15701450
async def change_password(
15711451
self,
15721452
*,

0 commit comments

Comments
 (0)