Skip to content

Commit 2214bc3

Browse files
author
APIs and Common Services team
committed
Automated SDK update
This updates the SDK from internal repo commit segmentio/public-api@cac572f5.
1 parent 932cb58 commit 2214bc3

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

segment_public_api/models/trait_options.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,17 @@
1919
import json
2020

2121

22-
from typing import Optional
23-
from pydantic import BaseModel, Field, StrictBool
22+
from typing import Optional, Union
23+
from pydantic import BaseModel, Field, StrictBool, StrictFloat, StrictInt
2424

2525
class TraitOptions(BaseModel):
2626
"""
2727
TraitOptions
2828
"""
2929
include_historical_data: Optional[StrictBool] = Field(None, alias="includeHistoricalData", description="Determines whether data prior to the computed trait being created is included when determining the computed trait value. Note that including historical data may be needed in order to properly handle the definition specified. In these cases, Segment will automatically handle including historical data and the response will return the includeHistoricalData parameter as true.")
3030
include_anonymous_users: Optional[StrictBool] = Field(None, alias="includeAnonymousUsers", description="Determines whether anonymous users should be included when determining the computed trait value.")
31-
__properties = ["includeHistoricalData", "includeAnonymousUsers"]
31+
backfill_duration_days: Optional[Union[StrictFloat, StrictInt]] = Field(None, alias="backfillDurationDays", description="If specified, the value of this field indicates the number of days, specified from the date the audience was created, that event data will be included from when determining audience membership. If unspecified, defer to the value of `includeHistoricalData` to determine whether historical data is either entirely included or entirely excluded when determining audience membership.")
32+
__properties = ["includeHistoricalData", "includeAnonymousUsers", "backfillDurationDays"]
3233

3334
class Config:
3435
"""Pydantic configuration"""
@@ -67,7 +68,8 @@ def from_dict(cls, obj: dict) -> TraitOptions:
6768

6869
_obj = TraitOptions.parse_obj({
6970
"include_historical_data": obj.get("includeHistoricalData"),
70-
"include_anonymous_users": obj.get("includeAnonymousUsers")
71+
"include_anonymous_users": obj.get("includeAnonymousUsers"),
72+
"backfill_duration_days": obj.get("backfillDurationDays")
7173
})
7274
return _obj
7375

0 commit comments

Comments
 (0)