You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`datasource_item` | The `datasource_item` specifies the data source to update.
582
+
583
+
584
+
585
+
**Exceptions**
586
+
587
+
Error | Description
588
+
:--- | : ---
589
+
`Datasource item missing ID. Datasource must be retrieved from server first.` | Raises an error if the datasource_item is unspecified. Use the `Datasources.get()` method to retrieve that identifies for the data sources on the server.
`workbook_item` | The `workbook_item` specifies the settings for the workbook you are updating. You can change the `owner_id`, `project_id`, and the `show_tabs` values. See [WorkbookItem](#workbookitem-class).
3636
+
3637
+
3638
+
**Exceptions**
3639
+
3640
+
Error | Description
3641
+
:--- | :---
3642
+
`Workbook item missing ID. Workbook must be retrieved from server first.` | Raises an error if the `workbook_item` is unspecified. Use the `workbooks.get()` or `workbooks.get_by_id()` methods to retrieve the workbook item from the server.
Copy file name to clipboardExpand all lines: docs/samples.md
+35-12Lines changed: 35 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ title: Samples
3
3
layout: docs
4
4
---
5
5
6
-
The TSC samples are included in the `samples` directory of the TSC repository [on Github](https://github.com/tableau/server-client-python).
6
+
The TSC samples are included in the `samples` directory of the TSC repository [on Github](https://github.com/tableau/server-client-python/tree/master/samples).
7
7
8
8
* TOC
9
9
{:toc}
@@ -32,24 +32,47 @@ publish.
32
32
33
33
The following list describes the samples available in the repository:
34
34
35
-
*`create_group.py`. Create a user group.
35
+
*`create_group.py` Create a user group.
36
36
37
-
*`create_schedules.py`. Create schedules for extract refreshes and subscriptions.
37
+
*`create_project.py` Creates a project in a site.
38
38
39
-
*`explore_datasource.py`. Queries datasources, selects a datasource, populates connections for the datasource, then updates the datasource.
39
+
*`create_schedules.py` Create schedules for extract refreshes and subscriptions.
40
40
41
-
*`explore_workbook.py`. Queries workbooks, selects a workbook, populates the connections and views for a workbook, then updates the workbook.
41
+
*`download_view_image.py` Downloads an image of a specified view.
42
42
43
-
*`move_workbook_projects.py`. Updates the properties of a workbook to move the workbook from one project to another.
43
+
*`explore_datasource.py` Queries datasources, selects a datasource, populates connections for the datasource, then updates the datasource.
44
44
45
-
*`move_workbook_sites.py`. Downloads a workbook, stores it in-memory, and uploads it to another site.
45
+
*`explore_workbook.py` Queries workbooks, selects a workbook, populates the connections and views for a workbook, then updates the workbook.
46
46
47
-
*`pagination_sample.py`. Use the Pager generator to iterate over all the items on the server.
47
+
*`export.py` Exports a view as an image, pdf, or csv.
48
48
49
-
*`publish_workbook.py`. Publishes a Tableau workbook.
49
+
*`export_wb.py` Exports a pdf containing all views in a workbook.
50
50
51
-
*`set_http_options.py`. Sets HTTP options for the server and specifically for downloading workbooks.
51
+
*`filter_sort_groups.py` Demonstrates selecting user groups as filters.
52
52
53
-
**Note**: For all of the samples, ensure that your Tableau Server user account has permission to access the resources
54
-
requested by the samples.
53
+
*`initialize_server.py` Sets up an existing server instance with site, workbooks and datasources.
54
+
55
+
*`kill_all_jobs.py` Kills all running jobs.
56
+
57
+
*`list.py` Lists all datasources or workbooks of a site.
58
+
59
+
*`move_workbook_projects.py` Updates the properties of a workbook to move the workbook from one project to another.
60
+
61
+
*`move_workbook_sites.py` Downloads a workbook, stores it in-memory, and uploads it to another site.
62
+
63
+
*`pagination_sample.py` Use the Pager generator to iterate over all the items on the server.
64
+
65
+
*`publish_workbook.py` Publishes a Tableau workbook.
66
+
67
+
*`refresh.py` Refreshes a datasource or workbook.
68
+
69
+
*`refresh_tasks.py` Lists and runs configured tasks on a server.
70
+
71
+
*`set_http_options.py` Sets HTTP options for the server and specifically for downloading workbooks.
72
+
73
+
*`set_refresh_schedule.py` Sets the schedule to refresh a datasource or workbook.
74
+
75
+
*`update_connection.py` Updates and embeds connection credentials of a datasource.
76
+
77
+
**Note**: For all of the samples, ensure that your Tableau Server user account has permission to access the resources.
0 commit comments