Skip to content

Commit 60351e0

Browse files
author
APIs and Common Services team
committed
Automated SDK update
This updates the SDK from internal repo commit segmentio/public-api@e49a12c9.
1 parent a343ac0 commit 60351e0

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

segment_public_api/models/create_source_regulation_v1_input.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ class CreateSourceRegulationV1Input(BaseModel):
2727
The input to create a Source-scoped regulation. # noqa: E501
2828
"""
2929
regulation_type: StrictStr = Field(..., alias="regulationType", description="The regulation type to create. Please note that `DELETE_ARCHIVE_ONLY` is only supported for limited Workspaces for Source-scoped regulations.")
30-
subject_type: StrictStr = Field(..., alias="subjectType", description="The subject type.")
31-
subject_ids: conlist(StrictStr) = Field(..., alias="subjectIds", description="The list of `userId` or `objectId` values of the subjects to regulate. Config API note: equal to `parent` but allows an array.")
30+
subject_type: StrictStr = Field(..., alias="subjectType", description="The subject type. Note: `ANONYMOUS_ID` is only supported for limited Workspaces for Source-scoped regulations. `ANONYMOUS_ID` is only supported when regulationType is `DELETE_ARCHIVE_ONLY`.")
31+
subject_ids: conlist(StrictStr) = Field(..., alias="subjectIds", description="The list of `userId` or `objectId` or `anonymousId` values of the subjects to regulate. Config API note: equal to `parent` but allows an array.")
3232
__properties = ["regulationType", "subjectType", "subjectIds"]
3333

3434
@validator('regulation_type')

segment_public_api/models/create_workspace_regulation_v1_input.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@ class CreateWorkspaceRegulationV1Input(BaseModel):
3434
@validator('regulation_type')
3535
def regulation_type_validate_enum(cls, value):
3636
"""Validates the enum"""
37-
if value not in ('DELETE_ARCHIVE_ONLY', 'DELETE_INTERNAL', 'DELETE_ONLY', 'SUPPRESS_ONLY', 'SUPPRESS_WITH_DELETE', 'SUPPRESS_WITH_DELETE_INTERNAL', 'UNSUPPRESS'):
38-
raise ValueError("must be one of enum values ('DELETE_ARCHIVE_ONLY', 'DELETE_INTERNAL', 'DELETE_ONLY', 'SUPPRESS_ONLY', 'SUPPRESS_WITH_DELETE', 'SUPPRESS_WITH_DELETE_INTERNAL', 'UNSUPPRESS')")
37+
if value not in ('DELETE_INTERNAL', 'DELETE_ONLY', 'SUPPRESS_ONLY', 'SUPPRESS_WITH_DELETE', 'SUPPRESS_WITH_DELETE_INTERNAL', 'UNSUPPRESS'):
38+
raise ValueError("must be one of enum values ('DELETE_INTERNAL', 'DELETE_ONLY', 'SUPPRESS_ONLY', 'SUPPRESS_WITH_DELETE', 'SUPPRESS_WITH_DELETE_INTERNAL', 'UNSUPPRESS')")
3939
return value
4040

4141
@validator('subject_type')
4242
def subject_type_validate_enum(cls, value):
4343
"""Validates the enum"""
44-
if value not in ('ANONYMOUS_ID', 'OBJECT_ID', 'USER_ID'):
45-
raise ValueError("must be one of enum values ('ANONYMOUS_ID', 'OBJECT_ID', 'USER_ID')")
44+
if value not in ('OBJECT_ID', 'USER_ID'):
45+
raise ValueError("must be one of enum values ('OBJECT_ID', 'USER_ID')")
4646
return value
4747

4848
class Config:

0 commit comments

Comments
 (0)