Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Credentials ¶
type Credentials struct { XMLName xml.Name `json:"-" xml:"credentials"` Name string `json:"name,omitempty" xml:"name,attr,omitempty"` Password string `json:"password,omitempty" xml:"password,attr,omitempty"` Token string `json:"token,omitempty" xml:"token,attr,omitempty"` Site *SiteType `json:"site,omitempty" xml:"site,omitempty"` Impersonate *User `json:"user,omitempty" xml:"user,omitempty"` }
type DefaultViewId ¶
type Pagination ¶
type Pagination struct { XMLName xml.Name `json:"-" xml:"pagination"` PageNumber int `json:"pageNumber,omitempty" xml:"pageNumber"` PageSize int `json:"page-size,omitempty" xml:"page-size"` TotalPages int `json:"total-available,omitempty" xml:"total-available"` }
Pagination defines the nuber of pages returned by the api
type ProductVersion ¶
type ServerInfo ¶
type ServerInfo struct { XMLName xml.Name `json:"-" xml:"serverInfo"` ProductVersion ProductVersion `json:"productVersion,omitempty" xml:"productVersion"` RestApiVersion string `json:"restApiVersion,omitempty" xml:"restApiVersion,omitempty"` }
ServerInfo contains information about product version and api version for the server
type SiteType ¶
type SiteType struct { XMLName xml.Name `json:"-" xml:"site"` ID string `json:"id,omitempty" xml:"id,attr,omitempty"` Name string `json:"name,omitempty" xml:"name,attr,omitempty"` ContentUrl string `json:"contentUrl,omitempty" xml:"contentUrl,attr,omitempty"` AdminMode string `json:"adminMode,omitempty" xml:"adminMode,attr,omitempty"` UserQuota string `json:"userQuota,omitempty" xml:"userQuota,attr,omitempty"` StorageQuota int `json:"storageQuota,omitempty" xml:"storageQuota,attr,omitempty"` State string `json:"state,omitempty" xml:"state,attr,omitempty"` StatusReason string `json:"statusReason,omitempty" xml:"statusReason,attr,omitempty"` Usage struct { NumUsers uint `json:"numUsers" xml:"numUsers,attr"` NumCreators uint `json:"numCreators,omitempty" xml:"numCreators,omitempty,attr"` NumExplorers uint `json:"numExplorers,omitempty" xml:"numExplorers,omitempty,attr"` NumViewers uint `json:"numViewers,omitempty" xml:"numViewers,omitempty,attr"` Storage uint `json:"storage" xml:"storage,attr"` } `json:"usage,omitempty" xml:"usage,omitempty"` }
SiteType is site detail and can be a list under Sites or info under other response details
type TrustedTicket ¶
type TrustedTicket struct {
Value string
}
type TrustedTicketRequest ¶
type TsRequest ¶
type TsRequest struct { XMLName xml.Name `json:"-" xml:"http://tableau.com/api tsRequest"` Credentials Credentials `json:"credentials,omitempty" xml:"credentials,omitempty"` Site SiteType `json:"site,omitempty" xml:"site,omitempty"` }
TsRequest is the wrapper that Tableau Server expects requests to be wrapped with
type TsResponse ¶
type TsResponse struct { XMLName xml.Name `json:"-" xml:"http://tableau.com/api tsResponse"` Pagination Pagination `json:"pagination" xml:"pagination"` ServerInfo ServerInfo `json:"serverInfo" xml:"serverInfo"` Workbooks Workbooks `json:"workbooks" xml:"workbooks"` View *View `json:"view" xml:"view"` Users Users `json:"users" xml:"users"` Credentials Credentials `json:"credentials" xml:"credentials"` Error ErrorType `json:"error" xml:"error"` Site SiteType `json:"site" xml:"site"` Sites *Sites `json:"sites" xml:"sites"` }
TsResponse is the wrapper that Tableau Server wraps each response with
type User ¶
type User struct { XMLName xml.Name `json:"-" xml:"user"` ID string `json:"id,omitempty" xml:"id,attr,omitempty"` Name string `json:"name,omitempty" xml:"name,attr,omitempty"` SiteRole string `json:"siteRole,omitempty" xml:"siteRole,attr,omitempty"` FullName string `json:"fullName,omitempty" xml:"fullName,attr,omitempty"` }
type View ¶
type View struct { XMLName xml.Name `json:"-" xml:"view"` ID string `json:"id,omitempty" xml:"id,attr,omitempty"` Name string `json:"name,omitempty" xml:"name,attr,omitempty"` ContentUrl string `json:"contentUrl,omitempty" xml:"contentUrl,attr,omitempty"` CreatedAt string `json:"createdAt,omitempty" xml:"createdAt,attr,omitempty"` UpdatedAt string `json:"updatedAt,omitempty" xml:"updatedAt,attr,omitempty"` Usage struct { TotalViewCount uint `json:"totalViewCount" xml:"totalViewCount,attr"` } Workbook *Workbook `json:"workbook,omitempty" xml:"workbook,attr,omitempty"` Owner *Owner `json:"owner,omitempty" xml:"owner,attr,omitempty"` Project *Project `json:"project,omitempty" xml:project,attr,omitempty"` }
type Workbook ¶
type Workbook struct { XMLName xml.Name `json:"-" xml:"workbook"` ID string `json:"id,omitempty" xml:"id,attr,omitempty"` Name string `json:"name,omitempty" xml:"name,attr,omitempty"` Description string `json:"description,omitempty" xml:"description,attr,omitempty"` WebPageUrl string `json:"webpageurl,omitempty" xml:"webpageurl,attr,omitempty"` ContentUrl string `json:"contentUrl,omitempty" xml:"contentUrl,attr,omitempty"` ShowTabs string `json:"showTabs,omitempty" xml:"showTabs,attr,omitempty"` Size string `json:"size,omitempty" xml:"size,attr,omitempty"` CreatedAt string `json:"createdAt,omitempty" xml:"createdAt,attr,omitempty"` UpdatedAt string `json:"updatedAt,omitempty" xml:"updatedAt,attr,omitempty"` DefaultViewId string `json:"defaultViewId,omitempty" xml:"defaultViewId,attr,omitempty"` }
Click to show internal directories.
Click to hide internal directories.