Skip to content

Commit 841cdf1

Browse files
committed
Regenerate models
1 parent 88fe34e commit 841cdf1

3 files changed

Lines changed: 228 additions & 9 deletions

File tree

pyatlan/generator/templates/entity.jinja2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ class {{ entity_def.name }}({{super_classes[0]}} {%- if "Asset" in super_classes
536536
)
537537
else:
538538
raise ValueError(
539-
f"parent_type must be either Table, View or MaterializeView"
539+
"parent_type must be either Table, View or MaterializeView"
540540
)
541541
return ret_value
542542

pyatlan/model/assets.py

Lines changed: 219 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,7 @@ def __setattr__(self, name, value):
398398
"asset_dbt_semantic_layer_proxy_url",
399399
"asset_dbt_source_freshness_criteria",
400400
"sample_data_url",
401+
"asset_tags",
401402
]
402403

403404
@property
@@ -1493,6 +1494,16 @@ def sample_data_url(self, sample_data_url: Optional[str]):
14931494
self.attributes = self.Attributes()
14941495
self.attributes.sample_data_url = sample_data_url
14951496

1497+
@property
1498+
def asset_tags(self) -> Optional[set[str]]:
1499+
return self.attributes.asset_tags
1500+
1501+
@asset_tags.setter
1502+
def asset_tags(self, asset_tags: Optional[set[str]]):
1503+
if self.attributes is None:
1504+
self.attributes = self.Attributes()
1505+
self.attributes.asset_tags = asset_tags
1506+
14961507
_subtypes_: dict[str, type] = dict()
14971508

14981509
def __init_subclass__(cls, type_name=None):
@@ -1825,6 +1836,7 @@ class Attributes(Referenceable.Attributes):
18251836
sample_data_url: Optional[str] = Field(
18261837
None, description="", alias="sampleDataUrl"
18271838
)
1839+
asset_tags: Optional[set[str]] = Field(None, description="", alias="assetTags")
18281840
links: Optional[list[Link]] = Field(
18291841
None, description="", alias="links"
18301842
) # relationship
@@ -6149,6 +6161,80 @@ class Attributes(BI.Attributes):
61496161
)
61506162

61516163

6164+
class Thoughtspot(BI):
6165+
"""Description"""
6166+
6167+
def __setattr__(self, name, value):
6168+
if name in Thoughtspot._convience_properties:
6169+
return object.__setattr__(self, name, value)
6170+
super().__setattr__(name, value)
6171+
6172+
_convience_properties: ClassVar[list[str]] = [
6173+
"thoughtspot_chart_type",
6174+
"thoughtspot_question_text",
6175+
]
6176+
6177+
@property
6178+
def thoughtspot_chart_type(self) -> Optional[str]:
6179+
return self.attributes.thoughtspot_chart_type
6180+
6181+
@thoughtspot_chart_type.setter
6182+
def thoughtspot_chart_type(self, thoughtspot_chart_type: Optional[str]):
6183+
if self.attributes is None:
6184+
self.attributes = self.Attributes()
6185+
self.attributes.thoughtspot_chart_type = thoughtspot_chart_type
6186+
6187+
@property
6188+
def thoughtspot_question_text(self) -> Optional[str]:
6189+
return self.attributes.thoughtspot_question_text
6190+
6191+
@thoughtspot_question_text.setter
6192+
def thoughtspot_question_text(self, thoughtspot_question_text: Optional[str]):
6193+
if self.attributes is None:
6194+
self.attributes = self.Attributes()
6195+
self.attributes.thoughtspot_question_text = thoughtspot_question_text
6196+
6197+
type_name: str = Field("Thoughtspot", allow_mutation=False)
6198+
6199+
@validator("type_name")
6200+
def validate_type_name(cls, v):
6201+
if v != "Thoughtspot":
6202+
raise ValueError("must be Thoughtspot")
6203+
return v
6204+
6205+
class Attributes(BI.Attributes):
6206+
thoughtspot_chart_type: Optional[str] = Field(
6207+
None, description="", alias="thoughtspotChartType"
6208+
)
6209+
thoughtspot_question_text: Optional[str] = Field(
6210+
None, description="", alias="thoughtspotQuestionText"
6211+
)
6212+
input_to_processes: Optional[list[Process]] = Field(
6213+
None, description="", alias="inputToProcesses"
6214+
) # relationship
6215+
links: Optional[list[Link]] = Field(
6216+
None, description="", alias="links"
6217+
) # relationship
6218+
metrics: Optional[list[Metric]] = Field(
6219+
None, description="", alias="metrics"
6220+
) # relationship
6221+
readme: Optional[Readme] = Field(
6222+
None, description="", alias="readme"
6223+
) # relationship
6224+
meanings: Optional[list[AtlasGlossaryTerm]] = Field(
6225+
None, description="", alias="meanings"
6226+
) # relationship
6227+
output_from_processes: Optional[list[Process]] = Field(
6228+
None, description="", alias="outputFromProcesses"
6229+
) # relationship
6230+
6231+
attributes: "Thoughtspot.Attributes" = Field(
6232+
None,
6233+
description="Map of attributes in the instance and their values. The specific keys of this map will vary by "
6234+
"type, so are described in the sub-types of this schema.\n",
6235+
)
6236+
6237+
61526238
class PowerBI(BI):
61536239
"""Description"""
61546240

@@ -9987,9 +10073,15 @@ class Attributes(SQL.Attributes):
998710073
sql_dbt_models: Optional[list[DbtModel]] = Field(
998810074
None, description="", alias="sqlDbtModels"
998910075
) # relationship
10076+
foreign_key_to: Optional[list[Column]] = Field(
10077+
None, description="", alias="foreignKeyTo"
10078+
) # relationship
999010079
sql_dbt_sources: Optional[list[DbtSource]] = Field(
999110080
None, description="", alias="sqlDBTSources"
999210081
) # relationship
10082+
foreign_key_from: Optional[Column] = Field(
10083+
None, description="", alias="foreignKeyFrom"
10084+
) # relationship
999310085
dbt_metrics: Optional[list[DbtMetric]] = Field(
999410086
None, description="", alias="dbtMetrics"
999510087
) # relationship
@@ -13676,6 +13768,125 @@ class Attributes(QuickSight.Attributes):
1367613768
)
1367713769

1367813770

13771+
class ThoughtspotLiveboard(Thoughtspot):
13772+
"""Description"""
13773+
13774+
def __setattr__(self, name, value):
13775+
if name in ThoughtspotLiveboard._convience_properties:
13776+
return object.__setattr__(self, name, value)
13777+
super().__setattr__(name, value)
13778+
13779+
_convience_properties: ClassVar[list[str]] = []
13780+
13781+
type_name: str = Field("ThoughtspotLiveboard", allow_mutation=False)
13782+
13783+
@validator("type_name")
13784+
def validate_type_name(cls, v):
13785+
if v != "ThoughtspotLiveboard":
13786+
raise ValueError("must be ThoughtspotLiveboard")
13787+
return v
13788+
13789+
13790+
class ThoughtspotDashlet(Thoughtspot):
13791+
"""Description"""
13792+
13793+
def __setattr__(self, name, value):
13794+
if name in ThoughtspotDashlet._convience_properties:
13795+
return object.__setattr__(self, name, value)
13796+
super().__setattr__(name, value)
13797+
13798+
_convience_properties: ClassVar[list[str]] = [
13799+
"thoughtspot_liveboard_name",
13800+
"thoughtspot_liveboard_qualified_name",
13801+
]
13802+
13803+
@property
13804+
def thoughtspot_liveboard_name(self) -> Optional[str]:
13805+
return self.attributes.thoughtspot_liveboard_name
13806+
13807+
@thoughtspot_liveboard_name.setter
13808+
def thoughtspot_liveboard_name(self, thoughtspot_liveboard_name: Optional[str]):
13809+
if self.attributes is None:
13810+
self.attributes = self.Attributes()
13811+
self.attributes.thoughtspot_liveboard_name = thoughtspot_liveboard_name
13812+
13813+
@property
13814+
def thoughtspot_liveboard_qualified_name(self) -> Optional[str]:
13815+
return self.attributes.thoughtspot_liveboard_qualified_name
13816+
13817+
@thoughtspot_liveboard_qualified_name.setter
13818+
def thoughtspot_liveboard_qualified_name(
13819+
self, thoughtspot_liveboard_qualified_name: Optional[str]
13820+
):
13821+
if self.attributes is None:
13822+
self.attributes = self.Attributes()
13823+
self.attributes.thoughtspot_liveboard_qualified_name = (
13824+
thoughtspot_liveboard_qualified_name
13825+
)
13826+
13827+
type_name: str = Field("ThoughtspotDashlet", allow_mutation=False)
13828+
13829+
@validator("type_name")
13830+
def validate_type_name(cls, v):
13831+
if v != "ThoughtspotDashlet":
13832+
raise ValueError("must be ThoughtspotDashlet")
13833+
return v
13834+
13835+
class Attributes(Thoughtspot.Attributes):
13836+
thoughtspot_liveboard_name: Optional[str] = Field(
13837+
None, description="", alias="thoughtspotLiveboardName"
13838+
)
13839+
thoughtspot_liveboard_qualified_name: Optional[str] = Field(
13840+
None, description="", alias="thoughtspotLiveboardQualifiedName"
13841+
)
13842+
input_to_processes: Optional[list[Process]] = Field(
13843+
None, description="", alias="inputToProcesses"
13844+
) # relationship
13845+
thoughtspot_liveboard: Optional[ThoughtspotLiveboard] = Field(
13846+
None, description="", alias="thoughtspotLiveboard"
13847+
) # relationship
13848+
links: Optional[list[Link]] = Field(
13849+
None, description="", alias="links"
13850+
) # relationship
13851+
metrics: Optional[list[Metric]] = Field(
13852+
None, description="", alias="metrics"
13853+
) # relationship
13854+
readme: Optional[Readme] = Field(
13855+
None, description="", alias="readme"
13856+
) # relationship
13857+
meanings: Optional[list[AtlasGlossaryTerm]] = Field(
13858+
None, description="", alias="meanings"
13859+
) # relationship
13860+
output_from_processes: Optional[list[Process]] = Field(
13861+
None, description="", alias="outputFromProcesses"
13862+
) # relationship
13863+
13864+
attributes: "ThoughtspotDashlet.Attributes" = Field(
13865+
None,
13866+
description="Map of attributes in the instance and their values. The specific keys of this map will vary by "
13867+
"type, so are described in the sub-types of this schema.\n",
13868+
)
13869+
13870+
13871+
class ThoughtspotAnswer(Thoughtspot):
13872+
"""Description"""
13873+
13874+
def __setattr__(self, name, value):
13875+
if name in ThoughtspotAnswer._convience_properties:
13876+
return object.__setattr__(self, name, value)
13877+
super().__setattr__(name, value)
13878+
13879+
_convience_properties: ClassVar[list[str]] = []
13880+
13881+
type_name: str = Field("ThoughtspotAnswer", allow_mutation=False)
13882+
13883+
@validator("type_name")
13884+
def validate_type_name(cls, v):
13885+
if v != "ThoughtspotAnswer":
13886+
raise ValueError("must be ThoughtspotAnswer")
13887+
return v
13888+
13889+
1367913890
class PowerBIReport(PowerBI):
1368013891
"""Description"""
1368113892

@@ -20007,6 +20218,8 @@ def validate_type_name(cls, v):
2000720218

2000820219
QuickSight.Attributes.update_forward_refs()
2000920220

20221+
Thoughtspot.Attributes.update_forward_refs()
20222+
2001020223
PowerBI.Attributes.update_forward_refs()
2001120224

2001220225
Preset.Attributes.update_forward_refs()
@@ -20103,6 +20316,12 @@ def validate_type_name(cls, v):
2010320316

2010420317
QuickSightDataset.Attributes.update_forward_refs()
2010520318

20319+
ThoughtspotLiveboard.Attributes.update_forward_refs()
20320+
20321+
ThoughtspotDashlet.Attributes.update_forward_refs()
20322+
20323+
ThoughtspotAnswer.Attributes.update_forward_refs()
20324+
2010620325
PowerBIReport.Attributes.update_forward_refs()
2010720326

2010820327
PowerBIMeasure.Attributes.update_forward_refs()

pyatlan/model/structs.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,14 @@ class Attributes(AtlanObject):
2929
)
3030

3131

32+
class Histogram(AtlanObject):
33+
"""Description"""
34+
35+
class Attributes(AtlanObject):
36+
boundaries: set[float] = Field(None, description="", alias="boundaries")
37+
frequencies: set[float] = Field(None, description="", alias="frequencies")
38+
39+
3240
class KafkaTopicConsumption(AtlanObject):
3341
"""Description"""
3442

@@ -43,14 +51,6 @@ class Attributes(AtlanObject):
4351
)
4452

4553

46-
class Histogram(AtlanObject):
47-
"""Description"""
48-
49-
class Attributes(AtlanObject):
50-
boundaries: set[float] = Field(None, description="", alias="boundaries")
51-
frequencies: set[float] = Field(None, description="", alias="frequencies")
52-
53-
5454
class DbtMetricFilter(AtlanObject):
5555
"""Description"""
5656

0 commit comments

Comments
 (0)