Skip to content

Commit 77ab039

Browse files
committed
feat: SiteAuthConfiguration str and repr
Gives SiteAuthConfiguration methods for str and repr calls to ensure consistent display of the object.
1 parent d8922ed commit 77ab039

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tableauserverclient/models/site_item.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1215,6 +1215,16 @@ def from_response(cls, resp: bytes, ns: dict) -> list["SiteAuthConfiguration"]:
12151215
all_auth_configs.append(auth_config)
12161216
return all_auth_configs
12171217

1218+
def __str__(self):
1219+
return (
1220+
f"{self.__class__.__qualname__}(auth_setting={self.auth_setting}, "
1221+
f"enabled={self.enabled}, "
1222+
f"idp_configuration_id={self.idp_configuration_id}, "
1223+
f"idp_configuration_name={self.idp_configuration_name})"
1224+
)
1225+
1226+
def __repr__(self):
1227+
return f"<{str(self)}>"
12181228

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

0 commit comments

Comments
 (0)