tableau

package
v0.0.0-...-b6d1479 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2020 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectionLinesXml

func ConnectionLinesXml(documentPath string, tsResponse TsResponse, captionRe *regexp.Regexp, targetConnectionFinder ConnectionFinder) (string, error)

func GetDocumentNameFromPath

func GetDocumentNameFromPath(fullpath string) (string, string)

func GetNamedConnections

func GetNamedConnections(documentPath string, namedConnectionsRe *regexp.Regexp) (map[string]string, error)

NamedConnections returns a map of Connections (as key) with the value being the caption of the named connection

func ReplaceAllStringSubmatchFunc

func ReplaceAllStringSubmatchFunc(re *regexp.Regexp, str string, repl func([]string) string) string

func Unzip

func Unzip(src, dest string) error

Types

type AdminMode

type AdminMode string

May be one of ContentOnly, ContentAndUsers

type Anon4

type Anon4 struct {
	TotalViewCount int `xml:"totalViewCount,attr"`
}

type Anon7

type Anon7 int

May be one of -1

type BackgroundJobListType

type BackgroundJobListType struct {
	BackgroundJob []BackgroundJobType `xml:"http://tableau.com/api backgroundJob,omitempty"`
}

type BackgroundJobType

type BackgroundJobType struct {
	Id        ResourceIdType `xml:"id,attr,omitempty"`
	Status    Status         `xml:"status,attr,omitempty"`
	CreatedAt time.Time      `xml:"createdAt,attr,omitempty"`
	StartedAt time.Time      `xml:"startedAt,attr,omitempty"`
	EndedAt   time.Time      `xml:"endedAt,attr,omitempty"`
	Priority  int            `xml:"priority,attr,omitempty"`
	JobType   string         `xml:"jobType,attr,omitempty"`
	Title     string         `xml:"title,attr,omitempty"`
	Subtitle  string         `xml:"subtitle,attr,omitempty"`
}

func (*BackgroundJobType) MarshalXML

func (t *BackgroundJobType) MarshalXML(e *xml.Encoder, start xml.StartElement) error

func (*BackgroundJobType) UnmarshalXML

func (t *BackgroundJobType) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

type Build

type Build string

Must match the pattern [0-9]{5}.[0-9]{2}.[0-9]{4}.[0-9]{4}

type Capabilities

type Capabilities struct {
	Capability []CapabilityType `xml:"http://tableau.com/api capability"`
}

type CapabilityType

type CapabilityType struct {
	Name Name `xml:"name,attr"`
	Mode Mode `xml:"mode,attr"`
}

type ColumnListType

type ColumnListType struct {
	Column []ColumnType `xml:"http://tableau.com/api column,omitempty"`
}

type ColumnType

type ColumnType struct {
	Site          SiteType       `xml:"http://tableau.com/api site,omitempty"`
	Id            ResourceIdType `xml:"id,attr,omitempty"`
	Name          string         `xml:"name,attr,omitempty"`
	Description   string         `xml:"description,attr,omitempty"`
	RemoteType    string         `xml:"remoteType,attr,omitempty"`
	ParentTableId ResourceIdType `xml:"parentTableId,attr,omitempty"`
}

type Connection

type Connection struct {
	ID            string `json:"id"`
	Type          string `json:"type"`
	EmbedPassword bool   `json:"embedPassword"`
	ServerAddress string `json:"serverAddress"`
	ServerPort    string `json:"serverPort"`
	UserName      string `json:"userName"`
	DbName        string `json:"dbName"`
	PassWord      string
	Schema        string
}

type ConnectionCredentialsType

type ConnectionCredentialsType struct {
	Name     string `xml:"name,attr,omitempty"`
	Password string `xml:"password,attr,omitempty"`
	Embed    bool   `xml:"embed,attr,omitempty"`
	OAuth    bool   `xml:"oAuth,attr,omitempty"`
}

type ConnectionFinder

type ConnectionFinder interface {
	FindConnection(caption string) (Connection, error)
}

type ConnectionListType

type ConnectionListType struct {
	Connection []ConnectionType `xml:"http://tableau.com/api connection,omitempty"`
}

type ConnectionType

type ConnectionType struct {
	Datasource            DataSourceType            `xml:"http://tableau.com/api datasource,omitempty"`
	ConnectionCredentials ConnectionCredentialsType `xml:"http://tableau.com/api connectionCredentials,omitempty"`
	Id                    ResourceIdType            `xml:"id,attr,omitempty"`
	Type                  string                    `xml:"type,attr,omitempty"`
	DbClass               string                    `xml:"dbClass,attr,omitempty"`
	Scope                 string                    `xml:"scope,attr,omitempty"`
	Filename              string                    `xml:"filename,attr,omitempty"`
	GoogleSheetId         string                    `xml:"googleSheetId,attr,omitempty"`
	EmbedPassword         bool                      `xml:"embedPassword,attr,omitempty"`
	ServerAddress         string                    `xml:"serverAddress,attr,omitempty"`
	ServerPort            int                       `xml:"serverPort,attr,omitempty"`
	UserName              string                    `xml:"userName,attr,omitempty"`
	Password              string                    `xml:"password,attr,omitempty"`
}

type ContentPermissions

type ContentPermissions string

May be one of LockedToDatabase, ManagedByOwner

type CredentialHolder

type CredentialHolder struct {
	Credentials Credentials `json:"credentials,omitempty" xml:"credentials,omitempty"`
}

type Credentials

type Credentials struct {
	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        *Site  `json:"site,omitempty" xml:"site,omitempty"`
	Impersonate *User  `json:"user,omitempty" xml:"user,omitempty"`
}

type DataAlertListType

type DataAlertListType struct {
	DataAlert []DataAlertType `xml:"http://tableau.com/api dataAlert,omitempty"`
}

type DataAlertType

type DataAlertType struct {
	Owner          UserType                    `xml:"http://tableau.com/api owner"`
	View           ViewType                    `xml:"http://tableau.com/api view"`
	Recipients     DataAlertsRecipientListType `xml:"http://tableau.com/api recipients,omitempty"`
	Id             ResourceIdType              `xml:"id,attr,omitempty"`
	Subject        string                      `xml:"subject,attr,omitempty"`
	CreatorId      ResourceIdType              `xml:"creatorId,attr,omitempty"`
	CreatedAt      time.Time                   `xml:"createdAt,attr,omitempty"`
	UpdatedAt      time.Time                   `xml:"updatedAt,attr,omitempty"`
	Frequency      Frequency                   `xml:"frequency,attr,omitempty"`
	AlertCondition string                      `xml:"alertCondition,attr,omitempty"`
	AlertThreshold string                      `xml:"alertThreshold,attr,omitempty"`
}

func (*DataAlertType) MarshalXML

func (t *DataAlertType) MarshalXML(e *xml.Encoder, start xml.StartElement) error

func (*DataAlertType) UnmarshalXML

func (t *DataAlertType) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

type DataAlertsRecipientListType

type DataAlertsRecipientListType struct {
	Recipient []DataAlertsRecipientType `xml:"http://tableau.com/api recipient,omitempty"`
}

type DataAlertsRecipientType

type DataAlertsRecipientType struct {
	Id       ResourceIdType `xml:"id,attr,omitempty"`
	Name     string         `xml:"name,attr,omitempty"`
	LastSent time.Time      `xml:"lastSent,attr,omitempty"`
}

func (*DataAlertsRecipientType) MarshalXML

func (t *DataAlertsRecipientType) MarshalXML(e *xml.Encoder, start xml.StartElement) error

func (*DataAlertsRecipientType) UnmarshalXML

func (t *DataAlertsRecipientType) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

type DataQualityWarningListType

type DataQualityWarningListType struct {
	DataQualityWarning []DataQualityWarningType `xml:"http://tableau.com/api dataQualityWarning,omitempty"`
}

type DataQualityWarningType

type DataQualityWarningType struct {
	Site            SiteType       `xml:"http://tableau.com/api site,omitempty"`
	Owner           UserType       `xml:"http://tableau.com/api owner,omitempty"`
	Id              ResourceIdType `xml:"id,attr,omitempty"`
	UserDisplayName string         `xml:"userDisplayName,attr,omitempty"`
	ContentId       ResourceIdType `xml:"contentId,attr,omitempty"`
	ContentType     string         `xml:"contentType,attr,omitempty"`
	Message         string         `xml:"message,attr,omitempty"`
	Type            string         `xml:"type,attr,omitempty"`
	IsActive        bool           `xml:"isActive,attr,omitempty"`
	CreatedAt       time.Time      `xml:"createdAt,attr,omitempty"`
	UpdatedAt       time.Time      `xml:"updatedAt,attr,omitempty"`
}

func (*DataQualityWarningType) MarshalXML

func (t *DataQualityWarningType) MarshalXML(e *xml.Encoder, start xml.StartElement) error

func (*DataQualityWarningType) UnmarshalXML

func (t *DataQualityWarningType) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

type DataRoleType

type DataRoleType struct {
	Site         SiteType         `xml:"http://tableau.com/api site,omitempty"`
	Project      ProjectType      `xml:"http://tableau.com/api project,omitempty"`
	Owner        UserType         `xml:"http://tableau.com/api owner,omitempty"`
	Name         string           `xml:"http://tableau.com/api name"`
	Description  string           `xml:"http://tableau.com/api description,omitempty"`
	CreatedAt    time.Time        `xml:"http://tableau.com/api createdAt,omitempty"`
	UpdatedAt    time.Time        `xml:"http://tableau.com/api updatedAt,omitempty"`
	FieldConcept FieldConceptType `xml:"http://tableau.com/api fieldConcept"`
	Url          string           `xml:"http://tableau.com/api url"`
}

func (*DataRoleType) MarshalXML

func (t *DataRoleType) MarshalXML(e *xml.Encoder, start xml.StartElement) error

func (*DataRoleType) UnmarshalXML

func (t *DataRoleType) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

type DataSourceListType

type DataSourceListType struct {
	Datasource []DataSourceType `xml:"http://tableau.com/api datasource,omitempty"`
}

type DataSourceType

type DataSourceType struct {
	ConnectionCredentials   ConnectionCredentialsType `xml:"http://tableau.com/api connectionCredentials,omitempty"`
	Site                    SiteType                  `xml:"http://tableau.com/api site,omitempty"`
	Project                 ProjectType               `xml:"http://tableau.com/api project,omitempty"`
	Owner                   UserType                  `xml:"http://tableau.com/api owner,omitempty"`
	Tags                    TagListType               `xml:"http://tableau.com/api tags,omitempty"`
	Id                      ResourceIdType            `xml:"id,attr,omitempty"`
	Name                    string                    `xml:"name,attr,omitempty"`
	ContentUrl              string                    `xml:"contentUrl,attr,omitempty"`
	WebpageUrl              string                    `xml:"webpageUrl,attr,omitempty"`
	Description             string                    `xml:"description,attr,omitempty"`
	Type                    string                    `xml:"type,attr,omitempty"`
	CreatedAt               time.Time                 `xml:"createdAt,attr,omitempty"`
	UpdatedAt               time.Time                 `xml:"updatedAt,attr,omitempty"`
	IsCertified             bool                      `xml:"isCertified,attr,omitempty"`
	CertificationNote       string                    `xml:"certificationNote,attr,omitempty"`
	ServerName              string                    `xml:"serverName,attr,omitempty"`
	DatabaseName            string                    `xml:"databaseName,attr,omitempty"`
	HasExtracts             bool                      `xml:"hasExtracts,attr,omitempty"`
	HasAlert                bool                      `xml:"hasAlert,attr,omitempty"`
	Size                    int                       `xml:"size,attr,omitempty"`
	IsPublished             bool                      `xml:"isPublished,attr,omitempty"`
	ConnectedWorkbooksCount int                       `xml:"connectedWorkbooksCount,attr,omitempty"`
	FavoritesTotal          int                       `xml:"favoritesTotal,attr,omitempty"`
	EncryptExtracts         string                    `xml:"encryptExtracts,attr,omitempty"`
	UseRemoteQueryAgent     bool                      `xml:"useRemoteQueryAgent,attr,omitempty"`
}

func (*DataSourceType) MarshalXML

func (t *DataSourceType) MarshalXML(e *xml.Encoder, start xml.StartElement) error

func (*DataSourceType) UnmarshalXML

func (t *DataSourceType) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

type DataSourceValueStoreType

type DataSourceValueStoreType struct {
	DatasourceID string `xml:"http://tableau.com/api datasourceID,omitempty"`
	FieldName    string `xml:"http://tableau.com/api fieldName,omitempty"`
}

type DataTypeType

type DataTypeType string

May be one of DATA_TYPE_UNSPECIFIED, DATE, DATETIME, STRING, INT, FLOAT, BOOL

type DatabaseListType

type DatabaseListType struct {
	Database []DatabaseType `xml:"http://tableau.com/api database,omitempty"`
}

type DatabaseType

type DatabaseType struct {
	Site               SiteType           `xml:"http://tableau.com/api site,omitempty"`
	Contact            UserType           `xml:"http://tableau.com/api contact"`
	Certifier          UserType           `xml:"http://tableau.com/api certifier"`
	Id                 ResourceIdType     `xml:"id,attr,omitempty"`
	Name               string             `xml:"name,attr,omitempty"`
	ConnectionType     string             `xml:"connectionType,attr,omitempty"`
	IsEmbedded         bool               `xml:"isEmbedded,attr,omitempty"`
	Description        string             `xml:"description,attr,omitempty"`
	IsCertified        bool               `xml:"isCertified,attr,omitempty"`
	CertificationNote  string             `xml:"certificationNote,attr,omitempty"`
	Type               DatabaseTypeType   `xml:"type,attr,omitempty"`
	HostName           string             `xml:"hostName,attr,omitempty"`
	Port               int                `xml:"port,attr,omitempty"`
	FilePath           string             `xml:"filePath,attr,omitempty"`
	Provider           string             `xml:"provider,attr,omitempty"`
	MimeType           string             `xml:"mimeType,attr,omitempty"`
	FileId             string             `xml:"fileId,attr,omitempty"`
	ConnectorUrl       string             `xml:"connectorUrl,attr,omitempty"`
	RequestUrl         string             `xml:"requestUrl,attr,omitempty"`
	FileExtension      string             `xml:"fileExtension,attr,omitempty"`
	ContentPermissions ContentPermissions `xml:"contentPermissions,attr,omitempty"`
}

type DatabaseTypeType

type DatabaseTypeType string

May be one of DatabaseServer, File, WebDataConnector, CloudFile

type Datasource

type Datasource struct {
	Text          string `xml:",chardata"`
	Hasconnection string `xml:"hasconnection,attr"`
	Inline        string `xml:"inline,attr"`
	Name          string `xml:"name,attr"`
	Version       string `xml:"version,attr"`
	Aliases       struct {
		Text    string `xml:",chardata"`
		Enabled string `xml:"enabled,attr"`
	} `xml:"aliases"`
	Column []struct {
		Text            string `xml:",chardata"`
		Caption         string `xml:"caption,attr"`
		Datatype        string `xml:"datatype,attr"`
		Name            string `xml:"name,attr"`
		ParamDomainType string `xml:"param-domain-type,attr"`
		Role            string `xml:"role,attr"`
		Type            string `xml:"type,attr"`
		Value           string `xml:"value,attr"`
		DefaultFormat   string `xml:"default-format,attr"`
		SemanticRole    string `xml:"semantic-role,attr"`
		Hidden          string `xml:"hidden,attr"`
		Aggregation     string `xml:"aggregation,attr"`
		AutoColumn      string `xml:"auto-column,attr"`
		Calculation     struct {
			Text           string `xml:",chardata"`
			Class          string `xml:"class,attr"`
			Formula        string `xml:"formula,attr"`
			ScopeIsolation string `xml:"scope-isolation,attr"`
			Column         string `xml:"column,attr"`
			Decimals       string `xml:"decimals,attr"`
			Peg            string `xml:"peg,attr"`
			SizeParameter  string `xml:"size-parameter,attr"`
			Bin            []struct {
				Text      string   `xml:",chardata"`
				AttrValue string   `xml:"value,attr"`
				Value     []string `xml:"value"`
			} `xml:"bin"`
		} `xml:"calculation"`
		Range struct {
			Text        string `xml:",chardata"`
			Granularity string `xml:"granularity,attr"`
			Max         string `xml:"max,attr"`
			Min         string `xml:"min,attr"`
		} `xml:"range"`
		Aliases struct {
			Text  string `xml:",chardata"`
			Alias []struct {
				Text  string `xml:",chardata"`
				Key   string `xml:"key,attr"`
				Value string `xml:"value,attr"`
			} `xml:"alias"`
		} `xml:"aliases"`
	} `xml:"column"`
	Connection struct {
		Text             string `xml:",chardata"`
		Class            string `xml:"class,attr"`
		Cleaning         string `xml:"cleaning,attr"`
		Compat           string `xml:"compat,attr"`
		DataRefreshTime  string `xml:"dataRefreshTime,attr"`
		Filename         string `xml:"filename,attr"`
		Validate         string `xml:"validate,attr"`
		NamedConnections struct {
			Text            string `xml:",chardata"`
			NamedConnection []struct {
				Text       string `xml:",chardata"`
				Caption    string `xml:"caption,attr"`
				Name       string `xml:"name,attr"`
				Connection struct {
					Text                 string `xml:",chardata"`
					Authentication       string `xml:"authentication,attr"`
					Class                string `xml:"class,attr"`
					OneTimeSql           string `xml:"one-time-sql,attr"`
					Port                 string `xml:"port,attr"`
					Schema               string `xml:"schema,attr"`
					Server               string `xml:"server,attr"`
					Service              string `xml:"service,attr"`
					Sslmode              string `xml:"sslmode,attr"`
					Username             string `xml:"username,attr"`
					Dbname               string `xml:"dbname,attr"`
					MinimumDriverVersion string `xml:"minimum-driver-version,attr"`
					OdbcNativeProtocol   string `xml:"odbc-native-protocol,attr"`
				} `xml:"connection"`
			} `xml:"named-connection"`
		} `xml:"named-connections"`
		Relation struct {
			Text    string `xml:",chardata"`
			Name    string `xml:"name,attr"`
			Table   string `xml:"table,attr"`
			Type    string `xml:"type,attr"`
			Columns struct {
				Text    string `xml:",chardata"`
				Header  string `xml:"header,attr"`
				Outcome string `xml:"outcome,attr"`
				Column  []struct {
					Text     string `xml:",chardata"`
					Datatype string `xml:"datatype,attr"`
					Name     string `xml:"name,attr"`
					Ordinal  string `xml:"ordinal,attr"`
				} `xml:"column"`
			} `xml:"columns"`
		} `xml:"relation"`
		MetadataRecords struct {
			Text           string `xml:",chardata"`
			MetadataRecord []struct {
				Text         string `xml:",chardata"`
				Class        string `xml:"class,attr"`
				RemoteName   string `xml:"remote-name"`
				RemoteType   string `xml:"remote-type"`
				LocalName    string `xml:"local-name"`
				ParentName   string `xml:"parent-name"`
				RemoteAlias  string `xml:"remote-alias"`
				Ordinal      string `xml:"ordinal"`
				LocalType    string `xml:"local-type"`
				Aggregation  string `xml:"aggregation"`
				ContainsNull string `xml:"contains-null"`
				Attributes   struct {
					Text      string `xml:",chardata"`
					Attribute []struct {
						Text     string `xml:",chardata"`
						Datatype string `xml:"datatype,attr"`
						Name     string `xml:"name,attr"`
					} `xml:"attribute"`
				} `xml:"attributes"`
				Collation struct {
					Text string `xml:",chardata"`
					Flag string `xml:"flag,attr"`
					Name string `xml:"name,attr"`
				} `xml:"collation"`
				Precision string `xml:"precision"`
			} `xml:"metadata-record"`
		} `xml:"metadata-records"`
	} `xml:"connection"`
	ColumnInstance struct {
		Text               string `xml:",chardata"`
		Column             string `xml:"column,attr"`
		Derivation         string `xml:"derivation,attr"`
		ForecastColumnBase string `xml:"forecast-column-base,attr"`
		ForecastColumnType string `xml:"forecast-column-type,attr"`
		Name               string `xml:"name,attr"`
		Pivot              string `xml:"pivot,attr"`
		Type               string `xml:"type,attr"`
	} `xml:"column-instance"`
	Group struct {
		Text        string `xml:",chardata"`
		Name        string `xml:"name,attr"`
		NameStyle   string `xml:"name-style,attr"`
		UiBuilder   string `xml:"ui-builder,attr"`
		Groupfilter struct {
			Text         string `xml:",chardata"`
			Count        string `xml:"count,attr"`
			End          string `xml:"end,attr"`
			Function     string `xml:"function,attr"`
			Units        string `xml:"units,attr"`
			UiMarker     string `xml:"ui-marker,attr"`
			UiTopByField string `xml:"ui-top-by-field,attr"`
			Groupfilter  struct {
				Text        string `xml:",chardata"`
				Direction   string `xml:"direction,attr"`
				Expression  string `xml:"expression,attr"`
				Function    string `xml:"function,attr"`
				UiMarker    string `xml:"ui-marker,attr"`
				Groupfilter struct {
					Text          string `xml:",chardata"`
					Function      string `xml:"function,attr"`
					Level         string `xml:"level,attr"`
					UiEnumeration string `xml:"ui-enumeration,attr"`
					UiMarker      string `xml:"ui-marker,attr"`
				} `xml:"groupfilter"`
			} `xml:"groupfilter"`
		} `xml:"groupfilter"`
	} `xml:"group"`
	DrillPaths struct {
		Text      string `xml:",chardata"`
		DrillPath []struct {
			Text  string   `xml:",chardata"`
			Name  string   `xml:"name,attr"`
			Field []string `xml:"field"`
		} `xml:"drill-path"`
	} `xml:"drill-paths"`
	Folder []struct {
		Text       string `xml:",chardata"`
		Name       string `xml:"name,attr"`
		Role       string `xml:"role,attr"`
		FolderItem []struct {
			Text string `xml:",chardata"`
			Name string `xml:"name,attr"`
			Type string `xml:"type,attr"`
		} `xml:"folder-item"`
	} `xml:"folder"`
	Layout struct {
		Text              string `xml:",chardata"`
		DimOrdering       string `xml:"dim-ordering,attr"`
		DimPercentage     string `xml:"dim-percentage,attr"`
		GroupPercentage   string `xml:"group-percentage,attr"`
		MeasureOrdering   string `xml:"measure-ordering,attr"`
		MeasurePercentage string `xml:"measure-percentage,attr"`
		ShowStructure     string `xml:"show-structure,attr"`
	} `xml:"layout"`
	SemanticValues struct {
		Text          string `xml:",chardata"`
		SemanticValue struct {
			Text  string `xml:",chardata"`
			Key   string `xml:"key,attr"`
			Value string `xml:"value,attr"`
		} `xml:"semantic-value"`
	} `xml:"semantic-values"`
	DefaultSorts struct {
		Text string `xml:",chardata"`
		Sort struct {
			Text       string `xml:",chardata"`
			Class      string `xml:"class,attr"`
			Column     string `xml:"column,attr"`
			Direction  string `xml:"direction,attr"`
			Dictionary struct {
				Text   string   `xml:",chardata"`
				Bucket []string `xml:"bucket"`
			} `xml:"dictionary"`
		} `xml:"sort"`
	} `xml:"default-sorts"`
	DatasourceDependencies struct {
		Text       string `xml:",chardata"`
		Datasource string `xml:"datasource,attr"`
		Column     []struct {
			Text            string `xml:",chardata"`
			Caption         string `xml:"caption,attr"`
			Datatype        string `xml:"datatype,attr"`
			Name            string `xml:"name,attr"`
			ParamDomainType string `xml:"param-domain-type,attr"`
			Role            string `xml:"role,attr"`
			Type            string `xml:"type,attr"`
			Value           string `xml:"value,attr"`
			Calculation     struct {
				Text    string `xml:",chardata"`
				Class   string `xml:"class,attr"`
				Formula string `xml:"formula,attr"`
			} `xml:"calculation"`
			Range struct {
				Text        string `xml:",chardata"`
				Granularity string `xml:"granularity,attr"`
				Max         string `xml:"max,attr"`
				Min         string `xml:"min,attr"`
			} `xml:"range"`
		} `xml:"column"`
	} `xml:"datasource-dependencies"`
}

type DegradationListType

type DegradationListType struct {
	Degradation []DegradationType `xml:"http://tableau.com/api degradation,omitempty"`
}

type DegradationType

type DegradationType struct {
	Name     string `xml:"name,attr,omitempty"`
	Severity string `xml:"severity,attr,omitempty"`
}

type DistinctValueListType

type DistinctValueListType struct {
	DistinctValue []DistinctValueType `xml:"http://tableau.com/api distinctValue,omitempty"`
}

type DistinctValueType

type DistinctValueType struct {
	Value     SemanticsValueType `xml:"http://tableau.com/api value"`
	Frequency int64              `xml:"http://tableau.com/api frequency"`
}

type DomainDirectiveType

type DomainDirectiveType struct {
	Name string `xml:"name,attr"`
}

type ErrorType

type ErrorType struct {
	Summary string `xml:"http://tableau.com/api summary"`
	Detail  string `xml:"http://tableau.com/api detail"`
	Code    int    `xml:"code,attr"`
}

type ExecutionOrder

type ExecutionOrder string

May be one of Parallel, Serial

type ExtractListType

type ExtractListType struct {
	Extract []ExtractType `xml:"http://tableau.com/api extract,omitempty"`
}

type ExtractRefreshJobType

type ExtractRefreshJobType struct {
	Notes      string         `xml:"http://tableau.com/api notes"`
	View       ViewType       `xml:"http://tableau.com/api view"`
	Workbook   WorkbookType   `xml:"http://tableau.com/api workbook"`
	Datasource DataSourceType `xml:"http://tableau.com/api datasource"`
}

type ExtractType

type ExtractType struct {
	Datasource DataSourceType `xml:"http://tableau.com/api datasource"`
	Workbook   WorkbookType   `xml:"http://tableau.com/api workbook"`
	Id         ResourceIdType `xml:"id,attr,omitempty"`
	Priority   int            `xml:"priority,attr,omitempty"`
	Type       Type           `xml:"type,attr,omitempty"`
}

type FavoriteListType

type FavoriteListType struct {
	Favorite []FavoriteType `xml:"http://tableau.com/api favorite,omitempty"`
}

type FavoriteType

type FavoriteType struct {
	View              ViewType       `xml:"http://tableau.com/api view"`
	Workbook          WorkbookType   `xml:"http://tableau.com/api workbook"`
	Datasource        DataSourceType `xml:"http://tableau.com/api datasource"`
	Project           ProjectType    `xml:"http://tableau.com/api project"`
	Flow              FlowType       `xml:"http://tableau.com/api flow"`
	Label             string         `xml:"label,attr"`
	ParentProjectName string         `xml:"parentProjectName,attr,omitempty"`
	TargetOwnerName   string         `xml:"targetOwnerName,attr,omitempty"`
}

type FieldConceptType

type FieldConceptType struct {
	Uri                   string                   `xml:"http://tableau.com/api uri"`
	ObjectConceptURI      string                   `xml:"http://tableau.com/api objectConceptURI"`
	Names                 []NameType               `xml:"http://tableau.com/api names,omitempty"`
	NameCharacteristics   NameCharacteristicsType  `xml:"http://tableau.com/api nameCharacteristics,omitempty"`
	Description           string                   `xml:"http://tableau.com/api description,omitempty"`
	ParentFieldConceptURI string                   `xml:"http://tableau.com/api parentFieldConceptURI,omitempty"`
	DataTypes             []DataTypeType           `xml:"http://tableau.com/api dataTypes,omitempty"`
	FieldRoles            []FieldRoleType          `xml:"http://tableau.com/api fieldRoles,omitempty"`
	DefaultFormats        []string                 `xml:"http://tableau.com/api defaultFormats,omitempty"`
	ValueCharacteristics  ValueCharacteristicsType `xml:"http://tableau.com/api valueCharacteristics,omitempty"`
	OwnerID               string                   `xml:"http://tableau.com/api ownerID,omitempty"`
	CreatedAt             time.Time                `xml:"http://tableau.com/api createdAt,omitempty"`
	UpdatedAt             time.Time                `xml:"http://tableau.com/api updatedAt,omitempty"`
	ValueSource           ValueSourceType          `xml:"http://tableau.com/api valueSource,omitempty"`
}

func (*FieldConceptType) MarshalXML

func (t *FieldConceptType) MarshalXML(e *xml.Encoder, start xml.StartElement) error

func (*FieldConceptType) UnmarshalXML

func (t *FieldConceptType) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

type FieldMatchListType

type FieldMatchListType struct {
	FieldMatch []FieldMatchType `xml:"http://tableau.com/api fieldMatch,omitempty"`
}

type FieldMatchType

type FieldMatchType struct {
	FieldConceptURI string           `xml:"http://tableau.com/api fieldConceptURI"`
	Weight          float64          `xml:"http://tableau.com/api weight"`
	FieldConcept    FieldConceptType `xml:"http://tableau.com/api fieldConcept,omitempty"`
	ValueMatches    []ValueMatchType `xml:"http://tableau.com/api valueMatches,omitempty"`
}

type FieldRoleType

type FieldRoleType string

May be one of FIELD_ROLE_UNSPECIFIED, DIMENSION, MEASURE

type FieldType

type FieldType struct {
	SampleValues []DistinctValueType `xml:"http://tableau.com/api sampleValues,omitempty"`
	DataType     DataTypeType        `xml:"http://tableau.com/api dataType,omitempty"`
	FieldRole    FieldRoleType       `xml:"http://tableau.com/api fieldRole,omitempty"`
	Name         string              `xml:"http://tableau.com/api name,omitempty"`
}

type FileUploadSessionIdType

type FileUploadSessionIdType string

Must match the pattern ([0-9]+:[0-9a-fA-F]+)-([0-9]+:[0-9]+)

type FileUploadType

type FileUploadType struct {
	UploadSessionId FileUploadSessionIdType `xml:"uploadSessionId,attr"`
	FileSize        int                     `xml:"fileSize,attr,omitempty"`
}

type FlowListType

type FlowListType struct {
	Flow []FlowType `xml:"http://tableau.com/api flow,omitempty"`
}

type FlowOutputStepListType

type FlowOutputStepListType struct {
	FlowOutputStep []FlowOutputStepType `xml:"http://tableau.com/api flowOutputStep,omitempty"`
}

type FlowOutputStepType

type FlowOutputStepType struct {
	Id   ResourceIdType `xml:"id,attr,omitempty"`
	Name string         `xml:"name,attr,omitempty"`
}

type FlowType

type FlowType struct {
	Site        SiteType       `xml:"http://tableau.com/api site,omitempty"`
	Project     ProjectType    `xml:"http://tableau.com/api project,omitempty"`
	Owner       UserType       `xml:"http://tableau.com/api owner,omitempty"`
	Tags        TagListType    `xml:"http://tableau.com/api tags,omitempty"`
	Id          ResourceIdType `xml:"id,attr,omitempty"`
	Name        string         `xml:"name,attr,omitempty"`
	Description string         `xml:"description,attr,omitempty"`
	WebpageUrl  string         `xml:"webpageUrl,attr,omitempty"`
	FileType    string         `xml:"fileType,attr,omitempty"`
	CreatedAt   time.Time      `xml:"createdAt,attr,omitempty"`
	UpdatedAt   time.Time      `xml:"updatedAt,attr,omitempty"`
}

func (*FlowType) MarshalXML

func (t *FlowType) MarshalXML(e *xml.Encoder, start xml.StartElement) error

func (*FlowType) UnmarshalXML

func (t *FlowType) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

type FlowWarningsListContainerType

type FlowWarningsListContainerType struct {
	ConnectionWarnings WarningListType `xml:"http://tableau.com/api connectionWarnings,omitempty"`
	NodeWarnings       WarningListType `xml:"http://tableau.com/api nodeWarnings,omitempty"`
}

type Frequency

type Frequency string

May be one of Hourly, Daily, Weekly, Monthly

type FrequencyDetailsType

type FrequencyDetailsType struct {
	Intervals Intervals `xml:"http://tableau.com/api intervals"`
	Start     time.Time `xml:"start,attr"`
	End       time.Time `xml:"end,attr,omitempty"`
}

func (*FrequencyDetailsType) MarshalXML

func (t *FrequencyDetailsType) MarshalXML(e *xml.Encoder, start xml.StartElement) error

func (*FrequencyDetailsType) UnmarshalXML

func (t *FrequencyDetailsType) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

type GranteeCapabilitiesType

type GranteeCapabilitiesType struct {
	Group        GroupType    `xml:"http://tableau.com/api group"`
	User         UserType     `xml:"http://tableau.com/api user"`
	Capabilities Capabilities `xml:"http://tableau.com/api capabilities"`
}

type GroupListType

type GroupListType struct {
	Group []GroupType `xml:"http://tableau.com/api group,omitempty"`
}

type GroupType

type GroupType struct {
	Domain          DomainDirectiveType `xml:"http://tableau.com/api domain,omitempty"`
	Import          ImportDirectiveType `xml:"http://tableau.com/api import,omitempty"`
	Id              ResourceIdType      `xml:"id,attr,omitempty"`
	Name            string              `xml:"name,attr,omitempty"`
	UserCount       int                 `xml:"userCount,attr,omitempty"`
	MinimumSiteRole SiteRoleType        `xml:"minimumSiteRole,attr,omitempty"`
}

type Hours

type Hours int

May be one of 1, 2, 4, 6, 8, 12

type ImportDirectiveType

type ImportDirectiveType struct {
	Source     ImportSourceType `xml:"source,attr"`
	DomainName string           `xml:"domainName,attr"`
	SiteRole   SiteRoleType     `xml:"siteRole,attr"`
}

type ImportSourceType

type ImportSourceType string

May be one of ActiveDirectory

type IndexingStatusType

type IndexingStatusType struct {
	IndexingStatusCode         string `xml:"http://tableau.com/api indexingStatusCode"`
	IndexingErrorCode          string `xml:"http://tableau.com/api indexingErrorCode"`
	IndexedValueConceptVersion int64  `xml:"http://tableau.com/api indexedValueConceptVersion,omitempty"`
}

type IntervalType

type IntervalType struct {
	Minutes Minutes `xml:"minutes,attr,omitempty"`
	Hours   Hours   `xml:"hours,attr,omitempty"`
	WeekDay WeekDay `xml:"weekDay,attr,omitempty"`
}

type Intervals

type Intervals struct {
	Interval []IntervalType `xml:"http://tableau.com/api interval"`
}

type JobType

type JobType struct {
	StatusNotes       StatusNoteListType    `xml:"http://tableau.com/api statusNotes,omitempty"`
	ExtractRefreshJob ExtractRefreshJobType `xml:"http://tableau.com/api extractRefreshJob,omitempty"`
	RunFlowJobType    RunFlowJobType        `xml:"http://tableau.com/api runFlowJobType,omitempty"`
	Id                ResourceIdType        `xml:"id,attr,omitempty"`
	Mode              Mode                  `xml:"mode,attr,omitempty"`
	Type              Type                  `xml:"type,attr,omitempty"`
	Progress          int                   `xml:"progress,attr,omitempty"`
	CreatedAt         time.Time             `xml:"createdAt,attr,omitempty"`
	StartedAt         time.Time             `xml:"startedAt,attr,omitempty"`
	UpdatedAt         time.Time             `xml:"updatedAt,attr,omitempty"`
	CompletedAt       time.Time             `xml:"completedAt,attr,omitempty"`
	FinishCode        int                   `xml:"finishCode,attr,omitempty"`
}

func (*JobType) MarshalXML

func (t *JobType) MarshalXML(e *xml.Encoder, start xml.StartElement) error

func (*JobType) UnmarshalXML

func (t *JobType) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

type LastDay

type LastDay string

May be one of LastDay

type ListFieldConceptsType

type ListFieldConceptsType struct {
	FieldConcepts []FieldConceptType `xml:"http://tableau.com/api fieldConcepts,omitempty"`
	NextPageToken string             `xml:"http://tableau.com/api nextPageToken"`
}

type ListValueConceptsType

type ListValueConceptsType struct {
	ValueConcepts []ValueConceptType `xml:"http://tableau.com/api valueConcepts,omitempty"`
	NextPageToken string             `xml:"http://tableau.com/api nextPageToken,omitempty"`
}

type MatchValuesResultType

type MatchValuesResultType struct {
	AverageMatchWeight float64          `xml:"http://tableau.com/api averageMatchWeight,omitempty"`
	ValueMatches       []ValueMatchType `xml:"http://tableau.com/api valueMatches,omitempty"`
	MatchResponseSet   string           `xml:"http://tableau.com/api matchResponseSet,omitempty"`
}

type MaterializedViewsEnablementConfigType

type MaterializedViewsEnablementConfigType struct {
	MaterializedViewsEnabled bool `xml:"materializedViewsEnabled,attr,omitempty"`
	MaterializeNow           bool `xml:"materializeNow,attr,omitempty"`
}

func (*MaterializedViewsEnablementConfigType) UnmarshalXML

type Method

type Method string

May be one of POST

type MetricListType

type MetricListType struct {
	Metric []MetricType `xml:"http://tableau.com/api metric,omitempty"`
}

type MetricType

type MetricType struct {
	Site        SiteType       `xml:"http://tableau.com/api site,omitempty"`
	Project     ProjectType    `xml:"http://tableau.com/api project,omitempty"`
	Owner       UserType       `xml:"http://tableau.com/api owner,omitempty"`
	Id          ResourceIdType `xml:"id,attr,omitempty"`
	Name        string         `xml:"name,attr,omitempty"`
	Description string         `xml:"description,attr,omitempty"`
	WebpageUrl  string         `xml:"webpageUrl,attr,omitempty"`
	CreatedAt   time.Time      `xml:"createdAt,attr,omitempty"`
	UpdatedAt   time.Time      `xml:"updatedAt,attr,omitempty"`
	Definition  string         `xml:"definition,attr,omitempty"`
}

func (*MetricType) MarshalXML

func (t *MetricType) MarshalXML(e *xml.Encoder, start xml.StartElement) error

func (*MetricType) UnmarshalXML

func (t *MetricType) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

type Minutes

type Minutes int

May be one of 15, 30

type Mode

type Mode string

May be one of Allow, Deny

type MonthDay

type MonthDay string

type Name

type Name string

May be one of AddComment, ChangeHierarchy, ChangePermissions, Connect, Delete, ExportData, ExportImage, ExportXml, Filter, ProjectLeader, Read, ShareView, ViewComments, ViewUnderlyingData, WebAuthoring, Write

type NameCharacteristicsType

type NameCharacteristicsType struct {
	TextPattern TextPatternType `xml:"http://tableau.com/api textPattern,omitempty"`
}

type NameType

type NameType struct {
	Locale    string  `xml:"http://tableau.com/api locale,omitempty"`
	Name      string  `xml:"http://tableau.com/api name,omitempty"`
	Weight    float64 `xml:"http://tableau.com/api weight,omitempty"`
	IsPrimary bool    `xml:"http://tableau.com/api isPrimary,omitempty"`
}

type NamedConnection

type NamedConnection struct {
	XMLName    xml.Name `xml:"named-connection"`
	Text       string   `xml:",chardata"`
	Caption    string   `xml:"caption,attr"`
	Name       string   `xml:"name,attr"`
	Connection struct {
		Text                 string `xml:",chardata"`
		Authentication       string `xml:"authentication,attr"`
		Class                string `xml:"class,attr"`
		OneTimeSql           string `xml:"one-time-sql,attr"`
		Port                 string `xml:"port,attr"`
		Schema               string `xml:"schema,attr"`
		Server               string `xml:"server,attr"`
		ServerOauth          string `xml:"server-oauth,attr"`
		Service              string `xml:"service,attr"`
		Sslmode              string `xml:"sslmode,attr"`
		Username             string `xml:"username,attr"`
		WorkgroupAuthMode    string `xml:"workgroup-auth-mode,attr"`
		Dbname               string `xml:"dbname,attr"`
		MinimumDriverVersion string `xml:"minimum-driver-version,attr"`
		OdbcNativeProtocol   string `xml:"odbc-native-protocol,attr"`
	} `xml:"connection"`
}

type NamedConnections

type NamedConnections struct {
	XMLName         xml.Name          `xml:"named-connections"`
	Text            string            `xml:",chardata"`
	NamedConnection []NamedConnection `xml:"named-connection"`
}

type PaginationType

type PaginationType struct {
	PageNumber     int `xml:"pageNumber,attr"`
	PageSize       int `xml:"pageSize,attr"`
	TotalAvailable int `xml:"totalAvailable,attr"`
}

type ParentType

type ParentType struct {
	Id   ResourceIdType `xml:"id,attr"`
	Type Type           `xml:"type,attr"`
	Name LastDay        `xml:"name,attr,omitempty"`
}

type PermissionsType

type PermissionsType struct {
	Parent              ParentType                `xml:"http://tableau.com/api parent,omitempty"`
	Flow                FlowType                  `xml:"http://tableau.com/api flow"`
	Database            DatabaseType              `xml:"http://tableau.com/api database"`
	Datasource          DataSourceType            `xml:"http://tableau.com/api datasource"`
	Project             ProjectType               `xml:"http://tableau.com/api project"`
	Table               TableType                 `xml:"http://tableau.com/api table"`
	View                ViewType                  `xml:"http://tableau.com/api view"`
	Workbook            WorkbookType              `xml:"http://tableau.com/api workbook"`
	GranteeCapabilities []GranteeCapabilitiesType `xml:"http://tableau.com/api granteeCapabilities,omitempty"`
}

type ProductVersion

type ProductVersion struct {
	Value string `xml:",chardata"`
	Build Build  `xml:"build,attr,omitempty"`
}

type Project

type Project struct {
	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"`
}

type ProjectListType

type ProjectListType struct {
	Project []ProjectType `xml:"http://tableau.com/api project,omitempty"`
}

type ProjectType

type ProjectType struct {
	Owner              UserType           `xml:"http://tableau.com/api owner,omitempty"`
	Id                 ResourceIdType     `xml:"id,attr,omitempty"`
	Name               string             `xml:"name,attr,omitempty"`
	Description        string             `xml:"description,attr,omitempty"`
	TopLevelProject    bool               `xml:"topLevelProject,attr,omitempty"`
	ParentProjectId    ResourceIdType     `xml:"parentProjectId,attr,omitempty"`
	CreatedAt          time.Time          `xml:"createdAt,attr,omitempty"`
	UpdatedAt          time.Time          `xml:"updatedAt,attr,omitempty"`
	FavoritesTotal     int                `xml:"favoritesTotal,attr,omitempty"`
	ContentPermissions ContentPermissions `xml:"contentPermissions,attr,omitempty"`
}

func (*ProjectType) MarshalXML

func (t *ProjectType) MarshalXML(e *xml.Encoder, start xml.StartElement) error

func (*ProjectType) UnmarshalXML

func (t *ProjectType) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

type Projects

type Projects struct {
	Projects []ProjectType `json:"project,omitempty" xml:"project,omitempty"`
}

type ProjectsHolder

type ProjectsHolder struct {
	Projects Projects `json:"projects,omitempty" xml:"projects,omitempty"`
}

type ResourceIdType

type ResourceIdType string

Must match the pattern [0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}

type RestApiVersion

type RestApiVersion string

Must match the pattern [0-9]{5}.[0-9]{2}.[0-9]{4}.[0-9]{4}

type RevisionLimitType

type RevisionLimitType string

type RevisionListType

type RevisionListType struct {
	Revision []RevisionType `xml:"http://tableau.com/api revision,omitempty"`
}

type RevisionType

type RevisionType struct {
	Publisher      UserType  `xml:"http://tableau.com/api publisher,omitempty"`
	RevisionNumber int       `xml:"revisionNumber,attr,omitempty"`
	PublishedAt    time.Time `xml:"publishedAt,attr,omitempty"`
	Deleted        bool      `xml:"deleted,attr,omitempty"`
	Current        bool      `xml:"current,attr,omitempty"`
	SizeInBytes    int64     `xml:"sizeInBytes,attr,omitempty"`
}

func (*RevisionType) MarshalXML

func (t *RevisionType) MarshalXML(e *xml.Encoder, start xml.StartElement) error

func (*RevisionType) UnmarshalXML

func (t *RevisionType) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

type RunFlowJobType

type RunFlowJobType struct {
	Notes string   `xml:"http://tableau.com/api notes"`
	Flow  FlowType `xml:"http://tableau.com/api flow"`
}

type ScheduleListType

type ScheduleListType struct {
	Schedule []ScheduleType `xml:"http://tableau.com/api schedule,omitempty"`
}

type ScheduleType

type ScheduleType struct {
	FrequencyDetails FrequencyDetailsType `xml:"http://tableau.com/api frequencyDetails,omitempty"`
	Id               ResourceIdType       `xml:"id,attr,omitempty"`
	Name             string               `xml:"name,attr,omitempty"`
	State            StateType            `xml:"state,attr,omitempty"`
	Priority         int                  `xml:"priority,attr,omitempty"`
	CreatedAt        time.Time            `xml:"createdAt,attr,omitempty"`
	UpdatedAt        time.Time            `xml:"updatedAt,attr,omitempty"`
	Type             Type                 `xml:"type,attr,omitempty"`
	Frequency        Frequency            `xml:"frequency,attr,omitempty"`
	NextRunAt        time.Time            `xml:"nextRunAt,attr,omitempty"`
	EndScheduleAt    time.Time            `xml:"endScheduleAt,attr,omitempty"`
	ExecutionOrder   ExecutionOrder       `xml:"executionOrder,attr,omitempty"`
}

func (*ScheduleType) MarshalXML

func (t *ScheduleType) MarshalXML(e *xml.Encoder, start xml.StartElement) error

func (*ScheduleType) UnmarshalXML

func (t *ScheduleType) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

type SemanticsValueType

type SemanticsValueType struct {
	NumberValue float64   `xml:"http://tableau.com/api numberValue,omitempty"`
	StringValue string    `xml:"http://tableau.com/api stringValue,omitempty"`
	TimeValue   time.Time `xml:"http://tableau.com/api timeValue,omitempty"`
	BoolValue   bool      `xml:"http://tableau.com/api boolValue,omitempty"`
}

func (*SemanticsValueType) MarshalXML

func (t *SemanticsValueType) MarshalXML(e *xml.Encoder, start xml.StartElement) error

func (*SemanticsValueType) UnmarshalXML

func (t *SemanticsValueType) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

type ServerInfo

type ServerInfo struct {
	ProductVersion       ProductVersion `xml:"http://tableau.com/api productVersion"`
	PrepConductorVersion string         `xml:"http://tableau.com/api prepConductorVersion"`
	RestApiVersion       RestApiVersion `xml:"http://tableau.com/api restApiVersion"`
	Platform             string         `xml:"http://tableau.com/api platform"`
	ServerSettings       ServerSettings `xml:"http://tableau.com/api serverSettings"`
}

type ServerSettings

type ServerSettings struct {
	OAuthEnabled                     bool `xml:"http://tableau.com/api oAuthEnabled"`
	SheetImageMaxAgeFloor            int  `xml:"http://tableau.com/api sheetImageMaxAgeFloor"`
	SheetImageMaxAgeCeiling          int  `xml:"http://tableau.com/api sheetImageMaxAgeCeiling"`
	OfflineInteractionSupportedPhase int  `xml:"http://tableau.com/api offlineInteractionSupportedPhase"`
}

type Site

type Site struct {
	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        *SiteUsage `json:"usage,omitempty" xml:"usage,omitempty"`
}

type SiteListType

type SiteListType struct {
	Site []SiteType `xml:"http://tableau.com/api site,omitempty"`
}

type SiteRoleType

type SiteRoleType string

May be one of Creator, Explorer, ExplorerCanPublish, Guest, Interactor, Publisher, ReadOnly, ServerAdministrator, SiteAdministrator, SiteAdministratorCreator, SiteAdministratorExplorer, Unlicensed, UnlicensedWithPublish, Viewer, ViewerWithPublish

type SiteType

type SiteType struct {
	Usage                        Usage             `xml:"http://tableau.com/api usage,omitempty"`
	Id                           ResourceIdType    `xml:"id,attr,omitempty"`
	Name                         string            `xml:"name,attr,omitempty"`
	ContentUrl                   string            `xml:"contentUrl,attr,omitempty"`
	AdminMode                    AdminMode         `xml:"adminMode,attr,omitempty"`
	UserQuota                    int               `xml:"userQuota,attr,omitempty"`
	StorageQuota                 int               `xml:"storageQuota,attr,omitempty"`
	TierCreatorCapacity          int               `xml:"tierCreatorCapacity,attr,omitempty"`
	TierExplorerCapacity         int               `xml:"tierExplorerCapacity,attr,omitempty"`
	TierViewerCapacity           int               `xml:"tierViewerCapacity,attr,omitempty"`
	DisableSubscriptions         bool              `xml:"disableSubscriptions,attr,omitempty"`
	State                        StateType         `xml:"state,attr,omitempty"`
	RevisionHistoryEnabled       bool              `xml:"revisionHistoryEnabled,attr,omitempty"`
	RevisionLimit                RevisionLimitType `xml:"revisionLimit,attr,omitempty"`
	SubscribeOthersEnabled       bool              `xml:"subscribeOthersEnabled,attr,omitempty"`
	AllowSubscriptionAttachments bool              `xml:"allowSubscriptionAttachments,attr,omitempty"`
	GuestAccessEnabled           bool              `xml:"guestAccessEnabled,attr,omitempty"`
	CacheWarmupEnabled           bool              `xml:"cacheWarmupEnabled,attr,omitempty"`
	CommentingEnabled            bool              `xml:"commentingEnabled,attr,omitempty"`
	CacheeWarmupThreshold        int               `xml:"cacheeWarmupThreshold,attr,omitempty"`
	FlowsEnabled                 bool              `xml:"flowsEnabled,attr,omitempty"`
	ExtractEncryptionMode        string            `xml:"extractEncryptionMode,attr,omitempty"`
	MaterializedViewsMode        string            `xml:"materializedViewsMode,attr,omitempty"`
	MobileBiometricsEnabled      bool              `xml:"mobileBiometricsEnabled,attr,omitempty"`
	SheetImageEnabled            bool              `xml:"sheetImageEnabled,attr,omitempty"`
	CatalogingEnabled            bool              `xml:"catalogingEnabled,attr,omitempty"`
	DerivedPermissionsEnabled    bool              `xml:"derivedPermissionsEnabled,attr,omitempty"`
}

type SiteUsage

type SiteUsage struct {
	NumberOfUsers int `json:"number-of-users" xml:"number-of-users,attr"`
	Storage       int `json:"storage" xml:"storage,attr"`
}

type SiteUserAuthSettingType

type SiteUserAuthSettingType string

May be one of ServerDefault, SAML

type StateType

type StateType string

May be one of Active, Suspended

type Status

type Status string

May be one of Pending, InProgress, Success, Failed, Cancelled

type StatusNoteListType

type StatusNoteListType struct {
	StatusNote []StatusNoteType `xml:"http://tableau.com/api statusNote,omitempty"`
}

type StatusNoteType

type StatusNoteType struct {
	Type  Type   `xml:"type,attr"`
	Value string `xml:"value,attr,omitempty"`
	Text  string `xml:"text,attr,omitempty"`
}

type SubscriptionContentType

type SubscriptionContentType struct {
	Id   ResourceIdType `xml:"id,attr"`
	Type Type           `xml:"type,attr"`
	Name LastDay        `xml:"name,attr,omitempty"`
}

type SubscriptionListType

type SubscriptionListType struct {
	Subscription []SubscriptionType `xml:"http://tableau.com/api subscription,omitempty"`
}

type SubscriptionType

type SubscriptionType struct {
	Content     SubscriptionContentType `xml:"http://tableau.com/api content"`
	Schedule    ScheduleType            `xml:"http://tableau.com/api schedule"`
	User        UserType                `xml:"http://tableau.com/api user"`
	Id          ResourceIdType          `xml:"id,attr,omitempty"`
	Subject     string                  `xml:"subject,attr"`
	AttachImage bool                    `xml:"attachImage,attr,omitempty"`
	AttachPdf   bool                    `xml:"attachPdf,attr,omitempty"`
}

type TabGo

type TabGo struct {
	ServerURL       string
	ApiVersion      string
	CurrentToken    string
	CurrentSiteID   string
	CurrentSiteName string
}

TabGo is the base implementation of the TableauApi command line in GoLang

func (*TabGo) ApiURL

func (tabl *TabGo) ApiURL() string

func (*TabGo) CreateProject

func (tabl *TabGo) CreateProject(parentProjectID, projectName string) (string, error)

func (*TabGo) DataSourceConnections

func (tabl *TabGo) DataSourceConnections(datasourceId string) ([]Connection, error)

func (*TabGo) DeleteExtractedDatasourceData

func (tabl *TabGo) DeleteExtractedDatasourceData(datasourceId string) error

func (*TabGo) EmbedDatasourceConnection

func (tabl *TabGo) EmbedDatasourceConnection(datasourceId string, connection Connection, pwFinder ConnectionFinder, caption string) error

func (*TabGo) ExtractDatasourceData

func (tabl *TabGo) ExtractDatasourceData(datasourceId string, encrypt bool) error

func (*TabGo) GetProjectID

func (tabl *TabGo) GetProjectID(projectName string) (string, error)

func (*TabGo) PublishDocument

func (tabl *TabGo) PublishDocument(documentPath, projectName string, targetConnectionFinder ConnectionFinder) (TsResponse, error)

cfr https://help.tableau.com/current/api/rest_api/en-us/REST/rest_api_concepts_publish.htm

func (*TabGo) Signin

func (tabl *TabGo) Signin(username, password, siteName string) error

Signin signs in to a tableau site on the give Tableau.URL It remembers the current token and site ID for subsequent calls cfr https://help.tableau.com/current/api/rest_api/en-us/REST/rest_api_concepts_auth.htm

func (*TabGo) Signout

func (tabl *TabGo) Signout() error

Signout signs out of tableau, forgetting previously stored site and token id cfr https://help.tableau.com/current/api/rest_api/en-us/REST/rest_api_concepts_auth.htm

type TableListType

type TableListType struct {
	Table []TableType `xml:"http://tableau.com/api table,omitempty"`
}

type TableType

type TableType struct {
	Site              SiteType       `xml:"http://tableau.com/api site,omitempty"`
	Contact           UserType       `xml:"http://tableau.com/api contact"`
	Certifier         UserType       `xml:"http://tableau.com/api certifier"`
	Id                ResourceIdType `xml:"id,attr,omitempty"`
	Name              string         `xml:"name,attr,omitempty"`
	Description       string         `xml:"description,attr,omitempty"`
	IsEmbedded        bool           `xml:"isEmbedded,attr,omitempty"`
	IsCertified       bool           `xml:"isCertified,attr,omitempty"`
	CertificationNote string         `xml:"certificationNote,attr,omitempty"`
	Schema            string         `xml:"schema,attr,omitempty"`
}

type TableauCredentialsType

type TableauCredentialsType struct {
	Site     SiteType `xml:"http://tableau.com/api site"`
	User     UserType `xml:"http://tableau.com/api user,omitempty"`
	Name     string   `xml:"name,attr,omitempty"`
	Password string   `xml:"password,attr,omitempty"`
	Token    string   `xml:"token,attr,omitempty"`
}

type TagListType

type TagListType struct {
	Tag []TagType `xml:"http://tableau.com/api tag,omitempty"`
}

type TagType

type TagType struct {
	Label string `xml:"label,attr"`
}

type TaskExtractRefreshType

type TaskExtractRefreshType struct {
	Schedule               ScheduleType   `xml:"http://tableau.com/api schedule,omitempty"`
	View                   ViewType       `xml:"http://tableau.com/api view"`
	Workbook               WorkbookType   `xml:"http://tableau.com/api workbook"`
	Datasource             DataSourceType `xml:"http://tableau.com/api datasource"`
	Id                     string         `xml:"id,attr,omitempty"`
	Priority               int            `xml:"priority,attr,omitempty"`
	ConsecutiveFailedCount int            `xml:"consecutiveFailedCount,attr,omitempty"`
	Type                   string         `xml:"type,attr,omitempty"`
	Incremental            bool           `xml:"incremental,attr,omitempty"`
}

type TaskListType

type TaskListType struct {
	Task []TaskType `xml:"http://tableau.com/api task,omitempty"`
}

type TaskRunFlowType

type TaskRunFlowType struct {
	Schedule               ScheduleType `xml:"http://tableau.com/api schedule,omitempty"`
	Flow                   FlowType     `xml:"http://tableau.com/api flow"`
	Id                     string       `xml:"id,attr,omitempty"`
	Priority               int          `xml:"priority,attr,omitempty"`
	ConsecutiveFailedCount int          `xml:"consecutiveFailedCount,attr,omitempty"`
	Type                   string       `xml:"type,attr,omitempty"`
}

type TaskType

type TaskType struct {
	ExtractRefresh         TaskExtractRefreshType `xml:"http://tableau.com/api extractRefresh"`
	FlowRun                TaskRunFlowType        `xml:"http://tableau.com/api flowRun"`
	Schedule               ScheduleType           `xml:"http://tableau.com/api schedule,omitempty"`
	RunNow                 bool                   `xml:"runNow,attr,omitempty"`
	State                  string                 `xml:"state,attr,omitempty"`
	Id                     string                 `xml:"id,attr,omitempty"`
	Priority               int                    `xml:"priority,attr,omitempty"`
	ConsecutiveFailedCount int                    `xml:"consecutiveFailedCount,attr,omitempty"`
	Type                   string                 `xml:"type,attr,omitempty"`
}

type TextPatternType

type TextPatternType struct {
	Regex []string `xml:"http://tableau.com/api regex,omitempty"`
}

type TsRequest

type TsRequest struct {
	Column             ColumnType                    `xml:"http://tableau.com/api column"`
	Connection         ConnectionType                `xml:"http://tableau.com/api connection"`
	Connections        ConnectionListType            `xml:"http://tableau.com/api connections"`
	Credentials        TableauCredentialsType        `xml:"http://tableau.com/api credentials"`
	DataAlert          DataAlertType                 `xml:"http://tableau.com/api dataAlert"`
	DataQualityWarning DataQualityWarningType        `xml:"http://tableau.com/api dataQualityWarning"`
	DataRole           DataRoleType                  `xml:"http://tableau.com/api dataRole"`
	Database           DatabaseType                  `xml:"http://tableau.com/api database"`
	Datasource         DataSourceType                `xml:"http://tableau.com/api datasource"`
	DistinctValues     DistinctValueListType         `xml:"http://tableau.com/api distinctValues"`
	Favorite           FavoriteType                  `xml:"http://tableau.com/api favorite"`
	Field              FieldType                     `xml:"http://tableau.com/api field"`
	FieldConcept       FieldConceptType              `xml:"http://tableau.com/api fieldConcept"`
	Flow               FlowType                      `xml:"http://tableau.com/api flow"`
	FlowWarnings       FlowWarningsListContainerType `xml:"http://tableau.com/api flowWarnings"`
	Group              GroupType                     `xml:"http://tableau.com/api group"`
	Metric             MetricType                    `xml:"http://tableau.com/api metric"`
	Permissions        PermissionsType               `xml:"http://tableau.com/api permissions"`
	Project            ProjectType                   `xml:"http://tableau.com/api project"`
	Schedule           ScheduleType                  `xml:"http://tableau.com/api schedule"`
	Site               SiteType                      `xml:"http://tableau.com/api site"`
	Table              TableType                     `xml:"http://tableau.com/api table"`
	Tags               TagListType                   `xml:"http://tableau.com/api tags"`
	User               UserType                      `xml:"http://tableau.com/api user"`
	Webhook            WebhookType                   `xml:"http://tableau.com/api webhook"`
	Workbook           WorkbookType                  `xml:"http://tableau.com/api workbook"`
	Subscription       SubscriptionType              `xml:"http://tableau.com/api subscription"`
	Task               TaskType                      `xml:"http://tableau.com/api task"`
}

type TsResponse

type TsResponse struct {
	Pagination              PaginationType              `xml:"http://tableau.com/api pagination"`
	Columns                 ColumnListType              `xml:"http://tableau.com/api columns"`
	Databases               DatabaseListType            `xml:"http://tableau.com/api databases"`
	Datasources             DataSourceListType          `xml:"http://tableau.com/api datasources"`
	Extracts                ExtractListType             `xml:"http://tableau.com/api extracts"`
	Flows                   FlowListType                `xml:"http://tableau.com/api flows"`
	FlowOutputSteps         FlowOutputStepListType      `xml:"http://tableau.com/api flowOutputSteps"`
	Groups                  GroupListType               `xml:"http://tableau.com/api groups"`
	Metrics                 MetricListType              `xml:"http://tableau.com/api metrics"`
	Projects                ProjectListType             `xml:"http://tableau.com/api projects"`
	Revisions               RevisionListType            `xml:"http://tableau.com/api revisions"`
	Schedules               ScheduleListType            `xml:"http://tableau.com/api schedules"`
	Sites                   SiteListType                `xml:"http://tableau.com/api sites"`
	Tables                  TableListType               `xml:"http://tableau.com/api tables"`
	Users                   UserListType                `xml:"http://tableau.com/api users"`
	Workbooks               WorkbookListType            `xml:"http://tableau.com/api workbooks"`
	Subscriptions           SubscriptionListType        `xml:"http://tableau.com/api subscriptions"`
	BackgroundJob           BackgroundJobType           `xml:"http://tableau.com/api backgroundJob"`
	BackgroundJobs          BackgroundJobListType       `xml:"http://tableau.com/api backgroundJobs"`
	Column                  ColumnType                  `xml:"http://tableau.com/api column"`
	Connection              ConnectionType              `xml:"http://tableau.com/api connection"`
	Connections             ConnectionListType          `xml:"http://tableau.com/api connections"`
	Credentials             TableauCredentialsType      `xml:"http://tableau.com/api credentials"`
	DataAlert               DataAlertType               `xml:"http://tableau.com/api dataAlert"`
	DataAlerts              DataAlertListType           `xml:"http://tableau.com/api dataAlerts"`
	DataQualityWarning      DataQualityWarningType      `xml:"http://tableau.com/api dataQualityWarning"`
	DataQualityWarningList  DataQualityWarningListType  `xml:"http://tableau.com/api dataQualityWarningList"`
	DataRole                DataRoleType                `xml:"http://tableau.com/api dataRole"`
	Database                DatabaseType                `xml:"http://tableau.com/api database"`
	Datasource              DataSourceType              `xml:"http://tableau.com/api datasource"`
	Error                   ErrorType                   `xml:"http://tableau.com/api error"`
	Favorites               FavoriteListType            `xml:"http://tableau.com/api favorites"`
	FileUpload              FileUploadType              `xml:"http://tableau.com/api fileUpload"`
	Flow                    FlowType                    `xml:"http://tableau.com/api flow"`
	Group                   GroupType                   `xml:"http://tableau.com/api group"`
	Job                     JobType                     `xml:"http://tableau.com/api job"`
	Metric                  MetricType                  `xml:"http://tableau.com/api metric"`
	Permissions             PermissionsType             `xml:"http://tableau.com/api permissions"`
	Project                 ProjectType                 `xml:"http://tableau.com/api project"`
	DataAlertsRecipient     DataAlertsRecipientType     `xml:"http://tableau.com/api dataAlertsRecipient"`
	DataAlertsRecipientList DataAlertsRecipientListType `xml:"http://tableau.com/api dataAlertsRecipientList"`
	Schedule                ScheduleType                `xml:"http://tableau.com/api schedule"`
	ServerInfo              ServerInfo                  `xml:"http://tableau.com/api serverInfo"`
	ServerSettings          ServerSettings              `xml:"http://tableau.com/api serverSettings"`
	Site                    SiteType                    `xml:"http://tableau.com/api site"`
	Table                   TableType                   `xml:"http://tableau.com/api table"`
	Tags                    TagListType                 `xml:"http://tableau.com/api tags"`
	User                    UserType                    `xml:"http://tableau.com/api user"`
	View                    ViewType                    `xml:"http://tableau.com/api view"`
	Views                   ViewListType                `xml:"http://tableau.com/api views"`
	Webhook                 WebhookType                 `xml:"http://tableau.com/api webhook"`
	Webhooks                WebhookListType             `xml:"http://tableau.com/api webhooks"`
	WebhookTestResult       WebhookTestResultType       `xml:"http://tableau.com/api webhookTestResult"`
	Workbook                WorkbookType                `xml:"http://tableau.com/api workbook"`
	Subscription            SubscriptionType            `xml:"http://tableau.com/api subscription"`
	Task                    TaskType                    `xml:"http://tableau.com/api task"`
	Tasks                   TaskListType                `xml:"http://tableau.com/api tasks"`
	Warnings                WarningListType             `xml:"http://tableau.com/api warnings"`
	Degradations            DegradationListType         `xml:"http://tableau.com/api degradations"`
	ListFieldConcepts       ListFieldConceptsType       `xml:"http://tableau.com/api listFieldConcepts"`
	FieldMatches            FieldMatchListType          `xml:"http://tableau.com/api fieldMatches"`
	ValueMatches            MatchValuesResultType       `xml:"http://tableau.com/api valueMatches"`
	ValueConceptCount       ValueConceptCountType       `xml:"http://tableau.com/api valueConceptCount"`
	ListValueConcepts       ListValueConceptsType       `xml:"http://tableau.com/api listValueConcepts"`
	FieldConcept            FieldConceptType            `xml:"http://tableau.com/api fieldConcept"`
	GetIndexingStatus       IndexingStatusType          `xml:"http://tableau.com/api getIndexingStatus"`
}

type Type

type Type string

May be one of CountOfUsersAddedToGroup, CountOfUsersAddedToSite, CountOfUsersWithInsufficientLicenses, CountOfUsersInActiveDirectoryGroup, CountOfUsersProcessed, CountOfUsersSkipped, CountOfUsersInformationUpdated, CountOfUsersSiteRoleUpdated, CountOfUsersRemovedFromGroup, CountOfUsersUnlicensed

type Url

type Url string

Must match the pattern https?://.+

type Usage

type Usage struct {
	NumUsers int `xml:"numUsers,attr"`
	Storage  int `xml:"storage,attr"`
}

type User

type User struct {
	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 UserListType

type UserListType struct {
	User []UserType `xml:"http://tableau.com/api user,omitempty"`
}

type UserType

type UserType struct {
	Domain             DomainDirectiveType     `xml:"http://tableau.com/api domain,omitempty"`
	Id                 ResourceIdType          `xml:"id,attr,omitempty"`
	Name               string                  `xml:"name,attr,omitempty"`
	FullName           string                  `xml:"fullName,attr,omitempty"`
	Email              string                  `xml:"email,attr,omitempty"`
	Password           string                  `xml:"password,attr,omitempty"`
	SiteRole           SiteRoleType            `xml:"siteRole,attr,omitempty"`
	AuthSetting        SiteUserAuthSettingType `xml:"authSetting,attr,omitempty"`
	LastLogin          time.Time               `xml:"lastLogin,attr,omitempty"`
	ExternalAuthUserId string                  `xml:"externalAuthUserId,attr,omitempty"`
}

func (*UserType) MarshalXML

func (t *UserType) MarshalXML(e *xml.Encoder, start xml.StartElement) error

func (*UserType) UnmarshalXML

func (t *UserType) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

type ValueCharacteristicsType

type ValueCharacteristicsType struct {
	TextPattern TextPatternType `xml:"http://tableau.com/api textPattern,omitempty"`
}

type ValueConceptCountType

type ValueConceptCountType struct {
	Count int64 `xml:"http://tableau.com/api count"`
}

type ValueConceptSignature

type ValueConceptSignature struct {
	FieldConceptURI string `xml:"http://tableau.com/api fieldConceptURI"`
	ValueConceptURI string `xml:"http://tableau.com/api valueConceptURI"`
}

type ValueConceptType

type ValueConceptType struct {
	Uri                   string                  `xml:"http://tableau.com/api uri"`
	FieldConceptURI       string                  `xml:"http://tableau.com/api fieldConceptURI"`
	Names                 []NameType              `xml:"http://tableau.com/api names,omitempty"`
	NameCharacteristics   NameCharacteristicsType `xml:"http://tableau.com/api nameCharacteristics,omitempty"`
	Description           string                  `xml:"http://tableau.com/api description,omitempty"`
	ParentValueConceptURI string                  `xml:"http://tableau.com/api parentValueConceptURI,omitempty"`
	Value                 SemanticsValueType      `xml:"http://tableau.com/api value,omitempty"`
}

type ValueMatchType

type ValueMatchType struct {
	Value                 SemanticsValueType    `xml:"http://tableau.com/api value,omitempty"`
	Weight                float64               `xml:"http://tableau.com/api weight,omitempty"`
	ValueConcept          ValueConceptType      `xml:"http://tableau.com/api valueConcept,omitempty"`
	ValueConceptSignature ValueConceptSignature `xml:"http://tableau.com/api valueConceptSignature,omitempty"`
}

type ValueSourceType

type ValueSourceType struct {
	DatasourceValueStore DataSourceValueStoreType `xml:"http://tableau.com/api datasourceValueStore,omitempty"`
}

type ViewListType

type ViewListType struct {
	View []ViewType `xml:"http://tableau.com/api view,omitempty"`
}

type ViewType

type ViewType struct {
	Workbook       WorkbookType   `xml:"http://tableau.com/api workbook,omitempty"`
	Owner          UserType       `xml:"http://tableau.com/api owner,omitempty"`
	Project        ProjectType    `xml:"http://tableau.com/api project,omitempty"`
	Tags           TagListType    `xml:"http://tableau.com/api tags,omitempty"`
	Usage          Anon4          `xml:"http://tableau.com/api usage,omitempty"`
	Id             ResourceIdType `xml:"id,attr,omitempty"`
	Name           string         `xml:"name,attr,omitempty"`
	ContentUrl     string         `xml:"contentUrl,attr,omitempty"`
	CreatedAt      time.Time      `xml:"createdAt,attr,omitempty"`
	UpdatedAt      time.Time      `xml:"updatedAt,attr,omitempty"`
	SheetType      string         `xml:"sheetType,attr,omitempty"`
	FavoritesTotal int            `xml:"favoritesTotal,attr,omitempty"`
	Hidden         bool           `xml:"hidden,attr,omitempty"`
	RecentlyViewed bool           `xml:"recentlyViewed,attr,omitempty"`
	ViewUrlName    string         `xml:"viewUrlName,attr,omitempty"`
}

func (*ViewType) MarshalXML

func (t *ViewType) MarshalXML(e *xml.Encoder, start xml.StartElement) error

func (*ViewType) UnmarshalXML

func (t *ViewType) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

type WarningListType

type WarningListType struct {
	Warning []WarningType `xml:"http://tableau.com/api warning,omitempty"`
}

type WarningType

type WarningType struct {
	Message   string `xml:"message,attr,omitempty"`
	Id        string `xml:"id,attr,omitempty"`
	ErrorCode string `xml:"errorCode,attr,omitempty"`
}

type WebhookDestinationHttpType

type WebhookDestinationHttpType struct {
	Method Method `xml:"method,attr,omitempty"`
	Url    Url    `xml:"url,attr,omitempty"`
}

type WebhookDestinationType

type WebhookDestinationType struct {
	Webhookdestinationhttp WebhookDestinationHttpType `xml:"http://tableau.com/api webhook-destination-http"`
}

type WebhookListType

type WebhookListType struct {
	Webhook []WebhookType `xml:"http://tableau.com/api webhook,omitempty"`
}

type WebhookSourceEventDatasourceCreatedType

type WebhookSourceEventDatasourceCreatedType struct {
}

type WebhookSourceEventDatasourceDeletedType

type WebhookSourceEventDatasourceDeletedType struct {
}

type WebhookSourceEventDatasourceRefreshFailedType

type WebhookSourceEventDatasourceRefreshFailedType struct {
}

type WebhookSourceEventDatasourceRefreshStartedType

type WebhookSourceEventDatasourceRefreshStartedType struct {
}

type WebhookSourceEventDatasourceRefreshSucceededType

type WebhookSourceEventDatasourceRefreshSucceededType struct {
}

type WebhookSourceEventDatasourceUpdatedType

type WebhookSourceEventDatasourceUpdatedType struct {
}

type WebhookSourceEventViewDeletedType

type WebhookSourceEventViewDeletedType struct {
}

type WebhookSourceEventWorkbookCreatedType

type WebhookSourceEventWorkbookCreatedType struct {
}

type WebhookSourceEventWorkbookDeletedType

type WebhookSourceEventWorkbookDeletedType struct {
}

type WebhookSourceEventWorkbookRefreshFailedType

type WebhookSourceEventWorkbookRefreshFailedType struct {
}

type WebhookSourceEventWorkbookRefreshStartedType

type WebhookSourceEventWorkbookRefreshStartedType struct {
}

type WebhookSourceEventWorkbookRefreshSucceededType

type WebhookSourceEventWorkbookRefreshSucceededType struct {
}

type WebhookSourceEventWorkbookUpdatedType

type WebhookSourceEventWorkbookUpdatedType struct {
}

type WebhookSourceType

type WebhookSourceType struct {
	Webhooksourceeventdatasourcerefreshstarted   WebhookSourceEventDatasourceRefreshStartedType   `xml:"http://tableau.com/api webhook-source-event-datasource-refresh-started"`
	Webhooksourceeventdatasourcerefreshsucceeded WebhookSourceEventDatasourceRefreshSucceededType `xml:"http://tableau.com/api webhook-source-event-datasource-refresh-succeeded"`
	Webhooksourceeventdatasourcerefreshfailed    WebhookSourceEventDatasourceRefreshFailedType    `xml:"http://tableau.com/api webhook-source-event-datasource-refresh-failed"`
	Webhooksourceeventdatasourceupdated          WebhookSourceEventDatasourceUpdatedType          `xml:"http://tableau.com/api webhook-source-event-datasource-updated"`
	Webhooksourceeventdatasourcecreated          WebhookSourceEventDatasourceCreatedType          `xml:"http://tableau.com/api webhook-source-event-datasource-created"`
	Webhooksourceeventdatasourcedeleted          WebhookSourceEventDatasourceDeletedType          `xml:"http://tableau.com/api webhook-source-event-datasource-deleted"`
	Webhooksourceeventworkbookupdated            WebhookSourceEventWorkbookUpdatedType            `xml:"http://tableau.com/api webhook-source-event-workbook-updated"`
	Webhooksourceeventworkbookcreated            WebhookSourceEventWorkbookCreatedType            `xml:"http://tableau.com/api webhook-source-event-workbook-created"`
	Webhooksourceeventworkbookdeleted            WebhookSourceEventWorkbookDeletedType            `xml:"http://tableau.com/api webhook-source-event-workbook-deleted"`
	Webhooksourceeventviewdeleted                WebhookSourceEventViewDeletedType                `xml:"http://tableau.com/api webhook-source-event-view-deleted"`
	Webhooksourceeventworkbookrefreshstarted     WebhookSourceEventWorkbookRefreshStartedType     `xml:"http://tableau.com/api webhook-source-event-workbook-refresh-started"`
	Webhooksourceeventworkbookrefreshsucceeded   WebhookSourceEventWorkbookRefreshSucceededType   `xml:"http://tableau.com/api webhook-source-event-workbook-refresh-succeeded"`
	Webhooksourceeventworkbookrefreshfailed      WebhookSourceEventWorkbookRefreshFailedType      `xml:"http://tableau.com/api webhook-source-event-workbook-refresh-failed"`
}

type WebhookTestResultType

type WebhookTestResultType struct {
	Body   string         `xml:"http://tableau.com/api body"`
	Id     ResourceIdType `xml:"id,attr,omitempty"`
	Status int            `xml:"status,attr,omitempty"`
}

type WebhookType

type WebhookType struct {
	Webhooksource      WebhookSourceType      `xml:"http://tableau.com/api webhook-source"`
	Webhookdestination WebhookDestinationType `xml:"http://tableau.com/api webhook-destination"`
	Owner              UserType               `xml:"http://tableau.com/api owner,omitempty"`
	Id                 ResourceIdType         `xml:"id,attr,omitempty"`
	Name               string                 `xml:"name,attr,omitempty"`
	Enabled            bool                   `xml:"enabled,attr,omitempty"`
	CreatedAt          time.Time              `xml:"createdAt,attr,omitempty"`
	UpdatedAt          time.Time              `xml:"updatedAt,attr,omitempty"`
}

func (*WebhookType) MarshalXML

func (t *WebhookType) MarshalXML(e *xml.Encoder, start xml.StartElement) error

func (*WebhookType) UnmarshalXML

func (t *WebhookType) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

type WeekDay

type WeekDay string

May be one of Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday

type Workbook

type Workbook struct {
	XMLName        xml.Name `xml:"workbook"`
	Text           string   `xml:",chardata"`
	SourcePlatform string   `xml:"source-platform,attr"`
	Version        string   `xml:"version,attr"`
	User           string   `xml:"user,attr"`
	Preferences    struct {
		Text       string `xml:",chardata"`
		Preference []struct {
			Text  string `xml:",chardata"`
			Name  string `xml:"name,attr"`
			Value string `xml:"value,attr"`
		} `xml:"preference"`
	} `xml:"preferences"`
	Datasources struct {
		Text       string       `xml:",chardata"`
		Datasource []Datasource `xml:"datasource"`
	} `xml:"datasources"`
	Mapsources struct {
		Text      string `xml:",chardata"`
		Mapsource struct {
			Text string `xml:",chardata"`
			Name string `xml:"name,attr"`
		} `xml:"mapsource"`
	} `xml:"mapsources"`
	Worksheets struct {
		Text      string `xml:",chardata"`
		Worksheet []struct {
			Text  string `xml:",chardata"`
			Name  string `xml:"name,attr"`
			Table struct {
				Text string `xml:",chardata"`
				View struct {
					Text        string `xml:",chardata"`
					Datasources struct {
						Text       string `xml:",chardata"`
						Datasource []struct {
							Text string `xml:",chardata"`
							Name string `xml:"name,attr"`
						} `xml:"datasource"`
					} `xml:"datasources"`
					Mapsources struct {
						Text      string `xml:",chardata"`
						Mapsource struct {
							Text string `xml:",chardata"`
							Name string `xml:"name,attr"`
						} `xml:"mapsource"`
					} `xml:"mapsources"`
					DatasourceDependencies []struct {
						Text       string `xml:",chardata"`
						Datasource string `xml:"datasource,attr"`
						Column     []struct {
							Text            string `xml:",chardata"`
							Datatype        string `xml:"datatype,attr"`
							Name            string `xml:"name,attr"`
							Role            string `xml:"role,attr"`
							SemanticRole    string `xml:"semantic-role,attr"`
							Type            string `xml:"type,attr"`
							DefaultFormat   string `xml:"default-format,attr"`
							Caption         string `xml:"caption,attr"`
							ParamDomainType string `xml:"param-domain-type,attr"`
							Value           string `xml:"value,attr"`
							Calculation     struct {
								Text    string `xml:",chardata"`
								Class   string `xml:"class,attr"`
								Formula string `xml:"formula,attr"`
							} `xml:"calculation"`
							Range struct {
								Text        string `xml:",chardata"`
								Granularity string `xml:"granularity,attr"`
								Max         string `xml:"max,attr"`
								Min         string `xml:"min,attr"`
							} `xml:"range"`
						} `xml:"column"`
						ColumnInstance []struct {
							Text       string `xml:",chardata"`
							Column     string `xml:"column,attr"`
							Derivation string `xml:"derivation,attr"`
							Name       string `xml:"name,attr"`
							Pivot      string `xml:"pivot,attr"`
							Type       string `xml:"type,attr"`
						} `xml:"column-instance"`
					} `xml:"datasource-dependencies"`
					Aggregation struct {
						Text  string `xml:",chardata"`
						Value string `xml:"value,attr"`
					} `xml:"aggregation"`
					Filter []struct {
						Text        string `xml:",chardata"`
						Class       string `xml:"class,attr"`
						Column      string `xml:"column,attr"`
						Groupfilter struct {
							Text     string `xml:",chardata"`
							Function string `xml:"function,attr"`
							Level    string `xml:"level,attr"`
						} `xml:"groupfilter"`
					} `xml:"filter"`
					Slices struct {
						Text   string   `xml:",chardata"`
						Column []string `xml:"column"`
					} `xml:"slices"`
				} `xml:"view"`
				Style struct {
					Text      string `xml:",chardata"`
					StyleRule []struct {
						Text    string `xml:",chardata"`
						Element string `xml:"element,attr"`
						Format  []struct {
							Text  string `xml:",chardata"`
							Attr  string `xml:"attr,attr"`
							ID    string `xml:"id,attr"`
							Value string `xml:"value,attr"`
						} `xml:"format"`
					} `xml:"style-rule"`
				} `xml:"style"`
				Panes struct {
					Text string `xml:",chardata"`
					Pane struct {
						Text string `xml:",chardata"`
						View struct {
							Text      string `xml:",chardata"`
							Breakdown struct {
								Text  string `xml:",chardata"`
								Value string `xml:"value,attr"`
							} `xml:"breakdown"`
						} `xml:"view"`
						Mark struct {
							Text  string `xml:",chardata"`
							Class string `xml:"class,attr"`
						} `xml:"mark"`
						Encodings struct {
							Text string `xml:",chardata"`
							Size struct {
								Text   string `xml:",chardata"`
								Column string `xml:"column,attr"`
							} `xml:"size"`
							Lod []struct {
								Text   string `xml:",chardata"`
								Column string `xml:"column,attr"`
							} `xml:"lod"`
						} `xml:"encodings"`
					} `xml:"pane"`
				} `xml:"panes"`
				Rows string `xml:"rows"`
				Cols string `xml:"cols"`
			} `xml:"table"`
		} `xml:"worksheet"`
	} `xml:"worksheets"`
	Windows struct {
		Text   string `xml:",chardata"`
		Window []struct {
			Text         string `xml:",chardata"`
			Class        string `xml:"class,attr"`
			SourceHeight string `xml:"source-height,attr"`
			AutoHidden   string `xml:"auto-hidden,attr"`
			Maximized    string `xml:"maximized,attr"`
			Name         string `xml:"name,attr"`
			Cards        struct {
				Text string `xml:",chardata"`
				Edge []struct {
					Text  string `xml:",chardata"`
					Name  string `xml:"name,attr"`
					Strip []struct {
						Text string `xml:",chardata"`
						Size string `xml:"size,attr"`
						Card []struct {
							Text                string `xml:",chardata"`
							Type                string `xml:"type,attr"`
							Param               string `xml:"param,attr"`
							Mode                string `xml:"mode,attr"`
							PaneSpecificationID string `xml:"pane-specification-id,attr"`
						} `xml:"card"`
					} `xml:"strip"`
				} `xml:"edge"`
			} `xml:"cards"`
			Highlight struct {
				Text        string `xml:",chardata"`
				ColorOneWay struct {
					Text  string   `xml:",chardata"`
					Field []string `xml:"field"`
				} `xml:"color-one-way"`
			} `xml:"highlight"`
			Viewpoint string `xml:"viewpoint"`
		} `xml:"window"`
	} `xml:"windows"`
}

type WorkbookListType

type WorkbookListType struct {
	Workbook []WorkbookType `xml:"http://tableau.com/api workbook,omitempty"`
}

type WorkbookType

type WorkbookType struct {
	Connections                       ConnectionListType                    `xml:"http://tableau.com/api connections,omitempty"`
	ConnectionCredentials             ConnectionCredentialsType             `xml:"http://tableau.com/api connectionCredentials,omitempty"`
	Site                              SiteType                              `xml:"http://tableau.com/api site,omitempty"`
	Project                           ProjectType                           `xml:"http://tableau.com/api project,omitempty"`
	Owner                             UserType                              `xml:"http://tableau.com/api owner,omitempty"`
	Tags                              TagListType                           `xml:"http://tableau.com/api tags,omitempty"`
	Views                             ViewListType                          `xml:"http://tableau.com/api views,omitempty"`
	MaterializedViewsEnablementConfig MaterializedViewsEnablementConfigType `xml:"http://tableau.com/api materializedViewsEnablementConfig,omitempty"`
	Id                                ResourceIdType                        `xml:"id,attr,omitempty"`
	Name                              string                                `xml:"name,attr,omitempty"`
	Description                       string                                `xml:"description,attr,omitempty"`
	ContentUrl                        string                                `xml:"contentUrl,attr,omitempty"`
	WebpageUrl                        string                                `xml:"webpageUrl,attr,omitempty"`
	ShowTabs                          bool                                  `xml:"showTabs,attr,omitempty"`
	ThumbnailsUserId                  ResourceIdType                        `xml:"thumbnailsUserId,attr,omitempty"`
	Size                              int                                   `xml:"size,attr,omitempty"`
	CreatedAt                         time.Time                             `xml:"createdAt,attr,omitempty"`
	UpdatedAt                         time.Time                             `xml:"updatedAt,attr,omitempty"`
	SheetCount                        int                                   `xml:"sheetCount,attr,omitempty"`
	HasExtracts                       bool                                  `xml:"hasExtracts,attr,omitempty"`
	EncryptExtracts                   string                                `xml:"encryptExtracts,attr,omitempty"`
	RecentlyViewed                    bool                                  `xml:"recentlyViewed,attr,omitempty"`
	DefaultViewId                     ResourceIdType                        `xml:"defaultViewId,attr,omitempty"`
}

func (*WorkbookType) MarshalXML

func (t *WorkbookType) MarshalXML(e *xml.Encoder, start xml.StartElement) error

func (*WorkbookType) UnmarshalXML

func (t *WorkbookType) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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