We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 575f6ae commit c41fe47Copy full SHA for c41fe47
tableauserverclient/models/tableau_auth.py
@@ -1,13 +1,17 @@
1
-class Credentials:
+import abc
2
+
3
+class Credentials(abc.ABC):
4
def __init__(self, site_id=None, user_id_to_impersonate=None):
5
self.site_id = site_id or ""
6
self.user_id_to_impersonate = user_id_to_impersonate or None
7
8
@property
9
+ @abc.abstractmethod
10
def credentials(self):
11
credentials = "Credentials can be username/password, Personal Access Token, or JWT"
12
+"This method returns values to set as an attribute on the credentials element of the request"
13
14
15
def __repr__(self):
16
return "All Credentials types must have a debug display that does not print secrets"
17
0 commit comments