Skip to content

Commit e51369c

Browse files
jorwoodsjacalata
andauthored
feat: SiteAuthConfiguration str and repr (#1641)
* feat: SiteAuthConfiguration str and repr Gives SiteAuthConfiguration methods for str and repr calls to ensure consistent display of the object. * style: black --------- Co-authored-by: Jordan Woods <[email protected]> Co-authored-by: Jac <[email protected]>
1 parent 61062dc commit e51369c

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tableauserverclient/models/site_item.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1230,6 +1230,17 @@ def from_response(cls, resp: bytes, ns: dict) -> list["SiteAuthConfiguration"]:
12301230
all_auth_configs.append(auth_config)
12311231
return all_auth_configs
12321232

1233+
def __str__(self):
1234+
return (
1235+
f"{self.__class__.__qualname__}(auth_setting={self.auth_setting}, "
1236+
f"enabled={self.enabled}, "
1237+
f"idp_configuration_id={self.idp_configuration_id}, "
1238+
f"idp_configuration_name={self.idp_configuration_name})"
1239+
)
1240+
1241+
def __repr__(self):
1242+
return f"<{str(self)}>"
1243+
12331244

12341245
# Used to convert string represented boolean to a boolean type
12351246
def string_to_bool(s: str) -> bool:

0 commit comments

Comments
 (0)