From 9c3811c0c0f9de4d71646ad1bcd98e1267e52799 Mon Sep 17 00:00:00 2001 From: APIs and Common Services team Date: Mon, 4 Mar 2024 20:51:35 +0000 Subject: [PATCH] Automated SDK update This updates the SDK from internal repo commit segmentio/public-api@5975a1bc. --- segment_public_api/models/audience_summary.py | 6 +++--- segment_public_api/models/computed_trait_summary.py | 6 +++--- segment_public_api/models/definition.py | 4 ++-- segment_public_api/models/definition1.py | 4 ++-- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/segment_public_api/models/audience_summary.py b/segment_public_api/models/audience_summary.py index ce157055..b7c3b9c9 100644 --- a/segment_public_api/models/audience_summary.py +++ b/segment_public_api/models/audience_summary.py @@ -21,7 +21,7 @@ from typing import Optional from pydantic import BaseModel, Field, StrictBool, StrictStr -from segment_public_api.models.definition import Definition +from segment_public_api.models.definition1 import Definition1 class AudienceSummary(BaseModel): """ @@ -33,7 +33,7 @@ class AudienceSummary(BaseModel): description: StrictStr = Field(..., description="Description of the audience.") key: StrictStr = Field(..., description="Key for the audience.") enabled: StrictBool = Field(..., description="Enabled/disabled status for the audience.") - definition: Optional[Definition] = Field(...) + definition: Optional[Definition1] = Field(...) status: Optional[StrictStr] = Field(None, description="Status for the audience. Possible values: Backfilling, Computing, Failed, Live, Awaiting Destinations, Disabled.") created_by: StrictStr = Field(..., alias="createdBy", description="User id who created the audience.") updated_by: StrictStr = Field(..., alias="updatedBy", description="User id who last updated the audience.") @@ -91,7 +91,7 @@ def from_dict(cls, obj: dict) -> AudienceSummary: "description": obj.get("description"), "key": obj.get("key"), "enabled": obj.get("enabled"), - "definition": Definition.from_dict(obj.get("definition")) if obj.get("definition") is not None else None, + "definition": Definition1.from_dict(obj.get("definition")) if obj.get("definition") is not None else None, "status": obj.get("status"), "created_by": obj.get("createdBy"), "updated_by": obj.get("updatedBy"), diff --git a/segment_public_api/models/computed_trait_summary.py b/segment_public_api/models/computed_trait_summary.py index f09e67c0..5860998b 100644 --- a/segment_public_api/models/computed_trait_summary.py +++ b/segment_public_api/models/computed_trait_summary.py @@ -21,7 +21,7 @@ from typing import Optional from pydantic import BaseModel, Field, StrictBool, StrictStr -from segment_public_api.models.definition1 import Definition1 +from segment_public_api.models.definition import Definition class ComputedTraitSummary(BaseModel): """ @@ -33,7 +33,7 @@ class ComputedTraitSummary(BaseModel): description: StrictStr = Field(..., description="Description of the computed trait.") key: StrictStr = Field(..., description="Key for the computed trait.") enabled: StrictBool = Field(..., description="Enabled/disabled status for the computed trait.") - definition: Optional[Definition1] = Field(...) + definition: Optional[Definition] = Field(...) status: Optional[StrictStr] = Field(None, description="Status for the computed trait. Possible values: Backfilling, Computing, Failed, Live, Awaiting Destinations, Disabled.") created_by: StrictStr = Field(..., alias="createdBy", description="User id who created the computed trait.") updated_by: StrictStr = Field(..., alias="updatedBy", description="User id who last updated the computed trait.") @@ -91,7 +91,7 @@ def from_dict(cls, obj: dict) -> ComputedTraitSummary: "description": obj.get("description"), "key": obj.get("key"), "enabled": obj.get("enabled"), - "definition": Definition1.from_dict(obj.get("definition")) if obj.get("definition") is not None else None, + "definition": Definition.from_dict(obj.get("definition")) if obj.get("definition") is not None else None, "status": obj.get("status"), "created_by": obj.get("createdBy"), "updated_by": obj.get("updatedBy"), diff --git a/segment_public_api/models/definition.py b/segment_public_api/models/definition.py index 108a7fe6..f80df34c 100644 --- a/segment_public_api/models/definition.py +++ b/segment_public_api/models/definition.py @@ -26,8 +26,8 @@ class Definition(BaseModel): """ Query language definition and type. # noqa: E501 """ - query: StrictStr = Field(..., description="The query language string defining the audience segmentation criteria.") - type: StrictStr = Field(..., description="The underlying data type being segmented for this audience. Possible values: users, accounts.") + query: StrictStr = Field(..., description="The query language string defining the computed trait aggregation criteria.") + type: StrictStr = Field(..., description="The underlying data type being aggregated for this computed trait. Possible values: users, accounts.") __properties = ["query", "type"] class Config: diff --git a/segment_public_api/models/definition1.py b/segment_public_api/models/definition1.py index 0475c1bd..37869a74 100644 --- a/segment_public_api/models/definition1.py +++ b/segment_public_api/models/definition1.py @@ -26,8 +26,8 @@ class Definition1(BaseModel): """ Query language definition and type. # noqa: E501 """ - query: StrictStr = Field(..., description="The query language string defining the computed trait aggregation criteria.") - type: StrictStr = Field(..., description="The underlying data type being aggregated for this computed trait. Possible values: users, accounts.") + query: StrictStr = Field(..., description="The query language string defining the audience segmentation criteria.") + type: StrictStr = Field(..., description="The underlying data type being segmented for this audience. Possible values: users, accounts.") __properties = ["query", "type"] class Config: