forked from tableau/document-api-python
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathrefresh_event.py
More file actions
35 lines (28 loc) · 1.13 KB
/
refresh_event.py
File metadata and controls
35 lines (28 loc) · 1.13 KB
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
class RefreshEvent(object):
"""A class representing refresh events of a refresh definition inside Data Sources."""
def __init__(self, refresh_event_xml):
self._refresh_eventXML = refresh_event_xml
self._add_from_file_path = refresh_event_xml.get('add-from-file-path')
self._increment_value = refresh_event_xml.get('increment-value')
self._refresh_type = refresh_event_xml.get('refresh-type')
self._rows_inserted = refresh_event_xml.get('rows-inserted')
self._timestamp_start = refresh_event_xml.get('timestamp-start')
@property
def add_from_file_path(self):
return self._add_from_file_path
@property
def increment_value(self):
return self._increment_value
@property
def refresh_type(self):
return self._refresh_type
@property
def rows_inserted(self):
return int(self._rows_inserted)
@property
def timestamp_start(self):
return self._timestamp_start
@increment_value.setter
def increment_value(self, value):
self._refresh_eventXML.set('increment-value', value)
self._increment_value = value