genai.user.user_service module#
- class genai.user.user_service.UserService[source]#
Bases:
BaseService
[BaseServiceConfig
,BaseServiceServices
]- create(*, first_name=None, last_name=None)[source]#
- Raises:
ApiResponseException – In case of a known API error.
ApiNetworkException – In case of unhandled network error.
- Parameters:
first_name (str | None) –
last_name (str | None) –
- Return type:
UserCreateResponse
- delete()[source]#
- Raises:
ApiResponseException – In case of a known API error.
ApiNetworkException – In case of unhandled network error.
- Return type:
None
- retrieve()[source]#
- Raises:
ApiResponseException – In case of a known API error.
ApiNetworkException – In case of unhandled network error.
- Return type:
UserRetrieveResponse
- update(*, tou_accepted=None)[source]#
- Raises:
ApiResponseException – In case of a known API error.
ApiNetworkException – In case of unhandled network error.
- Parameters:
tou_accepted (bool | None) –
- Return type:
UserPatchResponse