From f2df0191e26c66548cb002994d1a3ebe24f7c90c Mon Sep 17 00:00:00 2001 From: APIs and Common Services team Date: Sun, 8 Sep 2024 00:10:27 +0000 Subject: [PATCH] Automated SDK update This updates the SDK from internal repo commit segmentio/public-api@f7ab7bae. --- 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 cdb91c23..aa015889 100644 --- a/segment_public_api/models/audience_summary.py +++ b/segment_public_api/models/audience_summary.py @@ -22,7 +22,7 @@ from typing import Optional from pydantic import BaseModel, Field, StrictBool, StrictStr from segment_public_api.models.audience_options import AudienceOptions -from segment_public_api.models.definition import Definition +from segment_public_api.models.definition1 import Definition1 class AudienceSummary(BaseModel): """ @@ -34,7 +34,7 @@ class AudienceSummary(BaseModel): description: Optional[StrictStr] = Field(None, 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.") @@ -96,7 +96,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 7bbdcf48..591f1e33 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 from segment_public_api.models.trait_options import TraitOptions class ComputedTraitSummary(BaseModel): @@ -34,7 +34,7 @@ class ComputedTraitSummary(BaseModel): description: Optional[StrictStr] = Field(None, 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.") @@ -96,7 +96,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 d86b2cfe..834a764d 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. For guidance on using the query language, see the [Segment documentation site](https://segment.com/docs/api/public-api/query-language).") + type: StrictStr = Field(..., description="The underlying data type being aggregated for this computed trait. Possible values: users, accounts.") __properties = ["query", "type"] @validator('type') diff --git a/segment_public_api/models/definition1.py b/segment_public_api/models/definition1.py index 83e8d852..4c28ebe5 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. For guidance on using the query language, see the [Segment documentation site](https://segment.com/docs/api/public-api/query-language).") - 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"] @validator('type')