File tree Expand file tree Collapse file tree 5 files changed +6
-3
lines changed
tableauserverclient/server/endpoint Expand file tree Collapse file tree 5 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ def get_by_name(self, site_name):
45
45
return SiteItem .from_response (server_response .content , self .parent_srv .namespace )[0 ]
46
46
47
47
# Gets 1 site by content url
48
- @api (version = "3.3 " )
48
+ @api (version = "2.0 " )
49
49
def get_by_content_url (self , content_url ):
50
50
if content_url is None :
51
51
error = "Content URL undefined."
Original file line number Diff line number Diff line change 1
1
<?xml version =' 1.0' encoding =' UTF-8' ?>
2
2
<tsResponse xmlns =" http://tableau.com/api" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : schemaLocation =" http://tableau.com/api http://tableau.com/api/ts-api-2.3.xsd" >
3
- <site id =" 6b7179ba-b82b-4f0f-91ed-812074ac5da6" name =" Tableau" contentUrl =" tableau" adminMode =" ContentAndUsers" userQuota =" 15" disableSubscriptions =" true" state =" Suspended" revisionHistoryEnabled =" true" subscribeOthersEnabled =" true" revisionLimit =" 13" />
3
+ <site id =" 6b7179ba-b82b-4f0f-91ed-812074ac5da6" name =" Tableau" contentUrl =" tableau" adminMode =" ContentAndUsers" userQuota =" 15" disableSubscriptions =" true" state =" Suspended" revisionHistoryEnabled =" true" subscribeOthersEnabled =" true" revisionLimit =" 13" materializedViewsEnabled = " true " />
4
4
</tsResponse >
Original file line number Diff line number Diff line change 1
1
<?xml version =' 1.0' encoding =' UTF-8' ?>
2
2
<tsResponse xmlns =" http://tableau.com/api" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : schemaLocation =" http://tableau.com/api http://tableau.com/api/ts-api-2.3.xsd" >
3
- <workbook id =" 1f951daf-4061-451a-9df1-69a8062664f2" name =" renamedWorkbook" contentUrl =" RESTAPISample" showTabs =" true" size =" 1" createdAt =" 2016-08-18T18:25:36Z" updatedAt =" 2016-08-18T18:29:36Z" >
3
+ <workbook id =" 1f951daf-4061-451a-9df1-69a8062664f2" name =" renamedWorkbook" contentUrl =" RESTAPISample" showTabs =" true" size =" 1" createdAt =" 2016-08-18T18:25:36Z" updatedAt =" 2016-08-18T18:29:36Z" materializedViewsEnabled = " true " >
4
4
<project id =" 1d0304cd-3796-429f-b815-7258370b9b74" name =" Tableau" />
5
5
<owner id =" dd2239f6-ddf1-4107-981a-4cf94e415794" />
6
6
<tags />
Original file line number Diff line number Diff line change @@ -105,6 +105,7 @@ def test_update(self):
105
105
self .assertEqual (13 , single_site .revision_limit )
106
106
self .assertEqual (True , single_site .disable_subscriptions )
107
107
self .assertEqual (15 , single_site .user_quota )
108
+ self .assertEqual (True , single_site .materialized_views_enabled )
108
109
109
110
def test_update_missing_id (self ):
110
111
single_site = TSC .SiteItem ('test' , 'test' )
Original file line number Diff line number Diff line change @@ -119,13 +119,15 @@ def test_update(self):
119
119
single_workbook ._id = '1f951daf-4061-451a-9df1-69a8062664f2'
120
120
single_workbook .owner_id = 'dd2239f6-ddf1-4107-981a-4cf94e415794'
121
121
single_workbook .name = 'renamedWorkbook'
122
+ single_workbook .materialized_views_enabled = True
122
123
single_workbook = self .server .workbooks .update (single_workbook )
123
124
124
125
self .assertEqual ('1f951daf-4061-451a-9df1-69a8062664f2' , single_workbook .id )
125
126
self .assertEqual (True , single_workbook .show_tabs )
126
127
self .assertEqual ('1d0304cd-3796-429f-b815-7258370b9b74' , single_workbook .project_id )
127
128
self .assertEqual ('dd2239f6-ddf1-4107-981a-4cf94e415794' , single_workbook .owner_id )
128
129
self .assertEqual ('renamedWorkbook' , single_workbook .name )
130
+ self .assertEqual (True , single_workbook .materialized_views_enabled )
129
131
130
132
def test_update_missing_id (self ):
131
133
single_workbook = TSC .WorkbookItem ('test' )
You can’t perform that action at this time.
0 commit comments