Skip to content

Commit 0d72395

Browse files
author
APIs and Common Services team
committed
Automated SDK update
This updates the SDK from internal repo commit segmentio/public-api@39ef932c.
1 parent 645dd83 commit 0d72395

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

segment_public_api/models/id_sync_configuration_input.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import json
2020

2121

22-
22+
from typing import Optional
2323
from pydantic import BaseModel, Field, StrictStr
2424

2525
class IDSyncConfigurationInput(BaseModel):
@@ -28,7 +28,8 @@ class IDSyncConfigurationInput(BaseModel):
2828
"""
2929
external_id: StrictStr = Field(..., alias="externalId", description="The id type to sync. Examples: user_id, email, anonymous_id.")
3030
strategy: StrictStr = Field(..., description="The rule for selecting which identifiers to sync from a profile. Possible values: first: Syncs only the oldest recorded value. last: Syncs only the most recently updated value. all: Syncs every value found on the profile (sends multiple events).")
31-
__properties = ["externalId", "strategy"]
31+
map_to: Optional[StrictStr] = Field(None, alias="mapTo", description="Optional destination-specific identifier to map to (for example, \"Email_Address_c\").")
32+
__properties = ["externalId", "strategy", "mapTo"]
3233

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

6869
_obj = IDSyncConfigurationInput.parse_obj({
6970
"external_id": obj.get("externalId"),
70-
"strategy": obj.get("strategy")
71+
"strategy": obj.get("strategy"),
72+
"map_to": obj.get("mapTo")
7173
})
7274
return _obj
7375

0 commit comments

Comments
 (0)