fusiontables

package
v0.0.0-...-de2eba5 Latest Latest
Warning

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

Go to latest
Published: May 19, 2015 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Overview

Package fusiontables provides access to the Fusion Tables API.

See https://developers.google.com/fusiontables

Usage example:

import "google.golang.org/api/fusiontables/v1"
...
fusiontablesService, err := fusiontables.New(oauthHttpClient)

Index

Constants

View Source
const (
	// Manage your Fusion Tables
	FusiontablesScope = "https://www.googleapis.com/auth/fusiontables"

	// View your Fusion Tables
	FusiontablesReadonlyScope = "https://www.googleapis.com/auth/fusiontables.readonly"
)

OAuth2 scopes used by this API.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bucket

type Bucket struct {
	// Color: Color of line or the interior of a polygon in #RRGGBB format.
	Color string `json:"color,omitempty"`

	// Icon: Icon name used for a point.
	Icon string `json:"icon,omitempty"`

	// Max: Maximum value in the selected column for a row to be styled
	// according to the bucket color, opacity, icon, or weight.
	Max float64 `json:"max,omitempty"`

	// Min: Minimum value in the selected column for a row to be styled
	// according to the bucket color, opacity, icon, or weight.
	Min float64 `json:"min,omitempty"`

	// Opacity: Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
	Opacity float64 `json:"opacity,omitempty"`

	// Weight: Width of a line (in pixels).
	Weight int64 `json:"weight,omitempty"`
}

type Column

type Column struct {
	// BaseColumn: Optional identifier of the base column. If present, this
	// column is derived from the specified base column.
	BaseColumn *ColumnBaseColumn `json:"baseColumn,omitempty"`

	// ColumnId: Identifier for the column.
	ColumnId int64 `json:"columnId,omitempty"`

	// Description: Optional column description.
	Description string `json:"description,omitempty"`

	// GraphPredicate: Optional column predicate. Used to map table to graph
	// data model (subject,predicate,object) See
	// http://www.w3.org/TR/2014/REC-rdf11-concepts-20140225/#data-model
	GraphPredicate string `json:"graph_predicate,omitempty"`

	// Kind: Type name: a template for an individual column.
	Kind string `json:"kind,omitempty"`

	// Name: Required name of the column.
	Name string `json:"name,omitempty"`

	// Type: Required type of the column.
	Type string `json:"type,omitempty"`
}

type ColumnBaseColumn

type ColumnBaseColumn struct {
	// ColumnId: The id of the column in the base table from which this
	// column is derived.
	ColumnId int64 `json:"columnId,omitempty"`

	// TableIndex: Offset to the entry in the list of base tables in the
	// table definition.
	TableIndex int64 `json:"tableIndex,omitempty"`
}

type ColumnDeleteCall

type ColumnDeleteCall struct {
	// contains filtered or unexported fields
}

func (*ColumnDeleteCall) Do

func (c *ColumnDeleteCall) Do() error

func (*ColumnDeleteCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type ColumnGetCall

type ColumnGetCall struct {
	// contains filtered or unexported fields
}

func (*ColumnGetCall) Do

func (c *ColumnGetCall) Do() (*Column, error)

func (*ColumnGetCall) Fields

func (c *ColumnGetCall) Fields(s ...googleapi.Field) *ColumnGetCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type ColumnInsertCall

type ColumnInsertCall struct {
	// contains filtered or unexported fields
}

func (*ColumnInsertCall) Do

func (c *ColumnInsertCall) Do() (*Column, error)

func (*ColumnInsertCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type ColumnList

type ColumnList struct {
	// Items: List of all requested columns.
	Items []*Column `json:"items,omitempty"`

	// Kind: Type name: a list of all columns.
	Kind string `json:"kind,omitempty"`

	// NextPageToken: Token used to access the next page of this result. No
	// token is displayed if there are no more pages left.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// TotalItems: Total number of columns for the table.
	TotalItems int64 `json:"totalItems,omitempty"`
}

type ColumnListCall

type ColumnListCall struct {
	// contains filtered or unexported fields
}

func (*ColumnListCall) Do

func (c *ColumnListCall) Do() (*ColumnList, error)

func (*ColumnListCall) Fields

func (c *ColumnListCall) Fields(s ...googleapi.Field) *ColumnListCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ColumnListCall) MaxResults

func (c *ColumnListCall) MaxResults(maxResults int64) *ColumnListCall

MaxResults sets the optional parameter "maxResults": Maximum number of columns to return. Default is 5.

func (*ColumnListCall) PageToken

func (c *ColumnListCall) PageToken(pageToken string) *ColumnListCall

PageToken sets the optional parameter "pageToken": Continuation token specifying which result page to return.

type ColumnPatchCall

type ColumnPatchCall struct {
	// contains filtered or unexported fields
}

func (*ColumnPatchCall) Do

func (c *ColumnPatchCall) Do() (*Column, error)

func (*ColumnPatchCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type ColumnService

type ColumnService struct {
	// contains filtered or unexported fields
}

func NewColumnService

func NewColumnService(s *Service) *ColumnService

func (*ColumnService) Delete

func (r *ColumnService) Delete(tableId string, columnId string) *ColumnDeleteCall

Delete: Deletes the column.

func (*ColumnService) Get

func (r *ColumnService) Get(tableId string, columnId string) *ColumnGetCall

Get: Retrieves a specific column by its id.

func (*ColumnService) Insert

func (r *ColumnService) Insert(tableId string, column *Column) *ColumnInsertCall

Insert: Adds a new column to the table.

func (*ColumnService) List

func (r *ColumnService) List(tableId string) *ColumnListCall

List: Retrieves a list of columns.

func (*ColumnService) Patch

func (r *ColumnService) Patch(tableId string, columnId string, column *Column) *ColumnPatchCall

Patch: Updates the name or type of an existing column. This method supports patch semantics.

func (*ColumnService) Update

func (r *ColumnService) Update(tableId string, columnId string, column *Column) *ColumnUpdateCall

Update: Updates the name or type of an existing column.

type ColumnUpdateCall

type ColumnUpdateCall struct {
	// contains filtered or unexported fields
}

func (*ColumnUpdateCall) Do

func (c *ColumnUpdateCall) Do() (*Column, error)

func (*ColumnUpdateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type Geometry

type Geometry struct {
	// Geometries: The list of geometries in this geometry collection.
	Geometries []interface{} `json:"geometries,omitempty"`

	Geometry interface{} `json:"geometry,omitempty"`

	// Type: Type: A collection of geometries.
	Type string `json:"type,omitempty"`
}

type Import

type Import struct {
	// Kind: Type name: a template for an import request.
	Kind string `json:"kind,omitempty"`

	// NumRowsReceived: The number of rows received from the import request.
	NumRowsReceived int64 `json:"numRowsReceived,omitempty,string"`
}

type Line

type Line struct {
	// Coordinates: The coordinates that define the line.
	Coordinates [][]float64 `json:"coordinates,omitempty"`

	// Type: Type: A line geometry.
	Type string `json:"type,omitempty"`
}

type LineStyle

type LineStyle struct {
	// StrokeColor: Color of the line in #RRGGBB format.
	StrokeColor string `json:"strokeColor,omitempty"`

	// StrokeColorStyler: Column-value, gradient or buckets styler that is
	// used to determine the line color and opacity.
	StrokeColorStyler *StyleFunction `json:"strokeColorStyler,omitempty"`

	// StrokeOpacity: Opacity of the line : 0.0 (transparent) to 1.0
	// (opaque).
	StrokeOpacity float64 `json:"strokeOpacity,omitempty"`

	// StrokeWeight: Width of the line in pixels.
	StrokeWeight int64 `json:"strokeWeight,omitempty"`

	// StrokeWeightStyler: Column-value or bucket styler that is used to
	// determine the width of the line.
	StrokeWeightStyler *StyleFunction `json:"strokeWeightStyler,omitempty"`
}

type Point

type Point struct {
	// Coordinates: The coordinates that define the point.
	Coordinates []float64 `json:"coordinates,omitempty"`

	// Type: Point: A point geometry.
	Type string `json:"type,omitempty"`
}

type PointStyle

type PointStyle struct {
	// IconName: Name of the icon. Use values defined in
	// http://www.google.com/fusiontables/DataSource?dsrcid=308519
	IconName string `json:"iconName,omitempty"`

	// IconStyler: Column or a bucket value from which the icon name is to
	// be determined.
	IconStyler *StyleFunction `json:"iconStyler,omitempty"`
}

type Polygon

type Polygon struct {
	// Coordinates: The coordinates that define the polygon.
	Coordinates [][][]float64 `json:"coordinates,omitempty"`

	// Type: Type: A polygon geometry.
	Type string `json:"type,omitempty"`
}

type PolygonStyle

type PolygonStyle struct {
	// FillColor: Color of the interior of the polygon in #RRGGBB format.
	FillColor string `json:"fillColor,omitempty"`

	// FillColorStyler: Column-value, gradient, or bucket styler that is
	// used to determine the interior color and opacity of the polygon.
	FillColorStyler *StyleFunction `json:"fillColorStyler,omitempty"`

	// FillOpacity: Opacity of the interior of the polygon: 0.0
	// (transparent) to 1.0 (opaque).
	FillOpacity float64 `json:"fillOpacity,omitempty"`

	// StrokeColor: Color of the polygon border in #RRGGBB format.
	StrokeColor string `json:"strokeColor,omitempty"`

	// StrokeColorStyler: Column-value, gradient or buckets styler that is
	// used to determine the border color and opacity.
	StrokeColorStyler *StyleFunction `json:"strokeColorStyler,omitempty"`

	// StrokeOpacity: Opacity of the polygon border: 0.0 (transparent) to
	// 1.0 (opaque).
	StrokeOpacity float64 `json:"strokeOpacity,omitempty"`

	// StrokeWeight: Width of the polyon border in pixels.
	StrokeWeight int64 `json:"strokeWeight,omitempty"`

	// StrokeWeightStyler: Column-value or bucket styler that is used to
	// determine the width of the polygon border.
	StrokeWeightStyler *StyleFunction `json:"strokeWeightStyler,omitempty"`
}

type QueryService

type QueryService struct {
	// contains filtered or unexported fields
}

func NewQueryService

func NewQueryService(s *Service) *QueryService

func (*QueryService) Sql

func (r *QueryService) Sql(sql string) *QuerySqlCall

Sql: Executes an SQL SELECT/INSERT/UPDATE/DELETE/SHOW/DESCRIBE/CREATE statement.

func (*QueryService) SqlGet

func (r *QueryService) SqlGet(sql string) *QuerySqlGetCall

SqlGet: Executes an SQL SELECT/SHOW/DESCRIBE statement.

type QuerySqlCall

type QuerySqlCall struct {
	// contains filtered or unexported fields
}

func (*QuerySqlCall) Do

func (c *QuerySqlCall) Do() (*Sqlresponse, error)

func (*QuerySqlCall) Fields

func (c *QuerySqlCall) Fields(s ...googleapi.Field) *QuerySqlCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*QuerySqlCall) Hdrs

func (c *QuerySqlCall) Hdrs(hdrs bool) *QuerySqlCall

Hdrs sets the optional parameter "hdrs": Should column names be included (in the first row)?. Default is true.

func (*QuerySqlCall) Typed

func (c *QuerySqlCall) Typed(typed bool) *QuerySqlCall

Typed sets the optional parameter "typed": Should typed values be returned in the (JSON) response -- numbers for numeric values and parsed geometries for KML values? Default is true.

type QuerySqlGetCall

type QuerySqlGetCall struct {
	// contains filtered or unexported fields
}

func (*QuerySqlGetCall) Do

func (c *QuerySqlGetCall) Do() (*Sqlresponse, error)

func (*QuerySqlGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*QuerySqlGetCall) Hdrs

func (c *QuerySqlGetCall) Hdrs(hdrs bool) *QuerySqlGetCall

Hdrs sets the optional parameter "hdrs": Should column names be included (in the first row)?. Default is true.

func (*QuerySqlGetCall) Typed

func (c *QuerySqlGetCall) Typed(typed bool) *QuerySqlGetCall

Typed sets the optional parameter "typed": Should typed values be returned in the (JSON) response -- numbers for numeric values and parsed geometries for KML values? Default is true.

type Service

type Service struct {
	BasePath  string // API endpoint base URL
	UserAgent string // optional additional User-Agent fragment

	Column *ColumnService

	Query *QueryService

	Style *StyleService

	Table *TableService

	Task *TaskService

	Template *TemplateService
	// contains filtered or unexported fields
}

func New

func New(client *http.Client) (*Service, error)

type Sqlresponse

type Sqlresponse struct {
	// Columns: Columns in the table.
	Columns []string `json:"columns,omitempty"`

	// Kind: Type name: a template for an individual table.
	Kind string `json:"kind,omitempty"`

	// Rows: The rows in the table. For each cell we print out whatever cell
	// value (e.g., numeric, string) exists. Thus it is important that each
	// cell contains only one value.
	Rows [][]interface{} `json:"rows,omitempty"`
}

type StyleDeleteCall

type StyleDeleteCall struct {
	// contains filtered or unexported fields
}

func (*StyleDeleteCall) Do

func (c *StyleDeleteCall) Do() error

func (*StyleDeleteCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type StyleFunction

type StyleFunction struct {
	// Buckets: Bucket function that assigns a style based on the range a
	// column value falls into.
	Buckets []*Bucket `json:"buckets,omitempty"`

	// ColumnName: Name of the column whose value is used in the style.
	ColumnName string `json:"columnName,omitempty"`

	// Gradient: Gradient function that interpolates a range of colors based
	// on column value.
	Gradient *StyleFunctionGradient `json:"gradient,omitempty"`

	// Kind: Stylers can be one of three kinds: "fusiontables#fromColumn" if
	// the column value is to be used as is, i.e., the column values can
	// have colors in #RRGGBBAA format or integer line widths or icon names;
	// "fusiontables#gradient" if the styling of the row is to be based on
	// applying the gradient function on the column value; or
	// "fusiontables#buckets" if the styling is to based on the bucket into
	// which the the column value falls.
	Kind string `json:"kind,omitempty"`
}

type StyleFunctionGradient

type StyleFunctionGradient struct {
	// Colors: Array with two or more colors.
	Colors []*StyleFunctionGradientColors `json:"colors,omitempty"`

	// Max: Higher-end of the interpolation range: rows with this value will
	// be assigned to colors[n-1].
	Max float64 `json:"max,omitempty"`

	// Min: Lower-end of the interpolation range: rows with this value will
	// be assigned to colors[0].
	Min float64 `json:"min,omitempty"`
}

type StyleFunctionGradientColors

type StyleFunctionGradientColors struct {
	// Color: Color in #RRGGBB format.
	Color string `json:"color,omitempty"`

	// Opacity: Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
	Opacity float64 `json:"opacity,omitempty"`
}

type StyleGetCall

type StyleGetCall struct {
	// contains filtered or unexported fields
}

func (*StyleGetCall) Do

func (c *StyleGetCall) Do() (*StyleSetting, error)

func (*StyleGetCall) Fields

func (c *StyleGetCall) Fields(s ...googleapi.Field) *StyleGetCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type StyleInsertCall

type StyleInsertCall struct {
	// contains filtered or unexported fields
}

func (*StyleInsertCall) Do

func (c *StyleInsertCall) Do() (*StyleSetting, error)

func (*StyleInsertCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type StyleListCall

type StyleListCall struct {
	// contains filtered or unexported fields
}

func (*StyleListCall) Do

func (c *StyleListCall) Do() (*StyleSettingList, error)

func (*StyleListCall) Fields

func (c *StyleListCall) Fields(s ...googleapi.Field) *StyleListCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*StyleListCall) MaxResults

func (c *StyleListCall) MaxResults(maxResults int64) *StyleListCall

MaxResults sets the optional parameter "maxResults": Maximum number of styles to return. Default is 5.

func (*StyleListCall) PageToken

func (c *StyleListCall) PageToken(pageToken string) *StyleListCall

PageToken sets the optional parameter "pageToken": Continuation token specifying which result page to return.

type StylePatchCall

type StylePatchCall struct {
	// contains filtered or unexported fields
}

func (*StylePatchCall) Do

func (c *StylePatchCall) Do() (*StyleSetting, error)

func (*StylePatchCall) Fields

func (c *StylePatchCall) Fields(s ...googleapi.Field) *StylePatchCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type StyleService

type StyleService struct {
	// contains filtered or unexported fields
}

func NewStyleService

func NewStyleService(s *Service) *StyleService

func (*StyleService) Delete

func (r *StyleService) Delete(tableId string, styleId int64) *StyleDeleteCall

Delete: Deletes a style.

func (*StyleService) Get

func (r *StyleService) Get(tableId string, styleId int64) *StyleGetCall

Get: Gets a specific style.

func (*StyleService) Insert

func (r *StyleService) Insert(tableId string, stylesetting *StyleSetting) *StyleInsertCall

Insert: Adds a new style for the table.

func (*StyleService) List

func (r *StyleService) List(tableId string) *StyleListCall

List: Retrieves a list of styles.

func (*StyleService) Patch

func (r *StyleService) Patch(tableId string, styleId int64, stylesetting *StyleSetting) *StylePatchCall

Patch: Updates an existing style. This method supports patch semantics.

func (*StyleService) Update

func (r *StyleService) Update(tableId string, styleId int64, stylesetting *StyleSetting) *StyleUpdateCall

Update: Updates an existing style.

type StyleSetting

type StyleSetting struct {
	// Kind: Type name: an individual style setting. A StyleSetting contains
	// the style defintions for points, lines, and polygons in a table.
	// Since a table can have any one or all of them, a style definition can
	// have point, line and polygon style definitions.
	Kind string `json:"kind,omitempty"`

	// MarkerOptions: Style definition for points in the table.
	MarkerOptions *PointStyle `json:"markerOptions,omitempty"`

	// Name: Optional name for the style setting.
	Name string `json:"name,omitempty"`

	// PolygonOptions: Style definition for polygons in the table.
	PolygonOptions *PolygonStyle `json:"polygonOptions,omitempty"`

	// PolylineOptions: Style definition for lines in the table.
	PolylineOptions *LineStyle `json:"polylineOptions,omitempty"`

	// StyleId: Identifier for the style setting (unique only within
	// tables).
	StyleId int64 `json:"styleId,omitempty"`

	// TableId: Identifier for the table.
	TableId string `json:"tableId,omitempty"`
}

type StyleSettingList

type StyleSettingList struct {
	// Items: All requested style settings.
	Items []*StyleSetting `json:"items,omitempty"`

	// Kind: Type name: in this case, a list of style settings.
	Kind string `json:"kind,omitempty"`

	// NextPageToken: Token used to access the next page of this result. No
	// token is displayed if there are no more pages left.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// TotalItems: Total number of styles for the table.
	TotalItems int64 `json:"totalItems,omitempty"`
}

type StyleUpdateCall

type StyleUpdateCall struct {
	// contains filtered or unexported fields
}

func (*StyleUpdateCall) Do

func (c *StyleUpdateCall) Do() (*StyleSetting, error)

func (*StyleUpdateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type Table

type Table struct {
	// Attribution: Optional attribution assigned to the table.
	Attribution string `json:"attribution,omitempty"`

	// AttributionLink: Optional link for attribution.
	AttributionLink string `json:"attributionLink,omitempty"`

	// BaseTableIds: Optional base table identifier if this table is a view
	// or merged table.
	BaseTableIds []string `json:"baseTableIds,omitempty"`

	// Columns: Columns in the table.
	Columns []*Column `json:"columns,omitempty"`

	// Description: Optional description assigned to the table.
	Description string `json:"description,omitempty"`

	// IsExportable: Variable for whether table is exportable.
	IsExportable *bool `json:"isExportable,omitempty"`

	// Kind: Type name: a template for an individual table.
	Kind string `json:"kind,omitempty"`

	// Name: Name assigned to a table.
	Name string `json:"name,omitempty"`

	// Sql: Optional sql that encodes the table definition for derived
	// tables.
	Sql string `json:"sql,omitempty"`

	// TableId: Encrypted unique alphanumeric identifier for the table.
	TableId string `json:"tableId,omitempty"`
}

type TableCopyCall

type TableCopyCall struct {
	// contains filtered or unexported fields
}

func (*TableCopyCall) CopyPresentation

func (c *TableCopyCall) CopyPresentation(copyPresentation bool) *TableCopyCall

CopyPresentation sets the optional parameter "copyPresentation": Whether to also copy tabs, styles, and templates. Default is false.

func (*TableCopyCall) Do

func (c *TableCopyCall) Do() (*Table, error)

func (*TableCopyCall) Fields

func (c *TableCopyCall) Fields(s ...googleapi.Field) *TableCopyCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type TableDeleteCall

type TableDeleteCall struct {
	// contains filtered or unexported fields
}

func (*TableDeleteCall) Do

func (c *TableDeleteCall) Do() error

func (*TableDeleteCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type TableGetCall

type TableGetCall struct {
	// contains filtered or unexported fields
}

func (*TableGetCall) Do

func (c *TableGetCall) Do() (*Table, error)

func (*TableGetCall) Fields

func (c *TableGetCall) Fields(s ...googleapi.Field) *TableGetCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type TableImportRowsCall

type TableImportRowsCall struct {
	// contains filtered or unexported fields
}

func (*TableImportRowsCall) Delimiter

func (c *TableImportRowsCall) Delimiter(delimiter string) *TableImportRowsCall

Delimiter sets the optional parameter "delimiter": The delimiter used to separate cell values. This can only consist of a single character. Default is ','.

func (*TableImportRowsCall) Do

func (c *TableImportRowsCall) Do() (*Import, error)

func (*TableImportRowsCall) Encoding

func (c *TableImportRowsCall) Encoding(encoding string) *TableImportRowsCall

Encoding sets the optional parameter "encoding": The encoding of the content. Default is UTF-8. Use 'auto-detect' if you are unsure of the encoding.

func (*TableImportRowsCall) EndLine

func (c *TableImportRowsCall) EndLine(endLine int64) *TableImportRowsCall

EndLine sets the optional parameter "endLine": The index of the last line from which to start importing, exclusive. Thus, the number of imported lines is endLine - startLine. If this parameter is not provided, the file will be imported until the last line of the file. If endLine is negative, then the imported content will exclude the last endLine lines. That is, if endline is negative, no line will be imported whose index is greater than N + endLine where N is the number of lines in the file, and the number of imported lines will be N + endLine - startLine.

func (*TableImportRowsCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*TableImportRowsCall) IsStrict

func (c *TableImportRowsCall) IsStrict(isStrict bool) *TableImportRowsCall

IsStrict sets the optional parameter "isStrict": Whether the CSV must have the same number of values for each row. If false, rows with fewer values will be padded with empty values. Default is true.

func (*TableImportRowsCall) Media

Media specifies the media to upload in a single chunk. At most one of Media and ResumableMedia may be set.

func (*TableImportRowsCall) ProgressUpdater

ProgressUpdater provides a callback function that will be called after every chunk. It should be a low-latency function in order to not slow down the upload operation. This should only be called when using ResumableMedia (as opposed to Media).

func (*TableImportRowsCall) ResumableMedia

func (c *TableImportRowsCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *TableImportRowsCall

ResumableMedia specifies the media to upload in chunks and can be cancelled with ctx. At most one of Media and ResumableMedia may be set. mediaType identifies the MIME media type of the upload, such as "image/png". If mediaType is "", it will be auto-detected.

func (*TableImportRowsCall) StartLine

func (c *TableImportRowsCall) StartLine(startLine int64) *TableImportRowsCall

StartLine sets the optional parameter "startLine": The index of the first line from which to start importing, inclusive. Default is 0.

type TableImportTableCall

type TableImportTableCall struct {
	// contains filtered or unexported fields
}

func (*TableImportTableCall) Delimiter

func (c *TableImportTableCall) Delimiter(delimiter string) *TableImportTableCall

Delimiter sets the optional parameter "delimiter": The delimiter used to separate cell values. This can only consist of a single character. Default is ','.

func (*TableImportTableCall) Do

func (c *TableImportTableCall) Do() (*Table, error)

func (*TableImportTableCall) Encoding

func (c *TableImportTableCall) Encoding(encoding string) *TableImportTableCall

Encoding sets the optional parameter "encoding": The encoding of the content. Default is UTF-8. Use 'auto-detect' if you are unsure of the encoding.

func (*TableImportTableCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*TableImportTableCall) Media

Media specifies the media to upload in a single chunk. At most one of Media and ResumableMedia may be set.

func (*TableImportTableCall) ProgressUpdater

ProgressUpdater provides a callback function that will be called after every chunk. It should be a low-latency function in order to not slow down the upload operation. This should only be called when using ResumableMedia (as opposed to Media).

func (*TableImportTableCall) ResumableMedia

func (c *TableImportTableCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *TableImportTableCall

ResumableMedia specifies the media to upload in chunks and can be cancelled with ctx. At most one of Media and ResumableMedia may be set. mediaType identifies the MIME media type of the upload, such as "image/png". If mediaType is "", it will be auto-detected.

type TableInsertCall

type TableInsertCall struct {
	// contains filtered or unexported fields
}

func (*TableInsertCall) Do

func (c *TableInsertCall) Do() (*Table, error)

func (*TableInsertCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type TableList

type TableList struct {
	// Items: List of all requested tables.
	Items []*Table `json:"items,omitempty"`

	// Kind: Type name: a list of all tables.
	Kind string `json:"kind,omitempty"`

	// NextPageToken: Token used to access the next page of this result. No
	// token is displayed if there are no more pages left.
	NextPageToken string `json:"nextPageToken,omitempty"`
}

type TableListCall

type TableListCall struct {
	// contains filtered or unexported fields
}

func (*TableListCall) Do

func (c *TableListCall) Do() (*TableList, error)

func (*TableListCall) Fields

func (c *TableListCall) Fields(s ...googleapi.Field) *TableListCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*TableListCall) MaxResults

func (c *TableListCall) MaxResults(maxResults int64) *TableListCall

MaxResults sets the optional parameter "maxResults": Maximum number of styles to return. Default is 5.

func (*TableListCall) PageToken

func (c *TableListCall) PageToken(pageToken string) *TableListCall

PageToken sets the optional parameter "pageToken": Continuation token specifying which result page to return.

type TablePatchCall

type TablePatchCall struct {
	// contains filtered or unexported fields
}

func (*TablePatchCall) Do

func (c *TablePatchCall) Do() (*Table, error)

func (*TablePatchCall) Fields

func (c *TablePatchCall) Fields(s ...googleapi.Field) *TablePatchCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*TablePatchCall) ReplaceViewDefinition

func (c *TablePatchCall) ReplaceViewDefinition(replaceViewDefinition bool) *TablePatchCall

ReplaceViewDefinition sets the optional parameter "replaceViewDefinition": Should the view definition also be updated? The specified view definition replaces the existing one. Only a view can be updated with a new definition.

type TableService

type TableService struct {
	// contains filtered or unexported fields
}

func NewTableService

func NewTableService(s *Service) *TableService

func (*TableService) Copy

func (r *TableService) Copy(tableId string) *TableCopyCall

Copy: Copies a table.

func (*TableService) Delete

func (r *TableService) Delete(tableId string) *TableDeleteCall

Delete: Deletes a table.

func (*TableService) Get

func (r *TableService) Get(tableId string) *TableGetCall

Get: Retrieves a specific table by its id.

func (*TableService) ImportRows

func (r *TableService) ImportRows(tableId string) *TableImportRowsCall

ImportRows: Import more rows into a table.

func (*TableService) ImportTable

func (r *TableService) ImportTable(name string) *TableImportTableCall

ImportTable: Import a new table.

func (*TableService) Insert

func (r *TableService) Insert(table *Table) *TableInsertCall

Insert: Creates a new table.

func (*TableService) List

func (r *TableService) List() *TableListCall

List: Retrieves a list of tables a user owns.

func (*TableService) Patch

func (r *TableService) Patch(tableId string, table *Table) *TablePatchCall

Patch: Updates an existing table. Unless explicitly requested, only the name, description, and attribution will be updated. This method supports patch semantics.

func (*TableService) Update

func (r *TableService) Update(tableId string, table *Table) *TableUpdateCall

Update: Updates an existing table. Unless explicitly requested, only the name, description, and attribution will be updated.

type TableUpdateCall

type TableUpdateCall struct {
	// contains filtered or unexported fields
}

func (*TableUpdateCall) Do

func (c *TableUpdateCall) Do() (*Table, error)

func (*TableUpdateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*TableUpdateCall) ReplaceViewDefinition

func (c *TableUpdateCall) ReplaceViewDefinition(replaceViewDefinition bool) *TableUpdateCall

ReplaceViewDefinition sets the optional parameter "replaceViewDefinition": Should the view definition also be updated? The specified view definition replaces the existing one. Only a view can be updated with a new definition.

type Task

type Task struct {
	// Kind: Type of the resource. This is always "fusiontables#task".
	Kind string `json:"kind,omitempty"`

	// Progress: An indication of task progress.
	Progress string `json:"progress,omitempty"`

	// Started: false while the table is busy with some other task. true if
	// this background task is currently running.
	Started *bool `json:"started,omitempty"`

	// TaskId: Identifier for the task.
	TaskId int64 `json:"taskId,omitempty,string"`

	// Type: Type of background task. One of  DELETE_ROWS Deletes one or
	// more rows from the table. ADD_ROWS "Adds one or more rows to a table.
	// Includes importing data into a new table and importing more rows into
	// an existing table. ADD_COLUMN Adds a new column to the table.
	// CHANGE_TYPE Changes the type of a column.
	Type string `json:"type,omitempty"`
}

type TaskDeleteCall

type TaskDeleteCall struct {
	// contains filtered or unexported fields
}

func (*TaskDeleteCall) Do

func (c *TaskDeleteCall) Do() error

func (*TaskDeleteCall) Fields

func (c *TaskDeleteCall) Fields(s ...googleapi.Field) *TaskDeleteCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type TaskGetCall

type TaskGetCall struct {
	// contains filtered or unexported fields
}

func (*TaskGetCall) Do

func (c *TaskGetCall) Do() (*Task, error)

func (*TaskGetCall) Fields

func (c *TaskGetCall) Fields(s ...googleapi.Field) *TaskGetCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type TaskList

type TaskList struct {
	// Items: List of all requested tasks.
	Items []*Task `json:"items,omitempty"`

	// Kind: Type of the resource. This is always "fusiontables#taskList".
	Kind string `json:"kind,omitempty"`

	// NextPageToken: Token used to access the next page of this result. No
	// token is displayed if there are no more pages left.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// TotalItems: Total number of tasks for the table.
	TotalItems int64 `json:"totalItems,omitempty"`
}

type TaskListCall

type TaskListCall struct {
	// contains filtered or unexported fields
}

func (*TaskListCall) Do

func (c *TaskListCall) Do() (*TaskList, error)

func (*TaskListCall) Fields

func (c *TaskListCall) Fields(s ...googleapi.Field) *TaskListCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*TaskListCall) MaxResults

func (c *TaskListCall) MaxResults(maxResults int64) *TaskListCall

MaxResults sets the optional parameter "maxResults": Maximum number of columns to return. Default is 5.

func (*TaskListCall) PageToken

func (c *TaskListCall) PageToken(pageToken string) *TaskListCall

PageToken sets the optional parameter "pageToken":

func (*TaskListCall) StartIndex

func (c *TaskListCall) StartIndex(startIndex int64) *TaskListCall

StartIndex sets the optional parameter "startIndex":

type TaskService

type TaskService struct {
	// contains filtered or unexported fields
}

func NewTaskService

func NewTaskService(s *Service) *TaskService

func (*TaskService) Delete

func (r *TaskService) Delete(tableId string, taskId string) *TaskDeleteCall

Delete: Deletes the task, unless already started.

func (*TaskService) Get

func (r *TaskService) Get(tableId string, taskId string) *TaskGetCall

Get: Retrieves a specific task by its id.

func (*TaskService) List

func (r *TaskService) List(tableId string) *TaskListCall

List: Retrieves a list of tasks.

type Template

type Template struct {
	// AutomaticColumnNames: List of columns from which the template is to
	// be automatically constructed. Only one of body or automaticColumns
	// can be specified.
	AutomaticColumnNames []string `json:"automaticColumnNames,omitempty"`

	// Body: Body of the template. It contains HTML with {column_name} to
	// insert values from a particular column. The body is sanitized to
	// remove certain tags, e.g., script. Only one of body or
	// automaticColumns can be specified.
	Body string `json:"body,omitempty"`

	// Kind: Type name: a template for the info window contents. The
	// template can either include an HTML body or a list of columns from
	// which the template is computed automatically.
	Kind string `json:"kind,omitempty"`

	// Name: Optional name assigned to a template.
	Name string `json:"name,omitempty"`

	// TableId: Identifier for the table for which the template is defined.
	TableId string `json:"tableId,omitempty"`

	// TemplateId: Identifier for the template, unique within the context of
	// a particular table.
	TemplateId int64 `json:"templateId,omitempty"`
}

type TemplateDeleteCall

type TemplateDeleteCall struct {
	// contains filtered or unexported fields
}

func (*TemplateDeleteCall) Do

func (c *TemplateDeleteCall) Do() error

func (*TemplateDeleteCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type TemplateGetCall

type TemplateGetCall struct {
	// contains filtered or unexported fields
}

func (*TemplateGetCall) Do

func (c *TemplateGetCall) Do() (*Template, error)

func (*TemplateGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type TemplateInsertCall

type TemplateInsertCall struct {
	// contains filtered or unexported fields
}

func (*TemplateInsertCall) Do

func (c *TemplateInsertCall) Do() (*Template, error)

func (*TemplateInsertCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type TemplateList

type TemplateList struct {
	// Items: List of all requested templates.
	Items []*Template `json:"items,omitempty"`

	// Kind: Type name: a list of all templates.
	Kind string `json:"kind,omitempty"`

	// NextPageToken: Token used to access the next page of this result. No
	// token is displayed if there are no more pages left.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// TotalItems: Total number of templates for the table.
	TotalItems int64 `json:"totalItems,omitempty"`
}

type TemplateListCall

type TemplateListCall struct {
	// contains filtered or unexported fields
}

func (*TemplateListCall) Do

func (c *TemplateListCall) Do() (*TemplateList, error)

func (*TemplateListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*TemplateListCall) MaxResults

func (c *TemplateListCall) MaxResults(maxResults int64) *TemplateListCall

MaxResults sets the optional parameter "maxResults": Maximum number of templates to return. Default is 5.

func (*TemplateListCall) PageToken

func (c *TemplateListCall) PageToken(pageToken string) *TemplateListCall

PageToken sets the optional parameter "pageToken": Continuation token specifying which results page to return.

type TemplatePatchCall

type TemplatePatchCall struct {
	// contains filtered or unexported fields
}

func (*TemplatePatchCall) Do

func (c *TemplatePatchCall) Do() (*Template, error)

func (*TemplatePatchCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type TemplateService

type TemplateService struct {
	// contains filtered or unexported fields
}

func NewTemplateService

func NewTemplateService(s *Service) *TemplateService

func (*TemplateService) Delete

func (r *TemplateService) Delete(tableId string, templateId int64) *TemplateDeleteCall

Delete: Deletes a template

func (*TemplateService) Get

func (r *TemplateService) Get(tableId string, templateId int64) *TemplateGetCall

Get: Retrieves a specific template by its id

func (*TemplateService) Insert

func (r *TemplateService) Insert(tableId string, template *Template) *TemplateInsertCall

Insert: Creates a new template for the table.

func (*TemplateService) List

func (r *TemplateService) List(tableId string) *TemplateListCall

List: Retrieves a list of templates.

func (*TemplateService) Patch

func (r *TemplateService) Patch(tableId string, templateId int64, template *Template) *TemplatePatchCall

Patch: Updates an existing template. This method supports patch semantics.

func (*TemplateService) Update

func (r *TemplateService) Update(tableId string, templateId int64, template *Template) *TemplateUpdateCall

Update: Updates an existing template

type TemplateUpdateCall

type TemplateUpdateCall struct {
	// contains filtered or unexported fields
}

func (*TemplateUpdateCall) Do

func (c *TemplateUpdateCall) Do() (*Template, error)

func (*TemplateUpdateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

Jump to

Keyboard shortcuts

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