21
21
22
22
from typing import Optional
23
23
from pydantic import BaseModel , Field , StrictBool , StrictStr
24
- from segment_public_api .models .definition1 import Definition1
24
+ from segment_public_api .models .definition import Definition
25
25
26
26
class ComputedTraitSummary (BaseModel ):
27
27
"""
@@ -33,7 +33,7 @@ class ComputedTraitSummary(BaseModel):
33
33
description : StrictStr = Field (..., description = "Description of the computed trait." )
34
34
key : StrictStr = Field (..., description = "Key for the computed trait." )
35
35
enabled : StrictBool = Field (..., description = "Enabled/disabled status for the computed trait." )
36
- definition : Optional [Definition1 ] = Field (...)
36
+ definition : Optional [Definition ] = Field (...)
37
37
status : Optional [StrictStr ] = Field (None , description = "Status for the computed trait. Possible values: Backfilling, Computing, Failed, Live, Awaiting Destinations, Disabled." )
38
38
created_by : StrictStr = Field (..., alias = "createdBy" , description = "User id who created the computed trait." )
39
39
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:
91
91
"description" : obj .get ("description" ),
92
92
"key" : obj .get ("key" ),
93
93
"enabled" : obj .get ("enabled" ),
94
- "definition" : Definition1 .from_dict (obj .get ("definition" )) if obj .get ("definition" ) is not None else None ,
94
+ "definition" : Definition .from_dict (obj .get ("definition" )) if obj .get ("definition" ) is not None else None ,
95
95
"status" : obj .get ("status" ),
96
96
"created_by" : obj .get ("createdBy" ),
97
97
"updated_by" : obj .get ("updatedBy" ),
0 commit comments