Skip to content

Commit

Permalink
chore: mark Credentials class and methods as abstract
Browse files Browse the repository at this point in the history
  • Loading branch information
jorwoods committed Apr 25, 2023
1 parent 575f6ae commit 31dd2c9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tableauserverclient/models/tableau_auth.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
class Credentials:
import abc


class Credentials(abc.ABC):
def __init__(self, site_id=None, user_id_to_impersonate=None):
self.site_id = site_id or ""
self.user_id_to_impersonate = user_id_to_impersonate or None

@property
@abc.abstractmethod
def credentials(self):
credentials = "Credentials can be username/password, Personal Access Token, or JWT"
+"This method returns values to set as an attribute on the credentials element of the request"

@abc.abstractmethod
def __repr__(self):
return "All Credentials types must have a debug display that does not print secrets"

Expand Down

0 comments on commit 31dd2c9

Please sign in to comment.