forked from Bartman0/document-api-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrefresh.py
More file actions
24 lines (17 loc) · 708 Bytes
/
refresh.py
File metadata and controls
24 lines (17 loc) · 708 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
from tableaudocumentapi import RefreshEvent
class Refresh(object):
"""A class representing the refresh details inside Data Sources."""
def __init__(self, refresh_xml):
self._refreshXML = refresh_xml
self._incremental_updates = refresh_xml.get('incremental-updates')
self._increment_key = refresh_xml.get('increment-key')
self._refresh_events = list(map(RefreshEvent, self._refreshXML.findall('./refresh-event')))
@property
def incremental_updates(self):
return self._incremental_updates
@property
def increment_key(self):
return self._increment_key
@property
def refresh_events(self):
return self._refresh_events