@@ -28,6 +28,7 @@ class Badge(Asset, type_name="Badge"):
2828 def creator (
2929 cls ,
3030 * ,
31+ client : AtlanClient ,
3132 name : StrictStr ,
3233 cm_name : str ,
3334 cm_attribute : str ,
@@ -36,6 +37,7 @@ def creator(
3637 return cls (
3738 status = EntityStatus .ACTIVE ,
3839 attributes = Badge .Attributes .create (
40+ client = client ,
3941 name = name ,
4042 cm_name = cm_name ,
4143 cm_attribute = cm_attribute ,
@@ -48,6 +50,7 @@ def creator(
4850 def create (
4951 cls ,
5052 * ,
53+ client : AtlanClient ,
5154 name : StrictStr ,
5255 cm_name : str ,
5356 cm_attribute : str ,
@@ -62,6 +65,7 @@ def create(
6265 stacklevel = 2 ,
6366 )
6467 return cls .creator (
68+ client = client ,
6569 name = name ,
6670 cm_name = cm_name ,
6771 cm_attribute = cm_attribute ,
@@ -141,8 +145,8 @@ def create(
141145 badge_conditions : List [BadgeCondition ],
142146 ) -> Badge .Attributes :
143147 validate_required_fields (
144- ["name" , "cm_name" , "cm_attribute" , "badge_conditions" ],
145- [name , cm_name , cm_attribute , badge_conditions ],
148+ ["client" , " name" , "cm_name" , "cm_attribute" , "badge_conditions" ],
149+ [client , name , cm_name , cm_attribute , badge_conditions ],
146150 )
147151 cm_id = client .custom_metadata_cache .get_id_for_name (cm_name )
148152 cm_attr_id = client .custom_metadata_cache .get_attr_id_for_name (
0 commit comments