Skip to content

Commit 666a01f

Browse files
author
APIs and Common Services team
committed
Automated SDK update
This updates the SDK from internal repo commit segmentio/public-api@0ed000c8.
1 parent 1c1cf60 commit 666a01f

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

docs/ActivationsApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ with segment_public_api.ApiClient(configuration) as api_client:
4747
space_id = 'spa_9aQ1Lj62S4bomZKLF4DPqW' # str |
4848
audience_id = 'aud_0ujsszwN8NRY24YaXiTIE2VWDTS' # str |
4949
connection_id = 'ii_123456789' # str |
50-
add_activation_to_audience_alpha_input = {"destinationId":"684758860892086596310ac","activationType":"Audience Entered","activationName":"Test Activation","enabled":true,"performFirstSync":true,"personalization":{"profile":{"properties":["mountain_bikers_2023","game_boy_color_owners"],"mapping":{"mountain_bikers_2023":"bikers_segment","game_boy_color_owners":"retro_gamers"}},"entities":[{"properties":["ID","LAST_ACTIVITY_TIME","BALANCE"],"relationshipSlug":"owned-accounts-copy"}]},"destinationMapping":{"actionId":"action_123","settings":{"webhookUrl":"https://example.com/webhook","method":"POST"}}} # AddActivationToAudienceAlphaInput |
50+
add_activation_to_audience_alpha_input = {"activationType":"Audience Entered","activationName":"Test Activation","enabled":true,"performFirstSync":true,"personalization":{"profile":{"properties":["mountain_bikers_2023","game_boy_color_owners"],"mapping":{"mountain_bikers_2023":"bikers_segment","game_boy_color_owners":"retro_gamers"}},"entities":[{"properties":["ID","LAST_ACTIVITY_TIME","BALANCE"],"relationshipSlug":"owned-accounts-copy"}]},"destinationMapping":{"actionId":"action_123","settings":{"webhookUrl":"https://example.com/webhook","method":"POST"}}} # AddActivationToAudienceAlphaInput |
5151

5252
try:
5353
# Add Activation to Audience

segment_public_api/models/add_activation_to_audience_alpha_input.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,13 @@ class AddActivationToAudienceAlphaInput(BaseModel):
2828
"""
2929
Input to create an activation. # noqa: E501
3030
"""
31-
destination_id: StrictStr = Field(..., alias="destinationId", description="The Destination id.")
3231
enabled: Optional[StrictBool] = Field(None, description="Whether the event emitter should be created in an enabled state. Will trigger an audience run if enabled.")
3332
perform_first_sync: StrictBool = Field(..., alias="performFirstSync", description="Whether to perform the first sync so the activation events are generated on the first audience sync.")
3433
activation_type: StrictStr = Field(..., alias="activationType", description="Type of activation trigger.")
3534
activation_name: StrictStr = Field(..., alias="activationName", description="Name of the activation.")
3635
personalization: PersonalizationInput = Field(...)
3736
destination_mapping: DestinationSubscriptionConfiguration = Field(..., alias="destinationMapping")
38-
__properties = ["destinationId", "enabled", "performFirstSync", "activationType", "activationName", "personalization", "destinationMapping"]
37+
__properties = ["enabled", "performFirstSync", "activationType", "activationName", "personalization", "destinationMapping"]
3938

4039
class Config:
4140
"""Pydantic configuration"""
@@ -79,7 +78,6 @@ def from_dict(cls, obj: dict) -> AddActivationToAudienceAlphaInput:
7978
return AddActivationToAudienceAlphaInput.parse_obj(obj)
8079

8180
_obj = AddActivationToAudienceAlphaInput.parse_obj({
82-
"destination_id": obj.get("destinationId"),
8381
"enabled": obj.get("enabled"),
8482
"perform_first_sync": obj.get("performFirstSync"),
8583
"activation_type": obj.get("activationType"),

0 commit comments

Comments
 (0)