8000 Jac/schedules (#1266) · jorwoods/server-client-python@77f2f63 · GitHub
[go: up one dir, main page]

Skip to content

Commit 77f2f63

Browse files
jacalatama7tcspAustinsyou6162
authored
Jac/schedules (tableau#1266)
* Hotfix schedule_item.py for issue 1237 (tableau#1239) * Remove duplicate assignments to fields (tableau#1244) Co-authored-by: Tim Payne <47423639+ma7tcsp@users.noreply.github.com> Co-authored-by: Austin <110413815+austinpeters-gohealthuccom@users.noreply.github.com> Co-authored-by: Yasuhisa Yoshida <syou6162@gmail.com>
1 parent f56b2c7 commit 77f2f63

File tree

2 files changed

+2
-15
lines changed

2 files changed

+2
-15
lines changed

tableauserverclient/models/datasource_item.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -326,17 +326,8 @@ def _parse_element(datasource_xml: ET.Element, ns: Dict) -> Tuple:
326326
updated_at = parse_datetime(datasource_xml.get("updatedAt", None))
327327
certification_note = datasource_xml.get("certificationNote", None)
328328
certified = str(datasource_xml.get("isCertified", None)).lower() == "true"
329-
certification_note = datasource_xml.get("certificationNote", None)
330-
certified = str(datasource_xml.get("isCertified", None)).lower() == "true"
331-
content_url = datasource_xml.get("contentUrl", None)
332-
created_at = parse_datetime(datasource_xml.get("createdAt", None))
333-
datasource_type = datasource_xml.get("type", None)
334-
description = datasource_xml.get("description", None)
335329
encrypt_extracts = datasource_xml.get("encryptExtracts", None)
336330
has_extracts = datasource_xml.get("hasExtracts", None)
337-
id_ = datasource_xml.get("id", None)
338-
name = datasource_xml.get("name", None)
339-
updated_at = parse_datetime(datasource_xml.get("updatedAt", None))
340331
use_remote_query_agent = datasource_xml.get("useRemoteQueryAgent", None)
341332
webpage_url = datasource_xml.get("webpageUrl", None)
342333

tableauserverclient/models/schedule_item.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
)
1515
from .property_decorators import (
1616
property_is_enum,
17-
property_not_nullable,
18-
property_is_int,
1917
)
2018

2119
Interval = Union[HourlyInterval, DailyInterval, WeeklyInterval, MonthlyInterval]
@@ -27,6 +25,7 @@ class Type:
2725
Flow = "Flow"
2826
Subscription = "Subscription"
2927
DataAcceleration = "DataAcceleration"
28+
ActiveDirectorySync = "ActiveDirectorySync"
3029

3130
class ExecutionOrder:
3231
Parallel = "Parallel"
@@ -74,11 +73,10 @@ def id(self) -> Optional[str]:
7473
return self._id
7574

7675
@property
77-
def name(self) -> str:
76+
def name(self) -> Optional[str]:
7877
return self._name
7978

8079
@name.setter
81-
@property_not_nullable
8280
def name(self, value: str):
8381
self._name = value
8482

@@ -91,7 +89,6 @@ def priority(self) -> int:
9189
return self._priority
9290

9391
@priority.setter
94-
@property_is_int(range=(1, 100))
9592
def priority(self, value: int):
9693
self._priority = value
9794

@@ -101,7 +98,6 @@ def schedule_type(self) -> str:
10198

10299
@schedule_type.setter
103100
@property_is_enum(Type)
104-
@property_not_nullable
105101
def schedule_type(self, value: str):
106102
self._schedule_type = value
107103

0 commit comments

Comments
 (0)
0