Tableau Server Client (TSC)
中WorkbookItem
的用法。
用法
WorkbookItem(project_id, name=None, show_tabs=False)
Tableau 的工作簿資源在WorkbookItem
類中定義。該類對應於您可以使用 Tableau REST API 訪問的工作簿資源。某些工作簿方法將 WorkbookItem
類的實例作為參數。工作簿項指定項目
屬性
名字 | 說明 |
---|---|
connections |
工作簿使用的數據源的數據連接列表 (ConnectionItem )。您必須首先調用workbooks.populate_connections 方法來訪問此數據。請參閱 ConnectionItem class 。 |
content_url |
將出現在 URL 中的數據源的名稱。 |
created_at |
創建數據源的日期和時間。 |
id |
工作簿的標識符。您需要此值來查詢特定工作簿或使用 get_by_id 和 delete 方法刪除工作簿。 |
name |
工作簿的名稱。 |
owner_id |
所有者的 ID。 |
preview_image |
視圖的縮略圖。您必須首先調用workbooks.populate_preview_image 方法來訪問此數據。 |
project_id |
項目編號。 |
project_name |
項目的名稱。 |
size |
工作簿的大小(以 MB 為單位)。 |
show_tabs |
(布爾值)確定工作簿是否顯示視圖的選項卡。 |
tags |
已添加到工作簿的標簽。 |
updated_at |
上次更新工作簿的日期和時間。 |
views |
工作簿的視圖列表 (ViewItem )。您必須首先調用workbooks.populate_views 方法來訪問此數據。請參閱 ViewItem class 。 |
webpage_url |
工作簿的完整 URL。 |
示例
# creating a new instance of a WorkbookItem
#
import tableauserverclient as TSC
# Create new workbook_item with project id '3a8b6148-493c-11e6-a621-6f3499394a39'
new_workbook = TSC.WorkbookItem('3a8b6148-493c-11e6-a621-6f3499394a39')
源文件:models/workbook_item.py
相關用法
- Python Wand negate()用法及代碼示例
- Python Wand wavelet_denoise()用法及代碼示例
- Python Wand local_contrast()用法及代碼示例
- Python Wand sample()用法及代碼示例
- Python Wand deskew()用法及代碼示例
- Python Wand color()用法及代碼示例
- Python Wand implode()用法及代碼示例
- Python Wand adaptive_blur()用法及代碼示例
- Python Wand unsharp_mask()用法及代碼示例
- Python Wand gaussian_blur()用法及代碼示例
- Python Wand polaroid()用法及代碼示例
- Python Wand adaptive_sharpen()用法及代碼示例
- Python Wand posterize()用法及代碼示例
- Python Wand path_move()用法及代碼示例
- Python Wand transform()用法及代碼示例
- Python Wand shave()用法及代碼示例
- Python Wand function()用法及代碼示例
- Python Wand level()用法及代碼示例
- Python Wand swirl()用法及代碼示例
- Python Wand canny()用法及代碼示例
- Python Wand rectangle()用法及代碼示例
- Python Wand composite()用法及代碼示例
- Python Wand path_horizontal_line()用法及代碼示例
- Python Wand colorize()用法及代碼示例
- Python Wand blur()用法及代碼示例
注:本文由純淨天空篩選整理自tableau.github.io大神的英文原創作品 WorkbookItem class。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。