Skip to content

Commit 5e1a30f

Browse files
committed
feat: add str and repr to oidc item
1 parent fe0dee4 commit 5e1a30f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tableauserverclient/models/oidc_item.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,18 @@ def __init__(self) -> None:
2828
self.client_authentication: Optional[str] = None
2929
self.voluntary_acr_values: Optional[str] = None
3030

31+
def __str__(self) -> str:
32+
return (
33+
f"{self.__class__.__qualname__}(enabled={self.enabled}, "
34+
f"test_login_url={self.test_login_url}, "
35+
f"idp_configuration_name={self.idp_configuration_name}, "
36+
f"idp_configuration_id={self.idp_configuration_id}, "
37+
f"client_id={self.client_id})"
38+
)
39+
40+
def __repr__(self) -> str:
41+
return f"<{str(self)}>"
42+
3143
@classmethod
3244
def from_response(cls, raw_xml: bytes, ns) -> "SiteOIDCConfiguration":
3345
"""

0 commit comments

Comments
 (0)