@@ -87,7 +87,7 @@ class {{struct.name}}(AtlanObject):
87
87
is_source_tag_synced: Optional[bool] = None,
88
88
source_tag_sync_error: Optional[str] = None,
89
89
):
90
- from pyatlan.cache.source_tag_cache import SourceTagCache
90
+ from pyatlan.client.atlan import AtlanClient
91
91
"""
92
92
Create a source-synced tag attachment with
93
93
a particular value when the attachment is synced to the source.
@@ -102,7 +102,9 @@ class {{struct.name}}(AtlanObject):
102
102
:raises AtlanError: on any error communicating via the underlying APIs
103
103
:raises NotFoundError: if the source-synced tag cannot be resolved
104
104
"""
105
- tag = SourceTagCache.get_by_name(name)
105
+ tag = AtlanClient.get_current_client().source_tag_cache.get_by_name(
106
+ name
107
+ )
106
108
tag_connector_name = AtlanConnectorType._get_connector_type_from_qualified_name(
107
109
tag.qualified_name or ""
108
110
)
@@ -129,7 +131,7 @@ class {{struct.name}}(AtlanObject):
129
131
is_source_tag_synced: Optional[bool] = None,
130
132
source_tag_sync_error: Optional[str] = None,
131
133
):
132
- from pyatlan.cache.source_tag_cache import SourceTagCache
134
+ from pyatlan.client.atlan import AtlanClient
133
135
"""
134
136
Create a source-synced tag attachment with
135
137
a particular value when the attachment is synced to the source.
@@ -144,7 +146,9 @@ class {{struct.name}}(AtlanObject):
144
146
:raises AtlanError: on any error communicating via the underlying APIs
145
147
:raises NotFoundError: if the source-synced tag cannot be resolved
146
148
"""
147
- tag = SourceTagCache.get_by_qualified_name(source_tag_qualified_name)
149
+ tag = AtlanClient.get_current_client().source_tag_cache.get_by_qualified_name(
150
+ source_tag_qualified_name
151
+ )
148
152
tag_connector_name = AtlanConnectorType._get_connector_type_from_qualified_name(
149
153
source_tag_qualified_name or ""
150
154
)
0 commit comments