Skip to content

Commit aeac574

Browse files
Aryamanz29claude
andcommitted
feat: regenerate pyatlan_v9 models with Python 3.9 compatible type annotations
All struct field annotations now use Union[X, None, UnsetType] instead of X | None | UnsetType, and List/Dict/Set from typing instead of builtin subscripting. Verified passing 6376 tests on both Python 3.9 and 3.11. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 3bb4755 commit aeac574

477 files changed

Lines changed: 50586 additions & 44549 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

pyatlan_v9/model/assets/adf.py

Lines changed: 82 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
from __future__ import annotations
1616

17-
from typing import Any, ClassVar, Union
17+
from typing import Any, ClassVar, List, Union
1818

1919
from msgspec import UNSET, UnsetType
2020

@@ -93,96 +93,102 @@ class ADF(Asset):
9393

9494
type_name: Union[str, UnsetType] = "ADF"
9595

96-
adf_factory_name: str | None | UnsetType = UNSET
96+
adf_factory_name: Union[str, None, UnsetType] = UNSET
9797
"""Defines the name of the factory in which this asset exists."""
9898

99-
adf_asset_folder_path: str | None | UnsetType = UNSET
99+
adf_asset_folder_path: Union[str, None, UnsetType] = UNSET
100100
"""Defines the folder path in which this ADF asset exists."""
101101

102-
input_to_airflow_tasks: list[RelatedAirflowTask] | None | UnsetType = UNSET
102+
input_to_airflow_tasks: Union[List[RelatedAirflowTask], None, UnsetType] = UNSET
103103
"""Tasks to which this asset provides input."""
104104

105-
output_from_airflow_tasks: list[RelatedAirflowTask] | None | UnsetType = UNSET
105+
output_from_airflow_tasks: Union[List[RelatedAirflowTask], None, UnsetType] = UNSET
106106
"""Tasks from which this asset is output."""
107107

108-
anomalo_checks: list[RelatedAnomaloCheck] | None | UnsetType = UNSET
108+
anomalo_checks: Union[List[RelatedAnomaloCheck], None, UnsetType] = UNSET
109109
"""Checks that run on this asset."""
110110

111-
application: RelatedApplication | None | UnsetType = UNSET
111+
application: Union[RelatedApplication, None, UnsetType] = UNSET
112112
"""Application owning the Asset."""
113113

114-
application_field: RelatedApplicationField | None | UnsetType = UNSET
114+
application_field: Union[RelatedApplicationField, None, UnsetType] = UNSET
115115
"""ApplicationField owning the Asset."""
116116

117-
output_port_data_products: list[RelatedDataProduct] | None | UnsetType = UNSET
117+
output_port_data_products: Union[List[RelatedDataProduct], None, UnsetType] = UNSET
118118
"""Data products for which this asset is an output port."""
119119

120-
input_port_data_products: list[RelatedDataProduct] | None | UnsetType = UNSET
120+
input_port_data_products: Union[List[RelatedDataProduct], None, UnsetType] = UNSET
121121
"""Data products for which this asset is an input port."""
122122

123-
model_implemented_entities: list[RelatedModelEntity] | None | UnsetType = UNSET
123+
model_implemented_entities: Union[List[RelatedModelEntity], None, UnsetType] = UNSET
124124
"""Entities implemented by this asset."""
125125

126-
model_implemented_attributes: list[RelatedModelAttribute] | None | UnsetType = UNSET
126+
model_implemented_attributes: Union[
127+
List[RelatedModelAttribute], None, UnsetType
128+
] = UNSET
127129
"""Attributes implemented by this asset."""
128130

129-
metrics: list[RelatedMetric] | None | UnsetType = UNSET
131+
metrics: Union[List[RelatedMetric], None, UnsetType] = UNSET
130132
""""""
131133

132-
dq_base_dataset_rules: list[RelatedDataQualityRule] | None | UnsetType = UNSET
134+
dq_base_dataset_rules: Union[List[RelatedDataQualityRule], None, UnsetType] = UNSET
133135
"""Rules that are applied on this dataset."""
134136

135-
dq_reference_dataset_rules: list[RelatedDataQualityRule] | None | UnsetType = UNSET
137+
dq_reference_dataset_rules: Union[List[RelatedDataQualityRule], None, UnsetType] = (
138+
UNSET
139+
)
136140
"""Rules where this dataset is referenced."""
137141

138-
meanings: list[RelatedAtlasGlossaryTerm] | None | UnsetType = UNSET
142+
meanings: Union[List[RelatedAtlasGlossaryTerm], None, UnsetType] = UNSET
139143
"""Glossary terms that are linked to this asset."""
140144

141-
mc_monitors: list[RelatedMCMonitor] | None | UnsetType = UNSET
145+
mc_monitors: Union[List[RelatedMCMonitor], None, UnsetType] = UNSET
142146
"""Monitors that observe this asset."""
143147

144-
mc_incidents: list[RelatedMCIncident] | None | UnsetType = UNSET
148+
mc_incidents: Union[List[RelatedMCIncident], None, UnsetType] = UNSET
145149
""""""
146150

147-
partial_child_fields: list[RelatedPartialField] | None | UnsetType = UNSET
151+
partial_child_fields: Union[List[RelatedPartialField], None, UnsetType] = UNSET
148152
"""Partial fields contained in the asset."""
149153

150-
partial_child_objects: list[RelatedPartialObject] | None | UnsetType = UNSET
154+
partial_child_objects: Union[List[RelatedPartialObject], None, UnsetType] = UNSET
151155
"""Partial objects contained in the asset."""
152156

153-
input_to_processes: list[RelatedProcess] | None | UnsetType = UNSET
157+
input_to_processes: Union[List[RelatedProcess], None, UnsetType] = UNSET
154158
"""Processes to which this asset provides input."""
155159

156-
output_from_processes: list[RelatedProcess] | None | UnsetType = UNSET
160+
output_from_processes: Union[List[RelatedProcess], None, UnsetType] = UNSET
157161
"""Processes from which this asset is produced as output."""
158162

159-
user_def_relationship_to: list[RelatedReferenceable] | None | UnsetType = UNSET
163+
user_def_relationship_to: Union[List[RelatedReferenceable], None, UnsetType] = UNSET
160164
""""""
161165

162-
user_def_relationship_from: list[RelatedReferenceable] | None | UnsetType = UNSET
166+
user_def_relationship_from: Union[List[RelatedReferenceable], None, UnsetType] = (
167+
UNSET
168+
)
163169
""""""
164170

165-
files: list[RelatedFile] | None | UnsetType = UNSET
171+
files: Union[List[RelatedFile], None, UnsetType] = UNSET
166172
""""""
167173

168-
links: list[RelatedLink] | None | UnsetType = UNSET
174+
links: Union[List[RelatedLink], None, UnsetType] = UNSET
169175
"""Links that are attached to this asset."""
170176

171-
readme: RelatedReadme | None | UnsetType = UNSET
177+
readme: Union[RelatedReadme, None, UnsetType] = UNSET
172178
"""README that is linked to this asset."""
173179

174-
schema_registry_subjects: list[RelatedSchemaRegistrySubject] | None | UnsetType = (
175-
UNSET
176-
)
180+
schema_registry_subjects: Union[
181+
List[RelatedSchemaRegistrySubject], None, UnsetType
182+
] = UNSET
177183
""""""
178184

179-
soda_checks: list[RelatedSodaCheck] | None | UnsetType = UNSET
185+
soda_checks: Union[List[RelatedSodaCheck], None, UnsetType] = UNSET
180186
""""""
181187

182-
input_to_spark_jobs: list[RelatedSparkJob] | None | UnsetType = UNSET
188+
input_to_spark_jobs: Union[List[RelatedSparkJob], None, UnsetType] = UNSET
183189
""""""
184190

185-
output_from_spark_jobs: list[RelatedSparkJob] | None | UnsetType = UNSET
191+
output_from_spark_jobs: Union[List[RelatedSparkJob], None, UnsetType] = UNSET
186192
""""""
187193

188194
def __post_init__(self) -> None:
@@ -243,117 +249,123 @@ def from_json(json_data: str | bytes, serde: Serde | None = None) -> ADF:
243249
class ADFAttributes(AssetAttributes):
244250
"""ADF-specific attributes for nested API format."""
245251

246-
adf_factory_name: str | None | UnsetType = UNSET
252+
adf_factory_name: Union[str, None, UnsetType] = UNSET
247253
"""Defines the name of the factory in which this asset exists."""
248254

249-
adf_asset_folder_path: str | None | UnsetType = UNSET
255+
adf_asset_folder_path: Union[str, None, UnsetType] = UNSET
250256
"""Defines the folder path in which this ADF asset exists."""
251257

252258

253259
class ADFRelationshipAttributes(AssetRelationshipAttributes):
254260
"""ADF-specific relationship attributes for nested API format."""
255261

256-
input_to_airflow_tasks: list[RelatedAirflowTask] | None | UnsetType = UNSET
262+
input_to_airflow_tasks: Union[List[RelatedAirflowTask], None, UnsetType] = UNSET
257263
"""Tasks to which this asset provides input."""
258264

259-
output_from_airflow_tasks: list[RelatedAirflowTask] | None | UnsetType = UNSET
265+
output_from_airflow_tasks: Union[List[RelatedAirflowTask], None, UnsetType] = UNSET
260266
"""Tasks from which this asset is output."""
261267

262-
anomalo_checks: list[RelatedAnomaloCheck] | None | UnsetType = UNSET
268+
anomalo_checks: Union[List[RelatedAnomaloCheck], None, UnsetType] = UNSET
263269
"""Checks that run on this asset."""
264270

265-
application: RelatedApplication | None | UnsetType = UNSET
271+
application: Union[RelatedApplication, None, UnsetType] = UNSET
266272
"""Application owning the Asset."""
267273

268-
application_field: RelatedApplicationField | None | UnsetType = UNSET
274+
application_field: Union[RelatedApplicationField, None, UnsetType] = UNSET
269275
"""ApplicationField owning the Asset."""
270276

271-
output_port_data_products: list[RelatedDataProduct] | None | UnsetType = UNSET
277+
output_port_data_products: Union[List[RelatedDataProduct], None, UnsetType] = UNSET
272278
"""Data products for which this asset is an output port."""
273279

274-
input_port_data_products: list[RelatedDataProduct] | None | UnsetType = UNSET
280+
input_port_data_products: Union[List[RelatedDataProduct], None, UnsetType] = UNSET
275281
"""Data products for which this asset is an input port."""
276282

277-
model_implemented_entities: list[RelatedModelEntity] | None | UnsetType = UNSET
283+
model_implemented_entities: Union[List[RelatedModelEntity], None, UnsetType] = UNSET
278284
"""Entities implemented by this asset."""
279285

280-
model_implemented_attributes: list[RelatedModelAttribute] | None | UnsetType = UNSET
286+
model_implemented_attributes: Union[
287+
List[RelatedModelAttribute], None, UnsetType
288+
] = UNSET
281289
"""Attributes implemented by this asset."""
282290

283-
metrics: list[RelatedMetric] | None | UnsetType = UNSET
291+
metrics: Union[List[RelatedMetric], None, UnsetType] = UNSET
284292
""""""
285293

286-
dq_base_dataset_rules: list[RelatedDataQualityRule] | None | UnsetType = UNSET
294+
dq_base_dataset_rules: Union[List[RelatedDataQualityRule], None, UnsetType] = UNSET
287295
"""Rules that are applied on this dataset."""
288296

289-
dq_reference_dataset_rules: list[RelatedDataQualityRule] | None | UnsetType = UNSET
297+
dq_reference_dataset_rules: Union[List[RelatedDataQualityRule], None, UnsetType] = (
298+
UNSET
299+
)
290300
"""Rules where this dataset is referenced."""
291301

292-
meanings: list[RelatedAtlasGlossaryTerm] | None | UnsetType = UNSET
302+
meanings: Union[List[RelatedAtlasGlossaryTerm], None, UnsetType] = UNSET
293303
"""Glossary terms that are linked to this asset."""
294304

295-
mc_monitors: list[RelatedMCMonitor] | None | UnsetType = UNSET
305+
mc_monitors: Union[List[RelatedMCMonitor], None, UnsetType] = UNSET
296306
"""Monitors that observe this asset."""
297307

298-
mc_incidents: list[RelatedMCIncident] | None | UnsetType = UNSET
308+
mc_incidents: Union[List[RelatedMCIncident], None, UnsetType] = UNSET
299309
""""""
300310

301-
partial_child_fields: list[RelatedPartialField] | None | UnsetType = UNSET
311+
partial_child_fields: Union[List[RelatedPartialField], None, UnsetType] = UNSET
302312
"""Partial fields contained in the asset."""
303313

304-
partial_child_objects: list[RelatedPartialObject] | None | UnsetType = UNSET
314+
partial_child_objects: Union[List[RelatedPartialObject], None, UnsetType] = UNSET
305315
"""Partial objects contained in the asset."""
306316

307-
input_to_processes: list[RelatedProcess] | None | UnsetType = UNSET
317+
input_to_processes: Union[List[RelatedProcess], None, UnsetType] = UNSET
308318
"""Processes to which this asset provides input."""
309319

310-
output_from_processes: list[RelatedProcess] | None | UnsetType = UNSET
320+
output_from_processes: Union[List[RelatedProcess], None, UnsetType] = UNSET
311321
"""Processes from which this asset is produced as output."""
312322

313-
user_def_relationship_to: list[RelatedReferenceable] | None | UnsetType = UNSET
323+
user_def_relationship_to: Union[List[RelatedReferenceable], None, UnsetType] = UNSET
314324
""""""
315325

316-
user_def_relationship_from: list[RelatedReferenceable] | None | UnsetType = UNSET
326+
user_def_relationship_from: Union[List[RelatedReferenceable], None, UnsetType] = (
327+
UNSET
328+
)
317329
""""""
318330

319-
files: list[RelatedFile] | None | UnsetType = UNSET
331+
files: Union[List[RelatedFile], None, UnsetType] = UNSET
320332
""""""
321333

322-
links: list[RelatedLink] | None | UnsetType = UNSET
334+
links: Union[List[RelatedLink], None, UnsetType] = UNSET
323335
"""Links that are attached to this asset."""
324336

325-
readme: RelatedReadme | None | UnsetType = UNSET
337+
readme: Union[RelatedReadme, None, UnsetType] = UNSET
326338
"""README that is linked to this asset."""
327339

328-
schema_registry_subjects: list[RelatedSchemaRegistrySubject] | None | UnsetType = (
329-
UNSET
330-
)
340+
schema_registry_subjects: Union[
341+
List[RelatedSchemaRegistrySubject], None, UnsetType
342+
] = UNSET
331343
""""""
332344

333-
soda_checks: list[RelatedSodaCheck] | None | UnsetType = UNSET
345+
soda_checks: Union[List[RelatedSodaCheck], None, UnsetType] = UNSET
334346
""""""
335347

336-
input_to_spark_jobs: list[RelatedSparkJob] | None | UnsetType = UNSET
348+
input_to_spark_jobs: Union[List[RelatedSparkJob], None, UnsetType] = UNSET
337349
""""""
338350

339-
output_from_spark_jobs: list[RelatedSparkJob] | None | UnsetType = UNSET
351+
output_from_spark_jobs: Union[List[RelatedSparkJob], None, UnsetType] = UNSET
340352
""""""
341353

342354

343355
class ADFNested(AssetNested):
344356
"""ADF in nested API format for high-performance serialization."""
345357

346-
attributes: ADFAttributes | UnsetType = UNSET
347-
relationship_attributes: ADFRelationshipAttributes | UnsetType = UNSET
348-
append_relationship_attributes: ADFRelationshipAttributes | UnsetType = UNSET
349-
remove_relationship_attributes: ADFRelationshipAttributes | UnsetType = UNSET
358+
attributes: Union[ADFAttributes, UnsetType] = UNSET
359+
relationship_attributes: Union[ADFRelationshipAttributes, UnsetType] = UNSET
360+
append_relationship_attributes: Union[ADFRelationshipAttributes, UnsetType] = UNSET
361+
remove_relationship_attributes: Union[ADFRelationshipAttributes, UnsetType] = UNSET
350362

351363

352364
# =============================================================================
353365
# CONVERSION HELPERS & CONSTANTS
354366
# =============================================================================
355367

356-
_ADF_REL_FIELDS: list[str] = [
368+
_ADF_REL_FIELDS: List[str] = [
357369
*_ASSET_REL_FIELDS,
358370
"input_to_airflow_tasks",
359371
"output_from_airflow_tasks",

0 commit comments

Comments
 (0)