tableau / server-client-python

A Python library for the Tableau Server REST API
https://tableau.github.io/server-client-python/
MIT License
655 stars 420 forks source link

Schedule Type enum doesn't seem to include 'System' #1349

Closed mafleming97045 closed 3 months ago

mafleming97045 commented 7 months ago

Our admins have created Tableau schedules of type 'System'. When I run a GET schedules request in Postman, I receive a schedule like this:

<schedule id="f42ecaaf-eff3-4deb-b77b-bd3458619688" name="Weekly Tuesday 8 AM" state="Active" priority="50" createdAt="2021-06-24T13:56:24Z" updatedAt="2024-01-23T16:00:41Z" type="System" frequency="Weekly" nextRunAt="2024-01-30T16:00:00Z"/>

This type causes the property_decorators in this API to fail:

File "envs\debug_old\lib\site-packages\tableauserverclient\models\scheduleitem.py", line 49, in __init_\   self.schedule_type: str = schedule_type File "envs\debug_old\lib\site-packages\tableauserverclient\models\property_decorators.py", line 14, in wrapper   raise ValueError(error) ValueError: Invalid value: System. schedule_type must be of type Type.

If the real issue is a missing type, can 'System' be added to the Schedule Type values?