-
Notifications
You must be signed in to change notification settings - Fork 428
/
Copy path_models.py
58 lines (53 loc) · 1.31 KB
/
_models.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
from tableauserverclient import *
# TODO why aren't these available in the tsc namespace? Probably a bug.
from tableauserverclient.models import (
DataAccelerationReportItem,
Credentials,
ServerInfoItem,
Resource,
TableauItem,
)
def get_defined_models():
# nothing clever here: list was manually copied from tsc/models/__init__.py
return [
BackgroundJobItem,
ConnectionItem,
DataAccelerationReportItem,
DataAlertItem,
DatasourceItem,
FlowItem,
GroupItem,
JobItem,
MetricItem,
PermissionsRule,
ProjectItem,
RevisionItem,
ScheduleItem,
SubscriptionItem,
Credentials,
JWTAuth,
TableauAuth,
PersonalAccessTokenAuth,
ServerInfoItem,
SiteItem,
TaskItem,
UserItem,
ViewItem,
WebhookItem,
WorkbookItem,
PaginationItem,
Permission.Mode,
Permission.Capability,
DailyInterval,
WeeklyInterval,
MonthlyInterval,
HourlyInterval,
TableItem,
Target,
]
def get_unimplemented_models():
return [
FavoriteItem, # no repr because there is no state
Resource, # list of type names
TableauItem, # should be an interface
]