Skip to content

Commit 8c85d34

Browse files
author
APIs and Common Services team
committed
Automated SDK update
This updates the SDK from internal repo commit segmentio/public-api@8cf49cc9.
1 parent cb7aa87 commit 8c85d34

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

segment_public_api/models/create_function_v1_input.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ class CreateFunctionV1Input(BaseModel):
3838
@validator('resource_type')
3939
def resource_type_validate_enum(cls, value):
4040
"""Validates the enum"""
41-
if value not in ('DESTINATION', 'INSERT_DESTINATION', 'SOURCE'):
42-
raise ValueError("must be one of enum values ('DESTINATION', 'INSERT_DESTINATION', 'SOURCE')")
41+
if value not in ('DESTINATION', 'INSERT_DESTINATION', 'INSERT_SOURCE', 'SOURCE'):
42+
raise ValueError("must be one of enum values ('DESTINATION', 'INSERT_DESTINATION', 'INSERT_SOURCE', 'SOURCE')")
4343
return value
4444

4545
class Config:

0 commit comments

Comments
 (0)