Skip to content

Commit 8bc8699

Browse files
author
WorkOS Bot
committed
Translated from node PR #1273
1 parent ea0241c commit 8bc8699

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

workos/types/user.py

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
from typing import Optional
2+
from workos.types.password_hash_type import PasswordHashType
3+
4+
class UpdateUserOptions:
5+
def __init__(
6+
self,
7+
user_id: str,
8+
email: Optional[str] = None,
9+
first_name: Optional[str] = None,
10+
last_name: Optional[str] = None,
11+
email_verified: Optional[bool] = None,
12+
password: Optional[str] = None,
13+
password_hash: Optional[str] = None,
14+
password_hash_type: Optional[PasswordHashType] = None,
15+
external_id: Optional[str] = None,
16+
):
17+
self.user_id = user_id
18+
self.email = email
19+
self.first_name = first_name
20+
self.last_name = last_name
21+
self.email_verified = email_verified
22+
self.password = password
23+
self.password_hash = password_hash
24+
self.password_hash_type = password_hash_type
25+
self.external_id = external_id
26+
27+
28+
class SerializedUpdateUserOptions:
29+
def __init__(
30+
self,
31+
email: Optional[str] = None,
32+
first_name: Optional[str] = None,
33+
last_name: Optional[str] = None,
34+
email_verified: Optional[bool] = None,
35+
password: Optional[str] = None,
36+
password_hash: Optional[str] = None,
37+
password_hash_type: Optional[PasswordHashType] = None,
38+
external_id: Optional[str] = None,
39+
):
40+
self.email = email
41+
self.first_name = first_name
42+
self.last_name = last_name
43+
self.email_verified = email_verified
44+
self.password = password
45+
self.password_hash = password_hash
46+
self.password_hash_type = password_hash_type
47+
self.external_id = external_id

0 commit comments

Comments
 (0)