Skip to content

Commit bf946b2

Browse files
authored
Merge pull request #877 from atlanhq/GOV-729/fix-atlan-tag-display-name
fix: allow displayName field in AtlanTag classification model
2 parents 2b48e48 + 694dfbe commit bf946b2

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

pyatlan/model/core.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,11 @@ class Config:
294294
example=EntityStatus.ACTIVE,
295295
alias="entityStatus",
296296
)
297+
display_name: Optional[str] = Field(
298+
default=None,
299+
description="Human-readable display name of the Atlan tag.",
300+
alias="displayName",
301+
)
297302
propagate: Optional[bool] = Field(
298303
default=False,
299304
description="whether to propagate the Atlan tag (True) or not (False)",

pyatlan_v9/model/assets/asset.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1215,7 +1215,8 @@ def set_custom_metadata(self, custom_metadata, client=None) -> None:
12151215
from pyatlan_v9.model.custom_metadata import CustomMetadataProxy
12161216

12171217
proxy = CustomMetadataProxy(
1218-
business_attributes=self.business_attributes, client=client or custom_metadata._client
1218+
business_attributes=self.business_attributes,
1219+
client=client or custom_metadata._client,
12191220
)
12201221
proxy.set_custom_metadata(custom_metadata=custom_metadata)
12211222
self.business_attributes = proxy.business_attributes

0 commit comments

Comments
 (0)