Skip to content

Commit 7411636

Browse files
SDK regeneration
1 parent ebaad42 commit 7411636

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/truefoundry_sdk/types/subject_type.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,20 @@ class SubjectType(str, enum.Enum):
1414
USER = "user"
1515
TEAM = "team"
1616
SERVICEACCOUNT = "serviceaccount"
17+
VIRTUALACCOUNT = "virtualaccount"
1718

1819
def visit(
1920
self,
2021
user: typing.Callable[[], T_Result],
2122
team: typing.Callable[[], T_Result],
2223
serviceaccount: typing.Callable[[], T_Result],
24+
virtualaccount: typing.Callable[[], T_Result],
2325
) -> T_Result:
2426
if self is SubjectType.USER:
2527
return user()
2628
if self is SubjectType.TEAM:
2729
return team()
2830
if self is SubjectType.SERVICEACCOUNT:
2931
return serviceaccount()
32+
if self is SubjectType.VIRTUALACCOUNT:
33+
return virtualaccount()

0 commit comments

Comments
 (0)