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。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。