Skip to content

Commit 16b9cb4

Browse files
committed
[generator] Regenerated the latest typedef models
1 parent fdd7d01 commit 16b9cb4

14 files changed

+1234
-209
lines changed

docs/asset/tableaudashboardfield.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.. _tableaudashboardfield:
2+
3+
TableauDashboardField
4+
=====================
5+
6+
.. module:: pyatlan.model.assets
7+
:no-index:
8+
9+
.. autoclass:: TableauDashboardField
10+
:members:

docs/asset/tableauworksheetfield.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.. _tableauworksheetfield:
2+
3+
TableauWorksheetField
4+
=====================
5+
6+
.. module:: pyatlan.model.assets
7+
:no-index:
8+
9+
.. autoclass:: TableauWorksheetField
10+
:members:

docs/assets.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,7 @@ You can interact with all of the following different kinds of assets:
323323
asset/tableau
324324
asset/tableaucalculatedfield
325325
asset/tableaudashboard
326+
asset/tableaudashboardfield
326327
asset/tableaudatasource
327328
asset/tableaudatasourcefield
328329
asset/tableauflow
@@ -331,6 +332,7 @@ You can interact with all of the following different kinds of assets:
331332
asset/tableausite
332333
asset/tableauworkbook
333334
asset/tableauworksheet
335+
asset/tableauworksheetfield
334336
asset/tag
335337
asset/tagattachment
336338
asset/task

pyatlan/model/assets/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@
7676
"SnowflakeStage",
7777
"SnowflakeStream",
7878
"DatabricksUnityCatalogTag",
79-
"Database",
8079
"CalculationView",
80+
"Database",
8181
"Procedure",
8282
"SnowflakeTag",
8383
"MatillionGroup",
@@ -233,9 +233,11 @@
233233
"anaplan_dimension": ["AnaplanDimension"],
234234
"anaplan_view": ["AnaplanView"],
235235
"tableau_workbook": ["TableauWorkbook"],
236+
"tableau_worksheet_field": ["TableauWorksheetField"],
236237
"tableau_datasource_field": ["TableauDatasourceField"],
237238
"tableau_calculated_field": ["TableauCalculatedField"],
238239
"tableau_project": ["TableauProject"],
240+
"tableau_dashboard_field": ["TableauDashboardField"],
239241
"tableau_metric": ["TableauMetric"],
240242
"tableau_site": ["TableauSite"],
241243
"tableau_datasource": ["TableauDatasource"],

pyatlan/model/assets/__init__.pyi

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ __all__ = [
7373
"SnowflakeStage",
7474
"SnowflakeStream",
7575
"DatabricksUnityCatalogTag",
76-
"Database",
7776
"CalculationView",
77+
"Database",
7878
"Procedure",
7979
"SnowflakeTag",
8080
"MatillionGroup",
@@ -230,9 +230,11 @@ __all__ = [
230230
"AnaplanDimension",
231231
"AnaplanView",
232232
"TableauWorkbook",
233+
"TableauWorksheetField",
233234
"TableauDatasourceField",
234235
"TableauCalculatedField",
235236
"TableauProject",
237+
"TableauDashboardField",
236238
"TableauMetric",
237239
"TableauSite",
238240
"TableauDatasource",
@@ -658,6 +660,7 @@ from .superset_dataset import SupersetDataset
658660
from .tableau import Tableau
659661
from .tableau_calculated_field import TableauCalculatedField
660662
from .tableau_dashboard import TableauDashboard
663+
from .tableau_dashboard_field import TableauDashboardField
661664
from .tableau_datasource import TableauDatasource
662665
from .tableau_datasource_field import TableauDatasourceField
663666
from .tableau_flow import TableauFlow
@@ -666,6 +669,7 @@ from .tableau_project import TableauProject
666669
from .tableau_site import TableauSite
667670
from .tableau_workbook import TableauWorkbook
668671
from .tableau_worksheet import TableauWorksheet
672+
from .tableau_worksheet_field import TableauWorksheetField
669673
from .tag_attachment import TagAttachment
670674
from .task import Task
671675
from .thoughtspot import Thoughtspot

pyatlan/model/assets/a_d_l_s.py

Lines changed: 4 additions & 197 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,13 @@
88

99
from pydantic.v1 import Field, validator
1010

11-
from pyatlan.model.fields.atlan_fields import (
12-
KeywordField,
13-
KeywordTextField,
14-
RelationField,
15-
)
11+
from pyatlan.model.fields.atlan_fields import KeywordField, KeywordTextField
1612
from pyatlan.model.structs import AzureTag
1713

18-
from .azure import Azure
14+
from .object_store import ObjectStore
1915

2016

21-
class ADLS(Azure):
17+
class ADLS(ObjectStore):
2218
"""Description"""
2319

2420
type_name: str = Field(default="ADLS", allow_mutation=False)
@@ -71,66 +67,13 @@ def __setattr__(self, name, value):
7167
Tags that have been applied to this asset in Azure.
7268
"""
7369

74-
INPUT_TO_SPARK_JOBS: ClassVar[RelationField] = RelationField("inputToSparkJobs")
75-
"""
76-
TBC
77-
"""
78-
INPUT_TO_AIRFLOW_TASKS: ClassVar[RelationField] = RelationField(
79-
"inputToAirflowTasks"
80-
)
81-
"""
82-
TBC
83-
"""
84-
INPUT_TO_PROCESSES: ClassVar[RelationField] = RelationField("inputToProcesses")
85-
"""
86-
TBC
87-
"""
88-
MODEL_IMPLEMENTED_ATTRIBUTES: ClassVar[RelationField] = RelationField(
89-
"modelImplementedAttributes"
90-
)
91-
"""
92-
TBC
93-
"""
94-
OUTPUT_FROM_AIRFLOW_TASKS: ClassVar[RelationField] = RelationField(
95-
"outputFromAirflowTasks"
96-
)
97-
"""
98-
TBC
99-
"""
100-
OUTPUT_FROM_SPARK_JOBS: ClassVar[RelationField] = RelationField(
101-
"outputFromSparkJobs"
102-
)
103-
"""
104-
TBC
105-
"""
106-
MODEL_IMPLEMENTED_ENTITIES: ClassVar[RelationField] = RelationField(
107-
"modelImplementedEntities"
108-
)
109-
"""
110-
TBC
111-
"""
112-
OUTPUT_FROM_PROCESSES: ClassVar[RelationField] = RelationField(
113-
"outputFromProcesses"
114-
)
115-
"""
116-
TBC
117-
"""
118-
11970
_convenience_properties: ClassVar[List[str]] = [
12071
"adls_account_qualified_name",
12172
"adls_account_name",
12273
"azure_resource_id",
12374
"azure_location",
12475
"adls_account_secondary_location",
12576
"azure_tags",
126-
"input_to_spark_jobs",
127-
"input_to_airflow_tasks",
128-
"input_to_processes",
129-
"model_implemented_attributes",
130-
"output_from_airflow_tasks",
131-
"output_from_spark_jobs",
132-
"model_implemented_entities",
133-
"output_from_processes",
13477
]
13578

13679
@property
@@ -205,113 +148,7 @@ def azure_tags(self, azure_tags: Optional[List[AzureTag]]):
205148
self.attributes = self.Attributes()
206149
self.attributes.azure_tags = azure_tags
207150

208-
@property
209-
def input_to_spark_jobs(self) -> Optional[List[SparkJob]]:
210-
return None if self.attributes is None else self.attributes.input_to_spark_jobs
211-
212-
@input_to_spark_jobs.setter
213-
def input_to_spark_jobs(self, input_to_spark_jobs: Optional[List[SparkJob]]):
214-
if self.attributes is None:
215-
self.attributes = self.Attributes()
216-
self.attributes.input_to_spark_jobs = input_to_spark_jobs
217-
218-
@property
219-
def input_to_airflow_tasks(self) -> Optional[List[AirflowTask]]:
220-
return (
221-
None if self.attributes is None else self.attributes.input_to_airflow_tasks
222-
)
223-
224-
@input_to_airflow_tasks.setter
225-
def input_to_airflow_tasks(
226-
self, input_to_airflow_tasks: Optional[List[AirflowTask]]
227-
):
228-
if self.attributes is None:
229-
self.attributes = self.Attributes()
230-
self.attributes.input_to_airflow_tasks = input_to_airflow_tasks
231-
232-
@property
233-
def input_to_processes(self) -> Optional[List[Process]]:
234-
return None if self.attributes is None else self.attributes.input_to_processes
235-
236-
@input_to_processes.setter
237-
def input_to_processes(self, input_to_processes: Optional[List[Process]]):
238-
if self.attributes is None:
239-
self.attributes = self.Attributes()
240-
self.attributes.input_to_processes = input_to_processes
241-
242-
@property
243-
def model_implemented_attributes(self) -> Optional[List[ModelAttribute]]:
244-
return (
245-
None
246-
if self.attributes is None
247-
else self.attributes.model_implemented_attributes
248-
)
249-
250-
@model_implemented_attributes.setter
251-
def model_implemented_attributes(
252-
self, model_implemented_attributes: Optional[List[ModelAttribute]]
253-
):
254-
if self.attributes is None:
255-
self.attributes = self.Attributes()
256-
self.attributes.model_implemented_attributes = model_implemented_attributes
257-
258-
@property
259-
def output_from_airflow_tasks(self) -> Optional[List[AirflowTask]]:
260-
return (
261-
None
262-
if self.attributes is None
263-
else self.attributes.output_from_airflow_tasks
264-
)
265-
266-
@output_from_airflow_tasks.setter
267-
def output_from_airflow_tasks(
268-
self, output_from_airflow_tasks: Optional[List[AirflowTask]]
269-
):
270-
if self.attributes is None:
271-
self.attributes = self.Attributes()
272-
self.attributes.output_from_airflow_tasks = output_from_airflow_tasks
273-
274-
@property
275-
def output_from_spark_jobs(self) -> Optional[List[SparkJob]]:
276-
return (
277-
None if self.attributes is None else self.attributes.output_from_spark_jobs
278-
)
279-
280-
@output_from_spark_jobs.setter
281-
def output_from_spark_jobs(self, output_from_spark_jobs: Optional[List[SparkJob]]):
282-
if self.attributes is None:
283-
self.attributes = self.Attributes()
284-
self.attributes.output_from_spark_jobs = output_from_spark_jobs
285-
286-
@property
287-
def model_implemented_entities(self) -> Optional[List[ModelEntity]]:
288-
return (
289-
None
290-
if self.attributes is None
291-
else self.attributes.model_implemented_entities
292-
)
293-
294-
@model_implemented_entities.setter
295-
def model_implemented_entities(
296-
self, model_implemented_entities: Optional[List[ModelEntity]]
297-
):
298-
if self.attributes is None:
299-
self.attributes = self.Attributes()
300-
self.attributes.model_implemented_entities = model_implemented_entities
301-
302-
@property
303-
def output_from_processes(self) -> Optional[List[Process]]:
304-
return (
305-
None if self.attributes is None else self.attributes.output_from_processes
306-
)
307-
308-
@output_from_processes.setter
309-
def output_from_processes(self, output_from_processes: Optional[List[Process]]):
310-
if self.attributes is None:
311-
self.attributes = self.Attributes()
312-
self.attributes.output_from_processes = output_from_processes
313-
314-
class Attributes(Azure.Attributes):
151+
class Attributes(ObjectStore.Attributes):
315152
adls_account_qualified_name: Optional[str] = Field(default=None, description="")
316153
adls_account_name: Optional[str] = Field(default=None, description="")
317154
azure_resource_id: Optional[str] = Field(default=None, description="")
@@ -320,30 +157,6 @@ class Attributes(Azure.Attributes):
320157
default=None, description=""
321158
)
322159
azure_tags: Optional[List[AzureTag]] = Field(default=None, description="")
323-
input_to_spark_jobs: Optional[List[SparkJob]] = Field(
324-
default=None, description=""
325-
) # relationship
326-
input_to_airflow_tasks: Optional[List[AirflowTask]] = Field(
327-
default=None, description=""
328-
) # relationship
329-
input_to_processes: Optional[List[Process]] = Field(
330-
default=None, description=""
331-
) # relationship
332-
model_implemented_attributes: Optional[List[ModelAttribute]] = Field(
333-
default=None, description=""
334-
) # relationship
335-
output_from_airflow_tasks: Optional[List[AirflowTask]] = Field(
336-
default=None, description=""
337-
) # relationship
338-
output_from_spark_jobs: Optional[List[SparkJob]] = Field(
339-
default=None, description=""
340-
) # relationship
341-
model_implemented_entities: Optional[List[ModelEntity]] = Field(
342-
default=None, description=""
343-
) # relationship
344-
output_from_processes: Optional[List[Process]] = Field(
345-
default=None, description=""
346-
) # relationship
347160

348161
attributes: ADLS.Attributes = Field(
349162
default_factory=lambda: ADLS.Attributes(),
@@ -355,10 +168,4 @@ class Attributes(Azure.Attributes):
355168
)
356169

357170

358-
from .core.airflow_task import AirflowTask # noqa: E402, F401
359-
from .core.model_attribute import ModelAttribute # noqa: E402, F401
360-
from .core.model_entity import ModelEntity # noqa: E402, F401
361-
from .core.process import Process # noqa: E402, F401
362-
from .core.spark_job import SparkJob # noqa: E402, F401
363-
364171
ADLS.Attributes.update_forward_refs()

pyatlan/model/assets/core/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,8 @@
190190
SnowflakeStage.Attributes.update_forward_refs(**localns)
191191
SnowflakeStream.Attributes.update_forward_refs(**localns)
192192
DatabricksUnityCatalogTag.Attributes.update_forward_refs(**localns)
193-
Database.Attributes.update_forward_refs(**localns)
194193
CalculationView.Attributes.update_forward_refs(**localns)
194+
Database.Attributes.update_forward_refs(**localns)
195195
Procedure.Attributes.update_forward_refs(**localns)
196196
SnowflakeTag.Attributes.update_forward_refs(**localns)
197197
MatillionGroup.Attributes.update_forward_refs(**localns)

0 commit comments

Comments
 (0)