Skip to content

Commit

Permalink
Automated SDK update
Browse files Browse the repository at this point in the history
This updates the SDK from internal repo commit segmentio/public-api@5975a1bc.
  • Loading branch information
APIs and Common Services team committed Mar 4, 2024
1 parent f895447 commit 9c3811c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions segment_public_api/models/audience_summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
"""
Expand All @@ -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.")
Expand Down Expand Up @@ -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"),
Expand Down
6 changes: 3 additions & 3 deletions segment_public_api/models/computed_trait_summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
"""
Expand All @@ -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.")
Expand Down Expand Up @@ -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"),
Expand Down
4 changes: 2 additions & 2 deletions segment_public_api/models/definition.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions segment_public_api/models/definition1.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 9c3811c

Please sign in to comment.