Skip to content

Commit 5861624

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

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

segment_public_api/models/create_filter_for_space_input.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class CreateFilterForSpaceInput(BaseModel):
2626
"""
2727
Input for CreateFilter. # noqa: E501
2828
"""
29-
integration_id: StrictStr = Field(..., alias="integrationId", description="The Space id to filer on.")
29+
integration_id: StrictStr = Field(..., alias="integrationId", description="The Space id to filter on.")
3030
enabled: Optional[StrictBool] = Field(None, description="Whether the filter is enabled.")
3131
name: StrictStr = Field(..., description="The name of the filter.")
3232
description: Optional[StrictStr] = Field(None, description="The description of the filter.")

segment_public_api/models/filter.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ class Filter(BaseModel):
3636
drop: Optional[StrictBool] = Field(None, description="Whether the event is dropped.")
3737
drop_properties: Optional[conlist(StrictStr)] = Field(None, alias="dropProperties", description="Describes the properties to be dropped on events that match the \"if\" statement.")
3838
allow_properties: Optional[conlist(StrictStr)] = Field(None, alias="allowProperties", description="Describes the properties allowed on events that match the \"if\" statement.")
39-
__properties = ["id", "workspaceId", "integrationId", "enabled", "name", "description", "if", "drop", "dropProperties", "allowProperties"]
39+
created_at: StrictStr = Field(..., alias="createdAt", description="The timestamp of this filter's creation.")
40+
updated_at: StrictStr = Field(..., alias="updatedAt", description="The timestamp of this filter's last change.")
41+
__properties = ["id", "workspaceId", "integrationId", "enabled", "name", "description", "if", "drop", "dropProperties", "allowProperties", "createdAt", "updatedAt"]
4042

4143
class Config:
4244
"""Pydantic configuration"""
@@ -83,7 +85,9 @@ def from_dict(cls, obj: dict) -> Filter:
8385
"var_if": obj.get("if"),
8486
"drop": obj.get("drop"),
8587
"drop_properties": obj.get("dropProperties"),
86-
"allow_properties": obj.get("allowProperties")
88+
"allow_properties": obj.get("allowProperties"),
89+
"created_at": obj.get("createdAt"),
90+
"updated_at": obj.get("updatedAt")
8791
})
8892
return _obj
8993

0 commit comments

Comments
 (0)