model

package
v0.0.0-...-9833956 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 21, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

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 DefaultViewId struct {
	XMLName xml.Name `json:"-"        xml:"defaultViewId"`
}

type ErrorType

type ErrorType struct {
	XMLName xml.Name `json:"-"        xml:"error"`
	Summary string   `json:"summary"  xml:"summary"`
	Detail  string   `json:"detail"   xml:"detail"`
	Code    uint     `json:"code"     xml:"code,attr"`
}

type Owner

type Owner struct {
	ID string `json:"id,omitempty"          xml:"id,attr,omitempty"`
}

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 ProductVersion struct {
	XMLName xml.Name `json:"-"      xml:"productVersion"`
	Value   string   `json:"value"  xml:",chardata"`
	Build   string   `json:"build"  xml:"build,attr"`
}

type Project

type Project struct {
	ID   string `json:"id,omitempty"        xml:"id,attr,omitempty"`
	Name string `json:"name,omitempty"      xml:"name,attr,omitempty"`
}

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 Sites

type Sites struct {
	XMLName xml.Name   `json:"-"                   xml:"sites"`
	Site    []SiteType `json:"site,omitempty"      xml:"site,omitempty"`
}

type TrustedTicket

type TrustedTicket struct {
	Value string
}

type TrustedTicketRequest

type TrustedTicketRequest struct {
	Username   string `form:"username"`
	Targetsite string `form:"target_site"`
}

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 Users

type Users struct {
	XMLName xml.Name `json:"-"                   xml:"users"`
	User    []User   `json:"user"                xml:"user"`
}

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 Views

type Views struct {
	XMLName xml.Name `json:"-"                       xml:"views"`
	View    []View   `json:"workbook,omitempty"      xml:"view,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"`
}

type Workbooks

type Workbooks struct {
	XMLName  xml.Name   `json:"-"                       xml:"workbooks"`
	Workbook []Workbook `json:"workbook,omitempty"      xml:"workbook,omitempty"`
	Project  *Project   `json:"project,omitempty" xml:"project,attr,omitempty"`
	Owner    *Owner     `json:"owner,omitempty" xml:"owner,attr,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL