Skip to content

Commit 3bb4755

Browse files
Aryamanz29claude
andcommitted
[feat] Regenerate pyatlan_v9 models from models@BLDX-434
- Updated 60 existing asset files with new fields/changes - Added 5 new Snowflake Semantic files (dimension, fact, logical_table, metric, view) - Ruff-cleaned 339 unused import errors Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
1 parent 17c05fa commit 3bb4755

65 files changed

Lines changed: 6527 additions & 7 deletions

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/_init_snowflake.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,44 @@
1414
RelatedSnowflakeAIModelVersion,
1515
RelatedSnowflakeDynamicTable,
1616
RelatedSnowflakePipe,
17+
RelatedSnowflakeSemanticDimension,
18+
RelatedSnowflakeSemanticFact,
19+
RelatedSnowflakeSemanticLogicalTable,
20+
RelatedSnowflakeSemanticMetric,
21+
RelatedSnowflakeSemanticView,
1722
RelatedSnowflakeStage,
1823
RelatedSnowflakeStream,
1924
RelatedSnowflakeTag,
2025
)
2126
from .snowflake import Snowflake
2227
from .snowflake_ai_model_context import SnowflakeAIModelContext
2328
from .snowflake_ai_model_version import SnowflakeAIModelVersion
29+
from .snowflake_semantic_dimension import SnowflakeSemanticDimension
30+
from .snowflake_semantic_fact import SnowflakeSemanticFact
31+
from .snowflake_semantic_logical_table import SnowflakeSemanticLogicalTable
32+
from .snowflake_semantic_metric import SnowflakeSemanticMetric
33+
from .snowflake_semantic_view import SnowflakeSemanticView
2434

2535
__all__ = [
2636
"RelatedSnowflake",
2737
"RelatedSnowflakeAIModelContext",
2838
"RelatedSnowflakeAIModelVersion",
2939
"RelatedSnowflakeDynamicTable",
3040
"RelatedSnowflakePipe",
41+
"RelatedSnowflakeSemanticDimension",
42+
"RelatedSnowflakeSemanticFact",
43+
"RelatedSnowflakeSemanticLogicalTable",
44+
"RelatedSnowflakeSemanticMetric",
45+
"RelatedSnowflakeSemanticView",
3146
"RelatedSnowflakeStage",
3247
"RelatedSnowflakeStream",
3348
"RelatedSnowflakeTag",
3449
"Snowflake",
3550
"SnowflakeAIModelContext",
3651
"SnowflakeAIModelVersion",
52+
"SnowflakeSemanticDimension",
53+
"SnowflakeSemanticFact",
54+
"SnowflakeSemanticLogicalTable",
55+
"SnowflakeSemanticMetric",
56+
"SnowflakeSemanticView",
3757
]

pyatlan_v9/model/assets/bigquery_routine.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
from .referenceable_related import RelatedReferenceable
4848
from .resource_related import RelatedFile, RelatedLink, RelatedReadme
4949
from .schema_registry_related import RelatedSchemaRegistrySubject
50+
from .snowflake_related import RelatedSnowflakeSemanticLogicalTable
5051
from .soda_related import RelatedSodaCheck
5152
from .spark_related import RelatedSparkJob
5253
from .sql_related import RelatedSchema
@@ -136,6 +137,7 @@ class BigqueryRoutine(Asset):
136137
ATLAN_SCHEMA: ClassVar[Any] = None
137138
SQL_PROCESSES: ClassVar[Any] = None
138139
SCHEMA_REGISTRY_SUBJECTS: ClassVar[Any] = None
140+
SNOWFLAKE_SEMANTIC_LOGICAL_TABLES: ClassVar[Any] = None
139141
SODA_CHECKS: ClassVar[Any] = None
140142
INPUT_TO_SPARK_JOBS: ClassVar[Any] = None
141143
OUTPUT_FROM_SPARK_JOBS: ClassVar[Any] = None
@@ -352,6 +354,11 @@ class BigqueryRoutine(Asset):
352354
)
353355
""""""
354356

357+
snowflake_semantic_logical_tables: (
358+
list[RelatedSnowflakeSemanticLogicalTable] | None | UnsetType
359+
) = UNSET
360+
"""Semantic logical tables that reference this physical table or view."""
361+
355362
soda_checks: list[RelatedSodaCheck] | None | UnsetType = UNSET
356363
""""""
357364

@@ -635,6 +642,11 @@ class BigqueryRoutineRelationshipAttributes(AssetRelationshipAttributes):
635642
)
636643
""""""
637644

645+
snowflake_semantic_logical_tables: (
646+
list[RelatedSnowflakeSemanticLogicalTable] | None | UnsetType
647+
) = UNSET
648+
"""Semantic logical tables that reference this physical table or view."""
649+
638650
soda_checks: list[RelatedSodaCheck] | None | UnsetType = UNSET
639651
""""""
640652

@@ -697,6 +709,7 @@ class BigqueryRoutineNested(AssetNested):
697709
"atlan_schema",
698710
"sql_processes",
699711
"schema_registry_subjects",
712+
"snowflake_semantic_logical_tables",
700713
"soda_checks",
701714
"input_to_spark_jobs",
702715
"output_from_spark_jobs",
@@ -1001,6 +1014,9 @@ def _bigquery_routine_from_nested_bytes(data: bytes, serde: Serde) -> BigqueryRo
10011014
BigqueryRoutine.ATLAN_SCHEMA = RelationField("atlanSchema")
10021015
BigqueryRoutine.SQL_PROCESSES = RelationField("sqlProcesses")
10031016
BigqueryRoutine.SCHEMA_REGISTRY_SUBJECTS = RelationField("schemaRegistrySubjects")
1017+
BigqueryRoutine.SNOWFLAKE_SEMANTIC_LOGICAL_TABLES = RelationField(
1018+
"snowflakeSemanticLogicalTables"
1019+
)
10041020
BigqueryRoutine.SODA_CHECKS = RelationField("sodaChecks")
10051021
BigqueryRoutine.INPUT_TO_SPARK_JOBS = RelationField("inputToSparkJobs")
10061022
BigqueryRoutine.OUTPUT_FROM_SPARK_JOBS = RelationField("outputFromSparkJobs")

pyatlan_v9/model/assets/calculation_view.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
from .referenceable_related import RelatedReferenceable
4949
from .resource_related import RelatedFile, RelatedLink, RelatedReadme
5050
from .schema_registry_related import RelatedSchemaRegistrySubject
51+
from .snowflake_related import RelatedSnowflakeSemanticLogicalTable
5152
from .soda_related import RelatedSodaCheck
5253
from .spark_related import RelatedSparkJob
5354
from pyatlan_v9.model.conversion_utils import (
@@ -126,6 +127,7 @@ class CalculationView(Asset):
126127
ATLAN_SCHEMA: ClassVar[Any] = None
127128
COLUMNS: ClassVar[Any] = None
128129
SCHEMA_REGISTRY_SUBJECTS: ClassVar[Any] = None
130+
SNOWFLAKE_SEMANTIC_LOGICAL_TABLES: ClassVar[Any] = None
129131
SODA_CHECKS: ClassVar[Any] = None
130132
INPUT_TO_SPARK_JOBS: ClassVar[Any] = None
131133
OUTPUT_FROM_SPARK_JOBS: ClassVar[Any] = None
@@ -306,6 +308,11 @@ class CalculationView(Asset):
306308
)
307309
""""""
308310

311+
snowflake_semantic_logical_tables: (
312+
list[RelatedSnowflakeSemanticLogicalTable] | None | UnsetType
313+
) = UNSET
314+
"""Semantic logical tables that reference this physical table or view."""
315+
309316
soda_checks: list[RelatedSodaCheck] | None | UnsetType = UNSET
310317
""""""
311318

@@ -561,6 +568,11 @@ class CalculationViewRelationshipAttributes(AssetRelationshipAttributes):
561568
)
562569
""""""
563570

571+
snowflake_semantic_logical_tables: (
572+
list[RelatedSnowflakeSemanticLogicalTable] | None | UnsetType
573+
) = UNSET
574+
"""Semantic logical tables that reference this physical table or view."""
575+
564576
soda_checks: list[RelatedSodaCheck] | None | UnsetType = UNSET
565577
""""""
566578

@@ -623,6 +635,7 @@ class CalculationViewNested(AssetNested):
623635
"atlan_schema",
624636
"columns",
625637
"schema_registry_subjects",
638+
"snowflake_semantic_logical_tables",
626639
"soda_checks",
627640
"input_to_spark_jobs",
628641
"output_from_spark_jobs",
@@ -872,6 +885,9 @@ def _calculation_view_from_nested_bytes(data: bytes, serde: Serde) -> Calculatio
872885
CalculationView.ATLAN_SCHEMA = RelationField("atlanSchema")
873886
CalculationView.COLUMNS = RelationField("columns")
874887
CalculationView.SCHEMA_REGISTRY_SUBJECTS = RelationField("schemaRegistrySubjects")
888+
CalculationView.SNOWFLAKE_SEMANTIC_LOGICAL_TABLES = RelationField(
889+
"snowflakeSemanticLogicalTables"
890+
)
875891
CalculationView.SODA_CHECKS = RelationField("sodaChecks")
876892
CalculationView.INPUT_TO_SPARK_JOBS = RelationField("inputToSparkJobs")
877893
CalculationView.OUTPUT_FROM_SPARK_JOBS = RelationField("outputFromSparkJobs")

pyatlan_v9/model/assets/column.py

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,10 @@
5353
from .referenceable_related import RelatedReferenceable
5454
from .resource_related import RelatedFile, RelatedLink, RelatedReadme
5555
from .schema_registry_related import RelatedSchemaRegistrySubject
56-
from .snowflake_related import RelatedSnowflakeDynamicTable
56+
from .snowflake_related import (
57+
RelatedSnowflakeDynamicTable,
58+
RelatedSnowflakeSemanticLogicalTable,
59+
)
5760
from .soda_related import RelatedSodaCheck
5861
from .spark_related import RelatedSparkJob
5962
from pyatlan.model.enums import AtlanConnectorType
@@ -224,6 +227,7 @@ class Column(Asset):
224227
QUERIES: ClassVar[Any] = None
225228
SCHEMA_REGISTRY_SUBJECTS: ClassVar[Any] = None
226229
SNOWFLAKE_DYNAMIC_TABLE: ClassVar[Any] = None
230+
SNOWFLAKE_SEMANTIC_LOGICAL_TABLES: ClassVar[Any] = None
227231
SODA_CHECKS: ClassVar[Any] = None
228232
INPUT_TO_SPARK_JOBS: ClassVar[Any] = None
229233
OUTPUT_FROM_SPARK_JOBS: ClassVar[Any] = None
@@ -651,6 +655,11 @@ class Column(Asset):
651655
snowflake_dynamic_table: RelatedSnowflakeDynamicTable | None | UnsetType = UNSET
652656
"""Snowflake dynamic table in which this column exists."""
653657

658+
snowflake_semantic_logical_tables: (
659+
list[RelatedSnowflakeSemanticLogicalTable] | None | UnsetType
660+
) = UNSET
661+
"""Semantic logical tables that reference this physical table or view."""
662+
654663
soda_checks: list[RelatedSodaCheck] | None | UnsetType = UNSET
655664
""""""
656665

@@ -1347,6 +1356,11 @@ class ColumnRelationshipAttributes(AssetRelationshipAttributes):
13471356
snowflake_dynamic_table: RelatedSnowflakeDynamicTable | None | UnsetType = UNSET
13481357
"""Snowflake dynamic table in which this column exists."""
13491358

1359+
snowflake_semantic_logical_tables: (
1360+
list[RelatedSnowflakeSemanticLogicalTable] | None | UnsetType
1361+
) = UNSET
1362+
"""Semantic logical tables that reference this physical table or view."""
1363+
13501364
soda_checks: list[RelatedSodaCheck] | None | UnsetType = UNSET
13511365
""""""
13521366

@@ -1423,6 +1437,7 @@ class ColumnNested(AssetNested):
14231437
"queries",
14241438
"schema_registry_subjects",
14251439
"snowflake_dynamic_table",
1440+
"snowflake_semantic_logical_tables",
14261441
"soda_checks",
14271442
"input_to_spark_jobs",
14281443
"output_from_spark_jobs",
@@ -1906,6 +1921,9 @@ def _column_from_nested_bytes(data: bytes, serde: Serde) -> Column:
19061921
Column.QUERIES = RelationField("queries")
19071922
Column.SCHEMA_REGISTRY_SUBJECTS = RelationField("schemaRegistrySubjects")
19081923
Column.SNOWFLAKE_DYNAMIC_TABLE = RelationField("snowflakeDynamicTable")
1924+
Column.SNOWFLAKE_SEMANTIC_LOGICAL_TABLES = RelationField(
1925+
"snowflakeSemanticLogicalTables"
1926+
)
19091927
Column.SODA_CHECKS = RelationField("sodaChecks")
19101928
Column.INPUT_TO_SPARK_JOBS = RelationField("inputToSparkJobs")
19111929
Column.OUTPUT_FROM_SPARK_JOBS = RelationField("outputFromSparkJobs")

pyatlan_v9/model/assets/cosmos_mongo_db_collection.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
from .referenceable_related import RelatedReferenceable
5050
from .resource_related import RelatedFile, RelatedLink, RelatedReadme
5151
from .schema_registry_related import RelatedSchemaRegistrySubject
52+
from .snowflake_related import RelatedSnowflakeSemanticLogicalTable
5253
from .soda_related import RelatedSodaCheck
5354
from .spark_related import RelatedSparkJob
5455
from .sql_related import (
@@ -177,6 +178,7 @@ class CosmosMongoDBCollection(Asset):
177178
FACTS: ClassVar[Any] = None
178179
PARTITIONS: ClassVar[Any] = None
179180
SCHEMA_REGISTRY_SUBJECTS: ClassVar[Any] = None
181+
SNOWFLAKE_SEMANTIC_LOGICAL_TABLES: ClassVar[Any] = None
180182
SODA_CHECKS: ClassVar[Any] = None
181183
INPUT_TO_SPARK_JOBS: ClassVar[Any] = None
182184
OUTPUT_FROM_SPARK_JOBS: ClassVar[Any] = None
@@ -520,6 +522,11 @@ class CosmosMongoDBCollection(Asset):
520522
)
521523
""""""
522524

525+
snowflake_semantic_logical_tables: (
526+
list[RelatedSnowflakeSemanticLogicalTable] | None | UnsetType
527+
) = UNSET
528+
"""Semantic logical tables that reference this physical table or view."""
529+
523530
soda_checks: list[RelatedSodaCheck] | None | UnsetType = UNSET
524531
""""""
525532

@@ -938,6 +945,11 @@ class CosmosMongoDBCollectionRelationshipAttributes(AssetRelationshipAttributes)
938945
)
939946
""""""
940947

948+
snowflake_semantic_logical_tables: (
949+
list[RelatedSnowflakeSemanticLogicalTable] | None | UnsetType
950+
) = UNSET
951+
"""Semantic logical tables that reference this physical table or view."""
952+
941953
soda_checks: list[RelatedSodaCheck] | None | UnsetType = UNSET
942954
""""""
943955

@@ -1009,6 +1021,7 @@ class CosmosMongoDBCollectionNested(AssetNested):
10091021
"facts",
10101022
"partitions",
10111023
"schema_registry_subjects",
1024+
"snowflake_semantic_logical_tables",
10121025
"soda_checks",
10131026
"input_to_spark_jobs",
10141027
"output_from_spark_jobs",
@@ -1502,6 +1515,9 @@ def _cosmos_mongo_db_collection_from_nested_bytes(
15021515
CosmosMongoDBCollection.SCHEMA_REGISTRY_SUBJECTS = RelationField(
15031516
"schemaRegistrySubjects"
15041517
)
1518+
CosmosMongoDBCollection.SNOWFLAKE_SEMANTIC_LOGICAL_TABLES = RelationField(
1519+
"snowflakeSemanticLogicalTables"
1520+
)
15051521
CosmosMongoDBCollection.SODA_CHECKS = RelationField("sodaChecks")
15061522
CosmosMongoDBCollection.INPUT_TO_SPARK_JOBS = RelationField("inputToSparkJobs")
15071523
CosmosMongoDBCollection.OUTPUT_FROM_SPARK_JOBS = RelationField("outputFromSparkJobs")

pyatlan_v9/model/assets/cosmos_mongo_db_database.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
from .referenceable_related import RelatedReferenceable
5151
from .resource_related import RelatedFile, RelatedLink, RelatedReadme
5252
from .schema_registry_related import RelatedSchemaRegistrySubject
53+
from .snowflake_related import RelatedSnowflakeSemanticLogicalTable
5354
from .soda_related import RelatedSodaCheck
5455
from .spark_related import RelatedSparkJob
5556
from .sql_related import RelatedSchema
@@ -134,6 +135,7 @@ class CosmosMongoDBDatabase(Asset):
134135
README: ClassVar[Any] = None
135136
SCHEMAS: ClassVar[Any] = None
136137
SCHEMA_REGISTRY_SUBJECTS: ClassVar[Any] = None
138+
SNOWFLAKE_SEMANTIC_LOGICAL_TABLES: ClassVar[Any] = None
137139
SODA_CHECKS: ClassVar[Any] = None
138140
INPUT_TO_SPARK_JOBS: ClassVar[Any] = None
139141
OUTPUT_FROM_SPARK_JOBS: ClassVar[Any] = None
@@ -332,6 +334,11 @@ class CosmosMongoDBDatabase(Asset):
332334
)
333335
""""""
334336

337+
snowflake_semantic_logical_tables: (
338+
list[RelatedSnowflakeSemanticLogicalTable] | None | UnsetType
339+
) = UNSET
340+
"""Semantic logical tables that reference this physical table or view."""
341+
335342
soda_checks: list[RelatedSodaCheck] | None | UnsetType = UNSET
336343
""""""
337344

@@ -603,6 +610,11 @@ class CosmosMongoDBDatabaseRelationshipAttributes(AssetRelationshipAttributes):
603610
)
604611
""""""
605612

613+
snowflake_semantic_logical_tables: (
614+
list[RelatedSnowflakeSemanticLogicalTable] | None | UnsetType
615+
) = UNSET
616+
"""Semantic logical tables that reference this physical table or view."""
617+
606618
soda_checks: list[RelatedSodaCheck] | None | UnsetType = UNSET
607619
""""""
608620

@@ -670,6 +682,7 @@ class CosmosMongoDBDatabaseNested(AssetNested):
670682
"readme",
671683
"schemas",
672684
"schema_registry_subjects",
685+
"snowflake_semantic_logical_tables",
673686
"soda_checks",
674687
"input_to_spark_jobs",
675688
"output_from_spark_jobs",
@@ -956,6 +969,9 @@ def _cosmos_mongo_db_database_from_nested_bytes(
956969
CosmosMongoDBDatabase.README = RelationField("readme")
957970
CosmosMongoDBDatabase.SCHEMAS = RelationField("schemas")
958971
CosmosMongoDBDatabase.SCHEMA_REGISTRY_SUBJECTS = RelationField("schemaRegistrySubjects")
972+
CosmosMongoDBDatabase.SNOWFLAKE_SEMANTIC_LOGICAL_TABLES = RelationField(
973+
"snowflakeSemanticLogicalTables"
974+
)
959975
CosmosMongoDBDatabase.SODA_CHECKS = RelationField("sodaChecks")
960976
CosmosMongoDBDatabase.INPUT_TO_SPARK_JOBS = RelationField("inputToSparkJobs")
961977
CosmosMongoDBDatabase.OUTPUT_FROM_SPARK_JOBS = RelationField("outputFromSparkJobs")

pyatlan_v9/model/assets/database.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
from .referenceable_related import RelatedReferenceable
4949
from .resource_related import RelatedFile, RelatedLink, RelatedReadme
5050
from .schema_registry_related import RelatedSchemaRegistrySubject
51+
from .snowflake_related import RelatedSnowflakeSemanticLogicalTable
5152
from .soda_related import RelatedSodaCheck
5253
from .spark_related import RelatedSparkJob
5354
from pyatlan_v9.model.conversion_utils import (
@@ -123,6 +124,7 @@ class Database(Asset):
123124
README: ClassVar[Any] = None
124125
SCHEMAS: ClassVar[Any] = None
125126
SCHEMA_REGISTRY_SUBJECTS: ClassVar[Any] = None
127+
SNOWFLAKE_SEMANTIC_LOGICAL_TABLES: ClassVar[Any] = None
126128
SODA_CHECKS: ClassVar[Any] = None
127129
INPUT_TO_SPARK_JOBS: ClassVar[Any] = None
128130
OUTPUT_FROM_SPARK_JOBS: ClassVar[Any] = None
@@ -291,6 +293,11 @@ class Database(Asset):
291293
)
292294
""""""
293295

296+
snowflake_semantic_logical_tables: (
297+
list[RelatedSnowflakeSemanticLogicalTable] | None | UnsetType
298+
) = UNSET
299+
"""Semantic logical tables that reference this physical table or view."""
300+
294301
soda_checks: list[RelatedSodaCheck] | None | UnsetType = UNSET
295302
""""""
296303

@@ -582,6 +589,11 @@ class DatabaseRelationshipAttributes(AssetRelationshipAttributes):
582589
)
583590
""""""
584591

592+
snowflake_semantic_logical_tables: (
593+
list[RelatedSnowflakeSemanticLogicalTable] | None | UnsetType
594+
) = UNSET
595+
"""Semantic logical tables that reference this physical table or view."""
596+
585597
soda_checks: list[RelatedSodaCheck] | None | UnsetType = UNSET
586598
""""""
587599

@@ -640,6 +652,7 @@ class DatabaseNested(AssetNested):
640652
"readme",
641653
"schemas",
642654
"schema_registry_subjects",
655+
"snowflake_semantic_logical_tables",
643656
"soda_checks",
644657
"input_to_spark_jobs",
645658
"output_from_spark_jobs",
@@ -861,6 +874,9 @@ def _database_from_nested_bytes(data: bytes, serde: Serde) -> Database:
861874
Database.README = RelationField("readme")
862875
Database.SCHEMAS = RelationField("schemas")
863876
Database.SCHEMA_REGISTRY_SUBJECTS = RelationField("schemaRegistrySubjects")
877+
Database.SNOWFLAKE_SEMANTIC_LOGICAL_TABLES = RelationField(
878+
"snowflakeSemanticLogicalTables"
879+
)
864880
Database.SODA_CHECKS = RelationField("sodaChecks")
865881
Database.INPUT_TO_SPARK_JOBS = RelationField("inputToSparkJobs")
866882
Database.OUTPUT_FROM_SPARK_JOBS = RelationField("outputFromSparkJobs")

0 commit comments

Comments
 (0)