Skip to content

Commit 24b58c3

Browse files
authored
Merge pull request #920 from atlanhq/sync-models-BLDX-1206
feat(models): sync pyatlan_v9 models from models@BLDX-1206 + fix 4 collection errors [BLDX-1206]
2 parents ff5ef1b + 66f1a40 commit 24b58c3

475 files changed

Lines changed: 23664 additions & 546 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/aio/translators.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ async def translate(self, data: dict[str, Any]) -> dict[str, Any]:
6060
tag_names = []
6161
for tag_id in raw_json[key]:
6262
name = await self.client.atlan_tag_cache.get_name_for_id(tag_id)
63-
tag_names.append(AtlanTagName(name or DELETED_))
63+
tag_names.append(name or DELETED_)
6464
raw_json[key] = tag_names
6565

6666
for key in self._CLASSIFICATION_KEYS:
@@ -82,11 +82,10 @@ async def translate(self, data: dict[str, Any]) -> dict[str, Any]:
8282
if not attr_id:
8383
continue
8484
attributes = classification.get("attributes")
85-
if not attributes or not attributes.get(attr_id):
86-
continue
85+
source_tags = attributes.get(attr_id) if attributes else None
8786
classification[self._SOURCE_ATTACHMENTS] = [
8887
msgspec.convert(source_tag["attributes"], type=SourceTagAttachment)
89-
for source_tag in attributes.get(attr_id)
88+
for source_tag in (source_tags or [])
9089
if isinstance(source_tag, dict) and source_tag.get("attributes")
9190
]
9291

pyatlan_v9/model/assets/__init__.py

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
"RelatedADLSContainer",
4646
"RelatedADLSObject",
4747
],
48+
"_init_agentic": ["Agentic", "RelatedAgentic"],
4849
"_init_ai": [
4950
"AI",
5051
"AIApplication",
@@ -116,6 +117,7 @@
116117
"RelatedApplicationField",
117118
],
118119
"_init_app_workflow_run": ["AppWorkflowRun", "RelatedAppWorkflowRun"],
120+
"_init_artifact": ["Artifact", "RelatedArtifact"],
119121
"_init_asset": [
120122
"Asset",
121123
"DataSet",
@@ -254,6 +256,14 @@
254256
"RelatedCognosReport",
255257
],
256258
"_init_connection": ["Connection", "RelatedConnection"],
259+
"_init_context": [
260+
"Context",
261+
"ContextArtifact",
262+
"ContextRepository",
263+
"RelatedContext",
264+
"RelatedContextArtifact",
265+
"RelatedContextRepository",
266+
],
257267
"_init_cosmos_mongo_db": [
258268
"CosmosMongoDB",
259269
"CosmosMongoDBAccount",
@@ -473,6 +483,12 @@
473483
"RelatedFlowReusableUnit",
474484
],
475485
"_init_form": ["Form", "RelatedForm", "RelatedResponse"],
486+
"_init_gcp_dataplex": [
487+
"GCPDataplex",
488+
"GCPDataplexAspectType",
489+
"RelatedGCPDataplex",
490+
"RelatedGCPDataplexAspectType",
491+
],
476492
"_init_gcs": [
477493
"GCS",
478494
"GCSBucket",
@@ -515,6 +531,14 @@
515531
"RelatedKafkaField",
516532
"RelatedKafkaTopic",
517533
],
534+
"_init_knowledge": [
535+
"Knowledge",
536+
"KnowledgeFile",
537+
"KnowledgeFolder",
538+
"RelatedKnowledge",
539+
"RelatedKnowledgeFile",
540+
"RelatedKnowledgeFolder",
541+
],
518542
"_init_looker": [
519543
"Looker",
520544
"LookerDashboard",
@@ -904,6 +928,8 @@
904928
"SisenseFolder",
905929
"SisenseWidget",
906930
],
931+
"_init_skill": ["RelatedSkill", "Skill"],
932+
"_init_skill_artifact": ["RelatedSkillArtifact", "SkillArtifact"],
907933
"_init_snowflake": [
908934
"RelatedSnowflake",
909935
"RelatedSnowflakeAIModelContext",
@@ -1047,6 +1073,16 @@
10471073
"ThoughtspotView",
10481074
"ThoughtspotWorksheet",
10491075
],
1076+
"_init_unstructured_v2": [
1077+
"RelatedUnstructuredV2",
1078+
"RelatedUnstructuredV2Container",
1079+
"RelatedUnstructuredV2Folder",
1080+
"RelatedUnstructuredV2Object",
1081+
"UnstructuredV2",
1082+
"UnstructuredV2Container",
1083+
"UnstructuredV2Folder",
1084+
"UnstructuredV2Object",
1085+
],
10501086
"_init_workflow": ["RelatedWorkflow", "RelatedWorkflowRun", "Workflow"],
10511087
}
10521088

pyatlan_v9/model/assets/__init__.pyi

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ __all__ = [
3838
"RelatedADLSAccount",
3939
"RelatedADLSContainer",
4040
"RelatedADLSObject",
41+
"Agentic",
42+
"RelatedAgentic",
4143
"AI",
4244
"AIApplication",
4345
"AIModel",
@@ -98,6 +100,8 @@ __all__ = [
98100
"RelatedApplicationField",
99101
"AppWorkflowRun",
100102
"RelatedAppWorkflowRun",
103+
"Artifact",
104+
"RelatedArtifact",
101105
"Asset",
102106
"DataSet",
103107
"Incident",
@@ -215,6 +219,12 @@ __all__ = [
215219
"RelatedCognosReport",
216220
"Connection",
217221
"RelatedConnection",
222+
"Context",
223+
"ContextArtifact",
224+
"ContextRepository",
225+
"RelatedContext",
226+
"RelatedContextArtifact",
227+
"RelatedContextRepository",
218228
"CosmosMongoDB",
219229
"CosmosMongoDBAccount",
220230
"CosmosMongoDBCollection",
@@ -405,6 +415,10 @@ __all__ = [
405415
"Form",
406416
"RelatedForm",
407417
"RelatedResponse",
418+
"GCPDataplex",
419+
"GCPDataplexAspectType",
420+
"RelatedGCPDataplex",
421+
"RelatedGCPDataplexAspectType",
408422
"GCS",
409423
"GCSBucket",
410424
"GCSObject",
@@ -439,6 +453,12 @@ __all__ = [
439453
"RelatedKafkaConsumerGroup",
440454
"RelatedKafkaField",
441455
"RelatedKafkaTopic",
456+
"Knowledge",
457+
"KnowledgeFile",
458+
"KnowledgeFolder",
459+
"RelatedKnowledge",
460+
"RelatedKnowledgeFile",
461+
"RelatedKnowledgeFolder",
442462
"Looker",
443463
"LookerDashboard",
444464
"LookerExplore",
@@ -776,6 +796,10 @@ __all__ = [
776796
"SisenseDatamodelTable",
777797
"SisenseFolder",
778798
"SisenseWidget",
799+
"RelatedSkill",
800+
"Skill",
801+
"RelatedSkillArtifact",
802+
"SkillArtifact",
779803
"RelatedSnowflake",
780804
"RelatedSnowflakeAIModelContext",
781805
"RelatedSnowflakeAIModelVersion",
@@ -900,6 +924,14 @@ __all__ = [
900924
"ThoughtspotTable",
901925
"ThoughtspotView",
902926
"ThoughtspotWorksheet",
927+
"RelatedUnstructuredV2",
928+
"RelatedUnstructuredV2Container",
929+
"RelatedUnstructuredV2Folder",
930+
"RelatedUnstructuredV2Object",
931+
"UnstructuredV2",
932+
"UnstructuredV2Container",
933+
"UnstructuredV2Folder",
934+
"UnstructuredV2Object",
903935
"RelatedWorkflow",
904936
"RelatedWorkflowRun",
905937
"Workflow",
@@ -931,6 +963,8 @@ from .adls_related import RelatedADLS as RelatedADLS
931963
from .adls_related import RelatedADLSAccount as RelatedADLSAccount
932964
from .adls_related import RelatedADLSContainer as RelatedADLSContainer
933965
from .adls_related import RelatedADLSObject as RelatedADLSObject
966+
from .agentic import Agentic as Agentic
967+
from .agentic_related import RelatedAgentic as RelatedAgentic
934968
from .ai import AI as AI
935969
from .ai_application import AIApplication as AIApplication
936970
from .ai_model import AIModel as AIModel
@@ -993,6 +1027,8 @@ from .app_workflow_run import AppWorkflowRun as AppWorkflowRun
9931027
from .app_workflow_run_related import RelatedAppWorkflowRun as RelatedAppWorkflowRun
9941028
from .application import Application as Application
9951029
from .application_field import ApplicationField as ApplicationField
1030+
from .artifact import Artifact as Artifact
1031+
from .artifact_related import RelatedArtifact as RelatedArtifact
9961032
from .asset import Asset as Asset
9971033
from .asset_grouping import AssetGrouping as AssetGrouping
9981034
from .asset_grouping_collection import (
@@ -1138,6 +1174,12 @@ from .column import Column as Column
11381174
from .column_process import ColumnProcess as ColumnProcess
11391175
from .connection import Connection as Connection
11401176
from .connection_related import RelatedConnection as RelatedConnection
1177+
from .context import Context as Context
1178+
from .context_artifact import ContextArtifact as ContextArtifact
1179+
from .context_related import RelatedContext as RelatedContext
1180+
from .context_related import RelatedContextArtifact as RelatedContextArtifact
1181+
from .context_related import RelatedContextRepository as RelatedContextRepository
1182+
from .context_repository import ContextRepository as ContextRepository
11411183
from .cosmos_mongo_db import CosmosMongoDB as CosmosMongoDB
11421184
from .cosmos_mongo_db_account import CosmosMongoDBAccount as CosmosMongoDBAccount
11431185
from .cosmos_mongo_db_collection import (
@@ -1391,6 +1433,12 @@ from .form import Form as Form
13911433
from .form_related import RelatedForm as RelatedForm
13921434
from .form_related import RelatedResponse as RelatedResponse
13931435
from .function import Function as Function
1436+
from .gcp_dataplex import GCPDataplex as GCPDataplex
1437+
from .gcp_dataplex_aspect_type import GCPDataplexAspectType as GCPDataplexAspectType
1438+
from .gcp_dataplex_related import RelatedGCPDataplex as RelatedGCPDataplex
1439+
from .gcp_dataplex_related import (
1440+
RelatedGCPDataplexAspectType as RelatedGCPDataplexAspectType,
1441+
)
13941442
from .gcs import GCS as GCS
13951443
from .gcs_bucket import GCSBucket as GCSBucket
13961444
from .gcs_object import GCSObject as GCSObject
@@ -1428,6 +1476,12 @@ from .kafka_related import RelatedKafkaConsumerGroup as RelatedKafkaConsumerGrou
14281476
from .kafka_related import RelatedKafkaField as RelatedKafkaField
14291477
from .kafka_related import RelatedKafkaTopic as RelatedKafkaTopic
14301478
from .kafka_topic import KafkaTopic as KafkaTopic
1479+
from .knowledge import Knowledge as Knowledge
1480+
from .knowledge_file import KnowledgeFile as KnowledgeFile
1481+
from .knowledge_folder import KnowledgeFolder as KnowledgeFolder
1482+
from .knowledge_related import RelatedKnowledge as RelatedKnowledge
1483+
from .knowledge_related import RelatedKnowledgeFile as RelatedKnowledgeFile
1484+
from .knowledge_related import RelatedKnowledgeFolder as RelatedKnowledgeFolder
14311485
from .link import Link as Link
14321486
from .looker import Looker as Looker
14331487
from .looker_dashboard import LookerDashboard as LookerDashboard
@@ -1833,6 +1887,10 @@ from .sisense_related import (
18331887
from .sisense_related import RelatedSisenseFolder as RelatedSisenseFolder
18341888
from .sisense_related import RelatedSisenseWidget as RelatedSisenseWidget
18351889
from .sisense_widget import SisenseWidget as SisenseWidget
1890+
from .skill import Skill as Skill
1891+
from .skill_artifact import SkillArtifact as SkillArtifact
1892+
from .skill_artifact_related import RelatedSkillArtifact as RelatedSkillArtifact
1893+
from .skill_related import RelatedSkill as RelatedSkill
18361894
from .snowflake import Snowflake as Snowflake
18371895
from .snowflake_ai_model_context import (
18381896
SnowflakeAIModelContext as SnowflakeAIModelContext,
@@ -1993,6 +2051,22 @@ from .thoughtspot_related import (
19932051
from .thoughtspot_table import ThoughtspotTable as ThoughtspotTable
19942052
from .thoughtspot_view import ThoughtspotView as ThoughtspotView
19952053
from .thoughtspot_worksheet import ThoughtspotWorksheet as ThoughtspotWorksheet
2054+
from .unstructured_v2 import UnstructuredV2 as UnstructuredV2
2055+
from .unstructured_v2_container import (
2056+
UnstructuredV2Container as UnstructuredV2Container,
2057+
)
2058+
from .unstructured_v2_folder import UnstructuredV2Folder as UnstructuredV2Folder
2059+
from .unstructured_v2_object import UnstructuredV2Object as UnstructuredV2Object
2060+
from .unstructured_v2_related import RelatedUnstructuredV2 as RelatedUnstructuredV2
2061+
from .unstructured_v2_related import (
2062+
RelatedUnstructuredV2Container as RelatedUnstructuredV2Container,
2063+
)
2064+
from .unstructured_v2_related import (
2065+
RelatedUnstructuredV2Folder as RelatedUnstructuredV2Folder,
2066+
)
2067+
from .unstructured_v2_related import (
2068+
RelatedUnstructuredV2Object as RelatedUnstructuredV2Object,
2069+
)
19962070
from .view import View as View
19972071
from .workflow import Workflow as Workflow
19982072
from .workflow_related import RelatedWorkflow as RelatedWorkflow
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Auto-generated by PythonMsgspecRenderer.pkl - DO NOT EDIT
2+
# SPDX-License-Identifier: Apache-2.0
3+
# Copyright 2024 Atlan Pte. Ltd.
4+
5+
"""
6+
Agentic module exports.
7+
8+
This module provides convenient imports for all Agentic types and their Related variants.
9+
"""
10+
11+
from .agentic import Agentic
12+
from .agentic_related import RelatedAgentic
13+
14+
__all__ = [
15+
"Agentic",
16+
"RelatedAgentic",
17+
]
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Auto-generated by PythonMsgspecRenderer.pkl - DO NOT EDIT
2+
# SPDX-License-Identifier: Apache-2.0
3+
# Copyright 2024 Atlan Pte. Ltd.
4+
5+
"""
6+
Artifact module exports.
7+
8+
This module provides convenient imports for all Artifact types and their Related variants.
9+
"""
10+
11+
from .artifact import Artifact
12+
from .artifact_related import RelatedArtifact
13+
14+
__all__ = [
15+
"Artifact",
16+
"RelatedArtifact",
17+
]
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Auto-generated by PythonMsgspecRenderer.pkl - DO NOT EDIT
2+
# SPDX-License-Identifier: Apache-2.0
3+
# Copyright 2024 Atlan Pte. Ltd.
4+
5+
"""
6+
Context module exports.
7+
8+
This module provides convenient imports for all Context types and their Related variants.
9+
"""
10+
11+
from .context import Context
12+
from .context_artifact import ContextArtifact
13+
from .context_related import (
14+
RelatedContext,
15+
RelatedContextArtifact,
16+
RelatedContextRepository,
17+
)
18+
from .context_repository import ContextRepository
19+
20+
__all__ = [
21+
"Context",
22+
"ContextArtifact",
23+
"ContextRepository",
24+
"RelatedContext",
25+
"RelatedContextArtifact",
26+
"RelatedContextRepository",
27+
]
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Auto-generated by PythonMsgspecRenderer.pkl - DO NOT EDIT
2+
# SPDX-License-Identifier: Apache-2.0
3+
# Copyright 2024 Atlan Pte. Ltd.
4+
5+
"""
6+
GCPDataplex module exports.
7+
8+
This module provides convenient imports for all GCPDataplex types and their Related variants.
9+
"""
10+
11+
from .gcp_dataplex import GCPDataplex
12+
from .gcp_dataplex_aspect_type import GCPDataplexAspectType
13+
from .gcp_dataplex_related import RelatedGCPDataplex, RelatedGCPDataplexAspectType
14+
15+
__all__ = [
16+
"GCPDataplex",
17+
"GCPDataplexAspectType",
18+
"RelatedGCPDataplex",
19+
"RelatedGCPDataplexAspectType",
20+
]
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Auto-generated by PythonMsgspecRenderer.pkl - DO NOT EDIT
2+
# SPDX-License-Identifier: Apache-2.0
3+
# Copyright 2024 Atlan Pte. Ltd.
4+
5+
"""
6+
Knowledge module exports.
7+
8+
This module provides convenient imports for all Knowledge types and their Related variants.
9+
"""
10+
11+
from .knowledge import Knowledge
12+
from .knowledge_file import KnowledgeFile
13+
from .knowledge_folder import KnowledgeFolder
14+
from .knowledge_related import (
15+
RelatedKnowledge,
16+
RelatedKnowledgeFile,
17+
RelatedKnowledgeFolder,
18+
)
19+
20+
__all__ = [
21+
"Knowledge",
22+
"KnowledgeFile",
23+
"KnowledgeFolder",
24+
"RelatedKnowledge",
25+
"RelatedKnowledgeFile",
26+
"RelatedKnowledgeFolder",
27+
]

0 commit comments

Comments
 (0)