fusiontables
packageThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Overview¶
Package fusiontables provides access to the Fusion Tables API.
For product documentation, see:https://developers.google.com/fusiontables
Creating a client¶
Usage example:
import "google.golang.org/api/fusiontables/v1"...ctx := context.Background()fusiontablesService, err := fusiontables.NewService(ctx)
In this example, Google Application Default Credentials are used for authentication.
For information on how to create and obtain Application Default Credentials, seehttps://developers.google.com/identity/protocols/application-default-credentials.
Other authentication options¶
By default, all available scopes (see "Constants") are used to authenticate. To restrict scopes, use option.WithScopes:
fusiontablesService, err := fusiontables.NewService(ctx, option.WithScopes(fusiontables.FusiontablesReadonlyScope))
To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey:
fusiontablesService, err := fusiontables.NewService(ctx, option.WithAPIKey("AIza..."))To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource:
config := &oauth2.Config{...}// ...token, err := config.Exchange(ctx, ...)fusiontablesService, err := fusiontables.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))Seehttps://godoc.org/google.golang.org/api/option/ for details on options.
Index¶
- Constants
- type Bucket
- type Column
- type ColumnBaseColumn
- type ColumnDeleteCall
- type ColumnGetCall
- func (c *ColumnGetCall) Context(ctx context.Context) *ColumnGetCall
- func (c *ColumnGetCall) Do(opts ...googleapi.CallOption) (*Column, error)
- func (c *ColumnGetCall) Fields(s ...googleapi.Field) *ColumnGetCall
- func (c *ColumnGetCall) Header() http.Header
- func (c *ColumnGetCall) IfNoneMatch(entityTag string) *ColumnGetCall
- type ColumnInsertCall
- type ColumnList
- type ColumnListCall
- func (c *ColumnListCall) Context(ctx context.Context) *ColumnListCall
- func (c *ColumnListCall) Do(opts ...googleapi.CallOption) (*ColumnList, error)
- func (c *ColumnListCall) Fields(s ...googleapi.Field) *ColumnListCall
- func (c *ColumnListCall) Header() http.Header
- func (c *ColumnListCall) IfNoneMatch(entityTag string) *ColumnListCall
- func (c *ColumnListCall) MaxResults(maxResults int64) *ColumnListCall
- func (c *ColumnListCall) PageToken(pageToken string) *ColumnListCall
- func (c *ColumnListCall) Pages(ctx context.Context, f func(*ColumnList) error) error
- type ColumnPatchCall
- type ColumnService
- func (r *ColumnService) Delete(tableId string, columnId string) *ColumnDeleteCall
- func (r *ColumnService) Get(tableId string, columnId string) *ColumnGetCall
- func (r *ColumnService) Insert(tableId string, column *Column) *ColumnInsertCall
- func (r *ColumnService) List(tableId string) *ColumnListCall
- func (r *ColumnService) Patch(tableId string, columnId string, column *Column) *ColumnPatchCall
- func (r *ColumnService) Update(tableId string, columnId string, column *Column) *ColumnUpdateCall
- type ColumnUpdateCall
- type Geometry
- type Import
- type Line
- type LineStyle
- type Point
- type PointStyle
- type Polygon
- type PolygonStyle
- type QueryService
- type QuerySqlCall
- func (c *QuerySqlCall) Context(ctx context.Context) *QuerySqlCall
- func (c *QuerySqlCall) Do(opts ...googleapi.CallOption) (*Sqlresponse, error)
- func (c *QuerySqlCall) Download(opts ...googleapi.CallOption) (*http.Response, error)
- func (c *QuerySqlCall) Fields(s ...googleapi.Field) *QuerySqlCall
- func (c *QuerySqlCall) Hdrs(hdrs bool) *QuerySqlCall
- func (c *QuerySqlCall) Header() http.Header
- func (c *QuerySqlCall) Typed(typed bool) *QuerySqlCall
- type QuerySqlGetCall
- func (c *QuerySqlGetCall) Context(ctx context.Context) *QuerySqlGetCall
- func (c *QuerySqlGetCall) Do(opts ...googleapi.CallOption) (*Sqlresponse, error)
- func (c *QuerySqlGetCall) Download(opts ...googleapi.CallOption) (*http.Response, error)
- func (c *QuerySqlGetCall) Fields(s ...googleapi.Field) *QuerySqlGetCall
- func (c *QuerySqlGetCall) Hdrs(hdrs bool) *QuerySqlGetCall
- func (c *QuerySqlGetCall) Header() http.Header
- func (c *QuerySqlGetCall) IfNoneMatch(entityTag string) *QuerySqlGetCall
- func (c *QuerySqlGetCall) Typed(typed bool) *QuerySqlGetCall
- type Service
- type Sqlresponse
- type StyleDeleteCall
- type StyleFunction
- type StyleFunctionGradient
- type StyleFunctionGradientColors
- type StyleGetCall
- func (c *StyleGetCall) Context(ctx context.Context) *StyleGetCall
- func (c *StyleGetCall) Do(opts ...googleapi.CallOption) (*StyleSetting, error)
- func (c *StyleGetCall) Fields(s ...googleapi.Field) *StyleGetCall
- func (c *StyleGetCall) Header() http.Header
- func (c *StyleGetCall) IfNoneMatch(entityTag string) *StyleGetCall
- type StyleInsertCall
- type StyleListCall
- func (c *StyleListCall) Context(ctx context.Context) *StyleListCall
- func (c *StyleListCall) Do(opts ...googleapi.CallOption) (*StyleSettingList, error)
- func (c *StyleListCall) Fields(s ...googleapi.Field) *StyleListCall
- func (c *StyleListCall) Header() http.Header
- func (c *StyleListCall) IfNoneMatch(entityTag string) *StyleListCall
- func (c *StyleListCall) MaxResults(maxResults int64) *StyleListCall
- func (c *StyleListCall) PageToken(pageToken string) *StyleListCall
- func (c *StyleListCall) Pages(ctx context.Context, f func(*StyleSettingList) error) error
- type StylePatchCall
- type StyleService
- func (r *StyleService) Delete(tableId string, styleId int64) *StyleDeleteCall
- func (r *StyleService) Get(tableId string, styleId int64) *StyleGetCall
- func (r *StyleService) Insert(tableId string, stylesetting *StyleSetting) *StyleInsertCall
- func (r *StyleService) List(tableId string) *StyleListCall
- func (r *StyleService) Patch(tableId string, styleId int64, stylesetting *StyleSetting) *StylePatchCall
- func (r *StyleService) Update(tableId string, styleId int64, stylesetting *StyleSetting) *StyleUpdateCall
- type StyleSetting
- type StyleSettingList
- type StyleUpdateCall
- type Table
- type TableCopyCall
- func (c *TableCopyCall) Context(ctx context.Context) *TableCopyCall
- func (c *TableCopyCall) CopyPresentation(copyPresentation bool) *TableCopyCall
- func (c *TableCopyCall) Do(opts ...googleapi.CallOption) (*Table, error)
- func (c *TableCopyCall) Fields(s ...googleapi.Field) *TableCopyCall
- func (c *TableCopyCall) Header() http.Header
- type TableDeleteCall
- type TableGetCall
- func (c *TableGetCall) Context(ctx context.Context) *TableGetCall
- func (c *TableGetCall) Do(opts ...googleapi.CallOption) (*Table, error)
- func (c *TableGetCall) Fields(s ...googleapi.Field) *TableGetCall
- func (c *TableGetCall) Header() http.Header
- func (c *TableGetCall) IfNoneMatch(entityTag string) *TableGetCall
- type TableImportRowsCall
- func (c *TableImportRowsCall) Context(ctx context.Context) *TableImportRowsCall
- func (c *TableImportRowsCall) Delimiter(delimiter string) *TableImportRowsCall
- func (c *TableImportRowsCall) Do(opts ...googleapi.CallOption) (*Import, error)
- func (c *TableImportRowsCall) Encoding(encoding string) *TableImportRowsCall
- func (c *TableImportRowsCall) EndLine(endLine int64) *TableImportRowsCall
- func (c *TableImportRowsCall) Fields(s ...googleapi.Field) *TableImportRowsCall
- func (c *TableImportRowsCall) Header() http.Header
- func (c *TableImportRowsCall) IsStrict(isStrict bool) *TableImportRowsCall
- func (c *TableImportRowsCall) Media(r io.Reader, options ...googleapi.MediaOption) *TableImportRowsCall
- func (c *TableImportRowsCall) ProgressUpdater(pu googleapi.ProgressUpdater) *TableImportRowsCall
- func (c *TableImportRowsCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *TableImportRowsCalldeprecated
- func (c *TableImportRowsCall) StartLine(startLine int64) *TableImportRowsCall
- type TableImportTableCall
- func (c *TableImportTableCall) Context(ctx context.Context) *TableImportTableCall
- func (c *TableImportTableCall) Delimiter(delimiter string) *TableImportTableCall
- func (c *TableImportTableCall) Do(opts ...googleapi.CallOption) (*Table, error)
- func (c *TableImportTableCall) Encoding(encoding string) *TableImportTableCall
- func (c *TableImportTableCall) Fields(s ...googleapi.Field) *TableImportTableCall
- func (c *TableImportTableCall) Header() http.Header
- func (c *TableImportTableCall) Media(r io.Reader, options ...googleapi.MediaOption) *TableImportTableCall
- func (c *TableImportTableCall) ProgressUpdater(pu googleapi.ProgressUpdater) *TableImportTableCall
- func (c *TableImportTableCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *TableImportTableCalldeprecated
- type TableInsertCall
- type TableList
- type TableListCall
- func (c *TableListCall) Context(ctx context.Context) *TableListCall
- func (c *TableListCall) Do(opts ...googleapi.CallOption) (*TableList, error)
- func (c *TableListCall) Fields(s ...googleapi.Field) *TableListCall
- func (c *TableListCall) Header() http.Header
- func (c *TableListCall) IfNoneMatch(entityTag string) *TableListCall
- func (c *TableListCall) MaxResults(maxResults int64) *TableListCall
- func (c *TableListCall) PageToken(pageToken string) *TableListCall
- func (c *TableListCall) Pages(ctx context.Context, f func(*TableList) error) error
- type TablePatchCall
- func (c *TablePatchCall) Context(ctx context.Context) *TablePatchCall
- func (c *TablePatchCall) Do(opts ...googleapi.CallOption) (*Table, error)
- func (c *TablePatchCall) Fields(s ...googleapi.Field) *TablePatchCall
- func (c *TablePatchCall) Header() http.Header
- func (c *TablePatchCall) ReplaceViewDefinition(replaceViewDefinition bool) *TablePatchCall
- type TableService
- func (r *TableService) Copy(tableId string) *TableCopyCall
- func (r *TableService) Delete(tableId string) *TableDeleteCall
- func (r *TableService) Get(tableId string) *TableGetCall
- func (r *TableService) ImportRows(tableId string) *TableImportRowsCall
- func (r *TableService) ImportTable(name string) *TableImportTableCall
- func (r *TableService) Insert(table *Table) *TableInsertCall
- func (r *TableService) List() *TableListCall
- func (r *TableService) Patch(tableId string, table *Table) *TablePatchCall
- func (r *TableService) Update(tableId string, table *Table) *TableUpdateCall
- type TableUpdateCall
- func (c *TableUpdateCall) Context(ctx context.Context) *TableUpdateCall
- func (c *TableUpdateCall) Do(opts ...googleapi.CallOption) (*Table, error)
- func (c *TableUpdateCall) Fields(s ...googleapi.Field) *TableUpdateCall
- func (c *TableUpdateCall) Header() http.Header
- func (c *TableUpdateCall) ReplaceViewDefinition(replaceViewDefinition bool) *TableUpdateCall
- type Task
- type TaskDeleteCall
- type TaskGetCall
- func (c *TaskGetCall) Context(ctx context.Context) *TaskGetCall
- func (c *TaskGetCall) Do(opts ...googleapi.CallOption) (*Task, error)
- func (c *TaskGetCall) Fields(s ...googleapi.Field) *TaskGetCall
- func (c *TaskGetCall) Header() http.Header
- func (c *TaskGetCall) IfNoneMatch(entityTag string) *TaskGetCall
- type TaskList
- type TaskListCall
- func (c *TaskListCall) Context(ctx context.Context) *TaskListCall
- func (c *TaskListCall) Do(opts ...googleapi.CallOption) (*TaskList, error)
- func (c *TaskListCall) Fields(s ...googleapi.Field) *TaskListCall
- func (c *TaskListCall) Header() http.Header
- func (c *TaskListCall) IfNoneMatch(entityTag string) *TaskListCall
- func (c *TaskListCall) MaxResults(maxResults int64) *TaskListCall
- func (c *TaskListCall) PageToken(pageToken string) *TaskListCall
- func (c *TaskListCall) Pages(ctx context.Context, f func(*TaskList) error) error
- func (c *TaskListCall) StartIndex(startIndex int64) *TaskListCall
- type TaskService
- type Template
- type TemplateDeleteCall
- type TemplateGetCall
- func (c *TemplateGetCall) Context(ctx context.Context) *TemplateGetCall
- func (c *TemplateGetCall) Do(opts ...googleapi.CallOption) (*Template, error)
- func (c *TemplateGetCall) Fields(s ...googleapi.Field) *TemplateGetCall
- func (c *TemplateGetCall) Header() http.Header
- func (c *TemplateGetCall) IfNoneMatch(entityTag string) *TemplateGetCall
- type TemplateInsertCall
- type TemplateList
- type TemplateListCall
- func (c *TemplateListCall) Context(ctx context.Context) *TemplateListCall
- func (c *TemplateListCall) Do(opts ...googleapi.CallOption) (*TemplateList, error)
- func (c *TemplateListCall) Fields(s ...googleapi.Field) *TemplateListCall
- func (c *TemplateListCall) Header() http.Header
- func (c *TemplateListCall) IfNoneMatch(entityTag string) *TemplateListCall
- func (c *TemplateListCall) MaxResults(maxResults int64) *TemplateListCall
- func (c *TemplateListCall) PageToken(pageToken string) *TemplateListCall
- func (c *TemplateListCall) Pages(ctx context.Context, f func(*TemplateList) error) error
- type TemplatePatchCall
- type TemplateService
- func (r *TemplateService) Delete(tableId string, templateId int64) *TemplateDeleteCall
- func (r *TemplateService) Get(tableId string, templateId int64) *TemplateGetCall
- func (r *TemplateService) Insert(tableId string, template *Template) *TemplateInsertCall
- func (r *TemplateService) List(tableId string) *TemplateListCall
- func (r *TemplateService) Patch(tableId string, templateId int64, template *Template) *TemplatePatchCall
- func (r *TemplateService) Update(tableId string, templateId int64, template *Template) *TemplateUpdateCall
- type TemplateUpdateCall
Constants¶
const (// Manage your Fusion TablesFusiontablesScope = "https://www.googleapis.com/auth/fusiontables"// View your Fusion TablesFusiontablesReadonlyScope = "https://www.googleapis.com/auth/fusiontables.readonly")
OAuth2 scopes used by this API.
Variables¶
This section is empty.
Functions¶
This section is empty.
Types¶
typeBucket¶
type Bucket struct {// Color: Color of line or the interior of a polygon in #RRGGBB format.Colorstring `json:"color,omitempty"`// Icon: Icon name used for a point.Iconstring `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.Maxfloat64 `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.Minfloat64 `json:"min,omitempty"`// Opacity: Opacity of the color: 0.0 (transparent) to 1.0 (opaque).Opacityfloat64 `json:"opacity,omitempty"`// Weight: Width of a line (in pixels).Weightint64 `json:"weight,omitempty"`// ForceSendFields is a list of field names (e.g. "Color") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Color") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}Bucket: Specifies the minimum and maximum values, the color, opacity,icon and weight of a bucket within a StyleSetting.
func (*Bucket)MarshalJSON¶
func (*Bucket)UnmarshalJSON¶
typeColumn¶
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.ColumnIdint64 `json:"columnId,omitempty"`// Description: Optional column description.Descriptionstring `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-modelGraphPredicatestring `json:"graph_predicate,omitempty"`// Kind: Type name: a template for an individual column.Kindstring `json:"kind,omitempty"`// Name: Required name of the column.Namestring `json:"name,omitempty"`// Type: Required type of the column.Typestring `json:"type,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "BaseColumn") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "BaseColumn") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}Column: Specifies the id, name and type of a column in a table.
func (*Column)MarshalJSON¶
typeColumnBaseColumn¶
type ColumnBaseColumn struct {// ColumnId: The id of the column in the base table from which this// column is derived.ColumnIdint64 `json:"columnId,omitempty"`// TableIndex: Offset to the entry in the list of base tables in the// table definition.TableIndexint64 `json:"tableIndex,omitempty"`// ForceSendFields is a list of field names (e.g. "ColumnId") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ColumnId") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}ColumnBaseColumn: Optional identifier of the base column. If present,this column is derived from the specified base column.
func (*ColumnBaseColumn)MarshalJSON¶
func (s *ColumnBaseColumn) MarshalJSON() ([]byte,error)
typeColumnDeleteCall¶
type ColumnDeleteCall struct {// contains filtered or unexported fields}func (*ColumnDeleteCall)Context¶
func (c *ColumnDeleteCall) Context(ctxcontext.Context) *ColumnDeleteCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*ColumnDeleteCall)Do¶
func (c *ColumnDeleteCall) Do(opts ...googleapi.CallOption)error
Do executes the "fusiontables.column.delete" call.
func (*ColumnDeleteCall)Fields¶
func (c *ColumnDeleteCall) Fields(s ...googleapi.Field) *ColumnDeleteCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*ColumnDeleteCall)Header¶
func (c *ColumnDeleteCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
typeColumnGetCall¶
type ColumnGetCall struct {// contains filtered or unexported fields}func (*ColumnGetCall)Context¶
func (c *ColumnGetCall) Context(ctxcontext.Context) *ColumnGetCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*ColumnGetCall)Do¶
func (c *ColumnGetCall) Do(opts ...googleapi.CallOption) (*Column,error)
Do executes the "fusiontables.column.get" call.Exactly one of *Column or error will be non-nil. Any non-2xx statuscode is an error. Response headers are in either*Column.ServerResponse.Header or (if a response was returned at all)in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModifiedwas returned.
func (*ColumnGetCall)Fields¶
func (c *ColumnGetCall) Fields(s ...googleapi.Field) *ColumnGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*ColumnGetCall)Header¶
func (c *ColumnGetCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
func (*ColumnGetCall)IfNoneMatch¶
func (c *ColumnGetCall) IfNoneMatch(entityTagstring) *ColumnGetCall
IfNoneMatch sets the optional parameter which makes the operationfail if the object's ETag matches the given value. This is useful forgetting updates only after the object has changed since the lastrequest. Use googleapi.IsNotModified to check whether the responseerror from Do is the result of In-None-Match.
typeColumnInsertCall¶
type ColumnInsertCall struct {// contains filtered or unexported fields}func (*ColumnInsertCall)Context¶
func (c *ColumnInsertCall) Context(ctxcontext.Context) *ColumnInsertCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*ColumnInsertCall)Do¶
func (c *ColumnInsertCall) Do(opts ...googleapi.CallOption) (*Column,error)
Do executes the "fusiontables.column.insert" call.Exactly one of *Column or error will be non-nil. Any non-2xx statuscode is an error. Response headers are in either*Column.ServerResponse.Header or (if a response was returned at all)in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModifiedwas returned.
func (*ColumnInsertCall)Fields¶
func (c *ColumnInsertCall) Fields(s ...googleapi.Field) *ColumnInsertCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*ColumnInsertCall)Header¶
func (c *ColumnInsertCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
typeColumnList¶
type ColumnList struct {// Items: List of all requested columns.Items []*Column `json:"items,omitempty"`// Kind: Type name: a list of all columns.Kindstring `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.NextPageTokenstring `json:"nextPageToken,omitempty"`// TotalItems: Total number of columns for the table.TotalItemsint64 `json:"totalItems,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Items") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Items") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}ColumnList: Represents a list of columns in a table.
func (*ColumnList)MarshalJSON¶
func (s *ColumnList) MarshalJSON() ([]byte,error)
typeColumnListCall¶
type ColumnListCall struct {// contains filtered or unexported fields}func (*ColumnListCall)Context¶
func (c *ColumnListCall) Context(ctxcontext.Context) *ColumnListCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*ColumnListCall)Do¶
func (c *ColumnListCall) Do(opts ...googleapi.CallOption) (*ColumnList,error)
Do executes the "fusiontables.column.list" call.Exactly one of *ColumnList or error will be non-nil. Any non-2xxstatus code is an error. Response headers are in either*ColumnList.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModifiedto check whether the returned error was becausehttp.StatusNotModified was returned.
func (*ColumnListCall)Fields¶
func (c *ColumnListCall) Fields(s ...googleapi.Field) *ColumnListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*ColumnListCall)Header¶
func (c *ColumnListCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
func (*ColumnListCall)IfNoneMatch¶
func (c *ColumnListCall) IfNoneMatch(entityTagstring) *ColumnListCall
IfNoneMatch sets the optional parameter which makes the operationfail if the object's ETag matches the given value. This is useful forgetting updates only after the object has changed since the lastrequest. Use googleapi.IsNotModified to check whether the responseerror from Do is the result of In-None-Match.
func (*ColumnListCall)MaxResults¶
func (c *ColumnListCall) MaxResults(maxResultsint64) *ColumnListCall
MaxResults sets the optional parameter "maxResults": Maximum numberof columns to return. Default is 5.
func (*ColumnListCall)PageToken¶
func (c *ColumnListCall) PageToken(pageTokenstring) *ColumnListCall
PageToken sets the optional parameter "pageToken": Continuation tokenspecifying which result page to return.
func (*ColumnListCall)Pages¶
func (c *ColumnListCall) Pages(ctxcontext.Context, f func(*ColumnList)error)error
Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.
typeColumnPatchCall¶
type ColumnPatchCall struct {// contains filtered or unexported fields}func (*ColumnPatchCall)Context¶
func (c *ColumnPatchCall) Context(ctxcontext.Context) *ColumnPatchCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*ColumnPatchCall)Do¶
func (c *ColumnPatchCall) Do(opts ...googleapi.CallOption) (*Column,error)
Do executes the "fusiontables.column.patch" call.Exactly one of *Column or error will be non-nil. Any non-2xx statuscode is an error. Response headers are in either*Column.ServerResponse.Header or (if a response was returned at all)in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModifiedwas returned.
func (*ColumnPatchCall)Fields¶
func (c *ColumnPatchCall) Fields(s ...googleapi.Field) *ColumnPatchCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*ColumnPatchCall)Header¶
func (c *ColumnPatchCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
typeColumnService¶
type ColumnService struct {// contains filtered or unexported fields}funcNewColumnService¶
func NewColumnService(s *Service) *ColumnService
func (*ColumnService)Delete¶
func (r *ColumnService) Delete(tableIdstring, columnIdstring) *ColumnDeleteCall
Delete: Deletes the column.
func (*ColumnService)Get¶
func (r *ColumnService) Get(tableIdstring, columnIdstring) *ColumnGetCall
Get: Retrieves a specific column by its id.
func (*ColumnService)Insert¶
func (r *ColumnService) Insert(tableIdstring, column *Column) *ColumnInsertCall
Insert: Adds a new column to the table.
func (*ColumnService)List¶
func (r *ColumnService) List(tableIdstring) *ColumnListCall
List: Retrieves a list of columns.
func (*ColumnService)Patch¶
func (r *ColumnService) Patch(tableIdstring, columnIdstring, column *Column) *ColumnPatchCall
Patch: Updates the name or type of an existing column. This methodsupports patch semantics.
func (*ColumnService)Update¶
func (r *ColumnService) Update(tableIdstring, columnIdstring, column *Column) *ColumnUpdateCall
Update: Updates the name or type of an existing column.
typeColumnUpdateCall¶
type ColumnUpdateCall struct {// contains filtered or unexported fields}func (*ColumnUpdateCall)Context¶
func (c *ColumnUpdateCall) Context(ctxcontext.Context) *ColumnUpdateCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*ColumnUpdateCall)Do¶
func (c *ColumnUpdateCall) Do(opts ...googleapi.CallOption) (*Column,error)
Do executes the "fusiontables.column.update" call.Exactly one of *Column or error will be non-nil. Any non-2xx statuscode is an error. Response headers are in either*Column.ServerResponse.Header or (if a response was returned at all)in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModifiedwas returned.
func (*ColumnUpdateCall)Fields¶
func (c *ColumnUpdateCall) Fields(s ...googleapi.Field) *ColumnUpdateCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*ColumnUpdateCall)Header¶
func (c *ColumnUpdateCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
typeGeometry¶
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.Typestring `json:"type,omitempty"`// ForceSendFields is a list of field names (e.g. "Geometries") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Geometries") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}Geometry: Represents a Geometry object.
func (*Geometry)MarshalJSON¶
typeImport¶
type Import struct {// Kind: Type name: a template for an import request.Kindstring `json:"kind,omitempty"`// NumRowsReceived: The number of rows received from the import request.NumRowsReceivedint64 `json:"numRowsReceived,omitempty,string"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Kind") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Kind") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}Import: Represents an import request.
func (*Import)MarshalJSON¶
typeLine¶
type Line struct {// Coordinates: The coordinates that define the line.Coordinates [][]float64 `json:"coordinates,omitempty"`// Type: Type: A line geometry.Typestring `json:"type,omitempty"`// ForceSendFields is a list of field names (e.g. "Coordinates") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Coordinates") to include// in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. However, any field with// an empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}Line: Represents a line geometry.
func (*Line)MarshalJSON¶
typeLineStyle¶
type LineStyle struct {// StrokeColor: Color of the line in #RRGGBB format.StrokeColorstring `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).StrokeOpacityfloat64 `json:"strokeOpacity,omitempty"`// StrokeWeight: Width of the line in pixels.StrokeWeightint64 `json:"strokeWeight,omitempty"`// StrokeWeightStyler: Column-value or bucket styler that is used to// determine the width of the line.StrokeWeightStyler *StyleFunction `json:"strokeWeightStyler,omitempty"`// ForceSendFields is a list of field names (e.g. "StrokeColor") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "StrokeColor") to include// in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. However, any field with// an empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}LineStyle: Represents a LineStyle within a StyleSetting
func (*LineStyle)MarshalJSON¶
func (*LineStyle)UnmarshalJSON¶
typePoint¶
type Point struct {// Coordinates: The coordinates that define the point.Coordinates []float64 `json:"coordinates,omitempty"`// Type: Point: A point geometry.Typestring `json:"type,omitempty"`// ForceSendFields is a list of field names (e.g. "Coordinates") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Coordinates") to include// in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. However, any field with// an empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}Point: Represents a point object.
func (*Point)MarshalJSON¶
typePointStyle¶
type PointStyle struct {// IconName: Name of the icon. Use values defined in//http://www.google.com/fusiontables/DataSource?dsrcid=308519IconNamestring `json:"iconName,omitempty"`// IconStyler: Column or a bucket value from which the icon name is to// be determined.IconStyler *StyleFunction `json:"iconStyler,omitempty"`// ForceSendFields is a list of field names (e.g. "IconName") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "IconName") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}PointStyle: Represents a PointStyle within a StyleSetting
func (*PointStyle)MarshalJSON¶
func (s *PointStyle) MarshalJSON() ([]byte,error)
typePolygon¶
type Polygon struct {// Coordinates: The coordinates that define the polygon.Coordinates [][][]float64 `json:"coordinates,omitempty"`// Type: Type: A polygon geometry.Typestring `json:"type,omitempty"`// ForceSendFields is a list of field names (e.g. "Coordinates") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Coordinates") to include// in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. However, any field with// an empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}Polygon: Represents a polygon object.
func (*Polygon)MarshalJSON¶
typePolygonStyle¶
type PolygonStyle struct {// FillColor: Color of the interior of the polygon in #RRGGBB format.FillColorstring `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).FillOpacityfloat64 `json:"fillOpacity,omitempty"`// StrokeColor: Color of the polygon border in #RRGGBB format.StrokeColorstring `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).StrokeOpacityfloat64 `json:"strokeOpacity,omitempty"`// StrokeWeight: Width of the polyon border in pixels.StrokeWeightint64 `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"`// ForceSendFields is a list of field names (e.g. "FillColor") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "FillColor") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}PolygonStyle: Represents a PolygonStyle within a StyleSetting
func (*PolygonStyle)MarshalJSON¶
func (s *PolygonStyle) MarshalJSON() ([]byte,error)
func (*PolygonStyle)UnmarshalJSON¶
func (s *PolygonStyle) UnmarshalJSON(data []byte)error
typeQueryService¶
type QueryService struct {// contains filtered or unexported fields}funcNewQueryService¶
func NewQueryService(s *Service) *QueryService
func (*QueryService)Sql¶
func (r *QueryService) Sql(sqlstring) *QuerySqlCall
Sql: Executes an SQL SELECT/INSERT/UPDATE/DELETE/SHOW/DESCRIBE/CREATEstatement.
func (*QueryService)SqlGet¶
func (r *QueryService) SqlGet(sqlstring) *QuerySqlGetCall
SqlGet: Executes an SQL SELECT/SHOW/DESCRIBE statement.
typeQuerySqlCall¶
type QuerySqlCall struct {// contains filtered or unexported fields}func (*QuerySqlCall)Context¶
func (c *QuerySqlCall) Context(ctxcontext.Context) *QuerySqlCall
Context sets the context to be used in this call's Do and Downloadmethods. Any pending HTTP request will be aborted if the providedcontext is canceled.
func (*QuerySqlCall)Do¶
func (c *QuerySqlCall) Do(opts ...googleapi.CallOption) (*Sqlresponse,error)
Do executes the "fusiontables.query.sql" call.Exactly one of *Sqlresponse or error will be non-nil. Any non-2xxstatus code is an error. Response headers are in either*Sqlresponse.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModifiedto check whether the returned error was becausehttp.StatusNotModified was returned.
func (*QuerySqlCall)Download¶
func (c *QuerySqlCall) Download(opts ...googleapi.CallOption) (*http.Response,error)
Download fetches the API endpoint's "media" value, instead of the normalAPI response value. If the returned error is nil, the Response is guaranteed tohave a 2xx status code. Callers must close the Response.Body as usual.
func (*QuerySqlCall)Fields¶
func (c *QuerySqlCall) Fields(s ...googleapi.Field) *QuerySqlCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*QuerySqlCall)Hdrs¶
func (c *QuerySqlCall) Hdrs(hdrsbool) *QuerySqlCall
Hdrs sets the optional parameter "hdrs": Should column names beincluded (in the first row)?. Default is true.
func (*QuerySqlCall)Header¶
func (c *QuerySqlCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
func (*QuerySqlCall)Typed¶
func (c *QuerySqlCall) Typed(typedbool) *QuerySqlCall
Typed sets the optional parameter "typed": Should typed values bereturned in the (JSON) response -- numbers for numeric values andparsed geometries for KML values? Default is true.
typeQuerySqlGetCall¶
type QuerySqlGetCall struct {// contains filtered or unexported fields}func (*QuerySqlGetCall)Context¶
func (c *QuerySqlGetCall) Context(ctxcontext.Context) *QuerySqlGetCall
Context sets the context to be used in this call's Do and Downloadmethods. Any pending HTTP request will be aborted if the providedcontext is canceled.
func (*QuerySqlGetCall)Do¶
func (c *QuerySqlGetCall) Do(opts ...googleapi.CallOption) (*Sqlresponse,error)
Do executes the "fusiontables.query.sqlGet" call.Exactly one of *Sqlresponse or error will be non-nil. Any non-2xxstatus code is an error. Response headers are in either*Sqlresponse.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModifiedto check whether the returned error was becausehttp.StatusNotModified was returned.
func (*QuerySqlGetCall)Download¶
func (c *QuerySqlGetCall) Download(opts ...googleapi.CallOption) (*http.Response,error)
Download fetches the API endpoint's "media" value, instead of the normalAPI response value. If the returned error is nil, the Response is guaranteed tohave a 2xx status code. Callers must close the Response.Body as usual.
func (*QuerySqlGetCall)Fields¶
func (c *QuerySqlGetCall) Fields(s ...googleapi.Field) *QuerySqlGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*QuerySqlGetCall)Hdrs¶
func (c *QuerySqlGetCall) Hdrs(hdrsbool) *QuerySqlGetCall
Hdrs sets the optional parameter "hdrs": Should column names beincluded (in the first row)?. Default is true.
func (*QuerySqlGetCall)Header¶
func (c *QuerySqlGetCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
func (*QuerySqlGetCall)IfNoneMatch¶
func (c *QuerySqlGetCall) IfNoneMatch(entityTagstring) *QuerySqlGetCall
IfNoneMatch sets the optional parameter which makes the operationfail if the object's ETag matches the given value. This is useful forgetting updates only after the object has changed since the lastrequest. Use googleapi.IsNotModified to check whether the responseerror from Do is the result of In-None-Match.
func (*QuerySqlGetCall)Typed¶
func (c *QuerySqlGetCall) Typed(typedbool) *QuerySqlGetCall
Typed sets the optional parameter "typed": Should typed values bereturned in the (JSON) response -- numbers for numeric values andparsed geometries for KML values? Default is true.
typeService¶
type Service struct {BasePathstring// API endpoint base URLUserAgentstring// optional additional User-Agent fragmentColumn *ColumnServiceQuery *QueryServiceStyle *StyleServiceTable *TableServiceTask *TaskServiceTemplate *TemplateService// contains filtered or unexported fields} funcNewdeprecated
New creates a new Service. It uses the provided http.Client for requests.
Deprecated: please use NewService instead.To provide a custom HTTP client, use option.WithHTTPClient.If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
funcNewService¶added inv0.3.0
NewService creates a new Service.
typeSqlresponse¶
type Sqlresponse struct {// Columns: Columns in the table.Columns []string `json:"columns,omitempty"`// Kind: Type name: a template for an individual table.Kindstring `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"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Columns") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Columns") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}Sqlresponse: Represents a response to an sql statement.
func (*Sqlresponse)MarshalJSON¶
func (s *Sqlresponse) MarshalJSON() ([]byte,error)
typeStyleDeleteCall¶
type StyleDeleteCall struct {// contains filtered or unexported fields}func (*StyleDeleteCall)Context¶
func (c *StyleDeleteCall) Context(ctxcontext.Context) *StyleDeleteCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*StyleDeleteCall)Do¶
func (c *StyleDeleteCall) Do(opts ...googleapi.CallOption)error
Do executes the "fusiontables.style.delete" call.
func (*StyleDeleteCall)Fields¶
func (c *StyleDeleteCall) Fields(s ...googleapi.Field) *StyleDeleteCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*StyleDeleteCall)Header¶
func (c *StyleDeleteCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
typeStyleFunction¶
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.ColumnNamestring `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.Kindstring `json:"kind,omitempty"`// ForceSendFields is a list of field names (e.g. "Buckets") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Buckets") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}StyleFunction: Represents a StyleFunction within a StyleSetting
func (*StyleFunction)MarshalJSON¶
func (s *StyleFunction) MarshalJSON() ([]byte,error)
typeStyleFunctionGradient¶
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].Maxfloat64 `json:"max,omitempty"`// Min: Lower-end of the interpolation range: rows with this value will// be assigned to colors[0].Minfloat64 `json:"min,omitempty"`// ForceSendFields is a list of field names (e.g. "Colors") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Colors") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}StyleFunctionGradient: Gradient function that interpolates a range ofcolors based on column value.
func (*StyleFunctionGradient)MarshalJSON¶
func (s *StyleFunctionGradient) MarshalJSON() ([]byte,error)
func (*StyleFunctionGradient)UnmarshalJSON¶
func (s *StyleFunctionGradient) UnmarshalJSON(data []byte)error
typeStyleFunctionGradientColors¶
type StyleFunctionGradientColors struct {// Color: Color in #RRGGBB format.Colorstring `json:"color,omitempty"`// Opacity: Opacity of the color: 0.0 (transparent) to 1.0 (opaque).Opacityfloat64 `json:"opacity,omitempty"`// ForceSendFields is a list of field names (e.g. "Color") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Color") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}func (*StyleFunctionGradientColors)MarshalJSON¶
func (s *StyleFunctionGradientColors) MarshalJSON() ([]byte,error)
func (*StyleFunctionGradientColors)UnmarshalJSON¶
func (s *StyleFunctionGradientColors) UnmarshalJSON(data []byte)error
typeStyleGetCall¶
type StyleGetCall struct {// contains filtered or unexported fields}func (*StyleGetCall)Context¶
func (c *StyleGetCall) Context(ctxcontext.Context) *StyleGetCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*StyleGetCall)Do¶
func (c *StyleGetCall) Do(opts ...googleapi.CallOption) (*StyleSetting,error)
Do executes the "fusiontables.style.get" call.Exactly one of *StyleSetting or error will be non-nil. Any non-2xxstatus code is an error. Response headers are in either*StyleSetting.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModifiedto check whether the returned error was becausehttp.StatusNotModified was returned.
func (*StyleGetCall)Fields¶
func (c *StyleGetCall) Fields(s ...googleapi.Field) *StyleGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*StyleGetCall)Header¶
func (c *StyleGetCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
func (*StyleGetCall)IfNoneMatch¶
func (c *StyleGetCall) IfNoneMatch(entityTagstring) *StyleGetCall
IfNoneMatch sets the optional parameter which makes the operationfail if the object's ETag matches the given value. This is useful forgetting updates only after the object has changed since the lastrequest. Use googleapi.IsNotModified to check whether the responseerror from Do is the result of In-None-Match.
typeStyleInsertCall¶
type StyleInsertCall struct {// contains filtered or unexported fields}func (*StyleInsertCall)Context¶
func (c *StyleInsertCall) Context(ctxcontext.Context) *StyleInsertCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*StyleInsertCall)Do¶
func (c *StyleInsertCall) Do(opts ...googleapi.CallOption) (*StyleSetting,error)
Do executes the "fusiontables.style.insert" call.Exactly one of *StyleSetting or error will be non-nil. Any non-2xxstatus code is an error. Response headers are in either*StyleSetting.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModifiedto check whether the returned error was becausehttp.StatusNotModified was returned.
func (*StyleInsertCall)Fields¶
func (c *StyleInsertCall) Fields(s ...googleapi.Field) *StyleInsertCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*StyleInsertCall)Header¶
func (c *StyleInsertCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
typeStyleListCall¶
type StyleListCall struct {// contains filtered or unexported fields}func (*StyleListCall)Context¶
func (c *StyleListCall) Context(ctxcontext.Context) *StyleListCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*StyleListCall)Do¶
func (c *StyleListCall) Do(opts ...googleapi.CallOption) (*StyleSettingList,error)
Do executes the "fusiontables.style.list" call.Exactly one of *StyleSettingList or error will be non-nil. Anynon-2xx status code is an error. Response headers are in either*StyleSettingList.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error wasbecause http.StatusNotModified was returned.
func (*StyleListCall)Fields¶
func (c *StyleListCall) Fields(s ...googleapi.Field) *StyleListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*StyleListCall)Header¶
func (c *StyleListCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
func (*StyleListCall)IfNoneMatch¶
func (c *StyleListCall) IfNoneMatch(entityTagstring) *StyleListCall
IfNoneMatch sets the optional parameter which makes the operationfail if the object's ETag matches the given value. This is useful forgetting updates only after the object has changed since the lastrequest. Use googleapi.IsNotModified to check whether the responseerror from Do is the result of In-None-Match.
func (*StyleListCall)MaxResults¶
func (c *StyleListCall) MaxResults(maxResultsint64) *StyleListCall
MaxResults sets the optional parameter "maxResults": Maximum numberof styles to return. Default is 5.
func (*StyleListCall)PageToken¶
func (c *StyleListCall) PageToken(pageTokenstring) *StyleListCall
PageToken sets the optional parameter "pageToken": Continuation tokenspecifying which result page to return.
func (*StyleListCall)Pages¶
func (c *StyleListCall) Pages(ctxcontext.Context, f func(*StyleSettingList)error)error
Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.
typeStylePatchCall¶
type StylePatchCall struct {// contains filtered or unexported fields}func (*StylePatchCall)Context¶
func (c *StylePatchCall) Context(ctxcontext.Context) *StylePatchCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*StylePatchCall)Do¶
func (c *StylePatchCall) Do(opts ...googleapi.CallOption) (*StyleSetting,error)
Do executes the "fusiontables.style.patch" call.Exactly one of *StyleSetting or error will be non-nil. Any non-2xxstatus code is an error. Response headers are in either*StyleSetting.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModifiedto check whether the returned error was becausehttp.StatusNotModified was returned.
func (*StylePatchCall)Fields¶
func (c *StylePatchCall) Fields(s ...googleapi.Field) *StylePatchCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*StylePatchCall)Header¶
func (c *StylePatchCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
typeStyleService¶
type StyleService struct {// contains filtered or unexported fields}funcNewStyleService¶
func NewStyleService(s *Service) *StyleService
func (*StyleService)Delete¶
func (r *StyleService) Delete(tableIdstring, styleIdint64) *StyleDeleteCall
Delete: Deletes a style.
func (*StyleService)Get¶
func (r *StyleService) Get(tableIdstring, styleIdint64) *StyleGetCall
Get: Gets a specific style.
func (*StyleService)Insert¶
func (r *StyleService) Insert(tableIdstring, stylesetting *StyleSetting) *StyleInsertCall
Insert: Adds a new style for the table.
func (*StyleService)List¶
func (r *StyleService) List(tableIdstring) *StyleListCall
List: Retrieves a list of styles.
func (*StyleService)Patch¶
func (r *StyleService) Patch(tableIdstring, styleIdint64, stylesetting *StyleSetting) *StylePatchCall
Patch: Updates an existing style. This method supports patchsemantics.
func (*StyleService)Update¶
func (r *StyleService) Update(tableIdstring, styleIdint64, stylesetting *StyleSetting) *StyleUpdateCall
Update: Updates an existing style.
typeStyleSetting¶
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.Kindstring `json:"kind,omitempty"`// MarkerOptions: Style definition for points in the table.MarkerOptions *PointStyle `json:"markerOptions,omitempty"`// Name: Optional name for the style setting.Namestring `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).StyleIdint64 `json:"styleId,omitempty"`// TableId: Identifier for the table.TableIdstring `json:"tableId,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Kind") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Kind") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}StyleSetting: Represents a complete StyleSettings object. The primarykey is a combination of the tableId and a styleId.
func (*StyleSetting)MarshalJSON¶
func (s *StyleSetting) MarshalJSON() ([]byte,error)
typeStyleSettingList¶
type StyleSettingList struct {// Items: All requested style settings.Items []*StyleSetting `json:"items,omitempty"`// Kind: Type name: in this case, a list of style settings.Kindstring `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.NextPageTokenstring `json:"nextPageToken,omitempty"`// TotalItems: Total number of styles for the table.TotalItemsint64 `json:"totalItems,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Items") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Items") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}StyleSettingList: Represents a list of styles for a given table.
func (*StyleSettingList)MarshalJSON¶
func (s *StyleSettingList) MarshalJSON() ([]byte,error)
typeStyleUpdateCall¶
type StyleUpdateCall struct {// contains filtered or unexported fields}func (*StyleUpdateCall)Context¶
func (c *StyleUpdateCall) Context(ctxcontext.Context) *StyleUpdateCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*StyleUpdateCall)Do¶
func (c *StyleUpdateCall) Do(opts ...googleapi.CallOption) (*StyleSetting,error)
Do executes the "fusiontables.style.update" call.Exactly one of *StyleSetting or error will be non-nil. Any non-2xxstatus code is an error. Response headers are in either*StyleSetting.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModifiedto check whether the returned error was becausehttp.StatusNotModified was returned.
func (*StyleUpdateCall)Fields¶
func (c *StyleUpdateCall) Fields(s ...googleapi.Field) *StyleUpdateCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*StyleUpdateCall)Header¶
func (c *StyleUpdateCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
typeTable¶
type Table struct {// Attribution: Optional attribution assigned to the table.Attributionstring `json:"attribution,omitempty"`// AttributionLink: Optional link for attribution.AttributionLinkstring `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.Descriptionstring `json:"description,omitempty"`// IsExportable: Variable for whether table is exportable.IsExportablebool `json:"isExportable,omitempty"`// Kind: Type name: a template for an individual table.Kindstring `json:"kind,omitempty"`// Name: Name assigned to a table.Namestring `json:"name,omitempty"`// Sql: Optional sql that encodes the table definition for derived// tables.Sqlstring `json:"sql,omitempty"`// TableId: Encrypted unique alphanumeric identifier for the table.TableIdstring `json:"tableId,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Attribution") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Attribution") to include// in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. However, any field with// an empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}Table: Represents a table. Specifies the name, whether it isexportable, description, attribution, and attribution link.
func (*Table)MarshalJSON¶
typeTableCopyCall¶
type TableCopyCall struct {// contains filtered or unexported fields}func (*TableCopyCall)Context¶
func (c *TableCopyCall) Context(ctxcontext.Context) *TableCopyCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*TableCopyCall)CopyPresentation¶
func (c *TableCopyCall) CopyPresentation(copyPresentationbool) *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(opts ...googleapi.CallOption) (*Table,error)
Do executes the "fusiontables.table.copy" call.Exactly one of *Table or error will be non-nil. Any non-2xx statuscode is an error. Response headers are in either*Table.ServerResponse.Header or (if a response was returned at all)in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModifiedwas returned.
func (*TableCopyCall)Fields¶
func (c *TableCopyCall) Fields(s ...googleapi.Field) *TableCopyCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*TableCopyCall)Header¶
func (c *TableCopyCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
typeTableDeleteCall¶
type TableDeleteCall struct {// contains filtered or unexported fields}func (*TableDeleteCall)Context¶
func (c *TableDeleteCall) Context(ctxcontext.Context) *TableDeleteCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*TableDeleteCall)Do¶
func (c *TableDeleteCall) Do(opts ...googleapi.CallOption)error
Do executes the "fusiontables.table.delete" call.
func (*TableDeleteCall)Fields¶
func (c *TableDeleteCall) Fields(s ...googleapi.Field) *TableDeleteCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*TableDeleteCall)Header¶
func (c *TableDeleteCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
typeTableGetCall¶
type TableGetCall struct {// contains filtered or unexported fields}func (*TableGetCall)Context¶
func (c *TableGetCall) Context(ctxcontext.Context) *TableGetCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*TableGetCall)Do¶
func (c *TableGetCall) Do(opts ...googleapi.CallOption) (*Table,error)
Do executes the "fusiontables.table.get" call.Exactly one of *Table or error will be non-nil. Any non-2xx statuscode is an error. Response headers are in either*Table.ServerResponse.Header or (if a response was returned at all)in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModifiedwas returned.
func (*TableGetCall)Fields¶
func (c *TableGetCall) Fields(s ...googleapi.Field) *TableGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*TableGetCall)Header¶
func (c *TableGetCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
func (*TableGetCall)IfNoneMatch¶
func (c *TableGetCall) IfNoneMatch(entityTagstring) *TableGetCall
IfNoneMatch sets the optional parameter which makes the operationfail if the object's ETag matches the given value. This is useful forgetting updates only after the object has changed since the lastrequest. Use googleapi.IsNotModified to check whether the responseerror from Do is the result of In-None-Match.
typeTableImportRowsCall¶
type TableImportRowsCall struct {// contains filtered or unexported fields}func (*TableImportRowsCall)Context¶
func (c *TableImportRowsCall) Context(ctxcontext.Context) *TableImportRowsCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.This context will supersede any context previously provided to theResumableMedia method.
func (*TableImportRowsCall)Delimiter¶
func (c *TableImportRowsCall) Delimiter(delimiterstring) *TableImportRowsCall
Delimiter sets the optional parameter "delimiter": The delimiter usedto separate cell values. This can only consist of a single character.Default is ','.
func (*TableImportRowsCall)Do¶
func (c *TableImportRowsCall) Do(opts ...googleapi.CallOption) (*Import,error)
Do executes the "fusiontables.table.importRows" call.Exactly one of *Import or error will be non-nil. Any non-2xx statuscode is an error. Response headers are in either*Import.ServerResponse.Header or (if a response was returned at all)in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModifiedwas returned.
func (*TableImportRowsCall)Encoding¶
func (c *TableImportRowsCall) Encoding(encodingstring) *TableImportRowsCall
Encoding sets the optional parameter "encoding": The encoding of thecontent. Default is UTF-8. Use 'auto-detect' if you are unsure of theencoding.
func (*TableImportRowsCall)EndLine¶
func (c *TableImportRowsCall) EndLine(endLineint64) *TableImportRowsCall
EndLine sets the optional parameter "endLine": The index of the lastline from which to start importing, exclusive. Thus, the number ofimported lines is endLine - startLine. If this parameter is notprovided, the file will be imported until the last line of the file.If endLine is negative, then the imported content will exclude thelast endLine lines. That is, if endline is negative, no line will beimported whose index is greater than N + endLine where N is thenumber of lines in the file, and the number of imported lines will beN + endLine - startLine.
func (*TableImportRowsCall)Fields¶
func (c *TableImportRowsCall) Fields(s ...googleapi.Field) *TableImportRowsCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*TableImportRowsCall)Header¶
func (c *TableImportRowsCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
func (*TableImportRowsCall)IsStrict¶
func (c *TableImportRowsCall) IsStrict(isStrictbool) *TableImportRowsCall
IsStrict sets the optional parameter "isStrict": Whether the CSV musthave the same number of values for each row. If false, rows withfewer values will be padded with empty values. Default is true.
func (*TableImportRowsCall)Media¶
func (c *TableImportRowsCall) Media(rio.Reader, options ...googleapi.MediaOption) *TableImportRowsCall
Media specifies the media to upload in one or more chunks. The chunksize may be controlled by supplying a MediaOption generated bygoogleapi.ChunkSize. The chunk size defaults togoogleapi.DefaultUploadChunkSize.The Content-Type header used in theupload request will be determined by sniffing the contents of r,unless a MediaOption generated by googleapi.ContentType issupplied.At most one of Media and ResumableMedia may be set.
func (*TableImportRowsCall)ProgressUpdater¶
func (c *TableImportRowsCall) ProgressUpdater(pugoogleapi.ProgressUpdater) *TableImportRowsCall
ProgressUpdater provides a callback function that will be calledafter every chunk. It should be a low-latency function in order tonot slow down the upload operation. This should only be called whenusing ResumableMedia (as opposed to Media).
func (*TableImportRowsCall)ResumableMediadeprecated
func (c *TableImportRowsCall) ResumableMedia(ctxcontext.Context, rio.ReaderAt, sizeint64, mediaTypestring) *TableImportRowsCall
ResumableMedia specifies the media to upload in chunks and can becanceled with ctx.
Deprecated: use Media instead.
At most one of Media and ResumableMedia may be set. mediaTypeidentifies the MIME media type of the upload, such as "image/png". IfmediaType is "", it will be auto-detected. The provided ctx willsupersede any context previously provided to the Context method.
func (*TableImportRowsCall)StartLine¶
func (c *TableImportRowsCall) StartLine(startLineint64) *TableImportRowsCall
StartLine sets the optional parameter "startLine": The index of thefirst line from which to start importing, inclusive. Default is 0.
typeTableImportTableCall¶
type TableImportTableCall struct {// contains filtered or unexported fields}func (*TableImportTableCall)Context¶
func (c *TableImportTableCall) Context(ctxcontext.Context) *TableImportTableCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.This context will supersede any context previously provided to theResumableMedia method.
func (*TableImportTableCall)Delimiter¶
func (c *TableImportTableCall) Delimiter(delimiterstring) *TableImportTableCall
Delimiter sets the optional parameter "delimiter": The delimiter usedto separate cell values. This can only consist of a single character.Default is ','.
func (*TableImportTableCall)Do¶
func (c *TableImportTableCall) Do(opts ...googleapi.CallOption) (*Table,error)
Do executes the "fusiontables.table.importTable" call.Exactly one of *Table or error will be non-nil. Any non-2xx statuscode is an error. Response headers are in either*Table.ServerResponse.Header or (if a response was returned at all)in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModifiedwas returned.
func (*TableImportTableCall)Encoding¶
func (c *TableImportTableCall) Encoding(encodingstring) *TableImportTableCall
Encoding sets the optional parameter "encoding": The encoding of thecontent. Default is UTF-8. Use 'auto-detect' if you are unsure of theencoding.
func (*TableImportTableCall)Fields¶
func (c *TableImportTableCall) Fields(s ...googleapi.Field) *TableImportTableCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*TableImportTableCall)Header¶
func (c *TableImportTableCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
func (*TableImportTableCall)Media¶
func (c *TableImportTableCall) Media(rio.Reader, options ...googleapi.MediaOption) *TableImportTableCall
Media specifies the media to upload in one or more chunks. The chunksize may be controlled by supplying a MediaOption generated bygoogleapi.ChunkSize. The chunk size defaults togoogleapi.DefaultUploadChunkSize.The Content-Type header used in theupload request will be determined by sniffing the contents of r,unless a MediaOption generated by googleapi.ContentType issupplied.At most one of Media and ResumableMedia may be set.
func (*TableImportTableCall)ProgressUpdater¶
func (c *TableImportTableCall) ProgressUpdater(pugoogleapi.ProgressUpdater) *TableImportTableCall
ProgressUpdater provides a callback function that will be calledafter every chunk. It should be a low-latency function in order tonot slow down the upload operation. This should only be called whenusing ResumableMedia (as opposed to Media).
func (*TableImportTableCall)ResumableMediadeprecated
func (c *TableImportTableCall) ResumableMedia(ctxcontext.Context, rio.ReaderAt, sizeint64, mediaTypestring) *TableImportTableCall
ResumableMedia specifies the media to upload in chunks and can becanceled with ctx.
Deprecated: use Media instead.
At most one of Media and ResumableMedia may be set. mediaTypeidentifies the MIME media type of the upload, such as "image/png". IfmediaType is "", it will be auto-detected. The provided ctx willsupersede any context previously provided to the Context method.
typeTableInsertCall¶
type TableInsertCall struct {// contains filtered or unexported fields}func (*TableInsertCall)Context¶
func (c *TableInsertCall) Context(ctxcontext.Context) *TableInsertCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*TableInsertCall)Do¶
func (c *TableInsertCall) Do(opts ...googleapi.CallOption) (*Table,error)
Do executes the "fusiontables.table.insert" call.Exactly one of *Table or error will be non-nil. Any non-2xx statuscode is an error. Response headers are in either*Table.ServerResponse.Header or (if a response was returned at all)in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModifiedwas returned.
func (*TableInsertCall)Fields¶
func (c *TableInsertCall) Fields(s ...googleapi.Field) *TableInsertCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*TableInsertCall)Header¶
func (c *TableInsertCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
typeTableList¶
type TableList struct {// Items: List of all requested tables.Items []*Table `json:"items,omitempty"`// Kind: Type name: a list of all tables.Kindstring `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.NextPageTokenstring `json:"nextPageToken,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Items") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Items") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}TableList: Represents a list of tables.
func (*TableList)MarshalJSON¶
typeTableListCall¶
type TableListCall struct {// contains filtered or unexported fields}func (*TableListCall)Context¶
func (c *TableListCall) Context(ctxcontext.Context) *TableListCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*TableListCall)Do¶
func (c *TableListCall) Do(opts ...googleapi.CallOption) (*TableList,error)
Do executes the "fusiontables.table.list" call.Exactly one of *TableList or error will be non-nil. Any non-2xxstatus code is an error. Response headers are in either*TableList.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModifiedto check whether the returned error was becausehttp.StatusNotModified was returned.
func (*TableListCall)Fields¶
func (c *TableListCall) Fields(s ...googleapi.Field) *TableListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*TableListCall)Header¶
func (c *TableListCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
func (*TableListCall)IfNoneMatch¶
func (c *TableListCall) IfNoneMatch(entityTagstring) *TableListCall
IfNoneMatch sets the optional parameter which makes the operationfail if the object's ETag matches the given value. This is useful forgetting updates only after the object has changed since the lastrequest. Use googleapi.IsNotModified to check whether the responseerror from Do is the result of In-None-Match.
func (*TableListCall)MaxResults¶
func (c *TableListCall) MaxResults(maxResultsint64) *TableListCall
MaxResults sets the optional parameter "maxResults": Maximum numberof styles to return. Default is 5.
func (*TableListCall)PageToken¶
func (c *TableListCall) PageToken(pageTokenstring) *TableListCall
PageToken sets the optional parameter "pageToken": Continuation tokenspecifying which result page to return.
typeTablePatchCall¶
type TablePatchCall struct {// contains filtered or unexported fields}func (*TablePatchCall)Context¶
func (c *TablePatchCall) Context(ctxcontext.Context) *TablePatchCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*TablePatchCall)Do¶
func (c *TablePatchCall) Do(opts ...googleapi.CallOption) (*Table,error)
Do executes the "fusiontables.table.patch" call.Exactly one of *Table or error will be non-nil. Any non-2xx statuscode is an error. Response headers are in either*Table.ServerResponse.Header or (if a response was returned at all)in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModifiedwas returned.
func (*TablePatchCall)Fields¶
func (c *TablePatchCall) Fields(s ...googleapi.Field) *TablePatchCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*TablePatchCall)Header¶
func (c *TablePatchCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
func (*TablePatchCall)ReplaceViewDefinition¶
func (c *TablePatchCall) ReplaceViewDefinition(replaceViewDefinitionbool) *TablePatchCall
ReplaceViewDefinition sets the optional parameter"replaceViewDefinition": Should the view definition also be updated?The specified view definition replaces the existing one. Only a viewcan be updated with a new definition.
typeTableService¶
type TableService struct {// contains filtered or unexported fields}funcNewTableService¶
func NewTableService(s *Service) *TableService
func (*TableService)Copy¶
func (r *TableService) Copy(tableIdstring) *TableCopyCall
Copy: Copies a table.
func (*TableService)Delete¶
func (r *TableService) Delete(tableIdstring) *TableDeleteCall
Delete: Deletes a table.
func (*TableService)Get¶
func (r *TableService) Get(tableIdstring) *TableGetCall
Get: Retrieves a specific table by its id.
func (*TableService)ImportRows¶
func (r *TableService) ImportRows(tableIdstring) *TableImportRowsCall
ImportRows: Import more rows into a table.
func (*TableService)ImportTable¶
func (r *TableService) ImportTable(namestring) *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(tableIdstring, table *Table) *TablePatchCall
Patch: Updates an existing table. Unless explicitly requested, onlythe name, description, and attribution will be updated. This methodsupports patch semantics.
func (*TableService)Update¶
func (r *TableService) Update(tableIdstring, table *Table) *TableUpdateCall
Update: Updates an existing table. Unless explicitly requested, onlythe name, description, and attribution will be updated.
typeTableUpdateCall¶
type TableUpdateCall struct {// contains filtered or unexported fields}func (*TableUpdateCall)Context¶
func (c *TableUpdateCall) Context(ctxcontext.Context) *TableUpdateCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*TableUpdateCall)Do¶
func (c *TableUpdateCall) Do(opts ...googleapi.CallOption) (*Table,error)
Do executes the "fusiontables.table.update" call.Exactly one of *Table or error will be non-nil. Any non-2xx statuscode is an error. Response headers are in either*Table.ServerResponse.Header or (if a response was returned at all)in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModifiedwas returned.
func (*TableUpdateCall)Fields¶
func (c *TableUpdateCall) Fields(s ...googleapi.Field) *TableUpdateCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*TableUpdateCall)Header¶
func (c *TableUpdateCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
func (*TableUpdateCall)ReplaceViewDefinition¶
func (c *TableUpdateCall) ReplaceViewDefinition(replaceViewDefinitionbool) *TableUpdateCall
ReplaceViewDefinition sets the optional parameter"replaceViewDefinition": Should the view definition also be updated?The specified view definition replaces the existing one. Only a viewcan be updated with a new definition.
typeTask¶
type Task struct {// Kind: Type of the resource. This is always "fusiontables#task".Kindstring `json:"kind,omitempty"`// Progress: An indication of task progress.Progressstring `json:"progress,omitempty"`// Started: false while the table is busy with some other task. true if// this background task is currently running.Startedbool `json:"started,omitempty"`// TaskId: Identifier for the task.TaskIdint64 `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.Typestring `json:"type,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Kind") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Kind") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}Task: Specifies the identifier, name, and type of a task in a table.
func (*Task)MarshalJSON¶
typeTaskDeleteCall¶
type TaskDeleteCall struct {// contains filtered or unexported fields}func (*TaskDeleteCall)Context¶
func (c *TaskDeleteCall) Context(ctxcontext.Context) *TaskDeleteCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*TaskDeleteCall)Do¶
func (c *TaskDeleteCall) Do(opts ...googleapi.CallOption)error
Do executes the "fusiontables.task.delete" call.
func (*TaskDeleteCall)Fields¶
func (c *TaskDeleteCall) Fields(s ...googleapi.Field) *TaskDeleteCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*TaskDeleteCall)Header¶
func (c *TaskDeleteCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
typeTaskGetCall¶
type TaskGetCall struct {// contains filtered or unexported fields}func (*TaskGetCall)Context¶
func (c *TaskGetCall) Context(ctxcontext.Context) *TaskGetCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*TaskGetCall)Do¶
func (c *TaskGetCall) Do(opts ...googleapi.CallOption) (*Task,error)
Do executes the "fusiontables.task.get" call.Exactly one of *Task or error will be non-nil. Any non-2xx statuscode is an error. Response headers are in either*Task.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified wasreturned.
func (*TaskGetCall)Fields¶
func (c *TaskGetCall) Fields(s ...googleapi.Field) *TaskGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*TaskGetCall)Header¶
func (c *TaskGetCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
func (*TaskGetCall)IfNoneMatch¶
func (c *TaskGetCall) IfNoneMatch(entityTagstring) *TaskGetCall
IfNoneMatch sets the optional parameter which makes the operationfail if the object's ETag matches the given value. This is useful forgetting updates only after the object has changed since the lastrequest. Use googleapi.IsNotModified to check whether the responseerror from Do is the result of In-None-Match.
typeTaskList¶
type TaskList struct {// Items: List of all requested tasks.Items []*Task `json:"items,omitempty"`// Kind: Type of the resource. This is always "fusiontables#taskList".Kindstring `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.NextPageTokenstring `json:"nextPageToken,omitempty"`// TotalItems: Total number of tasks for the table.TotalItemsint64 `json:"totalItems,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Items") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Items") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}TaskList: Represents a list of tasks for a table.
func (*TaskList)MarshalJSON¶
typeTaskListCall¶
type TaskListCall struct {// contains filtered or unexported fields}func (*TaskListCall)Context¶
func (c *TaskListCall) Context(ctxcontext.Context) *TaskListCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*TaskListCall)Do¶
func (c *TaskListCall) Do(opts ...googleapi.CallOption) (*TaskList,error)
Do executes the "fusiontables.task.list" call.Exactly one of *TaskList or error will be non-nil. Any non-2xx statuscode is an error. Response headers are in either*TaskList.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModifiedto check whether the returned error was becausehttp.StatusNotModified was returned.
func (*TaskListCall)Fields¶
func (c *TaskListCall) Fields(s ...googleapi.Field) *TaskListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*TaskListCall)Header¶
func (c *TaskListCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
func (*TaskListCall)IfNoneMatch¶
func (c *TaskListCall) IfNoneMatch(entityTagstring) *TaskListCall
IfNoneMatch sets the optional parameter which makes the operationfail if the object's ETag matches the given value. This is useful forgetting updates only after the object has changed since the lastrequest. Use googleapi.IsNotModified to check whether the responseerror from Do is the result of In-None-Match.
func (*TaskListCall)MaxResults¶
func (c *TaskListCall) MaxResults(maxResultsint64) *TaskListCall
MaxResults sets the optional parameter "maxResults": Maximum numberof columns to return. Default is 5.
func (*TaskListCall)PageToken¶
func (c *TaskListCall) PageToken(pageTokenstring) *TaskListCall
PageToken sets the optional parameter "pageToken":
func (*TaskListCall)Pages¶
Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.
func (*TaskListCall)StartIndex¶
func (c *TaskListCall) StartIndex(startIndexint64) *TaskListCall
StartIndex sets the optional parameter "startIndex":
typeTaskService¶
type TaskService struct {// contains filtered or unexported fields}funcNewTaskService¶
func NewTaskService(s *Service) *TaskService
func (*TaskService)Delete¶
func (r *TaskService) Delete(tableIdstring, taskIdstring) *TaskDeleteCall
Delete: Deletes the task, unless already started.
func (*TaskService)Get¶
func (r *TaskService) Get(tableIdstring, taskIdstring) *TaskGetCall
Get: Retrieves a specific task by its id.
func (*TaskService)List¶
func (r *TaskService) List(tableIdstring) *TaskListCall
List: Retrieves a list of tasks.
typeTemplate¶
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.Bodystring `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.Kindstring `json:"kind,omitempty"`// Name: Optional name assigned to a template.Namestring `json:"name,omitempty"`// TableId: Identifier for the table for which the template is defined.TableIdstring `json:"tableId,omitempty"`// TemplateId: Identifier for the template, unique within the context of// a particular table.TemplateIdint64 `json:"templateId,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g.// "AutomaticColumnNames") to unconditionally include in API requests.// By default, fields with empty values are omitted from API requests.// However, any non-pointer, non-interface field appearing in// ForceSendFields will be sent to the server regardless of whether the// field is empty or not. This may be used to include empty fields in// Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AutomaticColumnNames") to// include in API requests with the JSON null value. By default, fields// with empty values are omitted from API requests. However, any field// with an empty value appearing in NullFields will be sent to the// server as null. It is an error if a field in this list has a// non-empty value. This may be used to include null fields in Patch// requests.NullFields []string `json:"-"`}Template: Represents the contents of InfoWindow templates.
func (*Template)MarshalJSON¶
typeTemplateDeleteCall¶
type TemplateDeleteCall struct {// contains filtered or unexported fields}func (*TemplateDeleteCall)Context¶
func (c *TemplateDeleteCall) Context(ctxcontext.Context) *TemplateDeleteCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*TemplateDeleteCall)Do¶
func (c *TemplateDeleteCall) Do(opts ...googleapi.CallOption)error
Do executes the "fusiontables.template.delete" call.
func (*TemplateDeleteCall)Fields¶
func (c *TemplateDeleteCall) Fields(s ...googleapi.Field) *TemplateDeleteCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*TemplateDeleteCall)Header¶
func (c *TemplateDeleteCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
typeTemplateGetCall¶
type TemplateGetCall struct {// contains filtered or unexported fields}func (*TemplateGetCall)Context¶
func (c *TemplateGetCall) Context(ctxcontext.Context) *TemplateGetCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*TemplateGetCall)Do¶
func (c *TemplateGetCall) Do(opts ...googleapi.CallOption) (*Template,error)
Do executes the "fusiontables.template.get" call.Exactly one of *Template or error will be non-nil. Any non-2xx statuscode is an error. Response headers are in either*Template.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModifiedto check whether the returned error was becausehttp.StatusNotModified was returned.
func (*TemplateGetCall)Fields¶
func (c *TemplateGetCall) Fields(s ...googleapi.Field) *TemplateGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*TemplateGetCall)Header¶
func (c *TemplateGetCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
func (*TemplateGetCall)IfNoneMatch¶
func (c *TemplateGetCall) IfNoneMatch(entityTagstring) *TemplateGetCall
IfNoneMatch sets the optional parameter which makes the operationfail if the object's ETag matches the given value. This is useful forgetting updates only after the object has changed since the lastrequest. Use googleapi.IsNotModified to check whether the responseerror from Do is the result of In-None-Match.
typeTemplateInsertCall¶
type TemplateInsertCall struct {// contains filtered or unexported fields}func (*TemplateInsertCall)Context¶
func (c *TemplateInsertCall) Context(ctxcontext.Context) *TemplateInsertCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*TemplateInsertCall)Do¶
func (c *TemplateInsertCall) Do(opts ...googleapi.CallOption) (*Template,error)
Do executes the "fusiontables.template.insert" call.Exactly one of *Template or error will be non-nil. Any non-2xx statuscode is an error. Response headers are in either*Template.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModifiedto check whether the returned error was becausehttp.StatusNotModified was returned.
func (*TemplateInsertCall)Fields¶
func (c *TemplateInsertCall) Fields(s ...googleapi.Field) *TemplateInsertCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*TemplateInsertCall)Header¶
func (c *TemplateInsertCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
typeTemplateList¶
type TemplateList struct {// Items: List of all requested templates.Items []*Template `json:"items,omitempty"`// Kind: Type name: a list of all templates.Kindstring `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.NextPageTokenstring `json:"nextPageToken,omitempty"`// TotalItems: Total number of templates for the table.TotalItemsint64 `json:"totalItems,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Items") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Items") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}TemplateList: Represents a list of templates for a given table.
func (*TemplateList)MarshalJSON¶
func (s *TemplateList) MarshalJSON() ([]byte,error)
typeTemplateListCall¶
type TemplateListCall struct {// contains filtered or unexported fields}func (*TemplateListCall)Context¶
func (c *TemplateListCall) Context(ctxcontext.Context) *TemplateListCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*TemplateListCall)Do¶
func (c *TemplateListCall) Do(opts ...googleapi.CallOption) (*TemplateList,error)
Do executes the "fusiontables.template.list" call.Exactly one of *TemplateList or error will be non-nil. Any non-2xxstatus code is an error. Response headers are in either*TemplateList.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModifiedto check whether the returned error was becausehttp.StatusNotModified was returned.
func (*TemplateListCall)Fields¶
func (c *TemplateListCall) Fields(s ...googleapi.Field) *TemplateListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*TemplateListCall)Header¶
func (c *TemplateListCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
func (*TemplateListCall)IfNoneMatch¶
func (c *TemplateListCall) IfNoneMatch(entityTagstring) *TemplateListCall
IfNoneMatch sets the optional parameter which makes the operationfail if the object's ETag matches the given value. This is useful forgetting updates only after the object has changed since the lastrequest. Use googleapi.IsNotModified to check whether the responseerror from Do is the result of In-None-Match.
func (*TemplateListCall)MaxResults¶
func (c *TemplateListCall) MaxResults(maxResultsint64) *TemplateListCall
MaxResults sets the optional parameter "maxResults": Maximum numberof templates to return. Default is 5.
func (*TemplateListCall)PageToken¶
func (c *TemplateListCall) PageToken(pageTokenstring) *TemplateListCall
PageToken sets the optional parameter "pageToken": Continuation tokenspecifying which results page to return.
func (*TemplateListCall)Pages¶
func (c *TemplateListCall) Pages(ctxcontext.Context, f func(*TemplateList)error)error
Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.
typeTemplatePatchCall¶
type TemplatePatchCall struct {// contains filtered or unexported fields}func (*TemplatePatchCall)Context¶
func (c *TemplatePatchCall) Context(ctxcontext.Context) *TemplatePatchCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*TemplatePatchCall)Do¶
func (c *TemplatePatchCall) Do(opts ...googleapi.CallOption) (*Template,error)
Do executes the "fusiontables.template.patch" call.Exactly one of *Template or error will be non-nil. Any non-2xx statuscode is an error. Response headers are in either*Template.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModifiedto check whether the returned error was becausehttp.StatusNotModified was returned.
func (*TemplatePatchCall)Fields¶
func (c *TemplatePatchCall) Fields(s ...googleapi.Field) *TemplatePatchCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*TemplatePatchCall)Header¶
func (c *TemplatePatchCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
typeTemplateService¶
type TemplateService struct {// contains filtered or unexported fields}funcNewTemplateService¶
func NewTemplateService(s *Service) *TemplateService
func (*TemplateService)Delete¶
func (r *TemplateService) Delete(tableIdstring, templateIdint64) *TemplateDeleteCall
Delete: Deletes a template
func (*TemplateService)Get¶
func (r *TemplateService) Get(tableIdstring, templateIdint64) *TemplateGetCall
Get: Retrieves a specific template by its id
func (*TemplateService)Insert¶
func (r *TemplateService) Insert(tableIdstring, template *Template) *TemplateInsertCall
Insert: Creates a new template for the table.
func (*TemplateService)List¶
func (r *TemplateService) List(tableIdstring) *TemplateListCall
List: Retrieves a list of templates.
func (*TemplateService)Patch¶
func (r *TemplateService) Patch(tableIdstring, templateIdint64, template *Template) *TemplatePatchCall
Patch: Updates an existing template. This method supports patchsemantics.
func (*TemplateService)Update¶
func (r *TemplateService) Update(tableIdstring, templateIdint64, template *Template) *TemplateUpdateCall
Update: Updates an existing template
typeTemplateUpdateCall¶
type TemplateUpdateCall struct {// contains filtered or unexported fields}func (*TemplateUpdateCall)Context¶
func (c *TemplateUpdateCall) Context(ctxcontext.Context) *TemplateUpdateCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*TemplateUpdateCall)Do¶
func (c *TemplateUpdateCall) Do(opts ...googleapi.CallOption) (*Template,error)
Do executes the "fusiontables.template.update" call.Exactly one of *Template or error will be non-nil. Any non-2xx statuscode is an error. Response headers are in either*Template.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModifiedto check whether the returned error was becausehttp.StatusNotModified was returned.
func (*TemplateUpdateCall)Fields¶
func (c *TemplateUpdateCall) Fields(s ...googleapi.Field) *TemplateUpdateCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*TemplateUpdateCall)Header¶
func (c *TemplateUpdateCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.