Skip to content

Commit 15555f8

Browse files
author
APIs and Common Services team
committed
Automated SDK update
This updates the SDK from internal repo commit segmentio/public-api@7f525630.
1 parent ab90acb commit 15555f8

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

segment_public_api/models/create_filter_input.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ class CreateFilterInput(BaseModel):
2828
"""
2929
integration_id: StrictStr = Field(..., alias="integrationId", description="The Integration id of the resource.")
3030
enabled: Optional[StrictBool] = Field(None, description="Whether the filter is enabled.")
31-
drop: Optional[StrictBool] = Field(None, description="Whether the event is dropped.")
3231
name: StrictStr = Field(..., description="The name of the filter.")
3332
description: Optional[StrictStr] = Field(None, description="The description of the filter.")
3433
var_if: StrictStr = Field(..., alias="if", description="The \"if\" statement for a filter.")
35-
property_drops: Optional[conlist(StrictStr)] = Field(None, alias="propertyDrops", description="Describes the properties to be dropped on events that match the \"if\" statement.")
34+
drop: Optional[StrictBool] = Field(None, description="Whether the event is dropped.")
35+
drop_properties: Optional[conlist(StrictStr)] = Field(None, alias="dropProperties", description="Describes the properties to be dropped on events that match the \"if\" statement.")
3636
allow_properties: Optional[conlist(StrictStr)] = Field(None, alias="allowProperties", description="Describes the properties allowed on events that match the \"if\" statement.")
37-
__properties = ["integrationId", "enabled", "drop", "name", "description", "if", "propertyDrops", "allowProperties"]
37+
__properties = ["integrationId", "enabled", "name", "description", "if", "drop", "dropProperties", "allowProperties"]
3838

3939
class Config:
4040
"""Pydantic configuration"""
@@ -74,11 +74,11 @@ def from_dict(cls, obj: dict) -> CreateFilterInput:
7474
_obj = CreateFilterInput.parse_obj({
7575
"integration_id": obj.get("integrationId"),
7676
"enabled": obj.get("enabled"),
77-
"drop": obj.get("drop"),
7877
"name": obj.get("name"),
7978
"description": obj.get("description"),
8079
"var_if": obj.get("if"),
81-
"property_drops": obj.get("propertyDrops"),
80+
"drop": obj.get("drop"),
81+
"drop_properties": obj.get("dropProperties"),
8282
"allow_properties": obj.get("allowProperties")
8383
})
8484
return _obj

segment_public_api/models/filter.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ class Filter(BaseModel):
3030
workspace_id: StrictStr = Field(..., alias="workspaceId", description="The Workspace id to create the filter.")
3131
integration_id: StrictStr = Field(..., alias="integrationId", description="The Integration id of the resource.")
3232
enabled: Optional[StrictBool] = Field(None, description="Whether the filter is enabled.")
33-
drop: Optional[StrictBool] = Field(None, description="Whether the event is dropped.")
3433
name: Optional[StrictStr] = Field(None, description="The name of the filter.")
3534
description: Optional[StrictStr] = Field(None, description="The description of the filter.")
3635
var_if: Optional[StrictStr] = Field(None, alias="if", description="The \"if\" statement for a filter.")
37-
property_drops: Optional[conlist(StrictStr)] = Field(None, alias="propertyDrops", description="Describes the properties to be dropped on events that match the \"if\" statement.")
36+
drop: Optional[StrictBool] = Field(None, description="Whether the event is dropped.")
37+
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", "drop", "name", "description", "if", "propertyDrops", "allowProperties"]
39+
__properties = ["id", "workspaceId", "integrationId", "enabled", "name", "description", "if", "drop", "dropProperties", "allowProperties"]
4040

4141
class Config:
4242
"""Pydantic configuration"""
@@ -78,11 +78,11 @@ def from_dict(cls, obj: dict) -> Filter:
7878
"workspace_id": obj.get("workspaceId"),
7979
"integration_id": obj.get("integrationId"),
8080
"enabled": obj.get("enabled"),
81-
"drop": obj.get("drop"),
8281
"name": obj.get("name"),
8382
"description": obj.get("description"),
8483
"var_if": obj.get("if"),
85-
"property_drops": obj.get("propertyDrops"),
84+
"drop": obj.get("drop"),
85+
"drop_properties": obj.get("dropProperties"),
8686
"allow_properties": obj.get("allowProperties")
8787
})
8888
return _obj

segment_public_api/models/update_filter_by_id_input.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ class UpdateFilterByIdInput(BaseModel):
2828
"""
2929
integration_id: StrictStr = Field(..., alias="integrationId", description="The Integration id of the resource.")
3030
enabled: Optional[StrictBool] = Field(None, description="Whether the filter is enabled.")
31-
drop: Optional[StrictBool] = Field(None, description="Whether the event is dropped.")
3231
name: Optional[StrictStr] = Field(None, description="The name of the filter.")
3332
description: Optional[StrictStr] = Field(None, description="The description of the filter.")
3433
var_if: Optional[StrictStr] = Field(None, alias="if", description="The \"if\" statement for a filter.")
35-
property_drops: Optional[conlist(StrictStr)] = Field(None, alias="propertyDrops", description="Describes the properties to be dropped on events that match the \"if\" statement.")
34+
drop: Optional[StrictBool] = Field(None, description="Whether the event is dropped.")
35+
drop_properties: Optional[conlist(StrictStr)] = Field(None, alias="dropProperties", description="Describes the properties to be dropped on events that match the \"if\" statement.")
3636
allow_properties: Optional[conlist(StrictStr)] = Field(None, alias="allowProperties", description="Describes the properties allowed on events that match the \"if\" statement.")
37-
__properties = ["integrationId", "enabled", "drop", "name", "description", "if", "propertyDrops", "allowProperties"]
37+
__properties = ["integrationId", "enabled", "name", "description", "if", "drop", "dropProperties", "allowProperties"]
3838

3939
class Config:
4040
"""Pydantic configuration"""
@@ -74,11 +74,11 @@ def from_dict(cls, obj: dict) -> UpdateFilterByIdInput:
7474
_obj = UpdateFilterByIdInput.parse_obj({
7575
"integration_id": obj.get("integrationId"),
7676
"enabled": obj.get("enabled"),
77-
"drop": obj.get("drop"),
7877
"name": obj.get("name"),
7978
"description": obj.get("description"),
8079
"var_if": obj.get("if"),
81-
"property_drops": obj.get("propertyDrops"),
80+
"drop": obj.get("drop"),
81+
"drop_properties": obj.get("dropProperties"),
8282
"allow_properties": obj.get("allowProperties")
8383
})
8484
return _obj

0 commit comments

Comments
 (0)