From 60c0fcf36b64b937d38d8852ad8322c0d6dee72c Mon Sep 17 00:00:00 2001 From: Aaron Carey <31550444+aaroncarey@users.noreply.github.com> Date: Mon, 23 Apr 2018 15:50:35 -0700 Subject: [PATCH 1/5] Update README.md --- python/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/README.md b/python/README.md index 1a26977..9f49309 100644 --- a/python/README.md +++ b/python/README.md @@ -10,7 +10,7 @@ Running the samples * All samples require 2 arguments: server adress (without a trailing slash) and username * Run by executing ```python sample_file_name.py ``` * Specific information for each sample are included at the top of each file -* API version is set to 2.7 by default for Tableau server 10.4, but it can be changed in [version.py](./version.py) +* API version is set to 3.0 by default for Tableau Server 2018.1, but it can be changed in [version.py](./version.py) * For Tableau Server 9.0, the REST API namespace must be changed (refer to comment in each sample where namespace, xmlns, is defined) REST API Samples From 7ab3bbbb1770e3e197f15263a59bd2a58c52dc19 Mon Sep 17 00:00:00 2001 From: Aaron Carey <31550444+aaroncarey@users.noreply.github.com> Date: Mon, 23 Apr 2018 15:51:36 -0700 Subject: [PATCH 2/5] Update README.md --- python/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/README.md b/python/README.md index 9f49309..c965296 100644 --- a/python/README.md +++ b/python/README.md @@ -20,6 +20,6 @@ These are created and maintained by Tableau. Demo | Source Code | Description -------- | -------- | -------- Publish Workbook | [publish_workbook.py](./publish_workbook.py) | Shows how to upload a Tableau workbook using both a single request as well as chunking the upload. -Move Workbook | [move_workbook_projects.py](./move_workbook_projects.py)
[move_workbook_sites.py](./move_workbook_sites.py)
[move_workbook_server.py](./move_workbook_server.py) | Shows how to move a workbook from one project/site/server to another. Moving across different sites and servers require downloading the workbook. 2 methods of downloading are demonstrated in the sites and servers samples.

Moving to another project uses an API call to update workbook.
Moving to another site uses in-memory download method.
Moving to another server uses a temporary file to download workbook. +Move Workbook | [move_workbook_projects.py](./move_workbook_projects.py)
[move_workbook_sites.py](./move_workbook_sites.py)
[move_workbook_server.py](./move_workbook_server.py) | Shows how to move a workbook from one project/site/server to another. Moving across different sites and servers require downloading the workbook. Two methods of downloading are demonstrated in the sites and server samples.

Moving to another project uses an API call to update workbook.
Moving to another site uses in-memory download method.
Moving to another server uses a temporary file to download workbook. Add Permissions | [user_permission_audit.py](./user_permission_audit.py) | Shows how to add permissions for a given user to a given workbook. Global Workbook Permissions | [update_permission.py](./update_permission.py) | Shows how to add or update user permissions for every workbook on a given site or project. From b2ce5cafa93bfa81cc4ddd83c3d10bcfb5007138 Mon Sep 17 00:00:00 2001 From: Aaron Carey <31550444+aaroncarey@users.noreply.github.com> Date: Mon, 23 Apr 2018 15:52:21 -0700 Subject: [PATCH 3/5] Update version .py (2.8 -> 3.0) --- python/version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/version.py b/python/version.py index 72efc6b..95da341 100644 --- a/python/version.py +++ b/python/version.py @@ -1 +1 @@ -VERSION = '2.8' +VERSION = '3.0' From dfa1bf9a1ee740b0d666805fc42f334cb697bb09 Mon Sep 17 00:00:00 2001 From: Aaron Carey <31550444+aaroncarey@users.noreply.github.com> Date: Mon, 23 Apr 2018 15:56:39 -0700 Subject: [PATCH 4/5] Updated version numbers, changed the formatting used to refer to files and folders. --- java/README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/java/README.md b/java/README.md index 5ee2898..1eba45d 100644 --- a/java/README.md +++ b/java/README.md @@ -14,11 +14,11 @@ ## Getting started 1. Install the tools listed in the "Requirements" section. -1. Download the REST API schema and save it in the "res" folder under the folder where this README file is. For more information about the schema, see the following documentation: +1. Download the REST API schema and save it in the `/res` folder under the folder where this README file is. For more information about the schema, see the following documentation: -1. In the "res" folder, open the "config.properties" file using a text editor. +1. In the `/res` folder, open the `config.properties` file using a text editor. 1. Modify the configurations as instructed in the file. A sample workbook is already provided with this sample, but you can use any packaged workbook that you want. 1. Open the following file in a text editor: @@ -31,13 +31,13 @@ For example, you might see the following URL: ``` - /api/2.8/ + /api/3.0/ ``` - If you want to use version 2.4 of the API, replace the URL with the following: + If you want to use version 2.8 of the API, replace the URL with the following: ``` - /api/2.4/ + /api/2.8/ ``` ## Running the sample @@ -50,7 +50,7 @@ ## Possible problems -When "ant" is run in a command prompt, it may respond with "ant is not recognized as an internal or external command..." +When `ant` is run in a command prompt, it may respond with "ant is not recognized as an internal or external command..." Make sure that the `ANT_HOME` and `JAVA_HOME` variables are set as described in the installation guide for Apache Ant. Paths should not include quotes. For more information, see From 4a6e3b9ebec8b0deeb486a1fee3152f31cf9a372 Mon Sep 17 00:00:00 2001 From: Aaron Carey <31550444+aaroncarey@users.noreply.github.com> Date: Mon, 23 Apr 2018 15:57:53 -0700 Subject: [PATCH 5/5] Updated version number from 2.8 to 3.0 --- .../documentation/api/rest/util/RestApiUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/src/com/tableausoftware/documentation/api/rest/util/RestApiUtils.java b/java/src/com/tableausoftware/documentation/api/rest/util/RestApiUtils.java index a30c9ec..6687a4f 100644 --- a/java/src/com/tableausoftware/documentation/api/rest/util/RestApiUtils.java +++ b/java/src/com/tableausoftware/documentation/api/rest/util/RestApiUtils.java @@ -110,7 +110,7 @@ public static RestApiUtils getInstance() { * @return the URI builder */ private static UriBuilder getApiUriBuilder() { - return UriBuilder.fromPath(m_properties.getProperty("server.host") + "/api/2.8"); + return UriBuilder.fromPath(m_properties.getProperty("server.host") + "/api/3.0"); } /** * Initializes the RestApiUtils. The initialize code loads values from the configuration